/* 今天也發芽 官網樣式。色票與字級來自 docs/design-tokens.json（方向 A 繪本紙）。 */

@font-face {
  font-family: "Huninn Site";
  src: url("fonts/huninn-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans TC Site";
  src: url("fonts/notosanstc-400-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans TC Site";
  src: url("fonts/notosanstc-700-subset.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #FBF4E6;
  --card: #FFFBF3;
  --wall: #F4E6CC;
  --desk: #D9B68A;
  --ink: #4A3022;
  --ink-soft: #7A5A45;
  --leaf: #527D35;
  --on-leaf: #FFFBF3;
  --nutrient: #F2B84B;
  --chip: #F4E6CC;
  --track: #E6D6BB;
  --danger: #A0412D;
  --done-row: #F3EBDB;
  --window-sky: #DCEBEA;

  --font-display: "Huninn Site", "jf-openhuninn-2.1", "jf open 粉圓", "Huninn", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body: "Noto Sans TC Site", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;

  --cut-a: 18px 22px 17px 23px / 21px 17px 23px 18px;
  --cut-b: 22px 17px 21px 18px / 17px 22px 18px 21px;
  --cut-c: 17px 21px 23px 18px / 22px 18px 17px 21px;
  --line: 2.5px;
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #25212E;
    --card: #322D3D;
    --wall: #2F2A3C;
    --desk: #5A463C;
    --ink: #F3E6D3;
    --ink-soft: #C7B6A2;
    --leaf: #A3C77F;
    --on-leaf: #1F1B27;
    --nutrient: #F2C76B;
    --chip: #3D3749;
    --track: #463F52;
    --danger: #F0A08C;
    --done-row: #2B2735;
    --window-sky: #3E3760;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--nutrient); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; border: var(--line) solid var(--ink); border-radius: var(--cut-a); z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.3; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 6.4vw, 58px); }
h2 { font-size: clamp(26px, 4.4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow { font-family: var(--font-display); color: var(--leaf); font-size: 15px; letter-spacing: .08em; margin-bottom: 8px; display: block; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); max-width: 36em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* 導覽列 */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--track); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 21px; line-height: 1; }
.brand img { width: 38px; height: 38px; border-radius: 11px; border: 2px solid var(--ink); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { white-space: nowrap; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 12px; font-size: 15px; }
.nav-links a:hover { background: var(--chip); }
.nav-links .lang { color: var(--ink-soft); border: 1.5px solid var(--track); }
.nav .btn { margin-left: 4px; }
@media (max-width: 820px) {
  .nav-links a:not(.lang):not(.btn) { display: none; }
  .nav .wrap { gap: 10px; }
  .brand { font-size: 19px; }
}
@media (max-width: 430px) {
  .nav .wrap { gap: 6px; }
  .nav-links { gap: 2px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav-links .lang { padding: 6px 9px; font-size: 13px; }
  .nav .btn { padding: 8px 14px !important; font-size: 14px !important; }
}

@media (max-width: 360px) {
  .brand { font-size: 14.5px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .nav .btn { padding: 6px 10px !important; font-size: 13px !important; }
  .nav-links .lang { padding: 6px 7px; font-size: 12px; }
}

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  color: var(--on-leaf); background: var(--leaf);
  border: var(--line) solid var(--ink); border-radius: var(--cut-a);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--on-leaf); transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.secondary { background: var(--card); color: var(--ink); }
.btn.secondary:hover { color: var(--ink); }
.btn.big { min-height: 54px; padding: 12px 28px; font-size: 17px; }
.btn[aria-disabled="true"] { background: var(--chip); color: var(--ink-soft); box-shadow: none; border-style: dashed; cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 區塊 */
section { padding: clamp(56px, 9vw, 104px) 0; }
.band { background: var(--wall); border-block: var(--line) solid var(--ink); }
.section-head { margin-bottom: clamp(28px, 5vw, 48px); }

/* 卡片 */
.card { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); padding: 24px; }
.card:nth-child(3n+2) { border-radius: var(--cut-b); }
.card:nth-child(3n) { border-radius: var(--cut-c); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { font-size: 28px; line-height: 1; margin-bottom: 12px; display: block; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-size: 14px; line-height: 1.5; }

/* Hero */
.hero { padding: clamp(36px, 7vw, 80px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--leaf); }
.hero .lead { margin: 18px 0 28px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-art::before { content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 48% 52% 47% 53% / 52% 46% 54% 48%; background: var(--wall); border: var(--line) solid var(--ink); }
.hero-art img.sprout { position: relative; width: min(300px, 62%); max-height: 420px; object-fit: contain; animation: bob 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
.hero-art .bubble { position: absolute; top: 4%; right: 2%; max-width: 210px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
.bubble { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-b); padding: 10px 16px; font-size: 15px; line-height: 1.55; position: relative; }
.bubble::after { content: ""; position: absolute; left: 26px; bottom: -11px; width: 16px; height: 16px; background: var(--card); border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); transform: rotate(45deg); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row, .hero .chips { justify-content: center; }
  .hero-art { min-height: 400px; order: -1; padding-top: 70px; }
  .hero-art .bubble { right: auto; left: 50%; top: 4px; transform: translateX(-50%); width: max-content; max-width: 86%; text-align: center; }
  .hero-art .bubble::after { left: calc(50% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img.sprout { animation: none; }
  html { scroll-behavior: auto; }
}

/* 三原則 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* 成長階段 */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.stage { text-align: center; }
.stage .plate { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); height: 230px; display: flex; align-items: flex-end; justify-content: center; padding: 14px 10px; }
.stage:nth-child(even) .plate { border-radius: var(--cut-c); }
.stage img { max-height: 100%; width: auto; }
.stage b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; margin-top: 12px; }
.stage span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 700px) { .stages { grid-template-columns: repeat(2, 1fr); } .stage .plate { height: 200px; } }
.note { color: var(--ink-soft); font-size: 14px; }

/* 心情 */
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mood { text-align: center; width: 96px; }
.mood img { height: 96px; width: auto; margin: 0 auto 6px; }
.mood span { font-size: 14px; color: var(--ink-soft); }

/* 個性 */
.persona .quote { background: var(--paper); border: 1.5px dashed var(--ink-soft); border-radius: 14px; padding: 8px 14px; font-size: 15px; margin-top: 10px; }
.persona .quote + .quote { margin-top: 8px; }

/* 衣櫥 */
.wardrobe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.wardrobe .item { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); padding: 12px 6px 10px; text-align: center; }
.wardrobe .item:nth-child(3n+2) { border-radius: var(--cut-b); }
.wardrobe .item:nth-child(3n) { border-radius: var(--cut-c); }
.wardrobe img { height: 112px; width: auto; margin: 0 auto 6px; }
.wardrobe span { font-size: 14px; }
@media (max-width: 900px) { .wardrobe { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .wardrobe { grid-template-columns: repeat(3, 1fr); gap: 10px; } .wardrobe img { height: 88px; } }

/* 手機畫面示意 */
.phones { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.phone-wrap { width: 272px; text-align: center; }
.phone-wrap figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.phone-wrap figcaption b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.phone { width: 272px; height: 560px; background: var(--paper); border: 4px solid var(--ink); border-radius: 38px; padding: 12px; box-shadow: 0 8px 0 rgba(74, 48, 34, .18); text-align: left; position: relative; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; }
.phone::before { content: ""; width: 64px; height: 6px; background: var(--ink); border-radius: 6px; margin: 2px auto 10px; flex: none; }
.s-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex: none; }
.s-top small { color: var(--ink-soft); font-size: 11px; display: block; line-height: 1.3; }
.s-top b { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.2; }
.s-pill { border: 2px solid var(--ink); background: var(--card); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.s-room { position: relative; border: var(--line) solid var(--ink); border-radius: var(--cut-a); background: var(--wall); height: 196px; overflow: hidden; flex: none; }
.s-room .win { position: absolute; left: 12px; top: 14px; width: 54px; height: 54px; border: 2.5px solid var(--ink); background: var(--window-sky); border-radius: 6px; }
.s-room .win::before, .s-room .win::after { content: ""; position: absolute; background: var(--ink); }
.s-room .win::before { left: 50%; top: 0; bottom: 0; width: 2px; }
.s-room .win::after { top: 50%; left: 0; right: 0; height: 2px; }
.s-room .desk { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: var(--desk); border-top: 2.5px solid var(--ink); }
.s-room img { position: absolute; left: 36%; bottom: 10px; height: 136px; width: auto; transform: translateX(-50%); }
.s-room .bubble { position: absolute; right: 8px; top: 12px; max-width: 118px; font-size: 11px; line-height: 1.45; padding: 6px 9px; }
.s-room .bubble::after { left: 14px; right: auto; width: 10px; height: 10px; bottom: -7px; }
.s-name { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 2px 4px; flex: none; }
.s-name b { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.s-name small { color: var(--ink-soft); font-size: 11px; margin-left: 4px; }
.s-name em { font-style: normal; font-family: var(--font-display); font-size: 16px; }
.s-bar { height: 10px; border-radius: 6px; background: var(--track); border: 1.5px solid var(--ink); overflow: hidden; flex: none; }
.s-bar i { display: block; height: 100%; background: var(--nutrient); border-right: 1.5px solid var(--ink); }
.s-sub { color: var(--ink-soft); font-size: 10.5px; text-align: right; margin: 3px 2px 6px; flex: none; }
.s-sec { font-family: var(--font-display); font-size: 14px; margin: 4px 2px 6px; flex: none; }
.s-sec small { color: var(--ink-soft); font-family: var(--font-body); font-size: 11px; margin-left: 4px; }
.s-row { display: flex; align-items: center; gap: 9px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--cut-b); padding: 7px 10px; margin-bottom: 7px; flex: none; }
.s-row .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-size: 14px; flex: none; }
.s-row div { flex: 1; min-width: 0; line-height: 1.35; }
.s-row b { display: block; font-size: 13px; }
.s-row small { color: var(--ink-soft); font-size: 11px; }
.s-row .ck { width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--on-leaf); font-size: 14px; font-weight: 700; }
.s-row.done { background: var(--done-row); }
.s-row.done .ck { background: var(--leaf); }
.s-nav { margin-top: auto; display: flex; justify-content: space-around; border-top: 1.5px solid var(--track); padding-top: 8px; font-size: 10.5px; color: var(--ink-soft); flex: none; }
.s-nav span { text-align: center; display: block; line-height: 1.2; }
.s-nav span b { display: block; font-size: 15px; font-weight: 400; }
.s-nav .on { color: var(--leaf); font-weight: 700; }
/* 三顆按鈕畫面 */
.s-sheet { margin-top: 8px; margin-bottom: 8px; border: var(--line) solid var(--ink); border-radius: var(--cut-a); background: var(--wall); padding: 14px; flex: none; }
.s-sheet .q { font-family: var(--font-display); font-size: 15px; margin-bottom: 10px; line-height: 1.4; }
.s-opt { display: block; width: 100%; background: var(--card); border: 2px solid var(--ink); border-radius: var(--cut-b); padding: 10px 14px; margin-bottom: 8px; font-weight: 700; font-size: 13.5px; text-align: left; }
.s-opt small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 11px; }
.s-opt.main { background: var(--leaf); color: var(--on-leaf); }
.s-opt.main small { color: var(--on-leaf); opacity: .85; }
/* 信紙畫面 */
.s-letter { margin-top: 4px; flex: 1; border: var(--line) solid var(--ink); border-radius: var(--cut-c); background: var(--card); padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.s-letter small { color: var(--ink-soft); font-size: 11px; }
.s-letter h4 { font-family: var(--font-display); font-weight: 400; font-size: 23px; margin: 4px 0 10px; }
.s-letter img { height: 112px; width: auto; margin: 4px 0 8px; }
.s-letter p { margin: 0 0 5px; font-size: 12.5px; }
.s-letter .sig { margin-top: auto; align-self: stretch; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 11px; }

/* 步驟 */
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps li { list-style: none; counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; display: grid; place-items: center; background: var(--nutrient); color: #4A3022; border: var(--line) solid var(--ink); border-radius: 50%; font-family: var(--font-display); font-size: 20px; }
.steps ol, ol.steps { padding: 0; margin: 0; }
.steps b { display: block; }
.steps span { color: var(--ink-soft); }
.join-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.join-card { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-b); padding: 26px; }
.join-card h3 { margin-bottom: 6px; }
.join-card .mascot { height: 120px; width: auto; margin: -8px auto 8px; }
.join-card .btn { width: 100%; margin-top: 12px; }
.join-card .hint { font-size: 14px; color: var(--ink-soft); margin: 10px 0 0; }
.join-card hr { border: 0; border-top: 1.5px dashed var(--ink-soft); margin: 20px 0; }

/* 承諾 */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise .p { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); padding: 20px 18px; text-align: center; }
.promise .p:nth-child(even) { border-radius: var(--cut-c); }
.promise .p b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; margin: 6px 0 4px; }
.promise .p span { color: var(--ink-soft); font-size: 14px; display: block; line-height: 1.6; }
.promise .p i { font-style: normal; font-size: 30px; display: block; line-height: 1.2; }
@media (max-width: 900px) { .promise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promise { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); padding: 0 20px; }
.faq details:nth-child(even) { border-radius: var(--cut-c); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; color: var(--leaf); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; }

/* 頁尾 */
footer { background: var(--wall); border-top: var(--line) solid var(--ink); padding: 40px 0 48px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer h4 { font-family: var(--font-display); font-weight: 400; font-size: 17px; margin: 0 0 8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 4px; }
footer a { color: var(--ink); }
footer .small { color: var(--ink-soft); font-size: 13px; margin-top: 10px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* 文章頁（隱私權政策） */
.doc { max-width: 760px; margin-inline: auto; padding: clamp(40px, 7vw, 72px) 0 80px; }
.doc h1 { font-size: clamp(30px, 5.5vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 8px; border-top: 1.5px dashed var(--ink-soft); }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; }
.doc .summary { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); padding: 20px 24px; margin: 24px 0 8px; }
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--track); vertical-align: top; }
.doc th { font-family: var(--font-display); font-weight: 400; color: var(--leaf); }
.doc .callout { background: var(--chip); border-left: 5px solid var(--nutrient); border-radius: 6px 16px 16px 6px; padding: 14px 18px; margin: 0 0 1em; }
.tbl-scroll { overflow-x: auto; }

/* 進場動畫（有 JS 才啟動） */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

[hidden] { display: none !important; }

/* ===== 文章與測驗（習慣小筆記） ===== */
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }
.doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc ol li { margin-bottom: 8px; }
.doc ol.refs { font-size: 14px; color: var(--ink-soft); }
.doc ol.refs li { margin-bottom: 8px; word-break: break-word; }
.doc table.compare { min-width: 860px; font-size: 14px; }
.doc table.compare th, .doc table.compare td { padding: 10px 10px; border-bottom: 1.5px solid var(--track); }
.doc table.compare tr.us td { background: var(--chip); }
.doc.wide { max-width: 980px; }
.cta-box { display: flex; gap: 20px; align-items: center; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-b); padding: 20px 24px; margin: 40px 0 8px; }
.cta-box img { height: 96px; width: auto; flex: none; }
.cta-box b { font-family: var(--font-display); font-weight: 400; font-size: 20px; display: block; margin-bottom: 4px; }
.cta-box p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.cta-box .btn { margin: 0 8px 8px 0; min-height: 40px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 560px) { .cta-box { flex-direction: column; text-align: center; } }

.article-list { display: grid; gap: 16px; margin-top: 28px; }
.article-list a.item { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); padding: 20px 24px; transition: transform .12s ease; }
.article-list a.item:nth-child(even) { border-radius: var(--cut-c); }
.article-list a.item:hover { transform: translateY(-2px); color: var(--ink); }
.article-list .item h2 { font-size: 21px; margin: 0 0 6px; border: 0; padding: 0; }
.article-list .item p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.article-list .item .tag { display: inline-block; font-size: 12px; background: var(--chip); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 10px; margin-bottom: 8px; color: var(--ink); }

/* 測驗 */
.quiz-card { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--cut-a); padding: clamp(20px, 4vw, 32px); margin-top: 24px; }
.quiz-progress { height: 10px; border-radius: 6px; background: var(--track); border: 1.5px solid var(--ink); overflow: hidden; margin-bottom: 8px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--nutrient); border-right: 1.5px solid var(--ink); transition: width .25s ease; }
.quiz-step { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.quiz-card h2.quiz-q { margin: 0 0 18px; padding: 0; font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 26px); line-height: 1.45; margin: 0 0 18px; }
.quiz-card .quiz-opts { padding: 0; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.quiz-opt { width: 100%; text-align: left; font: inherit; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--cut-b); padding: 14px 18px; min-height: 52px; cursor: pointer; transition: background .12s ease, transform .12s ease; }
.quiz-opt:hover { background: var(--chip); }
.quiz-opt:active { transform: translateY(2px); }
.quiz-back { margin-top: 18px; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 4px; }
.quiz-back[hidden] { display: none; }
.result { text-align: center; }
.result img.hero-mini { height: 190px; width: auto; margin: 0 auto 8px; }
.result .kicker { font-family: var(--font-display); color: var(--leaf); letter-spacing: .08em; }
.result h2 { border: 0; padding: 0; margin: 4px 0 8px; font-size: clamp(28px, 5vw, 38px); }
.result .tagline { color: var(--ink-soft); font-size: 17px; margin-bottom: 20px; }
.result .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; margin: 20px 0; }
.result .cols > div { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--cut-c); padding: 16px 18px; }
.result .cols h3 { font-size: 17px; margin-bottom: 8px; }
.result .cols ul, .result .cols ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.result .cols li { margin-bottom: 6px; }
.result .second { color: var(--ink-soft); font-size: 15px; margin: 4px 0 0; }
.result .btn-row { justify-content: center; margin-top: 8px; }
.result .fineprint { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
@media (max-width: 680px) { .result .cols { grid-template-columns: 1fr; } }
.quiz-canvas { display: none; }
.share-preview { max-width: 320px; margin: 16px auto 0; border: var(--line) solid var(--ink); border-radius: var(--cut-a); display: block; }

.table-hint { display: none; margin: 0 0 6px; }
@media (max-width: 1000px) { .table-hint { display: block; } }
.doc.wide > p, .doc.wide > ul, .doc.wide > ol, .doc.wide > h1, .doc.wide > h2, .doc.wide > h3, .doc.wide > .summary, .doc.wide > .callout, .doc.wide > .meta, .doc.wide > .crumbs { max-width: 760px; }
