/* 知止觀測所 — 親和 palette: warm, friendly, approachable */
@font-face {
  font-family: "LXGW WenKai TC";
  src: local("LXGW WenKai TC"), local("霞鶩文楷 TC"), local("霞鹜文楷 TC");
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FBF6EE;
  --bg-2: #F6EFE3;
  --bg-3: #EFE4D4;
  --surface: #FFFDF8;
  --surface-2: #F3E8D8;
  --line: rgba(92, 64, 40, 0.12);
  --line-2: rgba(92, 64, 40, 0.20);
  --text: #3F382F;
  --text-2: #6B5E52;
  --text-3: #6F6257;
  --ivory: #F7F0E4;
  --sand: #D2B48C;
  --terracotta: #C4785A;
  --terracotta-dim: rgba(196, 120, 90, 0.16);
  --sage: #6B8F71;
  --sage-dim: rgba(107, 143, 113, 0.16);
  --olive: #7A8F54;
  --brick: #A65345;
  --brick-dim: rgba(166, 83, 69, 0.14);
  --bronze: #C4845A;
  --bronze-dim: rgba(196, 132, 90, 0.16);
  --jade: #6B8F71;
  --jade-dim: rgba(107, 143, 113, 0.16);
  --cinnabar: #A65345;
  --cinnabar-dim: rgba(166, 83, 69, 0.14);
  --up: #6B8F71;
  --dn: #A65345;
  --warn: #C4924A;
  --ok: #6B8F71;
  --ink: #3F382F;
  --font-sans: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans", system-ui, sans-serif;
  --font-serif: "LXGW WenKai TC", "霞鶩文楷 TC", "Noto Serif CJK TC", "Noto Serif TC", serif;
  --font-mono: "Noto Sans Mono CJK TC", "ui-monospace", "SFMono-Regular", Menlo, Consolas, monospace;
  --fs: 16px;
  --lh: 1.7;
  --wrap: 1120px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r: 16px;
  --shadow: 0 14px 40px rgba(90, 60, 40, 0.10);
  --header-h: 64px;
  --hero-ink: rgba(63, 56, 47, 0.12);
}

@media (min-width: 1024px) { :root { --fs: 17px; } }

html[data-theme="dark"] {
  --bg: #2A211C;
  --bg-2: #322824;
  --bg-3: #3C302A;
  --surface: #3A2F28;
  --surface-2: #443830;
  --line: rgba(232, 214, 190, 0.12);
  --line-2: rgba(232, 214, 190, 0.22);
  --text: #F3E6D4;
  --text-2: #CDBBA8;
  --text-3: #A39282;
  --ivory: #E8D7C0;
  --sand: #C4A882;
  --terracotta: #D4896A;
  --terracotta-dim: rgba(212, 137, 106, 0.18);
  --sage: #8FAA8A;
  --sage-dim: rgba(143, 170, 138, 0.16);
  --olive: #A3B06A;
  --brick: #D47A6A;
  --brick-dim: rgba(212, 122, 106, 0.16);
  --bronze: #D4A574;
  --bronze-dim: rgba(212, 165, 116, 0.16);
  --jade: #8FAA8A;
  --jade-dim: rgba(143, 170, 138, 0.16);
  --cinnabar: #D47A6A;
  --cinnabar-dim: rgba(212, 122, 106, 0.16);
  --up: #8FAA8A;
  --dn: #D47A6A;
  --warn: #E0B15A;
  --ok: #8FAA8A;
  --ink: #F3E6D4;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --hero-ink: rgba(243, 230, 212, 0.12);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #2A211C;
    --bg-2: #322824;
    --bg-3: #3C302A;
    --surface: #3A2F28;
    --surface-2: #443830;
    --line: rgba(232, 214, 190, 0.12);
    --line-2: rgba(232, 214, 190, 0.22);
    --text: #F3E6D4;
    --text-2: #CDBBA8;
    --text-3: #A39282;
    --ivory: #E8D7C0;
    --sand: #C4A882;
    --terracotta: #D4896A;
    --terracotta-dim: rgba(212, 137, 106, 0.18);
    --sage: #8FAA8A;
    --sage-dim: rgba(143, 170, 138, 0.16);
    --olive: #A3B06A;
    --brick: #D47A6A;
    --brick-dim: rgba(212, 122, 106, 0.16);
    --bronze: #D4A574;
    --bronze-dim: rgba(212, 165, 116, 0.16);
    --jade: #8FAA8A;
    --jade-dim: rgba(143, 170, 138, 0.16);
    --cinnabar: #D47A6A;
    --cinnabar-dim: rgba(212, 122, 106, 0.16);
    --up: #8FAA8A;
    --dn: #D47A6A;
    --warn: #E0B15A;
    --ok: #8FAA8A;
    --ink: #F3E6D4;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    --hero-ink: rgba(243, 230, 212, 0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.skip {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--terracotta); color: #FFF9F0; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 8px; }

@media (max-width: 480px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
}
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 64px 0; }
@media (max-width: 700px) { .section { padding: 48px 0; } }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--terracotta);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--terracotta); }
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.22; margin: 12px 0 16px; font-weight: 700; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.25; margin: 12px 0 12px; }
h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; margin: 0 0 8px; }
h3 { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); max-width: 36em; }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.up { color: var(--up); }
.dn { color: var(--dn); }
.warn { color: var(--warn); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header--over-hero {
  position: absolute; left: 0; right: 0; top: 0;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.home .header { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; }
.home .header.is-stuck {
  position: sticky;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom-color: var(--line);
}
.header__in {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand img, .brand__mark { width: 36px; height: 36px; display: block; flex: 0 0 36px; }
.brand__name { display: block; font-family: var(--font-serif); font-size: 18px; line-height: 1.2; }
.brand__sub { display: block; font-size: 11px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }

.nav-toggle { display: none; }
.header__tools { display: flex; align-items: center; gap: 8px; }
.theme-btn, .nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); border-radius: 10px; min-width: 44px; min-height: 44px; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
.theme-btn { font-size: 13px; padding: 0 12px; width: auto; }
.nav-btn { display: none; gap: 8px; padding: 0 10px; }
.nav-btn__text { font-size: 14px; }
.nav-btn__bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 16px; }
.nav-btn__bars span { display: block; height: 2px; background: var(--text); border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.header.is-nav-open .nav-btn__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-nav-open .nav-btn__bars span:nth-child(2) { opacity: 0; }
.header.is-nav-open .nav-btn__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-backdrop[hidden] { display: none !important; }
.nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 35;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 2px; justify-content: flex-end; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: 9px; min-height: 40px; display: inline-flex; align-items: center;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--terracotta-dim); }
.nav-more { position: relative; }
.nav-more summary {
  list-style: none; cursor: pointer;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: 9px; min-height: 40px;
  display: inline-flex; align-items: center;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more[open] summary, .nav-more summary:hover { color: var(--text); background: var(--terracotta-dim); }
.nav-more__list {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; min-width: 180px; display: grid; gap: 2px; z-index: 50;
}
.nav-more__list a { min-height: 44px; }

@media (max-width: 900px) {
  .nav-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; flex-direction: column; gap: 2px;
    z-index: 45;
  }
  .header.is-nav-open .nav { display: flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-backdrop { display: block; }
  .nav a { min-height: 44px; }
  .nav-more { width: 100%; }
  .nav-more summary { width: 100%; min-height: 44px; }
  .nav-more__list { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
}

/* Banner */
.banner {
  background: linear-gradient(90deg, var(--brick-dim), var(--bronze-dim));
  border-bottom: 1px solid color-mix(in srgb, var(--brick) 35%, transparent);
  color: var(--text);
  padding: 10px 0;
  font-size: 14px;
}
.banner__in { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.pill--alert { border-color: color-mix(in srgb, var(--brick) 50%, transparent); color: var(--brick); background: var(--brick-dim); }
.pill--ok { border-color: color-mix(in srgb, var(--sage) 50%, transparent); color: var(--sage); background: var(--sage-dim); }
.pill--wait { border-color: color-mix(in srgb, var(--bronze) 50%, transparent); color: var(--bronze); background: var(--bronze-dim); }
.test-status {
  display: inline-block; margin: 6px 0 0 0; vertical-align: middle;
  letter-spacing: 0; font-weight: 700; white-space: nowrap;
}
h2:has(.test-status), h3:has(.test-status) {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  min-width: 0;
}
h2 .test-status, h3 .test-status { font-size: 12px; font-weight: 700; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.dot--on { background: var(--sage); box-shadow: 0 0 0 4px var(--sage-dim); }
.dot--off { background: var(--brick); box-shadow: 0 0 0 4px var(--brick-dim); }
.dot--wait { background: var(--warn); }

/* Hero (home, video-like opening) */
.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.hero-stage__art {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-stage__art svg { width: 100%; height: 100%; display: block; }
.hero-curve {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-curve 3.2s ease forwards 0.3s;
}
.hero-curve--soft {
  stroke: var(--sage);
  stroke-width: 1.6;
  opacity: .7;
  animation-delay: 1.1s;
  animation-duration: 3.6s;
}
.hero-grid-line {
  stroke: var(--hero-ink);
  stroke-width: 1;
  opacity: 0;
  animation: fade-line 1.6s ease forwards;
}
.hero-orb {
  fill: url(#heroSun);
  opacity: 0.7;
  animation: orb-breathe 8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes draw-curve {
  to { stroke-dashoffset: 0; }
}
@keyframes fade-line {
  to { opacity: 1; }
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.06); opacity: .8; }
}
.hero-stage__copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 24px) 0 48px;
}
.hero-stage h1 { margin: 12px 0 14px; }
.hero-badge {
  display: inline-flex; align-items: center;
  border: 1px solid color-mix(in srgb, var(--brick) 45%, transparent);
  background: var(--brick-dim);
  color: var(--brick);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  margin: 0 0 16px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  max-width: 28em;
  margin: 0 0 8px;
}
.hero-slogan {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-1);
  margin: 0 0 8px;
}
.section h1, .live-head h1 {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.35;
  margin: 0 0 8px;
}
.hero-cite {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 8px;
}

.observe-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  width: 100%;
  max-width: 100%;
}
.observe-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-decoration: none; color: var(--text);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 129px;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(90, 60, 40, 0.06);
}
.observe-tile:hover { border-color: var(--line-2); color: var(--text); }
.observe-tile__icon { font-size: 24px; line-height: 1; }
.observe-tile__name-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  width: 100%;
}
.observe-tile__name {
  font-family: var(--font-serif); font-weight: 700; font-size: 18px; line-height: 1.3;
  letter-spacing: 0.01em;
}
.observe-tile__tag {
  display: inline-flex; align-items: center;
  border: 1px solid color-mix(in srgb, var(--sage) 50%, transparent);
  background: var(--sage-dim);
  color: var(--sage);
  border-radius: 999px;
  padding: 1px 7px;
  font-family: var(--font-sans, inherit);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  line-height: 1.4;
}
.observe-tile__desc {
  font-size: 13px; color: var(--text-2); line-height: 1.4;
  margin-top: 2px;
}
.observe-tile__date { font-size: 13px; color: var(--text-2); line-height: 1.3; }
@media (min-width: 701px) {
  /* Lift the hero copy so the empty band above the title is about half as tall. */
  .hero-stage { padding-bottom: 18vh; }
}
@media (max-width: 700px) {
  .observe-tiles { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .observe-tile { padding: 10px 12px; min-height: 0; gap: 2px; }
  .observe-tile__icon { font-size: 20px; }
  .observe-tile__name { font-size: 14px; }
  .observe-tile__desc { display: none; }
  .hero-stage__copy { padding: calc(var(--header-h) + 16px) 0 28px; }
  .hero-stage .scroll-hint { display: none; }
}
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 12px; letter-spacing: .12em;
  margin-top: 28px;
}
.scroll-hint__taiji, .taiji-spin {
  width: 36px; height: 36px; display: block;
  animation: taiji-turn 18s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes taiji-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.page-hero { padding: clamp(32px, 6vw, 56px) 0 24px; }
.page-hero .lead { margin-bottom: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line-2); text-decoration: none; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--text); font-family: inherit; font-size: 15px;
}
.btn--primary { background: var(--terracotta); color: #FFF9F0; border-color: var(--terracotta); }
.btn--primary:hover { filter: brightness(1.05); color: #FFF9F0; }
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px;
}
.stat-strip--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
@media (max-width: 800px) { .stat-strip, .stat-strip--two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-strip--two { grid-template-columns: 1fr; } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat--big { padding: 22px 20px; }
.stat__icon { font-size: 22px; line-height: 1; margin-bottom: 8px; }
.stat__k { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.stat__v { font-family: var(--font-serif); font-size: 24px; margin-top: 4px; line-height: 1.25; overflow-wrap: break-word; }
.stat--big .stat__v { font-size: clamp(28px, 4.5vw, 40px); }
.stat__s { color: var(--text-2); font-size: 13px; margin-top: 4px; }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 700px) and (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(90, 60, 40, 0.05);
  min-width: 0; max-width: 100%;
}
.card--jade { border-color: color-mix(in srgb, var(--sage) 35%, transparent); background: linear-gradient(180deg, var(--sage-dim), var(--surface)); }
.card--alert { border-color: color-mix(in srgb, var(--brick) 40%, transparent); background: linear-gradient(180deg, var(--brick-dim), var(--surface)); }
.card--bronze { border-color: color-mix(in srgb, var(--bronze) 35%, transparent); }
.card h3 { margin-top: 0; }
.card p { color: var(--text-2); margin: 0 0 8px; }
.kv {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px;
  min-width: 0; max-width: 100%;
}
.kv:last-child { border-bottom: 0; }
.kv__k {
  color: var(--text-3);
  flex: 0 1 auto;
  min-width: 6.5em;
  max-width: 12em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.kv__v {
  color: var(--text); text-align: right;
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 600px) {
  .kv { flex-direction: column; align-items: stretch; gap: 4px; }
  .kv__k { min-width: 0; max-width: none; }
  .kv__v { text-align: left; }
}

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .entry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .entry-grid { grid-template-columns: 1fr; } }
.entry {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px; min-height: 140px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.entry:hover { transform: translateY(-2px); border-color: var(--terracotta); color: var(--text); }
.entry__icon { font-size: 26px; line-height: 1; }
.entry h3 { margin: 0; font-size: 22px; }
.entry p { margin: 0; color: var(--text-2); font-size: 14px; }

.progress-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.progress-card h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 6px; }

/* Stories carousel */
.stories {
  position: relative;
  margin: 28px 0 8px;
}
.stories__bars {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.stories__bar {
  flex: 1; height: 4px; border-radius: 999px; background: var(--bg-3); overflow: hidden;
}
.stories__bar > i {
  display: block; height: 100%; width: 0; background: var(--terracotta);
  border-radius: inherit;
}
.stories__bar.is-done > i { width: 100%; }
.stories__bar.is-on > i { animation: none; }
.stories__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 0;
  scrollbar-width: none;
}
.stories__viewport::-webkit-scrollbar { display: none; }
.stories__card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 240px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center;
  gap: 10px;
}
.stories__card .stories__icon { font-size: 36px; line-height: 1; }
.stories__card h3 { margin: 0; font-size: clamp(24px, 4vw, 32px); }
.stories__card p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 32em; }
.stories__nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 12px;
}
.stories__arrow {
  min-width: 44px; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 20px;
}
.stories__dots { display: flex; gap: 8px; justify-content: center; }
.stories__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: var(--bg-3); cursor: pointer;
}
.stories__dots button.is-on { background: var(--terracotta); }
.stories__hit {
  position: absolute; top: 28px; bottom: 64px; width: 30%; cursor: pointer;
  background: transparent; border: 0;
}
.stories__hit--prev { left: 0; }
.stories__hit--next { right: 0; }

/* Charts */
.chart-grid { display: grid; gap: 20px; margin: 0 0 8px; }
.chart-grid > * { min-width: 0; }
.chart-grid .chart-panel { margin: 0; }
@media (min-width: 900px) {
  .chart-grid--two { grid-template-columns: 1fr 1fr; }
}
.chart-host { width: 100%; max-width: 720px; min-width: 0; }
.chart-grid--two .chart-host { max-width: 100%; }
.chart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px 16px;
  margin: 0 0 20px;
  box-shadow: var(--shadow);
}
@media (max-width: 480px) { .chart-panel { padding: 16px; } }
.chart-panel:first-child { margin-top: 0; }
.chart-panel h3 { margin: 0 0 6px; font-size: 18px; }
.chart-panel .caption { margin: 0 0 8px; color: var(--text-2); }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .axis, .chart-svg .grid { stroke: var(--line-2); stroke-width: 1; fill: none; }
.chart-svg .label { fill: var(--text-2); font-size: 12px; font-weight: 500; font-family: var(--font-sans); }
.chart-svg .label--val { fill: var(--text); font-variant-numeric: tabular-nums; }
.chart-svg .label--empty { fill: var(--text-2); font-weight: 500; }
.chart-svg .bar { transform-origin: bottom; transform-box: fill-box; }
.chart-svg .bar.is-up { fill: var(--sage); }
.chart-svg .bar.is-dn { fill: var(--brick); }
.chart-svg .bar.is-mid { fill: var(--bronze); }
.chart-svg .line {
  fill: none; stroke: var(--terracotta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.chart-svg .line-fill { fill: var(--terracotta-dim); stroke: none; }

/* Collapsible long text */
details.more {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 4px 16px;
  margin-top: 20px;
}
details.more > summary {
  cursor: pointer; font-weight: 700; min-height: 48px;
  display: flex; align-items: center; list-style: none; color: var(--text);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "＋"; margin-left: auto; color: var(--terracotta); font-size: 18px; }
details.more[open] > summary::after { content: "–"; }
details.more > summary + * { margin-top: 8px; }

.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 0 0 24px;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--terracotta); }

.date-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.date-index a {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; min-height: 48px;
}
.date-index a:hover { border-color: var(--terracotta); }
.date-index .t { color: var(--text-3); font-size: 13px; }
.date-picker-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 0 0 16px;
}
.date-picker-row label { margin: 0; }

/* Live board */
.live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.live-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
.price-xl { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.flag {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 2px 8px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line);
}
.flag--no { background: var(--brick-dim); border-color: color-mix(in srgb, var(--brick) 45%, transparent); color: var(--brick); }
.flag--yes { background: var(--sage-dim); border-color: color-mix(in srgb, var(--sage) 45%, transparent); color: var(--sage); }
.flag--maybe { background: var(--bronze-dim); border-color: color-mix(in srgb, var(--bronze) 45%, transparent); color: var(--bronze); }
.gua-big { font-family: var(--font-serif); font-size: 42px; line-height: 1; }
.source { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* Team */
.person {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
}
.person img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px;
  border: 1px solid var(--line-2);
}
.person h3 { margin: 0 0 2px; font-size: 18px; }
.person .role { color: var(--bronze); font-size: 12px; letter-spacing: .08em; margin-bottom: 6px; }
.person p { margin: 0; font-size: 14px; color: var(--text-2); }
.veto { color: var(--brick); font-weight: 700; }

/* Tables */
.table-wrap {
  width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; overflow-wrap: anywhere; word-break: break-word; }

/* ≥1024: every data table must fit its card; no sideways scroll. */
@media (min-width: 1024px) {
  .table-wrap table,
  .compare-table table {
    min-width: 0 !important;
    width: 100% !important;
  }
  .table-wrap th,
  .table-wrap td,
  .compare-table th,
  .compare-table td {
    min-width: 0 !important;
    font-size: 13px;
    padding: 10px 10px;
  }
  table { min-width: 0; }
}
th { color: var(--text-3); font-weight: 600; background: var(--bg-3); font-size: 13px; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Graveyard */
.grave {
  border-left: 3px solid var(--brick);
  background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 20px;
}
.grave h3 { margin-top: 0; }
.grave .result { font-weight: 700; color: var(--brick); }
.chart-frame {
  margin: 12px 0 8px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-3);
  width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.chart-frame img { width: 100%; height: auto; max-width: 100%; }
@media (max-width: 700px) {
  .chart-frame img {
    width: auto;
    min-width: 720px;
    max-width: none;
    height: auto;
  }
}
.caption { font-size: 13px; color: var(--text-2); margin: 0 0 8px; }

/* Calculator */
.calc {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
input, select {
  width: 100%; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  padding: 8px 12px; font: inherit; font-variant-numeric: tabular-nums;
}
.field { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.out-box { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 16px; }
.warnbox {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brick) 45%, transparent); background: var(--brick-dim);
  color: var(--text); font-size: 14px; display: none;
}
.warnbox.is-on { display: block; }
.okbox {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--sage) 40%, transparent); background: var(--sage-dim);
  color: var(--text-2); font-size: 14px; display: none;
}
.okbox.is-on { display: block; }

/* FAQ */
details.faq {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 4px 16px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; color: var(--bronze); font-size: 20px; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--text-2); margin: 0 0 14px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--text-3); font-size: 13px; }
.footer a { color: var(--text-2); }
.disclaimer-line { margin: 0 0 8px; font-size: 13px; }
.disclaimer-line a { color: var(--text-3); }
.footer-meta { margin: 0; font-size: 12px; }
.home-mini-link { margin: 28px 0 0; font-size: 13px; color: var(--text-3); }
.home-mini-link a { color: var(--text-3); }
.entry-more { margin-top: 20px; }
.entry-more > summary {
  cursor: pointer; list-style: none; font-weight: 700;
  min-height: 44px; display: inline-flex; align-items: center;
  color: var(--text-2);
}
.entry-more > summary::-webkit-details-marker { display: none; }
.entry-more .entry-grid { margin-top: 12px; }
.dune-divider { height: 72px; margin: -24px 0; pointer-events: none; }
.dune-divider svg { width: 100%; height: 100%; display: block; }
.dune-divider__path { fill: none; stroke: var(--terracotta); stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.dune-divider__soft { fill: none; stroke: var(--sand); stroke-width: 1.5; stroke-linecap: round; opacity: .7; }
.disclaimer {
  border: 1px solid color-mix(in srgb, var(--brick) 35%, transparent);
  background: var(--brick-dim);
  border-radius: var(--r);
  padding: 16px 18px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.forbidden { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.forbidden span {
  border: 1px dashed color-mix(in srgb, var(--brick) 50%, transparent); color: var(--brick); border-radius: 999px;
  padding: 4px 12px; font-size: 13px;
}

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); color: var(--bronze); font-size: 20px; padding-top: 2px;
}

.note {
  font-size: 13px; color: var(--text-3); border-left: 2px solid var(--bronze);
  padding-left: 12px; margin: 12px 0;
}

.task-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.task {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.task__state {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 28px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid var(--line-2); text-align: center;
}
.task.is-done .task__state { color: var(--sage); background: var(--sage-dim); border-color: color-mix(in srgb, var(--sage) 45%, transparent); }
.task.is-running .task__state { color: var(--bronze); background: var(--bronze-dim); border-color: color-mix(in srgb, var(--bronze) 45%, transparent); }
.task.is-next .task__state { color: var(--text-3); background: var(--bg-3); }
.task h3 { font-size: 17px; margin: 0 0 4px; }
.task p { margin: 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 560px) {
  .task { grid-template-columns: 1fr; gap: 8px; }
}

.stamp {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  margin: 8px 0 20px; font-size: 13px; color: var(--text-3);
}
.ideas { display: grid; gap: 12px; margin-top: 12px; }
.idea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px;
}
.idea h3 { font-size: 16px; margin: 0 0 6px; }
.idea p { margin: 0; color: var(--text-2); font-size: 14px; }

.compare-table { -webkit-overflow-scrolling: touch; }
.compare-table table { width: 100%; min-width: 1120px; table-layout: fixed; }
.compare-table th, .compare-table td {
  overflow-wrap: break-word; word-break: normal; white-space: normal;
  vertical-align: top;
}
.compare-table th:nth-child(1), .compare-table td:nth-child(1) { width: 180px; }
.compare-table th:nth-child(2), .compare-table td:nth-child(2) { width: 168px; white-space: normal; }
.compare-table th:nth-child(3), .compare-table td:nth-child(3) { width: 170px; }
.compare-table th:nth-child(4), .compare-table td:nth-child(4) { width: 200px; }
.compare-table th:nth-child(5), .compare-table td:nth-child(5) { width: 120px; }
.compare-table th:nth-child(6), .compare-table td:nth-child(6) { width: 100px; }
.compare-table th:nth-child(7), .compare-table td:nth-child(7) { width: auto; }
@media (min-width: 1024px) {
  .compare-table table { min-width: 0; }
  .compare-table th:nth-child(1), .compare-table td:nth-child(1) { width: 16%; }
  .compare-table th:nth-child(2), .compare-table td:nth-child(2) { width: 14%; }
  .compare-table th:nth-child(3), .compare-table td:nth-child(3) { width: 15%; }
  .compare-table th:nth-child(4), .compare-table td:nth-child(4) { width: 16%; }
  .compare-table th:nth-child(5), .compare-table td:nth-child(5) { width: 11%; }
  .compare-table th:nth-child(6), .compare-table td:nth-child(6) { width: 9%; }
  .compare-table th:nth-child(7), .compare-table td:nth-child(7) { width: 19%; }
}
.compare-table td:first-child { word-break: break-word; }
.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky; left: 0; z-index: 1;
  background: var(--bg-3);
  box-shadow: 1px 0 0 var(--line);
}
.compare-table td:first-child { background: var(--surface); font-weight: 600; }
.compare-table tr:hover td { background: var(--surface-2); }
.compare-table tr:hover td:first-child { background: var(--surface-2); }
.table-hint { display: none; font-size: 13px; color: var(--text-3); margin: 8px 0 0; }
@media (max-width: 900px) { .table-hint { display: block; } }

/* <1024: show a right-edge fade + 「← 滑動」 on scrollable tables and chart PNGs. */
.scroll-shell { position: relative; max-width: 100%; min-width: 0; }
.hscroll-hint {
  display: none;
  position: absolute;
  right: 8px; bottom: 8px;
  z-index: 3;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(90, 60, 40, 0.08);
}
@media (max-width: 1023px) {
  .scroll-shell.is-overflow::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    border-radius: 0 var(--r) var(--r) 0;
    background: linear-gradient(to right, transparent, var(--surface));
  }
  .scroll-shell:has(.chart-frame).is-overflow::after {
    background: linear-gradient(to right, transparent, var(--bg-3));
  }
  .scroll-shell.is-overflow .hscroll-hint { display: inline-flex; align-items: center; }
  .scroll-shell.is-end::after { opacity: 0; }
  .scroll-shell.is-end .hscroll-hint { display: none; }
}
@media (min-width: 1024px) {
  .hscroll-hint { display: none !important; }
  .scroll-shell::after { display: none !important; }
}


.week-callout {
  margin-top: 20px;
  border: 1px solid color-mix(in srgb, var(--bronze) 35%, transparent);
  background: linear-gradient(180deg, var(--bronze-dim), var(--surface));
  border-radius: var(--r);
  padding: 18px 20px;
}
.week-callout h3 { margin-top: 0; }
.week-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px;
}
@media (max-width: 800px) { .week-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .week-metrics { grid-template-columns: 1fr; } }

.analysis { margin-top: 28px; }
.analysis h3 { margin-top: 0; }
.analysis p { color: var(--text-2); max-width: 46em; }
.analysis ul { color: var(--text-2); padding-left: 1.2em; max-width: 46em; }
.analysis li { margin: 0 0 8px; }

.live-flag { font-size: 12px; }
.compare-table td .flag { margin-top: 6px; white-space: normal; }

/* Motion */
.reveal { opacity: 1; transform: none; }
html.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js-motion .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-curve, .hero-curve--soft { stroke-dashoffset: 0; }
  .hero-grid-line { opacity: 1; }
  .scroll-hint__chev, .scroll-hint__taiji, .taiji-spin { animation: none !important; }
}

/* Explainer / hero videos */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  background: var(--bg);
}
.hero-stage__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 20%, transparent) 0%,
    color-mix(in srgb, var(--bg) 45%, transparent) 42%,
    color-mix(in srgb, var(--bg) 88%, transparent) 78%,
    var(--bg) 100%);
}
.hero-stage__copy { z-index: 2; }
.hero-stage.is-static .hero-video { display: none; }

.clip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.clip__media { aspect-ratio: 16/9; width: 100%; background: var(--bg-3); border-radius: 14px; overflow: hidden; }
.clip video, .clip img.clip-poster {
  width: 100%; height: 100%; aspect-ratio: 16/9;
  object-fit: cover; border-radius: 14px; background: var(--bg-3); display: block;
}
.clip figcaption { padding: 8px 8px 8px 4px; }
.clip figcaption h2, .clip figcaption h3 { margin: 0 0 8px; }
.clip figcaption p { margin: 0; color: var(--text-2); }
.clip.is-static video { display: none; }
.clip.is-static img.clip-poster { display: block; }
.clip img.clip-poster { display: none; }
@media (max-width: 700px) {
  .clip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .clip video { display: none; }
  .clip img.clip-poster { display: block; }
}

/* seo-managed:labels */
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hero-badges .hero-badge { margin: 0; letter-spacing: .04em; max-width: 100%; }
.hero-badge { max-width: 100%; white-space: normal; letter-spacing: .04em; }
.footer-labels {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.footer-labels span { overflow-wrap: anywhere; }
.closed-snapshot { margin: 0 0 24px; max-width: 100%; }
.closed-snapshot h2 { font-size: 1.05rem; margin: 0 0 8px; overflow-wrap: anywhere; }
.closed-snapshot p { margin: 0; overflow-wrap: anywhere; word-break: break-word; }
.about-identity { max-width: 100%; }
.about-identity .kv { align-items: flex-start; }
.about-identity .kv__v { overflow-wrap: anywhere; word-break: break-word; }
