/* ──────────────────────────────────────────────────────────────────────────
   Enterprise AI Atlas — shared styles
   Sibling of /lab/ and /app/ on ai.simonevaccatorelli.com.
   Dark aesthetic matching the AI portfolio: #06060f base, purple/cyan/green
   accents, Inter + JetBrains Mono. No build step, no dependencies.

   Cluster colors:
     UNDERSTAND    → cyan   #00D4FF
     BUILD         → purple #A100FF
     RUN           → green  #00FF94
     GOVERN & LEAD → amber  #FFC24D
   ────────────────────────────────────────────────────────────────────────── */

:root {
    --purple: #A100FF;
    --purple-light: #C966FF;
    --purple-dark: #7B00C4;
    --cyan: #00D4FF;
    --green: #00FF94;
    --amber: #FFC24D;
    --bg-deep: #06060f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(161, 0, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.62);
    --text-muted: rgba(255, 255, 255, 0.38);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
a { color: var(--purple-light); }

/* Cluster color helpers */
.cc-understand { --cc: var(--cyan); }
.cc-build { --cc: var(--purple-light); }
.cc-run { --cc: var(--green); }
.cc-govern { --cc: var(--amber); }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.atlas-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(6, 6, 15, 0.88); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.8rem 2rem;
}
.atlas-nav-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.atlas-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.atlas-brand-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.72rem; color: #fff; letter-spacing: 0.02em;
}
.atlas-brand-text { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); letter-spacing: -0.01em; }
.atlas-brand-text span { color: var(--text-muted); font-weight: 500; }
.atlas-nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.atlas-nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
    transition: color 0.2s;
}
.atlas-nav-links a:hover { color: var(--purple-light); }
.atlas-nav-links a.cta {
    padding: 0.45rem 1.05rem; border-radius: 8px;
    background: rgba(161, 0, 255, 0.15); border: 1px solid rgba(161, 0, 255, 0.3);
    color: var(--purple-light); font-weight: 600;
}
.atlas-nav-links a.cta:hover { background: rgba(161, 0, 255, 0.25); color: #fff; }
.atlas-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.atlas-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); margin: 5px 0; }

/* ── Landing hero ───────────────────────────────────────────────────────── */
.atlas-hero { padding: 9.5rem 0 4rem; position: relative; overflow: hidden; }
.atlas-hero::before {
    content: ''; position: absolute; top: -40%; right: -15%;
    width: 720px; height: 720px; border-radius: 50%;
    background: radial-gradient(circle, rgba(161, 0, 255, 0.13) 0%, transparent 70%);
    pointer-events: none;
}
.atlas-eyebrow {
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    color: var(--purple-light); letter-spacing: 0.08em; margin-bottom: 1rem;
}
.atlas-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.12; max-width: 830px;
}
.atlas-hero h1 .grad {
    background: linear-gradient(90deg, var(--purple-light), var(--cyan));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.atlas-hero-sub { font-size: 1.06rem; color: var(--text-secondary); max-width: 660px; margin-top: 1.1rem; font-weight: 300; }
.atlas-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2rem; }
.atlas-stat { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-muted); }
.atlas-stat b { color: var(--text-primary); font-weight: 600; margin-right: 0.35rem; }

/* ── Search ─────────────────────────────────────────────────────────────── */
.atlas-search { position: relative; max-width: 520px; margin-top: 2.2rem; }
.atlas-search input {
    width: 100%; padding: 0.85rem 1.1rem 0.85rem 2.7rem;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 12px; color: var(--text-primary);
    font-family: inherit; font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.atlas-search input::placeholder { color: var(--text-muted); }
.atlas-search input:focus {
    outline: none; border-color: rgba(161, 0, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(161, 0, 255, 0.15);
}
.atlas-search::before {
    content: '\01F50D'; position: absolute; left: 1rem; top: 50%;
    transform: translateY(-50%); font-size: 0.85rem; opacity: 0.5; pointer-events: none;
}
.atlas-search-results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    background: #0c0c18; border: 1px solid var(--border-subtle); border-radius: 12px;
    max-height: 320px; overflow-y: auto; display: none;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.atlas-search-results.show { display: block; }
.atlas-search-results a {
    display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
    padding: 0.65rem 1rem; text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.atlas-search-results a:last-child { border-bottom: none; }
.atlas-search-results a:hover, .atlas-search-results a.active { background: rgba(161, 0, 255, 0.1); }
.asr-topic { color: var(--text-primary); font-size: 0.88rem; }
.asr-cat { color: var(--text-muted); font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.asr-empty { padding: 0.8rem 1rem; color: var(--text-muted); font-size: 0.85rem; }

/* ── Cluster sections (landing) ─────────────────────────────────────────── */
.cluster-section { padding: 2.6rem 0; }
.cluster-section + .cluster-section { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.cluster-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.cluster-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; color: var(--cc);
    border: 1px solid color-mix(in srgb, var(--cc) 40%, transparent);
    background: color-mix(in srgb, var(--cc) 9%, transparent);
    padding: 0.22rem 0.7rem; border-radius: 100px;
}
.cluster-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.cluster-desc { color: var(--text-muted); font-size: 0.92rem; max-width: 640px; margin-bottom: 1.6rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.cat-card {
    display: block; text-decoration: none;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 1.45rem 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    position: relative;
}
.cat-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cc) 55%, transparent);
    background: color-mix(in srgb, var(--cc) 5%, transparent);
}
.cat-num {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600;
    color: var(--cc); letter-spacing: 0.12em; margin-bottom: 0.7rem;
}
.cat-card h3 { color: var(--text-primary); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.cat-card p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.55; margin-bottom: 0.9rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.95rem; }
.cat-chip {
    font-size: 0.68rem; color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 6px;
    padding: 0.18rem 0.5rem; font-family: 'JetBrains Mono', monospace;
}
.cat-foot { display: flex; justify-content: space-between; align-items: center; }
.cat-count { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-muted); }
.cat-cta { font-size: 0.8rem; font-weight: 600; color: var(--cc); }

/* ── Category page ──────────────────────────────────────────────────────── */
.cat-hero { padding: 8.6rem 0 2.6rem; border-bottom: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.cat-hero::before {
    content: ''; position: absolute; top: -55%; right: -12%;
    width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cc) 11%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple-light); }
.crumbs .crumb-cluster { color: var(--cc); letter-spacing: 0.1em; }
.cat-hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; max-width: 780px; }
.cat-intro { color: var(--text-secondary); font-size: 1rem; max-width: 720px; margin-top: 0.9rem; font-weight: 300; }
.cat-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-top: 1.3rem; }
.cat-meta b { color: var(--cc); font-weight: 600; }

.cat-body { display: grid; grid-template-columns: 235px 1fr; gap: 3rem; padding: 2.8rem 2rem 3.5rem; max-width: 1180px; margin: 0 auto; }
.cat-toc { position: sticky; top: 5.4rem; align-self: start; }
.cat-toc-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 0.75rem; }
.cat-toc ol { list-style: none; }
.cat-toc li { margin-bottom: 0.15rem; }
.cat-toc a {
    display: block; padding: 0.34rem 0.7rem; border-left: 2px solid transparent;
    color: var(--text-muted); text-decoration: none; font-size: 0.8rem; line-height: 1.4;
    transition: color 0.15s, border-color 0.15s;
}
.cat-toc a:hover { color: var(--text-primary); border-left-color: color-mix(in srgb, var(--cc) 50%, transparent); }

.topic { padding: 1.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); scroll-margin-top: 5.5rem; }
.topic:first-child { padding-top: 0.3rem; }
.topic:last-child { border-bottom: none; }
.topic-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; font-weight: 600; color: var(--cc); letter-spacing: 0.13em; margin-bottom: 0.5rem; }
.topic h2 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.7rem; }
.topic-primer { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.75; max-width: 74ch; }
.topic-primer strong { color: var(--text-primary); font-weight: 600; }
.topic-primer code {
    font-family: 'JetBrains Mono', monospace; font-size: 0.84em;
    background: rgba(255, 255, 255, 0.06); border-radius: 5px; padding: 0.08rem 0.35rem;
}
.in-practice {
    display: flex; gap: 0.6rem; align-items: baseline;
    margin-top: 0.95rem; padding: 0.7rem 0.95rem; max-width: 74ch;
    background: color-mix(in srgb, var(--cc) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--cc) 22%, transparent);
    border-radius: 10px; font-size: 0.84rem; color: var(--text-secondary);
}
.in-practice a { color: var(--cc); font-weight: 600; text-decoration: none; }
.in-practice a:hover { text-decoration: underline; }
.topic-foot { display: flex; gap: 0.5rem; margin-top: 0.95rem; }
.depth-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em;
    color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 35%, transparent);
    border-radius: 100px; padding: 0.14rem 0.6rem;
}
.soon-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.06em;
    color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px; padding: 0.14rem 0.6rem;
}

/* Prev / next pager */
.cat-pager {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
    max-width: 1180px; margin: 0 auto; padding: 1.6rem 2rem 3rem;
    border-top: 1px solid var(--border-subtle);
}
.cat-pager a { text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; transition: color 0.2s; }
.cat-pager a:hover { color: var(--purple-light); }
.cat-pager .pager-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 0.2rem; }
.cat-pager .pager-next { text-align: right; }
.cat-pager .pager-home { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.atlas-footer { border-top: 1px solid var(--border-subtle); padding: 2.4rem 2rem 2.8rem; text-align: center; }
.atlas-footer p { color: var(--text-muted); font-size: 0.82rem; }
.atlas-footer a { color: var(--text-secondary); text-decoration: none; }
.atlas-footer a:hover { color: var(--purple-light); }
.atlas-footer .foot-links { display: flex; gap: 1.6rem; justify-content: center; margin-bottom: 0.9rem; font-size: 0.84rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cat-body { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 2rem; }
    .cat-toc { position: static; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1rem 1.1rem; }
}
@media (max-width: 768px) {
    .atlas-nav-links { display: none; }
    .atlas-nav-links.show {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: rgba(6, 6, 15, 0.97);
        backdrop-filter: blur(20px); padding: 1rem 2rem; gap: 0.75rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .atlas-nav-toggle { display: block; }
    .cat-grid { grid-template-columns: 1fr; }
    .atlas-hero { padding-top: 7.5rem; }
    .cat-pager { grid-template-columns: 1fr; text-align: left; }
    .cat-pager .pager-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cat-card, .cat-toc a, .atlas-nav-links a { transition: none; }
}

/* ── Deep-dive articles ─────────────────────────────────────────────────── */
.article-hero { padding: 8.6rem 0 2.4rem; border-bottom: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.article-hero::before {
    content: ''; position: absolute; top: -55%; right: -12%;
    width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cc) 11%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.article-kicker {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.16em; color: var(--cc); margin-bottom: 0.85rem;
}
.article-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.14; max-width: 840px; }
.article-dek { color: var(--text-secondary); font-size: 1.04rem; max-width: 730px; margin-top: 1rem; font-weight: 300; line-height: 1.65; }
.article-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-top: 1.3rem; }
.article-meta b { color: var(--cc); font-weight: 600; }

.article-content { min-width: 0; }
.tldr {
    border: 1px solid color-mix(in srgb, var(--cc) 30%, transparent);
    background: color-mix(in srgb, var(--cc) 6%, transparent);
    border-radius: 14px; padding: 1.1rem 1.35rem 1rem; margin-bottom: 2.2rem;
}
.tldr-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; color: var(--cc); margin-bottom: 0.6rem; }
.tldr ul { margin: 0 0 0 1.15rem; }
.tldr li { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.4rem; }
.tldr li::marker { color: var(--cc); }

.article-content h2 {
    font-size: 1.32rem; font-weight: 700; letter-spacing: -0.015em;
    margin: 2.6rem 0 1rem; padding-left: 0.85rem;
    border-left: 3px solid var(--cc); scroll-margin-top: 5.5rem;
}
.article-content h3 { font-size: 1.02rem; font-weight: 600; margin: 1.7rem 0 0.6rem; }
.article-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; max-width: 76ch; }
.article-content ul, .article-content ol { margin: 0 0 1rem 1.25rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; max-width: 74ch; }
.article-content li { margin-bottom: 0.35rem; }
.article-content li::marker { color: var(--cc); }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content code {
    font-family: 'JetBrains Mono', monospace; font-size: 0.84em;
    background: rgba(255, 255, 255, 0.06); border-radius: 5px; padding: 0.08rem 0.35rem;
}
.article-content a { color: var(--cc); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--cc) 35%, transparent); }
.article-content a:hover { border-bottom-color: var(--cc); }

.article-content pre.fig {
    background: #0b0b12; border: 1px solid var(--border-subtle); border-radius: 12px;
    padding: 1rem 1.2rem; overflow-x: auto; margin: 1.3rem 0 0.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; line-height: 1.55;
    color: var(--text-secondary); white-space: pre;
}
.fig-caption { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); margin: 0.4rem 0 1.3rem; }

.article-content table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: 0.85rem; }
.article-content th {
    text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
    font-weight: 600; letter-spacing: 0.08em; color: var(--cc);
    border-bottom: 1px solid color-mix(in srgb, var(--cc) 30%, transparent);
    padding: 0.5rem 0.7rem;
}
.article-content td { color: var(--text-secondary); border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 0.55rem 0.7rem; vertical-align: top; }

.callout {
    border-left: 3px solid var(--cc); background: rgba(255, 255, 255, 0.03);
    border-radius: 0 10px 10px 0; padding: 0.85rem 1.05rem; margin: 1.3rem 0;
    font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; max-width: 76ch;
}

.article-foot { margin-top: 3rem; padding-top: 1.7rem; border-top: 1px solid var(--border-subtle); }
.related-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 0.75rem; }
.related-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.related-chips a {
    font-size: 0.78rem; color: var(--text-secondary); text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px;
    padding: 0.32rem 0.75rem; transition: border-color 0.2s, color 0.2s;
}
.related-chips a:hover { border-color: var(--cc); color: var(--cc); }

/* ── "Latest deep-dives" strip (landing) ────────────────────────────────── */
.latest-section { padding: 0.2rem 0 2.4rem; }
.latest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 0.45rem; margin-top: 0.9rem; }
.latest-item {
    display: flex; align-items: baseline; gap: 0.7rem;
    padding: 0.55rem 0.85rem; text-decoration: none;
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.latest-item:hover { border-color: color-mix(in srgb, var(--cc) 55%, transparent); background: color-mix(in srgb, var(--cc) 4%, transparent); }
.latest-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc); flex-shrink: 0; align-self: center; }
.latest-date { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--text-muted); white-space: nowrap; }
.latest-title { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.4; }
.latest-item:hover .latest-title { color: var(--text-primary); }
.latest-new {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em;
    color: var(--green); border: 1px solid rgba(0, 255, 148, 0.35);
    border-radius: 100px; padding: 0.08rem 0.45rem; flex-shrink: 0;
}
@media (max-width: 560px) { .latest-list { grid-template-columns: 1fr; } }

/* "Read the deep-dive" pill on category topic blocks */
a.dd-link {
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; font-weight: 600;
    letter-spacing: 0.1em; color: var(--cc); text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent);
    background: color-mix(in srgb, var(--cc) 8%, transparent);
    border-radius: 100px; padding: 0.14rem 0.6rem;
    transition: background 0.2s;
}
a.dd-link:hover { background: color-mix(in srgb, var(--cc) 18%, transparent); }


/* POLISH-1 */
/* ── Deep-dive strips on category pages ─────────────────────────────── */
.cat-dd-strip { padding: 1.4rem 0 0.2rem; }
.cds-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 0.7rem; }
.cds-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cds-chips a { display: inline-block; padding: 0.38rem 0.85rem; border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--bg-card); color: var(--text-secondary); text-decoration: none; font-size: 0.8rem; transition: all 0.18s; }
.cds-chips a:hover { border-color: var(--cc, var(--purple-light)); color: var(--text-primary); }
.cds-chips a.cds-all { border-style: dashed; color: var(--cc, var(--purple-light)); }

/* ── Deep-dives index page ──────────────────────────────────────────── */
.ddx-hero { padding: 7.5rem 0 2.2rem; }
.ddx-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.15; }
.ddx-hero .atlas-eyebrow { margin-bottom: 0.8rem; }
.ddx-sub { color: var(--text-secondary); max-width: 640px; margin-top: 0.8rem; }
.ddx-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1.6rem 0 0; }
.ddx-chip { padding: 0.42rem 0.95rem; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-secondary); font-size: 0.8rem; cursor: pointer; font-family: inherit; transition: all 0.18s; }
.ddx-chip:hover { color: var(--text-primary); }
.ddx-chip.active { border-color: var(--cc, var(--purple-light)); color: var(--text-primary); background: rgba(255,255,255,0.06); }
.ddx-select, .ddx-search { padding: 0.45rem 0.85rem; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-primary); font-family: inherit; font-size: 0.82rem; }
.ddx-search { min-width: 220px; flex: 1; max-width: 340px; }
.ddx-select option { background: #12121f; }
.ddx-count { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); margin-left: auto; }
.ddx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.9rem; padding: 1.6rem 0 3rem; }
.ddx-card { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.05rem 1.15rem; border: 1px solid var(--border-subtle); border-left: 3px solid var(--cc, var(--purple-light)); border-radius: 12px; background: var(--bg-card); text-decoration: none; transition: all 0.18s; }
.ddx-card:hover { background: rgba(255,255,255,0.055); transform: translateY(-2px); }
.ddx-cat { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--cc, var(--purple-light)); }
.ddx-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); line-height: 1.35; }
.ddx-dek { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ddx-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-muted); margin-top: auto; }
.ddx-none { color: var(--text-muted); padding: 2rem 0 3rem; display: none; }

/* ── Reading paths ──────────────────────────────────────────────────── */
.paths-section { padding: 1.2rem 0 3.5rem; border-top: 1px solid var(--border-subtle); }
.paths-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.path-card { border: 1px solid var(--border-subtle); border-top: 3px solid var(--cc, var(--purple-light)); border-radius: 14px; background: var(--bg-card); padding: 1.2rem 1.3rem; }
.path-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.path-card > p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.8rem; }
.path-card ol { margin-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.path-card ol li { font-size: 0.82rem; color: var(--text-muted); }
.path-card ol a { color: var(--text-secondary); text-decoration: none; }
.path-card ol a:hover { color: var(--cc, var(--purple-light)); }

/* ── Prev/next pager on articles ────────────────────────────────────── */
.dd-pager { border-top: 1px solid var(--border-subtle); padding: 1.4rem 0; }
.dd-pager .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dd-pager a { text-decoration: none; font-size: 0.82rem; color: var(--text-secondary); max-width: 40%; }
.dd-pager a:hover { color: var(--cc, var(--purple-light)); }
.dd-pager .pager-index { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-muted); }
.dd-pager .pager-spacer { width: 1px; }

/* ── Landing: view-all link ─────────────────────────────────────────── */
a.atlas-stat { text-decoration: none; }
a.atlas-stat:hover b { text-decoration: underline; }
.latest-viewall { float: right; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--purple-light); text-decoration: none; }
.latest-viewall:hover { text-decoration: underline; }
