/* Dyslexia: understanding the dyslexic brain.
   Look borrowed from Gyaan, Morning Notes and Spardha Music: calm ground colour, white cards, one accent colour.
   Made for dyslexic readers: one sans-serif font (Nunito Sans), no italics, text on the left, short lines,
   generous line spacing, a warm cream ground instead of bright white.
   Type: 14 label, 16 note, 18 body, 22 card title, 28 page title. Weights 400 and 700 only. */
:root {
  --ground: #f4efe4; --ink: #1f2427; --muted: #5d6468; --card: #ffffff;
  --line: rgba(31, 36, 39, 0.13); --soft: #f7f4ec;
  --accent: #1d5c63; --accent-2: #2f7f86; --accent-soft: #e3efee; --accent-tint: #eef5f4; --warm: #b5653a; --warm-soft: #f6e8df;
  --shadow: 0 1px 2px rgba(20, 30, 32, 0.06), 0 6px 18px rgba(20, 30, 32, 0.06);
  --font: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.7; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 700; }
em, i { font-style: normal; }
.hidden { display: none !important; }
.label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.note { font-size: 16px; color: var(--muted); }

/* ---------- Gate: one password for everyone ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.gatePanel { width: 100%; max-width: 460px; background: var(--card); border-radius: 20px; padding: 28px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gatePanel h1 { font-size: 28px; color: var(--accent); margin-bottom: 8px; }
.gateForm { margin: 18px 0 0; }
.gateRow { display: flex; gap: 8px; margin-top: 6px; }
.gateInput { flex: 1; min-width: 0; font-size: 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; min-height: 50px; background: #fff; }
.gateInput:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.action { border: 0; background: var(--accent); color: #fff; font-weight: 700; border-radius: 12px; padding: 0 22px; min-height: 50px; }
.action:disabled { opacity: .7; }
.gateError { margin: 12px 0 0; color: var(--warm); font-weight: 700; }

/* ---------- Frame ---------- */
.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--accent); color: #fff; }
.headerText { text-decoration: none; display: flex; flex-direction: column; }
.brand { font-size: 28px; font-weight: 700; line-height: 1.2; }
.header .tagline { font-size: 16px; opacity: .92; line-height: 1.4; margin-top: 2px; }
.header .sub { font-size: 14px; opacity: .8; line-height: 1.4; }
.navToggle { display: none; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 999px; font-size: 20px; line-height: 1; align-items: center; justify-content: center; }

.workspace { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.nav { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 80px); overflow-y: auto; padding: 18px 14px 40px; border-right: 1px solid var(--line); }
.canvas { padding: 30px 36px 64px; min-width: 0; max-width: 1080px; }
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--ground); color: var(--muted); }

/* ---------- Topic menu ---------- */
.navTop { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 18px; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.navClose, .navBackdrop { display: none; }
.navGroup { margin: 16px 0 4px; padding: 0 12px; }
.navItem { display: flex; gap: 10px; align-items: baseline; text-decoration: none; border-radius: 10px; padding: 8px 12px; min-height: 44px; line-height: 1.4; }
.navItem:hover { background: rgba(31, 36, 39, 0.05); }
.navItem.active { background: #fff; box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.navItem .num { font-size: 14px; color: var(--muted); font-weight: 700; min-width: 22px; }
.navEmpty { padding: 12px; }

/* ---------- Home ---------- */
.intro { margin: 0 0 32px; max-width: 640px; }
.intro h2 { font-size: 28px; color: var(--accent); margin-bottom: 10px; }
.shelf { margin: 0 0 34px; }
.shelf > .label { margin: 0 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tile { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent); }
.tile h3 { font-size: 22px; color: var(--accent); margin: 4px 0 6px; }
.tile .note { margin: 0; }

/* ---------- Topic page ---------- */
.topicHead { margin: 0 0 22px; max-width: 700px; }
.topicHead h2 { font-size: 28px; color: var(--accent); margin: 6px 0 8px; }
.oneLine { font-size: 22px; line-height: 1.45; margin: 0; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 24px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.tab { border: 0; background: transparent; border-radius: 999px; padding: 8px 22px; min-height: 42px; font-weight: 700; color: var(--muted); }
.tab.active { background: var(--accent); color: #fff; }

/* Cards: one idea each */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 22px; color: var(--ink); }
.card .text { margin: 0; max-width: 34em; }
.card.lived { background: var(--soft); }
.tag { align-self: flex-start; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 2px 12px; background: var(--accent-soft); color: var(--accent); }
.tag.idea { background: var(--warm-soft); color: var(--warm); }
.src { font-size: 16px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; line-height: 1.5; }
.src a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.src a:hover { color: var(--accent); }
.diagram { background: var(--soft); border-radius: 10px; padding: 12px; }
.diagram svg { display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto; font-family: var(--font); }

/* Article: a short read */
.article { max-width: 680px; }
.article section { margin: 0 0 26px; }
.article h3 { font-size: 22px; color: var(--accent); margin: 0 0 8px; }
.sources { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); }
.sources ol { margin: 8px 0 0; padding-left: 22px; }
.sources li { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }

.next { display: flex; justify-content: flex-end; margin: 30px 0 0; max-width: 100%; }
.next a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; min-height: 46px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); box-shadow: var(--shadow); }
.next a:hover { border-color: var(--accent); }

/* ---------- Way back to the map (her ask, October 18, 2026) ---------- */
.headerText { color: inherit; min-height: 44px; justify-content: center; }
.backToMap { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 22px 0 0; min-height: 52px; padding: 10px 24px; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-weight: 700; text-decoration: none; }
.backToMap:hover { background: var(--accent-soft); }
.backToMap svg, .mapFab svg { width: 22px; height: 22px; flex: 0 0 auto; }
.mapFab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 10px rgba(20, 30, 32, .18), 0 10px 26px rgba(20, 30, 32, .18); }
.mapFab:hover { background: var(--accent-2); }
.canvas.hasFab { padding-bottom: 120px; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .header { padding: 10px 16px; }
  .brand { font-size: 22px; }
  .navToggle { display: flex; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(86vw, 340px); max-height: none; background: var(--ground); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .2s ease; }
  .nav.open { transform: none; }
  .nav { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; height: 100dvh; }
  .navClose { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; }
  .navBackdrop { position: fixed; inset: 0; z-index: 30; background: rgba(20, 24, 26, .35); display: none; touch-action: none; }
  .navBackdrop.open { display: block; }
  .canvas { padding: 22px 16px 48px; }
  .canvas.hasFab { padding-bottom: 120px; }
  .backToMap { width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card, .tile, .sources { padding: 18px 16px; }
  .topicHead h2, .intro h2 { font-size: 28px; }
  .oneLine { font-size: 18px; }
}

/* ---------- Sources and credits ---------- */
.navFoot { padding: 16px 12px 0; margin: 0; }
.credit { margin: 0 0 14px; }
.credit p { font-size: 16px; }
.credit ul { margin: 0; padding-left: 22px; font-size: 16px; }

/* ---------- Pictures on cards: one icon per card, one per list line ---------- */
.cardHead { display: flex; gap: 14px; align-items: center; }
.cardIcon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cardIcon svg { width: 26px; height: 26px; }
.lived .cardIcon { background: #fff; }
.idea .cardIcon, .card:has(.tag.idea) .cardIcon { background: var(--warm-soft); color: var(--warm); }
.cardHead .tag { margin-bottom: 4px; display: inline-block; }
.big { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 10px; padding: 8px 12px; line-height: 1.4; }
.lived .points li { background: #fff; }
.points svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); }
.tileTop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tile .cardIcon { flex-basis: 44px; width: 44px; height: 44px; }
.titleIcon { display: inline-flex; vertical-align: -4px; margin-right: 10px; color: var(--accent); }
.titleIcon svg { width: 30px; height: 30px; }

/* ---------- Pictures from the sources, and the reading list ---------- */
.card.wide { grid-column: 1 / -1; }
.picture { margin: 0; }
.picture img { display: block; width: auto; max-width: 100%; max-height: 560px; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.picture figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.readLinks { display: flex; flex-wrap: wrap; gap: 8px; }
.readLinks a { text-decoration: none; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 8px 18px; min-height: 44px; display: inline-flex; align-items: center; }
.readLinks a + a { background: #fff; color: var(--accent); border: 1px solid var(--line); }
.points a { text-underline-offset: 3px; }

/* ---------- Famous dyslexic minds: a collage of photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.person { margin: 0; background: var(--soft); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.person img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.person figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.person b { font-size: 18px; }
.person .tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.person .tag svg { width: 16px; height: 16px; }
.person .personText { font-size: 16px; }
.person .src { font-size: 14px; border-top: 0; padding-top: 4px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .person figcaption { padding: 10px; } }

/* ---------- Wayfinding Map, laid out like Spardha Music's Course Journey ---------- */
.navMap { align-items: center; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.navMap svg { width: 22px; height: 22px; flex: 0 0 22px; }
.mapHead { font-size: 28px; color: var(--accent); margin: 8px 0 4px; }
.mapNote { margin: 0 0 16px; }
/* Group bars copied from Copilot Skills */
.journeyGroup { margin: 0 0 16px; border-radius: 20px; background: var(--accent-tint); border: 1px solid var(--accent-soft); overflow: hidden; }
.groupBar { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.groupBar::-webkit-details-marker { display: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto; background: rgba(255,255,255,.18); color: #fff; }
.badge svg { width: 26px; height: 26px; }
.groupText { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.groupName { font-size: 22px; font-weight: 700; line-height: 1.3; }
.groupSub { font-size: 16px; opacity: .9; }
.groupToggle { display: flex; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 999px; align-items: center; justify-content: center; background: rgba(255,255,255,.16); transition: transform .2s ease; }
.journeyGroup[open] .groupToggle { transform: rotate(180deg); }
.groupBar:focus-visible { outline: 3px solid var(--warm); outline-offset: -3px; }
.groupBody { padding: 20px 22px 24px; }
.groupBody .journey { margin: 0; }
@media (max-width: 600px) { .groupBar { padding: 14px 16px; gap: 12px; } .groupBody { padding: 12px; } .groupName { font-size: 20px; } }
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; }
.jTile { display: block; text-decoration: none; background: var(--card); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); border: 1px solid transparent; }
.jTile:hover { border-color: var(--accent); }
.jTile h3 { font-size: 22px; color: var(--accent); margin: 6px 0 8px; }
.jTile .note { margin: 0; }
.mapLinks a { text-underline-offset: 3px; }
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .journey { grid-template-columns: minmax(0, 1fr); gap: 12px; } .jTile { padding: 18px 16px; } }
/* "Remember this" (her ask, 2026-10-11): the old Memory Anchors, now one calm line at the top of each topic. */
.remember { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 16px; background: var(--accent-tint); border-left: 4px solid var(--accent-2); border-radius: 12px; font-size: 16px; line-height: 1.6; }
.remember svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.remember b { color: var(--accent); }
/* "All the sources used" at the end of the map (her ask, October 11, 2026): the book first, then the reading list and credits. */
.allSources { margin-top: 32px; max-width: 760px; }
.srcList { padding: 8px 20px; }
.srcRow { display: flex; align-items: center; gap: 14px; padding: 14px 0; min-height: 44px; text-decoration: none; color: var(--ink); }
.srcRow + .srcRow { border-top: 1px solid var(--line); }
.srcText { flex: 1; display: flex; flex-direction: column; }
.srcText b { color: var(--accent); }
.srcText .note { line-height: 1.5; }
.srcGo { font-size: 16px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.srcRow:hover .srcGo { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pages: her own slides as pictures (as in Gyaan) ---------- */
.pages { display: grid; gap: 18px; max-width: 980px; }
.page { display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.page img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .pages { gap: 12px; } }

/* Words from people she worked with */
.said { margin: 0; padding: 12px 16px; background: var(--accent-tint); border-radius: 10px; }
.said p { margin: 0 0 6px; }
.said span { font-size: 16px; color: var(--muted); font-weight: 700; }

/* ---------- Timeline: her four acts (rail, numbered dots, today highlighted; like the AI Learning ladder) ---------- */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 6px; border-radius: 6px; background: var(--accent-2); opacity: .35; }
.tStep { position: relative; display: flex; gap: 16px; margin: 0 0 16px; }
.tStep:last-child { margin-bottom: 0; }
.tDot { position: relative; z-index: 1; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 999px; background: var(--card); border: 3px solid var(--accent-2); color: var(--accent); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.tBody { flex: 1; min-width: 0; background: var(--soft); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tBody h4 { font-size: 22px; color: var(--accent); margin: 0; line-height: 1.3; }
.tBody p { margin: 0; }
.tWith { font-size: 14px; font-weight: 700; letter-spacing: .01em; color: var(--muted); }
/* No capitals in the timeline (reading rules): "Act 4 · her 50s, today", "Roles", "Worked on". */
.timeline .label { text-transform: none; letter-spacing: .01em; }
.tBody .points li { background: var(--card); }
.tStep.now .tDot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tStep.now .tBody { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 600px) { .timeline::before { left: 17px; } .tDot { flex-basis: 40px; width: 40px; height: 40px; font-size: 16px; } .tStep { gap: 10px; } .tBody { padding: 12px; } .tBody h4 { font-size: 20px; } }
/* Each leader: name, title and role, with their words indented right under them */
.tPeople { display: flex; flex-direction: column; gap: 10px; }
.tPerson { background: var(--card); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tWho { display: flex; gap: 12px; align-items: flex-start; }
.tWho > svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.tWho div { display: flex; flex-direction: column; line-height: 1.45; }
.tWho span { font-size: 16px; color: var(--muted); }
.tWho .tRole { color: var(--ink); }
.tPerson .said { margin-left: 34px; }
@media (max-width: 600px) { .tPerson .said { margin-left: 12px; } }

/* ---------- Meet Sangya: pill, photo, quote, skills with education, reputation groups, fold-up timeline ---------- */
.topicPill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 8px 18px; min-height: 44px; }
.topicPill svg { width: 20px; height: 20px; }
.topicPill:hover { background: var(--accent-2); }
.cardPhoto { width: 120px; height: 120px; border-radius: 999px; object-fit: cover; box-shadow: var(--shadow); }
.subhead { font-size: 22px; color: var(--accent); margin: 4px 0 0; line-height: 1.3; }
.more { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.group { background: var(--soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.groupHead { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 18px; }
.groupHead svg { width: 22px; height: 22px; }
.group .points li { background: var(--card); }
@media (max-width: 900px) { .groups { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero banner at the top of the Wayfinding Map: for life, not a life sentence ---------- */
.hero { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 28px; padding: 28px 30px; border-radius: 22px; color: #fff; background: linear-gradient(130deg, var(--accent), var(--accent-2)); box-shadow: var(--shadow); max-width: 900px; }
.heroIcon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.heroIcon svg { width: 30px; height: 30px; }
.heroKicker { font-size: 16px; font-weight: 700; opacity: .9; margin-bottom: 4px; }
.hero h2 { font-size: 28px; line-height: 1.25; margin: 0 0 10px; color: #fff; }
.hero p { margin: 0 0 4px; font-size: 18px; }
.heroCredit { display: inline-block; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.85); text-underline-offset: 3px; }
.topicPills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.topicPills .topicPill { margin-top: 0; }
@media (max-width: 600px) { .hero { padding: 20px 18px; gap: 14px; } .heroIcon { flex-basis: 44px; width: 44px; height: 44px; } .hero h2 { font-size: 22px; } }
/* Each act folds on its own: tap the heading to open it */
.tHead { display: flex; align-items: center; gap: 12px; }
.tHead > div { flex: 1; min-width: 0; }
.tFold > summary { list-style: none; cursor: pointer; min-height: 44px; }
.tFold > summary::-webkit-details-marker { display: none; }
.tArrow { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 999px; background: var(--card); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.tArrow svg { width: 20px; height: 20px; }
.tFold[open] .tArrow { transform: rotate(180deg); }
.tInner { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.tStep.now .tArrow { background: var(--accent); color: #fff; }
.tStep.now .tBody .points li, .tStep.now .tPerson { background: var(--card); }

/* One column of full-width cards (Meet Sangya, her ask 2026-10-02) */
.cards.oneCol { grid-template-columns: minmax(0, 1fr); }

/* Sangya's own card in the famous minds collage: a warm tint and an "And me!" tag (her ask, 2026-10-02) */
.person.me { background: var(--warm-soft); box-shadow: inset 0 0 0 2px var(--warm); }
.person .tag.me { background: var(--warm); color: #fff; }

/* Cards side by side are the same height; the source line sits at the bottom (her ask, 2026-10-02) */
.cards { align-items: stretch; }
.card > .src { margin-top: auto; }
.moreNote { background: var(--accent-tint); border-radius: 10px; padding: 12px 16px; }

/* ---------- Collapsible groups in the left menu (2026-10-11, same as AI Learning): closed at first, the current topic's group opens ---------- */
.navBox { margin: 0; }
summary.navGroup { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 2px; padding: 10px 12px; min-height: 44px; border-radius: 12px; cursor: pointer; list-style: none; }
summary.navGroup::-webkit-details-marker { display: none; }
summary.navGroup:hover { background: rgba(31, 36, 39, 0.05); }
summary.navGroup:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
summary.navGroup svg { flex: 0 0 auto; font-size: 18px; color: var(--muted); transition: transform .2s ease; }
.navBox[open] > summary.navGroup svg { transform: rotate(180deg); }
.navBox[open] > summary.navGroup { color: var(--accent); }
.navBox[open] > summary.navGroup svg { color: var(--accent); }
.navBox[open] { padding-bottom: 6px; }
@media (max-width: 600px) { .srcRow { flex-wrap: wrap; row-gap: 6px; } .srcText { flex-basis: calc(100% - 62px); } .srcGo { flex-basis: 100%; padding-left: 62px; } }
/* Quiet sources at the end of each topic (her ask, October 11, 2026): one closed box, no footnotes on the cards. */
.topicSources { margin: 28px 0 0; max-width: 760px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 16px; color: var(--muted); }
.topicSources summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 700; color: var(--muted); }
.topicSources summary::-webkit-details-marker { display: none; }
.topicSources summary svg { width: 18px; height: 18px; flex: 0 0 18px; }
.topicSources summary span { flex: 1; }
.topicSources[open] summary svg:last-child { transform: rotate(180deg); }
.topicSources h4 { font-size: 16px; margin: 14px 0 6px; color: var(--ink); }
.topicSources ul { margin: 6px 0 0; padding-left: 20px; }
.topicSources li { margin: 0 0 8px; line-height: 1.55; }
.topicSources a { color: var(--muted); text-underline-offset: 3px; }
.topicSources a:hover { color: var(--accent); }

/* The sneak peek (2026-10-18): the real map, faded and not clickable, under an invitation card */
.gatePanel .badge { width: 48px; height: 48px; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.gatePanel .label { text-transform: none; letter-spacing: .01em; }
.gatePanel h2 { font-size: 28px; color: var(--accent); margin: 4px 0 8px; }
.gatePanel .gateForm { margin-bottom: 14px; }
.gatePanel .noKey a, .gatePanel .peekSelf a { color: var(--accent); font-weight: 700; }
body:not(.peek) .peekOnly { display: none; }
body.peek .gateOnly { display: none; }
#peekSlot .gatePanel { max-width: 640px; margin: 0 0 32px; border: 1px solid var(--accent-soft); box-shadow: 0 18px 50px rgba(20, 30, 32, 0.16); }
body.peek .jTile, body.peek .navItem, body.peek .navFoot a, body.peek a.srcRow[href^="#"] { pointer-events: none; }
body.peek .jTile { opacity: .55; filter: saturate(.75); }
body.peek .navItem, body.peek .navFoot, body.peek a.srcRow[href^="#"] { opacity: .6; }
body.peek .mapFab { display: none; }

/* ---------- Home (her ask, 2026-10-24): the island, the spiky profile, the famous minds, and "And me!" ---------- */
.homeBlock { margin: 0 0 34px; }
.homeBlock .mapHead { display: flex; align-items: center; gap: 10px; }
.homeBlock .mapHead svg { width: 26px; height: 26px; }
.spikyCard { gap: 16px; max-width: 900px; }
.spikyPic { width: 100%; max-width: 760px; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.spikyLists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.spikyLists .points.low svg { color: var(--warm); }
.homeGallery { max-width: 1000px; }
a.person { text-decoration: none; color: inherit; }
a.person.me:hover { box-shadow: inset 0 0 0 3px var(--accent); }
.blurName { filter: blur(6px); user-select: none; }
.meetGo { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--accent); }
.meetGo svg { width: 18px; height: 18px; }
.openMap { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 22px; text-decoration: none; box-shadow: var(--shadow); margin: 6px 0 40px; }
.openMap:hover { background: var(--accent-2); }
.openMap svg { width: 26px; height: 26px; }
#peekSlot { margin: 0 0 30px; }
@media (max-width: 700px) { .spikyLists { grid-template-columns: minmax(0, 1fr); } .openMap { font-size: 18px; width: 100%; justify-content: center; } }

/* Famous minds: Photos / Their stories switch (her ask, 2026-10-24) */
.peopleSwitch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.peopleSwitch button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--accent); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.peopleSwitch button svg { width: 18px; height: 18px; }
.peopleSwitch button.active { background: var(--accent); color: #fff; }
.story { display: none; }
.homeGallery.stories { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.homeGallery.stories .story { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
.homeGallery.stories .person img { aspect-ratio: 4 / 3; object-position: center 20%; }
.homeGallery.stories .person.me { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
/* Her photo stays square at the top of its column, never zoomed to the story's height (her ask, November 2, 2026). */
.homeGallery.stories .person.me img { aspect-ratio: 1; height: auto; align-self: start; object-position: center; }
.story p { margin: 0; }
.sLine { display: flex; gap: 8px; align-items: flex-start; }
.sLine svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; }
.sLine.hard svg { color: var(--muted); }
.sLine.did svg { color: var(--warm); }
.sLine.did { font-weight: 700; }
.sNote { color: var(--muted); }
.sSeen { font-weight: 700; color: var(--warm); }
.story .points li { background: var(--card); }
@media (max-width: 900px) {
  .homeGallery.stories { grid-template-columns: minmax(0, 1fr); }
  .homeGallery.stories .person.me { display: flex; }
  .homeGallery.stories .person.me img { aspect-ratio: 4 / 3; height: auto; }
}

/* Meet Sangya: who shaped her, habits, PIES, 1,440 minutes (her slides, 2026-10-24) */
.shapedGroup { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.shapedGroup > .note { margin: 0 0 6px; }
.shaped { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sPerson { margin: 0; background: var(--soft); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sPerson img, .sInit { display: flex; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sInit { align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--warm-soft)); }
.sPerson figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.sPerson .note { font-size: 14px; }
.sAbout { font-size: 14px; font-weight: 700; color: var(--accent); }
.steps3, .pies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step3, .pie { position: relative; background: var(--soft); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.step3 h4, .pie h4, .dBlock h4 { margin: 0; font-size: 22px; color: var(--accent); }
.step3 p, .dBlock p { margin: 0; }
.sNum { position: absolute; top: 12px; right: 16px; font-size: 28px; font-weight: 700; color: var(--accent-soft); }
.sFlow { margin: 0; padding-left: 22px; font-weight: 700; }
.pLetter { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pie .points li { background: var(--card); }
.dayBar { display: flex; height: 48px; border-radius: 999px; overflow: hidden; font-size: 14px; font-weight: 700; }
.dSeg { display: flex; align-items: center; justify-content: center; color: #fff; }
.green { --tone: #2f7f5f; } .blue { --tone: #2f6f9f; } .grey { --tone: #6b7378; }
.dSeg { background: var(--tone); }
.dayBlocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dBlock { background: var(--soft); border-radius: 14px; padding: 16px; border-top: 6px solid var(--tone); display: flex; flex-direction: column; gap: 8px; }
.dMin { font-size: 22px; font-weight: 700; color: var(--tone); }
.dBlock .points li { background: var(--card); }
.dBlock .note { display: flex; gap: 6px; align-items: center; }
.dBlock .note svg, .dTrap svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dTrap { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--warm-soft); color: var(--ink); }
.dTrap svg { color: var(--warm); margin-top: 5px; }
@media (max-width: 900px) { .steps3, .dayBlocks { grid-template-columns: minmax(0, 1fr); } .pies { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shaped { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sneak peek: her Meet page opens for visitors, with her name blurred (her ask, 2026-10-24) */
body.peek a.navItem[href="#/t/meet-me"], body.peek a.navItem.navMap, body.peek a.jTile[href="#/t/meet-me"] { pointer-events: auto; opacity: 1; filter: none; }

/* ---------- Download PDF (her ask, 2026-11-01, copied from Gyaan): a button beside the tabs, then a small card ---------- */
.topicBar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.topicBar .tabs { margin: 0; }
.pdfBtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px; background: #fff; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; box-shadow: var(--shadow); }
.pdfBtn:hover { background: var(--accent-tint); }
.pdfBtn svg { width: 20px; height: 20px; }
.pdfShade { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 30, 32, .45); }
.pdfCard { width: min(100%, 440px); background: var(--card); border-radius: 20px; padding: 26px; box-shadow: 0 20px 60px rgba(20, 30, 32, .3); }
.pdfHead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pdfHead .badge { background: var(--accent); color: #fff; }
.pdfHead h3 { font-size: 22px; color: var(--accent); }
.pdfAsk { font-weight: 700; margin-bottom: 10px; }
.pdfPick { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); cursor: pointer; }
.pdfPick input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.pdfPick svg { width: 20px; height: 20px; color: var(--accent); }
.pdfStatus { min-height: 27px; margin: 10px 0; }
.pdfActions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdfGo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }
.pdfGo svg { width: 20px; height: 20px; }
.pdfCancel { min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--muted); }
.pdfGo:disabled, .pdfCancel:disabled { opacity: .55; cursor: default; }
@media (max-width: 900px) {
  .topicBar .tabs { width: 100%; justify-content: center; }
  .pdfBtn { width: 100%; justify-content: center; }
}
.pdfGo:focus-visible, .pdfCancel:focus-visible, .pdfBtn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
/* The whole app as one PDF (her ask, November 1, 2026): the last menu item, and a button at the end of the map. */
.navPdf { align-items: center; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--accent); font-weight: 700; }
.navPdf svg { width: 20px; height: 20px; }
.pdfAllWrap { margin: 32px 0 8px; }
.pdfExtra { margin: 4px 0 0; }
