/* Static paper page with Google Sans and Noto Sans. */
:root {
  color-scheme: light;
  --text: #4a4a4a;
  --heading: #363636;
  --muted: #666;
  --line: #ddd;
  --piano: #3169ad;
  --speech: #b86a1f;
  font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: white;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.6; }
main { width: calc(100% - 48px); max-width: 1000px; margin: 48px auto 64px; }
a { color: #1766ad; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--heading); }
h1, .authors { font-family: 'Google Sans', Arial, Helvetica, sans-serif; }
p + p { margin-top: 14px; }
h1 { font-size: 42px; line-height: 1.3; font-weight: 400; text-wrap: balance; }
h2 { font-size: 25px; font-weight: 500; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
sup { font-size: .7em; line-height: 0; }
button, input { font: inherit; }
button { border: 1px solid #bbb; border-radius: 3px; padding: 4px 12px; background: #f7f7f7; color: #222; font-size: 14px; cursor: pointer; }
button:hover:not(:disabled) { background: #eee; }
button:disabled { opacity: .45; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--piano); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.paper-header { text-align: left; }
.authors { margin-top: 24px; font-size: 20px; line-height: 1.8; }
.authors span { display: inline-block; }
.affiliations { margin-top: 8px; font-size: 16px; }
.affiliations span { display: inline-block; margin-right: 16px; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin-top: 24px; }
.resource-links a, .resource-links button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border: 1px solid #333; border-radius: 4px; background: #333; color: white; font-size: 16px; text-decoration: none; line-height: 1.6; }
.resource-links a:hover { background: #555; border-color: #555; }
.resource-links button:disabled { opacity: .5; }
.resource-links img, .resource-links svg { display: block; width: 20px; height: 20px; }
.resource-links svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.abstract { max-width: 860px; margin: 38px auto 0; }
.abstract h2 { text-align: center; margin-bottom: 17px; }
.abstract p { text-align: justify; }
main > section { margin-top: 42px; }
main > section > h2 { padding-bottom: 9px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.overview-figure { width: 100%; height: auto; display: block; }
#overview > figure + p { margin-top: 20px; }
figcaption { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 12px 0 20px; }
.example-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 22px 0; }
.example-nav span { font-size: 13px; color: var(--muted); min-width: 112px; text-align: center; }
#question { margin: 20px 0 14px; }
audio { display: block; width: 100%; max-width: 640px; margin: 14px 0; }
fieldset { border: 0; padding: 0; margin: 18px 0; }
.choice { display: flex; align-items: baseline; gap: 10px; padding: 7px 8px; cursor: pointer; }
.choice input { margin: 0; accent-color: var(--piano); }
.choice.correct { background: #edf5ed; }
#answer { margin-top: 15px; }
#reference-answer { font-weight: bold; }
#selection-feedback { margin-top: 4px; }
.error:not(:empty), #dataset-error:not(:empty) { color: #a33030; margin: 12px 0; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.citation-box { position: relative; }
.citation-code { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 3px; background: #fafbfc; color: var(--text); font-size: 14px; line-height: 1.6; overflow: auto; scrollbar-width: thin; }
#copy-citation { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 0; border-radius: 5px; background: #eee; color: var(--text); font-size: 12px; }
#copy-citation:hover { background: #e2e2e2; }
#copy-citation.copied { background: #e2e2e2; color: var(--heading); }
.dataset-viewer { width: 100%; }
.video-panel { position: relative; aspect-ratio: 16 / 9; background: #f1f2f4; overflow: hidden; border: 1px solid var(--line); }
.video-panel iframe, #youtube-player { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.transport { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-top: 0; padding: 14px; background: #fafbfc; }
.transport-action { display: flex; flex-direction: column; align-items: center; flex: 0 0 42px; gap: 5px; }
.play-button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; padding: 0; }
.play-icon { display: block; width: 10px; height: 12px; position: relative; }
.play-icon::before { content: ''; display: block; position: absolute; left: 1px; top: 1px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.play-button.is-playing .play-icon::before { border: 0; width: 3px; height: 10px; background: currentColor; box-shadow: 5px 0 currentColor; }
.time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.transport-timeline { min-width: 0; flex: 1; }
.activity-overview { display: grid; grid-template-columns: 46px minmax(0, 1fr) 74px; grid-template-rows: 24px 24px; gap: 6px 10px; align-items: center; }
.activity-name { font-size: 11px; }
.speech-activity-name { grid-column: 1; grid-row: 1; color: var(--speech); }
.piano-activity-name { grid-column: 1; grid-row: 2; color: var(--piano); }
.activity-map-wrap { position: relative; grid-column: 2; grid-row: 1 / 3; height: 54px; }
#activity-map, .activity-seek { position: absolute; inset: 0; width: 100%; height: 54px; display: block; margin: 0; }
.activity-seek { appearance: none; opacity: .001; cursor: crosshair; touch-action: none; }
.activity-seek::-webkit-slider-runnable-track { height: 54px; }
.activity-seek::-webkit-slider-thumb { appearance: none; height: 54px; width: 1px; }
.activity-seek::-moz-range-track { height: 54px; }
.activity-seek::-moz-range-thumb { height: 54px; width: 1px; border: 0; }
.activity-overview:has(input:focus-visible) { outline: 2px solid var(--piano); outline-offset: 3px; }
.activity-rate { font-size: 10px; color: var(--muted); white-space: nowrap; text-align: right; }
.speech-activity-rate { grid-column: 3; grid-row: 1; }
.piano-activity-rate { grid-column: 3; grid-row: 2; }
.timeline-scale { display: grid; grid-template-columns: 46px minmax(0, 1fr) 74px; gap: 10px; }
.timeline-scale-range { display: flex; justify-content: space-between; grid-column: 2; font-size: 10px; color: var(--muted); margin-top: 2px; }
.timeline-panel { border: 1px solid var(--line); margin-top: 12px; }
.panel-header { border-bottom: 1px solid var(--line); padding: 8px 12px; background: #fafbfc; }
.panel-header h3 { font-size: 12px; letter-spacing: 0; font-weight: normal; margin: 0; }
.speech-panel h3 { color: var(--speech); }
.piano-panel h3 { color: var(--piano); }
.track-label { display: none; }
.caption-readout { min-height: 72px; padding: 15px 18px; text-align: center; font-size: 14px; color: var(--muted); }
.current-word { color: var(--text); font-weight: bold; }
#piano-roll { display: block; width: 100%; height: 175px; background: #fafbfc; }
#piano-keyboard { display: block; width: 100%; height: 60px; border-top: 1px solid var(--line); }
.piano-pedal { display: flex; align-items: center; justify-content: center; gap: 6px; height: 25px; background: #fafbfc; color: var(--muted); font-size: 10px; }
.pedal-light { width: 5px; height: 5px; border-radius: 50%; background: #aaa; }
.piano-pedal.active { background: #e7eff8; color: #245789; }
.piano-pedal.active .pedal-light { background: var(--piano); }
.sample-meta { margin-top: 12px; }
.sample-meta { font-size: 12px; }
.sample-meta p { color: var(--muted); font-size: 11px; margin-top: 3px; }

.video-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; width: 100%; height: 100%; gap: 12px; padding: 20px; color: var(--muted); font-size: 13px; }
.sample-meta a { font-size: 12px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { width: calc(100% - 36px); margin-top: 28px; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .authors { font-size: 16px; margin-top: 18px; }
  .affiliations { font-size: 13px; }
  .affiliations span { display: block; margin: 3px 0; }
  .abstract p { text-align: left; }
  .resource-links { gap: 8px; }
  .resource-links a, .resource-links button { padding: 5px 11px; font-size: 14px; }
  .transport { padding: 10px 8px; gap: 8px; }
  .transport-action { flex-basis: 32px; }
  .activity-overview, .timeline-scale { grid-template-columns: 36px minmax(0, 1fr); gap-inline: 5px; }
  .activity-rate { display: none; }
  .activity-name { font-size: 10px; }
  #piano-roll { height: 150px; }
  #piano-keyboard { height: 50px; }
  .caption-readout { font-size: 12px; }
}
