/* 血管外科三日教材 · 考前版
   Tokens and typography reuse vascular-5-day.css so the cram page reads as the
   same book. Generated page markup lives in vascular-3day-cram.html. */

: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:104px; }
body.cram-page {
  margin:0;
  background:#eef3f6;
  color:var(--ink);
  font:17px/1.72 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,Arial,"Noto Sans TC",sans-serif;
}

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

/* --- navigation --- */
.cram-site-nav {
  display:flex;
  flex-wrap:wrap;
  gap:6px 16px;
  margin-bottom:10px;
  font-size:.86rem;
  font-weight:750;
}
.cram-site-nav a { color:var(--blue); }

.cram-module-nav {
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(56px,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);
}
.cram-module-nav a {
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--blue);
  background:white;
  text-decoration:none;
  font-size:.82rem;
  font-weight:800;
}
.cram-module-nav a:hover,
.cram-module-nav a:focus-visible { border-color:var(--blue); background:var(--blue-soft); }

/* --- header --- */
.cram-header {
  border-bottom:2px solid var(--ink);
  padding:0 0 16px;
  margin-bottom:8px;
}
.cram-eyebrow {
  margin:0 0 4px;
  color:var(--blue);
  font-weight:800;
  letter-spacing:.05em;
  font-size:.76rem;
}
.cram-header h1 {
  margin:0 0 8px;
  font-size:1.72rem;
  line-height:1.28;
  letter-spacing:-.015em;
}
.cram-lede {
  margin:0 0 14px;
  max-width:44rem;
  color:var(--muted);
  font-size:1rem;
  line-height:1.75;
}

.cram-plan {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:stretch;
}
.cram-plan-note {
  flex:1 0 100%;
  margin:0 0 2px;
  color:var(--muted);
  font-size:.73rem;
  font-weight:850;
  letter-spacing:.08em;
}
.cram-plan-item {
  flex:1 1 200px;
  display:flex;
  flex-direction:column;
  gap:1px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-left:4px solid var(--blue);
  border-radius:7px;
  background:var(--blue-soft);
  font-size:.9rem;
  font-weight:700;
}
.cram-plan-item strong {
  color:var(--blue);
  font-size:.74rem;
  font-weight:850;
  letter-spacing:.07em;
}
.cram-plan-goal { color:var(--muted); font-size:.82rem; font-weight:600; line-height:1.5; }

/* --- modules & stages --- */
.cram-module {
  margin:34px 0 12px;
  scroll-margin-top:104px;
}
.cram-module-kicker {
  margin:0 0 3px;
  color:var(--blue);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.72rem;
}
.cram-module-title {
  margin:0 0 4px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  font-size:1.34rem;
  line-height:1.38;
  letter-spacing:-.01em;
}

.cram-stage {
  margin:0;
  padding:20px 0 22px;
  border-bottom:1px solid var(--line);
}
.cram-stage:last-child { border-bottom:0; }
.cram-step {
  margin:0 0 3px;
  color:var(--muted);
  font-weight:850;
  letter-spacing:.09em;
  font-size:.72rem;
  text-transform:uppercase;
}
.cram-stage-title {
  margin:0 0 10px;
  font-size:1.18rem;
  line-height:1.4;
  letter-spacing:-.01em;
}

.cram-spine {
  margin:0 0 14px;
  max-width:46rem;
  padding:0 0 0 13px;
  border-left:4px solid #69b4d3;
  font-size:1.06rem;
  font-weight:650;
  line-height:1.66;
  overflow-wrap:anywhere;
}
.cram-spine-label {
  display:inline-block;
  margin:0 0 5px;
  padding:2px 7px;
  border-radius:999px;
  color:white;
  background:var(--blue);
  font-size:.7rem;
  font-weight:850;
  letter-spacing:.06em;
}
.cram-spine-text { display:block; }

.cram-bullets {
  margin:0 0 16px;
  padding-left:1.5rem;
  max-width:46rem;
}
.cram-bullets > li {
  margin:.66em 0;
  padding-left:.2rem;
  font-size:1.03rem;
  line-height:1.86;
  overflow-wrap:anywhere;
  word-break:normal;
}
.cram-bullets > li::marker { color:var(--blue); font-weight:850; }

/* --- numbers table --- */
.cram-table-scroll {
  margin:0 0 16px;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.cram-numbers {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.cram-numbers caption {
  text-align:left;
  font-weight:850;
  font-size:.86rem;
  color:var(--ink);
  margin-bottom:6px;
}
.cram-numbers th,
.cram-numbers td {
  padding:9px 10px;
  vertical-align:top;
  text-align:left;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere;
  font-size:.95rem;
  line-height:1.6;
}
.cram-numbers th { color:var(--muted); font-size:.8rem; font-weight:800; }
.cram-numbers th:nth-child(1) { width:32%; }
.cram-numbers th:nth-child(2) { width:22%; }
.cram-numbers th:nth-child(3) { width:28%; }
.cram-numbers th:nth-child(4) { width:18%; }
.cram-numbers td:nth-child(2) { font-weight:800; }
.cram-numbers td:nth-child(4) { color:var(--muted); font-size:.85rem; }

/* --- traps --- */
.cram-kicker {
  margin:0 0 5px;
  font-size:.73rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.cram-traps {
  margin:0 0 16px;
  padding:10px 14px 4px;
  border-left:4px solid var(--red);
  background:var(--red-soft);
}
.cram-traps .cram-kicker { color:var(--red); }
.cram-traps ul { margin:0 0 8px; padding-left:1.4rem; }
.cram-traps li {
  margin:.44em 0;
  font-size:.98rem;
  line-height:1.72;
  overflow-wrap:anywhere;
}
.cram-traps li::marker { color:var(--red); }

/* --- recall (answers stay visible) --- */
.cram-recall {
  margin:0 0 16px;
  padding:10px 14px;
  border-left:4px solid var(--gold);
  background:var(--gold-soft);
}
.cram-recall .cram-kicker { color:var(--gold); }
.cram-recall-item { margin:.5em 0; }
.cram-recall-q {
  display:block;
  font-weight:750;
  font-size:1rem;
  line-height:1.66;
  overflow-wrap:anywhere;
}
.cram-recall-a {
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.7;
  overflow-wrap:anywhere;
}

/* --- original paragraphs (the only collapsed block) --- */
.cram-original {
  margin:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
}
.cram-original > summary {
  padding:10px 13px;
  color:var(--blue);
  font-size:.88rem;
  font-weight:800;
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
}
.cram-original > summary:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.cram-original > *:not(summary) { margin:0 14px 12px; }
.cram-original p {
  font-size:1rem;
  line-height:1.82;
  overflow-wrap:anywhere;
}
.cram-original-title {
  margin:12px 14px 4px;
  font-size:1rem;
  line-height:1.4;
  color:var(--ink);
}
.cram-original-empty { color:var(--muted); }

/* --- mobile --- */
@media (max-width:600px) {
  body.cram-page { font-size:16px; }
  .cram-shell { padding:14px 14px 56px; }
  .cram-header h1 { font-size:1.42rem; }
  .cram-module-nav { gap:5px; padding:6px; margin:0 -6px 12px; }
  .cram-module-nav a { font-size:.76rem; padding:5px; }
  .cram-plan-item { flex:1 1 100%; }
  .cram-bullets { padding-left:1.25rem; }
  .cram-numbers thead { position:absolute; clip:rect(0 0 0 0); width:1px; height:1px; overflow:hidden; }
  .cram-numbers,
  .cram-numbers tbody,
  .cram-numbers tr,
  .cram-numbers td { display:block; width:100%; }
  .cram-numbers { table-layout:auto; }
  .cram-numbers caption { display:block; width:100%; }
  .cram-numbers tr { padding:7px 0; border-bottom:1px solid var(--line); }
  .cram-numbers td { border:0; padding:3px 0; }
  .cram-numbers td::before { content:attr(data-label) "："; color:var(--muted); font-weight:800; }
  .cram-table-scroll { overflow-x:visible; }
}

/* --- print --- */
@media print {
  body.cram-page { background:white; font-size:10.5pt; }
  .cram-shell { max-width:none; padding:0; }
  .cram-site-nav,
  .cram-module-nav,
  .no-print { display:none!important; }
  .cram-header { margin-bottom:10px; }
  .cram-module { margin:16px 0 8px; }
  .cram-module-title { break-after:avoid; }
  .cram-stage { break-inside:avoid; page-break-inside:avoid; }
  .cram-stage-title { break-after:avoid; }
  .cram-bullets > li,
  .cram-recall-q,
  .cram-recall-a,
  .cram-original p { orphans:3; widows:3; }
  .cram-numbers tr,
  .cram-traps,
  .cram-recall { break-inside:avoid; }
  .cram-table-scroll { overflow-x:visible; }
  .cram-original { border-color:#999; }
  .cram-original > summary { color:#222; }
}
