/* ==========================================================================
   TARGA.com — Design System
   Structure: SUDOKU-BY component system. Theme: deep navy + gold,
   Playfair Display headings — heritage watchmaking meets precision software.
   ========================================================================== */

:root {
    --navy: #16233f;
    --navy-dark: #0d1526;
    --navy-mid: #1f3054;
    --navy-light: #eef1f7;
    --navy-border: #ccd5e6;
    --gold: #c9a227;
    --gold-dark: #a9861d;
    --gold-light: #faf6e7;
    --gold-border: #ecdfb0;
    --text: #1c2333;
    --text-muted: #5b6472;
    --text-light: #94a0b1;
    --surface: #ffffff;
    --surface-2: #f7f8fb;
    --surface-3: #eef0f5;
    --border: #e3e7ee;
    --border-focus: #b3a05e;
    --success-bg: #f0fdf4; --success-border: #86efac; --success-text: #166534;
    --danger-bg: #fef2f2;  --danger-border: #fca5a5;  --danger-text: #991b1b;
    --shadow-sm: 0 1px 3px rgba(13, 21, 38, .08);
    --shadow:    0 4px 12px rgba(13, 21, 38, .10);
    --shadow-lg: 0 8px 24px rgba(13, 21, 38, .14);
    --radius: 10px; --radius-sm: 6px; --radius-lg: 16px;
    --nav-height: 64px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* ---- Layout -------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding: 2.5rem 0; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface-2); }
.section-title { font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ---- Nav ----------------------------------------------------------------- */
.site-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; height: var(--nav-height); }
.nav-logo { display: flex; align-items: center; gap: .55rem; margin-right: 2rem; }
.nav-wordmark {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 800; letter-spacing: .12em;
    color: var(--navy);
}
.nav-links { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav-link {
    padding: .4rem .75rem; border-radius: var(--radius-sm);
    font-size: .92rem; font-weight: 500; color: var(--text);
    display: inline-flex; align-items: center; gap: .3rem;
}
.nav-link:hover, .nav-link.active { background: var(--navy-light); color: var(--navy); }
.nav-chev { transition: transform .18s; }
.nav-item-mega { position: relative; }
.nav-item-mega:hover .nav-chev { transform: rotate(180deg); }
.nav-mega {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    width: 680px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(13,21,38,.16);
    padding: 1.4rem 1.5rem 0; z-index: 300;
    opacity: 0; visibility: hidden; translate: 0 6px;
    transition: opacity .15s, translate .15s, visibility .15s;
}
.nav-item-mega:hover .nav-mega, .nav-mega:hover { opacity: 1; visibility: visible; translate: 0 0; }
.nav-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.75rem; }
.nav-mega-heading {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; color: var(--gold-dark); margin-bottom: .45rem;
}
.nav-mega-link { display: block; font-size: .84rem; color: var(--text-muted); padding: .22rem 0; }
.nav-mega-link:hover { color: var(--navy); }
.nav-mega-more { display: block; font-size: .8rem; font-weight: 600; color: var(--navy); padding-top: .3rem; }
.nav-mega-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border); margin: 1.2rem -1.5rem 0;
    padding: .9rem 1.5rem; background: var(--surface-2);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: .84rem; color: var(--text-muted);
}
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-hamburger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-hamburger span {
    display: block; width: 22px; height: 2px; background: var(--navy);
    margin: 5px 0; border-radius: 2px; transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--surface); z-index: 90; overflow-y: auto;
    padding: 1rem 1.5rem 2.5rem;
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity .2s, transform .2s;
}
.nav-mobile-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.mob-link {
    display: block; padding: .8rem .25rem; font-weight: 600;
    border-bottom: 1px solid var(--border); color: var(--text);
}
.mob-heading {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; color: var(--gold-dark);
    margin: 1.2rem 0 .3rem; padding: 0 .25rem;
}
.mob-sub-link { display: block; padding: .55rem 1rem; font-size: .93rem; color: var(--text-muted); }
.nav-mobile-actions { margin-top: 1.5rem; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .55rem 1.25rem; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: .9rem; font-weight: 600;
    border: 2px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); color: #fff; }
.btn-accent { background: var(--gold); color: var(--navy-dark); }
.btn-accent:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy-light); }
.btn-gold-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-gold-outline:hover { background: rgba(201,162,39,.12); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: .35rem .85rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- Cards --------------------------------------------------------------- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-header { padding: 1rem 1.5rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.card-body { padding: 1.5rem; }
.feature-card { padding: 1.75rem; }
.feature-card h3 { margin: .9rem 0 .5rem; }
.feature-card p { font-size: .93rem; margin-bottom: 0; }
.feature-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--navy-light); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
    background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
    color: #fff; overflow: hidden; position: relative;
}
.hero-inner {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem;
    align-items: center; padding: 4.5rem 0;
}
.hero-eyebrow {
    font-size: .74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .18em; color: var(--gold); margin-bottom: 1rem;
}
.hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: 1.1rem; }
.hero p { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 640px; margin-bottom: 1.8rem; }
.hero-cta-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.hero-rule { height: 3px; width: 64px; background: var(--gold); border-radius: 2px; margin-bottom: 1.4rem; }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(140deg, var(--navy-dark), var(--navy)); color: #fff; padding: 3rem 0 2.6rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 900px; margin: .6rem 0 0; }

/* ---- Breadcrumb (one bar, identical on every page) --------------------- */
.breadcrumb-bar {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    list-style: none; display: flex; flex-wrap: wrap; align-items: center;
    gap: .45rem; padding: .7rem 0; margin: 0;
    font-size: .82rem; color: var(--text-light);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb li:last-child span { color: var(--text); font-weight: 600; }
.breadcrumb-sep { color: var(--text-light); }

/* ---- Badges & pills ------------------------------------------------------ */
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; padding: .28rem .7rem; border-radius: 999px;
}
.badge-hub { background: var(--navy-light); color: var(--navy); }
.badge-gold { background: var(--gold-light); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.tag-pill {
    display: inline-block; font-size: .76rem; color: var(--text-muted);
    background: var(--surface-3); border-radius: 999px; padding: .25rem .75rem;
    margin: 0 .35rem .5rem 0;
}

/* ---- Journal cards ------------------------------------------------------- */
.blog-featured {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s; margin-bottom: 2rem;
}
.blog-featured:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13,21,38,.14); }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { padding: 2.2rem; display: flex; flex-direction: column; }
.blog-featured-eyebrow {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--gold-dark); margin-bottom: .8rem;
    display: flex; align-items: center; gap: .4rem;
}
.blog-featured-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; line-height: 1.25; margin-bottom: .8rem; color: var(--text); }
.blog-featured-title:hover { color: var(--navy-mid); }
.blog-featured-excerpt { font-size: .95rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { margin-top: auto; padding-top: 1rem; font-size: .8rem; color: var(--text-light); display: flex; gap: .6rem; align-items: center; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.blog-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-card-accent { height: 4px; background: var(--gold); }
.blog-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--gold-dark); margin-bottom: .5rem; }
.blog-card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--text); margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-title:hover { color: var(--navy-mid); }
.blog-card-excerpt { font-size: .86rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-meta { border-top: 1px solid var(--border); }

/* ---- Magazine article layout (SUDOKU-BY signature) ----------------------- */
.article-hero { position: relative; }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); }
.article-layout {
    display: grid; grid-template-columns: 220px minmax(0,1fr) 260px;
    gap: 2rem; align-items: start; margin-top: 2rem;
}
.article-toc-sidebar, .article-related-sidebar { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.toc-card .card-header { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.toc-list { list-style: none; padding: .6rem 0; }
.toc-list a {
    display: block; font-size: .8rem; color: var(--text-muted);
    padding: .3rem 1rem .3rem calc(1rem - 2px);
    border-left: 2px solid transparent; line-height: 1.4;
}
.toc-list a:hover { color: var(--navy); }
.toc-list a.active { color: var(--navy); font-weight: 600; border-left-color: var(--gold); background: var(--navy-light); }
.toc-list a.toc-h3 { padding-left: 1.6rem; font-size: .76rem; }

.article-head { }
.article-title { font-size: 2.1rem; line-height: 1.22; margin: .8rem 0 1rem; }
.article-byline {
    display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
    font-size: .84rem; color: var(--text-light);
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem;
}
.article-byline strong { color: var(--text); font-weight: 600; }

.article-body { }
.article-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    float: left; font-size: 3.4em; line-height: .85;
    padding: .06em .12em 0 0; color: var(--navy); font-weight: 700;
}
.article-body h2 {
    font-size: 1.45rem; margin-top: 2.4rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border); scroll-margin-top: 5.5rem;
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-body h3 { font-size: 1.08rem; margin-top: 1.6rem; scroll-margin-top: 5.5rem; }
.article-body p { font-size: .97rem; line-height: 1.85; margin: 1rem 0; }
.article-body ul, .article-body ol { font-size: .94rem; line-height: 1.75; color: var(--text-muted); padding-left: 1.4rem; margin: 1rem 0; }
.article-body li { margin-bottom: .45rem; }
.article-body strong { color: var(--text); }
.article-body a { font-weight: 500; border-bottom: 1px solid var(--gold-border); }
.article-body a:hover { border-bottom-color: var(--gold); }

.article-body blockquote.pullquote {
    font-family: var(--font-display); font-size: 1.25rem; font-style: italic;
    color: var(--navy); line-height: 1.5;
    border-left: 4px solid var(--gold); background: var(--gold-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.3rem 1.6rem; margin: 1.8rem 0;
}
.article-body .callout {
    background: var(--navy-light); border: 1px solid var(--navy-border);
    border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.8rem 0;
}
.article-body .callout h3 {
    margin: 0 0 .6rem; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .09em; color: var(--navy);
}
.article-body .callout ul { margin: 0; font-size: .88rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1.5rem 0; }
.article-body th {
    text-align: left; font-size: .74rem; text-transform: uppercase;
    letter-spacing: .05em; background: var(--surface-3);
    padding: .6rem .8rem; border: 1px solid var(--border); color: var(--text);
}
.article-body td { padding: .6rem .8rem; border: 1px solid var(--border); color: var(--text-muted); }
.article-body tr:nth-child(even) td { background: var(--surface-2); }

.article-tags { margin: 2rem 0 0; }

/* FAQ */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .6rem; background: var(--surface); }
.faq-item summary {
    cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; font-size: .93rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.1rem; color: var(--gold-dark); font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-answer { padding: 0 1.1rem 1rem; font-size: .9rem; color: var(--text-muted); }

/* References */
.references { margin-top: 2.5rem; }
.references h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.references ol { font-size: .84rem; color: var(--text-muted); padding-left: 1.3rem; }
.references li { margin-bottom: .5rem; }

/* Author desk box */
.author-box {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: 2.5rem;
}
.author-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.author-box p { font-size: .86rem; margin: .3rem 0 0; }

/* Sidebar cards */
.side-list { list-style: none; padding: .4rem 0; }
.side-list a { display: block; font-size: .85rem; padding: .45rem 1.25rem; color: var(--text-muted); line-height: 1.4; }
.side-list a:hover { color: var(--navy); background: var(--surface-2); }
.side-cta { padding: 1.25rem; }
.side-cta p { font-size: .85rem; }

/* ---- Hub (category) page ------------------------------------------------- */
.hub-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 2.5rem; align-items: start; }
.hub-sidebar { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.hub-intro { font-size: 1rem; }
.hub-intro p { line-height: 1.8; }

/* ---- Product pages ------------------------------------------------------- */
.product-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.product-features { margin: 2.5rem 0; }
.product-body { }
.product-body p { line-height: 1.8; }
.product-body h2 { margin-top: 2rem; }

/* ---- Trust strip --------------------------------------------------------- */
.trust-card { text-align: left; padding: 1.6rem; border-top: 3px solid var(--gold); }
.trust-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.trust-card p { font-size: .88rem; margin: 0; }

/* ---- Forms --------------------------------------------------------------- */
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.form-control {
    width: 100%; padding: .65rem .85rem; font-family: var(--font);
    font-size: .93rem; color: var(--text);
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    outline: none; border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-group { margin-bottom: 1.2rem; }
.form-hint { font-size: .78rem; color: var(--text-light); margin-top: .3rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: .9rem 1.2rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.25rem; border: 1px solid; }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.alert-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }

/* ---- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th {
    text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    background: var(--surface-2); padding: .7rem 1rem; border-bottom: 1px solid var(--border);
    color: var(--text-muted); white-space: nowrap;
}
.data-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:nth-child(even) td { background: var(--surface-2); }
.data-table tr:hover td { background: var(--navy-light); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: #94a0b1; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: .12em; color: var(--gold); margin-bottom: .6rem; }
.footer-desc { font-size: .875rem; color: #94a0b1; }
.footer-heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #e2e6ee; margin-bottom: .8rem; }
.footer-links { list-style: none; }
.footer-links a { display: block; font-size: .875rem; color: #94a0b1; padding: .22rem 0; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid #1e2c4c; padding-top: 1.25rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    font-size: .8rem; color: #5b6472;
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: linear-gradient(140deg, var(--navy-dark), var(--navy-mid)); border-radius: var(--radius-lg); padding: 3rem; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 1.5rem; }

/* ---- Legal pages --------------------------------------------------------- */
.legal-body { }
.legal-body h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-body p, .legal-body li { font-size: .93rem; line-height: 1.75; }
.legal-body ul { color: var(--text-muted); padding-left: 1.4rem; margin: 1rem 0; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
    .article-layout { grid-template-columns: minmax(0,1fr) 260px; }
    .article-toc-sidebar { display: none; }
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; padding: 3rem 0; }
    .hero-media { order: -1; }
    .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    html, body { overflow-x: hidden; max-width: 100vw; }
    .container, .container-sm { padding: 0 1rem; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    /* nav-links carries the flex-grow on desktop; with it hidden the actions
       group needs its own auto margin to stay pinned to the right edge. */
    .nav-actions { margin-left: auto; }
    .nav-logo { margin-right: 0; }
    .nav-hamburger { display: block; margin-right: -.5rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-related-sidebar { position: static; }
    .hub-layout { grid-template-columns: 1fr; }
    .hub-sidebar { position: static; }
    .blog-featured { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-block { grid-column: 1 / -1; border-bottom: 1px solid #1e2c4c; padding-bottom: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .section { padding: 2.5rem 0; }
    .cta-band { padding: 2rem 1.25rem; }
}
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .container, .container-sm { padding: 0 .85rem; }
    .nav-wordmark { font-size: 1.15rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .article-title { font-size: 1.55rem; }
    .hero h1 { font-size: 1.85rem; }
}

/* ==========================================================================
   Article content components — scannable blocks used inside article bodies
   ========================================================================== */
.article-body .quick-answer {
    background: linear-gradient(180deg, var(--gold-light), #fff);
    border: 1px solid var(--gold-border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius); padding: 1.15rem 1.4rem; margin: 0 0 1.75rem;
}
.article-body .quick-answer p { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--text); }
.article-body .quick-answer strong { color: var(--navy); }

.article-body .tip {
    background: var(--surface-2); border: 1px solid var(--border);
    border-left: 4px solid var(--navy); border-radius: var(--radius-sm);
    padding: .95rem 1.2rem; margin: 1.6rem 0;
}
.article-body .tip p { margin: 0; font-size: .92rem; }
.article-body .tip strong { color: var(--navy); }

.article-body .stat-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; margin: 1.75rem 0;
}
.article-body .stat {
    background: var(--navy); color: #fff; border-radius: var(--radius);
    padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem;
}
.article-body .stat-num {
    font-family: var(--font-display); font-size: 1.7rem; font-weight: 800;
    color: var(--gold); line-height: 1;
}
.article-body .stat-cap { font-size: .8rem; color: rgba(255,255,255,.8); line-height: 1.4; }

.article-body .bar-chart {
    margin: 1.75rem 0; padding: 1.25rem 1.4rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.article-body .bar-row {
    display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto;
    align-items: center; gap: .8rem; margin-bottom: .7rem;
}
.article-body .bar-row:last-child { margin-bottom: 0; }
.article-body .bar-label { font-size: .84rem; font-weight: 600; color: var(--text); }
.article-body .bar-track { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.article-body .bar-fill {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--navy-mid), var(--gold));
    border-radius: 999px;
}
.article-body .bar-val { font-size: .8rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Figures and captions — explicit main-image semantics */
.article-hero, .hub-figure { margin: 0; }
.article-hero img, .hub-figure img {
    width: 100%; border-radius: var(--radius-lg); object-fit: cover;
}
.article-hero img { max-height: 440px; }
.article-hero figcaption, .hub-figure figcaption {
    font-size: .8rem; color: var(--text-light); padding: .6rem .2rem 0;
    line-height: 1.5; font-style: italic;
}
.tag-pill-link { transition: background .15s, color .15s; }
.tag-pill-link:hover { background: var(--navy); color: #fff; }

@media (max-width: 600px) {
    .article-body .bar-row { grid-template-columns: 1fr; gap: .3rem; }
    .article-body .bar-val { justify-self: end; margin-top: -1.4rem; }
}
.topic-card { display: block; transition: transform .18s, box-shadow .18s, border-color .18s; }
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--gold-border); }
.topic-card h3 { color: var(--navy); }
.topic-card .badge { margin-top: .9rem; }
