/* The New Agora: classical proportion, a midnight palette, Miami light. */
:root {
  color-scheme: dark;
  --paper: #0b0d18;
  --ink: #f2eee5;
  --muted: #aeb2c5;
  --line: #343747;
  --accent: #80eee2;
  --soft: #1c2032;
  --green: #80eee2;
  --rose: #ffa0c5;
  --gold: #dccaab;
  --serif: 'Baskerville', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
}
body {
  background: radial-gradient(ellipse at 90% 10%, #33203c44, transparent 45%),
    radial-gradient(ellipse at 10% 90%, #12353c38, transparent 45%), var(--paper);
}
::selection { background: #80eee244; color: #fff; }
header { border-color: var(--line); background: #0b0d18cc; }
.brand { font: 500 21px var(--serif); letter-spacing: .5px; gap: 15px; }
.brand .serif { color: var(--rose); }
.mark { width: 33px; height: 38px; border: 1px solid var(--accent); border-radius: 18px 18px 0 0; background: transparent; color: var(--accent); font: 22px var(--serif); box-shadow: inset 0 0 14px #80eee218, 0 0 18px #80eee210; }
.edition { font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.small-button { color: #d0d1dc; }
.theme-switch { display: flex; flex-shrink: 0; gap: 3px; padding: 4px; border: 1px solid #4a5066; border-radius: 5px; background: #151a2a; }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 6px 10px; border: 1px solid transparent; border-radius: 2px; color: #c1c6d8; font-size: 11px; white-space: nowrap; }
.theme-switch button svg { width: 14px; height: 14px; flex-shrink: 0; }
.theme-switch button:hover { color: #ecfff9; background: #80eee20b; }
.theme-switch button[aria-pressed="true"] { color: #9ffff0; border-color: #80eee25c; background: #80eee21a; }
@media (max-width:1450px) { .edition { display: none; } }
@media (max-width:900px) { .theme-prefix { display: none; } .theme-switch button { padding: 6px 9px; } }
@media (max-width:600px) {
  header { gap: 10px; }
  .header-actions { gap: 9px; }
  #fullscreen { display: none; }
  .theme-switch { padding: 3px; gap: 2px; }
  .theme-switch button { font-size: 10px; padding: 5px 6px; gap: 4px; }
  .theme-switch button svg { width: 12px; height: 12px; }
}
.eyebrow { font: 500 11px/1.6 var(--sans); letter-spacing: 2px; }
.accent { color: var(--accent); }
.primary { border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: #0b1b21; box-shadow: 0 0 25px #80eee214; font-size: 14px; font-weight: 600; padding: 16px 20px; }
.primary:hover { color: #0b1b21; background: #b6fff5; border-color: #b6fff5; box-shadow: 0 0 28px #80eee232; }
.outline { border-radius: 2px; }
.text-link { font-size: 14px; color: var(--ink); }
.text-link:hover { color: var(--accent); }
.home { padding: 24px 4.3vw; grid-template-columns: 1.02fr 1fr; gap: 4vw; align-items: stretch; }
.home-feature { position: relative; min-height: calc(100svh - 188px); isolation: isolate; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid #5b5865; border-radius: 180px 180px 3px 3px; background: #080d17; }
.hero-visual { position: relative; flex: 1; min-height: 240px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.home-feature::after { content: ''; position: absolute; inset: 10px; border: 1px solid #f2eee51a; border-radius: 170px 170px 0 0; pointer-events: none; z-index: -1; }
.hero-caption { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 48px); padding: 6px 15px; border: 1px solid #f2eee52b; border-radius: 2px; background: #090d18ed; text-align: center; font: 10px var(--sans); letter-spacing: 3px; color: #fff6df; text-shadow: 0 1px 2px #000; }
.hero-copy { position: relative; width: 100%; padding: 24px 32px; border-top: 1px solid #80eee252; background: #090d18; }
.hero-copy>.eyebrow { color: #a4fff0; font-weight: 600; }
.home h1 { font: 400 clamp(48px, 3.7vw, 70px)/1.03 var(--serif); letter-spacing: -1.8px; margin: 12px 0; color: #fff9ee; text-shadow: 0 2px 3px #0008; }
.home h1 .serif { color: #ffb6d4; }
.intro { font-size: clamp(18px, 1.3vw, 24px); line-height: 1.5; font-weight: 500; color: #f0f1f7; max-width: 500px; margin: 20px 0; }
.home-buttons { gap: 20px; }
.home-buttons .text-link { color: #f0f1f7; }
.topic-map { align-self: center; padding: 15px 0; }
.map-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.map-head .eyebrow:first-child { color: var(--gold); }
.map-head .eyebrow { font-size: 10px; letter-spacing: 1.5px; }
.topic-row { grid-template-columns: 40px 1fr 24px; gap: 19px; padding: 27px 0; border-top: 0; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.topic-row:hover { background: linear-gradient(90deg, #80eee20a, #ffa0c506); padding-left: 9px; }
.topic-row h2 { font: 400 clamp(24px, 2.2vw, 39px)/1.12 var(--serif); letter-spacing: -.5px; color: var(--ink); }
.topic-row p { margin-top: 9px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.topic-row:hover h2 { color: var(--accent); }
.number { border: 1px solid #69717a; border-radius: 20px 20px 0 0; font: 16px var(--serif); color: var(--gold); width: 35px; height: 43px; }
.number.visited { color: var(--accent); border-color: #80eee273; background: #80eee20b; }
.topic-row .arrow { color: var(--rose); font-size: 23px; }
.map-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 23px; color: var(--muted); font: italic 15px var(--serif); }
.map-caption span:last-child { color: var(--rose); }
.global-footer { border-color: var(--line); font-size: 11px; }
.global-footer>span:first-child { font: italic 15px var(--serif); color: var(--gold); }
 kbd { color: #c6c9d7; border-color: #484c5c; border-radius: 2px; }
.topic-nav { border-color: var(--line); }
.topic-nav button { font-size: 13px; border-radius: 2px; color: var(--muted); border: 1px solid transparent; }
.topic-nav button:hover { color: var(--accent); }
.topic-nav button.active { background: #80eee211; border-color: #80eee249; color: var(--accent); }
.topic-heading h1 { font: 400 clamp(25px, 2.25vw, 40px)/1.12 var(--serif); }
.case-tabs button { background: #171a28; border-color: #3a3d50; border-radius: 2px; color: #c9ccda; font-size: 12px; }
.case-tabs button:hover { border-color: #ffa0c588; color: var(--rose); }
.case-tabs button.active { color: var(--rose); border-color: #ffa0c5aa; background: #ffa0c50c; }
.discussion { gap: 3.5vw; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.3fr); }
.context { border-top: 1px solid var(--line); padding-top: 22px; }
.case-type { color: var(--gold); border-color: #dccaab4d; border-radius: 2px; font-size: 9px; }
.context h2 { font: 400 clamp(29px, 2.7vw, 47px)/1.12 var(--serif); letter-spacing: -.5px; margin: 21px 0 18px; }
.context .capsule { color: #bdc1d0; font-size: clamp(18px, 1.35vw, 23px); line-height: 1.55; }
.context-actions .text-link { color: var(--accent); }
.context-actions .text-link:last-child { color: #d1c8df; }
.question-card { isolation: isolate; overflow: hidden; border-radius: 3px; border: 1px solid #55566d; background: radial-gradient(ellipse at 100% 0, #ffa0c51a, transparent 65%), linear-gradient(130deg, #182832, #1a1d31 65%, #292038); box-shadow: inset 0 1px 0 #80eee277; color: var(--ink); padding: 30px 3vw 25px; }
.question-card::before { content: ''; position: absolute; z-index: -1; right: -52px; bottom: -150px; height: 410px; width: 290px; border-radius: 180px 180px 0 0; border: 1px solid #ffa0c522; box-shadow: 0 0 0 15px #ffa0c505, 0 0 0 16px #ffa0c513, 0 0 0 31px #ffa0c504, 0 0 0 32px #ffa0c50c; transform: rotate(-12deg); pointer-events: none; }
.question-top .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 2px; }
.focus-button { color: #c7cad9; font-size: 12px; }
.question-card h2 { font: 400 clamp(35px, 3.7vw, 65px)/1.1 var(--serif); letter-spacing: -.6px; margin: 28px 0 24px; }
.prompt-nudge { color: #cbc1d5; font: italic clamp(18px, 1.5vw, 25px)/1.4 var(--serif); }
.prompt-tabs { gap: 9px; }
.prompt-tabs button { border-radius: 2px; color: #c9c8dc; border-color: #62647e; font-size: 12px; padding: 10px 13px; }
.prompt-tabs button.active { background: var(--ink); color: #161b28; border-color: var(--ink); }
.prompt-tabs button.active:hover { color: #161b28; background: #fff; }
.branch-bar { border-color: var(--line); }
.branches button { font-size: 13px; color: #c9ccda; }
.branches button:hover { color: var(--accent); }
.focus-mode .question-card h2 { font: 400 clamp(46px, 5.7vw, 100px)/1.08 var(--serif); letter-spacing: -1px; }
.focus-mode .question-card { background: radial-gradient(ellipse at 100% 0, #ffa0c511, transparent 65%), linear-gradient(130deg, #111e29, #15182b 65%, #241b2e); }
.room h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -2px; }
.room h1 .serif { color: var(--rose); }
.room .room-prompt { color: #bdc1d0; }
.spectrum-labels { color: var(--rose); }
.spectrum-labels span:last-child { color: var(--accent); }
.spectrum button { background: #191d2e; border-color: #48485f; border-radius: 55px 55px 3px 3px; color: #d8d8e5; padding: 30px 10px 24px; }
.spectrum button:nth-child(1) { border-top-color: #ffa0c5; }
.spectrum button:nth-child(2) { border-top-color: #c898d5; }
.spectrum button:nth-child(3) { border-top-color: #aab4eb; }
.spectrum button:nth-child(4) { border-top-color: #8dd7e8; }
.spectrum button:nth-child(5) { border-top-color: #80eee2; }
.spectrum button.selected { color: var(--accent); background: #80eee214; border-color: var(--accent); box-shadow: 0 0 25px #80eee20d; }
.comparison { color: var(--gold); }
.dialog { background: #141827; border: 1px solid #62627b; border-radius: 3px; box-shadow: 0 30px 100px #0009; }
.dialog::backdrop { background: #060815ba; backdrop-filter: blur(8px); }
.dialog-head { background: #171b2b; border-color: var(--line); }
.dialog-head h2,.dialog h3 { font-family: var(--serif); font-weight: 400; }
.dialog-head h2 { font-size: 29px; }
.dialog-body p,.evidence-item p { color: #bcc1d0; }
.evidence-item h3 { color: var(--ink); }
.callout { background: #20263a; border-color: var(--rose); }
select,input,textarea,.dialog select,.dialog textarea { background: #0e1220; border-color: #595e76; color: var(--ink); border-radius: 2px; }
textarea::placeholder { color: #898fa8; }
.new-session { color: var(--rose); border-color: #ffa0c55a; }
.toast { color: #102028; background: var(--accent); border-radius: 2px; box-shadow: 0 0 35px #0008; }
@media (min-width:1700px) {
  .home { padding: 32px 4.3vw; }
  .home-feature { min-height: calc(100svh - 204px); border-radius: 240px 240px 3px 3px; }
  .hero-copy { padding: 24px 42px 28px; }
  .home-feature::after { border-radius: 230px 230px 0 0; }
  .hero-caption { bottom: 12px; font-size: 12px; }
  .home h1 { margin: 14px 0; }
  .intro { max-width: 520px; }
  .home-buttons .primary { font-size: 17px; }
  .home-buttons .text-link { font-size: 17px; }
  .topic-row { padding: 32px 0; gap: 25px; }
  .topic-row p { font-size: 16px; }
  .map-head .eyebrow { font-size: 12px; }
  .map-caption { font-size: 18px; }
  .case-tabs button,.topic-nav button { font-size: 16px; }
  .context-actions .text-link { font-size: 18px; }
  .prompt-tabs button,.branches button { font-size: 15px; }
  .question-top .eyebrow { font-size: 12px; }
  .question-card { padding-top: 40px; padding-bottom: 35px; }
}
@media (max-height:780px) and (min-width:1001px) {
  .home { padding-top: 24px; padding-bottom: 24px; }
  .home-feature { min-height: calc(100svh - 163px); border-radius: 150px 150px 3px 3px; }
  .hero-copy { padding: 18px 24px; }
  .home-feature::after { border-radius: 140px 140px 0 0; }
  .hero-caption { bottom: 8px; font-size: 9px; }
  .home h1 { font-size: 50px; margin: 11px 0; }
  .intro { font-size: 18px; margin: 16px 0; max-width: 440px; }
  .home-buttons { gap: 15px; }
  .home-buttons .primary { padding: 13px 17px; font-size: 13px; gap: 16px; }
  .home-buttons .text-link { font-size: 12px; }
  .hero-copy>.eyebrow { font-size: 10px; }
  .topic-row { padding: 15px 0; }
  .topic-row h2 { font-size: 28px; }
  .map-head { padding-bottom: 15px; }
  .map-caption { margin-top: 18px; font-size: 14px; }
  .question-card h2 { font-size: 42px; margin: 23px 0 18px; }
  .context h2 { font-size: 33px; margin: 15px 0; }
  .context .capsule { font-size: 18px; line-height: 1.5; }
  .question-card { padding-top: 23px; padding-bottom: 20px; }
  .prompt-tabs button { font-size: 11px; padding: 9px 11px; }
  .room h1 { font-size: 58px; }
  .spectrum button { padding-top: 24px; padding-bottom: 20px; }
}
@media (min-width:1001px) {
  .home h1 br { display: none; }
}
@media (max-width:1000px) {
  .home { grid-template-columns: 1fr; padding: 24px 5vw 40px; gap: 28px; }
  .home-feature { min-height: 620px; border-radius: 180px 180px 3px 3px; }
  .hero-copy { padding: 24px 30px; }
  .home h1 { font-size: 59px; }
  .intro { font-size: 19px; max-width: 490px; }
  .topic-map { padding: 0; }
  .topic-row h2 { font-size: 29px; }
  .discussion { grid-template-columns: 1fr; }
  .context h2 { font-size: 36px; }
  .context .capsule { font-size: 21px; }
  .question-card h2 { font-size: 44px; }
  .focus-mode .question-card h2 { font-size: 57px; }
}
@media (max-width:600px) {
  .brand { font-size: 16px; gap: 10px; }
  .mark { width: 26px; height: 31px; font-size: 18px; }
  .header-actions .small-button { font-size: 10px; }
  .home-feature { min-height: 570px; border-radius: 100px 100px 3px 3px; }
  .hero-copy { padding: 20px 24px; }
  .home-feature::after { border-radius: 90px 90px 0 0; }
  .hero-caption { font-size: 8px; bottom: 8px; padding: 6px 11px; letter-spacing: 2px; }
  .hero-copy>.eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .home h1 { font-size: 48px; letter-spacing: -1.5px; }
  .intro { font-size: 18px; margin: 18px 0; }
  .home-buttons { gap: 9px; }
  .home-buttons .text-link { font-size: 12px; }
  .home-buttons .primary { font-size: 13px; padding: 13px 15px; gap: 14px; }
  .topic-row { grid-template-columns: 31px 1fr 20px; gap: 13px; padding: 23px 0; }
  .topic-row h2 { font-size: 26px; }
  .topic-row p { font-size: 12px; }
  .number { width: 29px; height: 37px; font-size: 15px; }
  .map-head .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .map-caption { font-size: 13px; }
  .global-footer>span:first-child { font-size: 12px; }
  .topic-heading h1 { font-size: 29px; }
  .context h2 { font-size: 32px; }
  .context .capsule { font-size: 19px; }
  .question-card { padding: 25px 22px; }
  .question-card h2 { font-size: 35px; }
  .question-top .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .focus-button { font-size: 10px; }
  .prompt-tabs button { font-size: 10px; padding: 9px; }
  .focus-mode .question-card h2 { font-size: 41px; }
  .spectrum button { font-size: 11px; padding: 24px 4px 20px; }
  .room h1 { font-size: 46px; }
  .room .room-prompt { font-size: 21px; }
}
@media print {
  :root { color-scheme: light; --ink: #151515; --muted: #444; --paper: #fff; --line: #aaa; }
  body,.home-feature,.question-card { background: white; color: black; }
  .hero-art,.home-feature::before,.home-feature::after,.hero-copy::before,.hero-caption,.question-card::before { display: none; }
  .home-feature { min-height: auto; border: 0; padding: 0; }
  .hero-visual { display: none; }
  .hero-copy { padding: 0; background: white; border: 0; }
  .home h1,.home h1 .serif,.intro,.context .capsule,.topic-row h2,.prompt-nudge { color: black; text-shadow: none; }
  .question-card { box-shadow: none; }
}
