/* Tokensbeat News, 時報: a daily issue set in one ink on plain stock, after s1lin's "Vol. 30" (s1lin.tokensbeat.com).
   Fonts are this site's own files (public/fonts, SIL OFL 1.1); nothing is loaded from another host. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin.5eb09b5ac0.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-latin.5a51946dff.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-800-latin.b4b4a0877c.woff2") format("woff2"); unicode-range: U+0000-00FF; }
/* Only the glyphs of the fixed Japanese labels (lib.js JA_GLYPHS): used for lang="ja" labels, never for headlines. */
@font-face { font-family: "Jiho Mincho"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/shippori-mincho-b1-800-subset.490d6d02f4.woff2") format("woff2"); }

:root {
  --paper: #f6f6f4;
  --paper-2: #ececea;
  --sumi: #111;
  --ink-2: #4d4d4d;
  --ink-3: #8a8a8a;
  --rule: rgb(17 17 17 / 0.14);
  --rule-strong: rgb(17 17 17 / 0.8);
  --up: #1e6b46;
  --down: #b3361f;

  --f-display: "Instrument Serif", "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --f-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --f-mincho: "Jiho Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", "Noto Serif CJK JP", serif;
  --f-mast: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(14px, 2vw, 28px);
  --max: 1440px;
  --head-h: 44px;
  --frame: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) / 2);
  /* A "+" registration mark at each corner of a box, in its text colour (11px larger than the box it marks). */
  --corners:
    linear-gradient(currentColor 0 0) left 5px top 0 / 1px 11px no-repeat,
    linear-gradient(currentColor 0 0) left 0 top 5px / 11px 1px no-repeat,
    linear-gradient(currentColor 0 0) right 5px top 0 / 1px 11px no-repeat,
    linear-gradient(currentColor 0 0) right 0 top 5px / 11px 1px no-repeat,
    linear-gradient(currentColor 0 0) left 5px bottom 0 / 1px 11px no-repeat,
    linear-gradient(currentColor 0 0) left 0 bottom 5px / 11px 1px no-repeat,
    linear-gradient(currentColor 0 0) right 5px bottom 0 / 1px 11px no-repeat,
    linear-gradient(currentColor 0 0) right 0 bottom 5px / 11px 1px no-repeat;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0f0f; --paper-2: #191919; --sumi: #ededed; --ink-2: #b3b3b3; --ink-3: #7a7a7a;
    --rule: rgb(237 237 237 / 0.14); --rule-strong: rgb(237 237 237 / 0.8); --up: #5cc493; --down: #f0846c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0f0f; --paper-2: #191919; --sumi: #ededed; --ink-2: #b3b3b3; --ink-3: #7a7a7a;
  --rule: rgb(237 237 237 / 0.14); --rule-strong: rgb(237 237 237 / 0.8); --up: #5cc493; --down: #f0846c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--sumi);
  font: 400 clamp(16px, 0.35vw + 15px, 18px) / 1.6 var(--f-sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--sumi); outline-offset: 3px; }
button { font: inherit; color: inherit; }
[lang="ja"] { font-family: var(--f-mincho); font-weight: 800; line-break: strict; }
html[lang="zh-Hans"] body { line-break: strict; }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--sumi); color: var(--paper); padding: 8px 12px; font: 500 13px var(--f-mono); }
.skip:focus { top: 8px; }

/* Chinese readers: the English shell waits (at most 2 s) for app.js to set its words. */
.i18n-wait [data-t] { visibility: hidden; animation: i18n-reveal 0s 2s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > *, .cover__band > *, .sec > *, .board > * { min-width: 0; }

/* ------------------------------------------------------------------ running head */

.runhead {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 0.5px solid var(--rule);
}
.runhead .wrap { height: 100%; display: flex; align-items: center; gap: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.runhead__brand { text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.runhead__brand b { font: 800 15px/1 var(--f-mast); letter-spacing: -0.01em; }
.runhead__brand span { font-size: 13px; letter-spacing: 0.2em; }
.brand-mark rect { fill: var(--sumi); }
.brand-mark path { fill: none; stroke: var(--paper); stroke-width: 5; }
.runhead__now { flex: 1; min-width: 0; margin: 0; text-align: center; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runhead__now b { color: var(--sumi); font-weight: 800; margin-right: 0.6em; }
.runhead__vol { white-space: nowrap; color: var(--ink-2); }
.toggle {
  appearance: none; border: 0.5px solid var(--rule-strong); background: transparent; cursor: pointer;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.06em; padding: 6px 8px; border-radius: 2px; min-width: 32px;
}
.toggle:hover { background: var(--sumi); color: var(--paper); }
@media (max-width: 720px) {
  .runhead__vol { display: none; }
  .runhead__now { text-align: right; }
}
@media (max-width: 420px) {
  .runhead__brand span { display: none; }
  .runhead .wrap { gap: 10px; }
}

/* ------------------------------------------------------------------ frame: hairlines either side, "+" where rules cross */

.spread { position: relative; padding-block: clamp(64px, 9vw, 136px); border-top: 0.5px solid var(--rule); }
.cover::before, .spread::before { content: ""; position: absolute; inset: 0 var(--frame); pointer-events: none; border-inline: 0.5px solid var(--rule); }
.spread::after, .runhead::after {
  content: ""; position: absolute; z-index: 1; top: -5.5px; height: 11px; pointer-events: none;
  left: calc(var(--frame) - 5.5px); right: calc(var(--frame) - 5.5px);
  color: var(--sumi); background: var(--corners);
}
.runhead::after { top: auto; bottom: -6px; }

/* ------------------------------------------------------------------ shared editorial parts */

.kicker { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.kicker [lang="ja"] { font-size: 13px; letter-spacing: 0.2em; color: var(--sumi); }
.sect-label {
  margin: 0 0 28px; padding-bottom: 10px; border-bottom: 0.5px solid var(--rule-strong);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.sect-label [lang="ja"] { font-size: 20px; line-height: 1; letter-spacing: 0.24em; text-transform: none; }
.sect-label__folio { margin-left: auto; color: var(--ink-3); font-size: 11px; text-transform: none; }
.cap { margin: 14px 0 0; font: 400 11px/1.6 var(--f-mono); letter-spacing: 0.02em; color: var(--ink-2); }
.cap a { color: var(--ink-2); }
.placeholder { margin: 0; font: 400 12px/1.5 var(--f-mono); color: var(--ink-3); }
.placeholder--error { color: var(--sumi); }
.roundel {
  display: inline-grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%;
  border: 1px solid var(--sumi); background: var(--paper); color: var(--sumi); font: 600 0.8em/1 var(--f-sans);
}
.button {
  appearance: none; cursor: pointer; border: 0.5px solid var(--rule-strong); background: transparent;
  padding: 8px 14px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.button:hover:not(:disabled) { background: var(--sumi); color: var(--paper); }
.button:disabled { opacity: 0.4; cursor: default; }
.meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font: 400 11px/1.5 var(--f-mono); letter-spacing: 0.04em; color: var(--ink-2); }
.meta a { color: var(--ink-2); }
.meta .tag { text-transform: uppercase; letter-spacing: 0.1em; }
.headline { margin: 0; font-family: var(--f-display); font-weight: 400; letter-spacing: -0.005em; text-wrap: balance; overflow-wrap: anywhere; }
.headline a { text-decoration: none; }
.headline a:hover { text-decoration: underline; text-decoration-thickness: 0.04em; color: inherit; }
html[lang="zh-Hans"] .headline { letter-spacing: 0.01em; }
.excerpt { margin: 10px 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ cover */

.cover { position: relative; padding-top: clamp(16px, 2.6vw, 32px); padding-bottom: clamp(40px, 5vw, 72px); }
.cover__issue { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-bottom: 10px; border-bottom: 0.5px solid var(--rule-strong); }
.cover__issue b { font-weight: 800; }
.cover__issue [lang="ja"] { letter-spacing: 0.2em; text-transform: none; font-size: 12px; }
.masthead { margin: clamp(10px, 1.6vw, 22px) 0 0; line-height: 0; }
.masthead svg { width: 100%; height: auto; overflow: visible; }
.masthead text { font: 800 152px/1 var(--f-mast); letter-spacing: -0.035em; fill: var(--sumi); }
/* the beat, cut out of the masthead */
.masthead__beat { fill: transparent; stroke: var(--sumi); stroke-width: 1.4px; vector-effect: non-scaling-stroke; paint-order: stroke; }
.cover__sub { margin-top: clamp(14px, 2vw, 26px); }
.cover__name { margin: 0; max-width: 40em; font: 400 clamp(1.08rem, 0.8vw + 0.92rem, 1.55rem)/1.34 var(--f-display); text-wrap: pretty; }
.cover__name [lang="ja"] { font-size: 0.86em; letter-spacing: 0.24em; margin-right: 0.7em; }
.cover__tate { grid-column: 12; grid-row: 1; justify-self: end; margin: 0; writing-mode: vertical-rl; font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1; letter-spacing: 0.32em; }
.cover__tate small { display: block; margin-top: 0.8em; font: 500 10px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }

.cover__band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; margin-top: clamp(28px, 4vw, 56px); }
.lead { grid-column: 1 / span 6; grid-row: 1; position: relative; padding: clamp(16px, 2vw, 28px); border: 0.5px solid var(--rule-strong); }
.lead::after { content: ""; position: absolute; inset: -6px; pointer-events: none; background: var(--corners); }
.lead .headline { font-size: clamp(1.9rem, 3vw, 3.1rem); line-height: 1.04; }
html[lang="zh-Hans"] .lead .headline { font-size: clamp(1.7rem, 2.8vw, 2.8rem); line-height: 1.25; }
.lead .excerpt { -webkit-line-clamp: 5; line-clamp: 5; font-size: 1rem; }
.coverlines { grid-column: 7 / span 5; grid-row: 1; list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--rule-strong); }
.coverlines li { border-bottom: 0.5px solid var(--rule); }
.coverlines a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; font: 500 clamp(0.92rem, 0.3vw + 0.85rem, 1.05rem)/1.28 var(--f-sans); }
.coverlines a > span { overflow-wrap: anywhere; }
.coverlines small { display: block; margin-top: 3px; font: 400 11px/1.3 var(--f-mono); color: var(--ink-2); letter-spacing: 0.04em; }
.coverlines em { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--ink-3); letter-spacing: 0.1em; white-space: nowrap; }

.wire { margin-top: clamp(32px, 4vw, 56px); }
.wire__label { margin: 0; padding-top: 12px; border-top: 0.5px solid var(--rule-strong); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.wire__label [lang="ja"] { font-size: 20px; line-height: 1; letter-spacing: 0.2em; text-transform: none; color: var(--sumi); }
.wire__label small { font-size: 10.5px; letter-spacing: 0.06em; text-transform: none; color: var(--ink-3); }
.wire__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.wire__list li { min-width: 0; padding-left: 12px; border-left: 0.5px solid var(--rule); }
.wire__list time { display: block; font: 500 11px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wire__list a { display: block; margin-top: 6px; text-decoration: none; font: 400 1.08rem/1.25 var(--f-display); overflow-wrap: anywhere; }
.wire__list a:hover { text-decoration: underline; }
.cover__foot { display: flex; justify-content: flex-end; margin-top: 28px; }
.barcode { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.barcode i {
  display: block; width: 132px; height: 34px;
  background: repeating-linear-gradient(90deg, var(--sumi) 0 2px, transparent 2px 3px, var(--sumi) 3px 4px, transparent 4px 7px, var(--sumi) 7px 10px, transparent 10px 11px, var(--sumi) 11px 12px, transparent 12px 15px, var(--sumi) 15px 16px, transparent 16px 18px, var(--sumi) 18px 21px, transparent 21px 22px);
}
.barcode span { font: 500 10px/1 var(--f-mono); letter-spacing: 0.14em; }

@media (max-width: 960px) {
  .lead, .coverlines { grid-column: 1 / -1; grid-row: auto; }
  .cover__tate { display: none; }
  .wire__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wire__list { grid-template-columns: minmax(0, 1fr); }
  .wire__list li { padding-left: 0; border-left: 0; padding-bottom: 10px; border-bottom: 0.5px solid var(--rule); }
}

/* ------------------------------------------------------------------ contents */

.toc { grid-column: 1 / span 5; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; text-decoration: none; font: 400 clamp(1.15rem, 0.5vw + 1rem, 1.45rem)/1.2 var(--f-display); }
.toc a::after { content: ""; order: 2; flex: 1; min-width: 24px; border-bottom: 1px dotted var(--ink-3); transform: translateY(-0.25em); }
.toc__t { order: 1; }
.toc__t small { margin-left: 8px; font: 800 12px/1 var(--f-mincho); letter-spacing: 0.2em; color: var(--ink-2); }
.toc__p { order: 3; font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.note { grid-column: 7 / span 6; }
.note__body { margin: 0; max-width: 34em; font: 400 clamp(1.2rem, 0.9vw + 1rem, 1.7rem)/1.35 var(--f-display); text-wrap: pretty; }
.note__sources { margin: 22px 0 0; max-width: 60em; text-transform: none; letter-spacing: 0.02em; line-height: 1.7; color: var(--ink-2); }
.note__actions { margin: 22px 0 0; }
@media (max-width: 900px) {
  .toc, .note { grid-column: 1 / -1; }
  .note { margin-top: 48px; }
}

/* ------------------------------------------------------------------ sections */

.sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 36px) var(--gap); }
.sec > * { grid-column: 1 / -1; }
.sec__state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sec__lead { grid-column: 1 / span 7; }
.sec__lead .headline { font-size: clamp(1.9rem, 3vw, 3.1rem); line-height: 1.04; }
html[lang="zh-Hans"] .sec__lead .headline { font-size: clamp(1.5rem, 2.3vw, 2.4rem); line-height: 1.3; }
.sec__side { grid-column: 9 / span 4; list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--rule-strong); }
.sec__side li { padding: 14px 0; border-bottom: 0.5px solid var(--rule); }
.sec__side .headline { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.45rem); line-height: 1.18; }
.sec__rest { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 0.5px solid var(--rule-strong); }
.sec__rest li { min-width: 0; padding: 12px 0; border-bottom: 0.5px solid var(--rule); }
.sec__rest .headline { font-size: 1.12rem; line-height: 1.22; }
.sec__more { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.sec__more .placeholder { flex: 1; }

/* Hacker News: a ranking, numbered as it was ranked. */
.ranked { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; columns: 2; column-gap: calc(var(--gap) * 2); column-rule: 0.5px solid var(--rule); }
.ranked li { break-inside: avoid; display: grid; grid-template-columns: 2.4em 1fr; gap: 10px; padding: 12px 0; border-bottom: 0.5px solid var(--rule); }
.ranked .rank { font: 400 1.6rem/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; color: var(--ink-3); text-align: right; }
.ranked .headline { font-size: 1.18rem; line-height: 1.2; }

/* GitHub: repositories as entries in a catalogue. */
.repos { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.repos li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 0 14px; padding: 14px 0 16px; border-top: 0.5px solid var(--rule-strong); }
.repos li > * { grid-column: 1; }
.repos .headline { font: 500 0.95rem/1.35 var(--f-mono); letter-spacing: 0; overflow-wrap: anywhere; }
.repos .stars { grid-column: 2; grid-row: 1 / span 3; margin: 0; font: 400 1.9rem/1 var(--f-display); font-variant-numeric: lining-nums; white-space: nowrap; }

/* AI labs: briefs, filtered by lab. */
.labs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 4px; }
.labs button { appearance: none; cursor: pointer; border: 0.5px solid var(--rule-strong); background: transparent; padding: 6px 10px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; }
.labs button[aria-pressed="true"] { background: var(--sumi); color: var(--paper); }
.briefs { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gap) * 2); border-top: 0.5px solid var(--rule-strong); }
.briefs li { min-width: 0; padding: 16px 0; border-bottom: 0.5px solid var(--rule); }
.briefs .headline { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.5rem); line-height: 1.18; }
.briefs .excerpt { -webkit-line-clamp: 3; line-clamp: 3; }

@media (max-width: 960px) {
  .sec__lead, .sec__side { grid-column: 1 / -1; }
  .sec__rest, .repos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .briefs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sec__rest, .repos { grid-template-columns: minmax(0, 1fr); }
  .ranked { columns: 1; }
}

/* ------------------------------------------------------------------ markets */

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.board__group h3 { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 0.5px solid var(--rule-strong); font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.board td { padding: 9px 0; border-bottom: 0.5px solid var(--rule); vertical-align: baseline; }
.board td + td { padding-left: 8px; text-align: right; white-space: nowrap; }
.board .name { font-size: 0.92rem; line-height: 1.25; }
.board .name a { text-decoration: none; }
.board .name a:hover { text-decoration: underline; }
.board .value { font: 400 1.05rem/1 var(--f-display); }
.board .pct { font: 500 11.5px/1 var(--f-mono); }
.board .pct[data-dir="up"] { color: var(--up); }
.board .pct[data-dir="down"] { color: var(--down); }
.board .pct[data-dir="up"]::before { content: "▲ "; font-size: 0.8em; }
.board .pct[data-dir="down"]::before { content: "▼ "; font-size: 0.8em; }
.board .spark { width: 64px; height: 20px; }
.board .spark polyline { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.board .spark-cell { width: 70px; color: var(--ink-2); }
.board tr[data-status="stale"] .value::after { content: " *"; color: var(--ink-3); }
.board tr[data-status="unavailable"] { color: var(--ink-3); }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) { .board .spark-cell { display: none; } }

/* ------------------------------------------------------------------ weather */

.sky { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.sky li { min-width: 0; position: relative; padding: 16px 14px 14px; border: 0.5px solid var(--rule-strong); display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 4px 10px; }
.sky .city { grid-column: 1 / -1; margin: 0; font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.sky .temp { margin: 6px 0 0; font: 400 clamp(2.4rem, 3.2vw, 3.4rem)/1 var(--f-display); font-variant-numeric: lining-nums; }
.sky .kanji { margin: 6px 0 0; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1; writing-mode: vertical-rl; letter-spacing: 0.1em; }
.sky .kind, .sky .facts { grid-column: 1 / -1; margin: 0; }
.sky .kind { font-size: 0.95rem; }
.sky .facts { font: 400 11px/1.6 var(--f-mono); color: var(--ink-2); }
@media (max-width: 1100px) { .sky { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sky { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ colophon */

.colophon { padding-bottom: 56px; }
.okuzuke { grid-column: 1 / span 7; position: relative; border: 0.5px solid var(--rule-strong); padding: clamp(18px, 2.4vw, 32px); }
.okuzuke::after { content: ""; position: absolute; inset: -6px; pointer-events: none; background: var(--corners); }
.okuzuke h2 { margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.okuzuke h2 [lang="ja"] { font-size: 2rem; line-height: 1; letter-spacing: 0.3em; text-transform: none; }
.okuzuke dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; }
.okuzuke dt, .okuzuke dd { margin: 0; padding: 7px 0; border-top: 0.5px solid var(--rule); font-size: 0.9rem; }
.okuzuke dt { font: 500 10.5px/1.9 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.contact { grid-column: 9 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.contact__ja { margin: 0; font-size: clamp(3rem, 5vw, 5rem); line-height: 1; letter-spacing: 0.1em; writing-mode: vertical-rl; }
.contact ul { list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--rule-strong); }
.contact li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 0.5px solid var(--rule); text-decoration: none; font: 500 0.98rem/1.25 var(--f-sans); }
.contact li a span + span { font: 400 11px/1.6 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.endmark { grid-column: 1 / -1; margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 14px; border-top: 0.5px solid var(--rule-strong); text-transform: none; letter-spacing: 0.04em; color: var(--ink-2); }
.endmark p { margin: 0; }
@media (max-width: 900px) {
  .okuzuke, .contact { grid-column: 1 / -1; }
  .contact { margin-top: 40px; }
  .contact__ja { writing-mode: horizontal-tb; font-size: 2.4rem; }
  .okuzuke dl { grid-template-columns: 1fr; }
  .okuzuke dd { border-top: 0; padding-top: 2px; }
}

.noscript { max-width: var(--max); margin: 40px auto; padding: 0 var(--gutter); font: 400 14px/1.6 var(--f-mono); }

/* ------------------------------------------------------------------ the rules draw in as they arrive (progressive) */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sect-label { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; transform-origin: left; }
    @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

@media print {
  .runhead, .toggle, .button, .labs, .sec__more { display: none !important; }
  .spread { padding-block: 32px; }
}
