/* ============================================================
   HiTE Insights — shared stylesheet
   Used by every page under /insights/
   Reuses the same visual language as index.html
   ============================================================ */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-coral: #ff6b5b;
    --accent-teal: #4ecdc4;
    --cell-teal: #5a9a9a;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Skip-to-content link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent-coral);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Visible focus rings */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent-coral);
    outline-offset: 3px;
    border-radius: 2px;
}

.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;
}

/* ============================================================
   Top Navigation (mirrors index.html nav)
   ============================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,10,.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    max-width: 1400px; margin: 0 auto;
    padding: .75rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 60px; width: auto; display: block; margin-left: -64px; }
.nav-container .logo-img { margin-left: -96px; }

.nav-links {
    display: flex; gap: 2.5rem; list-style: none; align-items: center;
}
.nav-links > li > a, .nav-links > li > .nav-dropdown-trigger {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: .9rem;
    transition: color .3s ease;
    letter-spacing: .01em;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0;
}
.nav-links a:hover, .nav-links .nav-dropdown-trigger:hover { color: var(--text-primary); }
.nav-links a[aria-current="page"] { color: var(--text-primary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-chevron {
    width: 10px; height: 10px;
    transition: transform .25s ease;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.nav-dropdown[data-open="true"] .nav-chevron,
.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + .75rem);
    right: 0;
    min-width: 240px;
    background: rgba(15, 15, 15, .98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    list-style: none;
    padding: .5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.nav-dropdown[data-open="true"] .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
    display: block;
    padding: .65rem 1.25rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: .88rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible {
    background: rgba(255,255,255,.06);
    color: var(--text-primary);
}
.nav-dropdown-menu a.nav-dropdown-view-all {
    color: var(--cell-teal);
    font-weight: 600;
}
.nav-dropdown-divider {
    height: 1px; background: var(--border-color);
    margin: .35rem 0;
}

/* Right side */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent; color: var(--text-primary);
    padding: .75rem 1.25rem;
    border: 1px solid var(--border-color);
    text-decoration: none; font-weight: 500; font-size: .9rem;
    transition: all .3s ease;
}
.nav-cta:hover { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
.nav-cta svg { width: 14px; height: 14px; transition: transform .3s ease; }
.nav-cta:hover svg { transform: translate(2px, -2px); }

.nav-order-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #c9402f; color: #fff;
    padding: .6rem 1.25rem;
    border: 1px solid #c9402f; border-radius: 4px;
    text-decoration: none; font-weight: 600; font-size: .85rem;
    cursor: pointer; transition: all .3s ease; letter-spacing: .02em;
}
.nav-order-btn:hover { background: #a8321f; border-color: #a8321f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,64,47,.3); }
.nav-order-btn svg { width: 14px; height: 14px; transition: transform .3s ease; }
.nav-order-btn:hover svg { transform: translateX(2px); }

.mobile-menu-toggle {
    display: none; background: transparent; border: none;
    color: var(--text-primary); cursor: pointer; padding: .5rem;
}
.mobile-menu-toggle svg { width: 24px; height: 24px; }

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,.98); backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 1.5rem; padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu > a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 1.25rem; font-weight: 500; letter-spacing: .02em;
    transition: color .3s ease;
}
.mobile-menu > a:hover { color: var(--text-primary); }
.mobile-menu .mobile-cta {
    margin-top: 1rem; padding: .75rem 2rem;
    border: 1px solid var(--border-color);
    font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
}

.mobile-accordion { width: 100%; max-width: 320px; }
.mobile-accordion-trigger {
    width: 100%; background: transparent; border: none;
    color: var(--text-secondary); font-family: inherit;
    font-size: 1.25rem; font-weight: 500; letter-spacing: .02em;
    display: flex; align-items: center; justify-content: center;
    gap: .5rem; cursor: pointer; padding: 0;
}
.mobile-accordion-trigger:hover { color: var(--text-primary); }
.mobile-accordion-trigger .accordion-chevron {
    width: 12px; height: 12px;
    stroke: currentColor; fill: none; stroke-width: 2;
    transition: transform .25s ease;
}
.mobile-accordion[data-open="true"] .accordion-chevron { transform: rotate(180deg); }
.mobile-accordion-panel {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
    margin-top: 0;
}
.mobile-accordion[data-open="true"] .mobile-accordion-panel {
    max-height: 400px; margin-top: 1rem;
}
.mobile-accordion-panel a {
    color: var(--text-muted); text-decoration: none;
    font-size: 1rem; font-weight: 400;
    transition: color .2s ease;
}
.mobile-accordion-panel a:hover { color: var(--text-primary); }

/* ============================================================
   Page-level layout
   ============================================================ */
main { padding-top: 5.5rem; min-height: 100vh; }
.insights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}
.insights-container--wide { max-width: 1400px; }

/* Breadcrumb */
.breadcrumb {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .sep { color: var(--text-muted); opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--text-secondary); }

/* Eyebrow */
.eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent-coral);
    margin-bottom: 1rem;
}
.eyebrow--teal { color: var(--cell-teal); }
.eyebrow--muted { color: var(--text-muted); }

/* ============================================================
   Hub: hero
   ============================================================ */
.insights-hero {
    padding: 3rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}
.insights-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.insights-hero h1 .accent {
    background: linear-gradient(135deg, var(--cell-teal), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.insights-hero .lede {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.insights-hero .audience {
    font-size: .9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Section header (hub & index pages) */
.section-block { margin-bottom: 4.5rem; }
.section-block-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.section-block-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -.02em;
}
.section-block-header .section-link {
    font-size: .85rem;
    color: var(--cell-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}
.section-block-header .section-link:hover { color: var(--accent-teal); }

/* ============================================================
   Featured article cards
   ============================================================ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.article-card {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
    height: 100%;
}
.article-card:hover {
    border-color: var(--cell-teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.article-card .eyebrow { margin-bottom: .75rem; }
.article-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: .75rem;
    color: var(--text-primary);
}
.article-card p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.article-card .read-cta {
    color: var(--cell-teal);
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: auto;
}
.article-card:hover .read-cta { color: var(--accent-teal); }

/* Compact card variant (for "From Insights" block & related blocks) */
.article-card--compact {
    padding: 1.5rem;
}
.article-card--compact h3 { font-size: 1rem; }
.article-card--compact p { font-size: .85rem; margin-bottom: 1rem; }

/* ============================================================
   Browse-by-type blocks
   ============================================================ */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.browse-card {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
    position: relative;
}
.browse-card:hover {
    border-color: var(--cell-teal);
    background: var(--bg-elevated);
}
.browse-card .browse-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--cell-teal);
}
.browse-card .browse-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.browse-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.browse-card .browse-count {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.browse-card p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.browse-card .browse-cta {
    color: var(--cell-teal);
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: auto;
}
.browse-card .coming-soon-badge {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent-coral);
    background: rgba(255, 107, 91, .12);
    border: 1px solid rgba(255, 107, 91, .35);
    padding: .25rem .55rem;
    border-radius: 2px;
}

/* ============================================================
   Related technical resources block (hub bridge)
   ============================================================ */
.related-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}
.related-resources-grid .resource-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background .3s ease;
    display: flex; flex-direction: column; gap: .5rem;
}
.related-resources-grid .resource-card:hover { background: var(--bg-card); }
.related-resources-grid .resource-type {
    font-size: .68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--cell-teal);
}
.related-resources-grid .resource-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: .92rem;
    line-height: 1.4;
}
.related-resources-grid .resource-link {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .5rem;
    display: inline-flex; align-items: center; gap: .35rem;
}
.related-resources-grid .resource-card:hover .resource-link { color: var(--accent-coral); }

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
    background: linear-gradient(135deg, rgba(90,154,154,.12), rgba(78,205,196,.06));
    border: 1px solid var(--cell-teal);
    padding: 2.5rem;
    margin-top: 4rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.cta-strip-text h3 {
    font-size: 1.35rem; font-weight: 600;
    margin-bottom: .35rem;
}
.cta-strip-text p {
    color: var(--text-secondary);
    font-size: .95rem;
}
.cta-strip-actions {
    display: flex; gap: .75rem; flex-wrap: wrap;
}
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.5rem;
    text-decoration: none;
    font-weight: 600; font-size: .9rem;
    cursor: pointer;
    transition: all .3s ease;
    border: 1px solid transparent;
    font-family: inherit;
}
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: var(--accent-coral);
    color: #fff;
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,.05);
}
.btn-teal {
    background: var(--cell-teal);
    color: #fff;
}
.btn-teal:hover {
    background: var(--accent-teal);
    transform: translateY(-2px);
}

/* ============================================================
   Articles index
   ============================================================ */
.articles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.articles-list .article-card { padding: 2rem; }

/* ============================================================
   Article page
   ============================================================ */
.article-shell { max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 4rem; }

.article-header {
    max-width: 800px;
    margin-bottom: 3rem;
}
.article-header h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: .75rem 0 1.25rem;
}
.article-meta {
    font-size: .8rem;
    color: var(--text-muted);
    display: inline-flex; align-items: center; gap: .75rem;
}
.article-meta .dot { color: var(--text-muted); opacity: .4; }
.article-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-left: 3px solid var(--cell-teal);
    padding-left: 1.25rem;
    margin-top: 1.25rem;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 4rem;
    align-items: start;
}

.article-body {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
}
.article-body h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -.01em;
    margin-top: 3rem;
    margin-bottom: 1rem;
    scroll-margin-top: 6.5rem;
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: .75rem;
    scroll-margin-top: 6.5rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body p + p { margin-top: 0; }
.article-body ul, .article-body ol {
    margin: 0 0 1.5rem 1.25rem;
    padding-left: 1rem;
}
.article-body li { margin-bottom: .5rem; }
.article-body a {
    color: var(--cell-teal);
    text-decoration: underline;
    text-decoration-color: rgba(90,154,154,.4);
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.article-body a:hover {
    color: var(--accent-teal);
    text-decoration-color: var(--accent-teal);
}
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body figure {
    margin: 2rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem;
}
.article-body figcaption {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .75rem;
    text-align: center;
    line-height: 1.5;
}
.article-body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border-left: 3px solid var(--accent-coral);
    color: var(--text-primary);
    font-style: italic;
}
.article-body .callout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--cell-teal);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-secondary);
}
.article-body .callout strong { color: var(--cell-teal); }

/* Tables inside article bodies */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: .92rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.5;
}
.article-body thead th {
    background: rgba(255, 255, 255, .04);
}
.article-body th,
.article-body td {
    padding: .75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}
.article-body th {
    color: var(--text-primary);
    font-weight: 600;
}
.article-body td + td,
.article-body th + th {
    border-left: 1px solid var(--border-color);
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover { background: rgba(255, 255, 255, .02); }
.article-body table sup { font-size: .75em; }
@media (max-width: 700px) {
    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
}

/* Inline-CTA buttons inside the article body — override generic article link styling */
.article-body .btn {
    text-decoration: none;
}
.article-body a.btn-teal,
.article-body a.btn-teal:hover,
.article-body a.btn-teal:focus-visible {
    color: #fff;
    text-decoration: none;
    text-decoration-color: transparent;
}
.article-body a.btn-secondary,
.article-body a.btn-secondary:hover,
.article-body a.btn-secondary:focus-visible {
    color: var(--text-primary);
    text-decoration: none;
    text-decoration-color: transparent;
}
.article-body a.btn-primary,
.article-body a.btn-primary:hover,
.article-body a.btn-primary:focus-visible {
    color: var(--bg-primary);
    text-decoration: none;
    text-decoration-color: transparent;
}

/* Sticky TOC sidebar */
.article-toc {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}
.article-toc h2 {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.article-toc ol, .article-toc ul {
    list-style: none;
    margin: 0; padding: 0;
}
.article-toc li { margin: 0; padding: 0; }
.article-toc a {
    display: block;
    padding: .4rem 0;
    font-size: .85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: .75rem;
    margin-left: -.75rem;
    transition: color .2s ease, border-color .2s ease;
    line-height: 1.4;
}
.article-toc a:hover { color: var(--text-primary); }
.article-toc a.is-active {
    color: var(--cell-teal);
    border-left-color: var(--cell-teal);
    font-weight: 600;
}
.article-toc .toc-h3 { padding-left: 1.5rem; font-size: .8rem; }

/* Mobile TOC accordion (replaces sticky sidebar < 900px) */
.article-toc-mobile {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.article-toc-mobile-trigger {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 1rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
}
.article-toc-mobile-trigger .accordion-chevron {
    width: 12px; height: 12px;
    stroke: currentColor; fill: none; stroke-width: 2;
    transition: transform .25s ease;
}
.article-toc-mobile[data-open="true"] .accordion-chevron { transform: rotate(180deg); }
.article-toc-mobile-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.article-toc-mobile[data-open="true"] .article-toc-mobile-panel {
    max-height: 600px;
}
.article-toc-mobile-panel ol, .article-toc-mobile-panel ul {
    list-style: none;
    margin: 0;
    padding: 0 1.25rem 1rem;
}
.article-toc-mobile-panel a {
    display: block;
    padding: .5rem 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .85rem;
    border-bottom: 1px solid var(--border-color);
}
.article-toc-mobile-panel li:last-child a { border-bottom: none; }
.article-toc-mobile-panel a:hover { color: var(--text-primary); }

/* In-article CTA strip */
.article-inline-cta {
    margin-top: 3.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-coral);
}
.article-inline-cta h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: .5rem;
}
.article-inline-cta p {
    color: var(--text-secondary);
    font-size: .92rem;
    margin-bottom: 1.25rem;
}
.article-inline-cta .article-inline-cta-actions {
    display: flex; gap: .75rem; flex-wrap: wrap;
}

/* Related articles */
.related-articles {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.related-articles h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ============================================================
   Placeholder / "Expanding soon" pages
   ============================================================ */
.placeholder-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: left;
}
.placeholder-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: .5rem 0 1.5rem;
}
.placeholder-page .placeholder-lede {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.placeholder-page .placeholder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
}
.placeholder-page .placeholder-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.placeholder-page .placeholder-card p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.placeholder-page .placeholder-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex; gap: 1rem; flex-wrap: wrap;
}

/* ============================================================
   Footer (mirrors index.html)
   ============================================================ */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
}
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-brand .logo { margin-bottom: .5rem; display: inline-block; }
.footer-desc {
    color: var(--text-muted);
    font-size: .9rem; line-height: 1.7;
}
.footer-title {
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .75rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    transition: color .3s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copyright { color: var(--text-muted); font-size: .85rem; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .85rem;
}
.footer-legal a:hover { color: var(--text-primary); }
.disclaimer {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .browse-grid { grid-template-columns: repeat(2, 1fr); }
    .related-resources-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .footer-grid > .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .article-toc { display: none; }
    .article-toc-mobile { display: block; }
    .related-articles-grid { grid-template-columns: 1fr; }
    .articles-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-order-btn { display: none; }
    .nav-container { padding: .75rem 1rem; }
    .logo-img { height: 45px; margin-left: -32px; }
    .nav-container .logo-img { margin-left: -48px; }

    main { padding-top: 5rem; }
    .insights-container { padding: 1.5rem 1.25rem 3rem; }
    .article-shell { padding: 1.5rem 1.25rem 3rem; }

    .insights-hero { padding: 1.5rem 0 2.5rem; margin-bottom: 2.5rem; }
    .section-block { margin-bottom: 3rem; }

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

    .cta-strip {
        padding: 1.75rem 1.5rem;
        flex-direction: column; align-items: flex-start;
        gap: 1.25rem;
    }
    .cta-strip-actions { width: 100%; }
    .cta-strip-actions .btn { flex: 1; justify-content: center; }

    .article-header { margin-bottom: 2rem; }
    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.35rem; margin-top: 2.25rem; }
    .article-body h3 { font-size: 1.1rem; }

    .footer { padding: 3rem 1.25rem; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid > .footer-brand { grid-column: auto; }
    .footer-bottom {
        flex-direction: column; gap: 1rem; text-align: center;
    }
    .related-articles { margin-top: 3rem; }
}
