
:root {
  --bg: #F1F0EC;
  --surface: #FAF9F6;
  --ink: #1D1A22;
  --muted: #5E5866;
  --rule: #D8D4CC;
  --porphyry: #6B2438;
  --porphyry-ink: #FFFFFF;
  --gold: #A77B22;
  --gold-text: #86621A;
  --lapis: #2A4578;
  --good: #2F6B45;
  --bad: #8C2A2A;
  --display: "GFS Didot", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16141A; --surface: #1F1C24; --ink: #ECE7DF; --muted: #A79FAE; --rule: #37323D;
    --porphyry: #C9798C; --porphyry-ink: #16141A; --gold: #D9AE55; --gold-text: #D9AE55;
    --lapis: #9CB3E0; --good: #7FC79A; --bad: #E58C8C;
  }
}
:root[data-theme="dark"] {
  --bg: #16141A; --surface: #1F1C24; --ink: #ECE7DF; --muted: #A79FAE; --rule: #37323D;
  --porphyry: #C9798C; --porphyry-ink: #16141A; --gold: #D9AE55; --gold-text: #D9AE55;
  --lapis: #9CB3E0; --good: #7FC79A; --bad: #E58C8C;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--lapis); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 44rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* HERO */
.hero { padding-top: 3.5rem; padding-bottom: 3rem; }
.brand { font-weight: normal; font-family: var(--display); font-size: clamp(2.6rem, 9vw, 4.2rem); line-height: 1; margin: 0; letter-spacing: 0.01em; }
.tagline { margin: 0.6rem 0 0; color: var(--muted); font-style: italic; font-size: 1.05rem; }
.greek { margin: 2.6rem 0 0; font-family: var(--display); font-size: clamp(1.9rem, 8.6vw, 5rem); line-height: 1.12; }
.greek .row { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
@media (max-width: 520px) { .greek .row { flex-wrap: nowrap; gap: 0.6rem; } .greek .lat { font-size: 0.95rem; } .greek .gloss { font-size: 0.8rem; } }
.greek .tr { display: inline-flex; flex-direction: column; line-height: 1.25; }
.greek .lat { font-family: var(--body); font-size: 1.05rem; font-style: italic; color: var(--ink); }
.greek .iota-l { color: var(--gold-text); font-weight: 600; }
.greek .gloss { font-family: var(--body); font-size: 0.9rem; color: var(--muted); }
.iota { display: inline-block; color: var(--gold); overflow: hidden; vertical-align: bottom; max-width: 0.6em; }
@media (prefers-reduced-motion: no-preference) {
  .iota { animation: arrive 1.4s cubic-bezier(.2,.7,.2,1) 0.9s both; }
  @keyframes arrive {
    0% { max-width: 0; opacity: 0; transform: translateY(-0.5em); }
    60% { opacity: 1; }
    100% { max-width: 0.6em; opacity: 1; transform: none; }
  }
}
.hero p.lede { margin: 1.8rem 0 0; font-size: 1.15rem; max-width: 34em; }
.start {
  display: inline-block; margin-top: 1.6rem; padding: 0.7rem 1.4rem; border: 0; border-radius: 999px;
  background: var(--porphyry); color: var(--porphyry-ink); cursor: pointer; font-weight: 600; text-decoration: none;
}

/* SECTIONS */
section { padding-top: 2.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--rule); }
h2 { font-family: var(--display); font-weight: normal; font-size: 2rem; line-height: 1.15; margin: 0 0 0.4rem; }
.sub { color: var(--muted); margin: 0 0 1.8rem; }

/* TIMELINE */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.6rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--gold); opacity: 0.6; }
.timeline li { margin: 0; }
.bite-btn {
  display: grid; grid-template-columns: 4.8rem 1fr; gap: 1.6rem; width: 100%; text-align: left;
  background: none; border: 0; padding: 0.85rem 0.5rem 0.85rem 0; cursor: pointer; position: relative; border-radius: 6px;
}
.bite-btn::after { content: ""; position: absolute; left: calc(5.6rem - 4px); top: 1.45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.bite-btn.read::after { background: var(--gold); }
.bite-btn:hover .t-title { color: var(--porphyry); }
.t-year { white-space: nowrap; font-size: 0.82rem; color: var(--gold-text); padding-top: 0.2rem; text-align: right; font-variant-numeric: oldstyle-nums; }
.t-title { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.25; transition: color .15s; }
.t-teaser { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }

/* MYTH OR FACT */
.claims { list-style: none; margin: 0; padding: 0; }
.claim { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.claim:first-child { padding-top: 0; }
.claim p { margin: 0 0 0.7rem; font-size: 1.1rem; }
.choices { display: flex; gap: 0.5rem; }
.choice { padding: 0.4rem 1.1rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); cursor: pointer; }
.choice:hover:not(:disabled) { border-color: var(--porphyry); }
.choice:disabled { cursor: default; opacity: 0.55; }
.choice.picked { opacity: 1; border-color: var(--ink); }
.verdict { margin-top: 0.7rem; font-size: 0.97rem; }
.verdict strong { color: var(--good); }
.verdict.wrong strong { color: var(--bad); }
.score { position: sticky; top: 3.1rem; z-index: 2; background: var(--bg); margin: 0 0 0.6rem; padding: 0.5rem 0; font-style: italic; color: var(--muted); border-bottom: 1px solid var(--rule); }
.claim-share { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.claim-share a.share-btn { text-decoration: none; }
.claim-bite { display: block; margin-top: 0.5rem; background: none; border: 0; padding: 0; cursor: pointer; color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; text-align: left; font-size: 0.95rem; }

/* GROUP */
.group p { max-width: 34em; }


/* NAV */
.topnav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); }
.topnav .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.topnav .mini { font-family: var(--display); font-size: 1.15rem; }
.tabs { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; }
.tab { white-space: nowrap; }
@media (max-width: 520px) { .topnav .mini { display: none; } .topnav .wrap { justify-content: center; } .tabs { gap: 0.9rem; font-size: 0.95rem; } }
.tab { background: none; border: 0; padding: 0.25rem 0; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.tab:hover { color: var(--ink); }

/* ANSWERS */
details.answers { margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
details.answers summary { cursor: pointer; color: var(--lapis); font-size: 0.97rem; list-style: none; }
details.answers summary::-webkit-details-marker { display: none; }
details.answers summary::before { content: "+ "; }
details.answers[open] summary::before { content: "– "; }
details.answers .a-body { margin-top: 0.8rem; font-family: var(--body); font-size: 1rem; line-height: 1.65; }
details.answers .a-body p { font-family: var(--body); font-size: 1rem; line-height: 1.65; margin: 0 0 0.9rem; }
details.answers h4 { margin: 1rem 0 0.3rem; font-size: 0.92rem; color: var(--muted); font-weight: 600; }
details.answers ul { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; }
details.answers li { margin-bottom: 0.25rem; }

/* TIMELINE MARKERS */
.mk { display: grid; grid-template-columns: 4.8rem 1fr; gap: 1.6rem; padding: 0.55rem 0.5rem 0.55rem 0; position: relative; }
.mk .t-year { padding-top: 0.15rem; }
.mk::after { content: ""; position: absolute; left: calc(5.6rem - 5px); top: 0.95rem; width: 11px; height: 11px; }
.mk-council::after { background: var(--porphyry); transform: rotate(45deg); }
.mk-heresy::after { background: var(--bg); border: 1px dashed var(--muted); border-radius: 50%; width: 9px; height: 9px; left: calc(5.6rem - 4px); }
.mk-label { display: block; font-size: 0.95rem; }
.mk-council .mk-label { color: var(--porphyry); font-weight: 600; }
.mk-heresy .mk-label { color: var(--muted); font-style: italic; }
.mk-note { display: block; font-size: 0.85rem; line-height: 1.5; color: var(--muted); max-width: 32em; }
@media (max-width: 480px) { .mk { grid-template-columns: 4.4rem 1fr; gap: 1.4rem; } .mk::after { left: calc(5.1rem - 5px); } .mk-heresy::after { left: calc(5.1rem - 4px); } }
.h-story-r { white-space: normal; }
/* DID THEY REALLY + ABOUT */
.human { list-style: none; margin: 0; padding: 0; }
.h-item { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.h-title { font-family: var(--display); font-weight: normal; font-size: clamp(1.45rem, 5vw, 1.8rem); line-height: 1.2; margin: 0.3rem 0 0.8rem; }
.h-story { margin: 0 0 0.8rem; max-width: 36em; }
.h-lesson { margin: 0 0 0.6rem; padding-left: 0.9rem; border-left: 3px solid var(--gold); font-style: italic; max-width: 36em; }
.h-ending { margin: 0 0 0.6rem; font-size: 0.95rem; }
.h-ending strong { color: var(--porphyry); font-weight: 600; }
.h-source { margin: 0; font-size: 0.85rem; color: var(--muted); }
.about p { max-width: 34em; margin: 0 0 1.1rem; }
@media (max-width: 520px) { .tabs { gap: 0.75rem; font-size: 0.9rem; } }
/* JOURNEY */
.j-head { padding-top: 3rem; padding-bottom: 2rem; }
.j-head h1 { font-family: var(--display); font-weight: normal; font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.05; margin: 0; }
.j-head p { color: var(--muted); max-width: 34em; margin: 0.8rem 0 0; }
.signposts { list-style: none; margin: 0; padding: 0; }
.signpost { padding: 2rem 0; border-top: 1px solid var(--rule); }
.sp-meta { color: var(--gold-text); font-size: 0.9rem; margin: 0; }
.sp-q { font-family: var(--display); font-weight: normal; font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.2; margin: 0.4rem 0 1.2rem; }
.sp-body p { margin: 0 0 1.1rem; max-width: 36em; }
.sp-reading { font-size: 0.95rem; color: var(--muted); margin: 0.4rem 0 0; }
.sp-next { margin: 1.4rem 0 0; padding-left: 1rem; border-left: 3px solid var(--gold); }
.sp-next small { display: block; color: var(--muted); font-size: 0.88rem; }
.sp-next span { font-family: var(--display); font-size: 1.25rem; line-height: 1.3; }
.sp-empty { color: var(--muted); font-style: italic; padding: 2rem 0; border-top: 1px solid var(--rule); }

/* PLAN */
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.hero-actions .start { margin-top: 0; }
.ghost { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 999px; border: 1px solid var(--porphyry); color: var(--porphyry); background: none; cursor: pointer; font-weight: 600; text-decoration: none; }
.p-intro p { max-width: 34em; }
.p-books { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.p-books li { margin-bottom: 0.35rem; }
.progress { margin: 1.6rem 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.bar { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s; }
.stages { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.stage { border-top: 1px solid var(--rule); }
.stage:last-child { border-bottom: 1px solid var(--rule); }
.stage > details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; padding: 1rem 0; }
.stage > details > summary::-webkit-details-marker { display: none; }
.s-num { font-family: var(--display); font-size: 1.5rem; color: var(--gold-text); line-height: 1.2; text-align: right; }
.stage.done .s-num::after { content: " ✓"; font-size: 0.9rem; }
.s-title { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.25; }
.s-period { display: block; color: var(--muted); font-size: 0.9rem; }
.s-body { padding: 0 0 1.4rem 3rem; }
.s-q { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; margin: 0 0 1rem; padding-left: 0.9rem; border-left: 3px solid var(--gold); }
.s-body h4 { margin: 1rem 0 0.3rem; font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.s-body ul { margin: 0; padding-left: 1.2rem; }
.s-body li { margin-bottom: 0.3rem; }
.s-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; margin-top: 1.2rem; }
.s-bites button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.s-bites button.link:hover { color: var(--porphyry); }
.s-actions label { display: inline-flex; gap: 0.45rem; align-items: center; cursor: pointer; }
.s-actions input { width: 1.1rem; height: 1.1rem; accent-color: var(--porphyry); }
.together { margin-top: 2.4rem; padding: 1.4rem 1.4rem 1.5rem; background: var(--surface); border-left: 3px solid var(--porphyry); border-radius: 0 8px 8px 0; }
.together h2 { font-size: 1.6rem; }
.together p { margin: 0 0 0.8rem; max-width: 34em; }
.together .start { margin-top: 0.2rem; }
@media (max-width: 480px) { .s-body { padding-left: 0; } .tabs { gap: 0.9rem; } }

section { scroll-margin-top: 3.5rem; }
/* VIEWS */
.view-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--surface); margin: -0.6rem 0 0.6rem; }
.view-toggle button { border: 0; background: none; padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 0.95rem; }
.view-toggle button[aria-pressed="true"] { background: var(--porphyry); color: var(--porphyry-ink); }
.view-note { color: var(--muted); font-size: 0.93rem; font-style: italic; margin: 0 0 1.4rem; }
.part-h { font-family: var(--display); font-weight: normal; font-size: 1.45rem; color: var(--porphyry); margin: 1.8rem 0 0.4rem; }
.part-h:first-child { margin-top: 0.4rem; }
.t-mass { display: block; font-size: 0.85rem; color: var(--porphyry); margin-top: 0.2rem; }
.r-part { color: var(--porphyry); margin: 0.1rem 0 0; font-size: 0.95rem; }
.related { margin-top: 2rem; }
.related h3 { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; }
.related .rel { display: block; background: none; border: 0; padding: 0.25rem 0; cursor: pointer; color: var(--lapis); text-align: left; text-decoration: underline; text-underline-offset: 3px; }

/* IOTA + DATES */
.t-roots { display: block; font-size: 0.72rem; color: var(--muted); font-style: italic; }
.dates { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; margin: -0.6rem 0 1.6rem; font-size: 0.9rem; }
.dates dt { color: var(--gold-text); font-weight: 600; }
.dates dd { margin: 0; color: var(--muted); }
.iota-box { margin: 1.8rem 0 0; padding: 1.1rem 1.25rem 1.2rem; border: 1px solid var(--gold); border-radius: 8px; position: relative; }
.iota-box h3 { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 600; color: var(--gold-text); }
.iota-box h3::before { content: "ι "; font-family: var(--display); font-size: 1.3rem; }
.iota-box .ic { font-family: var(--display); font-size: 1.3rem; line-height: 1.3; margin: 0 0 0.6rem; }
.iota-box p { margin: 0; }
.iota-box .alt-h { margin: 1rem 0 0.35rem; padding-top: 0.8rem; border-top: 1px dashed var(--gold); font-size: 0.92rem; font-weight: 600; color: var(--porphyry); }

/* READER */
.reader {
  position: fixed; inset: 0; background: var(--bg); overflow-y: auto; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: none;
}
.reader.open { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .reader.open .r-inner { animation: rise .35s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.r-bar {
  position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--rule); z-index: 2;
}
.r-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.r-close { background: none; border: 0; cursor: pointer; padding: 0.3rem 0; color: var(--lapis); }
.r-count { color: var(--muted); font-size: 0.9rem; font-variant-numeric: oldstyle-nums; }
.r-inner { padding-top: 2rem; padding-bottom: 3rem; }
.r-year { color: var(--gold-text); margin: 0; }
.r-title { font-family: var(--display); font-weight: normal; font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.1; margin: 0.3rem 0 1.6rem; }
.word { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 1rem 0 1.1rem; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); margin-bottom: 1.8rem; }
.word .w { font-family: var(--display); font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; color: var(--gold-text); }
.word .g { color: var(--muted); font-style: italic; }
.r-body p { margin: 0 0 1.1rem; max-width: 36em; }
.note { margin: 2rem 0 0; padding: 1.1rem 1.25rem; background: var(--surface); border-left: 3px solid var(--porphyry); border-radius: 0 6px 6px 0; }
.note h3 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 600; color: var(--porphyry); }
.note p { margin: 0; }
.note.chew { border-left-color: var(--gold); }
.note.chew h3 { color: var(--gold-text); }
.note.chew p { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; }
.r-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.r-nav button { background: none; border: 0; cursor: pointer; text-align: left; padding: 0.3rem 0; }
.r-nav button.next { text-align: right; }
.r-nav small { display: block; color: var(--muted); }
.r-nav span { font-family: var(--display); font-size: 1.1rem; }
.r-nav button:hover span { color: var(--porphyry); }
.r-nav button:disabled { visibility: hidden; }

@media (max-width: 480px) {
  .timeline::before { left: 5.1rem; }
  .bite-btn { grid-template-columns: 4.4rem 1fr; gap: 1.4rem; }
  .bite-btn::after { left: calc(5.1rem - 4px); }
  .t-title { font-size: 1.2rem; }
}

/* ABOUT: readers and contact */
.about-block { margin-top: 2.75rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.about-block h2 { margin-top: 0; }
.about-block .hero-actions { margin-top: 1.2rem; }
#view-about main { padding-bottom: 3.5rem; }
#support, #contact, #bites { scroll-margin-top: 4.5rem; }
.topnav a.mini { color: inherit; text-decoration: none; }
.topnav a.mini:hover { color: var(--porphyry); }
.tour { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: 36em; }
.tour li { padding-left: 0.9rem; border-left: 3px solid var(--gold); }
.tour .tour-link { display: block; padding: 0; margin: 0 0 0.1rem; border: 0; background: none; font: inherit; font-weight: 600; color: var(--porphyry); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.tour .tour-link:hover { text-decoration-thickness: 2px; }
.about-block h2 { font-size: 1.8rem; }
.about-block > p { color: var(--muted); }
.readers { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.reader-note { margin: 0; padding: 1.1rem 1.25rem; background: var(--surface); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; }
.reader-note .rn-kind { margin: 0 0 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--gold-text); }
.reader-note blockquote { margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.4; }
.reader-note .rn-from { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.reader-note .rn-reply { margin: 0.8rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.reader-note .rn-reply strong { color: var(--porphyry); font-weight: 600; }
.contact-form { display: grid; gap: 1rem; margin-top: 1.2rem; max-width: 34em; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.contact-form label .opt { font-weight: normal; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  font: inherit; font-weight: normal; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 0.6rem 0.75rem; width: 100%; box-sizing: border-box; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form :focus-visible { outline: 2px solid var(--lapis); outline-offset: 2px; }
.contact-form .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: normal; }
.contact-form .check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--porphyry); flex: none; }
.contact-form .fine { margin: 0; font-size: 0.85rem; color: var(--muted); }
.contact-form .start { margin-top: 0; justify-self: start; }
.contact-form .start[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; min-height: 1.4em; }
.form-status.bad { color: var(--bad); }
.form-thanks { margin-top: 1.2rem; padding: 1.1rem 1.25rem; background: var(--surface); border-left: 3px solid var(--good); border-radius: 0 6px 6px 0; }
.form-thanks p { margin: 0; }
.hp { position: absolute; left: -9999px; }
/* WHO'S WHO */
.who-intro { max-width: 40em; }
.who-tools { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; margin: 1rem 0 0.6rem; }
.who-tools select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 0.45rem 0.6rem; max-width: 100%; }
.who-tools label { display: inline-flex; gap: 0.45rem; align-items: center; font-size: 0.95rem; }
.who-legend { display: grid; gap: 0.9rem; margin: 0.6rem 0 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.9rem; }
.who-legend h3 { margin: 0 0 0.3rem; font-size: 0.95rem; font-family: inherit; font-weight: 600; }
.who-keys { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; }
.who-key { display: inline-flex; align-items: center; gap: 0.45rem; }
.who-key svg { flex: none; }
.who-filters { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.who-filter { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.who-filter input { accent-color: var(--porphyry); }
.who-swatch { display: inline-block; width: 18px; height: 3px; border-radius: 2px; flex: none; }
.who-scroll { overflow: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); max-height: 78vh; -webkit-overflow-scrolling: touch; }
.who-svg { display: block; width: 100%; height: auto; min-width: 900px; }
.who-wrap { max-width: 62rem; }
.who-rule { stroke: var(--rule); stroke-width: 1; }
.who-side { font-size: 11px; fill: var(--muted); font-style: italic; }
.who-mid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; }
.who-tick { font-size: 11px; fill: var(--muted); letter-spacing: 0.04em; }
.who-edge { fill: none; stroke-width: 1.4; opacity: 0.38; transition: opacity 0.15s; }
.who-edge.hot { stroke-width: 2.4; opacity: 1; }
.who-edge.dim { opacity: 0.07; }
.who-elabel rect { fill: var(--surface); stroke: var(--rule); stroke-width: 0.8; }
.who-elabel text { font-size: 9.5px; font-weight: 600; }
.who-node { cursor: pointer; transition: opacity 0.15s; }
.who-node:focus { outline: none; }
.who-node:focus-visible .who-name, .who-node.sel .who-name { font-weight: 700; fill: var(--porphyry); }
.who-node.dim { opacity: 0.22; }
.who-name { font-size: 10.5px; fill: var(--ink); }
.who-name.big { font-size: 10px; }
.who-num { font-weight: 700; fill: #3A2A1E; font-family: Georgia, "Times New Roman", serif; pointer-events: none; }
.who-book { fill: #F4EBD3; stroke: #8A6A12; stroke-width: 1; }
.who-chain { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1 3; opacity: 0.6; }
.who-chain-gap { stroke-width: 1.4; stroke-dasharray: 1.5 7; opacity: 0.8; }
.who-chain-note { font-size: 11px; font-style: italic; fill: var(--muted); }
.who-crown { fill: #C9A227; stroke: #8A6A12; stroke-width: 0.8; }
.who-card { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)); z-index: 20; width: min(34rem, calc(100% - 1.6rem)); max-height: 46vh; overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--porphyry); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); padding: 1rem 1.15rem 1.1rem; }
.who-card h3 { margin: 0 2rem 0.2rem 0; font-size: 1.35rem; }
.who-card p { margin: 0 0 0.6rem; }
.who-meta { color: var(--muted); font-size: 0.88rem; }
.who-close { position: absolute; top: 0.4rem; right: 0.5rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0.2rem 0.5rem; }
.who-rels { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: grid; gap: 0.45rem; font-size: 0.93rem; }
.who-rels li { display: block; }
.who-rels .who-swatch { vertical-align: middle; margin-right: 0.45rem; }
.who-person { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--porphyry); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.who-go { margin-top: 0.2rem; }
@media (min-width: 1180px) { .who-card { left: auto; right: 1.2rem; transform: none; bottom: 1.2rem; width: 24rem; max-height: 70vh; } }

.who-svg { --council-ok: rgba(201, 162, 39, 0.13); --council-bad: rgba(40, 24, 34, 0.17); --council-hatch: rgba(40, 24, 34, 0.22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .who-svg { --council-ok: rgba(255, 236, 190, 0.085); --council-bad: rgba(0, 0, 0, 0.42); --council-hatch: rgba(0, 0, 0, 0.55); } }
:root[data-theme="dark"] .who-svg { --council-ok: rgba(255, 236, 190, 0.085); --council-bad: rgba(0, 0, 0, 0.42); --council-hatch: rgba(0, 0, 0, 0.55); }
.who-band-ok { fill: var(--council-ok); }
.who-band-bad { fill: var(--council-bad); }
.who-hatch { stroke: var(--council-hatch); stroke-width: 3; }
.who-band-label { font-size: 10.5px; font-style: italic; fill: var(--muted); }
.who-band-label[role="link"] { cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); }
.who-band-label[role="link"]:hover, .who-band-label[role="link"]:focus-visible { fill: var(--porphyry); outline: none; }
.who-councils { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.who-councils li { line-height: 1.45; }
.who-csw { display: inline-block; width: 22px; height: 12px; margin-right: 0.45rem; vertical-align: -1px; border: 1px solid var(--rule); border-radius: 2px; }
.who-csw.ok { background: rgba(201, 162, 39, 0.28); }
.who-csw.bad { background: repeating-linear-gradient(45deg, rgba(40, 24, 34, 0.55) 0 3px, rgba(40, 24, 34, 0.22) 3px 6px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .who-csw.ok { background: rgba(255, 236, 190, 0.2); } :root:not([data-theme="light"]) .who-csw.bad { background: repeating-linear-gradient(45deg, #000 0 3px, rgba(0,0,0,0.5) 3px 6px); } }
:root[data-theme="dark"] .who-csw.ok { background: rgba(255, 236, 190, 0.2); }
:root[data-theme="dark"] .who-csw.bad { background: repeating-linear-gradient(45deg, #000 0 3px, rgba(0,0,0,0.5) 3px 6px); }
.who-clink { display: inline; margin-right: 0.8rem; font-weight: 600; text-align: left; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .who-dark-node { stroke: #8E8695 !important; } }
:root[data-theme="dark"] .who-dark-node { stroke: #8E8695 !important; }
.who-council-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.who-council-links .who-go { margin-top: 0; text-align: left; }



/* links in each bite's sources */
.src-list a.src-link { color: var(--lapis); text-underline-offset: 2px; }
.src-list a.src-link:hover { color: var(--porphyry); }
.src-list .src-ann { color: var(--muted); }
.src-list a.src-about { font-size: 0.85em; color: var(--muted); text-decoration-style: dotted; }
.src-list a.src-about:hover { color: var(--porphyry); }


.note.sources h3 + .src-intro, .note.sources .src-intro { margin: -0.2rem 0 0.4rem; font-size: 0.88rem; color: var(--muted); }
.note.sources h3 { margin-top: 0; }
.note.sources .src-list + h3 { margin-top: 1.1rem; }

/* note after the last bite */
.end-note { margin-top: 1.6rem; }
.end-note p + p { margin-top: 0.7rem; }
.end-note .end-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.end-note .end-actions .ghost { text-decoration: none; }


/* tile animations: a short movement, then a long rest, on a gentle loop (still for anyone who asks for reduced motion) */
.tt-art .tt-chunk, .tt-art .tt-crumbs { opacity: 0; }
.tt-art .tt-draw, .tt-art .tt-draw2 { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tt-art .tt-mouth, .tt-art .tt-brows { transform-box: fill-box; transform-origin: center; }
@keyframes tt-draw-loop { 0% { stroke-dashoffset: 1; } 14%, 100% { stroke-dashoffset: 0; } }
@keyframes tt-draw2-loop { 0%, 9% { stroke-dashoffset: 1; } 20%, 100% { stroke-dashoffset: 0; } }
@keyframes tt-late-loop { 0%, 4% { stroke-dashoffset: 1; } 14%, 100% { stroke-dashoffset: 0; } }
@keyframes tt-chunk-loop { 0%, 3% { opacity: 1; } 10%, 100% { opacity: 0; } }
@keyframes tt-crumb-loop { 0%, 4% { opacity: 0; transform: translateY(0); } 7% { opacity: 1; } 20%, 100% { opacity: 0; transform: translateY(16px); } }
@keyframes tt-brows-loop { 0% { transform: translateY(0); } 6% { transform: translateY(-5px); } 13%, 100% { transform: translateY(0); } }
@keyframes tt-mouth-loop { 0% { transform: scale(1); } 2% { transform: scale(0.3); } 11%, 100% { transform: scale(1); } }
@keyframes tt-fade-loop { 0%, 10% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
.tt-art .tt-draw { animation: tt-draw-loop 6s ease-out infinite; }
.tt-art .tt-late { animation: tt-late-loop 6s ease-out infinite; }
.tt-art .tt-draw2 { animation: tt-draw2-loop 6s ease-out infinite; }
.tt-art .tt-chunk { animation: tt-chunk-loop 6s ease-in infinite; }
.tt-art .tt-crumbs { animation: tt-crumb-loop 6s ease-in infinite; }
.tt-art .tt-brows { animation: tt-brows-loop 6s ease infinite; }
.tt-art .tt-mouth { animation: tt-mouth-loop 6s ease-out infinite; }
.tt-art .tt-fade { animation: tt-fade-loop 6s ease infinite; }
/* stagger the tiles so they take turns rather than moving together */
.tour-tiles li:nth-child(2) .tt-art * { animation-delay: 1.2s; }
.tour-tiles li:nth-child(3) .tt-art * { animation-delay: 2.4s; }
.tour-tiles li:nth-child(4) .tt-art * { animation-delay: 3.6s; }
.tour-tiles li:nth-child(5) .tt-art * { animation-delay: 4.8s; }
@media (prefers-reduced-motion: reduce) { .tt-art *, .r-motif { animation: none !important; } }

/* motif beside each bite's title */
.r-motif { display: block; width: 44px; height: 44px; margin: 0 0 0.35rem; color: var(--gold); opacity: 0.75; animation: tt-fade 0.5s ease both; }
.r-motif svg { display: block; width: 100%; height: 100%; }


/* who's who: chart / map switch and map */
.view-switch-wrap { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.9rem; flex-wrap: wrap; }
.view-switch-label { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.view-switch { display: inline-flex; padding: 4px; gap: 4px; border: 1.5px solid var(--gold); border-radius: 999px; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.view-switch button { display: inline-flex; align-items: center; gap: 0.45rem; font: inherit; font-size: 1.05rem; font-weight: 600; padding: 0.45rem 1.3rem; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.view-switch button:hover { color: var(--ink); }
.view-switch button[aria-pressed="true"] { background: var(--porphyry); color: #fff; }
.view-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; align-items: center; margin: 0.8rem 0; }
.map-pick select { font: inherit; margin-left: 0.4rem; padding: 0.2rem 0.4rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.map-eras { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.map-eras button { font: inherit; font-size: 0.85rem; padding: 0.15rem 0.6rem; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.map-eras button[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); background: var(--surface); }
.map-box { position: relative; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; touch-action: pan-y; }
#mapSvg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 729; cursor: grab; user-select: none; }
.map-sea { fill: var(--map-sea); }
.map-land { fill: var(--map-land); stroke: var(--map-coast); stroke-width: 0.6; }
.map-desert { fill: var(--map-desert); }
.map-mtn { fill: var(--map-mtn); stroke: var(--map-mtn-edge); stroke-width: 0.4; }
.map-lake { fill: var(--map-sea); stroke: var(--map-coast); stroke-width: 0.4; }
.map-river { fill: none; stroke: var(--map-river); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.map-dot { fill: var(--gold); stroke: var(--surface); }
.map-static .map-dot, .map-traced .map-dot { fill: var(--porphyry); }
.map-hit { fill: transparent; }
.map-pt { cursor: pointer; }
.map-pt:hover .map-dot, .map-pt.on .map-dot, .map-pt:focus-visible .map-dot { fill: var(--porphyry); }
.map-pt:focus-visible { outline: none; }
.map-label { fill: var(--ink); paint-order: stroke; stroke: var(--map-land); stroke-linejoin: round; font-family: var(--serif, Georgia, serif); pointer-events: none; }
.map-leg { fill: none; stroke: var(--porphyry); stroke-dasharray: 6 4; opacity: 0.85; }
.map-arrow { fill: var(--porphyry); }
.map-leader { stroke: var(--muted); fill: none; opacity: 0.7; }
.map-num { fill: #fff; font-weight: 700; font-family: var(--serif, Georgia, serif); pointer-events: none; }
.map-static { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 10px; margin: 1rem 0 0.4rem; }
.map-zoom { position: absolute; right: 0.6rem; top: 0.6rem; display: grid; gap: 0.3rem; }
.map-zoom button { width: 2rem; height: 2rem; border-radius: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.map-hint { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }
.map-card { margin-top: 1rem; }
.map-card h3 { margin-top: 0; }
.map-meta { color: var(--muted); margin: -0.3rem 0 0.5rem; }
.map-stops { margin: 0.4rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.map-stops .yr { color: var(--muted); font-size: 0.9rem; }
.map-stops li.dim { opacity: 0.45; }
.map-card button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.map-acts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.8rem; }
:root { --map-sea: #E3E7EA; --map-land: #F5F0E6; --map-coast: #C9BFAE; --map-desert: rgba(222, 196, 140, 0.22); --map-mtn: rgba(140, 115, 85, 0.13); --map-mtn-edge: rgba(140, 115, 85, 0.18); --map-river: #A9C0CE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-sea: #14161C; --map-land: #2A2630; --map-coast: #4A4352; --map-desert: rgba(222, 196, 140, 0.06); --map-mtn: rgba(255, 255, 255, 0.06); --map-mtn-edge: rgba(255, 255, 255, 0.08); --map-river: #3C5464; } }
:root[data-theme="dark"] { --map-sea: #14161C; --map-land: #2A2630; --map-coast: #4A4352; --map-desert: rgba(222, 196, 140, 0.06); --map-mtn: rgba(255, 255, 255, 0.06); --map-mtn-edge: rgba(255, 255, 255, 0.08); --map-river: #3C5464; }


/* Who's who tile: the map drawing beside the chart drawing */
@keyframes tt-pin-loop { 0%, 12% { transform: translateY(-14px); opacity: 0; } 18% { transform: translateY(0); opacity: 1; } 21% { transform: translateY(-3px); } 24%, 100% { transform: translateY(0); opacity: 1; } }
.tt-art .tt-pin { transform-box: fill-box; transform-origin: center bottom; animation: tt-pin-loop 6s ease-out infinite; }
.wide .tt-art.tt-mapart { right: calc(1rem + 138px); }
@media (max-width: 559px) { .wide .tt-art.tt-mapart { right: auto; left: auto; right: 0.4rem; bottom: auto; top: 0.5rem; width: 64px; height: 64px; } }


/* the One Iota game: a quiet card on the front page, notes in two bites and the plan */
.game-card { display: flex; gap: 1rem; align-items: center; margin: 1.4rem 0 0; padding: 0.9rem 1.1rem; border: 1px dashed var(--gold); border-radius: 10px; background: transparent; }
.game-card .gc-door { flex: none; width: 46px; height: 46px; color: var(--gold); }
.game-card p { margin: 0; }
.game-card .gc-kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.game-card .gc-title { font-family: var(--display); font-size: 1.25rem; }
.game-card .gc-title a { color: var(--porphyry); text-underline-offset: 3px; }
.game-card .gc-desc { font-size: 0.95rem; color: var(--ink); }
.game-note a, .s-game a { color: var(--lapis); }
.s-game { margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--muted); }

/* front-page tiles */
.tour-tiles { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tour-tiles { grid-template-columns: repeat(2, 1fr); } .tour-tiles .wide { grid-column: span 2; } }
.tour-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 0.35rem; width: 100%; height: 100%; min-height: 9.5rem; margin: 0; padding: 1.05rem 1.2rem 1.2rem; text-align: left; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 4px 10px 10px 4px; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.tour-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); border-color: var(--gold); }
.tour-tile:focus-visible { outline: 2px solid var(--porphyry); outline-offset: 2px; }
.tt-title { font-weight: 600; font-size: 1.15rem; color: var(--porphyry); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tt-desc { font-size: 0.98rem; line-height: 1.5; padding-right: 3.2rem; }
.wide .tt-desc { max-width: 34em; padding-right: 15rem; }
.tt-art { position: absolute; z-index: -1; right: -0.7rem; bottom: -0.7rem; width: 96px; height: 96px; color: var(--gold); opacity: 0.5; pointer-events: none; }
.wide .tt-art { width: 128px; height: 128px; right: 1rem; bottom: -0.9rem; }
@media (max-width: 559px) { .wide .tt-desc { padding-right: 2.6rem; } .wide .tt-art { width: 96px; height: 96px; right: -0.7rem; bottom: -0.7rem; } }
@media (prefers-reduced-motion: reduce) { .tour-tile { transition: none; } .tour-tile:hover { transform: none; } }

/* footer, matching bitesizeformation.org */
.site-foot { margin-top: 4rem; background: #5E1F48; color: #FBF5F8; padding: 2.25rem 0 calc(2.25rem + env(safe-area-inset-bottom, 0px)); font-size: 0.95rem; }
.foot-wrap { max-width: 62rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.foot-lockup img { display: block; width: 190px; height: auto; margin-left: -8px; }
.site-foot .meta { display: grid; gap: 0.35rem; justify-items: end; text-align: right; }
.site-foot p { margin: 0; }
.site-foot .f-name { font-family: var(--display); font-size: 1.3rem; }
.site-foot a { color: #DDBA74; font-weight: 700; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.site-foot a:hover { color: #EBCB8B; }
.site-foot .f-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; align-items: center; justify-content: flex-end; margin-top: 0.35rem; }
.site-foot .share-btn { color: #DDBA74; border-color: rgba(255, 255, 255, 0.3); }
.site-foot .share-btn:hover { border-color: #DDBA74; }
.site-foot .indep { width: 100%; margin-top: 0.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.85rem; color: #D9C3D0; }
.site-foot :focus-visible { outline-color: #DDBA74; }
@media (max-width: 639px) {
  .foot-wrap { flex-direction: column; align-items: center; text-align: center; }
  .foot-lockup img { margin-left: 0; }
  .site-foot .meta { justify-items: center; text-align: center; }
  .site-foot .f-actions { justify-content: center; }
}

/* Bite-size Formation branding */
.topnav .wrap { gap: 1rem; }
.bsf-tab { display: inline-flex; align-items: center; flex: none; margin-left: 0.2rem; border-radius: 6px; }
.bsf-tab img { display: block; width: 30px; height: 30px; }
.bsf-tab:hover img, .bsf-tab:focus-visible img { transform: translateY(-1px); }
.bsf-tab:focus-visible { outline: 2px solid var(--porphyry); outline-offset: 2px; }
.tabs { margin-left: auto; }
@media (max-width: 520px) { .bsf-tab img { width: 26px; height: 26px; } .topnav .wrap { gap: 0.6rem; } .tabs { margin-left: 0; } }
:root { padding-bottom: 0; }
/* which logo shows where: colour on light screens, reversed on dark screens, black when printed */
.bsf-dark, .bsf-print { display: none !important; }
.bsf-tab .bsf-dark { border-radius: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bsf-light { display: none !important; } :root:not([data-theme="light"]) .bsf-dark { display: block !important; } }
:root[data-theme="dark"] .bsf-light { display: none !important; }
:root[data-theme="dark"] .bsf-dark { display: block !important; }
@media print {
  .bsf-light, .bsf-dark, .bsf-screen { display: none !important; }
  .bsf-print { display: block !important; }
  .site-foot { background: none !important; color: #1B1A1E !important; }
  .site-foot a { color: #1B1A1E !important; }
  .site-foot .indep { border-color: #ccc !important; color: #444 !important; }
  .site-foot .share-btn { display: none !important; }
}

/* sharing */
.r-right { display: inline-flex; align-items: center; gap: 0.9rem; }
.share-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 0.25rem 0.75rem; font: inherit; font-size: 0.9rem; color: var(--lapis); cursor: pointer; }
.share-btn:hover { border-color: var(--lapis); }
.share-btn:focus-visible { outline: 2px solid var(--lapis); outline-offset: 2px; }
.who-share { margin-top: 0.6rem; margin-left: 0.5rem; vertical-align: middle; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 0.6rem 0.9rem; font-size: 0.95rem; box-shadow: 0 6px 24px rgba(0,0,0,0.25); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; max-width: calc(100% - 2rem); }
.toast[hidden] { display: none; }
.toast input { font: inherit; font-size: 0.85rem; min-width: 14rem; flex: 1; padding: 0.3rem 0.4rem; border-radius: 4px; border: 0; color: #1B1A1E; background: #F4EBD3; }

/* reading plan: free texts and read ticks */
.s-read { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--muted); }
.s-read a { color: var(--lapis); text-underline-offset: 2px; }
.s-read a:hover { color: var(--porphyry); }
.s-bites li.is-read { list-style: none; position: relative; }
.s-bites li.is-read::before { content: "✓"; position: absolute; left: -1.15rem; top: 0; color: var(--good); font-weight: 700; }
.s-bites li.is-read button.link { color: var(--muted); }

/* standalone pages */
.pg-top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.pg-top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.2rem; flex-wrap: wrap; }
.pg-top .brand { font-family: var(--display); font-size: 1.25rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.pg-top nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.pg-top nav a { color: var(--muted); text-decoration: none; }
@media (max-width: 600px) { .pg-top .wrap { flex-wrap: nowrap; } .pg-top nav { flex-wrap: nowrap; overflow-x: auto; gap: 0.9rem; scrollbar-width: none; } .pg-top nav a { white-space: nowrap; } .pg-top .brand { margin-right: 0.4rem; flex: none; } }
.pg-top nav a:hover { color: var(--porphyry); }
.pg-main { padding-top: 2rem; padding-bottom: 1rem; }
.pg-main .r-title { margin-top: 0.2rem; }
.related a.rel, .pg-list a { color: var(--lapis); }
.r-nav a { text-decoration: none; }
.pg-cta { margin: 2.2rem 0 0; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 4px 10px 10px 4px; background: var(--surface); }
.pg-cta p { margin: 0 0 0.6rem; }
.pg-cta .end-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg-cta .ghost { text-decoration: none; }
.pg-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.pg-list .yr { color: var(--muted); font-size: 0.9rem; margin-right: 0.5rem; }
.pg-card img { display: block; width: 100%; max-width: 30rem; height: auto; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); margin: 1.2rem 0 1.4rem; }
.pg-h2 { font-family: var(--display); font-weight: normal; font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.pg-conns { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.pg-conns a { color: var(--lapis); }
.pg-list h2 { font-family: var(--display); font-weight: normal; font-size: 1.3rem; margin: 1.8rem 0 0.3rem; }
