/* Shared additions to the two existing Aksarium reading sequences. */
#stage { height: 100dvh; }
main { min-height: 0; }
.device-beat { padding: 12px 0; }
.device-beat [hidden] { display: none !important; }
.device-beat a { color: var(--gold-bright); text-underline-offset: .2em; }
.device-beat .btn:not(.ghost) { color: #14100a; }
.device-beat .evidence-intro { font-size: 18px; line-height: 1.55; color: var(--ink-body); max-width: 860px; margin-bottom: 18px; }
.evidence-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.evidence-actions .chipbtn { font-family: var(--serif); font-size: 16px; min-height: 44px; }
.evidence-actions .chipbtn[aria-pressed="true"] { color: var(--gold-bright); border-color: var(--gold); background: rgba(194,145,76,.09); }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.evidence-grid > * { min-width: 0; }
.evidence-portrait { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
.evidence-kicker { color: var(--gold-dull); font-size: 14px; margin-bottom: 12px; }
.evidence-small, .evidence-source { color: var(--ink-muted); font-size: 14px; line-height: 1.55; margin-top: 12px; }
.evidence-link { display: inline-block; margin-top: 14px; font-size: 16px; line-height: 1.5; }
.evidence-note { min-height: 190px; }
.device-beat .noteblock p { font-size: 17px; }
.device-beat .evidence-subhead { margin-top: 24px; }
.document-sample { padding: 22px; border: 1px solid var(--hairline-strong); background: var(--panel); }
.sample-filename { font: 15px/1.4 ui-monospace, monospace; color: var(--ink-body); overflow-wrap: anywhere; margin-bottom: 14px; }
.sample-paper { padding: 24px; background: #e8e5dc; color: #272c2a; border: 1px solid #bcb8ae; }
.sample-paper h3 { font-size: 25px; font-weight: normal; margin-bottom: 22px; }
.sample-paper p { font-size: 19px; line-height: 1.65; }
.byte-comparison { border: 1px solid var(--hairline-strong); margin-top: 16px; padding: 18px; }
.byte-comparison > div + div { margin-top: 14px; }
.byte-comparison span { display: block; font-size: 15px; color: var(--gold-dull); margin-bottom: 6px; }
.byte-comparison code { display: block; font: 14px/1.7 ui-monospace, monospace; overflow-wrap: anywhere; color: var(--ink-body); }
.byte-comparison mark { color: #17140d; background: var(--gold-bright); padding: 2px; }
.mechanism-list { margin-top: 24px; }
.mechanism-list > div { display: flex; gap: 22px; border-top: 1px solid var(--hairline-strong); padding: 18px 0; }
.mechanism-number { color: var(--gold-dull); font-size: 18px; padding-top: 4px; }
.mechanism-list h3 { font-size: 23px; font-weight: normal; color: var(--ink-head); margin-bottom: 6px; }
.mechanism-list p { color: var(--ink-body); font-size: 18px; line-height: 1.55; max-width: 860px; }
.evidence-image { position: relative; border: 1px solid var(--hairline-strong); background: var(--panel); }
.evidence-image img, .keyboard-frames img, .evidence-details img { display: block; width: 100%; height: auto; }
.evidence-image img { min-height: 180px; }
.evidence-marker { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.evidence-marker::before { content: ''; position: absolute; width: 27px; height: 27px; border: 1px solid var(--gold-bright); background: rgba(7,13,11,.94); box-shadow: 0 0 12px rgba(0,0,0,.65); }
.evidence-marker::after { content: ''; position: relative; width: 10px; height: 10px; background: var(--gold-bright); transform: rotate(45deg); }
.evidence-marker[aria-pressed="true"]::after { background: var(--ink-head); }
.evidence-marker[aria-pressed="true"]::before { border-color: var(--ink-head); }
.evidence-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.evidence-label { min-height: 44px; padding: 8px 12px; border: 1px solid var(--hairline-strong); background: var(--panel); color: var(--ink-head); text-align: left; cursor: pointer; font-family: var(--kr); font-size: 16px; }
.evidence-label[aria-pressed="true"] { border-color: var(--gold); background: rgba(194,145,76,.09); }
.evidence-gloss { display: none; color: var(--gold-dull); font-family: var(--serif); font-size: 14px; margin-top: 4px; }
body.glosson .evidence-gloss { display: block; }
.evidence-note .evidence-ko { display: block; font: 25px/1.5 var(--kr); color: var(--ink-head); margin-bottom: 6px; }
.evidence-note .evidence-en { color: var(--gold-bright); font-size: 20px; margin-bottom: 12px; }
.evidence-details { border-top: 1px solid var(--hairline-strong); margin-top: 18px; padding-top: 14px; color: var(--ink-body); }
.evidence-details summary { cursor: pointer; font-size: 16px; line-height: 1.5; min-height: 44px; color: var(--gold-dull); }
.evidence-details p { font-size: 16px; line-height: 1.6; margin: 12px 0; }
.evidence-details img { max-width: 300px; }
.capture-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 8px; margin: 22px 0; }
.capture-times li { padding: 16px 5px; border-block: 1px solid var(--hairline-strong); text-align: center; color: var(--gold-bright); }
.capture-times time { font-size: clamp(20px, 2.8vw, 30px); font-variant-numeric: tabular-nums; }
.keyboard-frames { display: grid; gap: 18px; }
.keyboard-frames figcaption { color: var(--ink-muted); font-size: 15px; line-height: 1.5; margin-top: 8px; }
.keyboard-frames img { border: 1px solid var(--hairline-strong); }
.deck-controls { display: flex; align-items: center; gap: 10px; }
.deck-controls button { min-width: 44px; min-height: 44px; padding: 8px 14px; color: var(--gold-bright); background: var(--panel); border: 1px solid var(--hairline-strong); font: 15px var(--serif); cursor: pointer; }
.deck-controls button:disabled { opacity: .35; cursor: default; }
.device-beat button:focus-visible, .device-beat a:focus-visible, .device-beat summary:focus-visible, .deck-controls button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
footer { padding: 8px 16px; flex-wrap: wrap; gap: 10px 24px; }
#dots { display: flex; gap: 10px; align-items: center; }
.navhint { display: none; }
@media (max-width: 900px) {
  .evidence-grid, .evidence-portrait { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .evidence-portrait figure { width: min(100%, 520px); margin-inline: auto; }
  .evidence-note { min-height: 0; }
}
@media (max-width: 600px) {
  header { padding: 12px 18px; gap: 10px; }
  header .brand { flex-wrap: wrap; gap: 8px 12px; }
  header .crumb { width: 100%; }
  header .modtag { display: none; }
  main { padding: 12px 18px; }
  .simbanner { font-size: 12px; letter-spacing: 0; line-height: 1.4; }
  .evidence-actions { gap: 8px; }
  .evidence-actions .chipbtn { padding: 10px 12px; }
  .sample-paper { padding: 18px; }
  footer { gap: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
