:root {
  --ink:#172231;
  --muted:#596775;
  --paper:#fbfcfd;
  --line:#d8e0e7;
  --blue:#075985;
  --blue-soft:#eaf6fb;
  --red:#9f1239;
  --red-soft:#fff1f2;
  --gold:#9a6700;
  --gold-soft:#fffbeb;
}

* { box-sizing:border-box; }
html { scroll-padding-top:72px; }
body {
  margin:0;
  background:#eef3f6;
  color:var(--ink);
  font:17px/1.72 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,Arial,"Noto Sans TC",sans-serif;
}

.reader-shell {
  max-width:880px;
  margin:0 auto;
  padding:22px 28px 72px;
  background:var(--paper);
  min-height:100vh;
}

.reader-nav {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:6px 16px;
  margin-bottom:10px;
  font-size:.86rem;
  font-weight:750;
}
.reader-nav a { color:var(--blue); }

.day-nav {
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin:0 -8px 14px;
  padding:8px;
  background:var(--paper);
  background:color-mix(in srgb,var(--paper) 94%,transparent);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.day-nav a {
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.3em;
  padding:7px;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--blue);
  background:white;
  text-decoration:none;
  font-size:.8rem;
  font-weight:800;
  text-align:center;
}
.day-nav a[aria-current="page"] {
  color:white;
  background:var(--blue);
  border-color:var(--blue);
}

.reader-header {
  position:relative;
  border-bottom:2px solid var(--ink);
  padding:0 0 16px;
  margin-bottom:18px;
}
.eyebrow {
  color:var(--blue);
  font-weight:800;
  letter-spacing:.05em;
  margin:0 72px 4px 0;
  font-size:.76rem;
}
h1 {
  max-width:46rem;
  font-size:clamp(2rem,6vw,3.3rem);
  line-height:1.1;
  letter-spacing:-.04em;
  margin:.1em 72px .25em 0;
}
h2 { font-size:1.48rem; line-height:1.25; margin:0 0 .45rem; }
h2 span { color:var(--muted); font-size:.86rem; font-weight:500; }
.lede { font-size:1.08rem; max-width:46rem; color:#354453; margin:0; }

.reader-controls {
  position:absolute;
  top:0;
  right:0;
}
button {
  min-height:44px;
  padding:8px 12px;
  border:1px solid var(--blue);
  background:white;
  color:var(--blue);
  border-radius:7px;
  font:inherit;
  font-size:.82rem;
  font-weight:700;
  cursor:pointer;
}
button:hover,
button:focus-visible {
  background:var(--blue-soft);
  outline:3px solid #9bd7f1;
  outline-offset:2px;
}

.course-plan {
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:24px;
}
.course-plan-note {
  position:absolute;
  top:-17px;
  left:0;
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  font-weight:750;
  line-height:1.25;
}
.sprint-day {
  min-width:0;
  padding:7px 8px 8px;
  border-top:3px solid var(--line);
  background:#f3f6f8;
  font-size:.77rem;
}
.sprint-day[data-current="true"] {
  border-top-color:var(--blue);
  background:var(--blue-soft);
}
.sprint-heading { display:flex; align-items:baseline; gap:5px; line-height:1.2; }
.sprint-label { display:block; }
.sprint-followup { color:var(--muted); font-size:.68rem; }
.sprint-links { display:flex; gap:4px; margin-top:4px; }
.sprint-links a {
  min-height:44px;
  min-width:0;
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:4px;
  border:1px solid #b7d9e8;
  border-radius:5px;
  color:var(--blue);
  background:white;
  font-weight:800;
  line-height:1.1;
  text-decoration:none;
}
.sprint-module { display:block; }
.sprint-duration { display:block; color:var(--muted); font-size:.72rem; font-weight:700; }
.sprint-links a:hover,
.sprint-links a:focus-visible { border-color:var(--blue); outline:2px solid #9bd7f1; }
.sprint-goal { display:block; margin-top:4px; color:var(--muted); line-height:1.35; }

#stage-list > section {
  margin:36px 0 50px;
  scroll-margin-top:72px;
}
.stage-kicker {
  color:var(--blue);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.72rem;
  margin:0 0 3px;
}
.spine-label {
  display:inline-block;
  margin:2px 0 5px;
  padding:2px 7px;
  border-radius:999px;
  color:white;
  background:var(--blue);
  font-size:.7rem;
  font-weight:850;
  letter-spacing:.06em;
}
.decision-spine {
  margin:0;
  max-width:46rem;
  padding:0 0 0 13px;
  border-left:4px solid #69b4d3;
  font-size:1.08rem;
  font-weight:650;
  line-height:1.62;
}

.core-points { display:grid; grid-template-columns:1fr; gap:8px; margin-top:16px; }
.core-points article { padding:10px 13px; border-left:4px solid #b7d9e8; background:#f8fbfc; }
.core-points article h3 { margin:0 0 4px; font-size:1rem; line-height:1.35; }
.core-points article p { margin:0; }

.study-sections {
  max-width:46rem;
  margin-top:24px;
}
.study-sections-kicker {
  margin:0 0 6px;
  color:var(--muted);
  font-size:.73rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.study-section {
  margin:0;
  padding:22px 0 20px;
  border-top:1px solid var(--line);
  scroll-margin-top:72px;
}
.study-section:first-of-type { padding-top:14px; }
.study-section h3 {
  margin:0 0 10px;
  font-size:1.25rem;
  line-height:1.38;
  letter-spacing:-.01em;
}
.study-paragraph {
  margin:.72em 0;
  font-size:1.04rem;
  line-height:1.84;
  overflow-wrap:anywhere;
}
.study-list {
  margin:10px 0 4px;
  padding-left:1.55rem;
}
.study-list-item {
  margin:.62em 0;
  padding-left:.18rem;
  font-size:1.04rem;
  line-height:1.78;
  overflow-wrap:anywhere;
  word-break:normal;
}
.study-list[data-format="algorithm"] > .study-list-item::marker {
  color:var(--blue);
  font-weight:850;
}
.study-list[data-format="comparison"] > .study-list-item::marker {
  color:var(--gold);
}
.study-list[data-format="clinical-trap"] > .study-list-item::marker {
  color:var(--red);
}
.study-section[data-format="algorithm"] {
  padding-left:16px;
  border-left:4px solid var(--blue);
}
.study-section[data-format="algorithm"] h3::before { content:"流程｜"; color:var(--blue); }
.study-section[data-format="comparison"] {
  padding-right:12px;
  padding-left:12px;
  background:linear-gradient(90deg,#f4f8fa,transparent);
}
.study-section[data-format="comparison"] h3::before { content:"比較｜"; color:var(--gold); }
.study-section[data-format="clinical-trap"] {
  padding-right:14px;
  padding-left:14px;
  border-left:4px solid var(--red);
  background:var(--red-soft);
}
.study-section[data-format="clinical-trap"] h3::before { content:"考場陷阱｜"; color:var(--red); }

.numbers-table {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  margin-top:16px;
}
.numbers-table caption { text-align:left; font-weight:800; margin-bottom:6px; }
.numbers-table th,
.numbers-table td {
  padding:10px;
  vertical-align:top;
  text-align:left;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere;
}
.numbers-table th { color:var(--muted); font-size:.82rem; }
.numbers-table th:nth-child(1) { width:34%; }
.numbers-table th:nth-child(2) { width:66%; }

.return-links { margin:16px 0 0; }
.return-links-label { margin:0 0 6px; color:var(--muted); font-size:.82rem; font-weight:750; }
.return-links-list { display:flex; flex-wrap:wrap; gap:7px; }
.return-link {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border:1px solid #b7d9e8;
  border-radius:7px;
  color:var(--blue);
  background:var(--blue-soft);
  font-size:.82rem;
  font-weight:750;
  line-height:1.35;
  text-decoration:none;
}
.return-link:hover,
.return-link:focus-visible { border-color:var(--blue); background:white; }

.retrieval-practice {
  margin:18px 0 0;
  border:1px solid #b7d9e8;
  border-radius:8px;
  padding:11px 13px;
  background:#f7fcfe;
}
.retrieval-practice > summary { cursor:pointer; color:var(--blue); font-weight:800; }
.retrieval-items { display:grid; gap:10px; margin-top:10px; }
.micro-check,
.oral-frame { margin:0; padding:10px 12px; border-left:4px solid #b7d9e8; background:white; }
.retrieval-prompt { margin:0; font-size:1rem; line-height:1.45; }
.micro-answer,
.oral-answer-points { margin:8px 0 0; }
.oral-trap { margin:10px 0 0; padding:9px 11px; border-left:4px solid var(--red); background:var(--red-soft); color:#881337; }

.evidence-details { margin:14px 0 0; color:var(--muted); font-size:.78rem; }
.evidence-details summary { cursor:pointer; font-weight:700; width:max-content; max-width:100%; }
.evidence-details[open] summary { margin-bottom:4px; }
.source-list { margin:.7rem 0 0; padding:0; list-style:none; color:var(--muted); font-size:.82rem; }
.source-list a { color:var(--blue); text-decoration-thickness:1px; }
.source-path { display:block; margin-top:2px; color:inherit; overflow-wrap:anywhere; }

.truth-note { background:#112c3c; color:#f6fbfd; padding:20px; border-radius:10px; }
.truth-note .stage-kicker { color:#9bd7f1; }
.truth-note .spine-label { color:#112c3c; background:#9bd7f1; }
.truth-note .decision-spine { border-left-color:#9bd7f1; }
.truth-note .study-sections-kicker,
.truth-note .source-list { color:#d5e6ee; }
.truth-note .source-list a { color:white; }
.truth-note .study-section { border-top-color:#436070; }
.truth-note .study-section[data-format="algorithm"],
.truth-note .study-section[data-format="comparison"] { color:var(--ink); background:#f4f8fa; }
.truth-note .study-section[data-format="clinical-trap"] { color:var(--ink); }
.truth-note .core-points article,
.truth-note .retrieval-practice { color:var(--ink); }
.disclosure { margin:14px 0 0; padding:12px; border-left:4px solid #f6c453; background:#1d4256; color:#fff; }
.truth-statement { margin-top:18px; }

.deferred { margin:24px 0; background:var(--gold-soft); border:1px solid #f5d68b; border-left:5px solid var(--gold); padding:13px 15px; border-radius:8px; }
.deferred > summary { cursor:pointer; color:#7c5100; font-weight:800; }
.deferred h3 { margin:14px 0 4px; color:#7c5100; font-size:1rem; }
.deep-dives { margin:24px 0; border:1px solid #b7d9e8; background:var(--blue-soft); padding:13px 15px; border-radius:8px; }
.deep-dives > summary { cursor:pointer; color:var(--blue); font-weight:800; }
.deep-dives-list { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.deep-dives-list a { display:block; padding:12px; color:var(--ink); background:white; border:1px solid #b7d9e8; border-radius:7px; text-decoration:none; }
.deep-dives-list strong,
.deep-dives-list span { display:block; }
.deep-dives-list span { margin-top:3px; color:var(--muted); font-size:.86rem; }
.card-appendix { margin:24px 0; border-top:1px solid var(--line); padding-top:16px; }
.card-appendix > summary { cursor:pointer; color:var(--blue); font-weight:800; }
.card-index { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:12px; }
.card-group { margin:0; padding:11px; border:1px solid var(--line); border-radius:7px; background:white; }
.card-group h3 { margin:0 0 8px; font-size:.92rem; }
.card-group a { display:block; color:var(--ink); border-top:1px solid var(--line); padding:8px 0; text-decoration:none; font-size:.87rem; }
.card-group a:hover { color:var(--blue); }
.card-group small { display:block; color:var(--muted); margin-top:3px; }

.course-next-step { margin:30px 0 0; padding:20px; border:1px solid #9bd7f1; border-top:5px solid var(--blue); border-radius:10px; background:var(--blue-soft); }
.course-next-kicker { margin:0 0 4px; color:var(--blue); font-size:.76rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.course-next-step h2 { margin-bottom:7px; }
.course-next-step p:not(.course-next-kicker) { margin:0 0 14px; }
.course-next-link { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:9px 14px; border-radius:7px; background:var(--blue); color:white; font-weight:800; text-decoration:none; }
.course-next-link:hover,
.course-next-link:focus-visible { background:#0c4a6e; outline:3px solid #9bd7f1; outline-offset:2px; }
.load-status { padding:14px; border:1px solid #f0c36a; background:var(--gold-soft); color:#6c4600; font-weight:700; }
.load-status[hidden] { display:none!important; }
.load-status:not([hidden]) { display:block!important; }
.load-status.error { border-color:#fda4af; background:var(--red-soft); color:#881337; }
.retry-button { margin-left:10px; border-color:currentColor; color:inherit; }
[hidden] { display:none!important; }

@media (max-width: 640px) {
  .sprint-goal { display:none; }
  .day-name { display:none; }
  .deep-dives-list,
  .card-index { grid-template-columns:1fr; }
}

@media (max-width: 480px) {
  body { font-size:16px; line-height:1.68; }
  .reader-shell { width:100%; padding:12px 14px 52px; }
  .reader-nav { justify-content:flex-start; gap:3px 12px; margin-bottom:5px; font-size:.75rem; line-height:1.35; }
  .day-nav { margin:0 -6px 6px; padding:6px; gap:5px; }
  .day-nav a { min-height:44px; padding:5px; font-size:.79rem; }
  .reader-header { padding-bottom:7px; margin-bottom:7px; }
  .eyebrow { display:block; margin:0 58px 2px 0; font-size:.62rem; line-height:1.1; letter-spacing:0; }
  .lede { display:none; }
  h1 { margin:0 58px 0 0; font-size:1.55rem; line-height:1.06; }
  h2 { font-size:1.25rem; }
  .lede { font-size:.93rem; line-height:1.5; }
  button { padding:7px 9px; font-size:.75rem; }
  .course-plan { gap:3px; margin-top:12px; }
  .course-plan-note { top:-10px; font-size:.61rem; line-height:1.1; }
  .sprint-day { display:block; padding:3px; font-size:.64rem; }
  .sprint-heading { justify-content:center; gap:3px; min-height:12px; white-space:nowrap; }
  .sprint-followup { font-size:.54rem; }
  .sprint-links { min-width:0; gap:2px; margin-top:2px; }
  .sprint-links a { min-height:44px; padding:2px; font-size:.64rem; }
  .sprint-duration { font-size:.58rem; }
  #stage-list > section { margin:24px 0 38px; scroll-margin-top:66px; }
  .truth-note { margin-top:10px!important; padding:14px; }
  .truth-note > .stage-kicker { display:none; }
  .truth-note > h2 { font-size:1.05rem; margin-bottom:2px; }
  .stage-kicker { margin-bottom:1px; font-size:.66rem; }
  .spine-label { margin:0 0 3px; font-size:.64rem; }
  .decision-spine { padding-left:9px; font-size:.95rem; line-height:1.48; }
  .study-sections { margin-top:14px; }
  .study-sections-kicker { display:none; }
  .study-section { padding:14px 0 12px; }
  .study-section:first-of-type { padding-top:8px; }
  .study-section h3 { margin-bottom:5px; font-size:1.08rem; }
  .study-paragraph { margin:.58em 0; font-size:1rem; line-height:1.76; }
  .study-list { margin:6px 0 2px; padding-left:1.3rem; }
  .study-list-item { margin:.5em 0; padding-left:.1rem; font-size:1rem; line-height:1.72; overflow-wrap:anywhere; }
  .study-section[data-format="algorithm"],
  .study-section[data-format="comparison"],
  .study-section[data-format="clinical-trap"] { padding-right:8px; padding-left:10px; }
  .core-points article { padding:9px 10px; }
  .numbers-table thead { position:absolute; clip:rect(0 0 0 0); width:1px; height:1px; overflow:hidden; }
  .numbers-table,
  .numbers-table tbody,
  .numbers-table tr,
  .numbers-table td { display:block; width:100%; }
  .numbers-table tr { padding:7px 0; border-bottom:1px solid var(--line); }
  .numbers-table td { border:0; padding:3px 0; }
  .numbers-table td::before { content:attr(data-label) ": "; color:var(--muted); font-weight:800; }
}

@media print {
  body { background:white; font-size:10.5pt; }
  .reader-shell { max-width:none; padding:0; }
  .reader-nav,
  .day-nav,
  .no-print,
  .load-status[hidden] { display:none!important; }
  .load-status:not([hidden]) { display:block!important; }
  .reader-header { margin-bottom:12px; }
  #stage-list > section { margin:18px 0; }
  .study-section { break-inside:auto; padding:10px 0; }
  .study-section h3 { break-after:avoid; }
  .study-paragraph { orphans:3; widows:3; }
  .study-list-item { orphans:3; widows:3; }
  .study-section[data-format="clinical-trap"],
  .numbers-table tr,
  .core-points article,
  .retrieval-practice,
  .deep-dives-list a,
  .deferred { break-inside:avoid; }
  .truth-note { color:#111; background:#f1f5f9; border:1px solid #111; }
  .truth-note .study-sections-kicker,
  .truth-note .source-list,
  .truth-note .source-list a { color:#222; }
  .card-appendix { display:none; }
}
