/* ============================================
   PME Incentivos — Design System v1
   Profissional · Confiável · Orientado a decisão
   ============================================ */

/* ── CSS Variables ── */
:root {
    /* Brand */
    --brand: #4BA8D4;
    --brand-dark: #3089B5;
    --brand-light: #7DC4E4;
    --brand-subtle: rgba(75, 168, 212, 0.08);
    --brand-glow: rgba(75, 168, 212, 0.12);
    --brand-border: rgba(75, 168, 212, 0.25);

    /* Semantic */
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: var(--brand);

    /* Typography */
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transition */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;

    /* Light theme (default) */
    --bg: #FAFBFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-inset: #F1F4F8;
    --bg-hero: linear-gradient(160deg, #F8FBFF 0%, #EDF5FB 40%, #F0F7FD 100%);

    --text-primary: #1A2332;
    --text-secondary: #4A5568;
    --text-muted: #8896A6;
    --text-inverse: #FFFFFF;

    --border: #E2E8F0;
    --border-light: #EDF2F7;
    --border-focus: var(--brand);

    --shadow-sm: 0 1px 3px rgba(26,35,50,0.04), 0 1px 2px rgba(26,35,50,0.03);
    --shadow: 0 4px 12px rgba(26,35,50,0.06), 0 1px 4px rgba(26,35,50,0.04);
    --shadow-lg: 0 12px 40px rgba(26,35,50,0.08), 0 4px 12px rgba(26,35,50,0.04);
    --shadow-brand: 0 4px 20px rgba(75, 168, 212, 0.2);
}

/* ── Dark theme ── */
[data-theme="dark"] {
    --bg: #0F1419;
    --bg-card: #1A2332;
    --bg-elevated: #1E2A3A;
    --bg-inset: #162029;
    --bg-hero: linear-gradient(160deg, #0F1419 0%, #132030 40%, #0F1924 100%);

    --text-primary: #E8ECF0;
    --text-secondary: #9AABB8;
    --text-muted: #627384;
    --text-inverse: #1A2332;

    --border: #2A3A4E;
    --border-light: #1E2E42;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);

    --brand-subtle: rgba(75, 168, 212, 0.1);
    --brand-glow: rgba(75, 168, 212, 0.15);
}

/* ── Logo — HTML text, theme-adaptive ── */
.logo-pme {
    font-family: 'Nunito', var(--font-body);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--brand);
    transition: color 0.3s ease;
    line-height: 1;
}
.logo-pill {
    display: inline-flex;
    align-items: center;
    background: var(--brand);
    border-radius: 6px;
    padding: 0.3em 0.55em;
    margin-left: 0.15em;
    transition: background 0.3s ease;
    line-height: 1;
    vertical-align: middle;
}
.logo-inc {
    font-family: 'Nunito', var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    line-height: 1;
}

[data-theme="dark"] .logo-pme { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .logo-pill { background: var(--brand); }
[data-theme="dark"] .logo-inc { color: #FFFFFF; }

/* Footer — always dark bg, force light logo colors */
.ft-brand .logo-pme { color: rgba(255,255,255,0.6); }
.ft-brand .logo-pill { background: var(--brand); }
.ft-brand .logo-inc { color: #FFFFFF; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

/* Protect white/light text on dark backgrounds from global a:hover override */
.cta-dark a:hover,
.cta-dark a:focus,
.hp-elig-card a:hover,
.hp-elig-card a:focus,
.th-feat-card:hover,
.th-feat-card:focus,
.sb-cta a:hover,
.sb-cta a:focus,
.ca-cta a:hover,
.ca-cta a:focus,
.ficha-cta a:hover,
.ficha-cta a:focus,
.cat-cta a:hover,
.cat-cta a:focus { color: #fff; }
.hp-elig-btn-secondary:hover { color: #fff !important; }
.hp-elig-btn-primary:hover { color: var(--brand) !important; }
.hp-tools-link:hover { color: var(--brand) !important; }
.btn-white:hover { color: var(--brand-dark) !important; }
.btn-ghost-white:hover { color: #fff !important; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Accessibility ── */
.skip-link {
    position: absolute; top: -100%; left: 16px; padding: 12px 24px;
    background: var(--brand); color: #fff; border-radius: 0 0 8px 8px;
    z-index: 10000; font-size: .9rem; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Utility ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-height); padding: 0 32px;
    background: rgba(250,251,252,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition), border var(--transition);
}
[data-theme="dark"] .site-nav {
    background: rgba(15,20,25,0.95);
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .nav-mega,
[data-theme="dark"] .nav-dropdown-menu {
    background: var(--bg-elevated);
    border-color: var(--border);
}
[data-theme="dark"] .mobile-menu { background: var(--bg); }
[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::after { opacity: 0.3; }
[data-theme="dark"] .incentivo-card,
[data-theme="dark"] .taxonomy-card,
[data-theme="dark"] .art-rel-card,
[data-theme="dark"] .stat-card-compact,
[data-theme="dark"] .sidebar-box { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .badge-perm { background: rgba(99,102,241,0.15); color: #a5b4fc; }
[data-theme="dark"] .badge-announced { background: rgba(245,158,11,0.12); color: #fbbf24; }
[data-theme="dark"] .btn-secondary { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .btn-secondary:hover { background: var(--bg-card); border-color: var(--brand); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
    background: var(--bg-card); border-color: var(--border); color: var(--text-primary);
}
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: var(--text-muted); }
[data-theme="dark"] table th { background: var(--bg-elevated); }
[data-theme="dark"] table td { border-color: var(--border); }
[data-theme="dark"] .breadcrumbs a { color: var(--text-muted); }
[data-theme="dark"] .page-hero { background: var(--bg-hero); }
[data-theme="dark"] .faq-question { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .cookie-banner { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .scroll-top { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] code { background: var(--bg-elevated); color: #a5b4fc; }
[data-theme="dark"] blockquote { background: rgba(75,168,212,0.08); }
[data-theme="dark"] .art-share a { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .art-tag { background: var(--bg-elevated); }
[data-theme="dark"] .ef-kpi, [data-theme="dark"] .mc-kpi, [data-theme="dark"] .mc-phase,
[data-theme="dark"] .mc-rules, [data-theme="dark"] .mc-bonif, [data-theme="dark"] .mc-compare,
[data-theme="dark"] .tx-result, [data-theme="dark"] .ef-chart, [data-theme="dark"] .ef-alert {
    background: var(--bg-card); border-color: var(--border);
}
[data-theme="dark"] .ef-alert.ok { background: rgba(34,197,94,0.08); }
[data-theme="dark"] .ef-alert.warn { background: rgba(245,158,11,0.08); }
[data-theme="dark"] .inc-group-header { border-bottom-color: var(--border); }
[data-theme="dark"] .export-btn { background: var(--bg-card); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .prog-stat { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .prog-entidade-tag { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .prog-subcat { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .prog-link { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .cons-benefit { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .cl-item { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .eopt { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .ereq { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .erc { background: var(--bg-card); border-color: var(--border); }

.nav-logo {
    display: flex; align-items: center; gap: 0;
    text-decoration: none; flex-shrink: 0;
}

.nav-links {
    display: flex; align-items: center; gap: 4px;
}
.nav-links a {
    padding: 8px 16px; border-radius: var(--radius);
    font-size: .875rem; font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition); text-decoration: none;
}
.nav-links a:hover { color: var(--text-primary); background: var(--brand-subtle); }
.nav-links a.active { color: var(--brand); background: var(--brand-subtle); }

/* Nav dropdown (simple + mega) */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 16px; border-radius: var(--radius);
    font-size: .875rem; font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition); background: none; border: none; cursor: pointer;
    font-family: inherit;
}
.nav-dropdown-trigger:hover { color: var(--text-primary); background: var(--brand-subtle); }
.nav-dropdown-trigger.active { color: var(--brand); background: var(--brand-subtle); }
.nav-dropdown-trigger svg { transition: transform .2s; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }

/* Simple dropdown menu (Aprender) */
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.1);
    padding: 8px; z-index: 1000; margin-top: 4px;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block; padding: 10px 14px; font-size: .88rem; font-weight: 500;
    color: var(--text-secondary); border-radius: 8px; text-decoration: none;
    transition: all .15s;
}
.nav-dropdown-menu a:hover { color: var(--brand); background: var(--brand-subtle); }

/* Mega menu (Apoios) */
.nav-mega {
    display: none; position: fixed; left: 50%; transform: translateX(-50%);
    top: 64px; width: 740px; max-width: calc(100vw - 32px);
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.12);
    z-index: 1000; overflow: hidden;
}
.nav-dropdown.open .nav-mega { display: block; }
.nav-mega-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 20px; }
.nav-mega-col { display: flex; flex-direction: column; gap: 2px; }
.nav-mega-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit;
    transition: background .15s;
}
.nav-mega-item:hover { background: var(--brand-subtle); }
.nav-mega-icon { font-size: 1.2rem; line-height: 1.4; flex-shrink: 0; }
.nav-mega-item strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.nav-mega-item small { display: block; font-size: .78rem; color: var(--text-tertiary); margin-top: 1px; }
.nav-mega-footer {
    display: flex; gap: 24px; padding: 14px 20px;
    background: var(--bg-inset); border-top: 1px solid var(--border-light);
}
.nav-mega-footer a {
    font-size: .82rem; font-weight: 600; color: var(--brand); text-decoration: none;
    transition: color .15s;
}
.nav-mega-footer a:hover { color: var(--brand-dark); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-search-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: var(--text-secondary); transition: color var(--transition), background var(--transition); }
.nav-search-btn:hover { color: var(--brand); background: var(--bg-inset); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; background: var(--brand); color: #fff !important;
    border-radius: var(--radius-full); font-size: .85rem; font-weight: 600;
    border: none; transition: all var(--transition); text-decoration: none;
    box-shadow: 0 2px 8px rgba(75,168,212,0.25);
}
.nav-cta:hover {
    background: var(--brand-dark); transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(75,168,212,0.3);
}

.theme-toggle {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius);
    color: var(--text-primary); transition: all var(--transition); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--border); background: var(--bg-elevated); }
.theme-toggle svg {
    width: 18px; height: 18px;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

/* Light mode: show moon (click to go dark), hide sun */
.theme-toggle .icon-sun  { display: none !important; }
.theme-toggle .icon-moon { display: block !important; }

/* Dark mode: show sun (click to go light), hide moon */
[data-theme="dark"] .theme-toggle .icon-sun  { display: block !important; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none !important; }
[data-theme="dark"] .theme-toggle { border-color: var(--border); color: #fbbf24; }
[data-theme="dark"] .theme-toggle:hover { background: rgba(251,191,36,0.1); border-color: #fbbf24; }

.nav-hamburger {
    display: none; width: 38px; height: 38px;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius);
}
.nav-hamburger span {
    width: 18px; height: 2px; background: var(--text-secondary);
    border-radius: 2px; transition: all var(--transition);
}

/* Mobile menu */
.mobile-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 998; backdrop-filter: blur(4px);
}
.mobile-overlay.open { display: block; }

.mobile-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: var(--bg-card); z-index: 999; padding: 80px 24px 24px;
    transition: right var(--transition-slow);
    border-left: 1px solid var(--border-light);
    overflow-y: auto;
}
.mobile-menu.open { right: 0; }

.mobile-menu a {
    display: block; padding: 14px 16px; font-size: .95rem;
    font-weight: 500; color: var(--text-secondary); border-radius: var(--radius);
    transition: all var(--transition); text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--brand); background: var(--brand-subtle); }

.mobile-menu-cta {
    margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-light);
}
.mobile-menu-cta .nav-cta { display: block; text-align: center; }

.mobile-menu-section {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-tertiary); padding: 20px 16px 6px; margin-top: 4px;
    border-top: 1px solid var(--border-light);
}
.mobile-menu-section:first-of-type { border-top: none; margin-top: 8px; }
.mobile-menu-group { padding-left: 12px; border-left: 2px solid var(--border-light); margin-left: 16px; }
.mobile-menu-group a { font-size: .88rem; padding: 10px 16px; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-right .nav-cta { display: none; }
    .site-nav { padding: 0 16px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative; padding: 160px 24px 80px;
    background: var(--bg-hero); overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -300px; right: -200px;
    width: 800px; height: 800px;
    background: radial-gradient(ellipse, rgba(75,168,212,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -300px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(75,168,212,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto; text-align: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-full); font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted);
    margin-bottom: 28px; box-shadow: var(--shadow-sm);
    animation: fadeUp .6s ease both;
}
.hero-badge-dot {
    width: 7px; height: 7px; background: var(--success); border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800; line-height: 1.12; letter-spacing: -.03em;
    margin-bottom: 20px; color: var(--text-primary);
    animation: fadeUp .6s .1s ease both;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
    animation: fadeUp .6s .2s ease both;
}

/* Hero quick search */
.hero-search {
    display: flex; gap: 12px; max-width: 520px; margin: 0 auto 20px;
    animation: fadeUp .6s .3s ease both;
}
.hero-search input {
    flex: 1; padding: 14px 20px; background: var(--bg-card);
    border: 2px solid var(--border); border-radius: var(--radius-lg);
    font-size: .95rem; color: var(--text-primary);
    transition: border var(--transition);
    box-shadow: var(--shadow);
}
.hero-search input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: var(--shadow), 0 0 0 3px var(--brand-glow);
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
    padding: 14px 28px; background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-lg); font-weight: 600;
    font-size: .95rem; transition: all var(--transition);
    box-shadow: var(--shadow-brand); white-space: nowrap;
}
.hero-search button:hover {
    background: var(--brand-dark); transform: translateY(-1px);
}

.hero-stats {
    display: flex; justify-content: center; gap: 40px; margin-top: 40px;
    animation: fadeUp .6s .4s ease both;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-size: 1.8rem; font-weight: 800; color: var(--brand);
    letter-spacing: -.02em;
}
.hero-stat-label {
    font-size: .78rem; color: var(--text-muted); font-weight: 500;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .hero { padding: 120px 16px 60px; }
    .hero-search { flex-direction: column; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-4xl) 24px;
}
.section-header {
    text-align: center; margin-bottom: var(--space-3xl);
}
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--brand); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; letter-spacing: -.02em; color: var(--text-primary);
    margin-bottom: 12px;
}
.section-desc {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 560px; margin: 0 auto; line-height: 1.7;
}

.section-alt { background: var(--bg-inset); }

/* ============================================
   INCENTIVO CARDS
   ============================================ */
.incentivo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px; max-width: var(--max-width); margin: 0 auto;
}

.incentivo-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 28px;
    transition: all var(--transition); position: relative;
    display: flex; flex-direction: column; cursor: pointer;
}
.incentivo-card:hover {
    border-color: var(--brand-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.incentivo-card-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}

.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; flex-shrink: 0;
}
.badge-open { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.2); }
.badge-soon { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.badge-closed { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.15); }
.badge-paused { background: rgba(107,114,128,0.1); color: #6b7280; border: 1px solid rgba(107,114,128,0.2); }
.badge-neutral { background: rgba(99,102,241,0.08); color: #6366f1; border: 1px solid rgba(99,102,241,0.15); }

[data-theme="dark"] .badge-open { background: rgba(34,197,94,0.15); color: #4ade80; }
[data-theme="dark"] .badge-soon { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .badge-closed { background: rgba(239,68,68,0.12); color: #f87171; }
[data-theme="dark"] .badge-neutral { background: rgba(99,102,241,0.15); color: #a5b4fc; }

.incentivo-card-entidade {
    font-size: .72rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
}

.incentivo-card h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
    line-height: 1.35; margin-bottom: 10px;
}
.incentivo-card h3 a {
    color: inherit; text-decoration: none;
    transition: color var(--transition);
}
.incentivo-card h3 a::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
}
.incentivo-card h3 a:hover { color: var(--brand); }

.incentivo-card-excerpt {
    font-size: .88rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 20px; flex: 1;
}

.incentivo-card-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    padding-top: 16px; border-top: 1px solid var(--border-light);
}
.incentivo-card-meta-item {
    display: flex; flex-direction: column; gap: 2px;
}
.incentivo-card-meta-label {
    font-size: .68rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
}
.incentivo-card-meta-value {
    font-size: .9rem; font-weight: 700; color: var(--text-primary);
}

.incentivo-card-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
.tag {
    padding: 3px 10px; background: var(--bg-inset); border-radius: var(--radius-full);
    font-size: .72rem; font-weight: 600; color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ============================================
   TOOLS / FEATURES GRID
   ============================================ */
.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px; max-width: var(--max-width); margin: 0 auto;
}

.tool-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 32px 28px;
    transition: all var(--transition); text-align: center;
    text-decoration: none; display: block;
}
.tool-card:hover {
    border-color: var(--brand-border);
    box-shadow: var(--shadow-lg); transform: translateY(-3px);
}

.tool-card-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: var(--brand-subtle); border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg); display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem;
    transition: all var(--transition);
}
.tool-card:hover .tool-card-icon {
    background: var(--brand-glow); transform: scale(1.05);
}

.tool-card h3 {
    font-size: 1rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 8px;
}
.tool-card p {
    font-size: .85rem; color: var(--text-secondary); line-height: 1.6;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 32px; padding: 40px 24px;
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.trust-item {
    display: flex; align-items: center; gap: 10px;
    font-size: .82rem; color: var(--text-muted); font-weight: 500;
}
.trust-icon {
    width: 36px; height: 36px; background: var(--brand-subtle);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; font-size: 1rem;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
    background: linear-gradient(135deg, #1A2332 0%, #2A3B52 100%);
    padding: var(--space-4xl) 24px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(ellipse, rgba(75,168,212,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.cta-band-inner {
    position: relative; z-index: 1; max-width: 600px; margin: 0 auto;
}
.cta-band h2 {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
    color: #fff; margin-bottom: 12px;
}
.cta-band p {
    font-size: .95rem; color: rgba(255,255,255,.7); margin-bottom: 32px; line-height: 1.7;
}

.cta-form {
    display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
}
.cta-form input {
    flex: 1; padding: 14px 20px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg);
    color: #fff; font-size: .9rem; transition: all var(--transition);
}
.cta-form input::placeholder { color: rgba(255,255,255,.5); }
.cta-form input:focus {
    outline: none; border-color: var(--brand); background: rgba(255,255,255,.15);
}
.cta-form button {
    padding: 14px 28px; background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-lg); font-weight: 700;
    font-size: .9rem; transition: all var(--transition); white-space: nowrap;
}
.cta-form button:hover { background: var(--brand-light); }

@media (max-width: 600px) {
    .cta-form { flex-direction: column; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius);
    font-size: .88rem; font-weight: 600; border: none;
    transition: all var(--transition); text-decoration: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--brand); color: #fff;
    box-shadow: 0 2px 8px rgba(75,168,212,0.2);
}
.btn-primary:hover {
    background: var(--brand-dark); color: #fff;
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(75,168,212,0.3);
}
.btn-secondary {
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost {
    background: transparent; color: var(--brand);
    padding: 8px 16px;
}
.btn-ghost:hover { background: var(--brand-subtle); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.ft {
    background: #111820; color: rgba(255,255,255,.7);
}

.ft-newsletter {
    padding: var(--space-3xl) 24px;
    background: linear-gradient(135deg, #1A2332 0%, #243347 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.ft-nl-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px;
}
.ft-nl-badge {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--brand-light); margin-bottom: 8px;
}
.ft-nl-title {
    font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.ft-nl-desc {
    font-size: .88rem; color: rgba(255,255,255,.55); max-width: 400px; line-height: 1.6;
}
.ft-nl-form {
    display: flex; gap: 10px; flex-shrink: 0;
}
.ft-nl-input {
    padding: 12px 18px; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
    color: #fff; font-size: .88rem; width: 260px; transition: all var(--transition);
}
.ft-nl-input::placeholder { color: rgba(255,255,255,.4); }
.ft-nl-input:focus { outline: none; border-color: var(--brand); background: rgba(255,255,255,.12); }
.ft-nl-btn {
    padding: 12px 24px; background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius); font-weight: 700;
    font-size: .85rem; transition: all var(--transition); white-space: nowrap;
}
.ft-nl-btn:hover { background: var(--brand-light); }

.ft-main {
    padding: 60px 24px 40px;
    max-width: var(--max-width); margin: 0 auto;
}
.ft-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.ft-grid.ft-grid-5 {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}
.ft-logo {
    display: flex; align-items: center; gap: 0;
    text-decoration: none; margin-bottom: 16px;
}
.ft-logo .logo-pme { font-size: 1.1rem; }
.ft-logo .logo-pill { padding: 0.25em 0.45em; }
.ft-logo .logo-inc { font-size: 0.95rem; }
.ft-tagline {
    font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.45);
    max-width: 300px; margin-bottom: 20px;
}

.ft-col h4 {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 20px;
}
.ft-col a {
    display: block; padding: 5px 0; font-size: .88rem;
    color: rgba(255,255,255,.6); text-decoration: none;
    transition: color var(--transition);
}
.ft-col a:hover { color: var(--brand-light); }

.ft-bottom {
    padding: 24px 24px; max-width: var(--max-width); margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.ft-copy { font-size: .78rem; color: rgba(255,255,255,.35); }
.ft-legal {
    display: flex; gap: 20px;
}
.ft-legal a {
    font-size: .78rem; color: rgba(255,255,255,.35);
    text-decoration: none; transition: color var(--transition);
}
.ft-legal a:hover { color: rgba(255,255,255,.6); }
.ft-disclaimer {
    width: 100%; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.04);
    font-size: .72rem; color: rgba(255,255,255,.25); line-height: 1.6;
    text-align: center; margin-top: 8px;
}

@media (max-width: 768px) {
    .ft-nl-inner { flex-direction: column; text-align: center; }
    .ft-nl-desc { margin: 0 auto; }
    .ft-nl-form { flex-direction: column; width: 100%; }
    .ft-nl-input { width: 100%; }
    .ft-grid, .ft-grid.ft-grid-5 { grid-template-columns: 1fr 1fr; }
    .ft-brand { grid-column: 1 / -1; text-align: center; }
    .ft-brand .ft-tagline { max-width: 100%; margin-left: auto; margin-right: auto; }
    .ft-social { justify-content: center; }
    .ft-bottom { flex-direction: column; text-align: center; }
    .ft-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
@media (max-width: 480px) {
    .ft-grid, .ft-grid.ft-grid-5 { grid-template-columns: 1fr; gap: 28px; }
    .ft-brand { text-align: left; }
    .ft-social { justify-content: flex-start; }
    .ft-col a { padding: 6px 0; font-size: .9rem; }
    .ft-legal { flex-direction: column; gap: 8px; }
}

/* Social links */
.ft-social { display: flex; gap: 12px; margin-top: 16px; }
.ft-social a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.5);
    transition: all var(--transition); text-decoration: none;
}
.ft-social a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Livro Reclamações */
.ft-livro-rec { display: inline-flex !important; align-items: center; gap: 4px; }

/* ── Ad Slots ── */
.ad-slot { width: 100%; overflow: hidden; box-sizing: border-box; }
.ad-slot-label {
    font-size: .58rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-muted); text-align: center; margin-bottom: 6px;
    font-family: monospace;
}
.ad-slot ins.adsbygoogle { display: block; width: 100%; }
.ad-slot-placeholder {
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; border: 1px dashed var(--border-light);
    border-radius: 12px; background: var(--bg-inset);
    font-size: .72rem; color: var(--text-muted);
}
.inline-sponsor {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 24px; margin: 36px 0;
    text-align: center;
}
.inline-sponsor .ad-slot-label { margin-bottom: 10px; }
.sidebar-ad { margin-top: 20px; }
.sidebar-ad .ad-slot-placeholder { min-height: 250px; }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    padding: 16px 0; font-size: .82rem;
}
.breadcrumbs a { color: var(--text-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { color: var(--text-muted); }
.breadcrumbs .current { color: var(--text-secondary); font-weight: 600; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-primary); font-size: .9rem;
    transition: border var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .85rem; color: var(--text-secondary);
}
.form-checkbox input[type="checkbox"] {
    margin-top: 3px; accent-color: var(--brand);
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--bg-elevated); border-top: 1px solid var(--border);
    padding: 20px 24px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cookie-text { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }
.cookie-text a { color: var(--brand); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 600px) {
    .cookie-inner { flex-direction: column; text-align: center; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(16px); animation: fadeUp .5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .1s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .2s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .3s; }

/* ============================================
   PAGES — General content
   ============================================ */
.page-content {
    padding: 120px 24px 60px;
    max-width: 800px; margin: 0 auto;
}
.page-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800; margin-bottom: 24px;
}
.page-content h2 {
    font-size: 1.4rem; font-weight: 700;
    margin-top: 40px; margin-bottom: 16px;
}
.page-content p {
    margin-bottom: 16px; line-height: 1.75;
}

/* Countdown badge */
.countdown {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--radius);
    font-size: .75rem; font-weight: 700;
}
.countdown-urgent { background: rgba(239,68,68,0.1); color: #dc2626; }
.countdown-warning { background: rgba(245,158,11,0.1); color: #d97706; }
.countdown-normal { background: rgba(75,168,212,0.1); color: var(--brand); }

/* ============================================
   RESPONSIVE UPGRADE v2
   ============================================ */

/* ── Page Layouts ── */
.page-hero {
    padding: 140px 24px 60px;
    background: var(--bg-hero);
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.page-hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}
.page-hero-meta {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 12px;
}
.page-hero-meta a { color: var(--brand); }

@media (max-width: 600px) {
    .page-hero { padding: 110px 16px 40px; }
}

/* ── Content Wrapper ── */
.content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) 24px var(--space-3xl);
}
.content-wrap-wide {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) 24px var(--space-3xl);
}
@media (max-width: 600px) {
    .content-wrap, .content-wrap-wide { padding: var(--space-lg) 16px var(--space-2xl); }
}

/* ── Responsive Grid System ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-auto { grid-template-columns: 1fr; }
    .incentivo-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
}

/* ── Stat Cards (reusable) ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: var(--space-xl);
}
.stat-card-compact {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: border-color var(--transition);
}
.stat-card-compact:hover { border-color: var(--brand-border); }
.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.02em;
    line-height: 1.2;
}
.stat-label {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}
.stat-note {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card-compact { padding: 16px 12px; }
    .stat-val { font-size: 1.4rem; }
}

/* ── Content Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--brand-border);
    box-shadow: var(--shadow);
}
.card-clickable { cursor: pointer; text-decoration: none; display: block; color: inherit; }
.card-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-desc {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 12px;
}
.card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-subtle);
    border-radius: var(--radius);
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid var(--brand-border);
}

@media (max-width: 600px) {
    .card { padding: 18px 16px; }
    .card-icon { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ── Timeline Cards (calendario) ── */
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}
.timeline-card:hover { border-color: var(--brand-border); }
.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.timeline-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge-open-tl { background: rgba(16,185,129,.1); color: #059669; }
.badge-urgent-tl { background: rgba(239,68,68,.1); color: #dc2626; }
.badge-closed-tl { background: rgba(107,114,128,.1); color: #6b7280; }
.badge-planned-tl { background: rgba(59,130,246,.1); color: #3b82f6; }
[data-theme="dark"] .badge-open-tl { color: #34d399; }
[data-theme="dark"] .badge-urgent-tl { color: #f87171; }
[data-theme="dark"] .badge-planned-tl { color: #60a5fa; }

.timeline-sistema {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}
.timeline-title a { color: inherit; text-decoration: none; }
.timeline-title a:hover { color: var(--brand); }
.timeline-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--text-muted);
}
.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.countdown-urgent { font-weight: 700; color: #dc2626; }
.countdown-soon { font-weight: 700; color: #d97706; }
.countdown-ok { font-weight: 700; color: #059669; }

.timeline-section { margin-bottom: 48px; }
.timeline-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.timeline-section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}
.timeline-section-count {
    background: var(--bg-inset);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 600;
}
.timeline-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .timeline-card { padding: 18px 14px; }
    .timeline-meta { gap: 10px; font-size: .8rem; }
}

/* ── FAQ Accordion ── */
.faq-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-xl);
}
.faq-cat-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.faq-cat-btn:hover { border-color: var(--brand); color: var(--brand); }
.faq-cat-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--brand-border); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--brand); }
.faq-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-muted);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-answer-inner {
    padding: 0 20px 20px;
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-answer-inner a { color: var(--brand); text-decoration: underline; }
.faq-item.open .faq-answer { max-height: 600px; }

@media (max-width: 600px) {
    .faq-question { padding: 16px 14px; font-size: .9rem; }
    .faq-answer-inner { padding: 0 14px 16px; font-size: .85rem; }
}

/* ── Glossary Grid ── */
.glossary-letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: var(--space-xl);
}
.glossary-letter-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.glossary-letter-btn:hover { border-color: var(--brand); color: var(--brand); }
.glossary-letter-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.glossary-letter-btn.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 480px) {
    .glossary-letter-btn { width: 32px; height: 32px; font-size: .78rem; }
}

/* ── Region / Sector Taxonomy Cards ── */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.taxonomy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}
.taxonomy-card:hover {
    border-color: var(--brand-border);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.taxonomy-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-subtle);
    border-radius: var(--radius);
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid var(--brand-border);
}
.taxonomy-card-body { flex: 1; min-width: 0; }
.taxonomy-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.taxonomy-card-desc {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}
.taxonomy-card-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.taxonomy-card-stat {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

@media (max-width: 600px) {
    .taxonomy-grid { grid-template-columns: 1fr; }
    .taxonomy-card { padding: 18px 14px; gap: 12px; }
    .taxonomy-card-icon { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ── Info Table (responsive) ── */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.info-table th, .info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.info-table th {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    background: var(--bg-inset);
}
.info-table tr:hover td { background: var(--brand-subtle); }

/* Scroll on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}
.table-responsive table { min-width: 500px; }

@media (max-width: 600px) {
    .info-table th, .info-table td { padding: 10px 12px; font-size: .82rem; }
}

/* ── Search Page ── */
.search-box {
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    display: flex;
    gap: 10px;
}
.search-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: .95rem;
    color: var(--text-primary);
    transition: border var(--transition);
}
.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.search-input::placeholder { color: var(--text-muted); }

@media (max-width: 600px) {
    .search-box { flex-direction: column; }
}

/* ── Incentivo Detail ── */
.incentivo-detail {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) 24px var(--space-3xl);
}
.incentivo-main { min-width: 0; }
.incentivo-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    align-self: start;
}
.incentivo-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}
.incentivo-sidebar-card h3 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .incentivo-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .incentivo-sidebar {
        position: static;
        order: -1;
    }
}

/* ── Article Layout ── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) 24px var(--space-3xl);
}
.article-body {
    max-width: 720px;
    min-width: 0;
}
.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-primary);
}
.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-primary);
}
.article-body p {
    margin-bottom: 16px;
    line-height: 1.75;
}
.article-body ul, .article-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body a { color: var(--brand); text-decoration: underline; }
.article-body img {
    border-radius: var(--radius);
    margin: 24px 0;
}
.article-body blockquote {
    border-left: 3px solid var(--brand);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--brand-subtle);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .88rem;
}
.article-body th, .article-body td {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    text-align: left;
}
.article-body th {
    background: var(--bg-inset);
    font-weight: 700;
    font-size: .82rem;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── Alert / Highlight Box ── */
.alert-box {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .9rem;
    line-height: 1.6;
}
.alert-info {
    background: rgba(75,168,212,0.08);
    border: 1px solid rgba(75,168,212,0.2);
    color: var(--brand-dark);
}
.alert-success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #16a34a;
}
.alert-warning {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    color: #d97706;
}
.alert-danger {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
    color: #dc2626;
}

/* ── Pill Tags ── */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
    background: var(--bg-inset);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all var(--transition);
}
.pill:hover {
    border-color: var(--brand-border);
    color: var(--brand);
    background: var(--brand-subtle);
}
.pill-brand {
    background: var(--brand-subtle);
    border-color: var(--brand-border);
    color: var(--brand);
}

/* ── CTA Section (reusable) ── */
.cta-section {
    text-align: center;
    padding: var(--space-3xl) 24px;
    background: var(--bg-inset);
}
.cta-section h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-section p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

/* ── Empty States ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-icon {
    font-size: 3rem;
    opacity: .3;
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: .9rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Scroll to Top ── */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}
.scroll-top svg { width: 20px; height: 20px; }

/* ── Focus visible for keyboard users ── */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ── Smooth touch targets ── */
@media (pointer: coarse) {
    .btn { min-height: 44px; }
    .nav-links a { padding: 10px 16px; }
    .faq-question { min-height: 48px; padding: 16px 16px; }
    .glossary-letter-btn { min-width: 44px; min-height: 44px; }
    .pill { padding: 6px 14px; font-size: .8rem; }
}

/* ── Print ── */
@media print {
    .site-nav, .mobile-menu, .mobile-overlay, .cookie-banner,
    .ft, .scroll-top, .nav-cta, .theme-toggle { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .incentivo-card, .timeline-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Loading Skeleton ── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-inset) 25%, var(--bg-card) 50%, var(--bg-inset) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Button Outline ── */
.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}
.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* ── Gap utilities ── */
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }

/* ── Text utilities ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .75rem; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── Margin/Padding utilities ── */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.mb-2xl { margin-bottom: 48px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }

/* ============================================
   INCENTIVO FICHA (detail page)
   ============================================ */
.ficha-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px 60px;
}
.ficha-main h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.ficha-main h2:first-of-type { margin-top: 24px; }
.ficha-main p, .ficha-main li {
    line-height: 1.75;
    color: var(--text-secondary);
}
.ficha-main ul { padding-left: 20px; margin: 12px 0; }
.ficha-main li { margin-bottom: 8px; }
.ficha-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    align-self: start;
}
.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-box h4 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row-label {
    font-size: .82rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sidebar-row-value {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}
.ficha-hero { padding: 12px 0 8px; }
.ficha-hero h1 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 12px 0 8px;
}
.ficha-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.ficha-faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.ficha-faq-q {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    transition: background var(--transition);
    border: none;
    width: 100%;
    font-size: .95rem;
    text-align: left;
}
.ficha-faq-q:hover { background: var(--bg-inset); }
.ficha-faq-q::after {
    content: "＋";
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}
.ficha-faq-item.open .ficha-faq-q::after { content: "−"; }
.ficha-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.ficha-faq-item.open .ficha-faq-a { max-height: 500px; }
.ficha-faq-a-inner {
    padding: 0 20px 16px;
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.ficha-timeline { position: relative; padding-left: 24px; }
.ficha-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border);
}
.ficha-timeline-item { position: relative; margin-bottom: 20px; padding-left: 16px; }
.ficha-timeline-item::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 50%;
    border: 2px solid var(--bg);
}
.ficha-timeline-date {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ficha-timeline-desc {
    font-size: .88rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.ficha-timeline-diff {
    font-size: .8rem;
    color: var(--brand);
    font-family: var(--font-mono);
    margin-top: 2px;
}
.doc-list { list-style: none; padding: 0; }
.doc-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: .9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.doc-list li::before {
    content: "☐";
    color: var(--brand);
    font-size: 1rem;
}
.share-bar {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.share-bar a {
    padding: 8px 14px;
    background: var(--bg-inset);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}
.share-bar a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

@media (max-width: 900px) {
    .ficha-layout {
        grid-template-columns: 1fr;
        padding: 24px 16px 40px;
    }
    .ficha-sidebar {
        position: static;
        order: -1;
    }
    .sidebar-box { padding: 18px 16px; }
    .sidebar-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .ficha-hero h1 { font-size: 1.3rem; }
    .share-bar a { padding: 6px 10px; font-size: .72rem; }
}

/* ============================================
   EXPLORAR (listing page)
   ============================================ */
.explorar-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 32px;
}
.explorar-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    align-self: start;
}
.filter-group { margin-bottom: 20px; }
.filter-group label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: .85rem;
}
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--brand);
}
.filter-reset {
    font-size: .8rem;
    color: var(--brand);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}
.explorar-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.results-count {
    font-size: .88rem;
    color: var(--text-secondary);
}
.results-count strong { color: var(--text-primary); }

@media (max-width: 900px) {
    .explorar-layout { grid-template-columns: 1fr; }
    .explorar-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .filter-group { margin-bottom: 0; }
}
@media (max-width: 480px) {
    .explorar-sidebar { grid-template-columns: 1fr; }
}

/* ============================================ */
/* UX/UI AUDIT FIXES — 2026-02-24              */
/* ============================================ */

/* ── 1. MAIN-FOOTER SPACING ── */
/* Global padding to ensure content never hides behind fixed nav */
main#main {
    padding-bottom: var(--space-3xl);
    padding-top: calc(var(--nav-height) + 48px);
    min-height: 80vh;
}

/* Remove bottom padding when page ends with CTA (avoids gap before footer newsletter) */
main#main:has(.cta-section:last-child) {
    padding-bottom: 0;
}
.cta-section:last-child {
    margin-bottom: 0;
}

/* Pages with full-width heroes handle their own padding */
main#main:has(.hp-hero),
main#main:has(.hero),
main#main:has(.page-hero),
main#main:has(.prog-hero),
main#main:has(.cs-hero),
main#main:has(.al-hero),
main#main:has(.cat-hero),
main#main:has(.ca-hero),
main#main:has(.hero-compact),
main#main:has(.th-hero) {
    padding-top: 0;
}
/* Fallback for browsers without :has() — use class */
main#main.no-top-pad { padding-top: 0; }

/* ── 2. FONT SIZE ACCESSIBILITY (min 0.75rem = 12px) ── */
/* Override dangerously small fonts */
.ft-nl-badge,
.ft-disclaimer,
.countdown,
.mc-phase-num,
.mc-bonif-row,
.mc-bar-labels span,
.mc-legend-i,
.mc-tbl th,
.cons-badge,
.hp-art-cat,
.art-rel-cat,
.th-feat-badge,
.th-feat-stat-l,
.ef-wf-labels {
    font-size: max(0.72rem, 11px) !important;
}

/* ── 3. FOCUS-VISIBLE STATES ── */
/* Global focus-visible for ALL interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip-to-main for screen readers */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ── 4. TOUCH TARGETS (min 44px on mobile) ── */
@media (max-width: 768px) {
    .btn,
    .nav-links a,
    .ft-col a,
    .status-badge,
    .hp-tool,
    .filter-group select {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .ft-col a {
        padding: 8px 0;
    }
}

/* ── 5. TEXT CONTRAST BOOST ── */
/* Muted text was #8896A6 (4.1:1 on white) — boost to meet AAA */
:root {
    --text-muted-enhanced: #6B7B8D;
}

/* Apply to elements that need better readability */
.hp-inc-excerpt,
.hp-art-excerpt,
.incentivo-card-excerpt,
.mc-chart-sub,
.tool-card p {
    color: var(--text-secondary);
}

/* ── 6. RESPONSIVE TABLE FIX ── */
/* Tables should scroll horizontally on mobile instead of breaking layout */
.ficha-main table,
.mc-tbl-scroll,
table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .ficha-main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .ficha-main table th,
    .ficha-main table td {
        white-space: normal;
        min-width: 100px;
    }
}

/* ── 7. IMAGE LOADING & FALLBACK ── */
img[loading="lazy"] {
    background-color: var(--bg-inset);
}

/* ── 8. PRINT STYLES ── */
@media print {
    .site-nav,
    .ft,
    .cookie-banner,
    .ad-slot,
    .cta-band,
    .hp-cta-band,
    .hp-elig,
    .hp-consult,
    button[type="submit"],
    .mc-tbl-toggle {
        display: none !important;
    }
    
    main {
        padding-top: 0 !important;
    }
    
    .incentivo-card,
    .hp-inc,
    .hp-art {
        break-inside: avoid;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ── 9. SMOOTH SCROLL ── */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── 10. SELECTION HIGHLIGHT ── */
::selection {
    background: rgba(75, 168, 212, 0.35);
    color: var(--text-primary);
}
[data-theme="dark"] ::selection {
    background: rgba(75, 168, 212, 0.55);
    color: #ffffff;
}

/* ── 11. LONG WORD OVERFLOW FIX ── */
h1, h2, h3, h4, h5, h6, p, li, td, th, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ── 12. CTA GRADIENT CARDS — consistent spacing ── */
/* Ensure gradient CTA cards always have bottom margin before footer */
[style*="linear-gradient"][style*="border-radius"]:last-child {
    margin-bottom: 24px;
}

/* ── 13. STATUS BADGE PERMANENTE ── */
.badge-open[style],
.status-badge.badge-open {
    /* Already green — permanente uses same class */
}

/* ── 14. INCENTIVO GRID EQUAL HEIGHTS ── */
.hp-inc-grid {
    align-items: stretch;
}
.hp-inc {
    display: flex;
    flex-direction: column;
}
.hp-inc-excerpt {
    flex: 1;
}

/* ── 15. MOBILE NAV FIXES ── */
@media (max-width: 900px) {
    .mobile-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ── 16. LOADING SKELETON FOR LAZY IMAGES ── */
.hp-art-img[loading="lazy"],
img[loading="lazy"]:not([src]) {
    animation: skeleton-pulse 1.5s ease infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================ */
/* HUB ARTICLE STYLES                          */
/* ============================================ */

/* Lead paragraph */
.art-content .art-lead {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-weight: 450;
    border-left: 3px solid var(--brand);
    padding-left: 20px;
    margin-bottom: 32px;
}

/* Table of Contents */
.art-content .art-toc {
    background: var(--bg-inset);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 36px;
}
.art-content .art-toc strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.art-content .art-toc ol {
    padding-left: 20px;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}
.art-content .art-toc li {
    font-size: .88rem;
    padding: 4px 0;
    break-inside: avoid;
}
.art-content .art-toc a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}
.art-content .art-toc a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .art-content .art-toc ol {
        columns: 1;
    }
}

/* Sources section */
.art-content .art-sources {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
}
.art-content .art-sources h3 {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.art-content .art-sources a {
    font-size: .85rem;
    color: var(--brand);
}

/* Hub badge in listings */
.hub-badge {
    display: inline-flex;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--brand), #6366f1);
    color: #fff;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    vertical-align: middle;
    margin-left: 6px;
}

/* Author card at bottom of article */
.art-author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin: 40px 0 32px;
}
.art-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    flex-shrink: 0;
    overflow: hidden;
}
.art-author-info h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.art-author-info h4 a {
    color: var(--text-primary);
    text-decoration: none;
}
.art-author-info h4 a:hover {
    color: var(--brand);
}
.art-author-role {
    font-size: .78rem;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 8px;
}
.art-author-bio {
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .art-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ═══════════════════════════════════════
   BUG FIXES — Responsive + Hover
   ═══════════════════════════════════════ */

/* BUG #1 FIX: Dark background CTA protection */
.cta-dark { color: #fff; }
.cta-dark a { color: #fff; text-decoration: none; }
.cta-dark a:hover, .cta-dark a:focus { color: #fff; opacity: .9; }
.cta-dark .btn-white { display: inline-block; padding: 12px 24px; background: #fff; color: var(--brand); font-weight: 700; border-radius: 10px; text-decoration: none; font-size: .88rem; }
.cta-dark .btn-white:hover { color: var(--brand-dark) !important; transform: translateY(-1px); }
.cta-dark .btn-ghost-white { display: inline-block; padding: 12px 24px; background: rgba(255,255,255,.15); color: #fff; font-weight: 600; border-radius: 10px; text-decoration: none; font-size: .88rem; border: 1px solid rgba(255,255,255,.3); }
.cta-dark .btn-ghost-white:hover { background: rgba(255,255,255,.25); color: #fff !important; }

/* BUG #2 FIX: Homepage categories grid */
.hp-cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 768px) { .hp-cat-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } }
@media (max-width: 768px) { .hp-cat-grid .hp-tool { padding: 20px 14px; } .hp-cat-grid .hp-tool-icon { font-size: 1.6rem; margin-bottom: 8px; } .hp-cat-grid .hp-tool h3 { font-size: .8rem; } .hp-cat-grid .hp-tool p { font-size: .7rem; } }

/* BUG #3 FIX: Calc elegibilidade responsive grids */
.elig-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.elig-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 32px; }
@media (max-width: 600px) {
    .elig-actions { grid-template-columns: 1fr; }
    .elig-kpis { grid-template-columns: 1fr; }
}

/* BUG #4 FIX: Categoria page classes */
.cat-hero { margin-bottom: 40px; }
.cat-hero-icon { font-size: 3rem; margin-bottom: 12px; }
.cat-hero h1 { font-size: clamp(1.6rem,3.5vw,2.2rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -.02em; }
.cat-hero-intro { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; max-width: 700px; }
.cat-stats { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.cat-stat { padding: 12px 20px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; text-align: center; }
.cat-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.cat-stat-label { font-size: .75rem; color: var(--text-muted); }
.cat-cards { display: grid; gap: 20px; margin-bottom: 48px; }
.cat-card { padding: 28px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; }
.cat-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.cat-card p { font-size: .92rem; color: var(--text-secondary); line-height: 1.8; }
.cat-card-tip { background: linear-gradient(135deg,rgba(37,99,235,.04),rgba(99,102,241,.04)); border-color: var(--brand-border); }
.cat-progs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-prog-tag { padding: 6px 14px; background: var(--bg-inset); border-radius: 50px; font-size: .82rem; font-weight: 600; color: var(--text-primary); }
.cat-art-list { display: grid; gap: 12px; }
.cat-art-link { display: flex; gap: 16px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 14px; text-decoration: none; transition: border .2s; align-items: center; }
.cat-art-link:hover { border-color: var(--brand-border); color: var(--text-primary); }
.cat-art-title { font-size: .92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cat-art-excerpt { font-size: .78rem; color: var(--text-muted); }
.cat-art-time { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
.cat-section { margin-bottom: 48px; }
.cat-section h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.cat-cta { background: linear-gradient(135deg,var(--brand),#6366f1); border-radius: 20px; padding: 48px 36px; text-align: center; margin-bottom: 48px; color: #fff; }
.cat-cta h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cat-cta p { font-size: .95rem; opacity: .9; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cat-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
    .cat-cta { padding: 32px 20px; }
    .cat-cta h2 { font-size: 1.2rem; }
}

/* BUG #5 FIX: incentivo-ficha CTA */
.ficha-cta { background: linear-gradient(135deg,var(--brand),#6366f1); border-radius: 20px; padding: 40px 32px; text-align: center; color: #fff; margin-top: 48px; margin-bottom: 64px; }
.ficha-cta h2 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ficha-cta p { opacity: .9; margin-bottom: 20px; font-size: .9rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.ficha-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
    .ficha-cta { padding: 28px 16px; }
}

/* BUG #6 FIX: caso-render responsive grid */
.case-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--text-muted); margin-bottom: 32px; }
.case-kpis { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 16px; margin-bottom: 40px; }

/* BUG #7 FIX: Responsive tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
.table-responsive table { min-width: 500px; }

/* ═══════ Grouped incentivo listing ═══════ */
.inc-group { margin-bottom: 36px; }
.inc-group-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.inc-group-icon { font-size: 1.1rem; }
.inc-group-title { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin: 0; flex: 1; }
.inc-group-count { background: var(--bg-inset); color: var(--text-tertiary); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.inc-show-more {
  display: block; width: 100%; margin-top: 12px; padding: 14px 20px;
  background: var(--bg-card); border: 1px dashed var(--border-light); border-radius: 12px;
  color: var(--brand); font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: all .2s; text-align: center;
}
.inc-show-more:hover { background: var(--brand-bg); border-color: var(--brand); }
.inc-hidden-group { display: contents; }

/* ══════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES — v3.4.1
   ══════════════════════════════════════════════════ */

/* Prevent horizontal overflow globally */
html, body { overflow-x: clip; }
main, .container, .content-wrap, .content-wrap-wide, .prog-body, .prog-desc {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Rich content images responsive */
.prog-desc img, .art-body img, .case-body img { max-width: 100%; height: auto; }

/* Tables always scrollable on mobile */
.ef-tbl, .mc-tbl { display: block; width: 100%; }

@media (max-width: 600px) {
    /* ── Global overflow control ── */
    .container { padding-left: 16px; padding-right: 16px; }

    /* ── Calculator KPI grids ── */
    .elig-kpis { grid-template-columns: 1fr !important; }
    .elig-actions { grid-template-columns: 1fr !important; }

    /* ── Incentivo cards in grouped listings ── */
    .inc-group-header { gap: 8px; }
    .inc-group-title { font-size: .9rem; }
    .inc-show-more { padding: 12px 16px; font-size: .82rem; }

    /* ── Export buttons ── */
    .export-btns { flex-direction: column; align-items: stretch; }
    .export-btn { justify-content: center; }

    /* ── CTA section ── */
    .cta-section { padding: 40px 16px; }
    .cta-section h2 { font-size: 1.2rem; }

    /* ── Breadcrumbs overflow ── */
    .breadcrumbs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }

    /* ── Incentivo ficha sidebar-row ── */
    .sidebar-row { flex-direction: column; gap: 2px; }
    .sidebar-row-value { text-align: left; }

    /* ── Mega-menu overflow prevention ── */
    .nav-mega-grid { grid-template-columns: 1fr !important; }

    /* ── Programa entidades ── */
    .prog-entidade-list { gap: 6px; }
    .prog-entidade-tag { font-size: .78rem; padding: 4px 10px; }

    /* ── Timeline page ── */
    .tl-cards { grid-template-columns: 1fr !important; }

    /* ── Consultoras ── */
    .cons-benefits { grid-template-columns: 1fr !important; }

    /* ── Links úteis ── */
    .links-grid { grid-template-columns: 1fr !important; }

    /* ── FAQ ── */
    .faq-q { font-size: .88rem; padding: 14px 16px; }
    .faq-a { padding: 12px 16px; }

    /* ── Rich content sections ── */
    .prog-desc { font-size: .92rem; }
    .prog-desc h2 { font-size: 1.05rem; }

    /* ── Taxa apoio regional comparison ── */
    .tx-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 380px) {
    /* Extra small phones */
    .prog-stats { grid-template-columns: 1fr !important; }
    .mc-rules-grid { grid-template-columns: 1fr !important; }
    .mc-cmp-row { grid-template-columns: 1fr !important; gap: 4px; }
    .mc-kpis { grid-template-columns: 1fr !important; }
    .ef-kpis { grid-template-columns: 1fr !important; }
    .hp-stats { gap: 16px; }
    .hp-stat-n { font-size: 1.4rem; }
    .stat-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   PME Incentivos — Responsive & Bug Fixes
   Auditoria 26/02/2026
   Adicionar ao final do styles.css
   ============================================ */

/* ── RESP-02: Calculadora Checklist mobile ── */
@media (max-width: 600px) {
    .cl-sel select { font-size: .88rem; min-height: 44px; }
    .cl-actions { flex-direction: column; gap: 8px; }
    .cl-actions .btn { width: 100%; justify-content: center; text-align: center; }
    .cl-item { padding: 14px 12px; }
    .cl-prog { gap: 8px; flex-direction: column; }
    .cl-chk { width: 22px; height: 22px; min-width: 22px; }
}

/* ── RESP-03: Taxa apoio comparação regional overflow ── */
.tx-compare {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
    .tx-compare { margin: 0 -16px; padding: 0 16px; }
    .tx-compare table { min-width: 400px; }
}

/* ── RESP-04: Hero search button full-width mobile ── */
@media (max-width: 480px) {
    .hp-search button,
    .hero-search button { width: 100%; }
}

/* ── RESP-05: Sobre stats em 1 coluna para ecrãs muito pequenos ── */
@media (max-width: 380px) {
    .sb-stats { grid-template-columns: 1fr !important; gap: 10px; }
    .sb-stat { padding: 16px 12px; }
    .sb-stat-v { font-size: 1.4rem; }
}

/* ── RESP-06: Sobre timeline mobile ── */
@media (max-width: 480px) {
    .sb-timeline-item { padding-left: 28px; }
    .sb-timeline::before { left: 4px; }
    .sb-timeline-item::before { left: -28px; width: 8px; height: 8px; }
}

/* ── RESP-08: Contacto sidebar order no mobile ── */
@media (max-width: 768px) {
    .ct-side { order: -1; }
}

/* ── RESP-09: Comece-aqui journey no mobile estreito ── */
@media (max-width: 380px) {
    .ca-step { padding-left: 44px; }
    .ca-step::before { left: -14px; width: 28px; height: 28px; font-size: .75rem; }
    .ca-step-title { font-size: 1rem; }
    .ca-step-text { font-size: .85rem; }
}

/* ── RESP-10: Footer newsletter button full-width ultra-small ── */
@media (max-width: 480px) {
    .ft-nl-btn { width: 100%; text-align: center; }
}

/* ── RESP-01: Artigo layout breakpoint ajustado ── */
@media (max-width: 900px) {
    .art-layout { grid-template-columns: 1fr !important; gap: 24px; }
    .art-toc-col { position: static; max-height: none; }
    .art-ads-col { display: none; }
}

/* ── A11Y: Melhor focus visible para teclado ── */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Não mostrar outline em click (apenas Tab) */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ── FIX: Cookie banner z-index sobre scroll-top ── */
.cookie-banner { z-index: 10000; }
.scroll-top { z-index: 99; }

/* ── FIX: Mega-menu z-index sobre conteúdo ── */
.nav-mega, .nav-dropdown-menu { z-index: 1001; }

/* ── FIX: Mobile menu close button area ── */
@media (max-width: 900px) {
    .mobile-menu {
        padding-top: 24px;
    }
    .mobile-menu::before {
        content: '✕';
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 1.2rem;
        color: var(--text-muted);
        cursor: pointer;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius);
    }
}

/* ── FIX: Incentivo card excerpt overflow ── */
.incentivo-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── FIX: Table horizontal scroll indicator ── */
.table-responsive {
    position: relative;
}
.table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to left, var(--bg), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.table-responsive.has-scroll::after {
    opacity: 1;
}

/* ── FIX: Dark mode adjustments ── */
[data-theme="dark"] .ct-form {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .al-form {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .ca-box {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .cs-what .cs-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .cons-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .ct-side-card {
    background: var(--bg-card);
    border-color: var(--border);
}
/* ── Global focus-visible for keyboard accessibility ── */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}
*:focus:not(:focus-visible) {
    outline: none;
}
