:root {
  --paper: #f8f7f3;
  --ink: #263537;
  --muted: #5f7070;
  --line: #dce3df;
  --teal: #19776e;
  --soft-teal: #edf5f1;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 25px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.75 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
main { max-width: 1120px; margin: 0 auto; padding: 50px 36px 65px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, audio:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sample-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.card-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #b9d5cc; border-radius: 6px; padding: 6px 9px 6px 12px; background: var(--soft-teal); color: #126a62; font-size: 15px; font-weight: 600; box-shadow: 0 1px 3px #173f3312; }
.card-toggle:hover { border-color: #8fbfb0; background: #e3f0ea; }
.card-toggle span { position: relative; display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--teal); color: white; font-size: 0; }
.card-toggle span::before, .card-toggle span::after { content: ""; position: absolute; top: 50%; left: 50%; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); }
.card-toggle span::before { width: 10px; height: 2px; }
.card-toggle span::after { width: 2px; height: 10px; }
.card-toggle[aria-expanded="true"] span::after { display: none; }
.card-toggle[aria-expanded="true"] { border-color: var(--line); background: white; color: var(--teal); font-weight: 500; box-shadow: none; }
.card-toggle[aria-expanded="true"]:hover { background: #f7f9f7; }
.card-toggle[aria-expanded="true"] span { background: #eef2ef; color: var(--muted); }
.seek-surface rect { cursor: pointer; }
.seek-surface rect:hover, .seek-surface rect:focus-visible { stroke: var(--ink); stroke-width: 2; }
.playhead { stroke: #b45537; stroke-width: 2; pointer-events: none; }
.hero { text-align: center; margin-bottom: 54px; }
h1 { font: normal clamp(28px, 3.3vw, 40px)/1.3 var(--serif); letter-spacing: -.6px; margin: 0 auto 22px; max-width: 1030px; }
.authors { font-size: 16px; margin: 7px 0; }
.affiliations { color: var(--muted); font-size: 16px; margin: 7px 0; }
nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; padding: 17px 0; margin-top: 25px; border-block: 1px solid var(--line); font-size: 16px; }
.section { margin-top: 58px; }
h2 { font: normal 32px/1.3 var(--serif); letter-spacing: -.4px; margin: 0 0 18px; }
h3 { font-size: 20px; margin: 22px 0 14px; font-weight: 600; }
h4 { font-size: 16px; margin: 15px 0 10px; font-weight: 600; }
p { margin: 8px 0 16px; }
.section-intro { color: var(--muted); margin: 0 0 25px; }
.interaction-hint { color: var(--muted); font-size: 15px; margin: -10px 0 24px; }
.method-figure { margin: 25px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.method-figure img { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 16px; margin: 22px 0; color: var(--muted); }
.legend span { display: inline-flex; gap: 9px; align-items: center; }
.legend i { display: inline-block; width: 24px; height: 10px; border-radius: 2px; }
.target-key { background: #e4e9e6; border: 1px solid #7d908a; }
.prediction-key { background: var(--teal); }
.dataset-group { margin-top: 34px; }
.dataset-group > h3 { display: flex; align-items: center; gap: 16px; color: #3f615b; font-size: 18px; }
.dataset-group > h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sample { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 24px 30px; margin-bottom: 22px; box-shadow: 0 2px 6px #233f3210; }
.audio-row { display: flex; gap: 20px; align-items: center; padding: 14px 16px; margin: 12px 0 24px; background: #f5f7f5; border-radius: 7px; }
audio { width: 300px; max-width: 100%; height: 38px; flex-shrink: 0; }
.waveform { min-width: 0; flex: 1; height: 44px; display: block; }
.duration { font-size: 16px; color: #435c56; white-space: nowrap; font-variant-numeric: tabular-nums; }
.query-block { margin: 18px 0 0; padding-top: 17px; border-top: 1px solid #edf0ed; }
.query-title { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 20px; font-weight: 500; line-height: 1.6; }
.grounding-query-options { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 2px; }
.grounding-query-option { padding: 6px 12px; border: 1px solid #e1e8e4; border-radius: 5px; background: white; color: var(--ink); font-size: 17px; line-height: 1.5; text-align: left; }
.grounding-query-option:hover { border-color: #9cbeb3; background: #f4f8f6; }
.grounding-query-option[aria-pressed="true"] { border-color: var(--teal); background: var(--soft-teal); color: var(--teal); font-weight: 600; box-shadow: inset 0 0 0 1px var(--teal); }
.timeline { width: 100%; height: 108px; display: block; margin-top: 14px; }
.single-timeline { height: 84px; }
.interval-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.interval-label { flex: 0 0 44px; padding-top: 5px; font-size: 16px; color: #4b625b; }
.interval-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.time-tag { padding: 5px 12px; border: 0; border-radius: 5px; background: color-mix(in srgb, var(--teal) 8%, white); color: var(--teal); font-size: 17px; line-height: 1.6; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-tag:hover { box-shadow: inset 0 0 0 1px currentColor; }
.reference-intervals .time-tag { background: #f0f2f0; color: #445b52; }
.event-block > .interval-tags { margin-top: 10px; }
.category { display: inline-block; font-size: 16px; font-weight: 600; color: var(--teal); background: var(--soft-teal); border-radius: 4px; padding: 4px 10px; margin: 0 0 12px; }
.question { font: normal 25px/1.4 var(--serif); margin: 2px 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 17px; margin-bottom: 20px; }
.choices span { padding: 5px 11px; border: 1px solid #e6ebe7; border-radius: 5px; }
.choices b { margin-right: 7px; font-weight: 600; }
.choices .correct-choice { border-color: #b8d8cc; background: var(--soft-teal); color: #245c54; }
.correct-mark { margin-left: 9px; color: var(--teal); font-style: normal; font-weight: 700; }
.icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.reasoning-flow { list-style: none; padding: 0; margin: 28px 0 24px; }
.flow-step { position: relative; padding: 0 0 22px 52px; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: #d4e1da; left: 17px; top: 36px; bottom: 0; }
.flow-step:last-child { padding-bottom: 0; }
.step-marker { position: absolute; left: 0; top: 0; display: flex; justify-content: center; align-items: center; width: 35px; height: 35px; border: 1px solid #d1e1d8; border-radius: 50%; background: #f0f6f2; color: var(--teal); }
.step-content { min-width: 0; padding: 17px 21px; border: 1px solid #e0e8e2; border-radius: 8px; }
.query-step { background: #f5f9f6; }
.step-content > h4 { color: #3a6156; margin: 0 0 14px; }
.step-content > p { font-size: 18px; line-height: 1.75; margin: 0; }
.query-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 16px; }
.query-tag { display: inline-flex; align-items: center; gap: 9px; background: white; color: var(--teal); border: 1px solid #d9e3dc; border-radius: 6px; padding: 6px 12px; font-size: 20px; }
.query-tag .icon { width: 18px; height: 18px; }
.query-tag > span { overflow-wrap: anywhere; color: var(--ink); }
.event-query { color: var(--ink); }
.event-block { padding-top: 17px; margin-top: 20px; border-top: 1px solid #edf0ed; }
.result-step > .event-block:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.event-name { display: flex; align-items: baseline; gap: 10px; color: var(--teal); font-size: 20px; font-weight: 500; }
.event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--teal); }
.explanation-marker { color: #677369; background: #f6f6f1; border-color: #dfe3d9; }
.explanation-step { background: #f9faf7; border-color: #e1e6db; }
.time-value { font-weight: 600; color: #355f54; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 12px; }
.answer { background: #f4f4f1; border: 1px solid #e4e6df; border-radius: 7px; padding: 16px 20px; }
.answer.grounded { background: var(--soft-teal); border-color: #d2e4d9; }
.answer h4 { font-size: 16px; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
.answer.grounded h4 { color: var(--teal); }
.answer p { font-size: 18px; font-weight: 600; margin: 0; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 10; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 14px; border: 1px solid #b9d5cc; border-radius: 22px; background: white; color: var(--teal); font-size: 15px; font-weight: 600; box-shadow: 0 3px 12px #173f3326; }
.back-to-top:hover { border-color: var(--teal); background: var(--soft-teal); }
.back-to-top span { font-size: 18px; line-height: 1; }
@media (max-width: 650px) {
  main { padding: 28px 18px 40px; }
  h1 { font-size: 28px; }
  h2 { font-size: 29px; }
  nav { gap: 8px 18px; }
  .section { margin-top: 40px; }
  .method-figure { padding: 12px; }
  .sample { padding: 20px 17px; }
  .audio-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  audio { width: 100%; min-width: 0; height: 38px; }
  .waveform { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 30px; }
  .query-title { flex-wrap: wrap; gap: 4px 8px; }
  .interval-row { gap: 8px; }
  .time-tag { padding: 5px 10px; }
  .question { font-size: 23px; }
  .flow-step { padding-left: 34px; padding-bottom: 18px; }
  .step-marker { width: 27px; height: 27px; }
  .step-marker .icon { width: 16px; height: 16px; }
  .flow-step:not(:last-child)::after { left: 13px; top: 28px; }
  .step-content { padding: 14px 12px; }
  .query-tag { padding: 5px 9px; gap: 7px; }
  .answers { grid-template-columns: 1fr; }
  .back-to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  main { max-width: none; padding: 0; }
  nav, audio, .waveform, .card-toggle, .back-to-top, .playhead { display: none; }
  .card-details[hidden] { display: block !important; }
  .sample, .method-figure { break-inside: avoid; box-shadow: none; }
}
