/* 澳打指南針 — 簡約檸檬布紋風
   淡藍奶油條紋・手繪檸檬・柔和紙張卡片
   永久免費・開源・只接受自願贊助 */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif TC", serif;
  --bg: #e8f0f3;            /* 淡藍布底 */
  --surface: #fffdf5;       /* 奶油紙張 */
  --ink: #27342e;
  --ink-soft: #5d6963;
  --line: #53645b;
  --line-soft: #cbd8d2;
  --accent: #75520b;        /* 深芥末：白字仍達 AA */
  --link: #315e50;
  --accent-soft: #fff0b2;
  --on-accent: #ffffff;
  --on-gold: #27342e;
  --on-green: #ffffff;
  --green: #4b6756;
  --green-ink: #3d5949;
  --green-soft: #e2ebe4;
  --gold: #dfb42d;
  --gold-soft: #fff3c5;
  --blue: #668da7;
  --blue-soft: #dceaf0;
  --stripe: #cfdee5;
  --stripe-soft: #f8f5eb;
  --danger: #b83232;
  --danger-soft: #f6dede;
  --radius: 20px;
  --shadow-pop: 0 10px 26px color-mix(in srgb, var(--ink) 14%, transparent);
  --shadow-pop-sm: 0 5px 14px color-mix(in srgb, var(--ink) 13%, transparent);
  --maxw: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #172329;
    --surface: #223138;
    --ink: #f3f1e7;
    --ink-soft: #b5c0ba;
    --line: #a9b7b0;
    --line-soft: #3d4d50;
    --accent: #edc65a;
    --link: #f0cf70;
    --accent-soft: #41391f;
    --green: #9bb5a2;
    --green-ink: #acd0b8;
    --green-soft: #263a32;
    --gold: #efc74e;
    --gold-soft: #3c351d;
    --blue: #93b9cc;
    --blue-soft: #263a44;
    --stripe: #21343e;
    --stripe-soft: #18262d;
    --danger: #d97070;
    --danger-soft: #382020;
    --on-accent: #1d2925;
    --on-gold: #1d2925;
    --on-green: #172329;
    --shadow-pop: 0 10px 28px rgba(0, 0, 0, .3);
    --shadow-pop-sm: 0 5px 16px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    url("lemon-pattern.svg"),
    repeating-linear-gradient(90deg, var(--stripe) 0 54px, var(--stripe-soft) 54px 108px);
  background-size: 520px 360px, auto;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* 手工紙微質地 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
main p a:not(.btn), main li a:not(.btn), .site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1001;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .12s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 標題：簡單、溫柔、有手寫布標感 ---------- */
h1, h2, .page-title, .brand {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: .01em;
  font-feature-settings: "palt", "kern";
}
h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  margin: 2.4em 0 .6em;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: .35em;
}
h2::before {
  content: "";
  flex-shrink: 0;
  width: .55em; height: .55em;
  margin-top: .38em;
  background: var(--gold);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 62% 38% 58% 42% / 50% 54% 46% 50%;
  transform: rotate(-12deg);
}
main h2:nth-of-type(3n+2)::before { background: var(--gold); border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
main h2:nth-of-type(3n)::before   { background: var(--gold); border-radius: 60% 40% 50% 50% / 45% 55% 45% 55%; }
h3 { font-size: 1.16rem; margin: 1.9em 0 .5em; font-weight: 800; }
p { margin: .7em 0; }
ul, ol { padding-left: 1.4em; }
li { margin: .4em 0; }

.page-title {
  margin: 18px 0 6px;
  font-size: clamp(1.9rem, 5.2vw, 2.9rem);
  line-height: 1.25;
}
.page-sub { color: var(--ink-soft); margin-top: 0; font-size: 1.02rem; }

/* ---------- 導覽 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--ink) 9%, transparent);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 5px; flex-wrap: wrap; }
.nav-links a {
  padding: 5px 12px;
  border-radius: 99px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform .12s ease;
}
.nav-links a:hover {
  border-color: var(--line);
  background: var(--gold-soft);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-links a.active {
  background: var(--green);
  color: var(--on-green);
  font-weight: 700;
}
.site-search-open,
.site-search-close {
  min-width: 44px;
  min-height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}
.site-search-open:hover,
.site-search-close:hover { background: var(--gold-soft); }
.site-search-open .icon,
.site-search-close .icon { width: 20px; height: 20px; }

/* ---------- 全站搜尋 ---------- */
.site-search-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(82vh, 760px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 28px 80px color-mix(in srgb, #000 42%, transparent);
  overflow: auto;
}
.site-search-dialog::backdrop { background: color-mix(in srgb, var(--ink) 66%, transparent); backdrop-filter: blur(4px); }
.site-search-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
}
.site-search-head .section-eyebrow { display: block; margin: 0 0 2px; }
.site-search-head h2 { margin: 0; font-size: 1.5rem; }
.site-search-head h2::before { display: none; }
.site-search-close { flex: 0 0 44px; padding: 8px; }
.site-search-body { padding: 22px; }
.site-search-form,
.site-search-home-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.site-search-form input,
.site-search-home-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
}
.site-search-form .btn,
.site-search-home-form .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.site-search-form .btn .icon,
.site-search-home-form .btn .icon { width: 19px; height: 19px; }
.site-search-quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.site-search-quick > span { color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.site-search-quick .chip { min-height: 38px; }
.site-search-privacy { color: var(--ink-soft); font-size: .78rem; margin: 12px 0 0; }
.site-search-status { margin: 20px 0 10px; font-weight: 800; }
.site-search-results-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-search-results-list li { margin: 0; }
.site-search-results-list a {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}
.site-search-results-list a:hover { border-color: var(--accent); background: var(--gold-soft); }
.site-search-result-page { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .04em; }
.site-search-results-list strong { font-family: var(--font-serif); font-size: 1.04rem; }
.site-search-result-snippet { color: var(--ink-soft); font-size: .85rem; line-height: 1.65; }
.site-search-empty { padding: 18px; border: 2px dashed var(--line); border-radius: 14px; background: var(--bg); }
.site-search-empty strong { font-family: var(--font-serif); }
.site-search-empty .btn { min-height: 44px; }

.site-search-home {
  margin: 26px 0;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--blue-soft);
  box-shadow: var(--shadow-pop);
}
.site-search-home h2 { margin: .25em 0 .35em; }
.site-search-home > p:not(.section-eyebrow) { max-width: 760px; color: var(--ink-soft); }
.site-search-home-form { margin-top: 18px; max-width: 780px; }

/* ---------- 多國語言入口與 Quick Start ---------- */
.language-picker { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.language-picker select {
  min-height: 44px;
  max-width: 170px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  padding: 7px 34px 7px 12px;
  cursor: pointer;
}
.language-go {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.language-go:hover { filter: brightness(.97); }
.language-go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.language-hub-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}
.i18n-page main { min-height: 65vh; }
.i18n-hero { max-width: 820px; margin-bottom: 26px; }
.i18n-translation-note { margin: 18px 0 28px; }
.language-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 24px 0 38px; }
.language-card { min-height: 132px; display: block; }
.language-card h3 { margin-top: 0; }
.language-card p { color: var(--ink-soft); margin: 5px 0; }
.language-card small { color: var(--ink-soft); font-size: .74rem; }
.i18n-guide-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 18px 0 30px; }
.i18n-guide-card { min-height: 128px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.i18n-guide-card h3 { margin: 0; }
.i18n-guide-copy { display: block; }
.i18n-guide-card .i18n-guide-copy small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.i18n-guide-card > span[aria-hidden="true"] { font-size: 1.4rem; }
.i18n-review { margin-top: 30px; }
.i18n-review h2 { margin-top: 0; }
[dir="rtl"] .i18n-page { text-align: right; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .i18n-guide-card > span[aria-hidden="true"] { transform: scaleX(-1); }

/* ---------- GA4 同意與設定 ---------- */
.analytics-consent {
  position: fixed;
  z-index: 1002;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  max-width: 880px;
  margin-inline: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 22px 70px color-mix(in srgb, #000 34%, transparent);
}
.analytics-consent[hidden] { display: none; }
.analytics-consent-copy { min-width: 0; }
.analytics-consent-copy strong { font-family: var(--font-serif); }
.analytics-consent-copy p { margin: 3px 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }
.analytics-consent-copy a { font-size: .78rem; text-decoration: underline; }
.analytics-consent-actions { flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }
.analytics-consent-actions .btn { min-height: 44px; }
.analytics-settings {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 0;
}
.analytics-privacy { background: var(--blue-soft); }

/* ---------- 版面 ---------- */
main { max-width: var(--maxw); margin: 26px auto 52px; padding: 42px 38px 72px; }
body:not(.home-page) main {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 36%, transparent);
  border-radius: 32px;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 11%, transparent);
}
body:not(.home-page) main > h2 {
  margin: 42px -14px 18px;
  padding: 13px 14px;
  border-left: 5px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: var(--blue-soft);
}
body:not(.home-page) main > h2:nth-of-type(3n + 2) {
  border-left-color: var(--green);
  background: var(--green-soft);
}
body:not(.home-page) main > h2:nth-of-type(3n) {
  border-left-color: var(--gold);
  background: var(--gold-soft);
}
body:not(.home-page) main > p { max-width: 76ch; }
.home-page {
  background-color: var(--bg);
}
.home-page main { max-width: 1160px; margin-top: 0; padding-inline: 20px; }
.home-page .nav-inner { max-width: 1160px; }

/* ---------- 首頁 hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  overflow: hidden;
  margin-top: 24px;
  padding: 66px 24px 48px;
  border: 1px solid color-mix(in srgb, var(--line) 38%, transparent);
  border-radius: 38px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 12%, transparent);
}
.home-page .hero { max-width: 880px; margin-inline: auto; }
.hero-cutouts {
  position: absolute;
  inset: -35px -75px -55px;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.hero-cut {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(3px 4px 0 color-mix(in srgb, var(--ink) 38%, transparent));
  will-change: transform;
}
.hero-cut path { vector-effect: non-scaling-stroke; }
.hero-lemon-shape {
  fill: var(--gold);
  stroke: color-mix(in srgb, var(--accent) 78%, var(--ink));
  stroke-width: 2.4;
}
.hero-leaf {
  fill: var(--green);
  stroke: color-mix(in srgb, var(--green) 55%, var(--ink));
  stroke-width: 2.2;
}
.hero-stem, .hero-detail {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 72%, transparent);
  stroke-width: 3;
}
.hero-cut-gold {
  width: 270px;
  left: 0;
  top: 0;
  transform: translate3d(0, var(--hero-gold-y, 0), 0) rotate(-9deg);
}
.hero-cut-gold .hero-lemon-shape { animation: hero-gold-morph 4.6s ease-in-out 1 both; }
.hero-cut-green {
  width: 235px;
  right: 0;
  bottom: 0;
  transform: translate3d(0, var(--hero-green-y, 0), 0) rotate(11deg);
}
.hero-cut-green .hero-lemon-shape {
  fill: color-mix(in srgb, var(--gold) 72%, var(--surface));
  animation: hero-green-morph 4.8s ease-in-out 1 both;
}
.hero-cut-accent {
  width: 105px;
  right: 165px;
  top: 8px;
  opacity: .62;
  transform: translate3d(0, var(--hero-accent-y, 0), 0) rotate(-18deg);
}
.hero-cut-accent .hero-slice {
  fill: var(--gold-soft);
  stroke: var(--gold);
  stroke-width: 3;
  animation: hero-accent-morph 4.2s ease-in-out 1 both;
}
.hero-cut-accent .hero-detail { stroke: color-mix(in srgb, var(--gold) 70%, var(--ink)); stroke-width: 2; }
@keyframes hero-gold-morph {
  0%, 100% { d: path("M30 130C42 73 96 38 159 44C205 49 244 78 252 121C260 167 225 211 170 220C104 231 48 200 30 151C27 143 27 136 30 130Z"); }
  45% { d: path("M28 129C44 68 100 35 161 45C211 53 247 82 252 124C257 170 222 214 166 221C101 229 44 197 28 149C26 141 26 135 28 129Z"); }
}
@keyframes hero-green-morph {
  0%, 100% { d: path("M38 120C53 70 100 45 153 51C202 57 232 88 229 128C226 170 190 201 143 206C88 211 45 184 34 145C31 136 32 127 38 120Z"); }
  52% { d: path("M35 119C52 67 103 42 155 52C205 61 234 91 228 132C222 172 188 203 140 207C85 211 42 182 32 143C30 134 31 126 35 119Z"); }
}
@keyframes hero-accent-morph {
  0%, 100% { d: path("M75 12A61 61 0 1 1 20 99Z"); }
  50% { d: path("M75 10A63 63 0 1 1 18 101Z"); }
}
.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  line-height: 1.28;
  margin: 0 0 16px;
  text-wrap: balance;
}
.hero p.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}
.hero .free-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop-sm);
  font-weight: 800; font-size: .9rem;
  padding: 7px 18px;
  border-radius: 99px;
  margin-bottom: 22px;
  transform: rotate(-.6deg) translateZ(0);
  backface-visibility: hidden;
}
.hero .free-badge .icon { color: var(--gold); }

/* 靜態承諾列：保留辨識度，不持續搶走閱讀注意力 */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  border: 1px solid color-mix(in srgb, var(--line) 42%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--gold-soft) 92%, transparent);
  color: var(--ink);
  font-weight: 800;
  margin: 24px 0 0;
  padding: 11px 18px;
}
.trust-strip span + span::before { content: "/"; margin-right: 24px; }

/* 首頁先交代資料工作，不把站長服務當成主要任務。 */
.source-model {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 18px 0 30px;
  padding: 24px 26px;
  border: 1.5px solid var(--blue);
  border-radius: 22px;
  background: color-mix(in srgb, var(--blue-soft) 76%, var(--surface));
  box-shadow: var(--shadow-pop-sm);
}
.source-model h2 { margin: .25em 0 .2em; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.source-model h2::before { display: none; }
.source-model p:last-child { max-width: 760px; margin: 0; color: var(--ink-soft); }
.source-model .btn { min-height: 44px; text-align: center; }

.editorial-method { background: color-mix(in srgb, var(--blue-soft) 70%, var(--surface)); }
.editorial-method > h2 { margin-top: .3em; }
.editorial-method > h2::before { display: none; }
.source-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.source-method-grid article {
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 15px;
  background: var(--surface);
}
.source-method-grid strong { display: block; color: var(--green-ink); }
.source-method-grid p { margin-bottom: 0; color: var(--ink-soft); font-size: .88rem; }

/* ---------- 外部社群入口 ---------- */
.community-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 34px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--line) 46%, transparent);
  border-radius: 18px;
  background: var(--green-soft);
  box-shadow: var(--shadow-pop);
}
.community-mark {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green);
}
.community-mark .icon { width: 27px; height: 27px; }
.community-callout h3 { margin: 2px 0 4px; font-family: var(--font-serif); font-size: 1.25rem; }
.community-callout p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.community-eyebrow { color: var(--green-ink); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.community-callout .btn { flex: 0 0 auto; min-height: 44px; margin-left: auto; }

@media (max-width: 700px) {
  .community-callout { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .community-callout > div { flex: 1; min-width: calc(100% - 78px); }
  .community-callout .btn { width: 100%; margin-left: 0; text-align: center; }
}

/* ---------- 回訪續接：只讀本機最近閱讀 ---------- */
.journey-resume {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 34px 0 12px;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--line) 46%, transparent);
  border-radius: var(--radius);
  background: var(--blue-soft);
  box-shadow: var(--shadow-pop);
}
.journey-resume[hidden] { display: none; }
.journey-resume-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
}
.journey-resume-mark .icon { width: 28px; height: 28px; }
.journey-resume h2 { margin: .15em 0 .25em; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.journey-resume-copy > p { margin: 0; }
.journey-resume-privacy { color: var(--ink-soft); font-size: .78rem; }
.journey-resume-actions { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.journey-resume-actions .btn { min-height: 44px; text-align: center; }

/* ---------- 我的收藏：白名單頁名只存在本機 ---------- */
.saved-pages {
  margin: 24px 0 12px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 46%, transparent);
  border-radius: var(--radius);
  background: var(--gold-soft);
  box-shadow: var(--shadow-pop);
}
.saved-pages[hidden] { display: none; }
.saved-pages-head { display: flex; align-items: flex-start; gap: 16px; }
.saved-pages-mark {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold);
}
.saved-pages-mark .icon { width: 25px; height: 25px; }
.saved-pages-head h2 { margin: .1em 0 .2em; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.saved-pages-head p { margin: 0; }
.saved-pages-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.saved-page-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 46%, transparent);
  border-radius: 12px;
  background: var(--surface);
}
.saved-page-item > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 10px 14px;
  color: var(--ink);
  line-height: 1.45;
}
.saved-page-item > a:hover { background: var(--blue-soft); text-decoration: none; }
.saved-page-item > a span { color: var(--green-ink); font-size: .74rem; font-weight: 900; }
.saved-page-item > a strong { font-family: var(--font-serif); font-size: .98rem; }
.saved-page-remove {
  min-width: 68px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}
.saved-page-remove:hover { background: var(--danger-soft); color: var(--danger); }
.saved-pages-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.saved-pages-actions p { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.saved-pages-actions .btn { flex-shrink: 0; min-height: 44px; }

/* ---------- 緊急安全出口：比一般導覽更早出現 ---------- */
.support-hub {
  margin: 28px 0 18px;
  padding: 28px;
  border: 2px solid color-mix(in srgb, var(--danger) 76%, var(--ink));
  border-radius: 24px;
  background: color-mix(in srgb, var(--danger-soft) 64%, var(--surface));
  box-shadow: var(--shadow-pop);
}
.support-hub h2 { margin: .25em 0 .25em; }
.support-hub-intro { margin: 0; color: var(--ink-soft); }
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.support-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 88px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: transform .12s ease, background .12s ease;
}
.support-link:hover { transform: translateY(-2px); background: var(--gold-soft); text-decoration: none; }
.support-link .icon { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px; color: var(--link); }
.support-link span, .support-link strong, .support-link small { display: block; }
.support-link strong { line-height: 1.45; }
.support-link small { margin-top: 3px; color: var(--ink-soft); font-size: .76rem; line-height: 1.45; }
.support-emergency { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .86rem; }

.problem-directory-intro {
  max-width: 780px;
  margin: 48px auto 20px;
  text-align: center;
}
.problem-directory-intro h2 { margin: .32em 0 .35em; }
.problem-directory-intro p:last-child { margin: 0; color: var(--ink-soft); }

/* ---------- 首頁旅程索引 ---------- */
.journey-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.journey-directory a {
  display: flex;
  align-items: center;
  min-height: 62px;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 800;
}
.journey-directory a + a { border-left: 1px solid var(--line-soft); }
.journey-directory a:hover { background: var(--accent-soft); text-decoration: none; }
.journey-directory span {
  color: var(--link);
  font-family: var(--font-serif);
  font-size: .82rem;
}
.journey-phase {
  scroll-margin-top: 90px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-pop);
}
.journey-phase + .journey-phase { margin-top: 24px; }
#considering { background: color-mix(in srgb, var(--blue-soft) 68%, var(--surface)); }
#committed { background: color-mix(in srgb, var(--gold-soft) 62%, var(--surface)); }
#in-australia { background: color-mix(in srgb, var(--green-soft) 62%, var(--surface)); }
.section-eyebrow {
  margin: 0 0 -4px;
  color: var(--green-ink);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.journey-phase h2 { margin-top: .35em; }
.journey-phase .card-grid { margin-top: 20px; }
.problem-category {
  display: block;
  margin: 2px 0 8px;
  color: var(--green-ink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.card-action {
  display: block;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: var(--link);
  font-size: .8rem;
  font-weight: 900;
}

.route-guide {
  margin: 24px 0 38px;
  border: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.route-guide summary {
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 900;
}
.route-guide-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--line-soft);
}
.route-guide-body h3 { margin: 18px 0 10px; font-size: 1rem; }
.route-guide-body > p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .84rem; }
.route-guide-links { display: flex; flex-wrap: wrap; gap: 8px; }
.route-guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
}
.route-guide-links a:hover { background: var(--gold-soft); text-decoration: none; }

/* ---------- 卡片：奶油紙張與檸檬色布標 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.card {
  display: block;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 48%, transparent);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--gold) 0 68%, var(--green) 68% 100%);
  opacity: .78;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--ink) 17%, transparent);
  text-decoration: none;
}
.card .card-emoji {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 55% 45% 50% 50% / 48% 55% 45% 52%;
  border: 1px solid var(--line);
  background: var(--gold-soft);
  color: var(--accent);
}
.card-grid .card:nth-child(3n+2) .card-emoji { background: var(--green-soft); color: var(--green); }
.card-grid .card:nth-child(3n) .card-emoji { background: var(--blue-soft); color: var(--blue); }
.card .card-emoji .icon { width: 1.6em; height: 1.6em; }
.card h3 { margin: .6em 0 .35em; font-family: "Noto Serif TC", serif; font-weight: 900; }
.card p { color: var(--ink-soft); font-size: .93rem; margin: 0; line-height: 1.7; }

/* ---------- 首頁主打工具 ---------- */
.featured-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 36px;
  margin: 24px 0 32px;
  padding: 30px 38px;
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: 24px;
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--ink) 18%, transparent);
}
.featured-tool:hover { text-decoration: none; transform: translateY(-2px); }
.featured-tool-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.featured-tool .section-eyebrow { color: var(--on-green); }
.featured-tool strong { font-family: var(--font-serif); font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.35; }
.featured-tool-copy > span:not(.section-eyebrow):not(.featured-tool-cta) { color: color-mix(in srgb, var(--on-green) 84%, transparent); }
.featured-tool-cta {
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--gold);
  color: var(--on-green);
  font-weight: 900;
}
.featured-poster-preview {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 230px;
  padding: 24px 20px;
  border: 2px solid var(--bg);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--gold);
  transform: rotate(2deg) translateZ(0);
}
.featured-poster-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 900; }
.featured-poster-line { display: block; width: 68%; height: 7px; border-radius: 99px; background: var(--green); }
.featured-poster-line-long { width: 100%; background: var(--accent); }
.featured-poster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.featured-poster-grid i { display: block; height: 48px; border: 2px solid var(--ink); border-radius: 8px; background: var(--surface); }

.panel {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-pop);
  margin: 22px 0;
}

/* ---------- 資訊框：色紙便條 ---------- */
.note, .warn, .tip {
  border-radius: 14px;
  padding: 15px 18px;
  margin: 18px 0;
  font-size: .96rem;
  border: 2px solid;
}
.note { background: var(--blue-soft); border-color: var(--blue); }
.warn { background: var(--danger-soft); border-color: var(--danger); }
.tip  { background: var(--green-soft); border-color: var(--green); }

/* ---------- 事實區塊 ---------- */
.fact-meta { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.fact-meta a { color: var(--ink-soft); text-decoration: underline; }
.updated-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--on-gold);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 1px 9px;
  font-size: .76rem;
  font-weight: 800;
  margin-left: 8px;
  vertical-align: middle;
  transform: rotate(-2deg) translateZ(0);
  backface-visibility: hidden;
}

/* ---------- 分層證據卡：先行動，再看依據 ---------- */
.evidence-card {
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  border: 2px solid var(--green);
  border-radius: 18px;
  background: color-mix(in srgb, var(--green-soft) 58%, var(--surface));
  box-shadow: 6px 7px 0 color-mix(in srgb, var(--green) 24%, transparent);
}
.evidence-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--gold);
}
.evidence-card__body { padding: 22px 24px 18px 30px; }
.evidence-card__label {
  margin: 0 0 6px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.evidence-card h2 {
  display: block;
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}
.evidence-card h2::before { display: none; }
.evidence-card__reason { margin: 12px 0 16px; }
.evidence-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.evidence-card__meta li {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--green) 38%, var(--line-soft));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink-soft);
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.evidence-card__meta li > span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.evidence-card__meta a { font-weight: 800; }
.evidence-card__basis {
  margin: 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--green) 38%, var(--line-soft));
  border-radius: 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: none;
}
.evidence-card__basis summary { padding: 14px 24px 14px 30px; }
.evidence-card__basis > p { padding: 0 24px 18px 30px; }
.evidence-card[data-evidence-status="stale"] {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: 6px 7px 0 color-mix(in srgb, var(--danger) 22%, transparent);
}
.evidence-card[data-evidence-status="stale"]::before { background: var(--danger); }
.evidence-card[data-evidence-status="stale"] .evidence-card__label { color: var(--danger); }

/* ---------- 檸檬圖文：文字本身就是完整資訊 ---------- */
.lemon-diagram {
  margin: 22px 0;
  padding: 20px;
  border: 2px solid var(--blue);
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-soft) 84%, transparent), color-mix(in srgb, var(--surface) 90%, transparent));
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--blue) 20%, transparent);
}
.lemon-diagram__eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.lemon-diagram .lemon-diagram__title {
  display: block;
  margin: 0 0 15px;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}
.lemon-diagram .lemon-diagram__title::before { display: none; }
.lemon-choice-map,
.lemon-flow,
.lemon-risk-map,
.lemon-check-map {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lemon-choice-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lemon-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: lemon-step; }
.lemon-risk-map,
.lemon-check-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lemon-flow > li,
.lemon-risk-map > li,
.lemon-check-map > li,
.lemon-choice-map a {
  position: relative;
  min-width: 0;
  padding: 66px 15px 15px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 42%, var(--line-soft));
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.lemon-choice-map a {
  display: block;
  min-height: 100%;
  color: var(--ink);
}
.lemon-choice-map a:hover { text-decoration: none; transform: translateY(-2px); }
.lemon-flow > li::before,
.lemon-risk-map > li::before,
.lemon-check-map > li::before,
.lemon-choice-map a::before {
  position: absolute;
  top: 13px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 54% 46% 52% 48% / 45% 53% 47% 55%;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-serif);
  font-weight: 900;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 22%, transparent);
  transform: rotate(-5deg);
}
.lemon-flow > li { counter-increment: lemon-step; }
.lemon-flow > li::before { content: counter(lemon-step); }
.lemon-risk-map > li::before,
.lemon-check-map > li::before { content: attr(data-mark); }
.lemon-choice-map a::before { content: ""; }
.lemon-flow > li::after,
.lemon-risk-map > li::after,
.lemon-check-map > li::after,
.lemon-choice-map a::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 48px;
  width: 17px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 100% 0 100% 0;
  background: var(--green);
  transform: rotate(-22deg);
}
.lemon-choice-map span,
.lemon-choice-map strong,
.lemon-choice-map small,
.lemon-flow span,
.lemon-flow strong,
.lemon-risk-map span,
.lemon-risk-map strong,
.lemon-check-map span,
.lemon-check-map strong { display: block; }
.lemon-choice-map > li > a > span {
  margin-bottom: 5px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 900;
}
.lemon-choice-map strong,
.lemon-flow strong,
.lemon-risk-map strong,
.lemon-check-map strong { margin-bottom: 5px; font-size: .98rem; }
.lemon-choice-map small,
.lemon-flow span,
.lemon-risk-map span,
.lemon-check-map span { color: var(--ink-soft); font-size: .84rem; line-height: 1.6; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-pop-sm);
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { border-bottom: 1.5px solid var(--line-soft); padding: 11px 14px; text-align: left; vertical-align: top; }
th { background: var(--ink); color: var(--bg); white-space: nowrap; font-weight: 700; }
tbody th { background: var(--accent-soft); color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--line-soft) 30%, transparent); }

/* ---------- 工作表 ---------- */
.worksheet-q { margin: 28px 0; }
.worksheet-q label { display: block; font-weight: 800; margin-bottom: 4px; font-size: 1.05rem; }
.worksheet-q .q-hint { color: var(--ink-soft); font-size: .88rem; margin: 0 0 8px; }
.worksheet-q textarea {
  width: 100%;
  min-height: 92px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  resize: vertical;
}
.worksheet-q textarea:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.ws-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 8px; }
.ws-status { font-size: .85rem; color: var(--green); min-height: 1.4em; font-weight: 700; }

/* ---------- 自我釐清雙模式 ---------- */
.reflection-quiz { padding: 28px; }
.reflection-quiz > h2 { margin-top: 8px; }
.quick-question {
  min-width: 0;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--stripe-soft));
}
.quick-question legend {
  width: 100%;
  padding: 0;
  font-weight: 800;
  line-height: 1.55;
}
.quick-number {
  display: inline-grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.quick-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.quick-option {
  display: flex;
  min-width: 0;
  min-height: 76px;
  padding: 9px 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.quick-option:hover { transform: translateY(-1px); border-color: var(--accent); }
.quick-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.quick-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.quick-option input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--accent); }
.quick-option b { font: 900 1.05rem var(--font-serif); color: var(--accent); }
.quick-option span { font-size: .72rem; line-height: 1.25; color: var(--ink-soft); }
.quick-result { scroll-margin-top: 170px; }
.quick-result:focus { outline: none; }
.quick-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.quick-axis-card {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}
.quick-axis-card h4 { margin: 0 0 5px; }
.quick-axis-card > b { display: block; color: var(--accent); font: 900 1.35rem var(--font-serif); }
.quick-axis-card > span { display: block; min-height: 1.5em; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.quick-axis-bar { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: var(--line-soft); }
.quick-axis-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.quick-next { padding-top: 4px; border-top: 1px dashed var(--line); }
.quick-next p { margin: 10px 0; }
.reflection-framework { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reflection-framework .card { padding: 20px; }
.reflection-framework .card h3 { margin-top: 0; }
.source-note {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--green-soft);
  font-size: .88rem;
}
.source-note p { margin: 0 0 10px; }
.source-note p:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  .reflection-quiz { padding: 20px 14px; }
  .quick-question { padding: 15px 10px; }
  .quick-scale { gap: 5px; }
  .quick-option { min-height: 72px; padding-inline: 2px; }
  .quick-option span { font-size: .65rem; }
  .quick-result-grid, .reflection-framework { grid-template-columns: 1fr; }
}

.btn {
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 12px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-pop-sm);
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .15s cubic-bezier(.34, 1.56, .64, 1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ink) 18%, transparent);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { box-shadow: var(--shadow-pop-sm); }

/* ---------- 摺疊 ---------- */
details {
  border: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 14px;
  background: var(--surface);
  margin: 12px 0;
  padding: 0;
  transition: box-shadow .15s ease;
}
details[open] { box-shadow: var(--shadow-pop-sm); }
details summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 18px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "";
  display: inline-block;
  width: .5em; height: .5em;
  margin-right: .5em;
  background: var(--accent);
  border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%;
  transition: transform .2s ease;
}
details[open] summary::before { transform: rotate(135deg); background: var(--green); }
details .details-body { padding: 0 20px 16px; }
details[open] .details-body { animation: reveal .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 頁尾 ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  margin-top: 50px;
  padding: 32px 20px 44px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .88rem;
}
.site-footer .foot-inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer .disclaimer {
  font-size: .8rem;
  max-width: 640px;
  margin: 14px auto 0;
  line-height: 1.7;
}

/* ---------- 目錄 ---------- */
.toc {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: .92rem;
  margin: 24px 0;
}
.toc strong { display: block; margin-bottom: 6px; font-family: "Noto Serif TC", serif; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 4px 8px 4px 0;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  font-weight: 500;
}
.toc a:hover { background: var(--gold); color: #221d15; text-decoration: none; }

/* ---------- SVG 圖示 ---------- */
.icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
}
.brand .logo { color: var(--accent); display: inline-flex; }
.brand .logo .icon { width: 1.5em; height: 1.5em; }
h2 .icon, h3 .icon { color: var(--accent); margin-right: 2px; }
.free-badge .icon { width: 1em; height: 1em; }

/* ---------- 互動工具 ---------- */
.tool {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 26px 0;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 15%, transparent);
  position: relative;
}
.tool h3 { margin-top: 4px; font-family: "Noto Serif TC", serif; font-weight: 900; }
.tool .tool-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 3px 12px;
  margin-bottom: 6px;
  transform: rotate(-1.5deg);
}
.tool-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.tool-row label { font-weight: 800; min-width: 7.5em; font-size: .95rem; }
.tool-row output { font-weight: 900; color: var(--accent); min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.tool input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--accent); height: 6px; }
.tool select, .tool input[type="number"], .tool input[type="text"] {
  font: inherit; padding: 8px 12px; border-radius: 10px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
}
.tool select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23221d15' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 38px;
}
@media (prefers-color-scheme: dark) {
  .tool select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f0e8da' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}
.tool input[type="text"], .tool input[type="number"] { width: 8em; }
.tool select:focus-visible, .tool input:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.result-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 16px;
}
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; text-align: center; }
.result-grid .stat b {
  display: block;
  font-size: 1.45rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
}
.result-grid .stat span { font-size: .8rem; color: var(--ink-soft); }
.result-verdict { margin: 12px 0 0; font-weight: 800; text-align: center; }
.result-ok { color: var(--green); }
.result-no { color: var(--danger); }

/* 進度條 */
.progress-wrap {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 99px;
  height: 18px;
  overflow: hidden;
  margin: 10px 0;
}
.progress-bar {
  background: var(--green);
  border-radius: 99px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15);
  height: 100%; width: 0%;
  transition: width .4s ease;
}
.progress-label { font-size: .88rem; color: var(--ink-soft); text-align: right; font-weight: 700; }

/* ---------- 行前海報 ---------- */
.poster-maker { margin-top: 24px; }
.poster-source-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.poster-source-links a {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.poster-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.poster-actions .btn { min-height: 44px; }
.poster-preview { margin: 20px 0 0; }
.poster-preview img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-pop-sm);
}
.poster-preview figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .82rem; }

/* 互動清單 */
.icheck { list-style: none; padding: 0; }
.icheck li { margin: 0; }
.icheck label {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: .96rem;
}
.icheck label:hover { background: var(--gold-soft); }
.icheck input[type="checkbox"] { accent-color: var(--green); width: 19px; height: 19px; margin-top: 3px; flex-shrink: 0; }
.icheck input:checked + span { color: var(--ink-soft); text-decoration: line-through; }
.leave-checklist { margin: 12px 0; }
.leave-checklist li + li { border-top: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.checklist-complete {
  padding: 14px 16px;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--green-soft);
}

/* 測驗 */
.quiz-scenario {
  font-size: 1.05rem;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 14px 0;
  font-weight: 500;
}
.quiz-btns { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.quiz-btns[hidden] { display: none; }
.quiz-btns .btn { flex: 1; min-width: 130px; }
.quiz-feedback { border-radius: 12px; padding: 14px 17px; margin: 12px 0; font-size: .96rem; display: none; border: 2px solid; }
.quiz-feedback.good { display: block; background: var(--green-soft); border-color: var(--green); }
.quiz-feedback.bad { display: block; background: var(--danger-soft); border-color: var(--danger); }
.quiz-progress { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }

/* ---------- 快選籤（減少打字） ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chip-row .chip-label { font-size: .82rem; color: var(--ink-soft); font-weight: 700; align-self: center; }
.chip {
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform .1s ease, background .1s ease;
}
.chip:hover { background: var(--gold); color: #221d15; transform: translateY(-1px); }
.chip:active { transform: translateY(1px); }

/* ---------- 採收季節月曆 ---------- */
.season-months {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 18px;
}
.season-months .chip { width: 100%; min-height: 42px; padding-inline: 8px; }
.season-months .chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--on-accent);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(-1px, -1px);
}
.season-summary { margin: 0 0 12px; font-size: 1.05rem; }
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.season-state {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 14px;
}
.season-state.is-active { border-color: var(--green); background: var(--green-soft); }
.season-state-missing { border-style: dashed; color: var(--ink-soft); }
.season-state h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.season-state h4 span {
  display: inline-grid;
  place-items: center;
  min-width: 3.2em;
  min-height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: .76rem;
  letter-spacing: .06em;
}
.season-state ul { list-style: none; margin: 0; padding: 0; }
.season-state li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.season-state li:first-child { border-top: 0; }
.season-state li strong, .season-state li span { display: block; }
.season-state li span { margin-top: 2px; color: var(--ink-soft); font-size: .82rem; }
.season-caveat { margin: 14px 0 0; color: var(--ink-soft); font-size: .85rem; }

@media (max-width: 560px) {
  .season-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .season-grid { grid-template-columns: 1fr; }
}

/* ---------- 回饋列 ---------- */
.feedback-bar {
  max-width: var(--maxw);
  margin: 46px auto 0;
  padding: 18px 22px;
  border: 2px dashed var(--ink);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
}
.feedback-bar .fb-q { font-weight: 800; font-family: "Noto Serif TC", serif; }
.feedback-bar .fb-thanks { color: var(--green-ink); font-weight: 700; }
.feedback-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.feedback-actions .btn { min-height: 44px; }
.feedback-note { flex: 1 1 100%; margin: 0; color: var(--ink-soft); font-size: .78rem; }
.gratitude-panel { background: var(--green-soft); }
.gratitude-panel h3 { margin-top: 0; font-family: var(--font-serif); }
.gratitude-note { color: var(--ink-soft); font-size: .88rem; }
.gratitude-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.gratitude-actions .btn { min-height: 44px; }
.private-contact { margin-top: 22px; background: var(--blue-soft); }
.private-contact h3, .public-collaboration h3 { margin-top: 0; font-family: var(--font-serif); }
.recommendation-policy > h3:first-child { margin-top: 0; }
.governance-current {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--gold-soft);
}
.governance-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}
.governance-tier-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.governance-tier-grid h4 { margin: 7px 0 8px; font-family: var(--font-serif); font-size: 1.02rem; }
.governance-tier-grid p { margin: 0; }
.governance-checklist li + li { margin-top: 9px; }
.community-register-link { margin: -10px 0 28px; text-align: right; }
.contact-route-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.contact-route-actions .btn { min-height: 44px; }
.contact-brief { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.contact-service-state {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: var(--gold-soft);
}
.contact-brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-field { min-width: 0; }
.contact-field.full { grid-column: 1 / -1; }
.contact-field label, .brief-output > label { display: block; margin-bottom: 5px; font-weight: 800; }
.contact-field input, .contact-field select, .contact-field textarea, .brief-output textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  padding: 10px 12px;
}
.contact-field textarea, .brief-output textarea { resize: vertical; line-height: 1.65; }
.brief-privacy { margin: 14px 0; color: var(--ink-soft); font-size: .82rem; }
.brief-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}
.brief-confirm input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .25em; accent-color: var(--accent); }
.brief-output { margin-top: 18px; padding: 18px; border: 2px solid var(--green); border-radius: 14px; background: var(--surface); }
.brief-output[hidden] { display: none; }
.brief-output textarea { min-height: 260px; }
.turnstile-slot { min-height: 68px; margin: 16px 0 4px; }
.turnstile-slot[hidden] { display: none; }
#brief-submit-online[hidden] { display: none; }
.contact-receipt,
.contact-management {
  margin-top: 20px;
  padding: 18px;
  border: 2px solid var(--green);
  border-radius: 14px;
  background: var(--surface);
}
.contact-receipt[hidden] { display: none; }
.contact-receipt h4,
.contact-management h4 { margin: 0 0 10px; font-family: var(--font-serif); }
.contact-receipt dl { display: grid; gap: 8px; margin: 14px 0; }
.contact-receipt dl div { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 10px; }
.contact-receipt dt { font-weight: 800; }
.contact-receipt dd { margin: 0; overflow-wrap: anywhere; }
.btn.danger { border-color: var(--danger, #9b2c2c); color: var(--danger, #9b2c2c); background: var(--surface); }
.btn:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; transform: none; }
.dplus-task-test summary { cursor: pointer; font-family: var(--font-serif); font-weight: 800; }
.dplus-task-test summary + p { margin-top: 16px; }
.dplus-task-test #dplus-task-start[hidden] { display: none; }
#dplus-task-questions[hidden],
.dplus-task-result[hidden] { display: none; }
#dplus-task-questions fieldset {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
#dplus-task-questions legend { padding: 0 6px; font-weight: 800; }
#dplus-task-questions label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
#dplus-task-questions input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .25em; accent-color: var(--accent); }
.dplus-task-result { margin: 14px 0 0; padding-left: 1.25rem; }

/* ---------- 內容頁：上一站／全貌／下一站 ---------- */
.page-journey-nav {
  margin: 64px 0 0;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--blue-soft);
  box-shadow: var(--shadow-pop);
}
.page-journey-head { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; }
.page-journey-head .section-eyebrow { margin: 0; }
.page-journey-head > strong { font-family: var(--font-serif); font-size: 1.08rem; }
.page-journey-head > small { margin-left: auto; color: var(--ink-soft); font-size: .8rem; }
.page-journey-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.page-journey-step,
.page-journey-overview {
  min-height: 68px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.page-journey-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  line-height: 1.45;
}
.page-journey-step.next { align-items: flex-end; text-align: right; }
.page-journey-step span { color: var(--ink-soft); font-size: .74rem; font-weight: 800; }
.page-journey-step strong { font-family: var(--font-serif); font-size: .96rem; }
.page-journey-overview {
  display: grid;
  place-items: center;
  padding: 10px 16px;
  font-size: .86rem;
  font-weight: 900;
  text-align: center;
}
.page-journey-step:hover,
.page-journey-overview:hover { background: var(--gold-soft); text-decoration: none; }

/* 錨點跳轉後仍要露出標題，不被多列 sticky 導覽蓋住 */
main [id] { scroll-margin-top: 170px; }

@media (max-width: 640px) {
  .source-model { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
  .source-model .btn { width: 100%; }
  .source-method-grid { grid-template-columns: 1fr; }
  .journey-phase { padding: 22px 16px; border-radius: 20px; }
  .feedback-actions { width: 100%; margin-left: 0; }
  .feedback-actions .btn { flex: 1 1 100%; width: 100%; text-align: center; }
  .gratitude-actions .btn { flex: 1 1 100%; text-align: center; }
  .contact-brief-grid { grid-template-columns: 1fr; }
  .contact-field.full { grid-column: auto; }
  .governance-tier-grid { grid-template-columns: 1fr; }
  .community-register-link { text-align: left; }
  .contact-route-actions { align-items: stretch; flex-direction: column; }
  .contact-route-actions .btn { width: 100%; text-align: center; }
  .saved-pages { padding: 18px 16px; }
  .saved-pages-head { gap: 12px; }
  .saved-pages-mark { flex-basis: 44px; width: 44px; height: 44px; }
  .saved-pages-list { grid-template-columns: 1fr; }
  .saved-pages-actions { align-items: stretch; flex-direction: column; }
  .saved-pages-actions .btn { width: 100%; }
  .page-journey-nav { margin-top: 46px; padding: 18px 16px; }
  .page-journey-head { align-items: flex-start; }
  .page-journey-head > small { flex-basis: 100%; margin-left: 0; }
  .page-journey-links { grid-template-columns: 1fr; }
  .page-journey-step.next { align-items: flex-start; text-align: left; }
}

/* ---------- 行動版：控制列＋可水平捲動的攻略導覽 ---------- */
@media (max-width: 768px) {
  .site-header { position: static; }
  main [id] { scroll-margin-top: 24px; }
  .lemon-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 8px 14px;
    gap: 8px;
  }
  .brand {
    min-width: 0;
    min-height: 44px;
    margin-right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .language-picker select { max-width: min(130px, 32vw); }
  .site-search-open { flex: 0 0 44px; padding: 8px; }
  .site-search-open span { display: none; }
  .nav-links {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 18px 2px 2px;
    mask-image: linear-gradient(90deg, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 640px) {
  .mobile-stack { overflow: visible; border: 0; background: transparent; }
  .mobile-stack table,
  .mobile-stack tbody,
  .mobile-stack tr,
  .mobile-stack td { display: block; width: 100%; }
  .mobile-stack table { min-width: 0; }
  .mobile-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .mobile-stack tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .mobile-stack td { border: 0; border-bottom: 1px solid var(--line-soft); }
  .mobile-stack td:last-child { border-bottom: 0; }
  .mobile-stack td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  body { font-size: 15.5px; background-attachment: scroll; }
  main { padding: 26px 16px 52px; }
  body:not(.home-page) main { margin: 12px; border-radius: 24px; }
  .home-page main { margin: 0 auto; }
  .panel { padding: 18px 16px; }
  .lemon-diagram { padding: 16px; }
  .lemon-choice-map,
  .lemon-flow,
  .lemon-risk-map,
  .lemon-check-map { grid-template-columns: 1fr; }
  .evidence-card__body { padding: 19px 16px 16px 22px; }
  .evidence-card__meta { grid-template-columns: 1fr; }
  .evidence-card__basis summary { padding: 14px 16px 14px 22px; }
  .evidence-card__basis > p { padding: 0 16px 17px 22px; }
  .tool { padding: 18px 16px; }
  .hero { margin-top: 12px; padding: 46px 18px 38px; border-radius: 26px; }
  .hero-cutouts { display: none; }
  .trust-strip { justify-content: flex-start; margin: 18px 0 0; gap: 2px 12px; font-size: .88rem; }
  .trust-strip span + span::before { margin-right: 12px; }
  .journey-directory { grid-template-columns: 1fr 1fr; }
  .journey-directory a { min-height: 54px; }
  .journey-directory a + a { border-left: 0; }
  .journey-directory a:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .journey-directory a:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .journey-resume { grid-template-columns: 48px minmax(0, 1fr); padding: 18px 16px; }
  .journey-resume-mark { width: 48px; height: 48px; }
  .journey-resume-actions { grid-column: 1 / -1; justify-content: stretch; }
  .journey-resume-actions .btn { flex: 1 1 100%; width: 100%; }
  .support-hub { padding: 22px 16px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-link { min-height: 72px; }
  .problem-directory-intro { margin-top: 36px; text-align: left; }
  .route-guide-body { grid-template-columns: 1fr; padding: 0 16px 18px; }
  .route-guide-body > p { grid-column: 1; }
  .site-search-home { padding: 22px 16px; }
  .site-search-form,
  .site-search-home-form { grid-template-columns: 1fr; }
  .site-search-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); border-radius: 18px; }
  .site-search-head { padding: 14px 16px; }
  .site-search-body { padding: 16px; }
  .analytics-consent { align-items: stretch; flex-direction: column; padding: 16px; }
  .analytics-consent-actions { display: grid; grid-template-columns: 1fr; }
  .analytics-consent-actions .btn { width: 100%; }
  .home-page .card-grid { grid-template-columns: 1fr; }
  .featured-tool { grid-template-columns: 1fr; padding: 26px 22px 30px; }
  .featured-poster-preview { width: min(210px, 78%); min-height: 200px; justify-self: center; }
  .feedback-bar { margin: 36px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cut path { animation: none !important; }
  .hero-cut { transform: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .ws-actions, .trust-strip, .feedback-bar, .page-journey-nav, .saved-pages, .site-search-home, .site-search-dialog, .analytics-consent { display: none; }
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .panel, details, .card, .table-wrap, .tool, .lemon-diagram { box-shadow: none; }
}
