/* CBET Planner Blog — self-contained styles for /blog (no Tailwind needed). */

:root {
    --navy: #001529;
    --brand-1: #0d1f42;
    --brand-2: #1e3a7a;
    --gold: #ffb703;
    --gold-ink: #b45309;
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #f3f6fa;
    --line: #e5e9f0;
    --line-strong: #d3dae5;
    --strong: #0b1b2e;
    --body: #334155;
    --muted: #64748b;
    --accent: #1e3a7a;
    --link: #1d4ed8;
    --shadow: 0 1px 2px rgba(11, 27, 46, .05), 0 8px 24px -12px rgba(11, 27, 46, .12);
    --note-bg: #eff6ff; --note-line: #bfdbfe; --note-ink: #1e3a8a;
    --tip-bg: #fffbeb;  --tip-line: #fde68a;  --tip-ink: #92400e;
    --warn-bg: #fef2f2; --warn-line: #fecaca; --warn-ink: #991b1b;
    --ok-bg: #ecfdf5;   --ok-line: #a7f3d0;   --ok-ink: #065f46;
    color-scheme: light;
}
[data-theme="dark"] {
    --bg: #0b1220;
    --bg-alt: #0f172a;
    --surface: #111a2e;
    --surface-2: #16213a;
    --line: #1f2b45;
    --line-strong: #2b3a5c;
    --strong: #f1f5f9;
    --body: #cbd5e1;
    --muted: #94a3b8;
    --accent: #ffc94d;
    --gold-ink: #ffc94d;
    --link: #93c5fd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --note-bg: rgba(59, 130, 246, .1);  --note-line: rgba(59, 130, 246, .35); --note-ink: #bfdbfe;
    --tip-bg: rgba(245, 158, 11, .1);   --tip-line: rgba(245, 158, 11, .35);  --tip-ink: #fde68a;
    --warn-bg: rgba(239, 68, 68, .1);   --warn-line: rgba(239, 68, 68, .35);  --warn-ink: #fecaca;
    --ok-bg: rgba(16, 185, 129, .1);    --ok-line: rgba(16, 185, 129, .35);   --ok-ink: #a7f3d0;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; background: var(--bg); color: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--strong); letter-spacing: -0.02em; line-height: 1.2; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--gold); color: var(--navy); font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffc633; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--strong); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- Header ---------- */
.bh { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.bh-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 1rem; }
.bh-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.bh-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.bh-badge img { width: 30px; height: 30px; object-fit: contain; }
.bh-word { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; color: var(--strong); }
.bh-word span { color: #f59e0b; }
.bh-nav { display: none; margin-left: 1rem; gap: .25rem; }
.bh-nav a, .bh-mobile a { text-decoration: none; color: var(--body); font-weight: 600; font-size: 14.5px; padding: .5rem .75rem; border-radius: 8px; }
.bh-nav a:hover { background: var(--surface-2); color: var(--strong); }
.bh-nav a[aria-current="page"] { color: var(--strong); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--gold); }
.bh-ext { font-size: 10px; opacity: .55; margin-left: 2px; }
.bh-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.bh-cta { display: none; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--brand-2); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.bh-cta:hover { background: var(--brand-1); }
[data-theme="dark"] .bh-cta { background: var(--gold); color: var(--navy) !important; }
.bh-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--strong); cursor: pointer; font-size: 14px; }
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
.bh-mobile { border-top: 1px solid var(--line); padding: .75rem 16px 1rem; display: grid; gap: .15rem; background: var(--bg); }
.bh-mobile[hidden] { display: none; }
.bh-mobile a { padding: .75rem .5rem; font-size: 16px; }
.bh-cta-block { display: flex; justify-content: center; margin-top: .5rem; border-radius: 12px; padding: .85rem; }
@media (min-width: 640px) { .bh-cta { display: inline-flex; } }
@media (min-width: 960px) { .bh-nav { display: flex; } .bh-menu-btn { display: none; } .bh-in { padding: 0 24px; } }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, #ffb703, #f59e0b); transform-origin: left; transform: scaleX(0); }

/* ---------- Blog index ---------- */
.blog-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 183, 3, .18), transparent 60%), linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
.blog-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: .6rem 0 0; font-weight: 800; max-width: 22ch; }
.blog-hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); max-width: 62ch; margin: 1rem 0 0; color: var(--body); }
.blog-section { padding: 2.75rem 0; }
.blog-section + .blog-section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.section-head h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); margin: .35rem 0 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 60ch; }

.path { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: step; }
@media (min-width: 760px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path a { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .25rem .9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.path a:hover { border-color: var(--gold); transform: translateY(-2px); }
.path-num { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--navy); background: linear-gradient(135deg, #ffd166, #ffb703 55%, #f59e0b); }
.path-title { font-weight: 700; color: var(--strong); font-family: 'Plus Jakarta Sans', sans-serif; }
.path-text { font-size: 14px; color: var(--muted); line-height: 1.5; }

.filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.25rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--body); font: 600 14px 'Inter', sans-serif; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--strong); color: var(--bg); border-color: var(--strong); }

.card-grid { display: grid; gap: 1rem; }
@media (min-width: 680px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.post-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.post-card[hidden] { display: none; }
.post-card-top { display: flex; align-items: center; gap: .6rem; }
.post-card-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 15px; }
.post-card-cat { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-card-num { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--gold-ink); }
.post-card-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--strong); }
.post-card-text { font-size: 15px; color: var(--muted); line-height: 1.55; flex: 1; }
.post-card-more { font-size: 14.5px; font-weight: 700; color: var(--gold-ink); }

/* ---------- Article ---------- */
.post-hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--line); padding: 1.5rem 0 2rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: 13.5px; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--strong); text-decoration: underline; }
.crumbs i { font-size: 9px; opacity: .6; }
.crumbs span { color: var(--strong); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--gold-ink); text-decoration: none; }
.post-hero h1 { font-size: clamp(1.75rem, 5.2vw, 2.9rem); font-weight: 800; margin: .9rem 0 0; max-width: 28ch; }
.post-dek { font-size: clamp(1.05rem, 2.3vw, 1.2rem); color: var(--body); margin: 1rem 0 0; max-width: 62ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; font-size: 14px; color: var(--muted); }
.post-meta i { margin-right: .3rem; }
.post-author { display: inline-flex; align-items: center; gap: .6rem; line-height: 1.25; }
.post-author img { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.post-author strong { color: var(--strong); font-size: 14px; }

.post-layout { display: grid; gap: 1.5rem; padding-top: 1.75rem; padding-bottom: 2rem; }
@media (min-width: 1100px) { .post-layout { grid-template-columns: 260px minmax(0, 720px); justify-content: center; gap: 3.5rem; } }
.toc-side { min-width: 0; }
@media (min-width: 1100px) { .toc-side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } }
.toc { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: .9rem 1rem; }
.toc summary { cursor: pointer; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--strong); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '\25BE'; font-size: 14px; color: var(--muted); transition: transform .2s ease; }
.toc[open] summary::after { transform: rotate(180deg); }
.toc ol { margin: .75rem 0 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .1rem; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .55rem; padding: .35rem .4rem; border-radius: 8px; font-size: 14px; line-height: 1.4; color: var(--body); text-decoration: none; }
.toc a::before { content: counter(toc); font-weight: 700; color: var(--muted); min-width: 1.1em; }
.toc a:hover, .toc a.active { background: var(--surface); color: var(--strong); }
.toc a.active::before { color: var(--gold-ink); }

.post-body { min-width: 0; font-size: 17.5px; line-height: 1.78; color: var(--body); }
@media (max-width: 639px) { .post-body { font-size: 17px; line-height: 1.72; } }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.15em; }
.post-body p.lead { font-size: 1.12em; color: var(--strong); }
.post-body h2 { font-size: clamp(1.45rem, 3.6vw, 1.85rem); margin: 2.4em 0 .7em; padding-top: .2em; scroll-margin-top: 88px; }
.post-body h3 { font-size: clamp(1.15rem, 2.8vw, 1.32rem); margin: 1.8em 0 .55em; }
.post-body h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.post-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong { color: var(--strong); }
.post-body ul, .post-body ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.post-body li { margin: .35em 0; }
.post-body li::marker { color: var(--gold-ink); font-weight: 700; }
.post-body blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--gold); font-size: 1.08em; color: var(--strong); font-style: italic; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post-body code { font-size: .88em; padding: .12em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }

/* Callouts */
.callout { margin: 1.6em 0; padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid; font-size: .95em; line-height: 1.65; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; gap: .5rem; font-weight: 800; margin: 0 0 .35rem !important; font-family: 'Plus Jakarta Sans', sans-serif; }
.callout.note { background: var(--note-bg); border-color: var(--note-line); color: var(--note-ink); }
.callout.tip  { background: var(--tip-bg);  border-color: var(--tip-line);  color: var(--tip-ink); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.callout.ok   { background: var(--ok-bg);   border-color: var(--ok-line);   color: var(--ok-ink); }
.callout strong, .callout a { color: inherit; }

/* Key takeaways box */
.takeaways { margin: 0 0 2em; padding: 1.15rem 1.25rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.takeaways h2, .takeaways .takeaways-title { font-size: 1rem !important; margin: 0 0 .5rem !important; padding: 0; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.takeaways ul { margin: 0; }

/* Tables */
.table-wrap { margin: 1.5em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.5; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--surface-2); color: var(--strong); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; color: var(--strong); }
.table-caption { font-size: .85em; color: var(--muted); margin-top: -.9em; margin-bottom: 1.5em; }

/* Steps */
.steps { list-style: none; padding: 0 !important; margin: 1.5em 0; counter-reset: s; display: grid; gap: .85rem; }
.steps > li { counter-increment: s; position: relative; margin: 0; padding: 1rem 1.1rem 1rem 3.6rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.steps > li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 800 14px 'Plus Jakarta Sans', sans-serif; color: var(--navy); background: linear-gradient(135deg, #ffd166, #ffb703 55%, #f59e0b); }
.steps > li > strong:first-child { display: block; margin-bottom: .2rem; }
.steps > li p:last-child { margin-bottom: 0; }

/* Term cards (glossary) */
.terms { display: grid; gap: .85rem; margin: 1.5em 0; }
.term { padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.term dt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--strong); }
.term dd { margin: .3rem 0 0; font-size: .95em; }

/* Hierarchy diagram */
.ladder { list-style: none; padding: 0 !important; margin: 1.5em 0; display: grid; gap: .5rem; }
.ladder li { margin: 0; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .8rem 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ladder li:nth-child(2) { margin-left: .75rem; } .ladder li:nth-child(3) { margin-left: 1.5rem; } .ladder li:nth-child(4) { margin-left: 2.25rem; } .ladder li:nth-child(5) { margin-left: 3rem; } .ladder li:nth-child(6) { margin-left: 3.75rem; }
@media (max-width: 480px) { .ladder li:nth-child(n) { margin-left: 0; } }
.ladder i { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.ladder b { display: block; color: var(--strong); }
.ladder span { font-size: .9em; line-height: 1.5; }

/* Example document mock */
.doc-mock { margin: 1.5em 0; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); font-size: .88em; }
.doc-mock-head { padding: .75rem 1rem; background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); color: #fff; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.doc-mock-head small { color: #cbd5e1; font-weight: 500; }
.doc-mock-body { padding: 1rem; }
.doc-mock-body p { margin: 0 0 .5em; }

/* FAQ */
.faq { margin-top: 2.5em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative; font-weight: 700; color: var(--strong); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02em; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .2rem; top: .85rem; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; background: var(--gold); border-color: var(--gold); color: var(--navy); }
.faq details > div { padding: 0 0 1rem; }
.faq details > div p { margin: 0; }

/* CTA + post nav */
.post-cta { margin: 2.75em 0 2em; padding: 1.5rem; border-radius: 18px; background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); color: #cbd5e1; display: grid; gap: 1.1rem; font-size: 16px; line-height: 1.6; }
.post-cta p { margin: 0; }
.post-cta-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: .4rem !important; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.post-cta a { text-decoration: none !important; }
.post-cta .btn-gold { color: var(--navy) !important; }
.post-cta .btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .3); }
.post-nav { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); text-decoration: none !important; color: var(--strong) !important; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; line-height: 1.4; }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { font-family: 'Inter', sans-serif; font-weight: 600; color: var(--muted); font-size: 13px; }
.post-nav-next { text-align: right; grid-column: -2; }

.related { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 2.75rem 0 3rem; }
.related h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); margin: 0 0 1.25rem; }

/* ---------- Footer ---------- */
.bf { background: linear-gradient(160deg, var(--brand-1), #0a1a38); color: #a9b8cf; padding: 2.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); font-size: 15px; }
.bf a { color: #dbe4f0; text-decoration: none; }
.bf a:hover { color: #ffc94d; }
.bf-cta { display: grid; gap: 1rem; padding: 1.5rem; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 2.25rem; }
@media (min-width: 760px) { .bf-cta { grid-template-columns: 1fr auto; align-items: center; } }
.bf-cta p { margin: 0; }
.bf-cta-title { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; margin-bottom: .3rem !important; }
.bf-cta .btn-gold { color: var(--navy); }
.bf-cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .bf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bf-h { color: #ffb703; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .75rem; }
.bf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bf-bottom { margin: 2.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.bf-bottom a { font-weight: 700; color: #fff; }

/* =====================================================================
   Colour & decoration layer
   ===================================================================== */

/* Topic accent colours (set on <main data-cat> and on each .post-card) */
[data-cat] { --cat: #2563eb; --cat-soft: rgba(37, 99, 235, .1); }
[data-cat="basics"]     { --cat: #2563eb; --cat-soft: rgba(37, 99, 235, .1); }
[data-cat="planning"]   { --cat: #d97706; --cat-soft: rgba(217, 119, 6, .12); }
[data-cat="sessions"]   { --cat: #7c3aed; --cat-soft: rgba(124, 58, 237, .1); }
[data-cat="records"]    { --cat: #0d9488; --cat-soft: rgba(13, 148, 136, .1); }
[data-cat="notes"]      { --cat: #db2777; --cat-soft: rgba(219, 39, 119, .1); }
[data-cat="assessment"] { --cat: #dc2626; --cat-soft: rgba(220, 38, 38, .1); }
[data-cat="learning"]   { --cat: #16a34a; --cat-soft: rgba(22, 163, 74, .1); }
[data-cat="product"]    { --cat: #0891b2; --cat-soft: rgba(8, 145, 178, .1); }
[data-cat="company"]    { --cat: #ea580c; --cat-soft: rgba(234, 88, 12, .1); }
[data-theme="dark"] [data-cat] { --cat-soft: color-mix(in srgb, var(--cat) 18%, transparent); }

/* ---- Branded hero (article + index) ---- */
.post-hero, .blog-hero {
    position: relative; overflow: hidden; border-bottom: 0;
    background:
        radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 22px 22px,
        linear-gradient(125deg, #0b1a3a 0%, var(--brand-2) 62%, #24459a 100%);
    color: #cbd5e1;
}
.post-hero { padding: 1.75rem 0 2.5rem; }
.blog-hero { padding: 3.25rem 0 3rem; }
.post-hero::after, .blog-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #ffb703, #f59e0b 40%, var(--cat, #ffb703)); }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 183, 3, .38), rgba(255, 183, 3, 0) 65%); pointer-events: none; }
.hero-mark { position: absolute; right: 4%; bottom: -30px; font-size: 220px; color: rgba(255, 255, 255, .06); transform: rotate(-12deg); pointer-events: none; }
@media (max-width: 639px) { .hero-mark { font-size: 140px; right: -20px; bottom: -20px; } .hero-glow { width: 320px; height: 320px; right: -120px; top: -140px; } }
.post-hero .wrap, .blog-hero .wrap { position: relative; }
.post-hero h1, .blog-hero h1 { color: #fff; }
.post-dek, .blog-hero p.lead { color: #d6deea; }
.post-hero .crumbs, .post-hero .crumbs a, .blog-hero .crumbs, .blog-hero .crumbs a { color: #9fb2cf; }
.post-hero .crumbs span, .blog-hero .crumbs span { color: #fff; }
.blog-hero .eyebrow { color: #ffc94d; }
.post-hero .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #ffd166; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.post-hero .chip i { color: #fff; width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--cat); font-size: 11px; }
.post-meta { color: #b6c4d9; }
.post-meta > span:not(.post-author) { padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.post-meta i { color: #ffc94d; }
.post-author strong { color: #fff; }
.post-author small { color: #9fb2cf; }

/* ---- Section headings with an accent bar ---- */
.post-body h2:not(.takeaways-title) { position: relative; padding-top: .9rem; }
.post-body h2:not(.takeaways-title)::before { content: ''; position: absolute; left: 0; top: 0; width: 48px; height: 5px; border-radius: 99px; background: linear-gradient(90deg, #ffb703, var(--cat, #f59e0b)); }
.post-body h3 { color: var(--strong); }
.post-body h3::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 .55rem .18em 0; border-radius: 2px; background: var(--cat, var(--gold)); transform: rotate(45deg); }
.post-body p.lead { padding-left: 1rem; border-left: 4px solid var(--cat, var(--gold)); }

/* ---- Key takeaways ---- */
.takeaways { position: relative; border: 1px solid color-mix(in srgb, #ffb703 45%, var(--line)); border-left: 5px solid #ffb703; background: linear-gradient(135deg, #fff8e6 0%, var(--surface) 70%); box-shadow: var(--shadow); padding: 1.2rem 1.3rem 1.2rem 1.4rem; }
[data-theme="dark"] .takeaways { background: linear-gradient(135deg, rgba(255, 183, 3, .12) 0%, var(--surface) 70%); }
.takeaways .takeaways-title { display: flex; align-items: center; gap: .55rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; }
.takeaways .takeaways-title::before { content: '\f0eb'; font: 900 14px 'Font Awesome 6 Free'; width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: #001529; background: linear-gradient(135deg, #ffd166, #ffb703 55%, #f59e0b); }
.takeaways li::marker { color: #f59e0b; }

/* ---- Table of contents ---- */
.toc { background: var(--surface); border-top: 4px solid #ffb703; box-shadow: var(--shadow); }
.toc a.active { background: var(--cat-soft, var(--surface-2)); color: var(--strong); box-shadow: inset 3px 0 0 var(--cat, var(--gold)); }
.toc a.active::before { color: var(--cat, var(--gold-ink)); }
.toc-side { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.toc-side::-webkit-scrollbar { width: 6px; }
.toc-side::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.toc-side::-webkit-scrollbar-track { background: transparent; }

/* ---- Tables ---- */
.table-wrap { box-shadow: var(--shadow); }
.table-wrap th { background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); color: #fff; border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: var(--surface-2); }
.table-wrap td:first-child { border-left: 3px solid transparent; }
.table-wrap tbody tr:hover td { background: var(--cat-soft, var(--surface-2)); }
.table-wrap tbody tr:hover td:first-child { border-left-color: var(--cat, var(--gold)); }

/* ---- Callouts: thicker coloured edge + tinted icon ---- */
.callout { border-left-width: 5px; box-shadow: var(--shadow); }
.callout-title i { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 13px; background: rgba(255, 255, 255, .6); }
[data-theme="dark"] .callout-title i { background: rgba(255, 255, 255, .08); }

/* ---- Glossary terms: rotating accent colours ---- */
.term { border-left: 4px solid var(--term-c, #2563eb); box-shadow: var(--shadow); }
.term:nth-child(5n+1) { --term-c: #2563eb; }
.term:nth-child(5n+2) { --term-c: #f59e0b; }
.term:nth-child(5n+3) { --term-c: #7c3aed; }
.term:nth-child(5n+4) { --term-c: #0d9488; }
.term:nth-child(5n+5) { --term-c: #db2777; }
.term dt { color: var(--strong); }
.term dt::after { content: ''; display: block; width: 28px; height: 3px; margin-top: .35rem; border-radius: 99px; background: var(--term-c); opacity: .7; }

/* ---- Hierarchy ladder: a colour per level ---- */
.ladder li { background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--lad, #2563eb); }
.ladder li:nth-child(1) { --lad: #1e3a7a; } .ladder li:nth-child(2) { --lad: #2563eb; } .ladder li:nth-child(3) { --lad: #7c3aed; }
.ladder li:nth-child(4) { --lad: #0d9488; } .ladder li:nth-child(5) { --lad: #f59e0b; } .ladder li:nth-child(6) { --lad: #db2777; }
.ladder i { background: var(--lad); color: #fff; }

/* ---- Steps: soft hover lift + connector feel ---- */
.steps > li { box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.steps > li:hover { transform: translateX(3px); border-color: color-mix(in srgb, #ffb703 55%, var(--line)); }

/* ---- Document mock + quotes ---- */
.doc-mock-head { background: linear-gradient(120deg, #0b1a3a, var(--brand-2)); border-bottom: 3px solid #ffb703; }
.post-body blockquote { background: var(--cat-soft, var(--surface-2)); border-radius: 0 12px 12px 0; padding: .9em 1.1em; }

/* ---- FAQ ---- */
.faq { padding: 1.25rem 1.3rem .25rem; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.faq h2 { margin-top: .4em !important; }
.faq details[open] summary { color: var(--cat, var(--strong)); }

/* ---- Post cards: coloured by topic ---- */
.post-card { position: relative; overflow: hidden; border-top: 0; }
.post-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cat), color-mix(in srgb, var(--cat) 40%, #ffb703)); }
.post-card-ico { background: var(--cat-soft); color: var(--cat); }
.post-card-cat { color: var(--cat); }
.post-card:hover { border-color: color-mix(in srgb, var(--cat) 55%, var(--line)); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--cat) 60%, transparent); }
.post-card-more { color: var(--cat); }
.related { background: radial-gradient(700px 260px at 10% 0%, rgba(255, 183, 3, .1), transparent 70%), var(--bg-alt); }

/* ---- Blog index extras ---- */
.path a { box-shadow: var(--shadow); border-left: 4px solid var(--cat); }
.path a:hover { border-color: var(--cat); }
.path a:hover .path-num { transform: rotate(-6deg) scale(1.05); }
.path-num { transition: transform .2s ease; box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .9); }
.filters button[aria-pressed="true"] { background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); color: #fff; border-color: transparent; }
[data-theme="dark"] .filters button[aria-pressed="true"] { background: #ffb703; color: #001529; }

@media (prefers-reduced-motion: reduce) {
    .steps > li, .path-num { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .post-card, .path a, .btn { transition: none; }
}
@media print {
    .bh, .bf, .toc-side, .post-cta, .post-nav, .related { display: none !important; }
    .post-layout { display: block; }
}
