/* =========================================================================
   iyu — AI, explained.  Design system
   Clean-room editorial theme. No external assets required.
   ========================================================================= */

/* ---- Fonts: self-hosted ----
   These used to come from fonts.googleapis.com, which is (a) a render-blocking
   third-party stylesheet and (b) unreachable from mainland China — where the
   origin server itself lives. Every CN reader waited for that request to time out
   before a single heading could paint. Both families are variable fonts, subsetted
   with fonttools to the axes we actually use (see assets/fonts/README.md):
   Source Serif 4 went 122 KB -> 35 KB. latin-ext only downloads when a page
   actually contains a character in its range. */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* The reading face. Latin only on purpose: 中/日 fall through to the system CJK
   sans below, which is what CJK readers expect on screen — a Latin serif paired
   with a CJK sans is the standard pairing, not a fallback accident. */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100%; line-height: 1.6; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- Tokens: light (default) ---- */
:root {
  --bg:        #f4efe6;
  --bg-2:      #ede6d8;
  --surface:   #fbf8f2;
  --surface-2: #fffdf8;
  --ink:       #24211c;
  --ink-soft:  #55504733;
  --muted:     #6d675b;
  --faint:     #746c5e;   /* 4.53:1 on --bg — was #9a9282 at 2.69:1, which fails AA */
  --line:      #d8cfbd;
  --line-soft: #e6ddcc;
  --accent:    #c85a34;   /* terracotta */
  --accent-ink:#a8451f;
  --accent-wash:#f6e6dd;
  --green:     #4f7a52;
  --green-wash:#e2ecdf;
  --dark-panel:#2a201b;   /* hero/dark cards even in light mode */
  --dark-panel-ink:#f4efe6;
  --shadow:    0 1px 2px rgba(40,32,24,.05), 0 8px 30px rgba(40,32,24,.06);
  --shadow-lg: 0 4px 12px rgba(40,32,24,.10), 0 24px 60px rgba(40,32,24,.12);
  --radius:    18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw:      1180px;
  --navh:      68px;      /* header height; the ☰ dropdown hangs off it */
  --font-sans: "Space Grotesk", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  /* Reading face — the article body only. Chrome and cards stay on the sans, so a
     paragraph of the piece is visibly a different kind of object from the UI
     around it. CJK falls through to the system sans on purpose. */
  --font-read: "Source Serif 4", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans", serif;

  /* ---- Type scale ----
     There were 37 distinct hardcoded font-sizes across 126 declarations, which is
     not a scale, it's an accident. Eight steps at a ~1.1–1.2 ratio; anything not
     on the scale should be a deliberate, commented exception. */
  --fs-2xs:  0.68rem;
  --fs-xs:   0.75rem;
  --fs-sm:   0.85rem;
  --fs-md:   0.925rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.3rem;
  --fs-2xl:  1.55rem;
  --fs-3xl:  2rem;
}

/* ---- Per-language type ----
   app.js mirrors the active language onto <html lang>, so these swap the CJK families
   ahead of the Latin fallbacks. Without it a JA page renders shared kanji with Chinese
   (PingFang) shapes, because PingFang SC came first in the shared stack. */
html:lang(ja) {
  --font-sans: "Space Grotesk", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  /* The reading face needs the same treatment as --font-body: the Latin serif
     covers no kanji, so whichever CJK family comes next in the stack paints the
     Japanese — and the default stack leads with PingFang SC, which would render
     shared kanji with Chinese shapes. */
  --font-read: "Source Serif 4", Georgia, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, serif;
}
html:lang(zh-Hans) {
  --font-sans: "Space Grotesk", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-read: "Source Serif 4", Georgia, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", serif;
}
/* CJK has no spaces, so a headline can break mid-word unless we ask for strict rules;
   auto-phrase breaks at phrase boundaries where the browser supports it. `palt` +
   text-spacing-trim pull in the air around 、。「」— at display sizes an untrimmed
   full-width comma reads as an accidental gap. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4, :lang(ja) .display,
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) h4, :lang(zh-Hans) .display {
  line-break: strict; word-break: auto-phrase; letter-spacing: 0;
  font-feature-settings: "palt" 1; text-spacing-trim: trim-both;
}
:lang(ja) p, :lang(zh-Hans) p { line-break: strict; }
/* Even lines instead of a one-word (or, in 中/日, one-character) last line. Chinese
   breaks between any two characters, so balance is what keeps 日本 off its own line. */
h1, h2, .display { text-wrap: balance; }
p, .lead { text-wrap: pretty; }

/* ---- Tokens: dark ---- */
:root[data-theme="dark"] {
  --bg:        #171310;
  --bg-2:      #1f1a15;
  --surface:   #211b16;
  --surface-2: #29221c;
  --ink:       #f0e9dc;
  --muted:     #b3a893;
  --faint:     #867d6a;   /* 4.53:1 on the dark --bg — was #837a68 at 4.35:1 */
  --line:      #3a3128;
  --line-soft: #2c251e;
  --accent:    #e07a4f;
  --accent-ink:#f0966c;
  --accent-wash:#3a251b;
  --green:     #7fae82;
  --green-wash:#25332406;
  --green-wash:#243026;
  --dark-panel:#0f0c0a;
  --dark-panel-ink:#f0e9dc;
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#171310; --bg-2:#1f1a15; --surface:#211b16; --surface-2:#29221c;
    --ink:#f0e9dc; --muted:#b3a893; --faint:#867d6a; --line:#3a3128; --line-soft:#2c251e;
    --accent:#e07a4f; --accent-ink:#f0966c; --accent-wash:#3a251b;
    --green:#7fae82; --green-wash:#243026; --dark-panel:#0f0c0a; --dark-panel-ink:#f0e9dc;
    --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 30px rgba(0,0,0,.35);
    --shadow-lg:0 4px 12px rgba(0,0,0,.4),0 24px 60px rgba(0,0,0,.5);
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  transition: background .3s ease, color .3s ease;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: 1rem; }
.hidden { display: none !important; }

/* ---- Type ---- */
h1, h2, h3, h4, .display { font-family: var(--font-sans); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.eyebrow { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .5em; }
.eyebrow.muted { color: var(--faint); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: center; gap: 1rem; height: var(--navh); min-width: 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: .5rem; flex: none; }
.brand__mark { position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.brand__mark::before, .brand__mark::after { content:""; position:absolute; width:12px; height:12px; border:2px solid var(--accent); }
.brand__mark::before { top:0; left:0; border-right:0; border-bottom:0; }
.brand__mark::after { bottom:0; right:0; border-left:0; border-top:0; }
.brand__name { line-height: 1.05; }
.brand__name b { font-family: var(--font-sans); font-weight: 700; letter-spacing: .12em; font-size: var(--fs-sm); text-transform: uppercase; }
.brand__name span { display:block; font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; color: var(--faint); }
.nav__links { display: flex; align-items: center; gap: .2rem; margin-inline: auto; min-width: 0; flex-wrap: nowrap; }
/* nowrap + no shrink: CJK labels break between any two characters, so without this
   ホーム / ポッドキャスト stacked into two-line columns and the row's tail slid under
   the (opaque) tool pills instead of the row simply not fitting. */
.nav__links a { text-decoration: none; font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-sm);
  color: var(--muted); padding: .5rem .65rem; border-radius: var(--radius-pill); transition: .15s;
  white-space: nowrap; flex: none; }
/* Membership already has the accent pill in the tool row and both live in the footer,
   so the horizontal row carries only the six reading destinations — eight labels plus
   the tools cannot fit 1180px in any language (JA labels run ~30% wider than EN).
   The ☰ menu below still lists them. */
.nav__links > a[data-nav="member"],
.nav__links > a[data-nav="subscribe"],
/* Search rides the ☰ menu only: on a wide screen it's the magnifier in the tool
   row (and ⌘K), so a seventh label would just crowd the row it can't fit in. */
.nav__links > a[data-nav="search"] { display: none; }
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }
.nav__links a.active { color: var(--ink); background: var(--surface-2); box-shadow: var(--shadow); }
.nav__tools { display: flex; align-items: center; gap: .5rem; flex: none; margin-left: auto; }

.langset { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-pill); padding: 3px; }
.langset button { border: 0; background: transparent; color: var(--faint); font-family: var(--font-sans); font-weight: 600;
  font-size: var(--fs-xs); padding: .28rem .6rem; border-radius: var(--radius-pill); cursor: pointer; }
.langset button.active { background: var(--accent); color: #fff; }

.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft); background: var(--surface-2); cursor: pointer; color: var(--ink); transition: .15s; }
.iconbtn:hover { border-color: var(--line); transform: translateY(-1px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-md); text-decoration: none;
  padding: .6rem 1.1rem; border-radius: var(--radius-pill); border: 1px solid transparent; transition: .15s; white-space: nowrap; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.btn--lg { padding: .85rem 1.5rem; font-size: var(--fs-base); }

.navtoggle { display: none; }

/* ---- Badges & pills ---- */
.badge { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-sans); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: .02em; padding: .28em .7em; border-radius: var(--radius-pill); }
.badge--free { background: var(--green-wash); color: var(--green); }
.badge--member { background: var(--accent-wash); color: var(--accent-ink); }
.badge--verified { background: transparent; color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.badge--cat { background: var(--dark-panel); color: var(--dark-panel-ink); }
.badge--num { color: var(--faint); font-family: var(--font-mono); font-size: var(--fs-xs); }
.tag { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--accent-ink); }

/* ---- Cards ---- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card__cover { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.card__cover .ghost { font-family: var(--font-sans); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: .04em; color: rgba(255,255,255,.09); text-transform: uppercase; user-select: none; }
.card__cover .kicker { position: absolute; left: 18px; top: 16px; font-family: var(--font-mono); font-size: var(--fs-sm);
  color: rgba(255,255,255,.82); z-index: 2; }
.card__coverimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__cover:has(.card__coverimg)::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 40%); z-index: 1; }
.card__badges { position: absolute; right: 14px; top: 14px; display: flex; gap: .4rem; z-index: 2; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--faint); font-family: var(--font-sans); }
.card__title { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.01em; }
.card:hover .card__title { color: var(--accent); }
.card__dek { font-size: var(--fs-md); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: .4rem; font-size: var(--fs-xs); color: var(--faint); font-family: var(--font-sans); }

/* Cover gradients by category */
.cov-launch   { background: radial-gradient(120% 120% at 80% 10%, #3a2a20, #171012); }
.cov-tools    { background: radial-gradient(120% 120% at 20% 10%, #1d2b33, #10161c); }
.cov-research { background: radial-gradient(120% 120% at 70% 80%, #2a1f38, #120f1c); }
.cov-deepdive { background: radial-gradient(120% 120% at 30% 20%, #123028, #0b1713); }
.cov-business { background: radial-gradient(120% 120% at 60% 30%, #33291a, #17110a); }

/* ---- Hero / today's pick ---- */
.hero { padding-top: clamp(28px, 5vw, 56px); }
.hero__display { font-size: clamp(2.6rem, 8vw, 5rem); }
.hero__display .accent { color: var(--accent); }
.hero__sub { margin-top: 1rem; color: var(--muted); font-family: var(--font-sans); font-size: var(--fs-md); }

.pick { position: relative; display: block; text-decoration: none; color: var(--dark-panel-ink);
  background: var(--dark-panel); border-radius: var(--radius); overflow: hidden; padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg); transition: transform .2s; }
.pick:hover { transform: translateY(-3px); }
.pick .ghost { position: absolute; right: -.1em; bottom: -.15em; font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(4rem, 16vw, 12rem); color: rgba(255,255,255,.05); letter-spacing: .02em; pointer-events: none; }
.pick__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; position: relative; }
.pick__title { position: relative; font-size: clamp(1.7rem, 4.4vw, 3rem); margin-top: 1rem; max-width: 18ch; }
.pick__dek { position: relative; margin-top: 1rem; color: rgba(244,239,230,.72); max-width: 60ch; font-size: var(--fs-base); }
.pick__foot { position: relative; margin-top: 1.4rem; font-family: var(--font-mono); font-size: var(--fs-sm); color: rgba(244,239,230,.55); }

/* ---- Section head ---- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.4rem; gap: 1rem; }
.sec-head h2 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sec-head a { text-decoration: none; color: var(--accent); font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-md); }

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip { font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-sm); padding: .5rem .95rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip--dark.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.searchbox { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: .5rem .9rem; min-width: 240px; flex: 1; max-width: 360px; }
.searchbox input { border: 0; background: transparent; outline: none; width: 100%; font-size: var(--fs-md); }
.searchbox svg { flex: none; color: var(--faint); }
.count { font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--faint); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 3rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(36px, 5vw, 56px); }
.footer-grid h4 { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .9rem; }
.footer-grid a { display: block; text-decoration: none; color: var(--muted); font-size: var(--fs-md); padding: .22rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-block: 1.2rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem; font-size: var(--fs-sm); color: var(--faint); }

/* =========================================================================
   Article page
   ========================================================================= */
.article { max-width: 760px; margin-inline: auto; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--faint); flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.article__source { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem;
  padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.article__source .src-label { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.article__source .src-name { font-family: var(--font-sans); font-weight: 600; }
.article__source .spacer { margin-left: auto; }

.article__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: center; }
.actbtn { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-sm);
  padding: .5rem .85rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); transition: .15s; }
.actbtn:hover { border-color: var(--accent); color: var(--accent); }
.actbtn.is-on { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-ink); }

.formats { display: flex; width: fit-content; gap: 3px; background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill); padding: 4px; margin: 2rem auto 1.2rem; }
.formats button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--font-sans);
  font-weight: 600; font-size: var(--fs-sm); padding: .5rem 1rem; border-radius: var(--radius-pill); transition: .15s; }
.formats button.active { background: var(--ink); color: var(--bg); }

/* The headline runs wider than the text measure (it is read in one glance), the
   dek sits between the two. Both capped in `ch` so the ratio holds in 中/日 too. */
.article h1.article__title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-top: 1.2rem; max-width: 22ch; }
.article .dek { font-size: 1.18rem; color: var(--muted); margin-top: 1rem; line-height: 1.55; max-width: 54ch; }
:lang(zh-Hans) .article h1.article__title, :lang(ja) .article h1.article__title { max-width: 18em; }
:lang(zh-Hans) .article .dek, :lang(ja) .article .dek { max-width: 34em; line-height: 1.8; }

/* Podcast player card */
.podcast { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin: 1.6rem 0 .4rem; box-shadow: var(--shadow); }
.podcast__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.podcast__ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: var(--fs-xl);
  background: var(--accent-wash); border-radius: 50%; }
.podcast__text { display: flex; flex-direction: column; line-height: 1.25; }
.podcast__text b { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-base); }
.podcast__text span { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.podcast__audio { width: 100%; height: 40px; }
/* two-tier tracks (free quick listen + member full deep-dive) */
.pod-track { padding-top: .7rem; }
.pod-track + .pod-track { margin-top: .3rem; border-top: 1px dashed var(--line-soft); }
.pod-track__label { display: flex; align-items: center; gap: .5rem; font-family: var(--font-sans);
  font-weight: 600; font-size: var(--fs-sm); color: var(--muted); margin-bottom: .35rem; }
.pod-track--locked { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pod-track--locked .btn { white-space: nowrap; }

/* podcast page episode list */
.pod-list { display: flex; flex-direction: column; gap: 1.1rem; }
.pod-ep { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 1.1rem; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pod-ep__cover { position: relative; display: grid; place-items: center; overflow: hidden; text-decoration: none; min-height: 120px; }
.pod-ep__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pod-ep__cover .ghost { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-base); color: rgba(255,255,255,.16); text-transform: uppercase; }
.pod-ep__body { padding: 1rem 1.2rem 1.2rem; min-width: 0; }
.pod-ep__title { display: block; text-decoration: none; color: inherit; font-family: var(--font-sans);
  font-weight: 600; font-size: var(--fs-lg); line-height: 1.25; margin-top: .3rem; }
.pod-ep__title:hover { color: var(--accent); }
@media (max-width: 640px) { .pod-ep { grid-template-columns: 1fr; } .pod-ep__cover { aspect-ratio: 16/9; min-height: 0; } }

/* ---- The reading column ----
   Measure is set in `ch`, not pixels, because `ch` follows the font: the same
   760px column ran ~88 characters per line in English (60–75 is the comfortable
   range) while being far too wide for 中/日, which want roughly 35–45 CHARACTERS
   — a completely different number. One fixed pixel width cannot serve both, so
   each language gets its own. */
.prose {
  font-family: var(--font-read);
  font-size: 1.075rem;              /* off-scale on purpose: reading size is tuned to the face, not the UI ramp */
  line-height: 1.72;
  max-width: 68ch;
  hanging-punctuation: first last;
  /* Was applied to headings only. In running text it is what stops a full-width
     、。「」 from opening a hole mid-sentence. */
  text-spacing-trim: trim-both;
  /* The 中/英 spacing problem, solved by the browser instead of by inserting
     characters into the author's text: a Latin/CJK boundary gets no sidebearing
     from either script, so "GPT-5的" closes up. Ignored where unsupported. */
  text-autospace: normal;
}
/* CJK packs more ink per line and has no descender-heavy lowercase, so it wants
   more leading and a much shorter line than the Latin setting above. */
:lang(zh-Hans) .prose, :lang(ja) .prose {
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 40em;                  /* ≈40 full-width characters */
}

/* Vertical rhythm: a heading belongs to what FOLLOWS it, so the space above is
   large and the space below is small. The old flat `* + * { margin-top: 1.15rem }`
   gave a heading the same gap on both sides, which reads as an unattached label. */
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--fs-2xl); margin-top: 2.8rem; scroll-margin-top: 90px; }
.prose h3 { font-size: var(--fs-xl); margin-top: 2rem; }
.prose h2 + *, .prose h3 + * { margin-top: .7rem; }
.prose h2 .kicker { display: block; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .3rem; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
/* Blocks that are their own objects (tables, figures, callouts, stat rows) may run
   wider than the text measure — they are read by scanning, not line by line. */
.prose > .stat-tiles, .prose > .deftable, .prose > .figure, .prose > .callout { max-width: none; }

/* =========================================================================
   The gist — the answer, before the argument
   =========================================================================
   This is the one-pager, moved out from behind the third format tab and put
   above the prose. Two reasons it earns the space: a reader who only wants to
   know what happened is done in twenty seconds, and an answer engine quotes the
   first self-contained block on the page — which used to be a paragraph of
   set-up. Deliberately NOT a callout: it is the lede, not an aside. */
.gist { margin: 1.8rem 0 2.2rem; padding: 1.3rem 1.4rem 1.4rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  max-width: 68ch; }
:lang(zh-Hans) .gist, :lang(ja) .gist { max-width: 40em; }
.gist__label { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  line-height: 1.2; margin-bottom: .6rem; }
.gist__what { font-family: var(--font-read); font-size: var(--fs-lg); line-height: 1.55;
  color: var(--ink); text-wrap: pretty; }
:lang(zh-Hans) .gist__what, :lang(ja) .gist__what { line-height: 1.75; }
.gist__sub { font-family: var(--font-sans); font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  margin: 1.1rem 0 .5rem; }
.gist__points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem;
  font-size: var(--fs-md); color: var(--muted); }
.gist__points li { display: flex; gap: .6rem; line-height: 1.55; }
.gist__points li::before { content: "→"; color: var(--accent); flex: none; font-weight: 700; }
.gist__verdict { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line);
  font-size: var(--fs-md); color: var(--ink); line-height: 1.6; }
.gist__verdict b { font-family: var(--font-sans); }

/* Save / export live at the END of the piece now — they belong to someone who has
   already read it, and they used to sit between the headline and the first
   sentence. */
.article__actions--end { justify-content: center; margin-top: 1.4rem; }

.callout { border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; font-size: var(--fs-base); }
.callout .ic { font-size: var(--fs-xl); line-height: 1; flex: none; }
.callout--note { background: var(--accent-wash); color: var(--accent-ink); }
.callout--zap { background: var(--bg-2); border: 1px solid var(--line); }
.callout--warn { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.stat-tile { background: var(--dark-panel); color: var(--dark-panel-ink); border-radius: var(--radius-sm); padding: 1.2rem 1rem; text-align: center; }
.stat-tile b { display: block; font-family: var(--font-sans); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--accent); }
.stat-tile span { display: block; font-size: var(--fs-sm); color: rgba(244,239,230,.66); margin-top: .4rem; }

.deftable { width: 100%; border-collapse: collapse; font-size: var(--fs-md); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.deftable th, .deftable td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.deftable tr:last-child th, .deftable tr:last-child td { border-bottom: 0; }
.deftable th { width: 30%; font-family: var(--font-sans); font-weight: 600; color: var(--muted); background: var(--surface); }
.deftable td { color: var(--ink); }

blockquote.pull { border-left: 3px solid var(--accent); padding-left: 1.1rem; font-size: var(--fs-xl); font-family: var(--font-sans);
  font-weight: 500; color: var(--ink); line-height: 1.4; }

.figure { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.figure .frame { aspect-ratio: 16/9; display: grid; place-items: center; }
.figure__img { width: 100%; height: auto; display: block; background: var(--bg-2); }
.figure figcaption { padding: .7rem 1rem; font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line-soft); }
.figure__credit a { color: var(--accent-ink); }

.divider { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }

/* Sources + article-end footer */
.artend { margin-top: 2.4rem; }
.sources { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; font-size: var(--fs-md); color: var(--muted); line-height: 1.7; }
.sources__label { font-family: var(--font-sans); font-weight: 600; color: var(--ink); margin-right: .5rem; }
.sources a { color: var(--accent-ink); text-underline-offset: 3px; }
.sources .sep { margin: 0 .5rem; color: var(--faint); }
.artend__rule { text-align: center; font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: .1em;
  color: var(--faint); margin: 2rem 0 1.2rem; position: relative; }
.artend__rule::before, .artend__rule::after { content: ""; position: absolute; top: 50%; width: 22%;
  border-top: 1px solid var(--line); }
.artend__rule::before { left: 0; } .artend__rule::after { right: 0; }
.artend__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.artend__actions .is-on { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-ink); }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 60; transition: width .1s linear; }

/* TOC */
.toc { position: sticky; top: 90px; font-family: var(--font-sans); font-size: var(--fs-sm); }
.toc h4 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .8rem; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: .3rem 0 .3rem .8rem; border-left: 2px solid var(--line); transition: .15s; }
.toc a:hover, .toc a.active { color: var(--accent); border-color: var(--accent); }
.article-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 3rem; align-items: start; max-width: 1000px; margin-inline: auto; }

/* Paywall */
.paywall { position: relative; margin-top: -140px; padding-top: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg) 120px); }
.paywall__card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); }
.paywall__card h3 { font-size: var(--fs-2xl); }
.paywall__meter { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin: 1.2rem auto; max-width: 320px; }
.paywall__meter i { display: block; height: 100%; width: 25%; background: var(--accent); }

/* One-pager */
.onepager { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.onepager h3 { font-family: var(--font-sans); font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.onepager ul { list-style: none; padding: 0; }
.onepager li { padding: .7rem 0; border-bottom: 1px dashed var(--line-soft); display: flex; gap: .8rem; }
.onepager li::before { content: "→"; color: var(--accent); font-weight: 700; }

/* Comic */
.comic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.comic__panel { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--dark-panel); color: var(--dark-panel-ink); aspect-ratio: 4/3; display: flex; flex-direction: column; position: relative; }
.comic__panel .num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); padding: .8rem 1rem 0; }
.comic__panel .art { flex: 1; display: grid; place-items: center; font-size: 3rem; }
.comic__panel .cap { padding: .9rem 1rem; font-size: var(--fs-md); background: rgba(0,0,0,.25); }
/* image (manga) panels */
.comic__panel--img { aspect-ratio: auto; background: #fff; color: #17130f; border: 3px solid #17130f; border-radius: 6px; }
.comic__panel--img .num { position: absolute; top: 0; right: 0; background: #17130f; color: #fff; padding: .3rem .6rem;
  border-bottom-left-radius: 6px; z-index: 2; }
/* Comic panels are BLACK & WHITE (manga house style). New panels are generated in
   grayscale; the filter also renders older color panels B&W without regenerating.
   Scoped to comics only — covers (.card__coverimg) stay color on the homepage. */
.comic__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 3px solid #17130f; filter: grayscale(1); }
.comic__panel--img .cap { background: #fff; color: #17130f; font-family: var(--font-sans); font-weight: 600; padding: .8rem 1rem; }

/* =========================================================================
   Membership / pricing
   ========================================================================= */
/* auto-fit so the row stays full whether we ship two plans or three */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.price-card.featured { border-color: var(--accent); background: var(--surface-2); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::before { content: attr(data-flag); position: absolute; top: -12px; left: 1.6rem; background: var(--accent); color: #fff;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .08em; padding: .25rem .7rem; border-radius: var(--radius-pill); }
.price-card .plan { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card .amount { font-family: var(--font-sans); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.price-card .amount s { font-size: var(--fs-lg); color: var(--faint); font-weight: 400; margin-left: .4rem; }
.price-card .per { font-size: var(--fs-md); color: var(--faint); }
.price-card .note { font-size: var(--fs-sm); color: var(--muted); }
.price-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: var(--fs-md); }
.price-card ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.compare th, .compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-family: var(--font-sans); font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare td.yes { color: var(--green); font-weight: 600; }
.compare tbody tr:hover { background: var(--surface); }

.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; padding: 1rem 0; font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-base); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--accent); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); }

.seats { display: inline-flex; align-items: center; gap: .8rem; background: var(--dark-panel); color: var(--dark-panel-ink);
  border-radius: var(--radius-pill); padding: .6rem 1.1rem; font-family: var(--font-sans); font-size: var(--fs-md); }
.seats .bar { width: 140px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.seats .bar i { display: block; height: 100%; background: var(--accent); }

/* channels */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.channel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; }
.channel .ic { font-size: 1.8rem; }
.channel h3 { font-family: var(--font-sans); margin: .6rem 0; font-size: var(--fs-lg); }
.channel p { font-size: var(--fs-md); color: var(--muted); margin-bottom: 1rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; }
.step .n { font-family: var(--font-sans); font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.step h3 { font-family: var(--font-sans); margin: .5rem 0; }
.step p { color: var(--muted); font-size: var(--fs-md); }

/* podcast list */
.ep { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--surface); text-decoration: none; color: inherit; transition: .15s; }
.ep:hover { border-color: var(--accent); }
.ep .play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.ep .meta { flex: 1; }
.ep .meta b { font-family: var(--font-sans); }
.ep .meta span { display: block; font-size: var(--fs-sm); color: var(--faint); }
.ep .dur { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--faint); }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--bg); font-family: var(--font-sans); font-size: var(--fs-md); padding: .7rem 1.2rem;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); z-index: 100; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Announced but not on sale yet (e.g. per-article purchase while it's paused).
   Reads as informative rather than broken: still legible, clearly not clickable. */
.btn.is-disabled, .btn:disabled { opacity: .55; cursor: default; pointer-events: none; }
.btn.is-disabled { display: inline-flex; align-items: center; justify-content: center; }

/* activity ticker — real recent purchases, bottom-left.
   Sits below the centre toast (z 100) so a system message always wins, and
   uses the card surface rather than the inverted toast fill: this is ambient
   information, not something the reader has to acknowledge. */
.ticker { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: .55rem;
  max-width: min(360px, calc(100vw - 40px)); padding: .6rem .7rem .6rem .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-family: var(--font-sans);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.ticker.is-in { opacity: 1; transform: translateY(0) scale(1); }
.ticker__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash); }
.ticker__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem;
  text-decoration: none; color: var(--ink); }
.ticker__body:hover .ticker__text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ticker__text { font-size: var(--fs-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticker__text strong { font-weight: 600; }
.ticker__ago { font-size: var(--fs-2xs); color: var(--faint, var(--muted)); }
.ticker__x { flex: none; align-self: flex-start; background: none; border: 0; cursor: pointer; padding: .1rem .2rem;
  color: var(--faint, var(--muted)); font-size: var(--fs-xs); line-height: 1; border-radius: 4px; }
.ticker__x:hover { color: var(--ink); }
@media (max-width: 560px) {
  /* Keep it clear of thumb reach and of any bottom-anchored chrome. */
  .ticker { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { transition: opacity .2s linear; transform: none; }
  .ticker.is-in { transform: none; }
}

/* =========================================================================
   Pager — explainers / timeline / podcast
   ========================================================================= */
.pager { margin-top: 2.6rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.pager__row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.pager__nums { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; justify-content: center; }
.pager__btn, .pager__num {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .5rem .95rem; transition: .15s; white-space: nowrap;
}
/* 44px is the smallest reliably tappable target; the numbers are the one control
   here that would otherwise be a ~30px circle on a phone. */
.pager__num { min-width: 44px; min-height: 44px; padding: .5rem .6rem; font-variant-numeric: tabular-nums; }
.pager__btn { min-height: 44px; }
.pager__btn:hover, .pager__num:hover { border-color: var(--accent); color: var(--accent); }
.pager__num.is-current { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pager__num.is-current:hover { color: #fff; }
/* Reads as "there is nothing further this way", not as a broken control. */
.pager__btn.is-off { opacity: .4; cursor: default; }
.pager__btn.is-off:hover { border-color: var(--line); color: var(--muted); }
.pager__gap { color: var(--faint); padding: 0 .2rem; }
.pager__count { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--faint); }
@media (max-width: 560px) {
  /* Prev/Next carry the whole row on a phone; the numbers wrap underneath. */
  .pager__row { gap: .4rem; }
  .pager__btn { padding: .5rem .7rem; }
  .pager__nums { order: 3; width: 100%; margin-top: .2rem; }
}

/* generic prose blocks for about */
.prose-narrow { max-width: 680px; margin-inline: auto; }

/* modal (auth / account) */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2rem); box-shadow: var(--shadow-lg); }
.modal h3 { font-family: var(--font-sans); font-size: 1.4rem; }
.modal__sub { color: var(--muted); font-size: var(--fs-md); margin: .4rem 0 1.2rem; }
.modal__x { position: absolute; top: .9rem; right: 1rem; border: 0; background: transparent; color: var(--faint);
  font-size: var(--fs-base); cursor: pointer; }
.modal__x:hover { color: var(--ink); }
.modal__switch { margin-top: 1rem; font-size: var(--fs-md); color: var(--muted); text-align: center; }
.modal__switch a { color: var(--accent); }
.field { width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: var(--fs-md); }
.field:focus { outline: none; border-color: var(--accent); }

/* =========================================================================
   Timeline page — single left-rail chronology of explainers
   ========================================================================= */
.timeline { position: relative; margin-top: 2.4rem; padding-left: 2.2rem; }
/* the spine */
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line); border-radius: 2px; }

.tl-group { position: relative; }
.tl-group + .tl-group { margin-top: 2.4rem; }

/* date header sits on the rail as a larger accent node */
.tl-date { position: relative; display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.1rem; }
.tl-date::before { content: ""; position: absolute; left: calc(-2.2rem + 1px); top: .35em;
  width: 12px; height: 12px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg); transform: rotate(45deg); }
.tl-date__day { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-base); color: var(--ink); letter-spacing: .01em; }
.tl-date__count { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--faint); }

.tl-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.tl-item { position: relative; }
/* dot on the rail for each entry */
.tl-item::before { content: ""; position: absolute; left: calc(-2.2rem + 1px); top: 1.35rem;
  width: 11px; height: 11px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--bg); z-index: 1; }

.tl-card { display: flex; gap: 1.1rem; align-items: stretch; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.tl-card:hover { transform: translateX(2px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.tl-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.tl-card__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--faint); font-family: var(--font-sans); }
.tl-card__title { font-family: var(--font-sans); font-weight: 600; font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.01em; }
.tl-card:hover .tl-card__title { color: var(--accent); }
.tl-card__dek { font-size: var(--fs-md); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-card__foot { margin-top: auto; padding-top: .1rem; font-size: var(--fs-xs); color: var(--faint);
  font-family: var(--font-sans); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tl-card__tag { color: var(--accent-ink); }
.tl-card__num { font-family: var(--font-mono); }
/* optional cover thumbnail */
.tl-card__thumb { flex: none; width: 96px; align-self: stretch; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--dark-panel); }
.tl-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tl-earlier { display: flex; justify-content: center; margin-top: 2rem; }

/* ---- Responsive ---- */
/* Header tier 1 — the row still fits horizontally, but only after giving up the RSS
   shortcut (it's in the footer) and tightening the label pills. */
@media (max-width: 1200px) {
  .nav { gap: .8rem; }
  .nav__links a { padding: .5rem .5rem; }
  .nav__tools .iconbtn--rss { display: none; }
}
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pricing, .channels, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
/* Header tier 2 — below this the six labels plus the tool row no longer fit even
   tightened (EN is the widest, needing ~1025px of row), so the links move into the ☰
   menu, which is also where the two secondary destinations come back. */
@media (max-width: 1140px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem; gap: .3rem; margin-inline: 0;
    max-height: calc(100dvh - var(--navh)); overflow-y: auto; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .8rem 1rem; font-size: var(--fs-md); }
  .nav__links > a[data-nav="member"],
  .nav__links > a[data-nav="subscribe"],
  .nav__links > a[data-nav="search"] { display: block; }
  .navtoggle { display: grid; }
}
/* On tablets and small laptops a full-bleed drawer looks like a mistake, so the same
   menu becomes a panel hanging under ☰, flush with the wrap's right gutter. */
@media (min-width: 681px) and (max-width: 1140px) {
  .nav__links { left: auto; right: clamp(18px, 4vw, 40px); width: min(280px, calc(100vw - 4rem));
    margin-top: -.4rem; padding: .5rem; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); }
  .nav__links a { padding: .65rem .9rem; border-radius: var(--radius-sm); }
}
@media (max-width: 680px) {
  /* The tool row (lang + sign-in + theme + ☰) is wider than an iPhone at the desktop
     sizes, which pushed ☰ off-screen and gave the whole page a horizontal scroll. */
  :root { --navh: 60px; }
  .nav { gap: .5rem; }
  .nav__tools { gap: .3rem; }
  .nav__tools .btn { padding: .5rem .8rem; font-size: var(--fs-sm); }
  .nav__tools .iconbtn { width: 36px; height: 36px; }
  .langset { padding: 2px; }
  .langset button { padding: .28rem .45rem; font-size: var(--fs-xs); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .pricing, .channels, .steps, .footer-grid, .stat-tiles, .comic { grid-template-columns: 1fr; }
  .brand__name span { display: none; }
  .compare { font-size: var(--fs-sm); }
  .compare th, .compare td { padding: .6rem .5rem; }
  .nav__tools .btn--subscribe { display: none; }
  /* The magnifier gives up its seat here — search is in the ☰ menu at this
     width, and the row has no room left for another control. */
  .nav__tools #searchBtn { display: none; }
  .timeline { padding-left: 1.6rem; }
  .tl-date::before, .tl-item::before { left: calc(-1.6rem + 1px); }
  .tl-card__thumb { display: none; }
}

/* Very narrow phones (iPhone SE/mini, 360px Androids): the header still has to fit
   brand + 中/EN/日 + sign-in + theme + ☰ with the widest label (ログイン). */
@media (max-width: 400px) {
  .nav__tools .btn { padding: .45rem .65rem; font-size: var(--fs-sm); }
  .langset button { padding: .28rem .4rem; }
}
@media (max-width: 380px) {
  .brand__name { display: none; }   /* the framed "iy" mark still carries the brand */
}
@media (max-width: 340px) {
  .wrap { padding-inline: 12px; }
  .langset button { padding: .28rem .32rem; font-size: var(--fs-2xs); }
}

/* =========================================================================
   Price Radar
   ========================================================================= */
/* nav entry renders like every other nav link (no box); it inherits .nav__links a.
   Kept as a hook only so the label can carry brand-accent text without a frame. */
.nav__radar { color: var(--accent-ink); white-space: nowrap; }

.radar-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-top: 2rem; }
.radar-search { flex: 1 1 260px; }
.radar-selects { display: flex; flex-wrap: wrap; gap: 1rem; }
.radar-field { display: flex; flex-direction: column; gap: .35rem; font-size: var(--fs-xs);
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-family: var(--font-sans); }
.radar-select { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-md);
  text-transform: none; letter-spacing: 0; min-width: 150px; cursor: pointer; }
.radar-select:focus { outline: none; border-color: var(--accent); }

.radar-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--radius-sm); color: #fff; font-family: var(--font-sans);
  font-weight: 700; font-size: var(--fs-lg); }
.radar-avatar--lg { width: 56px; height: 56px; font-size: var(--fs-2xl); border-radius: var(--radius); }
/* real App Store artwork: same footprint as the letter tile, no bg/letter needed */
.radar-avatar--img { object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-soft); }

.radar-card { text-align: left; cursor: pointer; padding: 1.1rem 1.2rem; display: flex;
  flex-direction: column; gap: .8rem; font: inherit; color: inherit; }
.radar-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.radar-card__top { display: flex; align-items: center; gap: .8rem; }
.radar-card__name { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-base); display: flex;
  flex-wrap: wrap; align-items: center; gap: .5rem; }
.radar-card__cheap { font-size: var(--fs-md); color: var(--muted); }
.radar-save { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-xs); color: var(--green);
  background: var(--green-wash); padding: .15rem .5rem; border-radius: var(--radius-pill); }

.radar-detail__head { display: flex; align-items: center; gap: 1rem; }
.radar-detail__id { min-width: 0; }
.radar-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .3rem;
  font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--muted); }
.radar-meta__dot { font-style: normal; color: var(--faint); }
.radar-meta a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.radar-meta a:hover { text-decoration: underline; }
.radar-plans { margin-top: 1.1rem; }

/* Summary tiles. Warm paper cards, not the article page's dark stat panel — these sit
   directly above the table and their tints MATCH the row tints below (green = cheapest,
   surface-2 = your region) so the eye connects tile to row. */
.radar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.4rem; }
.radar-stat { background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.radar-stat--best { background: var(--green-wash); border-color: color-mix(in srgb, var(--green) 26%, transparent); }
.radar-stat--home { background: var(--surface-2); }
.radar-stat__label { font-family: var(--font-sans); font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.radar-stat__fig { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.01em; margin-top: .35rem; }
.radar-stat--best .radar-stat__fig { color: var(--green); }
.radar-stat__sub { font-size: var(--fs-sm); color: var(--muted); margin-top: .2rem; }
.radar-stat__note { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--faint); margin-top: .45rem; }
.radar-stat--best .radar-stat__note { color: var(--green); font-weight: 600; }

.radar-tablewrap { overflow-x: auto; margin-top: 1.2rem; }
.radar-table td, .radar-table th { white-space: nowrap; }
.radar-rank { color: var(--faint); font-family: var(--font-mono); font-size: var(--fs-sm); }
.radar-col-bar { width: 30%; min-width: 120px; }
/* Bar = this region's price as a share of the priciest one. Green marks the floor,
   terracotta marks YOUR region, so the gap you'd close is visible without reading numbers. */
.radar-bar { display: block; height: 6px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--line) 55%, transparent); overflow: hidden; }
.radar-bar__fill { display: block; height: 100%; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--muted) 42%, transparent); transition: width .25s ease; }
.radar-bar__fill--best { background: var(--green); }
.radar-bar__fill--home { background: var(--accent); }
.radar-legend { margin-top: .7rem; line-height: 1.5; }
.radar-row--best td { background: var(--green-wash); }
.radar-row--home td { background: var(--surface-2); }
.radar-tag { color: var(--green); }
.radar-vs--down { color: var(--green); font-weight: 600; }
.radar-vs--up { color: var(--accent-ink); }
.radar-vs--home { color: var(--faint); }
.radar-est { color: var(--faint); font-weight: 400; }
.radar-reportform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; margin-top: .4rem; }
.radar-reportform__title { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-base); margin: 0 0 .3rem; }
.radar-real { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-2xs); letter-spacing: .04em;
  text-transform: uppercase; color: var(--green); background: var(--green-wash);
  padding: .1rem .4rem; border-radius: var(--radius-pill); vertical-align: middle; }

/* ---- Price history (per-region trend chart) ---- */
.radar-row { cursor: pointer; transition: background .12s; }
.radar-row:hover td { background: var(--bg-2); }
.radar-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.modal--wide { max-width: 620px; }
.trend { width: 100%; height: 190px; color: var(--ink); overflow: visible; }
.trend-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.trend-now { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-2xl); }
.trend-now__per { font-size: var(--fs-md); font-weight: 400; color: var(--faint); margin-left: .15rem; }
.trend-delta { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-md); color: var(--faint); }
.trend-axis { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: .04em;
  text-transform: uppercase; color: var(--faint); margin-bottom: .3rem; }
.trend-note { margin-top: .8rem; line-height: 1.5; }

@media (max-width: 680px) {
  .radar-controls { gap: .9rem; margin-top: 1.4rem; }
  .radar-search { flex-basis: 100%; max-width: none; }
  .radar-selects { width: 100%; gap: .9rem; }
  .radar-field { flex: 1 1 45%; min-width: 0; }
  /* the store toggle is two chips — give it its own full-width row */
  .radar-field:has(#storeToggle) { flex-basis: 100%; }
  .radar-select { min-width: 0; width: 100%; }

  .radar-detail__head { gap: .8rem; }
  .radar-detail__head h2 { font-size: var(--fs-xl); }
  /* Summary tiles stack, but "cheapest" stays first — it's the answer to the question. */
  .radar-stats { grid-template-columns: 1fr; gap: .6rem; margin-top: 1.1rem; }
  .radar-stat { padding: .8rem .9rem; display: grid; grid-template-columns: 1fr auto;
    align-items: baseline; column-gap: .8rem; }
  .radar-stat__label { grid-column: 1; }
  .radar-stat__fig { grid-column: 2; grid-row: 1; margin-top: 0; }
  .radar-stat__sub { grid-column: 1; }
  .radar-stat__note { grid-column: 2; grid-row: 2; margin-top: 0; text-align: right; }
  /* Nowrap columns don't all fit a phone: the two that matter most (converted price and
     vs-your-region) scrolled off. Drop rank, the spread bar, and store — store just
     repeats the toggle above, and rank is already implied by the sort order. */
  .radar-col-rank, .radar-col-bar { display: none; }
  .radar-table th:nth-child(4), .radar-table td:nth-child(4) { display: none; }
  .radar-legend { display: none; }
  .radar-table { font-size: var(--fs-sm); }
  .radar-table th, .radar-table td { padding: .55rem .35rem; }
  /* headers may wrap to two lines ("vs your region" alone was 121px of nowrap);
     price cells stay on one line */
  .radar-table th, .radar-table td:first-child { white-space: normal; }
  .radar-real { font-size: .6rem; }
  .radar-reportform { padding: 1rem; }
  .trend { height: 160px; }
  .trend-now { font-size: var(--fs-xl); }
}

/* =========================================================================
   Search — the ⌘K palette and the /search results page
   ========================================================================= */
mark { background: var(--accent-wash); color: inherit; border-radius: 3px;
  padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.no-scroll { overflow: hidden; }

/* ---- palette (header ⌘K / "/" ) ---- */
.palette-backdrop { position: fixed; inset: 0; z-index: 210;
  background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(4px);
  display: grid; align-items: start; justify-items: center; padding: 1rem;
  padding-top: clamp(1rem, 12vh, 8rem); animation: fade .15s ease; }
.palette { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(72vh, 560px); }
.palette__head { display: flex; align-items: center; gap: .65rem; padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--line-soft); flex: none; }
.palette__head svg { flex: none; color: var(--faint); }
.palette__head input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--font-sans); font-size: var(--fs-base); }
/* Safari draws its own clear button inside type=search; it collides with Esc. */
.palette__head input::-webkit-search-decoration,
.palette__head input::-webkit-search-cancel-button { -webkit-appearance: none; }
.palette__esc { flex: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--faint);
  font-family: var(--font-sans); font-size: var(--fs-2xs); letter-spacing: .06em;
  padding: .25rem .5rem; border-radius: 6px; cursor: pointer; }
.palette__esc:hover { color: var(--ink); border-color: var(--accent); }
.palette__results { overflow-y: auto; overscroll-behavior: contain; padding: .4rem; }
.palette__label { font-family: var(--font-sans); font-size: var(--fs-2xs); letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); padding: .5rem .7rem .3rem; }
.palette__none { padding: 1.4rem .8rem; color: var(--muted); font-size: var(--fs-md); text-align: center; }
.palette__all { display: block; text-align: center; text-decoration: none; color: var(--accent);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; padding: .7rem; }
.palette__foot { flex: none; display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line-soft); padding: .5rem 1.1rem; color: var(--faint);
  font-family: var(--font-sans); font-size: var(--fs-2xs); }

.pres { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit;
  padding: .6rem .7rem; border-radius: var(--radius-sm); }
/* Keyboard and pointer share one highlight, so ↓↓↵ and a click never disagree. */
.pres.is-active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.pres__cat { flex: none; width: 4.5rem; font-family: var(--font-sans); font-size: var(--fs-2xs);
  letter-spacing: .04em; text-transform: uppercase; color: var(--faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pres__body { min-width: 0; flex: 1; display: block; }
.pres__title { display: block; font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-md);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pres__snip { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- /search results ---- */
.searchbox--lg { max-width: none; padding: .55rem .55rem .55rem 1rem; gap: .7rem; }
/* The shared .searchbox rule gives the input width:100%, which shoves the submit
   button out of the pill (and onto a second line on a phone). Let it shrink. */
.searchbox--lg input { font-size: var(--fs-base); flex: 1 1 auto; width: auto; min-width: 0; }
.btn--sm { padding: .45rem .9rem; font-size: var(--fs-sm); }

.results { display: flex; flex-direction: column; gap: .2rem; margin-top: .4rem; }
.result { display: block; text-decoration: none; color: inherit; padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft); }
.result:hover .result__title { color: var(--accent); }
.result__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.result__date { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--faint); }
.result__title { font-family: var(--font-sans); font-size: var(--fs-lg); line-height: 1.3;
  margin-top: .5rem; transition: color .15s; }
.result__snip { color: var(--muted); font-size: var(--fs-md); line-height: 1.6; margin-top: .4rem;
  max-width: 72ch; }
:lang(zh) .result__snip, :lang(ja) .result__snip { max-width: 40em; }

@media (max-width: 680px) {
  .palette-backdrop { padding: .6rem; padding-top: .6rem; }
  .palette { max-height: calc(100dvh - 1.2rem); }
  .pres__cat { display: none; }
  .searchbox--lg { padding-left: .8rem; gap: .4rem; }
}
