/* SAYZ LAB 研究日誌 No.10 — fresh build, final finishing: ブランド統一版
   サイトカラーと基本書体は SAYZ LAB 既存誌面（No.09）のカノンに合わせた（ティール基調／Zen Kaku Gothic New）。
   状態色は意味で使う: 赤=残存・異常 / ティール濃=ゼロ・正しい / 琥珀=不安定・停止 / 藍=日本語字形。
   状態は色だけでなく記号（●○◐）とラベルでも示す。装飾のアクセントはブランドティールに統一し、金色は使わない。 */
:root {
  --paper: #F3F7F6;
  --paper-2: #E3F2EF;
  --ink: #0F2E33;
  --ink-2: #4E6266;
  --rule: #D5E2DF;
  --red: #B3261E;
  --red-bg: #FAECEA;
  --ok: #0B7A73;
  --ok-bg: #DCEFEA;
  --warn: #B8862B;
  --warn-bg: #F7EFDC;
  --jp: #2C4A9A;
  --accent: #139C94;
  --acText: #0B7A73;
  --back: #9FCFC4;
  --white: #FFFFFF;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --serif: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: 20px;
  --col: 34em;
  --wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  line-break: strict;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--acText); }
code { font-family: var(--mono); font-size: 1em; background: var(--paper-2); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }
strong { font-weight: 700; background: linear-gradient(transparent 60%, rgba(19,156,148,.22) 60%); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.col { max-width: calc(var(--col) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.wide { max-width: calc(var(--wide) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
main > section { padding: 56px 0 40px; border-top: 1px solid var(--rule); background: rgba(243,247,246,.88); }
p { margin: 0 0 1.1em; }
h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
h2 { font-size: 24px; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 32px 0 10px; }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; background: transparent; }
.progress__bar { height: 100%; width: 0; background: var(--ink); transition: width .1s linear; }
.progress__ticks { position: absolute; inset: 0; }
.progress__ticks i { position: absolute; top: 0; width: 2px; height: 7px; background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 36px 0 32px; background: var(--paper); }
.hero__kicker { font-size: 14px; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 14px; line-height: 1.7; }
.hero__kicker b { color: var(--ink); font-weight: 700; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 29px; line-height: 1.38; margin: 0 0 18px; letter-spacing: .01em; }
.hero h1 span { display: inline-block; }
.hero__lead { font-size: 16px; margin-bottom: 20px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink); background: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--ink); color: var(--white); }
.qlist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; counter-reset: q; }
.qlist li { counter-increment: q; }
.qlist a {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.5;
}
.qlist a::before { content: "0" counter(q); font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--acText); text-align: center; }

/* ---------- figures ---------- */
figure { margin: 26px 0; }
figcaption { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin-top: 10px; }
.scene { margin: 28px auto; }
.scene img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 16px; }
.panel__title { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 12px; }

/* exhibit = real material from the experiment */
.exhibit { background: var(--white); padding: 12px 12px 14px; border-radius: 6px; box-shadow: 0 1px 0 var(--rule), 0 8px 24px rgba(31,36,48,.08); position: relative; }
.exhibit__tag { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--white); background: var(--ink); border-radius: 3px; padding: 2px 8px; margin-bottom: 8px; }
.exhibit__file { font-family: var(--mono); font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.exhibit a.zoom { font-size: 14px; }

/* big number / discovery opener */
.disc-head { margin-bottom: 22px; }
.disc-head__no { font-family: var(--serif); font-size: 15px; letter-spacing: .14em; color: var(--acText); margin: 0 0 4px; }
.disc-head__no b { font-size: 44px; font-weight: 300; letter-spacing: 0; color: var(--ink); margin-left: 4px; vertical-align: -4px; }
.disc-head h2 { margin-top: 6px; }
.bignum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 22px; }
.bignum > div { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 12px 10px; }
.bignum .who { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.bignum .who img { width: 18px; height: 18px; }
.bignum .n { font-family: var(--serif); font-weight: 900; font-size: 40px; line-height: 1.1; margin: 4px 0 2px; }
.bignum .n small { font-size: 18px; color: var(--ink-2); }
.bignum .lbl { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bignum .is-red .n { color: var(--red); }
.bignum .is-ok .n { color: var(--ok); }
.bignum .is-warn .n { color: var(--warn); }
.bignum--one { grid-template-columns: 1fr; }

/* ---------- state chips ---------- */
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.7; }
.st--red { color: var(--red); background: var(--red-bg); }
.st--ok { color: var(--ok); background: var(--ok-bg); }
.st--warn { color: #8A6418; background: var(--warn-bg); }
.st--gray { color: var(--ink-2); background: var(--paper-2); }
.st--red::before { content: "●"; }
.st--ok::before { content: "○"; }
.st--warn::before { content: "◐"; }
.st--gray::before { content: "－"; }

/* model labels: identity by icon + name, never by colour */
.model { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; }
.model img { width: 1.05em; height: 1.05em; display: inline-block; }
/* The official OpenAI file has wide built-in padding (that padding is the logo's own
   clear space). The file is used unmodified; instead of a transform, the layout box
   itself is enlarged so real space is reserved around the mark (OpenAI brand
   guidelines: use the logo exactly as provided, with its prescribed spacing). */
.model img.ico-openai { width: 2.05em; height: 2.05em; margin: -0.5em 0.05em; }
.bignum .who img.ico-openai { width: 37px; height: 37px; margin: -9px 0; }

/* ---------- chat ---------- */
.chat { margin: 26px calc(var(--pad) * -1); padding: 18px var(--pad); background: var(--paper-2); display: grid; gap: 12px; }
.chat__line { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; max-width: 30em; }
.chat__line img { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--white); box-shadow: 0 0 0 1px var(--rule); background: var(--white); }
.chat__line p { margin: 0; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: var(--white); font-size: 15px; line-height: 1.7; position: relative; }
.chat__line p::before { content: attr(data-name); display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: .06em; line-height: 1.4; margin-bottom: 2px; }
.chat__line--rin { grid-template-columns: 1fr 40px; justify-self: end; }
.chat__line--rin img { order: 2; }
.chat__line--rin p { order: 1; border-radius: 16px 4px 16px 16px; border: 1.5px solid var(--accent); background: #D8EEE8; }
.chat__line--sayz p { border: 1.5px solid #C9CCD3; }

/* ---------- stamps (prediction results) ---------- */
.stamp {
  display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 8px; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 10px; background: var(--white);
}
.stamp__mark {
  flex: 0 0 auto; transform: rotate(-8deg); border: 2.5px solid currentColor; border-radius: 8px; padding: 3px 8px 2px; font-family: var(--serif);
  font-weight: 700; font-size: 15px; line-height: 1.25; text-align: center; letter-spacing: .04em; margin-top: 4px;
}
.stamp__mark small { display: block; font-size: 14px; letter-spacing: .1em; }
.stamp--hit .stamp__mark { color: var(--ok); }
.stamp--miss .stamp__mark { color: var(--red); }
.stamp__body { font-size: 14px; line-height: 1.7; }
.stamp__body q { quotes: "「" "」"; color: var(--ink-2); }

/* ---------- limit box ---------- */
.limit { margin: 22px 0; padding: 12px 14px 12px 16px; border-left: 3px solid var(--warn); background: var(--warn-bg); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.75; }
.limit__title { font-weight: 700; font-size: 14px; letter-spacing: .08em; color: #8A6418; margin: 0 0 4px; }
.limit p:last-child, .limit ul:last-child { margin-bottom: 0; }
.limit ul { margin: 0; padding-left: 1.2em; }

/* ---------- quotes from primary records ---------- */
.rawq { margin: 22px 0; padding: 14px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; position: relative; }
.rawq__src { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.rawq__src .exhibit__tag { margin: 0; }
.rawq blockquote { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.85; }
.rawq__note { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }

/* ---------- F1 glyph compare ---------- */
.glyphs { display: grid; gap: 14px; }
.glyph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.glyph-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 10px 12px; text-align: center; }
.glyph-card img { width: 100%; max-width: 160px; margin: 0 auto 6px; }
.glyph-card .t { font-size: 14px; font-weight: 700; }
.glyph-card .d { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 2px; }
.glyph-card--jp .t { color: var(--jp); }
.codept { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.codept .box { font-family: var(--mono); background: var(--ink); color: var(--white); border-radius: 6px; padding: 4px 10px; font-size: 14px; }
.codept .arrow { color: var(--ink-2); }

/* ---------- F3 experiment map ---------- */
.task { background: var(--ink); color: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.task b { display: block; font-size: 14px; letter-spacing: .12em; color: #C9CCD3; }
.lanes { display: grid; gap: 10px; margin: 10px 0; position: relative; }
.lane { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; }
.lane__key { font-family: var(--serif); font-size: 26px; line-height: 1; font-weight: 700; text-align: center; padding-top: 4px; }
.lane__name { font-weight: 700; font-size: 15px; line-height: 1.5; }
.lane__desc { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.lane__flow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; align-items: center; font-size: 14px; }
.chip { border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; padding: 1px 7px; line-height: 1.7; white-space: nowrap; }
.chip--doc { border-color: var(--ink-2); }
.chip--ins { border-color: var(--jp); color: var(--jp); }
.chip--gate { border-color: var(--warn); color: #8A6418; background: var(--warn-bg); }
.flow-arrow { color: var(--ink-2); }
.verifier { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.65; background: var(--white); }
.verifier b { font-size: 14px; }

/* F4 material cards */
.mats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mat { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.6; }
.mat b { display: block; font-size: 14px; }
.mat .role { color: var(--ink-2); font-size: 14px; }
.mat--wide { grid-column: 1 / -1; }

/* F5/F6 dot grid */
.dots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dots__col { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; }
.dots__col h4 { margin: 0 0 8px; font-size: 14px; }
.dots__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dot { border-radius: 10px; padding: 8px 6px; text-align: center; font-size: 14px; line-height: 1.4; border: 1.5px solid; }
.dot b { display: block; font-size: 22px; line-height: 1.1; }
.dot--red { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.dot--ok { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.dot--red b::before { content: "●"; }
.dot--ok b::before { content: "○"; }
.dots__note { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }

/* F7 tile map */
.tilemap { position: relative; }
.tilemap img { width: 100%; }
.tilemap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tilemap__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.tilemap__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--red); margin-right: 5px; vertical-align: -1px; }
.tilemap__legend span.g::before { border: 1px dashed var(--accent); border-radius: 0; }
.lines img { width: 100%; border: 1px solid var(--rule); margin-bottom: 6px; background: var(--white); }

/* judge split */
.split { display: grid; gap: 12px; }
.judge { background: var(--white); border-radius: 12px; border: 2px solid; padding: 12px 14px; }
.judge--hit { border-color: var(--ok); }
.judge--none { border-color: var(--red); }
.judge__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.judge__who { font-size: 14px; font-weight: 700; }
.judge__who small { display: block; font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--ink-2); }
.judge__big { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin: 2px 0 6px; }
.judge--hit .judge__big { color: var(--ok); }
.judge--none .judge__big { color: var(--red); }
.judge blockquote { margin: 0; font-family: var(--serif); font-size: 14px; line-height: 1.8; border-left: 2px solid var(--rule); padding-left: 10px; }
.judge blockquote + blockquote { margin-top: 8px; }
.same-tiles { text-align: center; font-size: 14px; font-weight: 700; padding: 6px; border: 1px dashed var(--ink-2); border-radius: 999px; background: var(--paper); }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba figure { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 8px; }
.ba img { width: 100%; image-rendering: auto; }
.ba figcaption { margin-top: 6px; font-size: 14px; text-align: center; }
.ba__label { font-weight: 700; color: var(--ink); }

/* generic data cards (tables become cards on mobile) */
.rounds { display: grid; gap: 10px; }
.rounds__group { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.rounds__group h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.rounds__row { display: grid; grid-template-columns: 5.6em 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.6; }
.rounds__row:first-of-type { border-top: 0; }
.rounds__doc { font-weight: 700; }
.rounds__res { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* F9 steps */
.steps { display: grid; gap: 8px; counter-reset: s; }
.step { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 20px; text-align: center; color: var(--ink-2); }
.step__name { font-size: 14px; font-weight: 700; line-height: 1.5; }
.step__name small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.step--best { border: 2px solid var(--ok); }

/* F10 incidents */
.incidents { display: grid; gap: 10px; }
.incident { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 12px 14px; }
.incident__no { font-family: var(--serif); font-size: 14px; color: var(--red); font-weight: 700; letter-spacing: .08em; }
.incident h4 { margin: 2px 0 6px; font-size: 15px; line-height: 1.5; }
.incident p { font-size: 14px; line-height: 1.7; margin: 0; }
.incident__path { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; font-size: 14px; }
.incident__path .x { color: var(--red); font-weight: 700; }

/* F11 timeline */
.tl2 { display: grid; gap: 12px; }
.tl { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px 6px; }
.tl h4 { margin: 0 0 10px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.tl ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule); }
.tl li { position: relative; padding: 0 0 12px 6px; font-size: 14px; line-height: 1.65; }
.tl li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink-2); }
.tl li.r::before { border-color: var(--red); background: var(--red); }
.tl li.o::before { border-color: var(--ok); background: var(--ok); }
.tl li.w::before { border-color: var(--warn); background: var(--warn-bg); }
.tl li b { display: block; font-size: 14px; }

/* F12 predictions */
.preds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pred { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 10px 10px; font-size: 14px; line-height: 1.6; position: relative; }
.pred__id { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.pred__res { position: absolute; top: 8px; right: 8px; transform: rotate(-6deg); border: 2px solid currentColor; border-radius: 5px; padding: 0 5px; font-weight: 700; font-size: 14px; font-family: var(--serif); }
.pred--hit .pred__res { color: var(--ok); }
.pred--miss .pred__res { color: var(--red); }
.pred__q { color: var(--ink-2); margin: 4px 0 4px; }
.pred__a { font-weight: 700; color: var(--ink); }
.score { text-align: center; font-family: var(--serif); font-size: 18px; margin: 12px 0 0; }
.score b { font-size: 34px; }

/* conclusion */
.answer { background: var(--ink); color: var(--white); border-radius: 16px; padding: 20px 18px; margin: 0 0 22px; }
.answer__label { font-size: 14px; letter-spacing: .14em; color: #C9CCD3; margin: 0 0 6px; }
.answer__main { font-family: var(--serif); font-size: 21px; line-height: 1.6; font-weight: 600; margin: 0; }
.answer__main em { font-style: normal; border-bottom: 2px solid var(--back); }
.musts { counter-reset: m; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.musts li { counter-increment: m; display: grid; grid-template-columns: 28px 1fr; gap: 8px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.75; }
.musts li::before { content: counter(m); font-family: var(--serif); font-weight: 900; color: var(--acText); font-size: 20px; line-height: 1.4; text-align: center; }
.range { display: grid; gap: 10px; }
.range__col { border-radius: 12px; padding: 12px 14px; }
.range__col h4 { margin: 0 0 6px; font-size: 14px; }
.range__col ul { margin: 0; padding-left: 1.1em; font-size: 14px; line-height: 1.7; }
.range__col--ok { background: var(--ok-bg); border: 1px solid #BFDDD7; }
.range__col--ok h4 { color: var(--ok); }
.range__col--ng { background: var(--red-bg); border: 1px solid #EFC9BF; }
.range__col--ng h4 { color: var(--red); }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px 12px 46px; position: relative; font-size: 14px; line-height: 1.7; }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; }
.checklist li b { display: block; font-size: 15px; }
.checklist .why { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.copyrow { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.copyrow .done { font-size: 14px; color: var(--ok); }

/* appendix */
.appendix { background: var(--paper); }
details { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; margin: 0 0 10px; }
summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 15px; line-height: 1.5; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; color: var(--ink-2); font-weight: 400; }
details[open] > summary::after { content: "－"; }
/* appendix fold: the whole 資料 section collapses behind one heading */
.appendix-fold { background: transparent; border: 0; border-radius: 0; margin: 0; }
.appendix-fold > summary { padding: 12px 2px; font-size: 16px; }
.appendix-fold__body { padding-top: 2px; }
.details__body { padding: 0 14px 14px; font-size: 14px; line-height: 1.8; }
.details__body h5 { font-size: 14px; margin: 14px 0 4px; }
.details__body ul, .details__body ol { padding-left: 1.3em; margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); margin: 6px 0 12px; }
.kv > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; border-bottom: 1px solid var(--rule); padding: 6px 0; font-size: 14px; }
.kv dt { font-weight: 700; margin: 0; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.instruction { font-family: var(--serif); font-size: 14px; line-height: 1.9; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; }

/* footer */
.foot { padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); line-height: 1.8; background: var(--paper); border-top: 1px solid var(--rule); }

/* ---------- wider screens ---------- */
@media screen and (min-width: 700px) {
  :root { --pad: 32px; }
  body { font-size: 17px; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 42px; }
  .hero__lead { font-size: 18px; }
  h2 { font-size: 30px; }
  .qlist { grid-template-columns: 1fr 1fr; }
  .chat { margin-left: 0; margin-right: 0; border-radius: 16px; }
  .glyphs { grid-template-columns: 1fr 1fr; }
  .mats { grid-template-columns: repeat(3, 1fr); }
  .mat--wide { grid-column: auto; }
  .mats .mat:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .same-tiles { writing-mode: vertical-rl; border-radius: 999px; padding: 10px 6px; align-self: center; }
  .rounds { grid-template-columns: 1fr 1fr; }
  .tl2 { grid-template-columns: 1fr 1fr; }
  .preds { grid-template-columns: repeat(4, 1fr); }
  .range { grid-template-columns: 1fr 1fr; }
  .incidents { grid-template-columns: repeat(3, 1fr); }
  .bignum .n { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .progress__bar { transition: none; } }

/* ---------- print / PDF ---------- */
@media print {
  body { background: var(--paper); }
  .progress, .copyrow, .btn--jump { display: none !important; }
  main > section { background: var(--paper); }
  details { break-inside: auto; }
  details::details-content { content-visibility: visible; display: block; }
  summary::after { content: ""; }
  figure, .chat__line, .stamp, .limit, .rawq, .judge, .lane, .mat, .dot, .step, .incident, .tl, .pred, .musts li, .checklist li, .answer, .glyph-card, .range__col, .rounds__group, .bignum > div, .exhibit { break-inside: avoid; }
  /* final finishing: tall timeline cards may break between items, so a page never strands a few lines */
  .tl { break-inside: auto; }
  .tl li { break-inside: avoid; }
  figure.tl2 { break-inside: auto; }
  h2, h3, h4, .disc-head { break-after: avoid; }
  /* audit fix (final2): headings must not split internally, the discovery
     head (label + h2) and the hero table-of-contents must not straddle pages,
     and captions stay with their figure */
  h2, h3, h4, .disc-head { break-inside: avoid; }
  .qlist { break-inside: avoid; }
  .hero .panel__title { break-after: avoid; }
  figcaption { break-inside: avoid; break-before: avoid; }
  /* audit fix (final4): short enclosures stay whole (figure 2's scoring
     panel, the instruction-sheet summary panel); figure 11 fits one page
     (704px) so keep it whole; figure 10 is tightened in print only so the
     whole figure (841px -> under the 816px page) stays on one page */
  .verifier, .panel { break-inside: avoid; }
  figure.tl2 { break-inside: avoid; }
  .incidents { gap: 6px; }
  .incident { padding: 9px 14px; }
  .incident p { line-height: 1.62; }
  .incident__path { margin-top: 6px; }
  a { text-decoration: none; color: inherit; }
}

.nb { display: inline-block; }

.ba { max-width: 520px; margin: 0 auto; }

/* final finishing: <small> inside rounds doc labels must stay >=14px */
.rounds__doc small { font-size: 14px; }

/* --- audit fix (final2): classes moved from inline styles --- */
.panel__list { margin: 0; padding-left: 1.2em; font-size: 15px; }
.exhibit--narrow { max-width: 560px; margin: 0 auto; }
.cap--wide { grid-column: 1 / -1; }
.dots__note--tight { margin: 6px 0 0; }
.u-mt18 { margin-top: 18px; }
.scene--flush { margin-top: 0; }
.note-14 { font-size: 14px; color: var(--ink-2); }
.origtext { font-size: 14px; line-height: 1.9; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
