/* Career Reality — Core styles (nav, articles, footer, account) */
/* 
   CAREER REALITY - MASTER LAYOUT SYSTEM
   Principles: Intentional Whitespace, Asymmetry, Multi-Width Rhythm.
*/

:root {
    /* Color System — remapped by theme-premium-dark.css; defaults for SSR */
    --c-page: #06060b;
    --c-surface: #0e0e16;
    --c-ink: #f4f4f5;
    --c-ink-inverse: #f4f4f5;
    --c-white: #0e0e16;
    --c-black: #f4f4f5;
    --c-grey-dark: #d4d4d8;
    --c-grey-mid: #a1a1aa;
    --c-grey-light: #71717a;
    --c-divider: rgba(255, 255, 255, 0.08);
    --c-bg-footer: #0e0e16;

    /* WIDTH SYSTEM (THE CORE FIX) */
    --w-wide: 1100px;
    /* Masthead, Hero (Authority) */
    --w-medium: 840px;
    /* Lists, Audience (Structure) */
    --w-narrow: 640px;
    /* Reading (Intimacy) */

    /* Spacing */
    --space-sm: 16px;
    --space-md: 48px;
    --space-lg: 96px;
    --space-xl: 180px;
    /* Massive Silence */
}

/* Base Reset */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--c-page, #06060b);
    color: var(--c-grey-mid);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    overflow-wrap: break-word;
}

html {
    overflow-x: hidden;
}

/* Image Reset */
img,
iframe,
video {
    max-width: 100%;
    height: auto;
}

/* CONTAINER UTILITIES */
.container-wide {
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.container-medium {
    max-width: var(--w-medium);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.container-reading {
    max-width: var(--w-narrow);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--c-black);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 64px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: var(--space-sm);
    color: var(--c-black);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 20px;
    font-weight: 500;
}

p {
    margin-bottom: 24px;
    max-width: 100%;
}

a {
    color: var(--c-black);
    text-decoration: underline;
    text-decoration-color: var(--c-divider);
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 1;
    color: var(--c-blue-accent, var(--cr-accent));
}

/* Animation Utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* ═══════════════════════════════════════════════
   NAVIGATION — Premium Redesign
   ═══════════════════════════════════════════════ */
.site-header {
    padding: 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: rgba(6, 6, 11, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    z-index: 900;
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

/* ── Brand ── */
.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 100%);
    color: #06060b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}
.brand-wordmark {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-black);
}
.brand-accent {
    font-weight: 400;
    color: var(--c-grey-mid);
}

/* ── Nav core ── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-grey-mid);
    text-decoration: none;
    padding: 0 14px;
    transition: color 0.15s ease;
}
.nav-link:hover { color: var(--c-black); opacity: 1; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--c-black);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ── Dropdown trigger ── */
.nav-dropdown { position: relative; height: 100%; display: inline-flex; align-items: center; }
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-grey-mid);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 14px;
    transition: color 0.15s ease;
}
.nav-dropdown-trigger:hover { color: var(--c-black); opacity: 1; }
.dropdown-arrow { transition: transform 0.2s ease; }

/* ── Standard dropdown ── */
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cr-surface-2);
    border: 1px solid var(--cr-border);
    min-width: 220px;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(4px);
    animation: navDropIn 0.2s ease forwards;
    padding: 6px;
}
@keyframes navDropIn {
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-grey-light);
    padding: 10px 12px 6px;
}
.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-grey-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s ease, color 0.12s ease;
}
.nav-dropdown-content a:hover {
    background: var(--cr-surface-3, #f5f5f5);
    color: var(--c-black);
    opacity: 1;
}
.dropdown-icon {
    font-size: 12px;
    opacity: 0.4;
    transition: transform 0.15s ease;
}
.nav-dropdown-content a:hover .dropdown-icon {
    transform: translateX(2px);
    opacity: 0.8;
}

/* ── Mega dropdown (Explore) ── */
.nav-mega {
    min-width: 680px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    animation: navDropIn 0.2s ease forwards;
}
.nav-mega.show, .nav-mega[style*="block"] {
    display: grid !important;
}
.mega-col {
    padding: 8px;
}
.mega-col + .mega-col {
    border-left: 1px solid var(--c-divider);
}
.nav-mega a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--c-grey-dark);
    transition: background 0.12s ease, color 0.12s ease;
}
.nav-mega a:hover {
    background: var(--cr-surface-3, #f7f7f7);
    opacity: 1;
}
.mega-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.mega-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mega-label strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-black);
}
.mega-label small {
    font-size: 11.5px;
    color: var(--c-grey-mid);
    line-height: 1.4;
}
.mega-highlight {
    background: var(--cr-danger-dim, #fff8f8);
    border: 1px dashed rgba(217, 48, 37, 0.25);
}
.mega-highlight:hover {
    background: var(--cr-danger-dim, #fff0f0) !important;
}

/* ── Search ── */
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--c-divider);
    background: var(--cr-surface-3, #fafafa);
    color: var(--c-grey-mid);
    cursor: pointer;
    transition: all 0.15s ease;
}
.nav-search-toggle:hover {
    background: var(--cr-elevated, #f0f0f0);
    color: var(--c-black);
    border-color: var(--cr-border-strong, rgba(0,0,0,0.12));
    opacity: 1;
}
.nav-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: var(--cr-surface-2, #fff);
    border-radius: 14px;
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.14));
    border: 1px solid var(--c-divider);
    padding: 6px;
    z-index: 1001;
    animation: navDropIn 0.15s ease forwards;
}
.nav-search-form.active {
    display: block;
}
.nav-search-form input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: var(--cr-surface-3, #f8f8f8);
    color: var(--c-black);
}
.nav-search-form input::placeholder { color: var(--c-grey-light); }
.nav-search-form input:focus { background: var(--cr-elevated, #f3f3f3); }
.nav-search-form > button {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-grey-light);
    padding: 4px;
}
.nav-search-form .search-suggestions {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    border: none;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    border-top: 1px solid var(--c-divider);
    margin-top: 4px;
}

/* ── Nav utilities cluster (search, theme, CTA) ── */
.nav-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
    flex-shrink: 0;
}

.nav-utilities .nav-search-toggle,
.nav-utilities .theme-toggle {
    width: 36px;
    height: 36px;
}

.nav-utilities .nav-cta {
    height: 36px;
    margin-left: 0;
}

/* ── Pro CTA Button ── */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #000 0%, #222 100%);
    color: #fff;
    opacity: 1;
}
.nav-cta-price {
    font-weight: 400;
    opacity: 0.7;
    font-size: 12px;
}
.nav-cta--active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.nav-cta--active:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.nav-cta-icon {
    font-size: 10px;
}

/* ── Mobile ── */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}
.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-black);
    transition: all 0.3s ease;
    position: absolute;
}
.mobile-menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.mobile-menu-toggle span:nth-child(2) { transform: translateY(0); }
.mobile-menu-toggle span:nth-child(3) { transform: translateY(6px); }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

.nav-search-toggle--mobile {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--cr-text-secondary);
}

/* Mobile Search Panel */
.mobile-search-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cr-surface-2);
    padding: 12px 16px;
    border-bottom: 1px solid var(--cr-border);
    box-shadow: var(--shadow-md);
    z-index: 998;
}
.mobile-search-panel.active { display: block; }
.mobile-search-panel form {
    display: flex;
    gap: 0;
}
.mobile-search-panel input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px 0 0 10px;
    font-size: 15px;
    outline: none;
}
.mobile-search-panel button {
    padding: 12px 16px;
    background: var(--c-black);
    color: #fff;
    border: 1px solid var(--c-black);
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(2px);
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Slide-out Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--cr-surface, var(--c-white));
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    visibility: hidden;
}
.mobile-nav.active {
    right: 0;
    visibility: visible;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.mobile-nav-inner {
    padding: 80px 20px 40px;
}

.mobile-nav-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--cr-border, var(--c-divider));
}
.mobile-nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cr-text-muted);
    margin-bottom: 8px;
    padding-left: 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--cr-text-secondary, var(--c-grey-mid));
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.12s ease;
}
.mobile-nav-link:hover {
    background: var(--cr-surface-3, #f7f7f7);
    color: var(--cr-text, var(--c-black));
}
.mnl-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.mobile-nav-link--highlight {
    color: #d93025;
    font-weight: 600;
}
.mobile-nav-link .nav-badge {
    font-size: 9px;
    padding: 2px 6px;
}

.mobile-nav-cta {
    padding: 20px 12px;
}
.mobile-pro-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.15s ease;
}
.mobile-pro-btn:hover { transform: scale(1.02); }
.mobile-pro-btn--active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .site-nav {
        display: none !important;
    }
    .mobile-actions {
        display: flex;
    }
    .mobile-nav {
        display: block;
        width: 88%;
    }
    .mobile-menu-overlay {
        display: block;
    }
    .brand-wordmark {
        font-size: 14px;
    }
    .site-header {
        padding: 0;
    }
    .nav-flex {
        padding: 0 16px;
        height: 56px;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Newsletter Signup */
.newsletter-section {
    background: var(--c-black);
    color: var(--c-ink-inverse);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 480px) {
    .az-result-newsletter-form {
        flex-direction: column;
    }
    .az-result-newsletter-input {
        border-right: 2px solid rgba(255,255,255,0.45);
        border-radius: 8px 8px 0 0;
        border-bottom: none;
    }
    .az-result-newsletter-input:focus { border-color: rgba(255,255,255,0.9); }
    .az-result-newsletter-btn {
        border-radius: 0 0 8px 8px;
    }
}


.newsletter-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--c-ink-inverse);
}

.newsletter-desc {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 1.5rem 0;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--c-white);
    background: transparent;
    color: var(--c-ink-inverse);
    font-size: 14px;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    padding: 12px 24px;
    background: var(--c-white);
    color: var(--c-black);
    border: 2px solid var(--c-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-btn:hover {
    background: transparent;
    color: var(--c-ink-inverse);
}

/* Hero */
.hero-statement {
    text-align: left;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--c-grey-dark);
    font-weight: 400;
    max-width: 520px;
    margin-top: 24px;
}

/* Silence */
.silence-gap {
    height: var(--space-xl);
    width: 100%;
}

.editorial-divider {
    border: none;
    border-top: 1px solid var(--c-divider);
    margin: 0;
    width: 100%;
}

/* Audience Grid */
.audience-grid {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.audience-col {
    flex: 1;
    min-width: 280px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-grey-light);
    margin-bottom: 24px;
    display: block;
    border-top: 2px solid var(--c-black);
    padding-top: 16px;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
}

.audience-text {
    font-size: 20px;
    line-height: 1.5;
    color: var(--c-black);
}

/* Article List */
.article-list-item {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--c-divider);
}

.article-list-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-grey-light);
    margin-bottom: text-bottom;
}

.article-list-title {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0 12px 0;
    line-height: 1.15;
}

.article-list-title a {
    text-decoration: none;
    color: var(--c-black);
}

.article-list-summary {
    font-size: 17px;
    color: var(--c-grey-mid);
    max-width: 600px;
}

/* EDITORIAL DATA TABLES (New) */
table.editorial-table {
    width: 100%;
    margin: 0;
    /* Container handles margin */
    border-collapse: collapse;
    font-size: 15px;
    table-layout: fixed;
}

table.editorial-table th {
    text-align: left;
    font-weight: 600;
    color: var(--c-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    padding: 12px 0;
    border-bottom: 2px solid var(--c-black);
}

table.editorial-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--c-divider);
    color: var(--c-grey-dark);
    vertical-align: middle;
}

/* MICRO CHARTS (New - CSS Only) */
.salary-bar-container {
    height: 6px;
    width: 100px;
    /* Fixed match */
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.salary-bar-fill {
    height: 100%;
    background: var(--c-grey-dark);
}

.chart-label {
    font-size: 10px;
    color: var(--c-grey-light);
    margin-top: 4px;
    display: block;
}

/* ARTICLE DATA TABLES (Charts & Tables in Articles) */
.chart-container {
    margin: 32px 0;
    padding: 24px;
    background: #fafafa;
    border: 1px solid var(--c-divider);
    border-radius: 4px;
}

.chart-container h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-black);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-black);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}

.data-table th {
    text-align: left;
    font-weight: 600;
    color: var(--c-black);
    background: #f0f0f0;
    padding: 12px 16px;
    border: 1px solid var(--c-divider);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 12px 16px;
    border: 1px solid var(--c-divider);
    color: var(--c-grey-dark);
    vertical-align: top;
    line-height: 1.4;
}

.data-table tr:nth-child(even) {
    background: #f9f9f9;
}

.data-table tr:hover {
    background: #f0f0f0;
}

/* First column styling */
.data-table td:first-child {
    font-weight: 500;
    color: var(--c-black);
}

/* Mobile responsive tables */
@media (max-width: 768px) {
    .chart-container {
        padding: 16px;
        margin: 24px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .data-table th {
        font-size: 10px;
    }
}

/* Article Detail */
.article-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.article-header h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

/* Footer */
footer {
    background-color: var(--c-bg-footer);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
    font-size: 13px;
    color: var(--c-grey-mid);
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-xl: 64px;
        /* Reduced from 120px */
        --space-lg: 48px;
        /* Reduced from 96px */
        --space-md: 24px;
        /* Reduced from 48px */
    }

    h1 {
        font-size: 36px;
        /* Reduced from 42px */
    }

    .hero-subtitle {
        font-size: 18px;
        margin-top: 16px;
    }

    .audience-grid {
        gap: 24px;
    }

    /* Legacy mobile nav rules removed — premium mobile nav handles 768px */
    /* Responsive Tables: Scroller Utility */
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 24px;
    }

    table.editorial-table {
        font-size: 13px;
        min-width: 600px;
        /* Force scroll */
    }

    .salary-bar-container {
        width: 60px;
    }

    /* Newsletter Form Mobile */
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
        gap: 12px;
    }

    .newsletter-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .newsletter-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* SHARE BUTTONS (PREMIUM - ZARA AESTHETIC) */
.share-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--c-black);
    /* Stronger delimiter */
}

.share-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    /* Wide tracking */
    color: var(--c-black);
    margin-bottom: 32px;
    display: block;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 0;
    /* Connected buttons */
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 48px;
    /* Wide buttons */
    border: 1px solid var(--c-black);
    background: transparent;
    color: var(--c-black);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 180px;
    margin-right: -1px;
    /* Overlap borders for shared edge look */
}

.btn-share:hover {
    background: var(--c-black);
    color: var(--c-ink-inverse);
    /* No transform, keep it planted and solid */
    z-index: 1;
    /* Bring engaged button to front */
}

.btn-share span {
    margin-left: 0;
    /* Text only, strict alignment */
}

/* Remove Brand Colors - Strictly Black & White */

/* =================================================================
   ENHANCED FEATURES - COLLAPSIBLE SECTIONS & PAGE POLISH
   ================================================================= */

/* Collapsible/Accordion Sections */
details.collapsible {
    border: 1px solid var(--c-divider);
    margin-bottom: 1rem;
    background: var(--cr-surface-2, #fafafa);
}

details.collapsible summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--c-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.2s;
}

details.collapsible summary::-webkit-details-marker {
    display: none;
}

details.collapsible summary::marker {
    display: none;
}

details.collapsible summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--c-grey-light);
    transition: transform 0.2s;
}

details.collapsible[open] summary::after {
    content: '-';
}

details.collapsible summary:hover {
    background: var(--cr-surface-3, #f0f0f0);
}

details.collapsible .content {
    padding: 1.5rem;
    border-top: 1px solid var(--c-divider);
    font-size: 16px;
    line-height: 1.7;
}

/* Enhanced Contact Page */
.contact-card {
    background: var(--cr-surface-2, #fafafa);
    border: 1px solid var(--c-divider);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-card p {
    margin-bottom: 0.75rem;
    color: var(--c-grey-dark);
}

.contact-email {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    background: var(--c-black);
    color: var(--c-ink-inverse);
    padding: 0.5rem 1rem;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* Enhanced Author Page */
.author-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--c-black);
}

.author-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-grey-light);
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--c-black);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-grey-light);
}

/* Enhanced Category Labels */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    background: var(--c-black);
    color: var(--c-ink-inverse);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Reading Time Badge */
.reading-time {
    display: inline-block;
    font-size: 11px;
    color: var(--c-grey-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1rem;
}

/* Key Takeaway Box */
.key-takeaway {
    background: var(--c-black);
    color: var(--c-ink-inverse);
    padding: 2rem;
    margin: 2rem 0;
}

.key-takeaway h4 {
    color: var(--c-ink-inverse);
    margin-top: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.key-takeaway p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Quote Block Enhancement */
blockquote.pullquote {
    border-left: 3px solid var(--c-black);
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-size: 22px;
    font-style: italic;
    line-height: 1.5;
    color: var(--c-grey-dark);
}

/* Terms/Privacy Page Styles */
.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-divider);
}

.legal-section p,
.legal-section li {
    font-size: 15px;
    color: var(--c-grey-dark);
    line-height: 1.8;
}

/* Related Articles Enhancement */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-card {
    border: 1px solid var(--c-divider);
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    border-color: var(--c-black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-card h3 {
    font-size: 18px;
    margin: 0.5rem 0 0.75rem 0;
    line-height: 1.3;
}

.related-card h3 a {
    text-decoration: none;
}

.related-card .category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-grey-light);
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted var(--c-grey-mid);
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-black);
    color: var(--c-ink-inverse);
    padding: 0.5rem 1rem;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Progress Indicator */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--c-black);
    width: 0;
    z-index: 1000;
    transition: width 0.1s;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .author-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    blockquote.pullquote {
        font-size: 18px;
        padding-left: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    details.collapsible summary {
        padding: 1rem 1.25rem;
    }
    /* Keep bottom content visible above fixed mobile dock. */
    body {
        padding-bottom: 86px;
    }

    .article-header h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .article-list-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .author-name {
        font-size: 32px;
    }

    .key-takeaway p {
        font-size: 16px;
    }

    /* Collapse inline two-column grids used in forms/calculators. */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Tame oversized inline typography for narrow screens. */
    [style*="font-size: 48px"] {
        font-size: 34px !important;
        line-height: 1.15 !important;
    }

    [style*="font-size: 42px"] {
        font-size: 32px !important;
        line-height: 1.15 !important;
    }

    [style*="font-size: 40px"] {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    [style*="font-size: 36px"] {
        font-size: 29px !important;
        line-height: 1.2 !important;
    }

    [style*="font-size: 32px"] {
        font-size: 27px !important;
        line-height: 1.2 !important;
    }

    /* Mobile does not run GSAP reveals on home; keep content visible. */
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto;
    }

    /* Reduce oversized vertical rhythm in article lists on mobile. */
    .article-list-item {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
}

/* ============================================
   AUDIENCE CARDS - MOBILE RESPONSIVE
   ============================================ */

/* Audience cards grid - stack on mobile */
@media (max-width: 800px) {
    .audience-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Hide illustrations on small screens for cleaner layout */
    .audience-card-illustration {
        display: none !important;
    }

    /* Adjust card padding on mobile */
    .audience-card {
        padding: 20px !important;
    }

    /* Smaller heading on mobile */
    .audience-card h3 {
        font-size: 16px !important;
    }

    /* Smaller text on mobile */
    .audience-card ul {
        font-size: 13px !important;
    }

    /* Tagline responsive */
    .audience-tagline {
        font-size: 15px !important;
        padding: 12px 16px !important;
    }

    .audience-tagline span:first-child {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .audience-card {
        padding: 16px !important;
    }

    .audience-card h3 {
        font-size: 15px !important;
    }

    .audience-card ul li {
        font-size: 12px !important;
    }

    .audience-tagline {
        font-size: 14px !important;
        flex-direction: column;
        text-align: center;
        gap: 8px !important;
    }
}

/* Footer partner card responsive */
@media (max-width: 480px) {
    .partner-card {
        flex-direction: column !important;
        text-align: center;
        gap: 8px !important;
    }

    .partner-card span:last-child {
        display: none;
        /* Hide arrow on mobile */
    }

    /* UTILITY DOCK */
}

/* UTILITY DOCK */
.utility-dock {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.dock-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--c-white);
    padding: 16px 12px;
    border: 1px solid var(--c-divider);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--c-grey-mid);
    position: relative;
    transition: all 0.2s ease;
    padding: 8px 4px;
    border-radius: 8px;
}

.dock-item:hover {
    color: var(--c-black);
    background: #f5f5f5;
    opacity: 1;
}

.dock-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.dock-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    white-space: nowrap;
    background: var(--c-black);
    color: var(--c-ink-inverse);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Show label on hover (Desktop) */
.dock-item:hover .dock-label {
    opacity: 1;
    transform: translateY(-50%) translateX(-8px);
}

/* Alert State (Red Dot) */
.dock-alert .dock-icon {
    position: relative;
    color: #cc3333;
}

/* MOBILE RESPONSIVE DOCK */
@media (max-width: 768px) {
    .utility-dock {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        width: 100%;
        padding: 0;
        background: var(--c-white);
        border-top: 1px solid var(--c-divider);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .dock-container {
        flex-direction: row;
        justify-content: space-around;
        padding: 8px 16px 24px 16px;
        /* Extra padding for bottom safe area */
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        gap: 0;
    }

    .dock-item {
        padding: 6px;
        flex: 1;
    }

    .dock-label {
        position: static;
        opacity: 1;
        background: transparent;
        color: var(--c-grey-mid);
        transform: none;
        font-size: 9px;
        margin-top: 2px;
        padding: 0;
        text-align: center;
    }

    .dock-item:hover .dock-label {
        color: var(--c-black);
        transform: none;
    }

    .dock-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* 
   PERFORMANCE UTILITIES 
   Prevents CLS by setting initial animation state in CSS
   (duplicate removed - primary rule is above)
*/


/* ═══════════════════════════════════════════════
   FOOTER — Flipkart-style multi-column
   ═══════════════════════════════════════════════ */
.site-footer {
    padding: 0;
    border-top: 1px solid var(--cr-border, var(--c-divider));
    background: #111116;
    text-align: left;
}

.footer-shell {
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 48px 24px 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--cr-border, var(--c-divider));
}

.footer-col {
    min-width: 0;
}

.footer-col--brand {
    padding-right: 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 100%);
    color: #06060b;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    flex-shrink: 0;
}

.footer-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cr-text, var(--c-black));
}

.footer-brand-accent {
    font-weight: 400;
    color: var(--cr-accent, var(--c-blue-accent));
}

.footer-tagline {
    font-size: 13px;
    color: var(--cr-text-muted, var(--c-grey-light));
    line-height: 1.55;
    margin: 0;
    max-width: 260px;
}

.footer-col-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #878787;
    margin: 0 0 14px;
}

.footer-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col-list a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--cr-text, #fff);
    text-decoration: none;
    line-height: 1.5;
}

.footer-col-list a:hover {
    color: var(--cr-accent, var(--c-blue-accent));
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    padding: 22px 0 28px;
}

.footer-bottom-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cr-text, #fff);
    text-decoration: none;
    white-space: nowrap;
}

.footer-bottom-link:hover {
    color: var(--cr-accent, var(--c-blue-accent));
    opacity: 1;
}

.footer-bottom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    color: #fbbf24;
}

.footer-copy {
    font-size: 12px;
    color: #878787;
    margin: 0 0 0 auto;
    white-space: nowrap;
}

/* Legacy footer classes (other templates) */
.footer-top { margin-bottom: 24px; }
.footer-links-grid,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 28px;
}
.footer-link-group { display: flex; flex-direction: column; gap: 8px; }
.footer-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cr-text-muted, var(--c-grey-light));
    margin: 0 0 4px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Legacy newsletter classes (other pages/tools) */
.footer-divider {
    height: 1px;
    background: var(--c-divider);
    margin: var(--space-md) 0 var(--space-sm);
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: var(--space-sm);
}
.footer-nav a {
    font-size: 13px;
    color: var(--c-grey-mid);
    text-decoration: none;
}
.footer-nav a:hover { color: var(--c-black); opacity: 1; }

@media (max-width: 768px) {
    .site-footer {
        padding: 0;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .footer-shell {
        padding: 32px 16px 0;
    }
    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding-bottom: 24px;
    }
    .footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
        order: -1;
    }
    .footer-bottom-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 20px;
        padding: 18px 0 20px;
    }
    .footer-copy {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* ═══════════════════════════════════════════════
   ARTICLE DETAIL — art-* classes
   ═══════════════════════════════════════════════ */
.art-persona {
    font-size: 15px;
    color: var(--c-grey-mid);
    margin-bottom: 12px;
    font-style: italic;
}
.art-byline {
    font-size: 13px;
    color: var(--c-grey-light);
    margin-bottom: 6px;
}
.art-byline-link {
    color: var(--c-grey-light);
    text-decoration: none;
    font-weight: 600;
}
.art-byline-link:hover { color: var(--c-black); opacity: 1; }
.art-review-meta {
    font-size: 12px;
    color: var(--c-grey-light);
    margin-bottom: 4px;
}

/* Callout boxes */
.art-callout {
    border: 1px solid var(--c-divider);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: #fafafa;
}
.art-callout--muted { background: #f5f5f5; }
.art-callout-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
    color: var(--c-black);
}
.art-callout-list {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.7;
}
.art-callout-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--c-black);
}
.art-callout-last { margin-bottom: 0; }

/* Table of contents */
.art-toc {
    border: 1px solid var(--c-divider);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    background: #fff;
}
.art-toc .art-callout-list a {
    text-decoration: none;
    color: var(--c-grey-mid);
}
.art-toc .art-callout-list a:hover { color: var(--c-black); }

.art-context-note {
    font-size: 13px;
    color: var(--c-grey-light);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--c-divider);
}

/* Evidence section */
.art-evidence-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--c-divider);
}
.art-evidence-item:last-child { border-bottom: none; }
.art-evidence-claim { margin: 0 0 0.25rem; font-size: 15px; }
.art-evidence-sources { margin: 0; font-size: 13px; color: var(--c-grey-light); }

/* FAQ section */
.art-faq {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--c-divider);
}
.art-faq h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.art-faq-list {
    margin: 0;
    padding: 0;
}
.art-faq-item {
    border-bottom: 1px solid var(--c-divider);
    padding: 1rem 0;
}
.art-faq-item:last-child { border-bottom: none; }
.art-faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-black);
    margin: 0 0 0.5rem;
    cursor: default;
    line-height: 1.4;
}
.art-faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-grey-mid);
    margin: 0;
}

/* Verdict section */
.art-verdict-section {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 2px solid var(--c-black);
}
.art-verdict-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-grey-light);
    margin-bottom: 0.5rem;
}
.art-verdict-text {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Share buttons */
.art-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.art-share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-grey-light);
}
.art-share-buttons { display: flex; gap: 8px; }
.art-share-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--c-divider);
    border-radius: 6px;
    text-decoration: none;
    color: var(--c-black);
    transition: background 0.15s;
}
.art-share-btn:hover { background: #f5f5f5; opacity: 1; }

.art-last-updated {
    font-size: 12px;
    color: var(--c-grey-light);
    margin-bottom: 0.5rem;
}
.art-correction-note {
    font-size: 12px;
    color: var(--c-grey-light);
    margin-bottom: 2rem;
}

/* Changelog & sources */
.art-changelog { margin-bottom: 2rem; }
.art-changelog-item { font-size: 14px; margin-bottom: 4px; }
.art-sources { margin-bottom: 2rem; }
.art-source-item { font-size: 14px; }
.art-source-checked { font-size: 12px; color: var(--c-grey-light); }

/* Inline article newsletter CTA */
.az-article-newsletter {
    background: #0f172a;
    border-radius: 12px;
    margin: 2.5rem 0;
    padding: 2rem 1.75rem;
}
.az-article-newsletter-inner { max-width: 100%; }
.az-article-newsletter-headline {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 0.4rem;
    line-height: 1.4;
}
.az-article-newsletter-sub {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}
.az-article-newsletter-form { width: 100%; }
.az-article-newsletter-row {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}
.az-article-newsletter-input {
    flex: 1;
    padding: 11px 14px;
    font-size: 0.9rem;
    border: none;
    outline: none;
    background: #1e293b;
    color: #f1f5f9;
    min-width: 0;
}
.az-article-newsletter-input::placeholder { color: #64748b; }
.az-article-newsletter-btn {
    padding: 11px 18px;
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.az-article-newsletter-btn:hover { background: #7dd3fc; }
.az-article-newsletter-note {
    font-size: 0.75rem;
    color: #475569;
    margin: 0.6rem 0 0;
}
@media (max-width: 480px) {
    .az-article-newsletter-row { flex-direction: column; }
    .az-article-newsletter-btn { border-radius: 0 0 6px 6px; width: 100%; text-align: center; }
    .az-article-newsletter-input { border-radius: 6px 6px 0 0; }
}

/* Related articles grid */
.art-related-section {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.art-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: var(--space-sm);
}
.art-related-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--c-divider);
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s;
}
.art-related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    opacity: 1;
}
.art-related-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-grey-light);
}
.art-related-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-black);
    margin: 6px 0;
    line-height: 1.3;
}
.art-related-excerpt {
    font-size: 13px;
    color: var(--c-grey-mid);
    margin: 0;
    line-height: 1.5;
}

/* Topic pills */
.art-topics-section {
    margin-bottom: var(--space-xl);
}
.art-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-sm);
}
.art-topic-pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--c-divider);
    border-radius: 20px;
    text-decoration: none;
    color: var(--c-grey-mid);
    transition: all 0.15s;
}
.art-topic-pill:hover { border-color: var(--c-black); color: var(--c-black); opacity: 1; }
.art-topic-pill--active {
    background: var(--c-black);
    color: #fff;
    border-color: var(--c-black);
}

@media (max-width: 768px) {
    .art-related-grid { grid-template-columns: 1fr; }
    .art-share { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════ */
.search-hero { background: #0f172a; padding: 2rem 0; }
.search-bar {
    display: flex; max-width: 700px; margin: 0 auto; position: relative;
}
.search-bar input {
    flex: 1; padding: 0.9rem 1.2rem; font-size: 1.1rem; border: 2px solid #334155;
    border-radius: 10px 0 0 10px; background: #1e293b; color: #fff; outline: none;
}
.search-bar input::placeholder { color: #64748b; }
.search-bar input:focus { border-color: #38bdf8; }
.search-bar button {
    padding: 0 1.5rem; background: #38bdf8; color: #0f172a; border: none;
    border-radius: 0 10px 10px 0; font-weight: 700; font-size: 1rem; cursor: pointer;
}

.search-tabs {
    display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin: 1.5rem 0 1rem;
}
.search-tabs a {
    padding: 0.6rem 1.2rem; text-decoration: none; font-size: 0.9rem;
    color: #64748b; font-weight: 600; border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.search-tabs a.active { color: #0f172a; border-bottom-color: #0f172a; }
.search-tabs .count { font-size: 0.75rem; color: #94a3b8; margin-left: 0.3rem; }

.sr-item { padding: 1rem 0; border-bottom: 1px solid #f1f5f9; }
.sr-item:last-child { border: none; }
.sr-type { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 3px; }
.sr-type.article { background: #dbeafe; color: #1e40af; }
.sr-type.company { background: #dcfce7; color: #166534; }
.sr-type.news { background: #fef3c7; color: #92400e; }
.sr-type.salary { background: #f3e8ff; color: #7c3aed; }
.sr-title { font-size: 1.1rem; font-weight: 700; margin: 0.3rem 0 0.2rem; }
.sr-title a { color: #0f172a; text-decoration: none; }
.sr-title a:hover { text-decoration: underline; }
.sr-desc { font-size: 0.9rem; color: #64748b; line-height: 1.5; }
.sr-meta { font-size: 0.8rem; color: #94a3b8; }

.sr-empty { text-align: center; padding: 3rem 1rem; color: #64748b; }
.sr-empty--landing { padding: 4rem 1rem; }
.sr-empty h3 { font-size: 1.3rem; color: #0f172a; }
.sr-suggestions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.sr-suggestion {
    padding: 0.4rem 1rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #0f172a;
    text-decoration: none;
}
.sr-suggestion:hover { background: #e2e8f0; opacity: 1; }

@media (max-width: 768px) {
    .search-bar input { font-size: 1rem; padding: 0.7rem; }
    .search-tabs { overflow-x: auto; }
}

/* ═══════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════ */
.pricing-hero {
    background: #0a0a0a;
    color: #fff;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}
.pricing-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin: 0 0 1rem; color: #fff; }
.pricing-hero p { font-size: 1.15rem; color: #a1a1aa; max-width: 560px; margin: 0 auto 2.5rem; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: -2rem auto 4rem;
    padding: 0 1.5rem;
}

.plan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}
.plan-card.featured { border-color: #000; box-shadow: 0 8px 32px rgba(0,0,0,0.13); transform: scale(1.03); transform-origin: center top; z-index: 1; }
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 99px;
    text-transform: uppercase;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-price { font-size: 2.8rem; font-weight: 900; margin: 0.5rem 0; }
.plan-price span { font-size: 1rem; font-weight: 400; color: #6b7280; }
.plan-desc { font-size: 0.9rem; color: #6b7280; margin-bottom: 1.5rem; }

.plan-features { list-style: none; padding: 0; margin: 0 0 2rem; }
.plan-features li { padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6; font-size: 0.92rem; }
.plan-features li::before { content: "✓ "; font-weight: 700; color: #000; }

.btn-plan {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.btn-plan:hover { opacity: 0.85; }
.btn-plan-primary { background: #000; color: #fff; }
.btn-plan-outline { background: #fff; color: #000; border: 2px solid #000; }
.btn-plan-disabled { background: #f3f4f6; color: #9ca3af; cursor: default; }

.plan-card .loading-msg { display: none; color: #6b7280; font-size: 0.85rem; text-align: center; margin-top: 0.75rem; }
.plan-card .loading-msg::after {
    display: inline-block;
    content: "";
    animation: ldots 1.2s steps(4, end) infinite;
}
@keyframes ldots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
    100% { content: ""; }
}
@media (max-width: 680px) {
    .plan-card.featured { transform: none; order: -1; }
    .pricing-grid { display: flex; flex-direction: column; }
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
    margin: 0.75rem 0 1rem;
}
.billing-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.billing-toggle-btn.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.billing-save-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ROI callout */
.plan-roi {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: #14532d;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.plan-roi-icon { margin-right: 4px; }

/* Annual sub-note */
.plan-price-annual-note {
    font-size: 0.82rem;
    color: #6b7280;
    margin: -0.5rem 0 0.5rem;
}

/* Trust line below CTA */
.plan-trust-line {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0.5rem 0 0;
    letter-spacing: 0.02em;
}

.social-proof { max-width: 700px; margin: 0 auto 4rem; padding: 0 1.5rem; text-align: center; }
.social-proof h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.proof-items { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; }
.proof-item { font-size: 1.5rem; font-weight: 900; }
.proof-item small { display: block; font-size: 0.8rem; font-weight: 400; color: #6b7280; }

.faq-section { max-width: 680px; margin: 0 auto 5rem; padding: 0 1.5rem; }
.faq-section h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.faq-section details { border-top: 1px solid #e5e7eb; }
.faq-section details:last-of-type { border-bottom: 1px solid #e5e7eb; }
.faq-section summary {
    padding: 1.1rem 2.5rem 1.1rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    color: #111;
    transition: color 0.15s;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: #9ca3af;
    line-height: 1;
    transition: color 0.15s;
}
.faq-section details[open] > summary::after { content: "\2212"; color: #111; }
.faq-section summary:hover { color: #000; }
.faq-section details p {
    padding: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   PRO DASHBOARD
   ═══════════════════════════════════════════════ */
.dash-header {
    background: #0a0a0a;
    color: #fff;
    padding: 2.5rem 1.5rem;
}
.dash-header h1 { font-size: 1.8rem; font-weight: 900; margin: 0 0 0.5rem; color: #fff; }
.dash-header p { font-size: 0.95rem; color: #a1a1aa; margin: 0; }
.expiry-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.75rem;
}
.expiry-badge.expiring { background: #f59e0b; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.dash-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}
.dash-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 1rem;
}

.benchmark-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.88rem;
}
.benchmark-row:last-child { border-bottom: none; }
.benchmark-role { font-weight: 600; }
.benchmark-range { color: #4b5563; }
.benchmark-n { font-size: 0.75rem; color: #9ca3af; }

.salary-item { padding: 0.6rem 0; border-bottom: 1px solid #f3f4f6; font-size: 0.88rem; }
.salary-item:last-child { border-bottom: none; }
.salary-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }

.quick-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.quick-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    transition: background 0.15s;
}
.quick-link:hover { background: #000; color: #fff; opacity: 1; }
.quick-link.primary { background: #000; color: #fff; }
.quick-link.primary:hover { opacity: 0.8; }
.quick-link--muted { border-color: #e5e7eb; color: #6b7280; }

.dash-card--full { grid-column: 1 / -1; }
.dash-empty-msg { color: #9ca3af; font-size: 0.9rem; }
.dash-account-info { font-size: 0.9rem; margin: 0 0 1rem; }
.dash-signout { margin-top: 1rem; }
.dash-signout-link { font-size: 0.8rem; color: #9ca3af; text-decoration: underline; }
/* ═══════════════════════════════════════════════
   ONBOARDING PAGE
═══════════════════════════════════════════════ */
.onboard-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}
.onboard-header {
    text-align: center;
    margin-bottom: 56px;
}
.onboard-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d1fae5;
    color: #065f46;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}
.onboard-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}
.onboard-sub {
    font-size: 17px;
    color: var(--c-grey-mid);
    margin: 0;
}
.onboard-section {
    margin-bottom: 48px;
}
.onboard-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-grey-mid);
    margin: 0 0 20px;
}
.onboard-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.onboard-tool-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--c-divider);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.onboard-tool-card:hover {
    border-color: var(--c-black);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.onboard-tool-card--primary {
    border-color: var(--c-black);
    background: #fafafa;
}
.onboard-tool-icon { font-size: 28px; }
.onboard-tool-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}
.onboard-tool-body p {
    font-size: 13px;
    color: var(--c-grey-mid);
    margin: 0;
    line-height: 1.5;
}
.onboard-tool-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-black);
    margin-top: auto;
}
.onboard-pro-banner {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border-radius: 20px;
    padding: 48px;
    color: var(--c-ink-inverse);
    margin-bottom: 40px;
}
.onboard-pro-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}
.onboard-pro-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.onboard-pro-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c-ink-inverse);
    margin: 0 0 20px;
}
.onboard-pro-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.onboard-pro-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}
.onboard-pro-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.onboard-pro-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--c-white);
    color: var(--c-black);
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.onboard-pro-btn:hover { background: #e8e8e8; }
.onboard-pro-note {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin: 0;
}
.onboard-footer-actions {
    text-align: center;
}
.onboard-skip {
    font-size: 14px;
    color: var(--c-grey-mid);
    text-decoration: none;
}
.onboard-skip:hover { color: var(--c-black); }

@media (max-width: 680px) {
    .onboard-tools { grid-template-columns: 1fr; }
    .onboard-pro-inner { grid-template-columns: 1fr; }
    .onboard-pro-banner { padding: 32px 24px; }
    .onboard-pro-action { align-items: flex-start; white-space: normal; }
    .onboard-pro-btn { width: 100%; text-align: center; }
}
/* ===== Audit fixes: new utility classes ===== */

/* result.html � next-7-days section left border */
.section-box--bordered { border-left: 4px solid #000; }

/* layoff_radar.html � section spacing and subtitle */
.az-radar-section { margin-top: var(--space-lg); margin-bottom: var(--space-xl); }
.az-radar-subtitle { max-width: 500px; margin: 0 auto; }

/* layoff_radar.html � risk band colour classes */
.stat-value--risk-low      { color: #16a34a; }
.stat-value--risk-moderate { color: #16a34a; }
.stat-value--risk-elevated { color: #f59e0b; }
.stat-value--risk-high     { color: #ef4444; }
.stat-value--risk-critical { color: #dc2626; }

/* salary.html � page header */
.sal-page-h1    { margin-bottom: 24px; }
.sal-page-intro { margin-bottom: var(--space-md); }

/* salary_calculator.html � inline validation error */
.az-calc-field-error {
    color: #ef4444;
    font-size: 0.82rem;
    margin: 0.25rem 0 0;
    display: block;
}

/* ===== Theme toggle ===== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--c-divider);
    border-radius: 8px;
    background: var(--c-white);
    color: var(--c-grey-mid);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--c-blue-accent);
    border-color: var(--c-grey-light);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--c-blue-accent);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun,
html:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

.mobile-nav-theme {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-divider);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-divider);
    border-radius: 10px;
    background: var(--c-white);
    color: var(--c-black);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-theme-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-theme-toggle .icon-sun,
.mobile-theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .mobile-theme-toggle .icon-sun,
html:not([data-theme="light"]) .mobile-theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .mobile-theme-toggle .icon-moon {
    display: block;
}

/* ===== Toast / Flash messages ===== */
.cr-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
}
.cr-toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    animation: cr-toast-in .2s ease;
}
@keyframes cr-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.cr-toast--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.cr-toast--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.cr-toast--warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.cr-toast--info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.cr-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    color: inherit;
    opacity: 0.7;
    flex-shrink: 0;
}
.cr-toast-close:hover { opacity: 1; }

/* Write-review CTA secondary button */
.dir-cta-btn--secondary {
    background: #fff;
    color: #0f172a;
    border: 2px solid #0f172a;
}
.dir-cta-btn--secondary:hover {
    background: #0f172a;
    color: #fff;
}
