/* Schema-specific media and accessibility additions to the unmodified MaxRL template. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid #ab1727; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 10px 18px; color: #fff; background: #1f2937; }
.skip-link:focus { top: 12px; }
.motivation-question { margin: 1.5rem 0 0; border-left-color: #C41230; text-align: left; }
.motivation-question p { margin: 0; font-weight: 600; color: #C41230; }
.method-summary { margin-top: 1.5rem; }
.method-summary li { margin-bottom: .55rem; line-height: 1.75; }
.paper-details { margin-top: 1.5rem; border-top: 1px solid var(--border-light); padding-top: 1rem; }
.paper-details summary { cursor: pointer; color: #ab1727; font-weight: 500; }
.paper-details[open] summary { margin-bottom: 1rem; }
.paper-details .prose p { margin-bottom: 1em; }
.paper-ablation-figure { max-width: 360px; margin: 1.8rem auto 1rem; }
.paper-ablation-figure img { display: block; width: 100%; height: auto; }
.ablation-caption { text-align: left; }
.ablation-caption p { margin: .6rem 0; line-height: 1.7; }
.case-study { border-top: 1px solid #e5e7eb; padding-top: 1.75rem; margin-top: 2rem; }
.case-studies > h4 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 1.5rem; }
.case-studies > .case-study:first-of-type { border-top: 0; padding-top: .5rem; margin-top: 0; }
.case-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 1.25rem; }
.case-title { min-width: 0; }
.case-title h5 { color: #1f2937; font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin: 0; }
.case-game { color: #6b7280; font-size: .85rem; margin: 3px 0 0; }
.case-toggle { cursor: pointer; flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; padding: 7px; border: 1px solid #9ca3af; border-radius: 50%; background: #fff; color: #4b5563; }
.case-toggle:hover { color: #1f2937; border-color: #4b5563; background: #f9fafb; }
.case-toggle svg { display: block; width: 18px; height: 18px; }
.case-toggle[data-paused="false"] .case-icon-play,
.case-toggle[data-paused="true"] .case-icon-pause { display: none; }
.case-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 3.03%; margin-bottom: .6rem; font-family: 'Castoro', Georgia, serif; font-size: 1.1rem; font-weight: 400; line-height: 1.5; text-align: center; color: #1f2937; }
.case-media { margin: 0; }
.case-media video { display: block; width: 100%; height: auto; aspect-ratio: 2376 / 1152; border-radius: 0; background: #fff; }
.case-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 3.03%; margin: .5rem 0 0; text-align: center; color: #6b7280; font-family: 'Castoro', Georgia, serif; font-size: .88rem; font-variant-numeric: tabular-nums; }
.case-counts [data-complete="true"] { color: #1f2937; }
.case-observation { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 112px; padding: 12px 0; }
.case-cue { flex: 1; margin: 0; font-family: 'Castoro', Georgia, serif; font-size: 1rem; line-height: 1.55; color: #374151; }
.case-evidence { display: flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.case-evidence[hidden] { display: none; }
.case-evidence figure { margin: 0; }
.case-evidence img { display: block; width: 60px; height: 60px; object-fit: contain; image-rendering: pixelated; margin: 0 auto; }
.case-evidence figcaption { max-width: 120px; margin: 5px 0 0; font-family: 'Castoro', Georgia, serif; font-size: .75rem; color: #6b7280; line-height: 1.3; }
.case-evidence .case-metric { display: block; font-family: 'Castoro', Georgia, serif; font-size: 1.6rem; line-height: 1.5; color: #1f2937; }
.case-caption strong { font-weight: 600; color: #4b5563; }
.case-caption { color: #6b7280; font-size: .9rem; line-height: 1.75; margin: .75rem 0 0; }
.video-tabs { display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid #d1d5db; margin: 1.5rem 0; }
#videos .video-tabs button, #videos .video-toolbar, #videos .video-toolbar select, #videos .video-caption { font-family: 'Castoro', Georgia, serif; font-weight: 400; }
.video-tabs button { cursor: pointer; padding: 12px 22px; border: 0; border-bottom: 2px solid transparent; color: #6b7280; background: transparent; }
.video-tabs button[aria-selected="true"] { color: #ab1727; border-bottom-color: #ab1727; }
.video-tabs button:hover { color: #ab1727; }
.video-panel[hidden] { display: none; }
.video-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; color: #6b7280; font-size: .9rem; }
.video-toolbar select { margin-left: 8px; padding: 7px 10px; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 5px; max-width: 100%; }
video { width: 100%; aspect-ratio: 16/9; display: block; background: #101318; border-radius: 6px; }
#videos video::-webkit-media-controls-current-time-display,
#videos video::-webkit-media-controls-time-remaining-display { display: none; }
.video-caption { margin-top: 1rem; color: #6b7280; font-size: .9rem; line-height: 1.7; text-align: center; }
#code-link[aria-disabled="true"] { cursor: default; }
.bibtex-box { padding: 0; overflow: hidden; }
.bibtex-toolbar { display: flex; justify-content: flex-end; padding: .75rem 1.25rem 0; }
.citation-copy { cursor: pointer; border: 1px solid #64748b; border-radius: 6px; background: transparent; color: #e5e7eb; padding: 6px 12px; font-size: .8rem; transition: background .15s, border-color .15s; }
.citation-copy:hover { background: #4b5563; border-color: #9ca3af; }
.bibtex-box pre { padding: .75rem 1.25rem 1.25rem; white-space: pre; overflow-wrap: normal; }
.bibtex-box code { font-size: .8rem; }
.zoomable { cursor: zoom-in; }
.figure-dialog { width: min(1440px, 95vw); max-height: 94vh; padding: 48px 20px 20px; border: 0; border-radius: 8px; }
.figure-dialog::backdrop { background: rgb(0 0 0 / 70%); }
.figure-dialog img { display: block; max-height: 80vh; width: 100%; object-fit: contain; }
.dialog-close { position: absolute; top: 10px; right: 12px; cursor: pointer; border: 1px solid #d1d5db; border-radius: 4px; padding: 4px 12px; color: #374151; background: #f9fafb; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
footer.footer { background: #fff; color: #6b7280; }
footer.footer a { color: #ab1727; }
footer.footer a:hover { color: #801020; }
.footer-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; margin-bottom: 1.5rem; }
.footer-logo { display: flex; align-items: center; justify-content: center; height: 100px; border-radius: 4px; overflow: hidden; }
.footer-logo-wordmark { width: 232px; padding: 16px; background: #fff; }
footer.footer .footer-logos img { display: block; height: auto; max-height: 100%; width: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .bibtex-box { padding: 0; }
  .bibtex-toolbar { padding: .75rem 1rem 0; }
  .bibtex-box pre { padding: .75rem 1rem 1rem; }
  .bibtex-box code { font-size: .7rem; }
  .footer-logos { gap: 16px; }
  .footer-logo { height: 80px; }
  .footer-logo-wordmark { width: 200px; padding: 12px; }
  footer.footer .footer-logos img { height: auto !important; }
  .author-break { display: none; }
  .video-tabs { gap: 0; }
  .video-tabs button { padding: 10px 13px; font-size: .9rem; }
  .video-toolbar { flex-direction: column; align-items: flex-start; }
  .video-toolbar label { display: flex; align-items: center; width: 100%; }
  .video-toolbar select { min-width: 0; flex: 1; }
  .case-heading { gap: 8px; }
  .case-studies > h4 { font-size: 1.35rem; }
  .case-title h5 { font-size: 1rem; }
  .case-labels { font-size: .9rem; }
  .case-counts { font-size: .75rem; }
  .case-observation { min-height: 160px; gap: 12px; }
  .case-cue { font-size: .87rem; }
  .case-evidence { gap: 10px; }
  .case-evidence img { width: 42px; height: 42px; }
  .case-evidence figcaption { max-width: 64px; font-size: .66rem; }
  .case-evidence .case-metric { font-size: 1.2rem; }
  .case-caption { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
