:root {
  --sage: #7a9a7e;
  --moss: #4a6741;
  --sand: #c9a97a;
  --cream: #faf7f2;
  --warm-white: #fffef9;
  --charcoal: #2c2c2c;
  --muted: #6f6a63;
  --line: #e9e0d4;
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--warm-white); font-family: var(--sans); line-height: 1.8; }
a { color: var(--moss); }
img { max-width: 100%; height: auto; }

.case-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 254, 249, .96); backdrop-filter: blur(12px); }
.case-nav { width: min(1120px, calc(100% - 32px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.case-logo img { width: auto; height: 42px; display: block; }
.case-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: .88rem; }
.case-links a { color: var(--charcoal); text-decoration: none; }
.case-links a:hover { color: var(--moss); }

.case-main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 96px; }
.case-hero { text-align: center; margin-bottom: 52px; }
.case-kicker { display: block; margin-bottom: 12px; color: var(--sand); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.case-hero h1 { max-width: 800px; margin: 0 auto 18px; font: 700 clamp(2rem, 5vw, 3.35rem)/1.4 var(--serif); }
.case-lead { max-width: 760px; margin: 0 auto 18px; color: #4d4944; font-size: 1.08rem; text-align: left; }
.case-byline { color: var(--muted); font-size: .84rem; }
.case-hero-image { margin: 36px 0 0; overflow: hidden; border-radius: 24px; background: var(--cream); box-shadow: 0 18px 48px rgba(44, 44, 44, .08); }
.case-hero-image img { width: 100%; max-height: 520px; display: block; object-fit: cover; }

.answer-box, .source-note, .safety-note { margin: 34px 0; padding: 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.answer-box h2, .source-note h2, .safety-note h2 { margin-top: 0; }
.answer-box ul, .check-list { margin-bottom: 0; padding-left: 1.25rem; }

.case-main h2 { margin: 58px 0 18px; font: 700 clamp(1.45rem, 3vw, 2rem)/1.45 var(--serif); color: var(--moss); }
.case-main h3 { margin: 0 0 8px; font: 700 1.15rem/1.5 var(--serif); }
.case-main p { margin: 0 0 18px; }

.decision-table { width: 100%; border-collapse: collapse; margin: 18px 0 30px; font-size: .94rem; }
.decision-table th, .decision-table td { padding: 15px 14px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.decision-table th { background: #f2ebdf; font-weight: 700; }

.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.story-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.story-card p { flex: 1; color: #55504a; }
.story-source { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: .86rem; font-weight: 700; text-decoration: none; }
.story-source::after { content: "↗"; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-item p { margin-bottom: 0; }

.case-cta { margin-top: 58px; padding: 34px; border-radius: 22px; color: #fff; background: var(--moss); text-align: center; }
.case-cta h2 { margin-top: 0; color: #fff; }
.case-cta p { max-width: 650px; margin: 0 auto 22px; }
.case-cta a { display: inline-block; padding: 12px 24px; border-radius: 999px; color: var(--moss); background: #fff; font-weight: 700; text-decoration: none; }

.case-footer { padding: 34px 16px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; text-align: center; font-size: .82rem; }
.case-footer nav { margin-bottom: 8px; }
.case-footer a { margin: 0 8px; text-decoration: none; }

.retired-main { width: min(680px, calc(100% - 32px)); min-height: 65vh; margin: 0 auto; padding: 110px 0; text-align: center; }
.retired-main h1 { font: 700 clamp(1.8rem, 5vw, 2.7rem)/1.4 var(--serif); }
.retired-main p { color: var(--muted); }
.retired-main a { display: inline-block; margin-top: 18px; padding: 12px 24px; border-radius: 999px; color: #fff; background: var(--moss); font-weight: 700; text-decoration: none; }

@media (max-width: 720px) {
  .case-nav { min-height: 58px; }
  .case-logo img { height: 34px; }
  .case-links a:nth-child(-n+2) { display: none; }
  .case-main { padding-top: 42px; }
  .story-grid { grid-template-columns: 1fr; }
  .decision-table { display: block; overflow-x: auto; }
  .answer-box, .source-note, .safety-note { padding: 22px; }
}

/* A second link appears only where a story offers both a purchase page and a
   reading page; a + a leaves every single-link CTA exactly as it was. */
.case-cta a + a { margin-inline-start: 10px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
@media (max-width: 560px) { .case-cta a + a { margin: 12px 0 0; } }
