/* Theme switcher button (both themes) */
.theme-btn{display:inline-flex;align-items:center;gap:7px;flex:none;cursor:pointer;background:transparent;color:var(--ink);
  border:1.5px solid var(--ink);border-radius:999px;padding:6px 12px;font:700 10px/1 var(--util,system-ui);letter-spacing:.14em;text-transform:uppercase}
.theme-btn .tb-k{opacity:.55}
.theme-btn:hover{background:var(--ink);color:var(--paper,#fbfbfb)}
.theme-btn:focus-visible{outline:2px solid #33619b;outline-offset:3px}
header.site nav{margin-left:auto}
@media (max-width:700px){header.site{flex-wrap:wrap}.theme-btn{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);right:16px;padding:5px 10px}.theme-btn .tb-k{display:none}}

/* ---------- Editorial theme: clean, crisp, no hand-drawn marks ---------- */
html[data-theme="editorial"]{
  --ink:#16171a;--paper:#fafaf9;--mute:rgba(22,23,26,.62);--line:rgba(22,23,26,.14);--blue:#2c5a94;--mag:#a63a83;
  --disp:'Inter Tight','Inter',ui-sans-serif,system-ui,sans-serif;
  --body:'Inter',ui-sans-serif,system-ui,sans-serif;
  --util:'Inter',ui-sans-serif,system-ui,sans-serif;
  --hand:'Inter',ui-sans-serif,system-ui,sans-serif;
}
html[data-theme="editorial"] body{font-family:var(--body);background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}

/* type */
html[data-theme="editorial"] h1,html[data-theme="editorial"] h2,html[data-theme="editorial"] h3,html[data-theme="editorial"] h4,
html[data-theme="editorial"] .cs-h,html[data-theme="editorial"] .disc span,html[data-theme="editorial"] .role *{
  font-family:var(--disp)!important;font-weight:600!important;letter-spacing:-.02em;text-transform:none}
html[data-theme="editorial"] h1{letter-spacing:-.035em;line-height:1.02}
html[data-theme="editorial"] h2{letter-spacing:-.03em}
html[data-theme="editorial"] h2 em,html[data-theme="editorial"] h1 em{font-style:normal;font-weight:500}
html[data-theme="editorial"] p,html[data-theme="editorial"] li,html[data-theme="editorial"] blockquote,
html[data-theme="editorial"] .meta,html[data-theme="editorial"] .label,html[data-theme="editorial"] .eyebrow{font-family:var(--body)}
html[data-theme="editorial"] svg text,html[data-theme="editorial"] svg tspan{font-family:var(--util)!important;font-weight:500}
html[data-theme="editorial"] svg text[font-weight="700"],html[data-theme="editorial"] svg text[font-weight="bold"]{font-weight:600}
html[data-theme="editorial"] [style*="Caveat"],html[data-theme="editorial"] [style*="Permanent Marker"],html[data-theme="editorial"] [style*="Patrick Hand"]{font-family:var(--util)!important}

/* no sketch wobble, glow or hand-drawn shadows */
html[data-theme="editorial"] svg [filter]{filter:none!important}
html[data-theme="editorial"] .dl-layer{display:none!important}

/* frames, cards and buttons: hairline and square-ish */
html[data-theme="editorial"] .vframe,html[data-theme="editorial"] .sitefig,html[data-theme="editorial"] .plate figure,
html[data-theme="editorial"] .pcode,html[data-theme="editorial"] .pcard,html[data-theme="editorial"] .pthumb,
html[data-theme="editorial"] .aicard,html[data-theme="editorial"] .sf-video,html[data-theme="editorial"] .wbsfig,html[data-theme="editorial"] .hl-chip,html[data-theme="editorial"] header.board{
  border:1px solid var(--line)!important;border-radius:4px!important;box-shadow:none!important}
html[data-theme="editorial"] .aistats{border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
html[data-theme="editorial"] .phase li:not(.ai)+li.ai{border-top:1px solid var(--line)}
html[data-theme="editorial"] .btn,html[data-theme="editorial"] button.copybtn,html[data-theme="editorial"] .sendbtn{border-radius:2px!important;border-width:1px!important}
html[data-theme="editorial"] .csCard:focus-visible{outline:2px solid var(--ink)}
html[data-theme="editorial"] .wfilter button{border-width:1px;border-radius:2px}
html[data-theme="editorial"] .theme-btn{border-width:1px;border-radius:2px}

/* Process: single clean ring per phase, no marker overlap */
html[data-theme="editorial"] .wbproc .wbB{display:none}
html[data-theme="editorial"] .wbproc .disc .wbA{stroke-width:2;stroke-opacity:1;transform:none!important}
html[data-theme="editorial"] .wbproc .parrow .wbA{stroke-width:1.5;stroke-opacity:.6;transform:none!important}
html[data-theme="editorial"] .wbproc .disc span{font-size:clamp(14px,1.3vw,17px)!important}
html[data-theme="editorial"] .wbproc .phase ul{font-family:var(--body);font-weight:400;font-size:13.5px;line-height:1.55;color:var(--mute)}
html[data-theme="editorial"] .wbproc .phase li.ai{color:var(--mag)}

/* How I Work: flat index cards instead of cartoon notes */
html[data-theme="editorial"] .stickies.wbn .cel,html[data-theme="editorial"] .stickies.wbn .shadow{display:none}
html[data-theme="editorial"] .stickies.wbn .wbo{stroke-width:1.2;stroke-opacity:.35}
html[data-theme="editorial"] .stickies.wbn .sticky{--r:0deg!important}
html:not([data-theme="editorial"]) .stickies.wbn .ink-ed{display:none!important}
html[data-theme="editorial"] .stickies.wbn .ink{display:none!important}
html[data-theme="editorial"] .stickies.wbn .ink-ed{display:inline}
html[data-theme="editorial"] .stickies.wbn .ink-ed text{font-family:'Inter',ui-sans-serif,system-ui,sans-serif!important}
html[data-theme="editorial"] .stickies.wbn .ink-ed text[font-weight="600"]{font-family:'Inter Tight','Inter',ui-sans-serif,system-ui,sans-serif!important;font-weight:600!important;letter-spacing:-.02em}
html[data-theme="editorial"] .stickies.wbn .ink-ed text[font-weight="500"]{font-weight:500!important}
html[data-theme="editorial"] header.site nav{margin-left:auto}
html[data-theme="editorial"] #gate-f,html[data-theme="editorial"] #gate form{border:1px solid var(--line)!important;border-radius:6px!important}
html[data-theme="editorial"] #gate input{border:1px solid var(--ink)!important;border-radius:2px!important;outline:none}
/* chat FAB and résumé keep their shapes, just cleaner */
html[data-theme="editorial"] .rs-dlg{border-width:1px;border-radius:6px}
@media (max-width:380px){header.site nav{gap:12px!important}header.site nav a{letter-spacing:.1em}}
