/* Gyaan: Sangya's collected wisdom.
   Follows her shared reading and design rules (C:\Users\sangyas\.claude\CLAUDE.md), applied 2026-09-30:
   - One sans-serif font everywhere: Nunito Sans. No serif, no italics, no ALL CAPS, underline only on links.
   - Five type sizes: 14 label, 16 note, 18 body, 22 card title, 28 page title. Weights 400 and 700 only.
   - Body 18px, line height 1.7, letter spacing 0.01em, lines no wider than about 680px.
   - A soft tinted ground with dark grey text; white cards; one accent (the deep plum of her decks) plus tints.
   - Icons (Lucide, docs/lib) on every shelf, topic, tab and box; a banner at the top of each main page. */
:root {
  --ground: #efecf3; --ink: #2e2b35; --muted: #625d6b; --card: #ffffff;
  --line: rgba(46, 43, 53, 0.12); --soft: #f6f3fa;
  --accent: #4b2d6e; --accent-2: #6b4596; --accent-soft: #ece4f6; --accent-tint: #f3edfa;
  --shadow: 0 1px 2px rgba(30, 20, 45, 0.05), 0 8px 24px rgba(30, 20, 45, 0.07);
  --font: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --r: 16px;
  --text: 680px;
}
* { 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; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 700; }
em, i { font-style: normal; }
ul.lines { margin: 4px 0 12px; padding-left: 22px; }
ul.lines li { margin: 0 0 6px; }
ul.lines:last-child { margin-bottom: 0; }
.hidden { display: none !important; }
.label { font-size: 14px; color: var(--muted); font-weight: 700; }
.note { font-size: 16px; color: var(--muted); }
svg.lucide { width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.125em; }

/* An icon in a soft round badge */
.badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.badge.big { width: 64px; height: 64px; border-radius: 20px; font-size: 32px; background: rgba(255,255,255,.18); color: #fff; }

/* ---------- 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; min-width: 0; }
.header h1 { font-size: 28px; line-height: 1.2; }
.header .tagline { font-size: 16px; opacity: .95; line-height: 1.4; }
.header .sub { font-size: 14px; opacity: .85; line-height: 1.4; margin-top: 2px; }
.headerPill { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: #fff; color: var(--accent); font-weight: 700; font-size: 16px; border-radius: 999px; padding: 10px 18px; min-height: 44px; }
.headerPill:hover { background: var(--accent-soft); }
.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: 22px; align-items: center; justify-content: center; }

.workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.nav { position: sticky; top: var(--headerH, 96px); align-self: start; max-height: calc(100vh - var(--headerH, 96px)); overflow-y: auto; padding: 20px 14px 40px; border-right: 1px solid var(--line); }
.canvas { padding: 32px 36px 72px; 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: 12px; }
.searchBox { position: relative; flex: 1; min-width: 0; }
.searchBox svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search { width: 100%; height: 46px; padding: 0 16px 0 44px; 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 { display: flex; align-items: center; gap: 8px; margin: 20px 0 6px; padding: 0 12px; color: var(--accent); }
.navItem { display: flex; gap: 10px; align-items: baseline; width: 100%; text-decoration: none; border-radius: 12px; padding: 9px 12px; min-height: 44px; line-height: 1.4; }
.navItem:hover { background: rgba(46, 43, 53, 0.05); }
.navItem.active { background: #fff; box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.navItem .num { font-size: 14px; color: var(--muted); font-weight: 700; min-width: 22px; }
.navItem .who { display: block; font-size: 14px; color: var(--muted); }
.navEmpty { padding: 12px; }

/* ---------- Banners: the top of Home and of every topic ---------- */
.banner { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; border-radius: 24px; padding: 28px 30px; margin: 0 0 32px; box-shadow: var(--shadow); }
.banner h2 { font-size: 28px; margin: 0 0 8px; }
.banner p { max-width: var(--text); }
.banner .label { color: rgba(255,255,255,.85); }
.banner .who { font-size: 16px; opacity: .9; margin: -2px 0 10px; }
.banner .say { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; background: rgba(255,255,255,.16); border-radius: 14px; padding: 6px 14px; margin: 0 0 12px; line-height: 1.4; }
.banner .say svg { width: 18px; height: 18px; }
.banner .bigIdea { font-size: 22px; line-height: 1.5; margin: 0; }

/* ---------- Home ---------- */
.shelf { margin: 0 0 40px; }
.shelfHead { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.shelfHead h2 { font-size: 22px; color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent); }
.tileTop { display: flex; align-items: center; gap: 12px; }
.tile h3 { font-size: 22px; color: var(--accent); }
.tile .note { margin: 0; }

/* ---------- Tabs: Pages, Summary, Text ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 28px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 999px; padding: 8px 20px; min-height: 44px; font-weight: 700; color: var(--muted); }
.tab.active { background: var(--accent); color: #fff; }

/* ---------- Summary: the ideas as a numbered path ---------- */
.path { position: relative; margin: 0 0 32px; max-width: 760px; }
.step { position: relative; display: flex; gap: 18px; padding: 0 0 16px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--accent-soft); }
.step:last-child::before { display: none; }
.step .n { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.step .card { flex: 1; min-width: 0; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 22px; margin: 0 0 6px; }
.panel { margin: 0 0 16px; max-width: 760px; }
.panelHead { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--accent); }
.panelHead .label { color: var(--accent); }
.panel.try { background: var(--accent-tint); }
.panel.quote p { font-size: 22px; line-height: 1.5; }
.source { margin: 20px 0 0; max-width: var(--text); }

/* ---------- Her pages as pictures ---------- */
.pages { display: grid; gap: 20px; max-width: 840px; }
.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; }
.page img:not([src]) { aspect-ratio: 4 / 3; background: var(--soft); }   /* holds the place while a picture opens */
.page.missing { display: none; }

/* ---------- Text view ---------- */
.section { scroll-margin-top: calc(var(--headerH, 96px) + 16px); }
.section > * { max-width: var(--text); }
.section > .parts, .section > .timeline, .section > .rows { max-width: none; }
.sectionHead { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; }
.sectionHead .n { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.sectionHead h3 { font-size: 22px; color: var(--accent); }
.sectionHead .note { margin: 2px 0 0; }
.contents ol { margin: 0; padding-left: 28px; columns: 2; column-gap: 32px; }
.contents li { break-inside: avoid; margin: 0 0 8px; }
.jump { vertical-align: top; border: 0; background: none; padding: 0; line-height: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.jump:hover { color: var(--accent); }
.rows { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; margin: 12px 0; border-top: 1px solid var(--line); }
.rows dt, .rows dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; padding-right: 18px; }
.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.part { background: var(--soft); border-radius: 14px; padding: 16px 18px; }
.part .label { color: var(--accent); }
.part p { margin: 0 0 10px; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; counter-reset: step; }
.timeline div { position: relative; background: var(--soft); border-radius: 14px; padding: 12px 14px; border-top: 4px solid var(--accent); }
.timeline b, .timeline span { display: block; }
.ask, .carry { border-radius: 14px; padding: 14px 18px; margin: 14px 0 0; }
.ask { background: var(--soft); }
.carry { background: var(--accent-soft); }
.carry p { font-size: 22px; line-height: 1.5; font-weight: 700; color: var(--accent); }
.boxHead { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--accent); }
.boxHead .label { color: var(--accent); }

/* ---------- The lock ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); }
.gatePanel { width: 100%; max-width: 460px; background: var(--card); border-radius: 24px; padding: 30px 26px; box-shadow: 0 18px 50px rgba(20, 14, 30, 0.3); }
.gatePanel .badge { margin-bottom: 14px; }
.gatePanel h2 { font-size: 28px; color: var(--accent); margin: 4px 0 4px; }
.gateForm { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.gateInput { flex: 1; min-width: 160px; min-height: 50px; padding: 10px 16px; font-size: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gateInput:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.gateBtn { min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }
.gateBtn:disabled { opacity: .7; }
.gateError { color: #a3274a; margin: 0 0 8px; }
.visuallyHidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .header { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px 12px; }
  .header h1 { font-size: 22px; }
  .header .tagline { font-size: 14px; }
  .header .sub { font-size: 14px; }
  .headerPill { font-size: 14px; padding: 8px 14px; }
  .navToggle { display: flex; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(88vw, 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; font-size: 20px; }
  .navBackdrop { position: fixed; inset: 0; z-index: 30; background: rgba(20, 18, 26, .35); display: none; touch-action: none; }
  .navBackdrop.open { display: block; }
  .canvas { padding: 20px 16px 56px; }
  .banner { flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 20px; }
  .banner .bigIdea { font-size: 18px; }
  .badge.big { width: 52px; height: 52px; font-size: 26px; border-radius: 16px; }
  .parts { grid-template-columns: minmax(0, 1fr); }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .rows dt { padding-bottom: 0; border-bottom: 0; }
  .contents ol { columns: 1; }
  .pages { gap: 14px; }
  .card, .panel, .tile { padding: 18px; }
  .step { gap: 12px; }
  .tab { padding: 8px 14px; }
}

/* ---------- Wayfinding Map ---------- */
.mapItem { align-items: center; font-weight: 700; color: var(--accent); background: var(--accent-tint); margin: 0 0 4px; }
.mapItem svg { font-size: 20px; }
.navGroup svg { font-size: 18px; }
.mapPath { max-width: 900px; }
.mapPath .card h3 { font-size: 22px; color: var(--accent); margin: 0; }
.mapPath .panelHead { font-size: 22px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.3; }
.chip svg { color: var(--accent); font-size: 18px; }
.chip:hover { border-color: var(--accent); }
.partItem { margin: 0 0 10px; }
.partItem b { display: block; }
.partItem:last-child { margin-bottom: 0; }
.panelHead svg, .boxHead svg { font-size: 20px; }
.tab svg { font-size: 18px; }

/* Wayfinding Map: like the Course Journey in Spardha Music. Calm tiles, one per shelf, 3 across on the PC. */
.mapBanner { padding: 22px 28px; margin-bottom: 24px; }
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1080px; }
.stop { display: flex; flex-direction: column; gap: 6px; min-height: 160px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); }
.stop:hover { border-color: var(--accent); }
.stopLabel { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.stopLabel svg { color: var(--accent); font-size: 18px; }
.stop h3 { font-size: 22px; color: var(--accent); line-height: 1.3; }
.stop .note { margin-top: auto; }
.crumb { color: inherit; text-underline-offset: 3px; }
.shelf { scroll-margin-top: calc(var(--headerH, 96px) + 16px); }
/* Header line: long form on the PC, short on the phone */
.header .sub .short { display: none; }

@media (max-width: 1200px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .header .sub .long { display: none; }
  .header .sub .short { display: inline; }
  /* Row 1: menu button and the Daily Gyaan Quest pill. Row 2: the name, tagline and date, full width. */
  .headerPill { order: 2; }
  .headerText { order: 3; flex: 1 0 100%; }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .stop { min-height: 0; }
}
.mapShelf { margin: 0 0 32px; }
a.shelfHead { text-decoration: none; }
a.shelfHead:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.stop { min-height: 150px; }

/* Menu group names: her shared rule (2026-09-30), the same in every app, copied from Dyslexia: small grey capitals,
   no icon. The one place capitals are allowed; the names stay in normal case in the content. */
.navGroup { display: block; margin: 16px 0 4px; padding: 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Collapsible shelf bars on the Wayfinding Map (copied from Copilot Skills) */
.journeyGroup { margin: 0 0 16px; border-radius: 20px; background: var(--accent-tint); border: 1px solid var(--accent-soft); overflow: hidden; max-width: 1080px; }
.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; }
.groupBar .badge { background: rgba(255,255,255,.18); color: #fff; }
.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; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; background: rgba(255,255,255,.16); font-size: 22px; transition: transform .2s ease; }
.journeyGroup[open] .groupToggle { transform: rotate(180deg); }
.groupBar:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.groupBody { padding: 20px 22px 24px; }
@media (max-width: 600px) { .groupBar { padding: 14px 16px; gap: 12px; } .groupBody { padding: 14px 12px 16px; } .groupName { font-size: 18px; } }
/* Map tiles: the short description sits right under the title (no status line). */
.stop .note { margin: 2px 0 0; line-height: 1.55; }
.stop { min-height: 0; }
.idea-pic { margin: 16px 0 0; padding: 12px; border-radius: 16px; background: var(--ground); }
.idea-pic svg { display: block; width: 100%; height: auto; }
.groups { list-style: none; counter-reset: grp; margin: 16px 0; padding: 0; }
.groups li { counter-increment: grp; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-weight: 700; }
.groups li::before { content: counter(grp); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 16px; }

/* ---------- Collapsible shelves in the left menu (2026-10-11, copied from AI Learning): closed at first, the current topic's shelf 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(75, 45, 110, 0.06); }
summary.navGroup:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
summary.navGroup svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.navBox[open] > summary.navGroup svg { transform: rotate(180deg); }
.navBox[open] > summary.navGroup, .navBox[open] > summary.navGroup svg { color: var(--accent); }
.navBox[open] { padding-bottom: 6px; }

/* A way back to the Wayfinding Map (her ask, October 18, 2026). A floating plum "Map" pill on every page but the map,
   above the page but under the phone menu and its backdrop (z-index 40 and 30); and a big button at the end of every
   topic. The canvas has room at the bottom so the pill never covers the last line. */
.mapFab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px 0 20px; border-radius: 999px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 10px rgba(30, 20, 45, .18), 0 12px 28px rgba(30, 20, 45, .22); }
.mapFab svg { width: 22px; height: 22px; }
.mapFab:hover { background: var(--accent); }
.mapFab:focus-visible, .backToMap:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.canvas { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.backToMap { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 36px 0 0; padding: 0 26px; border-radius: 999px; background: var(--accent-tint); border: 2px solid var(--accent); color: var(--accent); font-size: 18px; font-weight: 700; text-decoration: none; }
.backToMap svg { width: 22px; height: 22px; }
.backToMap:hover { background: var(--accent-soft); }
.headerText { display: block; color: inherit; min-height: 44px; }
@media (max-width: 900px) {
  .backToMap { display: flex; width: 100%; }
}

/* The sneak peek (2026-10-18): the real map, faded and not clickable, under an invitation card */
.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, 14, 30, 0.16); }
body.peek .stop, body.peek .navItem { pointer-events: none; }
body.peek .stop { opacity: .55; filter: saturate(.75); }
body.peek .navItem { opacity: .6; }
body.peek .mapFab { display: none; }

/* ---------- Home (her ask, 2026-10-24): the banner, her 10 domains, the books and thinkers, then the map ---------- */
.homeBlock { margin: 0 0 36px; }
.homeHead { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--accent); margin: 0 0 14px; }
.homeHead svg { font-size: 26px; }
.domainGroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1100px; }
.domainGroup { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.domainHead { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.domainHead .badge { background: var(--accent); color: #fff; }
.domainHead h3 { font-size: 18px; color: var(--accent); margin: 0; line-height: 1.35; }
.domainList { list-style: none; margin: 0; padding: 0; }
.domainList li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.domainList li svg { font-size: 20px; color: var(--accent-2); flex: 0 0 auto; }
.homeTiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1100px; }
.homeTile { display: flex; align-items: flex-start; gap: 14px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
a.homeTile:hover { border-color: var(--accent); }
.homeTileText { display: flex; flex-direction: column; min-width: 0; }
.homeTile h3 { font-size: 18px; color: var(--accent); margin: 0 0 2px; line-height: 1.35; }
.homeTile .note { display: block; }
.thinkers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 1100px; }
.thinkers li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--accent); font-size: 16px; font-weight: 700; }
.thinkers li svg { font-size: 16px; }
.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 { font-size: 26px; }
#peekSlot { margin: 8px 0 0; }
@media (max-width: 1200px) { .homeTiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .domainGroups, .homeTiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .openMap { font-size: 18px; width: 100%; justify-content: center; padding: 0 18px; }
}
/* ---------- Download PDF (her ask, 2026-11-01): 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 28px; }
.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 { font-size: 18px; }
.pdfShade { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 18, 26, .45); }
.pdfCard { width: min(100%, 440px); background: var(--card); border-radius: 20px; padding: 26px; box-shadow: 0 20px 60px rgba(30, 20, 45, .3); }
.pdfHead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.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 { font-size: 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 { font-size: 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; }
}
/* Download all as PDF (2026-11-01): last in the menu and at the end of the map */
.pdfAllItem { border: 0; font: inherit; text-align: left; cursor: pointer; margin-top: 16px; }
.pdfAllRow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 32px 0 8px; }
.pdfAllRow .note { margin: 0; max-width: 520px; }
.pdfExtra { margin: -6px 0 14px; }.pdfGo:focus-visible, .pdfCancel:focus-visible, .pdfBtn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* The tile on Home that opens Books Insights (the books moved there, November 2, 2026). */
