:root {
  --ink: #242820;
  --graphite: #575d50;
  --smoke: #646b5d;
  --hairline: #c1c3b6;
  --accent: #52613e;
  --paper: #eeeae2;
}
[hidden] { display: none !important; }
.session-count { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--graphite); }
.session-count select { font: inherit; color: var(--ink); background: #f5f2eb; border: 1px solid var(--hairline); min-height: 44px; padding: 10px 36px 10px 14px; }
.mode-count { justify-content: flex-end; margin: -12px 0 28px; }
.session-result h2 { font-family: Arial, sans-serif; font-size: clamp(64px, 10vw, 110px); font-weight: 400; margin: 36px 0 8px; }
.session-result #sessionRate { color: var(--graphite); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.result-actions a { color: var(--ink); font-size: 13px; text-underline-offset: 4px; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #d4dac3; color: #242820; }
:where(a, button, summary, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
:where(a, button, summary) { -webkit-tap-highlight-color: transparent; }
.editorial-home { display: flex; flex-direction: column; }
.editorial-nav { min-height: 88px; }
.editorial-nav nav a { position: relative; padding: 12px 0; }
.editorial-nav nav a::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.editorial-nav nav a:hover::after { transform: scaleX(1); }
.editorial-main { flex: 1; }
.masthead { padding: 24px 0; color: var(--graphite); }
.identity { padding-top: 36px; }
.identity h1 { font-size: clamp(130px, 27vw, 440px); letter-spacing: -.08em; line-height: 1.06; }
.identity h1>span:first-child { color: var(--accent); }
.identity-dot { width: 1.2vw; height: 1.2vw; margin-left: 2.4vw; }
.home-about { max-width: 540px; font-size: 15px; line-height: 2; text-wrap: pretty; }
.identity-bottom { align-items: center; }
.entry-link { min-width: 330px; min-height: 100px; padding: 20px 24px; font-size: 24px; border-color: var(--ink); transition: background .25s, color .25s; }
.entry-link>span { display: grid; place-items: center; width: 46px; height: 46px; font-size: 32px; border: 1px solid currentColor; border-radius: 50%; }
.entry-link:hover { background: var(--accent); color: #f7f5ee; border-color: var(--accent); }
.editorial-footer { padding: 26px 0 30px; color: var(--graphite); }
.editorial-footer p, .editorial-footer a { font-size: 11px; }
.editorial-footer a { padding: 6px 0; }
.editorial-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mode-title { font-size: clamp(48px, 7.5vw, 112px); margin: 40px 0 58px; font-weight: 600; }
.mode-list>a, .mode-list summary { padding: 34px 16px; }
.mode-list h2 { font-weight: 600; }
.mode-list p { color: var(--graphite); line-height: 1.7; }
.mode-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--hairline); border-radius: 50%; font-size: 28px; transition: background .2s, color .2s, transform .2s; }
.mode-list>a:hover .mode-icon, .mode-list summary:hover .mode-icon { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.mode-list details[open] summary .mode-icon { transform: rotate(45deg); }
.mode-sub a { min-height: 58px; }
.mode-sub a:hover { color: var(--accent); }
.header-inner { width: 92%; max-width: none; min-height: 88px; }
.site-header { background: var(--paper); border-bottom-color: var(--hairline); }
.brand { font-size: 23px; font-weight: 700; letter-spacing: -1px; }
.brand-mark { display: none; }
.main-nav a { font-size: 13px; }
.header-cta, .primary-button { background: var(--accent); color: #faf8f1; }
.header-cta { padding: 12px 20px; }
.primary-button { min-height: 48px; padding: 13px 26px; }
.primary-button:hover:not(:disabled), .header-cta:hover { background: #3b492d; }
.primary-button:disabled { opacity: .45; cursor: default; }
.secondary-button { min-height: 48px; border-radius: 0; }
main:not(.editorial-main):not(.content-page) { width: min(1240px, 92%); padding-top: 54px; }
.study-shell { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.controls { gap: 28px; }
.summary span { font-family: Arial, sans-serif; font-size: 28px; }
.summary small { font-size: 12px; color: var(--graphite); }
.segment { padding: 12px 14px; border-left: 2px solid transparent; }
.segment.active { border-left-color: var(--accent); background: #dee2d2; color: var(--accent); }
.control-label { color: var(--graphite); }
.question-card { border: 1px solid var(--hairline); padding: clamp(24px, 4vw, 56px); min-height: 560px; }
.question-meta { font-size: 12px; color: var(--graphite); }
.category-tag { color: var(--accent); }
.progress-track { height: 2px; margin-bottom: 32px; }
.progress-track span { background: var(--accent); }
.question-card h2 { font-size: clamp(22px, 2vw, 29px); line-height: 1.65; font-weight: 600; letter-spacing: -.02em; text-wrap: pretty; }
.choice { min-height: 74px; gap: 18px; padding: 16px 12px; font-size: 15px; }
.choice-key { border-radius: 3px; width: 30px; height: 30px; font-family: Arial, sans-serif; }
.choice.selected { background: #e2e6d7; }
.choice.selected .choice-key { background: var(--accent); border-color: var(--accent); color: #fff; }
.feedback { border-left: 3px solid var(--accent); padding: 22px 24px; }
.text-button { border-radius: 0; min-height: 40px; }
.topic-detail li, .source-links a, .fact-row { border-radius: 0; }
.topic-detail li { background: #f5f2eb; line-height: 1.6; }
.footer-inner { width: 92%; max-width: none; }
@media (max-width: 820px) {
  .header-inner { min-height: 74px; padding-top: 16px; }
  .study-shell { grid-template-columns: 1fr; gap: 24px; }
  .controls { position: static; }
  .summary { max-width: 350px; padding-bottom: 20px; }
  .segmented { display: flex; flex-wrap: wrap; gap: 6px; }
  .segment { width: auto; padding: 10px 12px; font-size: 12px; border-left: 0; border-bottom: 2px solid transparent; }
  .segment.active { border-bottom-color: var(--accent); }
  .choice { padding-left: 0; padding-right: 0; }
}
@media (max-width: 760px) {
  .editorial-nav { min-height: 82px; gap: 14px; }
  .identity h1 { font-size: 31vw; }
  .identity { padding-top: 44px; }
  .identity-bottom { align-items: stretch; }
  .entry-link { min-width: 0; min-height: 86px; padding: 18px 0; }
  .entry-link:hover { padding-inline: 16px; }
  .home-about { font-size: 14px; margin: 0; line-height: 1.9; }
  .editorial-footer { padding-top: 24px; gap: 20px; }
  .mode-list>a, .mode-list summary { padding: 28px 0; grid-template-columns: 28px 1fr 42px; }
  .mode-icon { width: 38px; height: 38px; font-size: 24px; }
  .mode-title { margin: 32px 0 42px; }
  .question-card { min-height: 0; }
  .question-card h2 { font-size: 22px; }
  .feedback { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
