/* 自然時事・故事版（news-<id>.html）共用樣式
   沿用 nature.css 的色票與元件；每段一個問題，上一段卡住的地方就是下一段的起點。
   所有顏色一律走變數。 */

  :root { --ice: #CFE3E8; --ice-deep: #9EC3CE; --glow: #3E8FD0; --rock: #8C7B66; --early: #E0703A; --late: #4F6FB8; }
  :root[data-theme="dark"] { --ice: #2C4148; --ice-deep: #36535D; --glow: #7CC0F2; --rock: #6D604F; --early: #F2995E; --late: #8DA6E8; }

  .ic-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line-soft); }
  .ic-top .wrap { display: flex; align-items: center; gap: .8rem; min-height: 56px; }
  .ic-brand { font-family: var(--font-read); font-size: 1.1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
  .ic-crumb { color: var(--ink-faint); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
  .ic-top .btn { min-height: 38px; padding: .25rem .8rem; font-size: .85rem; }
  .ic-bar { height: 3px; background: linear-gradient(90deg, var(--butter), var(--pink)); width: 0; transition: width .1s linear; }

  .ic-hero { padding: 2.2rem 0 1.4rem; display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: center; }
  @media (min-width: 880px) { .ic-hero { grid-template-columns: 1.25fr .9fr; padding-top: 3rem; } }
  .ic-hero h1 { margin: .5rem 0 .6rem; font-size: clamp(1.9rem, 4.6vw, 3rem); }
  .ic-tagline { font-family: var(--font-read); font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
  .ic-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
  .ic-meta span::before { content: "· "; color: var(--ink-faint); }
  .ic-meta span:first-child::before { content: ""; }
  .ic-demo-note { font-size: .84rem; color: var(--ink-soft); border-left: 3px solid var(--butter); padding: .3rem .8rem; margin: 0; max-width: 40rem; background: color-mix(in srgb, var(--butter) 8%, transparent); }
  .ic-hero-art svg { width: 100%; height: auto; display: block; }

  /* 版面：左側路線＋右側主文 */
  .ic-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 4rem; }
  @media (min-width: 1040px) { .ic-layout { grid-template-columns: 13rem 1fr; } }
  .ic-route { position: sticky; top: 56px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); margin: 0 -1rem; padding: .5rem 1rem; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
  .ic-route::-webkit-scrollbar { display: none; }
  .ic-route ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; }
  .ic-route a { display: flex; align-items: center; gap: .45rem; white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-size: .86rem; padding: .25rem .65rem; border-radius: var(--r-pill); border: 1px solid transparent; }
  .ic-route a .n { font-family: var(--font-read); color: var(--ink-faint); }
  .ic-route a.on { color: var(--ink); border-color: var(--ink); background: color-mix(in srgb, var(--sky) 18%, transparent); }
  .ic-route a .ok { width: .95rem; height: .95rem; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: .62rem; color: transparent; flex: none; }
  .ic-route a.done .ok { background: var(--ok); border-color: var(--ok); color: var(--surface); }
  .ic-route .ic-route-sum { display: none; }
  @media (min-width: 1040px) {
    .ic-route { top: 76px; align-self: start; margin: 0; padding: 0; border: 0; background: none; overflow: visible; }
    .ic-route ol { flex-direction: column; gap: .15rem; border-left: 1px solid var(--line); padding-left: .2rem; }
    .ic-route a { white-space: normal; border-radius: var(--r-sm); }
    .ic-route .ic-route-sum { display: block; font-size: .8rem; color: var(--ink-faint); margin: .9rem 0 0 .6rem; }
  }

  .ic-main { min-width: 0; }
  .ic-sec { padding: 2.4rem 0 1rem; border-top: 1px dashed var(--line); scroll-margin-top: 110px; }
  .ic-sec:first-child { border-top: 0; padding-top: .5rem; }
  .ic-kicker { display: flex; align-items: center; gap: .6rem; font-size: .82rem; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: .4rem; }
  .ic-kicker b { font-family: var(--font-read); font-weight: 400; font-size: 1.5rem; color: var(--accent); letter-spacing: 0; }
  .ic-sec h2 { margin-bottom: .8rem; }
  .ic-sec p { max-width: 40rem; font-size: 1.02rem; }
  .ic-sec h3 { margin-top: 1.8rem; }

  .ic-gist { max-width: 40rem; position: relative; isolation: isolate; font-family: var(--font-read); font-size: 1.12rem; line-height: 1.7; padding: .85rem 1.1rem; margin: 0 0 1.3rem; border: 1px solid var(--ink); border-radius: var(--r); }
  .ic-gist::before { content: "一句話"; position: absolute; top: -.75rem; left: .9rem; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .2em; padding: 0 .45rem; background: var(--bg); color: var(--ink-soft); }
  .ic-gist::after { content: ""; position: absolute; inset: 30% -2% -8% 40%; z-index: -1; background: var(--sky); opacity: calc(var(--wash-op) * .55); border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%; filter: url(#nx-wc); mix-blend-mode: var(--wc-blend); }

  /* 快讀模式：只留一句話、圖與互動 */
  :root[data-read="quick"] .deep { display: none; }
  :root[data-read="quick"] .ic-gist { font-size: 1.2rem; }

  .term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; border-bottom: 1.5px dotted var(--accent); }
  .term:hover, .term:focus-visible { color: var(--accent-ink); outline: none; }
  .ic-pop { position: absolute; z-index: 50; max-width: 19rem; background: var(--surface-2); border: 1px solid var(--ink); border-radius: var(--r-sm); padding: .7rem .9rem; font-size: .9rem; line-height: 1.65; box-shadow: var(--shadow-lg); }
  .ic-pop b { display: block; font-family: var(--font-read); font-size: 1.05rem; margin-bottom: .2rem; }
  .ic-pop a { font-size: .82rem; }

  /* 圖與互動的外框 */
  .ic-fig { margin: 1.6rem 0; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
  .ic-fig > figcaption, .ic-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; font-size: .86rem; color: var(--ink-soft); margin-top: .8rem; line-height: 1.6; }
  .ic-fid { font-family: var(--font-read); font-weight: 700; color: var(--accent); }
  .ic-kind { font-size: .72rem; letter-spacing: .08em; padding: 0 .5rem; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-faint); white-space: nowrap; }
  .ic-kind.data { border-color: var(--warn); color: var(--warn); }
  .ic-fig-title { font-family: var(--font-read); font-size: 1.15rem; margin: 0 0 .2rem; }
  .ic-fig-hint { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .8rem; }
  .ic-ctrl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0; }
  .ic-ctrl label { font-size: .88rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
  .ic-ctrl input[type=range] { width: min(16rem, 60vw); accent-color: var(--accent); }
  .ic-readout { font-size: .92rem; background: var(--tint); border-radius: var(--r-sm); padding: .6rem .85rem; margin-top: .7rem; line-height: 1.7; }
  .ic-readout b { font-variant-numeric: tabular-nums; }
  .ic-svg { width: 100%; height: auto; display: block; }
  canvas.ic-cv { width: 100%; display: block; border-radius: var(--r-sm); touch-action: none; }
  .ic-two { display: grid; gap: 1rem; grid-template-columns: 1fr; }
  @media (min-width: 760px) { .ic-two { grid-template-columns: 1.15fr 1fr; align-items: start; } }

  .ic-photo { aspect-ratio: 16 / 7; border: 1.5px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; text-align: center; color: var(--ink-faint); font-size: .9rem; padding: 1rem; background: repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--line-soft) 45%, transparent) 12px 13px); }

  /* 先猜／題目 */
  .ic-q { margin: 1.4rem 0; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--ink); border-radius: var(--r-lg); background: var(--surface-2); }
  .ic-q h3 { margin: 0 0 .4rem; font-family: var(--font-read); font-weight: 400; font-size: 1.2rem; }
  .ic-q .ic-q-label { font-size: .75rem; letter-spacing: .2em; color: var(--pink); margin-bottom: .2rem; }
  .ic-opts { display: grid; gap: .5rem; margin-top: .7rem; }
  .ic-opt { text-align: left; font: inherit; font-size: .96rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .85rem; cursor: pointer; line-height: 1.6; }
  .ic-opt:hover { border-color: var(--ink); }
  .ic-opt .why { display: none; font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; }
  .ic-opt.shown .why { display: block; }
  .ic-opt.right.shown { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
  .ic-opt.wrong.shown { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
  .ic-opt.right.shown::before { content: "✓ "; color: var(--ok); font-weight: 700; }
  .ic-opt.wrong.shown::before { content: "✗ "; color: var(--bad); font-weight: 700; }

  .ic-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin: 1.2rem 0; }
  .ic-stat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .55rem .8rem; background: var(--surface); }
  .ic-stat b { display: block; font-family: var(--font-read); font-size: 1.45rem; font-weight: 400; line-height: 1.3; }
  .ic-stat span { font-size: .8rem; color: var(--ink-soft); }

  .ic-steps-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; }
  .ic-steps-nav .chip { font-size: .84rem; }
  .ic-step-body { display: grid; gap: 1rem; grid-template-columns: 1fr; }
  @media (min-width: 720px) { .ic-step-body { grid-template-columns: 1fr 1.1fr; align-items: center; } }
  .ic-step-body h4 { font-family: var(--font-read); font-weight: 400; font-size: 1.2rem; margin: 0 0 .3rem; }
  .ic-step-body p { font-size: .96rem; margin: 0 0 .5rem; }

  .ic-chain { display: grid; gap: .5rem; grid-template-columns: 1fr; margin: 1.2rem 0; counter-reset: ch; }
  @media (min-width: 720px) { .ic-chain { grid-template-columns: repeat(3, 1fr); } }
  .ic-chain > div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .85rem; background: var(--surface); font-size: .92rem; position: relative; }
  .ic-chain > div::before { counter-increment: ch; content: counter(ch); font-family: var(--font-read); font-size: 1.4rem; color: var(--accent); display: block; line-height: 1.1; }
  .ic-chain > div.seen { border-color: var(--glow); box-shadow: inset 0 0 0 1px var(--glow); }
  .ic-chain small { display: block; color: var(--ink-faint); margin-top: .25rem; }

  .ic-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
  .ic-tabpanel { margin-top: .7rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--tint); font-size: .96rem; min-height: 5.5rem; }

  /* 分類遊戲 */
  .ic-sort { display: grid; gap: .8rem; grid-template-columns: 1fr; }
  @media (min-width: 760px) { .ic-sort { grid-template-columns: repeat(2, 1fr); } }
  .ic-ev { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; background: var(--surface-2); }
  .ic-ev header { display: flex; gap: .8rem; align-items: center; }
  .ic-ev svg { width: 92px; height: 92px; flex: none; }
  .ic-ev ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }
  .ic-ev .ic-ev-btns { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
  .ic-ev .ic-ev-btns .chip { font-size: .8rem; min-height: 32px; padding: .1rem .6rem; }
  .ic-ev .ic-ev-res { display: none; font-size: .88rem; margin-top: .55rem; padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--tint); }
  .ic-ev.answered .ic-ev-res { display: block; }
  .ic-ev.answered.good { border-color: var(--ok); }
  .ic-ev.answered.miss { border-color: var(--warn); }

  .ic-myths { display: grid; gap: .7rem; grid-template-columns: 1fr; margin-top: 1rem; }
  @media (min-width: 760px) { .ic-myths { grid-template-columns: repeat(3, 1fr); } }
  .ic-myth { text-align: left; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem; background: var(--surface); cursor: pointer; min-height: 9rem; display: flex; flex-direction: column; gap: .4rem; }
  .ic-myth .front { font-family: var(--font-read); font-size: 1.08rem; }
  .ic-myth .front::before { content: "✗ 常見說法"; display: block; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .15em; color: var(--bad); margin-bottom: .2rem; }
  .ic-myth .back { display: none; font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }
  .ic-myth.open .back { display: block; }
  .ic-myth.open { border-color: var(--ok); }
  .ic-myth .more { font-size: .78rem; color: var(--accent-ink); margin-top: auto; }
  .ic-myth.open .more { display: none; }

  .ic-ladder { display: grid; gap: .6rem; grid-template-columns: 1fr; margin: 1.2rem 0; }
  @media (min-width: 760px) { .ic-ladder { grid-template-columns: repeat(3, 1fr); } }
  .ic-rung { border: 1px solid var(--line); border-radius: var(--r); padding: .85rem; background: var(--surface); }
  .ic-rung .sc { font-size: .75rem; letter-spacing: .12em; color: var(--ink-faint); }
  .ic-rung h4 { font-family: var(--font-read); font-weight: 400; font-size: 1.12rem; margin: .1rem 0 .4rem; }
  .ic-rung dl { margin: 0; font-size: .88rem; }
  .ic-rung dt { color: var(--ink-faint); font-size: .76rem; letter-spacing: .1em; margin-top: .4rem; }
  .ic-rung dd { margin: 0; color: var(--ink-soft); }
  .ic-rung dd.hide { filter: blur(5px); user-select: none; cursor: pointer; }

  .ic-tl { list-style: none; margin: 1rem 0; padding: 0 0 0 1.3rem; border-left: 1.5px solid var(--line); }
  .ic-tl li { position: relative; padding: .1rem 0 1rem .5rem; }
  .ic-tl li::before { content: ""; position: absolute; left: -1.78rem; top: .55rem; width: .8rem; height: .7rem; border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%; background: var(--sky); }
  .ic-tl li.build::before { background: var(--butter); }
  .ic-tl li.find::before { background: var(--pink); }
  .ic-tl li.hidden { display: none; }
  .ic-tl .y { font-family: var(--font-read); font-size: 1.05rem; }
  .ic-tl .k { font-size: .7rem; letter-spacing: .1em; color: var(--ink-faint); margin-left: .4rem; }
  .ic-tl p { margin: .1rem 0 0; font-size: .94rem; color: var(--ink-soft); }

  .ic-units { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 1rem 0; }
  .ic-unit { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .85rem; background: var(--surface); }
  .ic-unit:hover { border-color: var(--ink); }
  .ic-unit small { display: block; color: var(--ink-faint); font-size: .78rem; }
  .ic-unit span { font-family: var(--font-read); font-size: 1.05rem; }

  .ic-score { font-family: var(--font-read); font-size: 1.15rem; margin-top: 1rem; }
  .ic-badge { display: none; margin-top: .8rem; padding: .8rem 1rem; border: 1px solid var(--ok); border-radius: var(--r); background: color-mix(in srgb, var(--ok) 10%, transparent); }
  .ic-badge.on { display: block; }
  .ic-foot { font-size: .84rem; color: var(--ink-faint); border-top: 1px solid var(--line-soft); padding-top: 1rem; margin-top: 2rem; }
  .ic-foot p { max-width: none; }

  /* 推理主線：每段一個問題，上一段卡住的地方就是下一段的起點 */
  .ic-spine { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .45rem; counter-reset: sp; }
  .ic-spine li { counter-increment: sp; display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .6rem; align-items: start; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
  .ic-spine li:hover { border-color: var(--ink); }
  .ic-spine li::before { content: counter(sp); grid-row: span 2; font-family: var(--font-read); font-size: 1.5rem; line-height: 1.2; color: var(--accent); text-align: center; }
  .ic-spine .q { font-family: var(--font-read); font-size: 1.08rem; }
  .ic-spine .a { font-size: .88rem; color: var(--ink-faint); }
  .ic-spine li.got { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
  .ic-spine li.got .a { color: var(--ink-soft); }
  .ic-spine li.got .a::before { content: "✓ "; color: var(--ok); font-weight: 700; }
  .ic-spine li.here { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--pink); }
  .ic-spine-arrow { display: block; text-align: center; color: var(--ink-faint); font-size: .8rem; margin: -.2rem 0; }

  .ic-raw { width: 100%; max-width: 30rem; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; margin: .4rem 0 .2rem; }
  .ic-raw th, .ic-raw td { white-space: nowrap; border-bottom: 1px solid var(--line-soft); padding: .3rem .6rem; text-align: right; }
  .ic-raw th:first-child, .ic-raw td:first-child { text-align: left; }
  .ic-raw th { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
  .ic-raw tr.more td { white-space: normal; color: var(--ink-faint); text-align: center; font-size: .82rem; }

  .ic-bridge { max-width: 40rem; margin: 0 0 1rem; padding: .6rem .9rem; border-left: 3px solid var(--line); font-size: .93rem; color: var(--ink-soft); background: color-mix(in srgb, var(--line-soft) 35%, transparent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .ic-bridge .ask { display: block; margin-top: .25rem; font-family: var(--font-read); font-size: 1.15rem; color: var(--ink); }
  .ic-bridge .ask::before { content: "這一段要回答 → "; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .1em; color: var(--pink); }
  .ic-gain { max-width: 40rem; margin: 1.6rem 0 .4rem; padding: .8rem 1rem; border: 1px solid var(--ok); border-radius: var(--r); background: color-mix(in srgb, var(--ok) 7%, transparent); font-size: .95rem; }
  .ic-gain .got { font-family: var(--font-read); font-size: 1.08rem; }
  .ic-gain .got b { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .1em; color: var(--ok); margin-right: .4rem; }
  .ic-gain .but { margin-top: .5rem; color: var(--ink-soft); }
  .ic-gain .but a { overflow-wrap: anywhere; }
  .ic-mini { display: flex; gap: .3rem; margin: 0 0 .7rem; }
  .ic-mini i { width: 1.6rem; height: .35rem; border-radius: 3px; background: var(--line-soft); }
  .ic-mini i.past { background: var(--ok); opacity: .7; }
  .ic-mini i.now { background: var(--pink); }

  .ic-order { display: grid; gap: .45rem; margin: .8rem 0; }
  .ic-order button { text-align: left; font: inherit; font-size: .94rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .55rem .8rem; cursor: pointer; line-height: 1.6; }
  .ic-order button:hover { border-color: var(--ink); }
  .ic-order button.placed { opacity: .35; cursor: default; }
  .ic-order button.shake { border-color: var(--bad); animation: icShake .3s; }
  @keyframes icShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
  .ic-chainout { list-style: none; margin: .6rem 0; padding: 0; counter-reset: co; }
  .ic-chainout li { counter-increment: co; padding: .35rem 0 .35rem 2rem; position: relative; font-size: .95rem; }
  .ic-chainout li::before { content: counter(co); position: absolute; left: .3rem; font-family: var(--font-read); color: var(--ok); font-size: 1.15rem; line-height: 1.4; }
  .ic-chainout li + li::after { content: "↑ 所以"; position: absolute; left: -.2rem; top: -.55rem; font-size: .66rem; color: var(--ink-faint); display: none; }

  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

  /* 原版混合題放進故事版 */
  .ic-mixed .mixed { margin-top: .4rem; }
  .ic-mixed .mixed > summary { font-size: 1.05rem; }
  .ic-classic { font-size: .82rem; color: var(--ink-faint); white-space: nowrap; }
  @media (max-width: 560px) { .ic-classic { display: none; } }

  /* 實景照片（檔案存在才顯示） */
  .ic-shot-img img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); background: var(--tint); }
  .ic-credit { font-size: .76rem; color: var(--ink-faint); }

  /* ── 與舊單元統一的版型（news-story.js 的 restructure 會把頁面換成這個結構） ── */
  .story-unit .sec.ic-sec { padding: 3.5rem 0; border-top: 0; scroll-margin-top: 4rem; }
  .story-unit .sec.ic-sec:first-of-type { padding-top: 2.5rem; }
  .story-unit .story-wrap { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
  .story-unit .story-wrap > * { min-width: 0; margin-top: 0; margin-bottom: 0; }
  .story-unit .ic-mini { margin-bottom: -.4rem; }
  .story-unit .ic-bridge, .story-unit .ic-gist { margin-bottom: 0; }
  .story-unit .ic-fig, .story-unit .ic-q { margin: .2rem 0; }
  .story-unit .unit-head .ic-meta { margin: .6rem 0 .3rem; }
  .story-unit .unit-head .ic-demo-note { margin: .4rem 0 1rem; }
  .story-unit .unit-head h1 { max-width: 46rem; }
  .story-unit .unit-head .news-lesson-nav { margin-top: .4rem; }
  .topbar .ic-classic { font-size: .85rem; }
  @media (max-width: 719px) { .topbar .ic-classic { display: none; } }

  /* 上課模式：一次一段，大字、高對比；底部固定翻頁列 */
  .story-pager { display: none; }
  :root[data-mode="class"] .story-pager { display: flex; position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 70; gap: .6rem; align-items: center; padding: .35rem .6rem; border: 1px solid var(--ink); border-radius: var(--r-pill); background: var(--surface-2); box-shadow: var(--shadow-lg); }
  :root[data-mode="class"] .story-pager .faint { font-variant-numeric: tabular-nums; min-width: 3.5rem; text-align: center; }
  :root[data-mode="class"] .story-unit .sec.ic-sec { min-height: 100svh; padding: 4.5rem 0 5.5rem; align-items: flex-start; }
  :root[data-mode="class"] #readToggle { display: none; }
  :root[data-mode="class"] .story-unit .ic-gist { font-size: 1.3rem; }
  :root[data-mode="class"] .story-unit .sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
  .story-unit .news-lesson-nav .story-quick { border-style: dashed; }
  :root[data-mode="class"] .story-unit > header.unit-head[hidden], :root[data-mode="class"] .story-unit > footer[hidden] { display: none; }
  /* 上課模式全螢幕的是 <body>；紙色原本被傳到畫布上，body 自己透明，瀏覽器就露出黑色底幕。
     把紙色放回 html，body 才會自己畫底色。 */
  html { background-color: var(--bg); }
  body:fullscreen { background-color: var(--bg); overflow-y: auto; }
  body::backdrop { background-color: var(--bg); }
