/* ==============================================================================
   TANOBET.GG DESIGN SYSTEM (tinyCMS 5.5.0 instance)
   Brand colours sampled from the TanoBet logo:
   orange #ff5a00 ("TanoBet") = primary, green #007e33 (".gg") = secondary,
   yellow #ffc300, navy #002776 (flag), accent green #2ba84a.
   Class names .tnb-icon-red/-blue/... are emitted by build.py: red = orange, blue = green.
   ============================================================================== */

:root {
    --tnb-primary: #ff5a00;
    --tnb-primary-hover: #d94a00;
    --tnb-primary-light: #ffeee3;
    --tnb-secondary: #007e33;
    --tnb-secondary-hover: #00632a;
    --tnb-secondary-light: #e3f3e9;
    --tnb-yellow: #ffc300;
    --tnb-yellow-light: #fff7d6;
    --tnb-green: #2ba84a;
    --tnb-green-light: #e8f6ec;
    --tnb-navy: #002776;
    --tnb-navy-dark: #001a4d;
    --bg-page: #f7f8fc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --border-color: rgba(0, 39, 118, 0.12);
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    padding-bottom: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

a { color: var(--tnb-secondary); }
a:hover { color: var(--tnb-secondary-hover); }

/* ================= 1. TOP BAR (header.html) ================= */
.tnb-topbar {
    background: linear-gradient(90deg, var(--tnb-green) 0%, var(--tnb-navy) 55%, var(--tnb-primary) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}
.tnb-topbar strong { color: var(--tnb-yellow); }

/* ================= 2. NAVBAR & LOGO ================= */
.tnb-navbar {
    background: #ffffff;
    border-bottom: 3px solid var(--tnb-primary);
    padding: 0.55rem 0;
    box-shadow: 0 4px 16px rgba(0, 39, 118, 0.08);
}
.brand-logo { display: inline-flex; align-items: center; line-height: 1; }
.site-logo-img { height: 42px; width: auto; max-width: 230px; object-fit: contain; display: block; }

.btn-menu-toggle { color: var(--tnb-navy); padding: 0.25rem 0.5rem; border: 0; }
.btn-menu-toggle:hover, .btn-menu-toggle:focus { color: var(--tnb-primary); }

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.93rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show {
    color: var(--tnb-secondary);
    background-color: var(--tnb-secondary-light);
}
.navbar-nav .nav-link.active {
    background: var(--tnb-secondary);
    color: #ffffff;
}
.navbar-nav .dropdown-menu {
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--tnb-yellow);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 39, 118, 0.14);
    padding: 0.4rem;
    min-width: 240px;
}
.navbar-nav .dropdown-item {
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus { background: var(--tnb-secondary-light); color: var(--tnb-secondary); }
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active { background: var(--tnb-secondary); color: #ffffff; }

/* Badges (badge_class in navigation.xml) */
.nav-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 4px;
    vertical-align: 2px;
    line-height: 1.3;
}
.nav-badge-red { background: var(--tnb-primary); color: #ffffff; }
.nav-badge-yellow { background: var(--tnb-yellow); color: #1a1300; }
.nav-badge-green { background: var(--tnb-green); color: #ffffff; }

/* ================= 3. BUTTONS ================= */
.btn-tnb-login,
.btn-tnb-register {
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.42rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-tnb-login {
    background: #ffffff;
    border: 2px solid var(--tnb-secondary);
    color: var(--tnb-secondary);
}
.btn-tnb-login:hover,
.btn-tnb-login:focus {
    background: var(--tnb-secondary);
    border-color: var(--tnb-secondary);
    color: #ffffff;
}
.btn-tnb-register {
    background: var(--tnb-primary);
    border: 2px solid var(--tnb-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 90, 0, 0.3);
}
.btn-tnb-register:hover,
.btn-tnb-register:focus {
    background: var(--tnb-primary-hover);
    border-color: var(--tnb-primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 90, 0, 0.4);
}

.mobile-header-actions { border-top: 1px solid var(--border-color); }
.mobile-header-actions a {
    flex: 1 1 0;
    width: 50%;
    padding: 0.5rem;
    font-size: 0.88rem;
}

/* ================= 4. BREADCRUMB (generated by the kernel) ================= */
.breadcrumb-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--tnb-secondary); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 600; }

/* ================= 5. PAGE SHELL & CARDS ================= */
.tnb-hero {
    position: relative;
    background: linear-gradient(135deg, var(--tnb-secondary-light) 0%, #ffffff 55%, var(--tnb-primary-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}
.tnb-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--tnb-green) 0 25%, var(--tnb-yellow) 25% 50%, var(--tnb-navy) 50% 75%, var(--tnb-primary) 75% 100%);
}
.tnb-hero h1 { font-weight: 800; }
.tnb-hero h1 .tnb-hl { color: var(--tnb-primary); }
.tnb-kicker {
    display: inline-block;
    background: var(--tnb-yellow);
    color: #1a1300;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}
.tnb-placeholder {
    border: 2px dashed rgba(0, 39, 118, 0.25);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text-muted);
}
.tnb-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    height: 100%;
}

/* ================= 6. FOOTER ================= */
.site-footer {
    background-color: var(--tnb-navy-dark);
    color: #e2e8f0;
    border-top: 4px solid var(--tnb-yellow);
}
.site-footer .footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--tnb-yellow); }
.site-footer .text-muted { color: #a7b4c8 !important; }
.site-footer .footer-logo {
    display: inline-block;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 12px;
}
.badge-18 { background: var(--tnb-primary); color: #ffffff; }
.badge-ssl { background: var(--tnb-green); color: #ffffff; }

/* ================= 7. MOBILE DRAWER (footer.html + kernel nav items) ================= */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 16, 50, 0.65);
    z-index: 1060;
    display: none;
}
.mobile-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 300px; max-width: 86vw; height: 100vh;
    background-color: #ffffff;
    z-index: 1070;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-drawer .drawer-header { border-bottom: 3px solid var(--tnb-primary) !important; }
.btn-close-drawer { color: var(--tnb-navy); border: 0; }
.mobile-drawer-item,
.mobile-drawer-subitem {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-drawer-subitem { font-weight: 500; font-size: 0.93rem; padding: 0.5rem 0.85rem; color: var(--text-secondary); }
.mobile-drawer-item:hover, .mobile-drawer-item.active,
.mobile-drawer-subitem:hover, .mobile-drawer-subitem.active {
    background: var(--tnb-secondary-light);
    color: var(--tnb-secondary);
}
.mobile-drawer-submenu { border-left: 2px solid var(--tnb-yellow); margin-left: 0.85rem; }
.transition-icon { transition: transform 0.2s ease; }
.mobile-drawer-item[aria-expanded="true"] .transition-icon { transform: rotate(180deg); }

/* ================= 8. FLOATING BOTTOM BUTTONS ================= */
.tnb-floating-bottom {
    position: fixed;
    bottom: 12px;
    left: 0; right: 0;
    z-index: 1050;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 16px;
}
.floating-btn-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    max-width: 460px;
    width: 100%;
    justify-content: center;
}
.btn-float {
    flex: 1;
    max-width: 210px;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.02rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-float-red { background: var(--tnb-primary); color: #ffffff; }
.btn-float-red:hover, .btn-float-red:focus { background: var(--tnb-primary-hover); color: #ffffff; transform: translateY(-2px); }
.btn-float-container { position: relative; flex: 1; max-width: 210px; }
.btn-float-blue { width: 100%; max-width: none; background: var(--tnb-secondary); color: #ffffff; }
.btn-float-blue:hover, .btn-float-blue:focus { background: var(--tnb-secondary-hover); color: #ffffff; transform: translateY(-2px); }
.btn-float-close {
    position: absolute;
    top: -8px; right: -8px;
    width: 24px; height: 24px;
    background-color: var(--tnb-navy-dark);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}
.btn-float-close:hover { background-color: var(--tnb-primary); }

/* ================= 9. ARTICLE CONTENT (all content pages) ================= */
.tnb-hero h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); line-height: 1.2; }
.tnb-lead { font-size: 1.08rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 0.75rem; }
.tnb-updated { font-size: 0.85rem; color: var(--text-secondary); margin: 0.25rem 0 0; }
.tnb-updated i { color: var(--tnb-green); }
.tnb-updated a { color: var(--tnb-secondary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tnb-legal h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 0.75rem; }
.tnb-legal p, .tnb-legal li { line-height: 1.75; color: var(--text-secondary); }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tnb-hero-img { margin: 0; }
.tnb-hero-img img,
.tnb-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 39, 118, 0.14);
}

.tnb-article {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.tnb-article h2 {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    line-height: 1.3;
    margin: 2.75rem 0 1rem;
    padding-left: 0.85rem;
    border-left: 5px solid var(--tnb-primary);
}
.tnb-article h3 {
    font-size: 1.2rem;
    margin: 1.75rem 0 0.6rem;
    color: var(--tnb-navy);
}
.tnb-article p { margin-bottom: 1.1rem; }
.tnb-article strong { color: var(--text-primary); }

.tnb-list,
.tnb-steps { padding-left: 0; margin: 0 0 1.5rem; list-style: none; }
.tnb-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.75rem;
}
.tnb-list li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.68em;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--tnb-yellow);
    box-shadow: 0 0 0 3px var(--tnb-yellow-light);
}
.tnb-steps { counter-reset: tnb-step; }
.tnb-steps li {
    position: relative;
    counter-increment: tnb-step;
    padding: 0.7rem 0.9rem 0.7rem 3.2rem;
    margin-bottom: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    line-height: 1.6;
}
.tnb-steps li::before {
    content: counter(tnb-step);
    position: absolute;
    left: 0.8rem;
    top: 0.65rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--tnb-secondary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.75rem;
    text-align: center;
}

.tnb-figure { margin: 1.75rem 0; }

.tnb-table-wrap {
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.tnb-table { font-size: 0.93rem; line-height: 1.5; --bs-table-bg: transparent; }
.tnb-table thead th {
    background: var(--tnb-navy);
    color: #ffffff;
    font-weight: 700;
    border-bottom: 0;
    padding: 0.8rem 1rem;
}
.tnb-table td { padding: 0.75rem 1rem; color: var(--text-secondary); vertical-align: top; }
.tnb-table td:first-child { font-weight: 600; color: var(--text-primary); }
.tnb-table tbody tr:nth-child(even) td { background: var(--tnb-secondary-light); }
.tnb-table tbody tr:last-child td { border-bottom: 0; }

.tnb-conclusion {
    margin-top: 2.75rem;
    padding: 1.5rem 1.75rem 0.5rem;
    background: linear-gradient(135deg, var(--tnb-yellow-light) 0%, #ffffff 100%);
    border: 1px solid rgba(255, 195, 0, 0.45);
    border-radius: 16px;
}
.tnb-conclusion h2 { margin-top: 0; border-left-color: var(--tnb-yellow); }

/* ================= 10. CONTENT BLOCKS (cards, icons, bands, hover) ================= */
.tnb-section { padding: 3.5rem 0; }
.tnb-section-band {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.tnb-section-head { max-width: 760px; margin: 0 auto 2.25rem; text-align: center; }
.tnb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--tnb-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.tnb-section-head h2,
.tnb-section-title {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}
.tnb-section-head p,
.tnb-section-text p { color: var(--text-secondary); line-height: 1.8; }
.tnb-section-text p:last-child { margin-bottom: 0; }

/* Hero extras */
.tnb-hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.tnb-hero-badges i { color: var(--tnb-green); margin-right: 0.3rem; }

/* Icon boxes */
.tnb-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.35s ease;
}
.tnb-icon-sm { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }
.tnb-icon-red { background: var(--tnb-primary-light); color: var(--tnb-primary); }
.tnb-icon-blue { background: var(--tnb-secondary-light); color: var(--tnb-secondary); }
.tnb-icon-yellow { background: var(--tnb-yellow-light); color: #8a6a00; }
.tnb-icon-green { background: var(--tnb-green-light); color: var(--tnb-green); }
.tnb-icon-navy { background: #e3e8f4; color: var(--tnb-navy); }

/* Feature strip under the hero */
.tnb-feature-strip {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 39, 118, 0.06);
    padding: 1.25rem;
}
.tnb-feature { display: flex; gap: 0.85rem; align-items: center; padding: 0.35rem; }
.tnb-feature strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.05rem; color: var(--text-primary); line-height: 1.2; }
.tnb-feature span { font-size: 0.85rem; color: var(--text-muted); }
.tnb-feature:hover .tnb-icon { transform: rotate(-8deg) scale(1.08); }

/* Info cards with hover */
.tnb-info-card {
    position: relative;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tnb-info-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tnb-primary), var(--tnb-yellow), var(--tnb-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.tnb-info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 126, 51, 0.25);
    box-shadow: 0 16px 36px rgba(0, 39, 118, 0.14);
}
.tnb-info-card:hover::before { transform: scaleX(1); }
.tnb-info-card:hover .tnb-icon { transform: rotate(-8deg) scale(1.1); }
.tnb-info-card h3 { font-size: 1.12rem; font-weight: 700; margin: 1rem 0 0.5rem; line-height: 1.35; }
.tnb-info-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0; }
.tnb-info-card .tnb-steps { margin-bottom: 0; }
.tnb-info-card .tnb-steps li { background: var(--bg-page); }

/* Image card: zoom on hover (figure or card wrapper) */
.tnb-img-card {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 39, 118, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tnb-img-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}
.tnb-img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 26, 77, 0) 55%, rgba(0, 26, 77, 0.25) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.tnb-img-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 39, 118, 0.22); }
.tnb-img-card:hover img { transform: scale(1.06); }
.tnb-img-card:hover::after { opacity: 1; }

/* Promotion value cards */
.tnb-promo-card { text-align: left; }
.tnb-promo-card .tnb-promo-value {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tnb-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.tnb-promo-card h3 { font-size: 1rem; margin: 0.9rem 0 0.35rem; }
.tnb-promo-card p { font-size: 0.88rem; }

/* Table inside a card */
.tnb-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 39, 118, 0.06);
}
.tnb-table-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}
.tnb-table-card-head i { color: var(--tnb-secondary); }
.tnb-table-card .tnb-table-wrap { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.tnb-table tbody tr { transition: background-color 0.2s ease; }
.tnb-table tbody tr:hover td { background: var(--tnb-yellow-light); }

/* Dark highlight block */
.tnb-dark-block {
    position: relative;
    background: radial-gradient(120% 140% at 100% 0%, #009a3e 0%, var(--tnb-navy) 45%, var(--tnb-navy-dark) 100%);
    color: #d3ebdc;
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
}
.tnb-dark-block::after {
    content: "";
    position: absolute;
    right: -80px; bottom: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 195, 0, 0.35), rgba(255, 195, 0, 0));
    pointer-events: none;
}
.tnb-dark-block h2, .tnb-dark-block h3 { color: #ffffff; }
.tnb-dark-block .tnb-eyebrow { color: var(--tnb-yellow); }
.tnb-dark-block p { color: #d3ebdc; }
.tnb-mini-feature {
    display: flex;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.tnb-mini-feature:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }
.tnb-mini-feature i { color: var(--tnb-yellow); font-size: 1.25rem; margin-top: 0.2rem; width: 1.5rem; text-align: center; }
.tnb-mini-feature h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.tnb-mini-feature p { font-size: 0.9rem; line-height: 1.6; margin: 0; }
.btn-tnb-yellow {
    background: var(--tnb-yellow);
    border: 2px solid var(--tnb-yellow);
    color: #1a1300;
    font-weight: 800;
    border-radius: 50px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-tnb-yellow:hover, .btn-tnb-yellow:focus { background: #ffd24d; border-color: #ffd24d; color: #1a1300; transform: translateY(-2px); }

/* Closing CTA band (conclusion) */
.tnb-cta-band {
    position: relative;
    border-radius: 24px;
    padding: 2.5rem;
    background: linear-gradient(120deg, var(--tnb-primary) 0%, #c24200 50%, var(--tnb-navy) 100%);
    color: #ffffff;
    overflow: hidden;
}
.tnb-cta-band h2 { color: #ffffff; font-weight: 800; }
.tnb-cta-band p { color: rgba(255, 255, 255, 0.92); line-height: 1.8; }
.tnb-cta-band .tnb-eyebrow { color: var(--tnb-yellow); }

/* In-text internal links */
main p a:not(.btn),
main li a:not(.btn) {
    color: var(--tnb-secondary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 126, 51, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
main p a:not(.btn):hover,
main li a:not(.btn):hover { color: var(--tnb-primary); text-decoration-color: currentColor; }
.tnb-dark-block p a:not(.btn),
.tnb-cta-band p a:not(.btn) { color: var(--tnb-yellow); text-decoration-color: rgba(255, 195, 0, 0.5); }
.tnb-dark-block p a:not(.btn):hover,
.tnb-cta-band p a:not(.btn):hover { color: #ffffff; }

@media (max-width: 767.98px) {
    .tnb-section { padding: 2.5rem 0; }
    .tnb-dark-block, .tnb-cta-band { padding: 1.75rem 1.25rem; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .tnb-info-card, .tnb-img-card, .tnb-img-card img, .tnb-icon, .tnb-mini-feature { transition: none; }
}

/* ================= 11. RESPONSIVE ================= */
@media (max-width: 575.98px) {
    .tnb-table { font-size: 0.86rem; }
    .tnb-table thead th, .tnb-table td { padding: 0.6rem 0.7rem; }
    .tnb-conclusion { padding: 1.25rem 1.1rem 0.25rem; }
}
@media (max-width: 399.98px) {
    .site-logo-img { height: 34px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-nav .nav-link { padding: 0.45rem 0.65rem; font-size: 0.9rem; }
    .site-logo-img { height: 38px; }
}

/* ================= 12. STAGE 11 VISUAL LAYER (2026-11-15) =================
   Dark shell (navbar, breadcrumb, hero, footer), motion hero with drifting orbs,
   big-number stats strip, "Resposta rápida" box, link tiles, gradient icon boxes.
   Markup emitted by build.py when site.json has "hero": "motion" and !stat / !quick / !tile lines. */
:root {
    --tnb-ink: #070d24;
    --tnb-ink-2: #0e1a3d;
    --tnb-ink-line: rgba(255, 255, 255, 0.08);
    --tnb-g1: linear-gradient(135deg, #ff8a00 0%, #ff3d00 100%);
    --tnb-g2: linear-gradient(135deg, #22c55e 0%, #007e33 100%);
    --tnb-g3: linear-gradient(135deg, #ffd84d 0%, #ff9f00 100%);
    --tnb-g4: linear-gradient(135deg, #3b82f6 0%, #002776 100%);
    --tnb-g5: linear-gradient(135deg, #ff5d7a 0%, #c9184a 100%);
    --tnb-g6: linear-gradient(135deg, #a855f7 0%, #5b21b6 100%);
}

/* Dark navbar */
.tnb-navbar {
    background: rgba(7, 13, 36, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tnb-ink-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.tnb-navbar .btn-menu-toggle { color: #ffffff; }
.tnb-navbar .btn-menu-toggle:hover, .tnb-navbar .btn-menu-toggle:focus { color: var(--tnb-yellow); }
.tnb-navbar .navbar-nav .nav-link { color: #cbd5e1; }
.tnb-navbar .navbar-nav .nav-link:hover,
.tnb-navbar .navbar-nav .nav-link:focus,
.tnb-navbar .navbar-nav .nav-link.show { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.tnb-navbar .navbar-nav .nav-link.active { background: var(--tnb-g1); color: #ffffff; }
.tnb-navbar .btn-tnb-login { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.45); }
.tnb-navbar .btn-tnb-login:hover, .tnb-navbar .btn-tnb-login:focus { background: #ffffff; border-color: #ffffff; color: var(--tnb-ink); }
.tnb-navbar .mobile-header-actions { border-top-color: var(--tnb-ink-line); }

/* Breadcrumb joins the dark hero */
.breadcrumb-bar { background: var(--tnb-ink); border-bottom: 1px solid var(--tnb-ink-line); }
.breadcrumb-bar .breadcrumb { --bs-breadcrumb-divider-color: #64748b; }
.breadcrumb-bar .breadcrumb a { color: #94a3b8; }
.breadcrumb-bar .breadcrumb a:hover { color: var(--tnb-yellow); }
.breadcrumb-bar .breadcrumb-item.active { color: #ffffff; }

/* Motion hero */
.tnb-hero-motion {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 3.5rem;
    background: radial-gradient(120% 90% at 85% 0%, #142a66 0%, var(--tnb-ink-2) 40%, var(--tnb-ink) 75%);
    color: #e2e8f0;
    isolation: isolate;
}
.tnb-hero-has-stats { padding-bottom: 6rem; }
.tnb-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.2px);
    background-size: 24px 24px;
}
.tnb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    will-change: transform;
}
.tnb-orb-1 { width: 440px; height: 440px; top: -160px; left: -120px; background: #ff5a00; animation: tnbDrift1 16s ease-in-out infinite alternate; }
.tnb-orb-2 { width: 380px; height: 380px; bottom: -200px; right: 12%; background: #00a443; opacity: 0.42; animation: tnbDrift2 19s ease-in-out infinite alternate; }
.tnb-orb-3 { width: 280px; height: 280px; top: 18%; right: -90px; background: #ffc300; opacity: 0.3; animation: tnbDrift3 23s ease-in-out infinite alternate; }
@keyframes tnbDrift1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(140px, 90px) scale(1.18); } }
@keyframes tnbDrift2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-160px, -70px) scale(1.12); } }
@keyframes tnbDrift3 { 0% { transform: translate(0, 0) scale(0.9); } 100% { transform: translate(-110px, 120px) scale(1.2); } }

.tnb-hero-motion h1 {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(1.85rem, 1.15rem + 2.5vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.5px;
}
.tnb-h1-hl {
    display: block;
    background: linear-gradient(90deg, #ff7a1a 0%, #ffb000 60%, #ffd84d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 106, 0, 0.35));
}
.tnb-hero-motion .tnb-kicker {
    background: rgba(255, 195, 0, 0.12);
    color: var(--tnb-yellow);
    border: 1px solid rgba(255, 195, 0, 0.38);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.35rem 0.95rem;
}
.tnb-hero-motion .tnb-lead { color: #cbd5e1; }
.tnb-hero-motion .tnb-updated { color: #94a3b8; }
.tnb-hero-motion .tnb-updated i { color: #22c55e; }
.tnb-hero-motion .tnb-updated a,
.tnb-hero-motion p a:not(.btn) { color: var(--tnb-yellow); text-decoration-color: rgba(255, 195, 0, 0.45); }
.tnb-hero-motion p a:not(.btn):hover { color: #ffffff; }
.tnb-hero-motion .tnb-img-card { border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.tnb-hero-motion .btn-tnb-register { box-shadow: 0 10px 30px rgba(255, 90, 0, 0.45); }

/* Big-number stats strip (overlaps the hero) */
.tnb-stats-wrap { position: relative; z-index: 2; margin-top: -3.5rem; }
.tnb-stat {
    height: 100%;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.4rem 0.9rem 1.2rem;
    box-shadow: 0 16px 36px rgba(7, 13, 36, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tnb-stat:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(7, 13, 36, 0.18); }
.tnb-stat-icon,
.tnb-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(7, 13, 36, 0.18);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.tnb-stat-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; margin-bottom: 0.8rem; }
.tnb-stat:hover .tnb-stat-icon { transform: rotate(-10deg) scale(1.12); }
.tnb-stat-num {
    display: block;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 0.95rem + 1.9vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, var(--tnb-primary) 0%, #ff9500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tnb-stat-label { display: block; margin-top: 0.45rem; font-size: 0.85rem; font-weight: 600; line-height: 1.35; color: var(--text-muted); }

/* Gradient colour sets (stats, tiles) */
.tnb-stat-c1 .tnb-stat-icon, .tnb-tile-c1 .tnb-tile-icon { background: var(--tnb-g1); }
.tnb-stat-c2 .tnb-stat-icon, .tnb-tile-c2 .tnb-tile-icon { background: var(--tnb-g2); }
.tnb-stat-c3 .tnb-stat-icon, .tnb-tile-c3 .tnb-tile-icon { background: var(--tnb-g3); color: #2b1a00; }
.tnb-stat-c4 .tnb-stat-icon, .tnb-tile-c4 .tnb-tile-icon { background: var(--tnb-g4); }
.tnb-stat-c5 .tnb-stat-icon, .tnb-tile-c5 .tnb-tile-icon { background: var(--tnb-g5); }
.tnb-stat-c6 .tnb-stat-icon, .tnb-tile-c6 .tnb-tile-icon { background: var(--tnb-g6); }

/* "Resposta rápida" box */
.tnb-quick {
    margin-top: 2rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff6ec 100%);
    border: 1px solid rgba(255, 90, 0, 0.22);
    border-left: 6px solid var(--tnb-primary);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(255, 90, 0, 0.08);
}
.tnb-quick-head {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tnb-primary);
}
.tnb-quick p { margin: 0; font-size: 1.05rem; line-height: 1.75; color: var(--text-primary); }

/* Link tiles */
.tnb-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tnb-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--tnb-primary), var(--tnb-yellow), var(--tnb-secondary));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.tnb-tile:hover, .tnb-tile:focus-visible { transform: translateY(-8px); box-shadow: 0 24px 46px rgba(7, 13, 36, 0.16); color: inherit; }
.tnb-tile:hover::after, .tnb-tile:focus-visible::after { opacity: 1; }
.tnb-tile-icon { width: 64px; height: 64px; border-radius: 18px; font-size: 1.6rem; }
.tnb-tile:hover .tnb-tile-icon { transform: rotate(-10deg) scale(1.12); box-shadow: 0 14px 28px rgba(255, 90, 0, 0.3); }
.tnb-tile h3 { font-size: 1.15rem; font-weight: 700; margin: 1.1rem 0 0.4rem; }
.tnb-tile p { font-size: 0.93rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 1rem; }
.tnb-tile-more { margin-top: auto; font-size: 0.88rem; font-weight: 700; color: var(--tnb-primary); }
.tnb-tile-more i { transition: transform 0.3s ease; }
.tnb-tile:hover .tnb-tile-more i { transform: translateX(5px); }

/* Gradient icon boxes in every content card (A3) */
.tnb-icon { width: 58px; height: 58px; border-radius: 16px; font-size: 1.45rem; color: #ffffff; box-shadow: 0 8px 18px rgba(7, 13, 36, 0.14); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
.tnb-icon-sm { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }
.tnb-icon-red { background: var(--tnb-g1); color: #ffffff; }
.tnb-icon-blue { background: var(--tnb-g2); color: #ffffff; }
.tnb-icon-yellow { background: var(--tnb-g3); color: #2b1a00; }
.tnb-icon-green { background: linear-gradient(135deg, #34d399 0%, #0f9f6e 100%); color: #ffffff; }
.tnb-icon-navy { background: var(--tnb-g4); color: #ffffff; }
.tnb-info-card:hover .tnb-icon { transform: rotate(-10deg) scale(1.12); box-shadow: 0 14px 28px rgba(255, 90, 0, 0.28); }

/* Footer matches the dark shell */
.site-footer { background: var(--tnb-ink); border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--tnb-primary), var(--tnb-yellow), var(--tnb-secondary)); }

/* Logo on the dark shell: no white box, thin white outline around the letters (alpha-based, follows the glyph shapes) */
.tnb-navbar .site-logo-img,
.site-footer .site-logo-img {
    filter: drop-shadow(1px 0 0 #ffffff) drop-shadow(-1px 0 0 #ffffff) drop-shadow(0 1px 0 #ffffff) drop-shadow(0 -1px 0 #ffffff) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}
.site-footer .footer-logo { background: transparent; padding: 0; border-radius: 0; }

/* WCAG AA contrast (PageSpeed 2026-11-15): brand orange #ff5a00 is 3.1:1 with white. Small text and buttons use
   darker orange shades (white on #cc4400 = 4.8:1; #c43f00 on white = 5.2:1, on #f7f8fc = 4.9:1). Big numbers keep the bright gradient. */
:root { --tnb-primary-strong: #cc4400; --tnb-primary-strong-hover: #a83800; --tnb-primary-text: #c43f00; }
.btn-tnb-register,
.btn-float-red { background: var(--tnb-primary-strong); border-color: var(--tnb-primary-strong); }
.btn-tnb-register:hover, .btn-tnb-register:focus,
.btn-float-red:hover, .btn-float-red:focus { background: var(--tnb-primary-strong-hover); border-color: var(--tnb-primary-strong-hover); }
.tnb-eyebrow, .tnb-quick-head, .tnb-tile-more { color: var(--tnb-primary-text); }
.tnb-navbar .navbar-nav .nav-link.active { background: var(--tnb-primary-strong); }
.nav-badge-red, .badge-18 { background: var(--tnb-primary-strong); }
.badge-ssl { background: var(--tnb-secondary); }

/* Floating bar disabled 2026-11-16 (markup kept in templates/floating-bar.disabled.html): no reserved space at the bottom */
body { padding-bottom: 0; }

/* Image captions (figcaption from @caption / !img ... | caption): facts next to the image for Google Images + AI answers */
.tnb-figcap { margin: 0; padding: 0.7rem 1rem; background: var(--bg-card); border-top: 1px solid var(--border-color); font-size: 0.86rem; line-height: 1.5; color: var(--text-secondary); }
.tnb-hero-motion .tnb-figcap { background: rgba(7, 13, 36, 0.85); border-top-color: rgba(255, 255, 255, 0.1); color: #cbd5e1; }

@media (max-width: 767.98px) {
    .tnb-hero-motion { padding: 2rem 0 2.5rem; }
    .tnb-hero-has-stats { padding-bottom: 5rem; }
    .tnb-stats-wrap { margin-top: -3rem; }
    .tnb-stat { padding: 1.1rem 0.6rem 1rem; border-radius: 16px; }
    .tnb-stat-icon { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 13px; margin-bottom: 0.6rem; }
    .tnb-stat-label { font-size: 0.78rem; }
    .tnb-quick { padding: 1.1rem 1.15rem; }
    .tnb-quick p { font-size: 1rem; }
    .tnb-orb { filter: blur(50px); }
    .tnb-orb-1 { width: 300px; height: 300px; }
    .tnb-orb-2 { width: 260px; height: 260px; }
    .tnb-orb-3 { width: 200px; height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .tnb-orb { animation: none; }
    .tnb-stat, .tnb-tile, .tnb-stat-icon, .tnb-tile-icon, .tnb-tile-more i { transition: none; }
}
