/* ==========================================================================
   Three visual styles over one structure.
   A · Notebook     lab notebook × blueprint: paper, grid, ink, handwriting
   B · Observatory  dark data-observatory: glow, networks, mono labels
   C · Editorial    magazine: big serif type, photography, one accent
   ========================================================================== */

/* ============================== A · NOTEBOOK ============================== */
[data-style="notebook"] {
  color-scheme: light;
  --bg: #f3eee2; --bg-2: #e9e2d2; --surface: #fbf8f1; --ink: #1c2230; --ink-2: #5b5f69;
  --line: rgba(28, 34, 48, .14); --line-strong: rgba(28, 34, 48, .3);
  --accent: #b5432a; --em-color: #1f4f8f; --note-color: #b5432a;
  --chip-bg: rgba(31, 79, 143, .08); --nav-bg: rgba(243, 238, 226, .86);
  --font-display: "Fraunces", Georgia, serif; --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace; --font-note: "Caveat", "Segoe Print", cursive;
  --font-letter: "Fraunces", Georgia, serif; --letter-size: 18px;
  --display-weight: 560; --radius: 4px; --radius-btn: 4px; --radius-img: 2px;
  --btn-bg: #1c2230; --btn-ink: #f3eee2;
  --hl-bg: linear-gradient(transparent 58%, rgba(247, 201, 72, .55) 58%, rgba(247, 201, 72, .55) 92%, transparent 92%);
  --d-bio: #2e7d4f; --d-comp: #1f4f8f; --d-ai: #7a3fa0; --d-biz: #b5432a; --d-make: #b7780f; --d-lead: #0f766e; --d-write: #9d3561;
  --map-bg: rgba(251, 248, 241, .7); --map-border: 1px dashed rgba(31, 79, 143, .35); --map-pad: 14px; --ring-dash: 3 3;
  --map-label-font: 600 16px "Fraunces", serif;
  --stat-font: 600 30px/1 "Fraunces", serif; --step-k-font: italic 600 32px/1 "Fraunces", serif;
  --type-bg: repeating-linear-gradient(0deg, transparent 0 27px, rgba(31,79,143,.12) 27px 28px), #fbf8f1; --type-color: #1f4f8f;
  --card-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 20px -12px rgba(60, 40, 10, .25);
  --tile-pad: 8px 8px 0; --tile-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 24px -14px rgba(60,40,10,.35); --img-bg: #fff;
  --tile-cap-font: "Caveat", cursive; --tile-cap-pad: 6px 4px 10px;
  --letter-bg: repeating-linear-gradient(#fffdf8 0 30px, rgba(31,79,143,.10) 30px 31px); --letter-pad: 36px 40px 30px 64px;
  --letter-border: 1px solid rgba(28,34,48,.12); --letter-shadow: 0 18px 40px -24px rgba(60,40,10,.45);
  --secno-font: 500 13px/1 "IBM Plex Mono", monospace;
}
[data-style="notebook"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(31, 79, 143, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 79, 143, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
[data-style="notebook"] .sec-no::before { content: "§ "; }
[data-style="notebook"] .sec-no::after { content: ""; display: inline-block; width: 60px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 10px; opacity: .5; }
[data-style="notebook"] .hero-name em { color: #1f4f8f; font-weight: 400; }
[data-style="notebook"] .note { transform: rotate(-1.2deg); display: inline-block; }
[data-style="notebook"] .hero-note { font-size: 1.45rem; }
[data-style="notebook"] .hero-note::after { content: ""; display: block; height: 8px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 Q 60 1 120 4 T 298 3' fill='none' stroke='%23b5432a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; background-size: 100% 100%; }
[data-style="notebook"] .card { position: relative; overflow: visible; }
[data-style="notebook"] .card .card-img { border-radius: 4px 4px 0 0; }
[data-style="notebook"] .card::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 74px; height: 20px; margin-left: -37px; z-index: 2;
  background: rgba(247, 222, 150, .75); transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
[data-style="notebook"] .card:nth-child(3n+2)::before { transform: rotate(2.5deg); background: rgba(190, 215, 240, .75); }
[data-style="notebook"] .card:nth-child(3n)::before { transform: rotate(-4deg); background: rgba(240, 200, 190, .7); }
[data-style="notebook"] .tile { transform: rotate(var(--rot, 0deg)); transition: transform .3s; }
[data-style="notebook"] .tile:nth-child(4n+1) { --rot: -.8deg; } [data-style="notebook"] .tile:nth-child(4n+2) { --rot: .7deg; }
[data-style="notebook"] .tile:nth-child(4n+3) { --rot: -.3deg; } [data-style="notebook"] .tile:nth-child(4n) { --rot: 1deg; }
[data-style="notebook"] .tile:hover { transform: rotate(0) scale(1.02); z-index: 2; }
[data-style="notebook"] .tile figcaption { font-size: 17px; color: #3a3f4a; }
[data-style="notebook"] .letter::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 1px; background: rgba(181, 67, 42, .45); }
[data-style="notebook"] .step { background: #fbf8f1; }
[data-style="notebook"] .fig-stage button, [data-style="notebook"] .dr-cover { box-shadow: 0 16px 30px -18px rgba(60,40,10,.5); }
[data-style="notebook"] .pull { border-left: 0; padding-left: 0; font-family: "Caveat", cursive; font-size: 30px; font-style: normal; color: #1f4f8f; transform: rotate(-1deg); }
[data-style="notebook"] .pull::before { content: "“"; font-family: "Fraunces", serif; font-size: 64px; line-height: 0; vertical-align: -24px; color: var(--accent); margin-right: 4px; }
[data-style="notebook"] .stat-big { color: #1f4f8f; }
[data-style="notebook"] .drawer { background-color: #f6f2e8; background-image: linear-gradient(rgba(31,79,143,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31,79,143,.06) 1px, transparent 1px); background-size: 28px 28px; }
[data-style="notebook"] .tl-wrap { background: #fbf8f1; }

/* ============================== B · OBSERVATORY ============================== */
[data-style="observatory"] {
  color-scheme: dark;
  --bg: #070a12; --bg-2: #0e1322; --surface: rgba(255, 255, 255, .035); --ink: #e7ecf6; --ink-2: #8e98ad;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --accent: #5eead4; --em-color: #5eead4; --note-color: #5eead4;
  --chip-bg: rgba(255, 255, 255, .06); --nav-bg: rgba(7, 10, 18, .78);
  --font-display: "Space Grotesk", system-ui, sans-serif; --font-body: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace; --font-note: "JetBrains Mono", ui-monospace, monospace; --note-size: .86rem;
  --display-weight: 600; --display-track: -0.025em; --radius: 14px; --radius-btn: 10px;
  --btn-bg: #5eead4; --btn-ink: #041312; --btn-shadow: 0 0 0 1px rgba(94,234,212,.4), 0 8px 30px rgba(94, 234, 212, .25);
  --d-bio: #4ade80; --d-comp: #60a5fa; --d-ai: #c084fc; --d-biz: #fb7185; --d-make: #fbbf24; --d-lead: #2dd4bf; --d-write: #f472b6;
  --pnode-fill: #070a12; --edge-op: .45; --dnode-ring-fill: rgba(255,255,255,.02);
  --map-label-font: 500 13px "JetBrains Mono", monospace;
  --stat-font: 600 30px/1 "Space Grotesk", sans-serif; --stat-color: #e7ecf6;
  --step-k-font: 600 30px/1 "Space Grotesk", sans-serif; --step-bg: rgba(255,255,255,.025);
  --type-bg: radial-gradient(circle at 80% 20%, rgba(94,234,212,.18), transparent 55%), radial-gradient(circle at 10% 90%, rgba(192,132,252,.16), transparent 50%), #0b1020;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  --card-shadow-hover: 0 0 0 1px rgba(94,234,212,.35), 0 20px 50px -20px rgba(94,234,212,.35);
  --img-filter: saturate(.92) contrast(1.02);
  --letter-bg: rgba(255,255,255,.025); --letter-pad: 36px 40px; --letter-border: 1px solid rgba(255,255,255,.08);
  --tile-border: 1px solid rgba(255,255,255,.07);
  --secno-font: 500 12px/1 "JetBrains Mono", monospace;
}
[data-style="observatory"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 85% -5%, rgba(94, 234, 212, .10), transparent 60%),
    radial-gradient(800px 700px at -10% 30%, rgba(167, 139, 250, .09), transparent 60%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px);
  background-size: auto, auto, 26px 26px;
  background-attachment: fixed, fixed, scroll;
}
[data-style="observatory"] .note::before { content: "// "; opacity: .7; }
[data-style="observatory"] .foot .note::before { content: "// "; }
[data-style="observatory"] .sec-no::before { content: "["; } [data-style="observatory"] .sec-no::after { content: "] ——"; opacity: .6; }
[data-style="observatory"] .hero-name { font-weight: 700; }
[data-style="observatory"] .hero-name em, [data-style="observatory"] .sec-head h2 em, [data-style="observatory"] .contact h2 em {
  font-style: normal; background: linear-gradient(95deg, #5eead4, #a78bfa 70%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-style="observatory"] .hl { color: #fff; background: linear-gradient(transparent 62%, rgba(94,234,212,.28) 62%); }
[data-style="observatory"] #map .dnode .core, [data-style="observatory"] #map .pnode.on .dot, [data-style="observatory"] #map .pnode:hover .dot { filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 14px var(--c)); }
[data-style="observatory"] #map .edge { stroke-dasharray: 2 5; animation: flow 3s linear infinite; }
[data-style="observatory"] #map.focus .edge.on { stroke-dasharray: none; filter: drop-shadow(0 0 4px var(--c)); }
@keyframes flow { to { stroke-dashoffset: -28; } }
[data-style="observatory"] #map .dnode text { stroke: #070a12; fill: #cfd6e6; letter-spacing: .04em; }
[data-style="observatory"] .map-frame { background: radial-gradient(circle at 50% 50%, rgba(94,234,212,.06), transparent 70%); }
[data-style="observatory"] .map-tip { background: #111a2e; color: #e7ecf6; border: 1px solid rgba(94,234,212,.35); }
[data-style="observatory"] .btn-ghost { color: #e7ecf6; }
[data-style="observatory"] .thread-tabs button[aria-selected="true"], [data-style="observatory"] .chip[aria-pressed="true"] { background: rgba(94,234,212,.12); color: #5eead4; border-color: rgba(94,234,212,.6); box-shadow: 0 0 20px -6px rgba(94,234,212,.6); }
[data-style="observatory"] .step::after { background: #070a12; }
[data-style="observatory"] .card { backdrop-filter: blur(6px); }
[data-style="observatory"] .card-title, [data-style="observatory"] .dr-title { letter-spacing: -0.02em; }
[data-style="observatory"] .fig-stage button { border-color: rgba(255,255,255,.1); box-shadow: 0 30px 80px -30px rgba(94,234,212,.3); }
[data-style="observatory"] .drawer { background: #0a0e19; box-shadow: -1px 0 0 rgba(94,234,212,.25), -30px 0 80px rgba(0,0,0,.6); }
[data-style="observatory"] .tl-wrap { background: rgba(255,255,255,.02); }
[data-style="observatory"] .tl-bar { background: color-mix(in srgb, var(--c) 14%, #0b0f1c); color: #e7ecf6; }
[data-style="observatory"] .tl-bar:hover { color: #070a12; box-shadow: 0 0 18px -2px var(--c); }
[data-style="observatory"] .pull { border-image: linear-gradient(#5eead4, #a78bfa) 1; }
[data-style="observatory"] .letter p.first::first-letter { background: linear-gradient(#5eead4, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-style="observatory"] .letter .sig { font-family: "Space Grotesk", sans-serif; font-size: 1.2em; letter-spacing: .02em; }
[data-style="observatory"] .stat-big { background: linear-gradient(90deg, #e7ecf6, #8e98ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-style="observatory"] .mono-mark { border-color: #5eead4; color: #5eead4; box-shadow: 0 0 16px -4px rgba(94,234,212,.7); --mark-radius: 8px; }
[data-style="observatory"] .tag { background: rgba(255,255,255,.05); }
[data-style="observatory"] .tag::before { box-shadow: 0 0 6px var(--c); }
[data-style="observatory"] .fig-strip button, [data-style="observatory"] .fig-stage button { background: #fff; }

/* ============================== C · EDITORIAL ============================== */
[data-style="editorial"] {
  color-scheme: light;
  --bg: #fbfaf6; --bg-2: #efece4; --surface: #fbfaf6; --ink: #121212; --ink-2: #5d5b57;
  --line: #e2ded4; --line-strong: #cfcac0;
  --accent: #a3252f; --em-color: #a3252f; --note-color: #5d5b57;
  --chip-bg: #f1eee7; --nav-bg: rgba(251, 250, 246, .9);
  --font-display: "Instrument Serif", "Times New Roman", serif; --font-body: "Inter Tight", system-ui, sans-serif;
  --font-mono: "Inter Tight", system-ui, sans-serif; --font-note: "Instrument Serif", serif; --note-size: 1.3rem;
  --font-ui: "Inter Tight", system-ui, sans-serif;
  --display-weight: 400; --display-track: -0.015em; --radius: 0px; --radius-btn: 0px; --radius-img: 0px;
  --h1-size: clamp(72px, 12vw, 168px); --h1-track: -0.035em; --h2-size: clamp(40px, 5.6vw, 76px);
  --btn-bg: #121212; --btn-ink: #fbfaf6; --btn-shadow: none;
  --d-bio: #3d6b4f; --d-comp: #2f4b7c; --d-ai: #6b4c8a; --d-biz: #a3252f; --d-make: #a8742a; --d-lead: #2e6f73; --d-write: #8a4b62;
  --map-label-font: italic 400 19px "Instrument Serif", serif;
  --stat-font: 400 44px/1 "Instrument Serif", serif;
  --step-k-font: 400 40px/1 "Instrument Serif", serif; --step-bg: transparent;
  --type-bg: #121212; --type-color: #fbfaf6; --type-big-font: 400 46px/1 "Instrument Serif", serif;
  --card-bg: transparent; --card-border: 0; --card-gap: 42px 30px;
  --secno-font: italic 400 64px/1 "Instrument Serif", serif; --secno-color: #a3252f;
  --pull-style: italic; --letter-size: 19px; --font-letter: "Inter Tight", sans-serif;
}
[data-style="editorial"] .eyebrow, [data-style="editorial"] .sub-head, [data-style="editorial"] .card-when, [data-style="editorial"] .paper-kicker { letter-spacing: .16em; font-weight: 600; font-size: 11px; }
[data-style="editorial"] .note { font-style: italic; }
[data-style="editorial"] .hero-portrait { filter: grayscale(1) contrast(1.05); transition: filter .6s; }
[data-style="editorial"] .hero-portrait:hover { filter: none; }
[data-style="editorial"] .hero-name { margin-bottom: 18px; }
[data-style="editorial"] .hero-name em { display: block; padding-left: .5em; }
[data-style="editorial"] .hero-lede { font-size: clamp(17px, 1.45vw, 20px); font-family: "Inter Tight", sans-serif; }
[data-style="editorial"] .btn { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; padding: 15px 22px; }
[data-style="editorial"] .btn:hover { transform: none; background: #a3252f; border-color: #a3252f; color: #fff; }
[data-style="editorial"] .btn-ghost:hover { background: #121212; border-color: #121212; }
[data-style="editorial"] .stats-row { border-top: 2px solid #121212; border-bottom: 1px solid #121212; }
[data-style="editorial"] .sec-head { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 20px; max-width: none; border-top: 2px solid #121212; padding-top: 22px; }
[data-style="editorial"] .sec-head > * { grid-column: 2; }
[data-style="editorial"] .sec-head .sec-no { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
[data-style="editorial"] .sec-head h2 { max-width: 15em; }
@media (max-width: 700px) { [data-style="editorial"] .sec-head { grid-template-columns: 1fr; } [data-style="editorial"] .sec-head > *, [data-style="editorial"] .sec-head .sec-no { grid-column: 1; grid-row: auto; } }
[data-style="editorial"] .step { border: 0; border-top: 1px solid #121212; margin: 0; border-radius: 0 !important; padding: 20px 22px 26px 0; }
[data-style="editorial"] .steps { gap: 0 26px; }
[data-style="editorial"] .step::after { display: none; }
[data-style="editorial"] .step-cell { border-top: 0; padding-top: 0; font-size: 16px; }
[data-style="editorial"] .thread-tabs button, [data-style="editorial"] .chip { border: 0; border-bottom: 1px solid transparent; background: none; padding: 8px 2px; margin-right: 16px; font-size: 15px; }
[data-style="editorial"] .thread-tabs button[aria-selected="true"], [data-style="editorial"] .chip[aria-pressed="true"] { background: none; color: #a3252f; border-bottom-color: #a3252f; }
[data-style="editorial"] .card:hover { transform: none; box-shadow: none; }
[data-style="editorial"] .card-body { padding: 16px 0 0; }
[data-style="editorial"] .card-title { font-size: 28px; line-height: 1.05; }
[data-style="editorial"] .card:hover .card-title { color: #a3252f; }
[data-style="editorial"] .card-img img { filter: grayscale(.25); }
[data-style="editorial"] .card:hover .card-img img { filter: none; }
[data-style="editorial"] .tag { background: none; padding-left: 12px; }
[data-style="editorial"] .tag::before { left: 0; }
[data-style="editorial"] .paper-title, [data-style="editorial"] .pub-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
[data-style="editorial"] .pub-title { font-size: 22px; }
[data-style="editorial"] .findings li span { border: 0; border-bottom: 1px solid #a3252f; text-align: left; }
[data-style="editorial"] .letter p.first::first-letter { font-size: 5.4em; font-weight: 400; color: #121212; }
[data-style="editorial"] .letter .sig { font-family: "Instrument Serif", serif; font-style: italic; color: #121212; font-size: 2em; }
[data-style="editorial"] .pull { border-left: 0; padding: 0; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; }
[data-style="editorial"] .pull::before { content: ""; display: block; width: 40px; height: 3px; background: #a3252f; margin-bottom: 18px; }
[data-style="editorial"] .seek li:not(.seek-h) { border: 0; border-bottom: 1px solid #121212; padding: 6px 2px; background: none; margin-right: 10px; }
[data-style="editorial"] .tl-wrap { border: 0; border-top: 1px solid #121212; border-bottom: 1px solid #121212; background: none; }
[data-style="editorial"] .tl-bar { border-radius: 0; background: none; border: 0; border-left: 3px solid var(--c); border-bottom: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
[data-style="editorial"] .tl-bar:hover { background: var(--c); }
[data-style="editorial"] .tile figcaption { font-size: 12px; padding-top: 8px; }
[data-style="editorial"] .tile img { filter: grayscale(.2); }
[data-style="editorial"] .tile:hover img { filter: none; }
[data-style="editorial"] .masonry { column-gap: 24px; }
[data-style="editorial"] .tile { margin-bottom: 26px; }
[data-style="editorial"] .contact h2 { font-size: clamp(46px, 7vw, 100px); }
[data-style="editorial"] .mono-mark { border-radius: 0; font-family: "Instrument Serif", serif; font-size: 16px; letter-spacing: 0; }
[data-style="editorial"] .brand { font-family: "Instrument Serif", serif; font-size: 22px; font-weight: 400; }
[data-style="editorial"] .facts dt { color: #121212; }
[data-style="editorial"] .dr-title { font-size: clamp(38px, 5vw, 58px); }
[data-style="editorial"] #map .dnode text { stroke-width: 6px; }
[data-style="editorial"] #map .pnode .dot { stroke-width: 1.5; }
[data-style="editorial"] .fig-no { color: #a3252f; }
[data-style="editorial"] .hl { background: none; font-style: italic; font-family: "Instrument Serif", serif; font-size: 1.18em; }

/* ---------- Notebook: compaction specifics ---------- */
[data-style="notebook"] { --h2-size: clamp(30px, 3.4vw, 46px); }
[data-style="notebook"] .hero-name { font-size: clamp(52px, 7.4vw, 104px); margin-bottom: 20px; }
[data-style="notebook"] .stat-big { font-size: 25px; }
[data-style="notebook"] .tile { --tile-pad: 6px 6px 0; }
[data-style="notebook"] .tile figcaption { font-size: 15px; line-height: 1.2; }
[data-style="notebook"] .card-type .type-big { font-size: 30px; }

/* ---------- Observatory / Editorial: compaction specifics ---------- */
[data-style="observatory"] { --h2-size: clamp(30px, 3.6vw, 48px); }
[data-style="observatory"] .hero-name { font-size: clamp(54px, 7.6vw, 108px); }
[data-style="editorial"] { --h2-size: clamp(36px, 4.4vw, 60px); --h1-size: clamp(60px, 8vw, 118px); --card-gap: 34px 24px; }
[data-style="editorial"] .card-title { font-size: 23px; }

/* ---------- In-page navigation, per style ---------- */
[data-style="notebook"] .nav-links { border: 1px dashed rgba(31, 79, 143, .35); background: rgba(251, 248, 241, .8); border-radius: 4px; }
[data-style="notebook"] .nav-links a.active { color: #b5432a; }
[data-style="notebook"] .nav-links a::after { background: #b5432a; }
[data-style="observatory"] .nav-links { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); border-radius: 12px; }
[data-style="observatory"] .nav-hint { color: #5eead4; }
[data-style="observatory"] .nav-links a.active { color: #5eead4; }
[data-style="observatory"] .nav-links a::after { background: #5eead4; box-shadow: 0 0 8px #5eead4; }
[data-style="editorial"] .nav-links { border: 0; border-bottom: 1px solid #121212; border-radius: 0; background: none; padding-inline: 0; }
[data-style="editorial"] .nav-links a.active { color: #a3252f; }
[data-style="editorial"] .nav-links a::after { background: #a3252f; }

/* ---------- Folds, per style ---------- */
/* Notebook: a perforated tear line with a paper tab. */
[data-style="notebook"] .fold-bar::before, [data-style="notebook"] .fold-bar::after { height: 0; background: none; border-top: 2px dashed rgba(31, 79, 143, .3); }
[data-style="notebook"] .fold-btn { font: 700 21px/1 "Caveat", cursive; color: #b5432a; background: #fbf8f1; border: 1px solid rgba(28,34,48,.25); border-radius: 3px; padding: 9px 18px 10px; transform: rotate(-1deg); box-shadow: 0 6px 14px -8px rgba(60,40,10,.45); }
[data-style="notebook"] .fold-btn::before { content: "✂"; font: 16px/1 system-ui; color: #5b5f69; margin-right: 4px; transform: rotate(90deg); display: inline-block; }
[data-style="notebook"] .fold-btn:hover { transform: rotate(0) translateY(-2px); }
[data-style="notebook"] .fold-icon { border-color: #b5432a; }
/* Observatory: a glowing seam and a bracketed command. */
[data-style="observatory"] .fold-bar::before { background: linear-gradient(90deg, transparent, rgba(94,234,212,.6)); }
[data-style="observatory"] .fold-bar::after { background: linear-gradient(90deg, rgba(167,139,250,.6), transparent); }
[data-style="observatory"] .fold-btn { font: 500 13px/1 "JetBrains Mono", monospace; color: #5eead4; border: 1px solid rgba(94,234,212,.5); border-radius: 10px; padding: 11px 18px; background: rgba(94,234,212,.06); box-shadow: 0 0 24px -8px rgba(94,234,212,.7); }
[data-style="observatory"] .fold-btn::before { content: "[ "; } [data-style="observatory"] .fold-btn::after { content: " ]"; }
[data-style="observatory"] .fold-btn:hover { background: rgba(94,234,212,.14); }
[data-style="observatory"] .fold-icon { border-color: #5eead4; }
/* Editorial: a hairline rule and a quiet "continue" line. */
[data-style="editorial"] .fold-bar::before, [data-style="editorial"] .fold-bar::after { background: #121212; }
[data-style="editorial"] .fold-btn { font: italic 400 22px/1 "Instrument Serif", serif; color: #a3252f; padding: 6px 4px; background: none; border: 0; }
[data-style="editorial"] .fold-btn:hover { text-decoration: underline; text-underline-offset: 5px; }
[data-style="editorial"] .fold-icon { border-color: #a3252f; }

/* ---------- Theme picker, per theme ---------- */
[data-style="notebook"] .theme-pick { border-style: dashed; border-color: rgba(31, 79, 143, .35); background: rgba(251, 248, 241, .8); }
[data-style="notebook"] .theme-pick button[aria-checked="true"] { background: #1c2230; color: #f3eee2; }
[data-style="observatory"] .theme-pick { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); }
[data-style="observatory"] .theme-pick button[aria-checked="true"] { background: rgba(94,234,212,.14); color: #5eead4; box-shadow: inset 0 0 0 1px rgba(94,234,212,.5); }
[data-style="editorial"] .theme-pick { border-radius: 0; background: none; border-color: #121212; }
[data-style="editorial"] .theme-pick button { border-radius: 0; }
[data-style="editorial"] .theme-pick button[aria-checked="true"] { background: #121212; color: #fbfaf6; }
[data-style="editorial"] .theme-pick.open { background: #fbfaf6; }
[data-style="notebook"] .theme-pick.open { background: #fbf8f1; }
[data-style="observatory"] .theme-pick.open { background: #0e1322; }

/* ---------- Hero role lines, per theme ---------- */
[data-style="notebook"] { --roles-font: italic 600 clamp(24px, 2.4vw, 32px)/1.15 "Fraunces", serif; }
[data-style="notebook"] .hero-sub { font-family: "Caveat", cursive; font-style: normal; font-size: clamp(20px, 1.7vw, 24px); color: #1f4f8f; }
[data-style="observatory"] { --roles-font: 600 clamp(22px, 2.3vw, 30px)/1.15 "Space Grotesk", sans-serif; }
[data-style="observatory"] .hero-sub { font-family: "JetBrains Mono", monospace; font-style: normal; font-size: 14px; color: #8e98ad; }
[data-style="observatory"] .hero-sub::before { content: "> "; color: #5eead4; }
[data-style="editorial"] { --roles-font: italic 400 clamp(28px, 2.8vw, 38px)/1.1 "Instrument Serif", serif; }
[data-style="editorial"] .hero-sub { font-family: "Inter Tight", sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; font-weight: 600; }
