/*
 * Interim GTM — Executive Theme
 * Premium C-suite editorial, understated luxury
 * Charcoal + gold + warm cream
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --charcoal: #1C1917;
    --charcoal-light: #292524;
    --charcoal-muted: #44403C;
    --dark-navy: #0C0A09;
    --gold: #D97706;
    --gold-light: #F59E0B;
    --gold-muted: rgba(217,119,6,0.10);
    --gold-border: rgba(217,119,6,0.25);
    --cream: #FFFBEB;
    --cream-dark: #FEF3C7;
    --warm-100: #FDF6E3;
    --text-primary: #1C1917;
    --text-secondary: #44403C;
    --text-muted: #78716C;
    --border: #D6D3D1;
    --border-light: #E7E5E4;
    --white: #FFFFFF;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === MASTHEAD === */

.masthead {
    background: var(--dark-navy);
    padding: 2rem 1.5rem 0.85rem;
    text-align: center;
    border-bottom: 2px solid var(--gold);
}

.masthead-inner {
    max-width: 50rem;
    margin: 0 auto;
}

.masthead-brand {
    text-decoration: none;
    display: inline-block;
}

.brand-accent {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--white);
    margin-left: 0.2em;
    letter-spacing: 0.06em;
}

.masthead-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.35rem;
    font-weight: 400;
}

/* === NAVIGATION === */

.site-nav {
    background: var(--charcoal);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-nav .nav-inner {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
}

.site-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.site-nav .nav-links li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
}

.site-nav .nav-links li a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.site-nav .nav-links li.active a {
    color: var(--white);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0.4rem 1.15rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0.5rem auto;
}

/* === EXECUTIVE HERO === */

.executive-hero {
    background: var(--dark-navy);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.executive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 2.5rem;
    background: var(--gold);
    opacity: 0.3;
}

.executive-hero .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin: 0 auto;
}

.hero-kicker {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.executive-hero h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.hero-deck {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    max-width: 34rem;
    margin: 0 auto;
}

.hero-rule {
    border: none;
    height: 1px;
    background: var(--gold);
    width: 3.5rem;
    margin: 2rem auto 0;
}

.hero-breadcrumb {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.hero-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-breadcrumb a:hover {
    color: var(--gold-light);
}

.hero-breadcrumb .bc-sep {
    color: rgba(255,255,255,0.2);
    margin: 0 0.5rem;
}

.hero-breadcrumb .bc-current {
    color: rgba(255,255,255,0.5);
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

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

.stat-value {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* === CONTENT === */

.content-wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.2rem;
    margin: 1.75rem 0;
    border: 1px solid var(--border);
}

/* === TYPOGRAPHY === */

.content h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.content h2 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.content h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal-light);
    margin-top: 2.25rem;
    margin-bottom: 0.6rem;
}

.content h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1.35rem;
    color: var(--text-secondary);
}

.content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.content a {
    color: var(--charcoal);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    font-weight: 700;
    transition: color 0.15s;
}

.content a:hover {
    color: var(--gold);
}

.content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 3rem 0;
}

/* === LISTS === */

.content ul, .content ol {
    margin-bottom: 1.35rem;
    padding-left: 1.35rem;
}

.content li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content li strong {
    color: var(--text-primary);
}

/* === TABLES === */

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    display: block;
}

.content thead th {
    background: var(--charcoal);
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.content tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    background: var(--white);
}

.content tbody tr:hover td {
    background: var(--gold-muted);
}

.content tbody tr:last-child td {
    border-bottom: 2px solid var(--charcoal);
}

.content tbody td:first-child {
    font-weight: 700;
    color: var(--charcoal);
}

/* Harvey ball alignment */
.content td:not(:first-child),
.content th:not(:first-child) {
    text-align: center;
}

/* === HARVEY BALL SPRITE === */
/* SVG sprite: 5 balls at 24px = 120x24 */
/* Charcoal stroke (#1C1917), gold fill (#D97706) */

.hb {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAxMjAgMjQiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjRkZGRkZGIi8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFDMTkxNyIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMzYiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiNGRkZGRkYiLz48cGF0aCBkPSJNMzYsMTIgTDM2LDIgQTEwLDEwIDAgMCwxIDQ2LDEyIFoiIGZpbGw9IiNEOTc3MDYiLz48Y2lyY2xlIGN4PSIzNiIgY3k9IjEyIiByPSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMUMxOTE3IiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSI2MCIgY3k9IjEyIiByPSIxMCIgZmlsbD0iI0ZGRkZGRiIvPjxwYXRoIGQ9Ik02MCwxMiBMNjAsMiBBMTAsMTAgMCAwLDEgNjAsMjIgWiIgZmlsbD0iI0Q5NzcwNiIvPjxjaXJjbGUgY3g9IjYwIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIiBzdHJva2U9IiMxQzE5MTciIHN0cm9rZS13aWR0aD0iMiIvPjxjaXJjbGUgY3g9Ijg0IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjRkZGRkZGIi8+PHBhdGggZD0iTTg0LDEyIEw4NCwyIEExMCwxMCAwIDEsMSA3NCwxMiBaIiBmaWxsPSIjRDk3NzA2Ii8+PGNpcmNsZSBjeD0iODQiIGN5PSIxMiIgcj0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFDMTkxNyIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMTA4IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSIjRDk3NzA2Ii8+PGNpcmNsZSBjeD0iMTA4IiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIiBzdHJva2U9IiMxQzE5MTciIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPgo=");
    background-repeat: no-repeat;
    background-size: 110px 22px;
    vertical-align: middle;
    position: relative;
}

.hb-1 { background-position: 0 0; }
.hb-2 { background-position: -22px 0; }
.hb-3 { background-position: -44px 0; }
.hb-4 { background-position: -66px 0; }
.hb-5 { background-position: -88px 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* === BLOCKQUOTES === */

.content blockquote {
    border-left: 3px solid var(--gold);
    padding: 1.35rem 1.75rem;
    margin: 1.75rem 0;
    background: var(--warm-100);
    color: var(--text-secondary);
    font-style: italic;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

.content blockquote strong {
    font-style: normal;
}

/* === CODE === */

.content code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.83em;
    background: var(--cream-dark);
    padding: 0.15em 0.45em;
    border-radius: 0.2rem;
    color: var(--text-primary);
}

.content pre {
    background: var(--dark-navy);
    color: #D6D3D1;
    padding: 1.35rem 1.5rem;
    border-radius: 0.2rem;
    overflow-x: auto;
    margin-bottom: 1.75rem;
    border: 1px solid var(--charcoal);
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* === GLOSSARY STYLES === */

.glossary-page .content h2 {
    border-bottom-color: var(--gold-border);
}

.glossary-entry .content h2:first-of-type {
    margin-top: 0;
    color: var(--charcoal);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.6rem;
}

.glossary-index .content ul {
    list-style: none;
    padding-left: 0;
}

.glossary-index .content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.glossary-index .content ul li:last-child {
    border-bottom: none;
}

.glossary-index .content ul li a {
    text-decoration-color: var(--gold-border);
}

/* === COMPARISON STYLES === */

.comparison-detail .content table {
    margin-top: 1rem;
}

.compare-index .content ul {
    list-style: none;
    padding-left: 0;
}

.compare-index .content ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

/* === FOOTER === */

.site-footer {
    background: var(--dark-navy);
    color: rgba(255,255,255,0.4);
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 2px solid var(--gold);
}

.footer-inner {
    max-width: 46rem;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
}

.footer-brand .brand-accent {
    font-size: 1.05rem;
}

.footer-disclosure {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.footer-edition {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    html { font-size: 16px; }

    .nav-toggle { display: block; }

    .site-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    .site-nav .nav-links.open { display: flex; }

    .site-nav .nav-inner {
        flex-direction: column;
    }

    .site-nav .nav-links li a {
        text-align: center;
        padding: 0.55rem 1rem;
    }

    .masthead { padding: 1.35rem 1rem 0.6rem; }
    .brand-accent, .brand-name { font-size: 1.4rem; }

    .executive-hero { padding: 2.5rem 1rem 2rem; }
    .executive-hero h1 { font-size: 1.85rem; }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.62rem; }

    .content-wrap { padding: 2rem 1rem 3.5rem; }
}

@media (max-width: 480px) {
    .executive-hero h1 { font-size: 1.5rem; }
    .hero-deck { font-size: 0.95rem; }
    .content h1 { font-size: 1.5rem; }
    .content h2 { font-size: 1.2rem; }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
}
