/* exam-review.css — the AP Exam Review page (exam-review.js); video cards reuse house-watch.css */
.xr-how h2 { margin-top: 0; }
.xr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 12px; padding: 0; list-style: none; counter-reset: xr; }
.xr-steps li { position: relative; padding: 12px 14px 12px 50px; border: 1px solid var(--h-line); border-radius: 14px; background: var(--h-panel-2); color: var(--h-text-2); line-height: 1.5; counter-increment: xr; }
.xr-steps li::before { content: counter(xr); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--h-gold-grad); color: var(--h-on-gold); font: 700 .85rem/1 var(--h-sans); }
.xr-steps b { color: var(--h-text); }
.xr-credit { margin: 0; font-size: .88rem; color: var(--h-muted); }
html body .xr-credit a { color: var(--h-gold-1); text-decoration: underline; text-underline-offset: 3px; }

/* the year picker */
.xr-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; padding: 8px; border: 1px solid var(--h-line); border-radius: var(--h-pill); background: var(--h-panel); width: max-content; max-width: 100%; }
html body .xr-years button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--h-pill); background: transparent; color: var(--h-text-2); font: 600 .95rem/1 var(--h-sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
html body .xr-years button:hover { color: var(--h-text); border-color: var(--h-line); }
html body .xr-years button[aria-selected="true"] { background: var(--h-gold-grad); color: var(--h-on-gold); }
html body .xr-years button:focus-visible { outline: 2px solid var(--h-gold-1); outline-offset: 2px; }

/* one year */
.xr-year[hidden] { display: none !important; }
.xr-year { animation: xr-in .45s cubic-bezier(.25,1,.5,1); }
@keyframes xr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xr-year { animation: none; } }
.xr-year-head { margin: 18px 0 10px; }
html body .xr-year-head h2 { margin: 0 0 4px; font: 600 1.5rem/1.25 var(--h-sans) !important; color: var(--h-text) !important; }
.xr-year-head p { margin: 0; color: var(--h-text-2); }
.xr-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 0 0 8px; }
html body .xr-doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(242,191,94,.35); border-radius: 14px; background: linear-gradient(130deg, rgba(242,191,94,.10), var(--h-panel) 70%); color: var(--h-text); text-decoration: none; transition: border-color .2s, transform .2s; }
html body .xr-doc:hover { border-color: rgba(242,191,94,.7); transform: translateY(-1px); }
.xr-doc > svg:first-child { flex: none; width: 24px; height: 24px; color: var(--h-gold-2); }
.xr-doc > svg:last-child { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--h-gold-1); opacity: .8; }
.xr-doc span { display: grid; gap: 2px; min-width: 0; }
.xr-doc b { font: 600 1rem/1.25 var(--h-sans); }
.xr-doc small { font-size: .82rem; color: var(--h-text-2); }
.xr-docs-note { margin: 0 0 8px; max-width: 72ch; font-size: .92rem; color: var(--h-text-2); line-height: 1.55; }

/* one question */
.xr-qs { display: grid; gap: 14px; margin-top: 12px; }
.xr-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 22px; align-items: start; margin: 0 !important; }
.xr-q-head { display: flex; gap: 14px; align-items: flex-start; }
.xr-num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(242,191,94,.45); color: var(--h-gold-1); font: 700 1.25rem/1 var(--h-sans); }
.xr-q-text { display: grid; gap: 4px; min-width: 0; }
.xr-q-text p { margin: 0; }
.xr-kind { font: 700 .7rem/1.2 var(--h-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--h-gold-2); }
html body .xr-q-text h3 { margin: 0; font: 600 1.1rem/1.35 var(--h-sans) !important; color: var(--h-text) !important; }
.xr-units { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px !important; }
html body .xr-units a { padding: 3px 10px; border-radius: var(--h-pill); border: 1px solid color-mix(in srgb, var(--unit) 45%, transparent); background: color-mix(in srgb, var(--unit) 12%, transparent); color: var(--unit); font: 600 .74rem/1.4 var(--h-sans); text-decoration: none; }
html body .xr-units a:hover { background: color-mix(in srgb, var(--unit) 22%, transparent); }
.xr-vids { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 12px; }
.xr-card .hw-meta { gap: 4px; padding: 10px 14px 12px; }
.xr-card .hw-playicon { width: 48px; height: 48px; }
.xr-card .hw-playicon svg { width: 24px; height: 24px; }
.xr-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font: 600 .76rem/1.4 var(--h-sans); }
/* the card title is for screen readers and the player's title; the teacher chip says it visually */
.xr-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xr-foot { margin: 18px 0 0; font-size: .88rem; color: var(--h-muted); }
.xr-link { margin: 0 0 18px !important; }

@media (max-width: 980px) {
  .xr-q { grid-template-columns: 1fr; }
  .xr-vids { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
}
@media (max-width: 760px) {
  .xr-years { width: auto; border-radius: 18px; }
  html body .xr-years button { flex: 1 1 22%; padding: 0 8px; }
  .xr-num { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 11px; }
  .xr-vids { grid-template-columns: 1fr; }
}
