/* Civics: champagne yellow, with the same social launcher and question-player UI. */
.civics-page { --yellow: #ffe18a; --yellow-soft: #dfbd61; --bg: #0f1010; background: var(--bg); }
.civics-page .site-header { background: rgba(15,16,16,.94); }
.civics-page .unit-poster-command { background: linear-gradient(100deg,rgba(255,225,138,.12),#171714 48%,#090b0b); }
.civics-page .unit-poster-command-copy > p:not(.kicker) { color: #e6e3d9; }
.civics-page .unit-tip { border-color: rgba(255,225,138,.58); }
.civics-page .key-point-grid article > span { color: rgba(255,225,138,.5); }
.civics-page .test-setting { border-color: rgba(255,225,138,.58); background: linear-gradient(110deg,rgba(255,225,138,.12),#171815 58%); }
.civics-page.quiz-page::before { background: radial-gradient(circle at 85% 8%,rgba(255,225,138,.1),transparent 29%),linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size: auto,52px 52px,52px 52px; }
.civics-page .quiz-mission-bar { background: linear-gradient(100deg,rgba(255,225,138,.15),#171815 46%,#0b0e0c); }
.civics-page .quiz-choice:hover:not(:disabled),.civics-page .quiz-choice:focus-visible { background: rgba(255,225,138,.1); }
.civics-page .quiz-choice.is-correct,.civics-page .quiz-choice.is-selected { background: rgba(255,225,138,.13); }
.civics-page .quiz-progress span { box-shadow: 0 0 18px rgba(255,225,138,.35); }
.civics-page .quiz-short-form input:focus { box-shadow: 0 0 0 3px rgba(255,225,138,.15); }
.civics-page .quiz-battle-hud { background: linear-gradient(160deg,rgba(255,225,138,.09),#171815 38%,#090c0d); }
.civics-page .quiz-complete { border-color: rgba(255,225,138,.55); background: radial-gradient(circle at 50% 0,rgba(255,225,138,.13),transparent 30%),#101210; }
.civics-page .quiz-complete-score { border-color: rgba(255,225,138,.55); }
.civics-page .quiz-result-message,.civics-page .quiz-review-notice { background: rgba(255,225,138,.08); }
.civics-page .quiz-availability { border-color: rgba(255,225,138,.55); background: linear-gradient(145deg,rgba(255,225,138,.11),#171815 42%,#090c0d); }
.civics-route { padding-block: 52px 36px; }
.civics-route .section-heading { align-items: end; }
.civics-note { color: #dddcd3; font-size: .9rem; }
.civics-stage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.civics-stage-card { position: relative; overflow: hidden; min-height: 230px; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--yellow); background: linear-gradient(110deg,rgba(255,225,138,.18),#191a17 65%,#101211); box-shadow: 7px 7px 0 rgba(255,225,138,.12); }
.civics-stage-card::before { content: attr(data-stage); position: absolute; right: 4%; top: -20px; color: rgba(255,225,138,.14); font: 1000 14rem/1 Impact,sans-serif; }
.civics-stage-card > * { position: relative; }
.civics-stage-card > span { color: var(--yellow); font: 900 .75rem/1.4 monospace; letter-spacing: .12em; }
.civics-stage-card > strong { margin-top: 10px; font-size: clamp(2rem,4vw,3.3rem); line-height: 1.15; }
.civics-stage-card p { max-width: 700px; margin: 12px 0; color: #e5e3db; }
.civics-stage-card em { color: #f5ebcf; font-size: .85rem; font-style: normal; }
.civics-stage-card b { margin-top: 20px; padding: 8px 13px; background: var(--yellow); color: #16130b; }
.civics-stage-card:hover,.civics-stage-card:focus-visible { border-color: #fff3cc; box-shadow: 7px 7px 0 rgba(255,225,138,.28); }
.civics-upcoming { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.civics-upcoming article { padding: 22px; border: 1px solid #5d594a; background: #171916; }
.civics-upcoming span { color: #dcd7c7; font: 800 .7rem/1.4 monospace; letter-spacing: .1em; }
.civics-upcoming h3 { margin: 9px 0; font-size: 1.25rem; }
.civics-upcoming p { margin: 0; color: #cecfc6; font-size: .88rem; }
.civics-thinking-tip { margin-top: 30px; padding: 18px 20px; border: 1px dashed rgba(255,225,138,.58); background: rgba(255,225,138,.06); }
.civics-thinking-tip .kicker { margin: 0; }
.civics-thinking-tip h2 { margin: 5px 0; font-size: 1.25rem; }
.civics-thinking-tip p:last-child { margin: 0; color: #e3e1d7; font-size: .94rem; }
/* Keep baked-in headlines fully visible, rather than clipping a long title on phones. */
@media (max-width: 820px) {
  .civics-page .unit-poster-frame { height: auto; min-height: 0; aspect-ratio: 1.65; }
  .civics-page .unit-poster { object-fit: cover; object-position: left center; }
  .civics-route { padding-block: 34px 28px; }
  .civics-route .section-heading { display: block; }
  .civics-stage-grid,.civics-upcoming { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .civics-stage-card { min-height: 220px; padding: 22px; }
  .civics-stage-card::before { font-size: 10rem; top: 5px; }
  .civics-page .quiz-question-card { padding: 22px 16px; }
}

/* Four-way navigation is used only where both adjacent public stages exist. */
@media (min-width: 621px) { .civics-page .unit-links-four { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* Keep long civics breadcrumbs readable on small phones. */
.civics-international-order-page .breadcrumb,
.civics-global-challenges-page .breadcrumb { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
.civics-international-order-page .breadcrumb > a,
.civics-international-order-page .breadcrumb > span,
.civics-global-challenges-page .breadcrumb > a,
.civics-global-challenges-page .breadcrumb > span { flex-shrink: 0; white-space: nowrap; }

/* Inquiry support stays compact and never grades a student's policy choice. */
.inquiry-guide { padding-block: 20px 32px; }
.inquiry-guide header > p:last-child { color: #e3e1d7; }
.inquiry-guide details { border: 1px solid rgba(255,225,138,.55); background: #171815; }
.inquiry-guide summary { cursor: pointer; padding: 18px 20px; min-height: 48px; color: var(--yellow); font-weight: 800; }
.inquiry-guide summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.inquiry-guide ol { padding: 0 26px 0 48px; }
.inquiry-guide li { margin-block: 20px; padding-left: 6px; }
.inquiry-guide li::marker { color: var(--yellow); font-weight: 800; }
.inquiry-guide li p,.inquiry-guide-note { color: #e3e1d7; line-height: 1.85; }
.inquiry-guide li p { margin: 6px 0 0; }
.inquiry-guide-note { padding: 0 20px 18px; font-size: .9rem; }
.inquiry-theme-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.inquiry-theme-links a,.inquiry-guide-link { display: inline-block; color: var(--yellow); padding-block: 12px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.civics-civic-inquiry-page .breadcrumb { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
