:root {
  color-scheme:light;
  font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;
  color:#182b46;
  background:#f3f7fd;
  --blue:#1662d4;
  --border:#d8e4f4;
}
* { box-sizing:border-box; }
body { margin:0; }
a { color:#1358bb; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid #1566d6; outline-offset:3px; }
.frame { width:min(100% - 2.5rem, 86rem); margin-inline:auto; }
.site-header { background:#fff; border-bottom:1px solid var(--border); }
.header-inner { display:flex; justify-content:space-between; align-items:center; gap:1rem; min-height:3.5rem; }
.brand,.board { text-decoration:none; font-weight:700; }
.brand { color:#243b5e; }
.board { white-space:nowrap; }
.intro { padding:1.85rem 0 1.4rem; }
.context { margin:0 0 .45rem; color:#1358bb; font-size:.93rem; font-weight:800; }
h1 { font-size:clamp(1.6rem,4vw,2.65rem); line-height:1.18; margin:0; letter-spacing:.015em; }
.details { display:flex; flex-wrap:wrap; gap:.35rem 1.25rem; margin:.75rem 0 0; color:#435b79; }
.reader { display:grid; grid-template-columns:minmax(0,1fr) 17rem; gap:1rem; align-items:start; }
.viewer,.contents,.transcript { background:#fff; border:1px solid var(--border); border-radius:.8rem; }
.viewer { overflow:hidden; }
#slide-image { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; background:white; }
.controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; padding:.7rem; border-top:1px solid var(--border); }
.controls button { background:#fff; border:1px solid #a9c5e9; border-radius:.45rem; padding:.55rem .7rem; font:inherit; font-weight:700; color:#164e9d; cursor:pointer; }
.controls button:disabled { color:#56657b; border-color:#dce4ef; cursor:default; }
.controls button:not(:disabled):hover { background:#eaf3ff; }
.page { text-align:center; flex:1 0 min(12rem,45%); }
.page span,.page strong { display:block; }
.page span { color:#49617c; font-size:.83rem; }
.contents { padding:.7rem; }
.contents h2 { margin:.3rem .35rem .45rem; font-size:1rem; }
.contents ol { list-style:none; margin:0; padding:0; }
.contents a { display:flex; gap:.65rem; padding:.45rem .48rem; border-radius:.4rem; text-decoration:none; color:#243b5e; line-height:1.3; }
.contents a span { color:#476180; font-variant-numeric:tabular-nums; }
.contents a:hover,.contents a[aria-current] { background:#e9f3ff; color:#114b99; }
.contents a[aria-current] { font-weight:700; }
.transcript { padding:.75rem 1rem; margin-top:1rem; }
summary { cursor:pointer; font-weight:750; }
.transcript p { margin:.25em 0 .8em; line-height:1.6; }
.site-footer { padding:1.3rem 0; color:#4b627e; }
.viewer:fullscreen { display:grid; grid-template-rows:minmax(0,1fr) auto; align-items:center; background:#121b2a; border:0; border-radius:0; }
.viewer:fullscreen #slide-image { height:100%; min-height:0; background:transparent; }
.viewer:fullscreen .controls { background:#fff; }
@media(max-width:900px) {
  .reader { grid-template-columns:1fr; }
  .contents ol { display:grid; grid-template-columns:repeat(auto-fit,minmax(15rem,1fr)); }
}
@media(max-width:520px) {
  .frame { width:calc(100% - 1.25rem); }
  .brand { font-size:.83rem; }
  .board { font-size:.84rem; }
  .intro { padding:1.2rem 0; }
  .page { order:-1; flex-basis:100%; }
  .controls button { font-size:.86rem; }
  .contents ol { grid-template-columns:1fr; }
}
