/* Existing blue-and-white identity, refined for focused practice. */
:root { --bg:#f7f8fa; --text:#182230; --border:#dce1e8; --radius:14px; }
body { padding:32px 24px; letter-spacing:.01em; }
.container { max-width:880px; }
header { margin-bottom:24px; padding-bottom:20px; gap:20px; }
h1 { font-size:1.12rem; letter-spacing:-.025em; }
button, select, input, textarea { font:inherit; }
a { color:#1d4ed8; text-underline-offset:3px; }
button, summary, a, select, input, textarea { -webkit-tap-highlight-color:transparent; }
button, summary { touch-action:manipulation; }
:focus-visible { outline:3px solid #2563eb; outline-offset:4px; }
.nav-tabs { gap:6px; align-items:center; }
.nav-tabs button, .site-settings > summary { border-color:transparent; background:transparent; padding:8px 14px; font-size:.875rem; }
.nav-tabs button.active { background:#e8efff; color:#1d4ed8; border-color:transparent; }
.site-settings .config-box { background:#fff; padding:20px; }
.schedule-panel { border-bottom:1px solid var(--border); margin-bottom:16px; color:#475569; font-size:.875rem; }
.schedule-panel > summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; min-height:48px; padding:8px 0; cursor:pointer; }
#schedule-summary { font-size:.8rem; color:#475569; }
.schedule-content { padding:0 0 18px; max-width:640px; }
.schedule-meta { font-size:.8rem; }
.source-links { display:flex; flex-wrap:wrap; gap:8px 24px; }
.source-links a { display:inline-flex; align-items:center; min-height:44px; }
.exam-setup { border:1px solid var(--border); border-radius:12px; background:#fff; margin:0 0 20px; }
.exam-setup > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; cursor:pointer; list-style:none; min-height:72px; }
.exam-setup > summary::-webkit-details-marker { display:none; }
.exam-setup summary small { display:block; margin-top:3px; color:#475569; font-size:.8rem; font-weight:400; }
.summary-action { font-size:.8rem; color:#1d4ed8; white-space:nowrap; }
.summary-action::after { content:' ＋'; }
.exam-setup[open] .summary-action::after { content:' −'; }
.setup-content { border-top:1px solid var(--border); padding:20px; }
.mode-panel { background:transparent; border:0; border-radius:0; padding:0; margin:0 0 16px; }
#mode-description, #official-source-note { font-size:.875rem; line-height:1.8; }
.exam-controls { gap:10px; }
.exam-controls label { font-size:.8rem; color:#475569; }
.exam-controls select { flex:1 1 200px; width:auto; padding:10px 12px; font-size:.875rem; }
.import-panel { border-top:1px solid var(--border); margin-top:16px; padding-top:8px; }
.import-panel > summary, .exam-rules > summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:.875rem; }
.import-panel > summary small { display:inline; margin-left:8px; }
.import-content { padding:4px 0 16px; font-size:.875rem; }
.exam-rules { border-top:1px solid var(--border); color:#475569; font-size:.875rem; }
.exam-rules p { margin-top:0; }
.card { box-shadow:none; padding:28px; }
.question-title { letter-spacing:0; line-height:1.8; }
.options { gap:10px; }
.action-btn { border-radius:8px; padding:11px 18px; min-height:44px; }
.action-btn.secondary { background:#fff; color:#334155; border:1px solid #cbd5e1; }
.action-btn.secondary:hover { background:#f1f5f9; }
.quiz-status-bar { box-shadow:none; border-radius:8px; margin-bottom:16px; }
.quiz-status-bar #q-index, .timer, .result-score, .result-stat strong { font-variant-numeric:tabular-nums; }
#practice-progress { font-size:.8rem; font-weight:400 !important; }
.question-tools { border-top:1px solid var(--border); margin-top:24px; padding-top:16px; }
.keyboard-hint { color:#475569; }
#btn-doubt { font-size:.8rem; }
#btn-doubt[aria-pressed="true"] { background:#fff7ed; color:#9a3412; border-color:#c2410c; box-shadow:none; }
.actions { gap:12px; }
.actions .action-btn { flex:1; }
#btn-prev { background:#fff; color:#334155; border:1px solid #cbd5e1; }
#btn-finish { display:block; width:100%; }
body.result-view .exam-setup, body.result-view .schedule-panel { display:none !important; }
.result-hero { border-top-width:1px; }
footer { font-size:.8rem !important; }
footer p:last-child { max-width:680px; line-height:1.8; }
@media(max-width:600px) {
 body { padding:20px 16px; }
 header { align-items:flex-start; gap:12px; margin-bottom:12px; }
 h1 { width:100%; font-size:1.05rem; }
 .nav-tabs { width:100%; }
 .nav-tabs button { flex:1; }
 .schedule-panel > summary { align-items:flex-start; }
 .exam-setup > summary { padding:14px 16px; }
 .setup-content { padding:16px; }
 .exam-controls { align-items:stretch; }
 .exam-controls label { width:100%; }
 .exam-controls select, .exam-controls button { flex-basis:100%; width:100%; }
 .card { padding:20px 18px; }
 .question-title { font-size:1.08rem; }
 .question-tools { gap:12px; }
 .question-tools > div { width:100%; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
.timer { color:#334155; font-weight:650; }
.timer.timer-urgent { color:#b91c1c; }
.schedule-panel > summary::marker { color:#64748b; }
.privacy-note > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.privacy-note p { margin:0 0 16px; }
#btn-help { font-weight:500; }
#welcome-guide { width:min(440px,calc(100vw - 32px)); border:1px solid var(--border); border-radius:16px; padding:32px; color:var(--text); box-shadow:0 24px 80px #18223026; }
#welcome-guide::backdrop { background:#18223073; }
#welcome-guide h2 { font-size:1.35rem; line-height:1.5; margin:12px 0; padding-right:12px; }
#guide-copy { color:#475569; font-size:.95rem; line-height:1.9; margin-bottom:28px; }
.guide-step { font-size:.8rem; color:#475569; margin:0; }
.guide-dismiss { position:absolute; right:12px; top:10px; background:none; border:0; color:#475569; width:44px; font-size:24px; cursor:pointer; }
.guide-actions { display:flex; gap:12px; justify-content:space-between; }
#guide-back { padding:8px 16px; background:#fff; border:1px solid var(--border); border-radius:8px; cursor:pointer; }
#guide-back:disabled { color:#64748b; cursor:default; }
.guide-highlight { outline:3px solid #2563eb; outline-offset:4px; }
.calendar-help { margin-top:12px; border-top:1px solid var(--border); }
.calendar-help > summary { min-height:44px; padding:10px 0; cursor:pointer; }
.calendar-help a { display:inline-flex; align-items:center; min-height:44px; }
.calendar-help a[hidden] { display:none; }
.support-note { display:flex; flex-wrap:wrap; gap:4px 16px; align-items:center; }
.support-note a { display:inline-flex; align-items:center; min-height:44px; }
.support-note span { color:#475569; font-size:.8rem; }
@media(max-width:600px) { .nav-tabs button { padding:8px 10px; font-size:.8rem; } #welcome-guide { padding:28px 24px; } }
#exam-ready { display:none; margin:24px 0; padding:40px 28px; text-align:center; border:1px solid var(--border); border-radius:14px; background:#fff; }
#exam-ready h2 { margin:10px 0; font-size:1.7rem; letter-spacing:-.03em; }
.ready-eyebrow { color:#475569; font-size:.85rem; margin:0; }
.ready-note { max-width:460px; margin:16px auto 24px; color:#475569; font-size:.9rem; line-height:1.8; }
#btn-start-exam { min-width:180px; }
body.exam-ready #exam-ready { display:block; }
body.exam-ready .question-card, body.exam-ready .quiz-status-bar, body.exam-ready #practice-progress,
body.exam-ready #quiz-section > .actions, body.exam-ready #btn-finish { display:none !important; }
body.result-view #exam-ready { display:none !important; }
@media(max-width:600px) { #exam-ready { padding:32px 20px; } #exam-ready h2 { font-size:1.45rem; } }
.site-settings .config-box { max-height:calc(100dvh - 150px); overflow:auto; }
.gas-help-wrap { position:relative; margin:8px 0; }
.config-box .gas-help-trigger { display:inline-flex; align-items:center; gap:8px; min-height:44px; background:transparent; color:#1d4ed8; padding:4px 0; text-align:left; }
.gas-help-popover { position:relative; background:#eff6ff; color:#1e3a5f; border:1px solid #bfdbfe; border-radius:8px; padding:12px; font-size:.85rem; line-height:1.8; margin-bottom:12px; }
.gas-steps { padding-left:20px; margin:8px 0; font-size:.85rem; line-height:1.8; }
.gas-steps li { margin-bottom:6px; }
.gas-help-links { display:flex; flex-wrap:wrap; gap:0 16px; }
.gas-help-links a { display:inline-flex; align-items:center; min-height:44px; font-size:.85rem; }
.config-box .gas-after { padding-top:12px; border-top:1px solid var(--border); font-size:.85rem; line-height:1.8; }
.config-box .gas-limit { font-size:.8rem; line-height:1.7; }
.gas-walkthrough > summary, .gas-usage > summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:.85rem; color:#334155; }
.gas-usage { border-top:1px solid var(--border); margin-top:8px; }
.site-settings .config-box > button { background:var(--primary); color:#fff; border:0; padding:10px 16px; min-height:44px; }
.site-settings .config-box > button:hover { background:var(--primary-hover); }
.offline-panel { border-top:1px solid var(--border); margin-top:8px; }
.offline-panel > summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:.85rem; color:#334155; }
.site-settings .offline-panel button { display:block; min-height:44px; padding:10px 16px; background:var(--primary); color:#fff; border:0; border-radius:8px; }
.site-settings .offline-panel button:hover:not(:disabled) { background:var(--primary-hover); }
.site-settings .offline-panel button:disabled { background:#cbd5e1; color:#334155; cursor:wait; }
.offline-panel p { font-size:.8rem; line-height:1.7; }

/* Text-only identity: generous space, no graphic logo. */
.brand-heading { display:flex; flex-direction:column; align-items:flex-start; gap:5px; margin:0; }
.brand-name { color:#182230; font-size:1.65rem; font-weight:800; line-height:1.2; letter-spacing:.08em; }
.brand-name > span { color:#087f8c; }
.brand-heading small { display:block; font-size:.75rem; font-weight:500; color:#475569; letter-spacing:.015em; line-height:1.5; }
/* Home explains the product; the workspace stays focused on answering. */
[hidden] { display:none !important; }
body.home-view .container { max-width:1040px; }
.home-view .nav-tabs { display:none; }
.home-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; font-size:.875rem; text-decoration:none; }
.home-hero { padding:44px 0 28px; max-width:740px; }
.home-kicker { font-size:.875rem; color:#475569; margin:0 0 16px; }
.home-hero h1 { font-size:clamp(2rem,5vw,3.5rem); line-height:1.2; letter-spacing:-.04em; margin:0 0 20px; color:#182230; }
.home-intro { color:#475569; max-width:640px; line-height:1.9; margin:0 0 16px; }
.home-facts { font-size:.875rem; color:#087481; }
.level-routes { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:8px 0 28px; }
.level-route { display:flex; flex-direction:column; border:1px solid #cbd5e1; border-top:3px solid #087f8c; padding:24px; border-radius:10px; background:#fff; color:#182230; text-decoration:none; }
.level-route:hover { border-color:#087f8c; }
.route-label { color:#087481; font-size:1.25rem; font-weight:800; }
.level-route h3 { font-size:1.1rem; margin:10px 0; }
.level-route p { color:#475569; font-size:.875rem; line-height:1.8; margin:0 0 12px; }
.level-route strong { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; color:#1d4ed8; min-height:44px; }
.daily-entry { display:flex; align-items:center; justify-content:space-between; gap:20px; border-block:1px solid var(--border); padding:24px 0; }
.daily-entry h3,.home-progress h3,.community-entry h3 { font-size:1.1rem; margin:0 0 8px; }
.daily-entry p { color:#475569; font-size:.875rem; margin:0; }
.daily-links { display:flex; gap:10px; flex-wrap:wrap; }
.daily-links a,.community-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 16px; min-height:44px; border:1px solid #b8c7e5; border-radius:8px; text-decoration:none; font-weight:600; font-size:.875rem; background:#fff; }
.feature-section { padding:32px 0; }
.feature-section > h3 { font-size:1.25rem; margin:0 0 24px; }
.feature-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.feature-item > svg { color:#087481; }
.feature-item h3 { margin:12px 0 8px; font-size:.95rem; }
.feature-item p,.home-progress p,.community-entry p,.source-disclosure { color:#475569; font-size:.875rem; line-height:1.85; }
.home-progress,.community-entry { padding:24px 0; border-top:1px solid var(--border); }
.home-storage-note { margin-bottom:0; }
.source-disclosure { border-top:1px solid var(--border); padding-top:20px; }
.footer-icon-links { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 24px; padding:12px 0; }
.footer-icon-links a { display:inline-flex; align-items:center; gap:7px; min-height:44px; color:#475569; text-decoration:none; font-size:.85rem; }
.footer-icon-links a:hover { color:#1d4ed8; }
.footer-icon-links .support-promote { color:#1d4ed8; font-weight:700; }
.footer-context { text-align:center; line-height:1.8; font-size:.8rem; }
@keyframes coffee-nudge {0%,100%{transform:translateY(0)}40%{transform:translateY(-4px)}70%{transform:translateY(0)}}
.home-view .support-promote.is-visible svg { animation:coffee-nudge 1.6s 3; animation-delay:2s; }
.question-note { margin:12px 0; border-block:1px solid var(--border); padding:8px 0; font-size:.875rem; }
.question-note summary { min-height:44px; padding:10px 0; cursor:pointer; }
.question-note label { display:block; color:#475569; margin:8px 0; }
.question-note textarea { width:100%; max-width:100%; resize:vertical; box-sizing:border-box; padding:12px; }
.source-question-images img { display:block; max-width:100%; height:auto; margin:12px auto; background:#fff; }
.saved-note { white-space:pre-wrap; }
#learning-panel details { border-top:1px solid var(--border); padding:12px 0; }
#learning-panel summary { min-height:44px; cursor:pointer; }
@media(max-width:768px){.feature-grid{grid-template-columns:1fr 1fr}.home-hero{padding-top:24px}.daily-entry{align-items:flex-start;flex-direction:column}.nav-tabs{gap:2px}.nav-tabs button,.home-link{padding-inline:10px}}
@media(max-width:560px){.level-routes{grid-template-columns:1fr;gap:14px}.level-route{padding:20px}.feature-grid{gap:22px 16px}.footer-icon-links{gap:6px 16px}}
@media(prefers-reduced-motion:reduce){.home-view .support-promote.is-visible svg{animation:none}}

.search-tools { border-top:1px solid var(--border); padding-top:8px; margin-top:16px; font-size:.875rem; }
.search-tools summary { cursor:pointer; padding:10px 0; min-height:44px; }
.search-tools label { display:block; margin:8px 0; }
.search-row { display:flex; flex-wrap:wrap; gap:8px; }
.search-row input { flex:1 1 180px; min-width:0; min-height:44px; padding:10px; border:1px solid var(--border); border-radius:8px; }
.source-media { margin:12px 0; padding:8px 0; border-block:1px solid var(--border); font-size:.875rem; }
.source-media > summary { cursor:pointer; min-height:44px; padding:10px 0; color:#334155; }
.source-question-images a { display:block; min-height:44px; }

.question-feedback { border-top:1px solid var(--border); padding-top:8px; margin-top:16px; font-size:.875rem; }
.question-feedback summary { min-height:44px; padding:10px 0; cursor:pointer; }
.question-feedback a { display:inline-flex; min-height:44px; align-items:center; }

/* Keep navigation labels intact on narrow screens; settings escape the scroll strip. */
.nav-tabs { min-width:0; max-width:100%; }
.nav-tabs > *, .nav-tabs button, .nav-tabs .home-link, .site-settings > summary { white-space:nowrap; flex-shrink:0; }
@media(max-width:768px) {
 .nav-tabs { flex-wrap:nowrap; overflow-x:auto; width:100%; padding:4px 0 8px; scrollbar-width:thin; }
 .nav-tabs button { flex:0 0 auto; min-height:44px; }
 .nav-tabs .home-link { display:inline-flex; align-items:center; min-height:44px; }
 .site-settings .config-box { position:fixed; top:110px; right:16px; width:calc(100vw - 32px); max-height:calc(100dvh - 142px); overflow-y:auto; white-space:normal; }
}

/* 愛派題 visual refinement: existing navy / teal identity, 2026-11-13.
   Reading order: promise → level → daily practice → capabilities → supporting details. */
:root {
 --font-ui:"SF Pro Text","PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
 --font-display:"SF Pro Display","PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
 --font-number:ui-monospace,"SFMono-Regular",Consolas,monospace;
 --ink:#172b3a; --muted:#52616f; --teal:#087581;
}
body { font-family:var(--font-ui); color:var(--ink); letter-spacing:0; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4 { font-family:var(--font-display); text-wrap:pretty; }
p { text-wrap:pretty; }
.brand-name { font-family:var(--font-display); letter-spacing:.045em; font-size:1.7rem; }
.brand-heading small { color:var(--muted); font-size:.75rem; letter-spacing:.025em; }
body.home-view { padding-top:32px; }
.home-view .container { max-width:1104px; }
.home-view header { align-items:center; padding-bottom:24px; margin-bottom:0; }
.header-guide { display:inline-flex; align-items:center; gap:10px; min-height:44px; color:var(--muted); text-decoration:none; font-size:.875rem; font-weight:600; }
.header-guide:hover { color:var(--teal); }
.home-hero { display:grid; grid-template-columns:1.3fr 1fr; gap:56px; align-items:end; max-width:none; padding:64px 0 56px; }
.home-kicker { color:var(--muted); font-size:.8125rem; font-weight:600; letter-spacing:.04em; margin-bottom:20px; }
.home-hero h1 { font-size:clamp(2.25rem,4.3vw,3.75rem); font-weight:750; line-height:1.24; letter-spacing:-.055em; margin:0; }
.home-hero h1 span { color:var(--teal); }
.home-intro { font-size:1rem; line-height:1.9; margin:0 0 26px; color:var(--muted); max-width:410px; }
.home-facts { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; margin:0; padding-top:20px; border-top:1px solid var(--border); }
.home-facts > div { display:flex; flex-direction:column-reverse; gap:8px; }
.home-facts dt { font-size:.75rem; color:var(--muted); white-space:nowrap; }
.home-facts dd { margin:0; color:var(--ink); font-family:var(--font-number); font-size:1.8rem; font-weight:600; letter-spacing:-.07em; line-height:1.1; }
.home-facts dd span { font-family:var(--font-ui); font-size:.75rem; letter-spacing:0; font-weight:500; margin-left:5px; }
.home-facts dd.fact-free { font-family:var(--font-display); font-size:1.3rem; letter-spacing:-.025em; padding-block:3px; }
.route-section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:18px; }
.route-section-heading h2 { font-size:1.125rem; font-weight:650; margin:0; letter-spacing:-.025em; }
.route-section-heading p { margin:0; color:var(--muted); font-size:.8125rem; }
.level-routes { gap:24px; margin:0 0 32px; }
.level-route { padding:28px 30px 20px; border:1px solid #cbd5df; border-top:2px solid var(--teal); border-radius:12px; transition:border-color .18s,background-color .18s; }
.level-route:hover { border-color:var(--teal); background:#fcfefe; }
.route-label { display:flex; align-items:center; gap:16px; font-size:1.875rem; line-height:1.2; color:var(--ink); letter-spacing:-.035em; font-weight:700; margin-bottom:10px; }
.route-level-note { font-size:.75rem; font-weight:550; color:var(--teal); letter-spacing:.025em; padding-left:14px; border-left:1px solid #cbd5df; }
.level-route h3 { font-size:1rem; font-weight:600; margin:4px 0 8px; line-height:1.65; }
.level-route p { font-size:.875rem; line-height:1.8; color:var(--muted); margin-bottom:12px; }
.level-route .route-meta { font-size:.8125rem; margin-bottom:8px; font-variant-numeric:tabular-nums; }
.level-route strong { font-size:.9375rem; margin-top:12px; padding-top:12px; border-top:1px solid #e5eaf0; }
.daily-entry { padding:24px 0; }
.daily-entry h3 { font-size:1.25rem; letter-spacing:-.025em; }
.daily-entry p { color:var(--muted); }
.daily-links a { min-width:108px; font-size:.875rem; padding:11px 18px; }
.feature-section { padding:48px 0; }
.feature-section > h3 { font-size:1.5rem; font-weight:650; letter-spacing:-.035em; margin-bottom:28px; }
.feature-grid { gap:32px; }
.feature-item > svg { width:24px; height:24px; }
.feature-item h3 { margin:18px 0 10px; font-weight:650; font-size:1rem; line-height:1.5; }
.feature-item p { margin:0; color:var(--muted); font-size:.875rem; line-height:1.9; }
.home-bottom-grid { display:grid; grid-template-columns:1fr 1fr; gap:56px; border-top:1px solid var(--border); }
.home-progress,.community-entry { border:0; padding:30px 0; }
.home-progress h3,.community-entry h3 { font-size:1.125rem; font-weight:650; letter-spacing:-.02em; }
.home-storage-note { font-size:.8125rem !important; }
.community-link { margin-top:4px; }
.source-disclosure { font-size:.8125rem; line-height:1.9; padding-top:8px; }
.source-disclosure > summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; cursor:pointer; list-style:none; color:var(--muted); }
.source-disclosure > summary::after { content:'＋'; }
.source-disclosure[open] > summary::after { content:'−'; }
.source-disclosure > summary::-webkit-details-marker { display:none; }
.source-disclosure p { max-width:820px; margin:8px 0 20px; }
.home-view footer { margin-top:24px !important; }
.footer-context { color:var(--muted); font-size:.75rem; margin:14px auto; }
/* The question is the reading focus. Auxiliary details use a quieter scale. */
#exam-ready { margin:28px 0; padding:48px 32px; border-radius:16px; }
#exam-ready h2 { font-size:2rem; font-weight:700; line-height:1.4; margin:10px 0 16px; letter-spacing:-.04em; }
.ready-eyebrow { font-size:.8125rem; letter-spacing:.04em; }
#ready-exam-summary { color:var(--ink); font-size:.9375rem; line-height:1.8; }
.ready-note { font-size:.875rem; color:var(--muted); }
.card { border-radius:12px; }
.question-card { padding:32px; }
.question-title { font-size:1.1875rem; line-height:1.85; font-weight:500; margin-bottom:24px; letter-spacing:.005em; }
.option-btn { padding:16px 18px; font-size:1rem; line-height:1.7; border-width:1px; }
.options { gap:12px; }
.badge { font-size:.75rem; letter-spacing:.02em; font-weight:600; }
.quiz-status-bar { border-radius:10px; padding:14px 18px; }
.timer,#q-index,.result-score,.result-stat strong { font-family:var(--font-number); font-variant-numeric:tabular-nums; }
.review-item > summary { font-size:1rem; line-height:1.85; font-weight:550; }
.review-item { padding:20px 0; }
.wrong-exam-card h3,#learning-panel h2 { line-height:1.55; letter-spacing:-.025em; }
#learning-panel h2 { font-size:1.5rem; font-weight:650; margin:0 0 24px; }
#learning-panel .theme-learning-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:14px; margin:20px 0; }
#learning-panel .theme-learning-card { border:1px solid var(--border); border-radius:14px; background:#fff; padding:18px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
#learning-panel .theme-learning-card h3 { margin:0; font-size:1.05rem; line-height:1.45; }
#learning-panel .theme-learning-card p { margin:0; color:var(--muted); font-size:.88rem; line-height:1.6; }
#learning-panel .theme-learning-card button { margin-top:auto; min-height:44px; }
#learning-panel > p { line-height:1.9; color:var(--muted); font-size:.9375rem; }
.result-hero { padding:44px 28px; border-radius:16px; }
.result-score { font-weight:600; letter-spacing:-.075em; margin:16px 0 12px; }
.result-score small { letter-spacing:-.025em; }
.result-stat strong { font-size:1.125rem; margin-top:8px; letter-spacing:-.02em; }
.result-stat span { font-size:.8125rem; color:var(--muted); }
.result-guidance { line-height:1.85; }
@media(max-width:900px) {
 .home-hero { gap:32px; }
 .home-facts { gap:10px; }
 .feature-grid { gap:24px; }
}
@media(max-width:768px) {
 .home-hero { grid-template-columns:1fr; gap:28px; padding:40px 0; }
 .hero-detail { max-width:540px; }
 .home-intro { max-width:500px; margin-bottom:20px; }
 .home-facts { max-width:420px; }
 .home-bottom-grid { gap:32px; }
 .feature-section { padding:36px 0; }
 .feature-section > h3 { font-size:1.375rem; }
}
@media(max-width:560px) {
 body.home-view { padding-top:20px; }
 .home-view header { padding-bottom:18px; gap:12px; }
 .home-view .brand-heading { width:auto; }
 .brand-name { font-size:1.5rem; }
 .header-guide { font-size:.8125rem; }
 .home-view .brand-heading small { font-size:.6875rem; }
 .home-hero { padding:36px 0 32px; gap:24px; }
 .home-hero h1 { font-size:clamp(2rem,8.8vw,2.8rem); letter-spacing:-.045em; }
 .home-kicker { margin-bottom:16px; font-size:.75rem; }
 .home-intro { font-size:.9375rem; line-height:1.85; }
 .home-facts { padding-top:18px; }
 .home-facts dd { font-size:1.65rem; }
 .home-facts dd.fact-free { font-size:1.2rem; }
 .route-section-heading { display:block; margin-bottom:16px; }
 .route-section-heading p { margin-top:6px; }
 .level-routes { gap:16px; margin-bottom:28px; }
 .level-route { padding:24px 22px 16px; }
 .route-label { font-size:1.625rem; }
 .level-route h3 { font-size:.9375rem; }
 .daily-entry { gap:18px; }
 .daily-entry h3 { font-size:1.125rem; }
 .daily-links { width:100%; }
 .daily-links a { flex:1; }
 .feature-grid { grid-template-columns:1fr; gap:24px; }
 .feature-item { display:grid; grid-template-columns:26px 1fr; column-gap:14px; }
 .feature-item > svg { margin-top:3px; grid-row:1 / 3; }
 .feature-item h3 { margin:0 0 6px; }
 .home-bottom-grid { grid-template-columns:1fr; gap:0; }
 .home-progress { padding:28px 0; }
 .community-entry { border-top:1px solid var(--border); padding:28px 0; }
 #exam-ready { padding:36px 22px; }
 #exam-ready h2 { font-size:1.625rem; }
 .question-card { padding:24px 20px; }
 .question-title { font-size:1.125rem; line-height:1.85; }
 .option-btn { padding:14px 16px; font-size:1rem; }
 .result-hero { padding:36px 22px; }
}

/* Landing headings follow document order: one H1, section H2, route H3. */
.route-section-heading h2 { font-size:1.375rem; font-weight:650; }
.daily-entry h2 { font-size:1.25rem; margin:0 0 8px; line-height:1.45; letter-spacing:-.025em; }
.feature-section > h2 { font-size:1.5rem; font-weight:650; letter-spacing:-.035em; margin:0 0 28px; }
.home-progress h2,.community-entry h2 { font-size:1.125rem; font-weight:650; margin:0 0 8px; line-height:1.5; letter-spacing:-.02em; }
@media(max-width:560px) { .route-section-heading h2 { font-size:1.25rem; } .daily-entry h2 { font-size:1.125rem; } .feature-section > h2 { font-size:1.375rem; } }

/* The programmatic reading target is text, not an interactive control. */
#q-text:focus-visible { outline:none; }

@media(max-width:560px) { .result-stat-grid .result-stat:first-child { grid-column:1 / -1; } }

/* Consistent home affordance for the wordmark; retain readable subtitle. */
.brand-name.brand-home { display:inline-flex; align-items:center; min-height:52px; font-size:3rem; line-height:1.1; text-decoration:none; color:var(--ink); }
.brand-home:hover { color:var(--teal); }
@media(max-width:560px) { .brand-name.brand-home { font-size:2.5rem; } .header-guide { gap:6px; } }

.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.hero-cta { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:10px; background:#1d4ed8; color:#fff; font-weight:700; text-decoration:none; }
.hero-cta:hover { background:#1e40af; }
.hero-cta.secondary { background:#fff; color:#1d4ed8; border:1px solid #1d4ed8; }
.latest-result { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; margin:0 0 28px; padding:14px 18px; border:1px solid #cbd5e1; border-left:3px solid #087f8c; border-radius:10px; background:#fff; color:inherit; text-decoration:none; }
.latest-result[hidden] { display:none; }
.latest-result:hover { border-color:#087f8c; }
.latest-result-label { color:#087481; font-size:.78rem; font-weight:700; letter-spacing:.04em; }
.latest-result-body { flex:1 1 320px; color:#334155; font-size:.9rem; line-height:1.7; overflow-wrap:anywhere; }
.latest-result-link { color:#1d4ed8; font-size:.85rem; font-weight:600; white-space:nowrap; }
@media(max-width:560px){.hero-cta{flex:1 1 100%}.latest-result{padding:12px 14px}}
