/* Shared styles for projects.html (atlas, deep dives, quizzes) and the pages split out of it:
 * protocol-skill.html, tlr-skill.html and global-mindset.html.
 * Dark-mode overrides, the bulb, search and Ask Vinny live in theme.css.
 */
[hidden]{display:none!important}

/* hamburger (replaces the puppy avatar) */
.burger { position: relative; width: 22px; height: 16px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2.5px; border-radius: 2px; background: var(--ink, #161616); transition: transform .25s, opacity .2s, top .25s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6.75px; } .burger i:nth-child(3) { top: 13.5px; }
[aria-expanded="true"] .burger i:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger i:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }
.av { border: 0; padding: 0; cursor: pointer; }
.av:hover { transform: scale(1.06) !important; }
.navcard { position: fixed; z-index: 44; top: calc(70px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: min(300px, calc(100vw - 32px)); background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.05); padding: 8px 20px 12px; transform-origin: top right; transition: opacity .2s, transform .2s; }
.navcard[hidden] { display: block !important; visibility: hidden; opacity: 0; transform: scale(.95); pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.navcard a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule, #e5e5e5); text-decoration: none; color: var(--ink, #161616); font-family: var(--f-head); font-weight: 600; font-size: 22px; text-transform: uppercase; }
.navcard a:last-child { border-bottom: 0; } .navcard a:hover { color: #C8236F; }

/* Layout: sticky nav over one view at a time — cover, map hub, or a market card (header, clinical band, reimbursement band, takeaway strip, notes). */
:root {
  --paper: #F5F6FA; --surface: #FCFBF8; --ink: #1B2430; --ink-2: #45505E; --muted: #5E6876; --rule: #E2E4EC;
  --clin: #1F4BFF; --clin-ink: #1F4BFF; --clin-bg: #E6EDFF; --clin-line: #A9BEFF; --on-clin: #F5F6FA;
  --reimb: #C7106A; --reimb-ink: #A50D58; --reimb-bg: #FFE6F3; --reimb-line: #FFB3D8; --reimb-soft: #FFD3EA; --on-reimb: #FCFBF8;
  --strip: #FFF4C2; --strip-ink: #1B2430; --gold: #8A6A00;
  --land: #E2E4EC; --eu-fill: #FFC98F; --map-on: #2F5BFF; --map-on-hi: #8A0A4A; --eu-hi: #1F4BFF;
  color-scheme: light;
  --f-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-body: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
}
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.4; }
a { color: inherit; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--clin); outline-offset: 2px; }
h1[tabindex="-1"]:focus { outline: none; }

/* Nav bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.brand { font-family: var(--f-display); font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; }
.bar .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn .lbl-t { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 4.5ch; text-align: center; }
@media (max-width: 640px) { .btn .lbl-t, .brand-long { display: none; } .btn { padding: 8px 10px; } .bar .wrap { gap: 6px; } .brand { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 15px; } .bar .spacer { display: none; } }

main { padding-block: 24px 56px; }
h1, h2, h3, h4, p { margin: 0; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { color: var(--clin-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Card */
.card { display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.card-head > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; text-wrap: balance; }
.band { border-radius: 14px; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.band.clin { background: var(--clin-bg); --acc: var(--clin); --acc-ink: var(--clin-ink); --line: var(--clin-line); --on-acc: var(--on-clin); }
.band.reimb { background: var(--reimb-bg); --acc: var(--reimb); --acc-ink: var(--reimb-ink); --line: var(--reimb-line); --on-acc: var(--on-reimb); }
.band-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pill { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--acc); color: var(--on-acc); padding: 3px 10px; border-radius: 6px; }
.band-label { font-weight: 700; font-size: 18px; }
.band-note { margin-left: auto; color: var(--acc-ink); font-weight: 500; font-size: 15px; }
@media (max-width: 900px) { .band-note { margin-left: 0; flex-basis: 100%; } }

.flow { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: stretch; }
.step { flex: 1 1 0; min-width: 0; position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.step.eu { border-style: dashed; border-color: var(--acc); }
.step:not(:last-child)::after { content: ""; position: absolute; right: -26px; top: calc(50% - 8px); width: 22px; height: 16px; background: var(--acc);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath d='M1 8h16M12 3l6 5-6 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath d='M1 8h16M12 3l6 5-6 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tag { font-size: 13.5px; font-weight: 600; color: var(--acc-ink); font-variant-numeric: tabular-nums; }
.step h4 { font-size: 17px; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.step p { font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.who { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }
.who b { color: var(--ink); }
.who b.co { color: var(--acc-ink); }
.step.outs { background: none; border: 0; padding: 0; flex: 1.7 1 0; gap: 6px; }
.out { flex: 1; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 13px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.out h4 { font-size: 17px; }
.out.hl { background: var(--acc); border-color: var(--acc); }
.out.hl h4, .out.hl p { color: var(--on-acc); }

/* Nordic lanes */
.lanes { display: flex; flex-direction: column; gap: 8px; }
.lane { display: grid; grid-template-columns: 112px minmax(0, 1fr) 250px; gap: 12px; align-items: stretch; }
.lane.no-retail { grid-template-columns: 112px minmax(0, 1fr); }
.chip { background: var(--acc); color: var(--on-acc); border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: 17px; display: flex; align-items: center; }
.lane .flow { gap: 26px; }
.lane .step { padding: 8px 12px; justify-content: center; }
.lane .step:not(:last-child)::after { right: -23px; width: 20px; }
.lane .step p { color: var(--ink); }
.retail { background: var(--reimb-soft); border-radius: 8px; padding: 8px 12px; font-size: 15px; display: flex; flex-direction: column; justify-content: center; }
.retail b { color: var(--reimb-ink); }

@media (max-width: 1100px) {
  .flow, .lane .flow { flex-direction: column; gap: 26px; }
  .step:not(:last-child)::after, .lane .step:not(:last-child)::after { right: auto; left: calc(50% - 11px); top: auto; bottom: -22px; transform: rotate(90deg); width: 22px; }
  .step.outs { flex-basis: auto; }
  .lane, .lane.no-retail { grid-template-columns: 1fr; gap: 8px; }
}

.remember { background: var(--strip); color: var(--strip-ink); border-radius: 12px; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.remember .k { color: var(--gold); font-weight: 700; letter-spacing: .1em; font-size: 14px; }
.remember p { flex: 1 1 40ch; min-width: 0; font-size: 16.5px; line-height: 1.45; }
/* Optional detail panel on a card (first used for the UK reliance route) */
.panel { background: var(--surface); border: 2px solid var(--clin); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.panel .k3 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clin-ink); }
.panel h3 { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.2; margin-top: 2px; }
.panel > p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 90ch; }
.panel-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .panel-cols { grid-template-columns: 1fr; } }
.panel-cols > div { background: var(--clin-bg, #EEF3FF); border-radius: 10px; padding: 12px 14px; }
.panel-cols h4 { font-size: 15.5px; line-height: 1.25; margin-bottom: 6px; }
.panel-cols ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.panel-cols li { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.panel .foot { font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--strip); border-radius: 10px; padding: 10px 14px; }
.panel .src { font-size: 13px; color: var(--muted); }

details.notes { border-top: 1px solid var(--rule); padding-top: 10px; }
details.notes summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.notes-body { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; max-width: 80ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.notes-body ul { margin: 0; padding-left: 18px; }
.notes-body a { color: var(--clin-ink); overflow-wrap: anywhere; }

/* Cover */
.cover { display: flex; flex-direction: column; gap: 28px; padding-block: 12px; }
.cover h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; max-width: 15ch; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.legend3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.legend3 > div { border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.legend3 h3 { font-size: 19px; }
.legend3 p { font-size: 15.5px; color: var(--ink-2); }
.lg-c { background: var(--clin-bg); } .lg-c .k { color: var(--clin-ink); }
.lg-r { background: var(--reimb-bg); } .lg-r .k { color: var(--reimb-ink); }
.lg-s { background: var(--strip); } .lg-s .k { color: var(--gold); } .lg-s h3, .lg-s p { color: var(--strip-ink); }
.legend3 .k { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .legend3 { grid-template-columns: 1fr; } }

/* Index pills */
.index { display: flex; flex-direction: column; gap: 14px; }
.index h2, .index h3 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 600; }
.pills a .n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: var(--map-on); color: var(--on-reimb); font-size: 13px; font-variant-numeric: tabular-nums; }
.pills a.eu .n { background: var(--eu-hi); color: var(--on-clin); }
.pills a:hover, .pills a.hot { border-color: var(--ink); }

/* Map */
.mapview { display: flex; flex-direction: column; gap: 18px; }
.mapview h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.maps { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.maps figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.maps figcaption { font-size: 14px; color: var(--muted); padding-inline: 4px; }
@media (max-width: 980px) { .maps { grid-template-columns: 1fr; } }
.map { width: 100%; height: auto; display: block; }
.cty { fill: var(--land); stroke: var(--surface); stroke-width: .5; vector-effect: non-scaling-stroke; }
.cty.eu { fill: var(--eu-fill); }
.cty.on { fill: var(--map-on); }
.cty[data-card] { cursor: pointer; }
.cty.on.hot, .cty.on:hover { fill: var(--map-on-hi); }
.cty.eu.hot, .cty.eu:hover { fill: var(--eu-hi); }
.cty:focus-visible { outline: none; stroke: var(--ink); stroke-width: 2; }
.dot { stroke: var(--surface); stroke-width: 1.5; }
.frame { fill: none; stroke: var(--muted); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.lead { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pin { fill: var(--ink); }
.lbl { font-family: var(--f-body); font-weight: 600; font-size: 14px; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; cursor: pointer; }
.lbl.hot { fill: var(--map-on-hi); }
.lbl.small { font-size: 13px; fill: var(--muted); cursor: default; }
.europe .lbl { font-size: 18px; }
.keyrow { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--ink-2); }
.keyrow span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw.on { background: var(--map-on); } .sw.eu { background: var(--eu-fill); } .sw.no { background: var(--land); }

/* Abbreviations */
.gloss { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.gloss h2 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 6px 28px; margin: 0; }
.gl div { display: grid; grid-template-columns: 8.5ch minmax(0, 1fr); gap: 10px; align-items: baseline; }
.gl dt { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.gl dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.gloss details summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.gloss details[open] summary { margin-bottom: 10px; }

/* Synthesis pages: guide, compare, pricing links, mindset */
:root { --sage: #00915A; --sage-ink: #007A4C; --sage-bg: #E0FCEF; --sage-line: #8CF0C0; }
.page { display: flex; flex-direction: column; gap: 26px; }
.page h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; text-wrap: balance; max-width: 26ch; }
.page h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(21px, 2vw, 26px); line-height: 1.2; }
.page h3 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.sec { display: flex; flex-direction: column; gap: 12px; }
.sec > p, .prose p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 75ch; }
.prose { display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tile p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
a.tile { text-decoration: none; }
a.tile:hover { border-color: var(--ink); }
a.tile .go { margin-top: auto; font-weight: 600; color: var(--clin-ink); font-size: 15px; }
kbd { font: 600 13px/1 var(--f-body); background: var(--paper); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: 3px 7px; color: var(--ink); }
.callout { background: var(--strip); border-radius: 12px; padding: 14px 18px; font-size: 16.5px; line-height: 1.5; max-width: 90ch; }
.callout b { color: var(--gold); }
.srcs { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.srcs h2 { font: 700 14px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.srcs ul { margin: 0; padding-left: 18px; columns: 2 380px; column-gap: 32px; font-size: 15px; color: var(--ink-2); }
.srcs li { break-inside: avoid; margin-bottom: 4px; }
.srcs a { color: var(--clin-ink); overflow-wrap: anywhere; }

/* Guide: card anatomy */
.anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .anat { grid-template-columns: 1fr; } }
.mock { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mock .m-eye { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mock .m-h { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.15; }
.mock .m-band { border-radius: 9px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mock .m-band.c { background: var(--clin-bg); --acc: var(--clin); --line: var(--clin-line); }
.mock .m-band.r { background: var(--reimb-bg); --acc: var(--reimb); --line: var(--reimb-line); }
.mock .m-pill { align-self: flex-start; background: var(--acc); color: var(--surface); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px; border-radius: 4px; }
.mock .m-row { display: flex; gap: 6px; }
.mock .m-step { flex: 1; min-height: 46px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 5px 6px; display: flex; flex-direction: column; gap: 3px; }
.mock .m-step i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.mock .m-step i.b { width: 60%; background: var(--acc); }
.mock .m-out { background: var(--acc); border-color: var(--acc); }
.mock .m-strip { background: var(--strip); border-radius: 7px; padding: 7px 9px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.mock .m-notes { border-top: 1px solid var(--rule); padding-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mock .num, .anat-list .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 12.5px/1 var(--f-body); flex: none; }
.mock .tagrow { display: flex; align-items: center; gap: 6px; }
.anat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.anat-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.anat-list p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.anat-list b { color: var(--ink); }

/* Compare table */
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font: 600 14.5px/1 var(--f-body); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1180px; font-size: 14.5px; line-height: 1.38; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.cmp thead th { background: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); position: sticky; top: 0; }
.cmp tbody th { position: sticky; left: 0; background: var(--surface); min-width: 120px; font-weight: 700; border-right: 1px solid var(--rule); }
.cmp tbody th a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cmp tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.cmp td { color: var(--ink-2); }
.cmp td.thr { color: var(--ink); }
.cmp td .yes { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--reimb); color: var(--on-reimb); border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.cmp tr.reg th { background: var(--paper); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); position: sticky; left: 0; }
.cmp tr[hidden] { display: none; }
.cmp tbody tr:last-child > * { border-bottom: 0; }

/* Reference-pricing grid */
.rgrid { border-collapse: separate; border-spacing: 0; min-width: 900px; width: 100%; font-size: 14px; }
.rgrid th, .rgrid td { padding: 8px 6px; border-bottom: 1px solid var(--rule); text-align: center; }
.rgrid thead th { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--paper); }
.rgrid thead th.hot3 { color: var(--map-on-hi); }
.rgrid tbody th { text-align: left; position: sticky; left: 0; background: var(--surface); min-width: 210px; border-right: 1px solid var(--rule); font-weight: 700; padding-left: 12px; }
.rgrid tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.rgrid tbody th a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rgrid .d { display: inline-block; width: 13px; height: 13px; border-radius: 999px; background: var(--map-on); }
.rgrid tfoot th, .rgrid tfoot td { background: var(--paper); font-weight: 700; border-bottom: 0; }
.rgrid tfoot th { text-align: left; position: sticky; left: 0; padding-left: 12px; }
.alsolist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.alsolist li { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.alsolist b { color: var(--ink); }
.waves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 900px) { .waves { grid-template-columns: 1fr; gap: 26px; } }
.wave { position: relative; background: var(--reimb-bg); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.wave .tag { color: var(--reimb-ink); }
.wave p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.wave:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: calc(50% - 14px); font-size: 22px; font-weight: 700; color: var(--reimb); }
@media (max-width: 900px) { .wave:not(:last-child)::after { content: "↓"; right: auto; left: calc(50% - 6px); top: auto; bottom: -27px; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--reimb-line); display: flex; flex-direction: column; gap: 12px; max-width: 90ch; }
.timeline li { position: relative; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 999px; background: var(--reimb); }
.timeline b { color: var(--ink); }

/* Mindset: warm */
.warm { --acc: var(--sage); }
.letter { background: var(--sage-bg); border-radius: 16px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; max-width: 92ch; }
.letter p { font-family: var(--f-display); font-size: 19px; line-height: 1.55; color: var(--ink); }
.letter .sig { font-family: var(--f-body); font-size: 15px; color: var(--sage-ink); font-weight: 600; }
.shifts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; counter-reset: sh; }
.shift { background: var(--surface); border: 1px solid var(--sage-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; counter-increment: sh; }
.shift .from { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.shift .from::before { content: counter(sh); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--sage); color: var(--surface); font-weight: 700; font-size: 14px; flex: none; }
.shift h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.2; flex: 1 1 20ch; }
.shift h3 span { color: var(--sage-ink); }
.shift .k2 { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.shift p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.shift .bring { background: var(--sage-bg); border-radius: 10px; padding: 10px 12px; }
.shift .bring .k2 { color: var(--sage-ink); }
.shift .bring p { color: var(--ink); }
.shift a { color: var(--clin-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.habits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.habits li { border-left: 4px solid var(--sage); background: var(--surface); border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.habits b { color: var(--ink); }
.closing { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; color: var(--sage-ink); max-width: 40ch; }

/* Synthesis pills */
.pills a.syn .n { background: var(--gold); }

/* About / portfolio front page */
.about { display: flex; flex-direction: column; gap: 40px; padding-block: 8px 12px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .portrait { order: -1; width: 140px; } }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.about h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -.01em; }
.about .role { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--clin-ink); max-width: 46ch; }
.about .bio { font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; }
.portrait { aspect-ratio: 1; width: 100%; border-radius: 999px; background: radial-gradient(circle at 30% 25%, var(--reimb-soft), var(--reimb-bg) 60%, var(--clin-bg)); border: 1px solid var(--rule); display: grid; place-items: center; align-content: center; gap: 6px; }
.portrait span { font-family: var(--f-display); font-size: clamp(40px, 5vw, 72px); font-weight: 600; color: var(--reimb-ink); }
.portrait small { font-size: 13px; }
.about .k3 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--reimb-ink); }
.projects { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }
.proj { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); text-decoration: none; }
@media (max-width: 700px) { .proj { grid-template-columns: 1fr; } }
.proj:hover { border-color: var(--ink); }
.proj .thumb { background: var(--clin-bg); display: grid; place-items: center; padding: 14px; }
.proj .thumb svg { width: 100%; height: auto; pointer-events: none; }
.proj-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.proj-body h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.proj-body p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--ink-2); }
.stats b { font-family: var(--f-display); font-size: 20px; color: var(--ink); margin-right: 3px; }
.proj .go { margin-top: auto; font-weight: 700; color: var(--clin-ink); }
.proj.next { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: transparent; border: 1.5px dashed var(--rule); }
.proj.next p { font-size: 15px; color: var(--muted); }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; max-width: 90ch; }
.tl li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.tl li:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 600px) { .tl li { grid-template-columns: 1fr; gap: 4px; } }
.tl .when { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; max-width: 80ch; }
mark.ph { background: #FFE9A8; color: var(--ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.portrait { overflow: hidden; padding: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about h1 .cred { font-size: .42em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.orgrow { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule); }
.orgrow:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) { .orgrow { grid-template-columns: 1fr; gap: 10px; } }
.orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.orgs li { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 76px; }
.orgs .wm { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.1; color: var(--ink-2); letter-spacing: -.005em; }
.orgs small { font-size: 13px; color: var(--muted); }
.btn[hidden] { display: none; }
/* Wide-screen balance: photo fills the hero's right half; essay card split into two columns */
.hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.portrait { display: block; aspect-ratio: auto; width: 100%; min-height: 340px; max-height: 480px; align-self: stretch; }
.portrait img { object-position: 50% 22%; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 18px; } .portrait { order: -1; width: 160px; height: auto; min-height: 0; aspect-ratio: 1; } }
.essay { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px 40px; padding: 24px 26px; }
.essay > div { gap: 8px; }
.essay p { max-width: 62ch; font-size: 16.5px; }
.vol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .vol { grid-template-columns: 1fr; } }
.vol li { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--clin); border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vol h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.vol p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

.facts a { font-size: 14.5px; font-weight: 600; color: var(--clin-ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.facts a:hover { border-color: var(--ink); }

@media (max-width: 820px) { .portrait { width: 150px; justify-self: start; } .hero { gap: 18px; } }
/* Academic Press theme: stone paper, ink navy, oxblood accent, ruled section heads */
:root {
  --paper: #F5F6FA; --surface: #FFFFFF; --ink: #1D2433; --ink-2: #434B5C; --muted: #636979; --rule: #E2E4EC;
  --clin: #1F4BFF; --clin-ink: #1F4BFF; --clin-bg: #E6EDFF; --clin-line: #A9BEFF; --on-clin: #FFFFFF;
  --reimb: #C7106A; --reimb-ink: #A50D58; --reimb-bg: #FFE6F3; --reimb-line: #FFB3D8; --reimb-soft: #FFD3EA; --on-reimb: #FFFFFF;
  --strip: #FFF4C2; --strip-ink: #1D2433; --gold: #8A6A00;
  --land: #E2E4EC; --eu-fill: #FFC98F; --map-on: #C7106A; --map-on-hi: #8A0A4A; --eu-hi: #1F4BFF;
  --sage: #1F4BFF; --sage-ink: #1F4BFF; --sage-bg: #E6EDFF; --sage-line: #A9BEFF;
  --f-display: 'Spectral', Georgia, 'Times New Roman', serif; --f-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}
:root .about h1, :root .card h1, :root .page h1 { font-weight: 500; }
/* Academic Press: squarer corners, ruled section heads, medium front page */
.band, .maps figure, .mock, .shift, .proj, .tile, .legend3 > div, .remember, .callout, .need, .codebox, .tree, .tbl-wrap, .scr, .plan3 > div, .port, .essay, .orgs li, .step, .out, .chip, .retail { border-radius: 4px; }
.btn { border-radius: 6px; }
.eyebrow { letter-spacing: .12em; }
.about .sec > h2, .page .sec > h2, .sk .sec > h2, .cover .sec > h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(21px, 2vw, 25px); line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 10px; }
.about h1 { font-weight: 500; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.005em; }
.about .role { font-size: 17px; line-height: 1.4; color: var(--reimb-ink); max-width: 52ch; }
.about .bio { font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.portrait { border-radius: 4px; }
.about { gap: 36px; }
.proj-body h3 { font-weight: 500; font-size: 21px; line-height: 1.2; }
.orgs .wm { font-weight: 500; font-size: 17px; }
.cover h1 { font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; max-width: 20ch; }
.lede { font-size: 17px; line-height: 1.6; }
.essay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; background: var(--reimb-bg); padding: 20px 22px; text-decoration: none; border: 1px solid transparent; }
.essay:hover { border-color: var(--reimb); }
.essay > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.essay h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.15; }
.essay p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 70ch; }
.essay .go { font-weight: 700; color: var(--reimb-ink); white-space: nowrap; }
@media (max-width: 640px) { .essay { grid-template-columns: 1fr; } }
.navlink { font-weight: 600; font-size: 14.5px; color: var(--reimb-ink); text-decoration: none; white-space: nowrap; }
.navlink:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .navlink { display: none; } }

.status { color: var(--muted); font-size: 14px; padding-block: 0 32px; }
@media (prefers-reduced-motion: no-preference) { .view { animation: fade .18s ease-out; } @keyframes fade { from { opacity: .4; } to { opacity: 1; } } }

/* Project 02: ChatGPT skill guide. Step rail down the left, each step = prose + illustrated screen. */
.projects { grid-template-columns: 1fr; }
.proj .thumb.t2 { background: var(--reimb-bg); }
.proj .thumb.t2 svg { max-width: 220px; }
.sk { display: flex; flex-direction: column; gap: 34px; }
.sk h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.06; text-wrap: balance; max-width: 22ch; }
.sk h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; text-wrap: balance; }
.sk h3 { font-size: 17px; font-weight: 700; }
.sk p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 72ch; }
.sk p b, .sk li b { color: var(--ink); }
.sk code, .sk .ui { font-family: 'Source Code Pro', ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 5px; color: var(--ink); white-space: nowrap; }
.sk .ui { font-family: var(--f-body); font-weight: 600; }
.sk-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .sk-intro { grid-template-columns: 1fr; } }
.sk-intro > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.need { background: var(--clin-bg); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.need .k3 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clin-ink); }
.need p { font-size: 15.5px; line-height: 1.5; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-size: 14.5px; font-weight: 600; text-decoration: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px 5px 5px; display: inline-flex; gap: 7px; align-items: center; }
.toc a:hover { border-color: var(--ink); }
.toc a span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--clin); color: var(--on-clin); font-size: 12px; font-variant-numeric: tabular-nums; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stp { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; position: relative; padding-bottom: 40px; scroll-margin-top: 70px; }
.stp::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--clin-line); }
.stp:last-child::before { display: none; }
.stp .num { width: 44px; height: 44px; border-radius: 999px; background: var(--clin); color: var(--on-clin); display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.stp-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stp-body .k3 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--reimb-ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.split > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 560px) { .stp { grid-template-columns: 1fr; } .stp::before { display: none; } .stp .num { width: 36px; height: 36px; font-size: 18px; margin-bottom: 8px; } }

/* Illustrated screens */
figure.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
figure.shot figcaption { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
figure.shot figcaption b { color: var(--reimb-ink); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; margin-right: 4px; }
.scr { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px rgba(30,42,38,.45); font-size: 13.5px; color: var(--ink); }
.scr-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.scr-top i { width: 9px; height: 9px; border-radius: 999px; background: var(--rule); display: block; }
.scr-top span { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.scr-in { display: grid; grid-template-columns: 128px minmax(0, 1fr); min-height: 230px; }
.scr-in.solo { grid-template-columns: 1fr; }
.rail { border-right: 1px solid var(--rule); background: var(--paper); padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.rail div { padding: 6px 8px; border-radius: 7px; color: var(--ink-2); font-weight: 500; }
.rail .dim { height: 8px; background: var(--rule); border-radius: 4px; padding: 0; margin: 6px 8px 0; opacity: .7; }
.pane { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--rule); }
.tabs span { padding: 4px 2px 7px; color: var(--muted); font-weight: 600; }
.tabs span.on { color: var(--ink); border-bottom: 2px solid var(--ink); }
.rowx { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-weight: 600; font-size: 12.5px; }
.sbtn.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seclbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini { border: 1px solid var(--rule); border-radius: 9px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini small { display: block; color: var(--muted); font-size: 12px; }
.ghost { height: 30px; border: 1px dashed var(--rule); border-radius: 9px; }
.menu { position: absolute; right: 14px; top: 44px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 26px -14px rgba(30,42,38,.5); padding: 5px; display: flex; flex-direction: column; gap: 2px; min-width: 190px; z-index: 1; }
.menu div { padding: 7px 10px; border-radius: 7px; }
.menu div small { display: block; color: var(--muted); font-size: 11.5px; }
.scr .hl { outline: 2.5px solid var(--reimb); outline-offset: 1px; border-radius: 7px; position: relative; background: var(--reimb-bg) !important; color: var(--ink) !important; }
.mk { position: absolute; top: -9px; right: -9px; width: 19px; height: 19px; border-radius: 999px; background: var(--reimb); color: var(--on-reimb); font: 700 11px/19px var(--f-body); text-align: center; z-index: 2; }
.bub { max-width: 88%; border-radius: 12px; padding: 8px 11px; line-height: 1.45; font-size: 13px; }
.bub.u { align-self: flex-end; background: var(--clin-bg); }
.bub.a { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule); }
.bub ol { margin: 4px 0 0; padding-left: 18px; }
.composer { margin-top: auto; border: 1px solid var(--rule); border-radius: 12px; padding: 9px 11px; display: flex; gap: 8px; align-items: flex-end; background: var(--surface); }
.composer p { font-size: 13px !important; line-height: 1.45 !important; color: var(--ink) !important; flex: 1; }
.composer .send { width: 24px; height: 24px; border-radius: 999px; background: var(--ink); flex: none; display: grid; place-items: center; }
.composer .send::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--surface); }
.at { background: var(--reimb-bg); color: var(--reimb-ink); border-radius: 5px; padding: 0 4px; font-weight: 700; }
.modal { margin: 8px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 30px -18px rgba(30,42,38,.55); display: flex; flex-direction: column; }
.modal-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--rule); font-weight: 700; flex-wrap: wrap; }
.modal pre { margin: 0; padding: 10px 12px; font: 12px/1.5 'Source Code Pro', ui-monospace, Menlo, monospace; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--rule); }
.backdrop { background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
@media (max-width: 520px) { .scr-in { grid-template-columns: 1fr; } .rail { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--rule); } .rail .dim { display: none; } .menu { position: static; box-shadow: none; } }

/* Planning card, prompts, file tree, test table */
.plan3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .plan3 { grid-template-columns: 1fr; } }
.plan3 > div { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--clin); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.plan3 > div:nth-child(2) { border-top-color: var(--reimb); }
.plan3 > div:nth-child(3) { border-top-color: var(--gold); }
.plan3 h3 { font-size: 15px; }
.plan3 ul { margin: 0; padding-left: 17px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.codebox, .win { background: #161616; color: #E9ECF2; border: 0; border-radius: 14px !important; overflow: hidden; box-shadow: 0 16px 28px -18px rgba(0,0,0,.6); }
.codebox-h, .win-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: #2A2D33; font: 500 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #C9CDD6; }
.codebox-h .dots, .win-h .dots { display: inline-flex; gap: 6px; flex: none; }
.codebox-h .dots i, .win-h .dots i { width: 10px; height: 10px; border-radius: 999px; background: #FF6FB5; display: block; }
.codebox-h .dots i:nth-child(2), .win-h .dots i:nth-child(2) { background: #FFB24A; }
.codebox-h .dots i:nth-child(3), .win-h .dots i:nth-child(3) { background: #3DDC97; }
.codebox-h .ttl, .win-h .ttl { flex: 1; min-width: 0; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codebox pre { margin: 0; padding: 14px 16px 16px; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #E9ECF2; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
.codebox pre .k, .tree b { color: #84EEBC; font-weight: inherit; } .codebox pre .v { color: #FFD08A; } .codebox pre .d { color: #FF9ACB; } .codebox pre .h { color: #84EEBC; font-weight: 700; } .codebox pre .n { color: #8FB8FF; }
.copy { flex: none; font: 600 12.5px/1 var(--f-body); color: #161616; background: #3DDC97; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.copy:hover { background: #C8F031; }
.copy:focus-visible { outline: 3px solid #FFB24A; outline-offset: 2px; }
.tree { font: 13.5px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: transparent; border: 0; border-radius: 0 !important; padding: 14px 16px 16px; color: #E9ECF2; overflow-x: auto; white-space: pre; }
.tree em { font-style: normal; color: #9AA1AE; }
.sk .win .tree b, .win .tree b { color: #84EEBC; }
@media (max-width: 640px) { .codebox pre, .tree { font-size: 12.5px; } }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.tst { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
.tst th, .tst td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.4; }
.tst th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.tst tr:last-child td { border-bottom: 0; }
.tst td:first-child { font-weight: 600; white-space: nowrap; }
.chip2 { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.chip2.y { background: var(--clin-bg); color: var(--clin-ink); }
.chip2.n { background: var(--reimb-bg); color: var(--reimb-ink); }
.chip2.q { background: var(--strip); color: var(--gold); }
.port { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.port h2 { color: var(--paper); }
.port p { color: color-mix(in srgb, var(--paper) 82%, var(--ink)); }
.port p b { color: var(--paper); }
@media (max-width: 800px) { .port { grid-template-columns: 1fr; } }

/* Project 04: quiz */
.qz-box { display: flex; flex-direction: column; gap: 30px; scroll-margin-top: 70px; }
.qz-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .qz-tiles { grid-template-columns: 1fr; } }
.qz-tile, .qz-mk { font: inherit; color: inherit; text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; display: flex; flex-direction: column; gap: 4px; }
.qz-tile { padding: 16px 18px; border-top: 3px solid var(--reimb); }
.qz-tile:nth-child(3) { border-top-color: var(--clin); }
.qz-tile h3 { font-family: var(--f-display); font-weight: 500; font-size: 21px; line-height: 1.2; }
.qz-tile:hover, .qz-mk:hover { border-color: var(--ink); }
.qz-meta, .qz-mk span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-reg { display: flex; flex-direction: column; gap: 8px; }
.qz-reg h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.qz-mk { padding: 10px 12px; }
.qz-mk b { font-size: 16px; }
.qz-run, .qz-end { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--reimb); border-radius: 4px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.qz-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.qz-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-meter { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.qz-meter span { display: block; height: 100%; background: var(--reimb); transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) { .qz-meter span { transition: none; } }
.qz-q { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.3; text-wrap: balance; }
.qz-q:focus { outline: none; }
.qz-opts { display: flex; flex-direction: column; gap: 8px; }
.qz-opt { font: inherit; font-size: 16.5px; line-height: 1.4; color: var(--ink); text-align: left; cursor: pointer; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px; padding: 10px 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.qz-opt:hover:not([disabled]) { border-color: var(--ink); background: var(--surface); }
.qz-opt[disabled] { cursor: default; }
.qz-k { font-weight: 700; color: var(--muted); white-space: nowrap; }
.qz-opt.ok { border-color: var(--clin); background: var(--clin-bg); }
.qz-opt.ok .qz-k { color: var(--clin); }
.qz-opt.ok .qz-k::after { content: " ✓"; }
.qz-opt.no { border-color: var(--reimb); background: var(--reimb-bg); }
.qz-opt.no .qz-k { color: var(--reimb-ink); }
.qz-opt.no .qz-k::after { content: " ✕"; }
.qz-opt.dim { opacity: .6; }
.qz-fb { border-left: 4px solid var(--clin); background: var(--clin-bg); padding: 10px 14px; font-size: 16px; line-height: 1.5; border-radius: 0 4px 4px 0; }
.qz-fb.no { border-left-color: var(--reimb); background: var(--reimb-bg); }
.qz-fb a { color: var(--clin-ink); font-weight: 600; white-space: nowrap; }
.qz-hint { font-size: 14px; color: var(--muted); }
.qz-end h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); }
.qz-end h3 { font-size: 16px; }
.qz-end > p { font-size: 17px; color: var(--ink-2); }
.qz-miss { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.qz-miss li p { font-size: 15.5px; color: var(--ink-2); }
.qz-miss a { color: var(--clin-ink); font-weight: 600; font-size: 15px; }
.qz-cardlink { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border: 1px dashed var(--rule); border-radius: 4px; padding: 10px 14px; font-size: 15.5px; color: var(--ink-2); }
.qz-cardlink a { font-weight: 700; color: var(--reimb-ink); text-decoration: none; }
.qz-cardlink a:hover { text-decoration: underline; text-underline-offset: 3px; }
.proj .thumb.t4 { background: var(--clin-bg); }
.proj .thumb.t4 svg { max-width: 220px; }
.proj.next.soon h3 { font-family: var(--f-display); font-weight: 500; font-size: 21px; }

/* Project 03: deep dives */
.dd-anat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .dd-anat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dd-anat { grid-template-columns: 1fr; } }
.dd-anat div { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--clin); border-radius: 4px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.dd-anat div:nth-child(even) { border-top-color: var(--reimb); }
.dd-anat h3 { font-size: 16px; }
.dd-anat p, .dd-note { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.dd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.dd-mk { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--reimb); border-radius: 4px; padding: 10px 12px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.dd-mk:hover { border-color: var(--ink); }
.dd-mk b { font-size: 16px; }
.dd-mk span { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dd-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.dd-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .dd-layout { grid-template-columns: 1fr; } .dd-rail { position: static !important; max-height: none !important; } }
.dd-rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); max-height: calc(100vh - 90px); overflow-y: auto; display: flex; flex-direction: column; gap: 1px; border-left: 2px solid var(--rule); }
.dd-rail a { text-decoration: none; padding: 5px 12px; font-size: 14.5px; line-height: 1.3; color: var(--ink-2); display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px; margin-left: -2px; border-left: 2px solid transparent; }
.dd-rail a b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.dd-rail a:hover, .dd-rail a.on { border-left-color: var(--reimb); color: var(--ink); }
.dd-rail .ph { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
.dd-rail .ph:first-child { padding-top: 0; }
.dd-steps { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dd-phase { font-family: var(--f-display); font-weight: 500; font-size: 23px; border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 8px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.dd-phase:first-child { margin-top: 0; }
.dd-phase small { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dd-sheet { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; scroll-margin-top: 76px; }
.dd-sh { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 16px 10px; }
.dd-sh .n { width: 34px; height: 34px; border-radius: 4px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--f-display); font-size: 17px; font-variant-numeric: tabular-nums; }
.dd-sh h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.dd-sh .who { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.dd-sh .when { font-size: 13.5px; font-weight: 600; color: var(--reimb-ink); text-align: right; max-width: 22ch; }
@media (max-width: 640px) { .dd-sh { grid-template-columns: 34px minmax(0, 1fr); } .dd-sh .when { grid-column: 2; text-align: left; max-width: none; } }
.dd-facets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.dd-facets.one { grid-template-columns: 1fr; }
.dd-facets:has(> div:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .dd-facets, .dd-facets:has(> div:nth-child(2):last-child) { grid-template-columns: 1fr; } }
.dd-facets > div { padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dd-facets > div + div { border-left: 1px solid var(--rule); }
@media (max-width: 800px) { .dd-facets > div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.dd-facets .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dd-facets p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.dd-facets .you .k { color: var(--reimb-ink); }
.dd-facets .rwe { background: var(--clin-bg); }
.dd-facets .rwe .k { color: var(--clin); }
.dd-gate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; background: var(--strip); border-radius: 4px; padding: 12px 16px; align-items: baseline; }
.dd-gate .k { color: var(--gold); font-weight: 700; letter-spacing: .1em; font-size: 13px; white-space: nowrap; }
.dd-gate p { font-size: 15.5px; line-height: 1.5; }
@media (max-width: 560px) { .dd-gate { grid-template-columns: 1fr; } }
.dd-pn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.btn.deep { background: var(--reimb); color: #fff; border-color: var(--reimb); }
.card-head .acts2 { display: flex; gap: 8px; flex-wrap: wrap; }
.deepband { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; border: 1.5px solid var(--reimb); border-radius: 4px; padding: 14px 18px; background: var(--surface); text-decoration: none; }
.deepband:hover { background: var(--reimb-bg); }
.deepband > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deepband h3 { font-family: var(--f-display); font-weight: 500; font-size: 21px; }
.deepband p { font-size: 15px; color: var(--ink-2); }
.deepband .go { font-weight: 700; color: var(--reimb-ink); white-space: nowrap; }
@media (max-width: 640px) { .deepband { grid-template-columns: 1fr; } }
.proj .thumb.t3 { background: var(--strip); }
.proj .thumb.t3 svg { max-width: 230px; }

/* Front-page projects: compact 2 x 2 (Option B) */
.pg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .pg2 { grid-template-columns: 1fr; } }
.pg2 .pc { display: grid; grid-template-columns: 120px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; }
.pg2 .pc:hover { border-color: var(--ink); }
.pg2 .pc:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pth { display: grid; place-items: center; padding: 8px; min-height: 120px; overflow: hidden; }
.pth svg { width: 100%; height: auto; display: block; pointer-events: none; }
.pth.t1 { background: var(--clin-bg); } .pth.t2 { background: var(--reimb-bg); } .pth.t3 { background: var(--strip); } .pth.t4 { background: var(--clin-bg); }

/* Project 05: TLR skill guide */
.pth.t5 { background: var(--reimb-bg); } .pth.t6 { background: var(--strip); }
.pth.t7 { background: var(--clin-bg); } .pth.t8 { background: var(--reimb-bg); } .pth.t9 { background: var(--strip); }
@media (min-width: 1100px) { .pg2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tlr .cols2 { columns: auto; }
.sk p, .sk .sec > p, .sk .stp-body > p, .sk .disclaimer, .sk .nextproj p { max-width: none; }
.tlr .cols2 p { max-width: none; margin-bottom: 12px; }
.tlr .cols2 > :last-child { margin-bottom: 0; }
.tlr .split p { max-width: none; }
.tlr .stp-body > .codebox, .tlr .stp-body > .tbl-wrap { margin-top: 2px; }
.nextproj { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; background: var(--clin-bg); border: 1px solid var(--clin-line); border-radius: 4px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.nextproj:hover { border-color: var(--clin); }
.nextproj .k3 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clin-ink); }
.nextproj h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; margin-top: 3px; }
.nextproj p { font-size: 15.5px !important; line-height: 1.5; color: var(--ink-2); margin-top: 4px; max-width: 70ch; }
.nextproj .go { font-weight: 700; color: var(--on-clin); background: var(--clin); border-radius: 6px; padding: 9px 14px; white-space: nowrap; }
@media (max-width: 640px) { .nextproj { grid-template-columns: 1fr; } .nextproj .go { justify-self: start; } }

/* Disclaimers */
.ponote { font-size: 14.5px; color: var(--muted); }
.ponote a, .sitenote a, .disc-full a { color: var(--clin-ink); text-underline-offset: 3px; }
.disc-full { scroll-margin-top: 70px; }
.disc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.disc-grid > div { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.disc-grid h3 { font-size: 15px; font-weight: 700; }
.about .disc-grid p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: none; }
@media (max-width: 1100px) { .disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .disc-grid { grid-template-columns: 1fr; } }
.sitenote { font-size: 13.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; padding-bottom: 14px; }
.sitenote b { color: var(--ink-2); }
.sitenote[hidden] { display: none; }

/* Disclaimer, Option C: framed summary under the name, details closed by default */
.c-note { border: 2px solid var(--reimb); border-radius: 4px; background: var(--surface); scroll-margin-top: 80px; }
.c-note summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 16px; }
.c-note summary::-webkit-details-marker { display: none; }
.c-note summary:focus-visible { outline: 2px solid var(--clin); outline-offset: 2px; }
.c-note .pill, .sitenote .pill { background: var(--reimb); color: var(--on-reimb); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; padding: 3px 8px; }
.c-note .sum { flex: 1 1 36ch; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.c-note .more { color: var(--clin-ink); font-weight: 700; white-space: nowrap; }
.c-note[open] .more::after { content: " \25B2"; } .c-note:not([open]) .more::after { content: " \25BC"; }
.c-note .disc-grid { border-top: 1px solid var(--reimb-line); padding: 14px 16px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
@media (max-width: 600px) { .c-note .disc-grid { grid-template-columns: 1fr; } }
.c-note .disc-grid > div { background: none; border: 0; padding: 0; }
.about .c-note .disc-grid p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: none; }
.sitenote .sn-in { display: block; border: 2px solid var(--reimb); background: var(--surface); border-radius: 4px; padding: 9px 14px; color: var(--ink-2); }
.sitenote .pill { font-size: 11px; padding: 2px 6px; margin-right: 8px; }
.sitenote { border-top: 0; }

/* Project 06: download panel */
.getskill { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 36px; background: var(--surface); border: 2px solid var(--clin); border-radius: 4px; padding: 22px 24px; scroll-margin-top: 70px; }
.getskill .gs-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.getskill .k3 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clin-ink); }
.gs-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.gs-act .btn { white-space: normal; line-height: 1.3; }
.gs-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gs-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); min-width: 0; }
.gs-steps b { color: var(--ink); }
.getskill .gs-note { grid-column: 1 / -1; font-size: 14px !important; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 10px; }
.gs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.gs-two h3 { font-size: 15px; margin-bottom: 6px; }
.gs-two .gs-steps { font-size: 15px; }
@media (max-width: 860px) { .getskill { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gs-two { grid-template-columns: 1fr; } }
.about .sec > p.bestview { font-size: 14.5px; color: var(--muted); margin-top: -4px; max-width: none; }
.sk .actions .btn { white-space: normal; line-height: 1.3; max-width: 100%; }
.tlrflow { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.tlrflow li { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--clin); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tlrflow li:nth-child(n+5) { border-top-color: var(--reimb); }
.tlrflow .tf-n { font-family: var(--f-display); font-size: 20px; color: var(--muted); line-height: 1; }
.tlrflow h3 { font-size: 16px; }
.tlrflow p { font-size: 14.5px !important; line-height: 1.45 !important; }
.tlrflow p b { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--clin-ink); }
.tlrflow p.tf-h { border-top: 1px dashed var(--rule); padding-top: 6px; }
.tlrflow p.tf-h b { color: var(--reimb-ink); }
@media (max-width: 980px) { .tlrflow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tlrflow { grid-template-columns: 1fr; } }
/* Project 06: benchmark explainer figures */
.vfig { margin: 12px 0 6px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); padding: 14px; overflow-x: auto; }
.vfig svg { display: block; width: 100%; min-width: 560px; max-width: 760px; margin: 0 auto; height: auto; font-family: var(--f-body); }
.vfig text { fill: var(--ink); font-size: 14px; }
.vfig .vs { fill: var(--muted); font-size: 12px; }
.vfig .vh { font-weight: 600; }
.vfig .ln { stroke: var(--muted); stroke-width: 1.2; fill: none; }
.vcap { font-size: 14px !important; color: var(--muted); margin: 0 0 18px !important; }
.vchecks { margin: 6px 0 0; padding-left: 20px; }
.vchecks li { margin-bottom: 8px; }
.pth.t1 .lbl, .pth.t1 .frame, .pth.t1 .lead, .pth.t1 .pin { display: none; }
.ptx { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ptx h3 { font-family: var(--f-display); font-weight: 500; font-size: 18.5px; line-height: 1.2; }
.ptx p { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 400px) { .pg2 .pc { grid-template-columns: 92px minmax(0, 1fr); } .pth { min-height: 100px; } }

/* Mindset essay: centred reading column */
.page.warm { max-width: 1080px; margin-inline: auto; width: 100%; }
.page.warm .card-head { align-items: flex-end; }
.page.warm .letter { max-width: none; border-radius: 4px; padding: 24px 28px; }
.page.warm .letter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; }
.page.warm .letter .sig { grid-column: 1 / -1; }
.page.warm .shift { border-radius: 4px; }
.page.warm .shifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page.warm .shift:last-child:nth-child(odd) { grid-column: 1 / -1; }
.page.warm .habits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .page.warm .habits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .page.warm .letter, .page.warm .shifts, .page.warm .habits { grid-template-columns: 1fr; } }
.page.warm .habits li { border-radius: 0 4px 4px 0; }

/* Empty-space audit fixes (Oct 2026) */
/* 1. Title and button sit together on content pages */
.page .card-head { justify-content: flex-start; align-items: flex-end; column-gap: 28px; }
/* 2. Callouts span their section */
.callout { max-width: none; border-radius: 4px; }
/* 3. Prose sections flow in two columns on wide screens */
.page .prose { display: block; columns: 2 380px; column-gap: 40px; }
.page .prose p { max-width: none; margin: 0 0 10px; }
.page .sec > p { max-width: 80ch; }
.page .timeline { display: block; columns: 2 420px; column-gap: 48px; max-width: none; border-left: 0; padding-left: 0; }
.page .timeline li { break-inside: avoid; border-left: 2px solid var(--reimb-line); padding: 0 0 12px 18px; }
.page .timeline li::before { left: -7px; top: 4px; }
/* 4. Five "other markets" cards in one row on wide screens */
.alsolist { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .alsolist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .alsolist { grid-template-columns: 1fr; } }
.alsolist li, .tile { border-radius: 4px; }
/* 5. Market pickers: even four-column grid */
.qz-grid, .dd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .qz-grid, .dd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .qz-grid, .dd-grid { grid-template-columns: 1fr; } }
/* 6. About: employers six across, universities four across */
.orgrow:nth-of-type(1) .orgs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.orgrow:nth-of-type(2) .orgs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .orgrow:nth-of-type(1) .orgs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .orgrow:nth-of-type(1) .orgs, .orgrow:nth-of-type(2) .orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 7. Abbreviation lists balance into columns */
.gl { display: block; columns: 3 300px; column-gap: 28px; }
.gl div { break-inside: avoid; margin-bottom: 6px; }
/* 8. Project 01 cover title on one or two lines */
.cover h1 { max-width: none; text-wrap: pretty; }
.cover .lede { max-width: 80ch; }

/* ===== Redesign, October 2026: matches the bright home page ===== */
:root { --f-display: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; --f-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-head: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; --f-hand: 'Caveat', 'Comic Sans MS', cursive; --pink: #FF6FB5; --pink-ink: #C8236F; --lime: #C8F031; }
body { background: #FFFFFF; }
body::before { background: #FFFFFF; }
.bar { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 0; }
.bar .wrap { padding-block: 12px; }
.brand { font-family: var(--f-head); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.bar .btn, .navlink.pillnav { display: inline-flex; align-items: center; gap: 6px; background: #EFEFEF; border: 0; color: #161616; font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 9px 15px; text-decoration: none; line-height: 1; transition: background .2s, transform .2s; }
.bar .btn:hover, .navlink.pillnav:hover { background: var(--lime); text-decoration: none; transform: translateY(-1px); }
.bar .btn[hidden], .navlink.pillnav[hidden] { display: none; }
@media (max-width: 900px) { .navlink.pillnav { display: inline-flex; } }
@media (max-width: 640px) { .navlink.pillnav { display: none; } }
.av { width: 44px; height: 44px; flex: none; border-radius: 999px; background: #EFEFEF; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0,0,0,.28); transition: transform .2s; }
.av:hover { transform: scale(1.06) rotate(-6deg); }
.av svg { width: 36px; height: 36px; }
.eyebrow { font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .08em; color: #161616; }
.eyebrow a { color: #161616; text-decoration: none; }
.eyebrow a:hover { color: var(--pink-ink); }
.eyebrow b, .eyebrow b a { color: var(--pink-ink); font-weight: 600; }
.cover h1, .page h1, .sk h1, .card h1, .mapview h1 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; line-height: 1; }
.cover h1 { font-size: clamp(30px, 3.6vw, 50px); }
.page h1, .sk h1, .card h1, .mapview h1 { font-size: clamp(28px, 3.2vw, 44px); }
.eyebrow .g-ma, .eyebrow .g-ma a { color: #1F4BFF; } .eyebrow .g-em, .eyebrow .g-em a { color: #C7106A; } .eyebrow .g-jca, .eyebrow .g-jca a { color: #C24600; } .eyebrow .g-ai, .eyebrow .g-ai a { color: #007A4C; }
.ttl { display: flex; align-items: center; gap: 20px; }
.ttl .art { width: 88px; height: 88px; flex: none; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 26px -16px rgba(0,0,0,.45); transform: rotate(-5deg); }
.ttl .art svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .ttl { flex-direction: column; align-items: flex-start; gap: 12px; } .ttl .art { width: 68px; height: 68px; } }
.btn { border-radius: 999px; }
@media (min-width: 641px) { .backlink { display: none; } }
@media (max-width: 640px) { .brand { font-size: 17px; letter-spacing: .01em; } .bar .btn { padding: 9px 11px; } .av { width: 40px; height: 40px; } .av svg { width: 32px; height: 32px; } }
@media (max-width: 389px) { .bar .count { display: none; } }
@media (max-width: 400px) { .sk p code, .sk li code { white-space: normal; overflow-wrap: anywhere; } }
.credit { font-size: 12.5px; line-height: 1.5; color: #5A5A5A; text-align: center; margin: 6px auto 22px; padding-inline: 16px; } .credit a { color: inherit; text-underline-offset: 2px; }
.motto { font-family: var(--f-hand); font-weight: 700; font-size: clamp(28px, 3.2vw, 38px); text-align: center; color: #161616; transform: rotate(-2deg); margin: 18px auto 8px; }
:root { --map-on: #2F5BFF; --map-on-hi: #1F3FD1; --eu-fill: #FFC98F; --eu-hi: #E06A00; }

/* Standalone guide and essay pages (protocol-skill, tlr-skill, global-mindset): in-page links are real anchors */
:where(html.doc [id]) { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html.doc { scroll-behavior: smooth; } }

/* ---------- Accessibility and phone fixes (November 2026) ---------- */
/* Links inside a run of text need more than colour to stand out */
.eyebrow a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Phones: the atlas bar carries map, back, counter, forward, theme, search and menu, so the name gives way and the counter stays on one line */
@media (max-width: 640px) { .bar.busy .brand { display: none; } .bar.busy #nextBtn { margin-right: auto; } .bar .count { white-space: nowrap; } }
/* A plain list of the markets under the map, for phones, keyboards and screen readers */
.maplist { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.maplist > h2 { font-size: clamp(22px, 2.6vw, 30px); }
