/* AIためしてみた研究所
   方向: 実験ノート。方眼の紙・判定のハンコ・数字が主役。色はチャンネルの深緑と若葉色。 */
:root {
  --paper: #f2f6ef;
  --sheet: #ffffff;
  --ink: #12261c;
  --sub: #4b6051;
  --faint: #78897c;
  --line: #d2dfcb;
  --grid: rgba(18, 38, 28, .06);
  --leaf: #8bd46a;
  --leaf-ink: #2c6b20;
  --leaf-wash: #e2f1d7;
  --yes: #2c6b20;
  --no: #bd3f28;
  --half: #8d670a;
  --band: #12261c;
  --band-ink: #e8f3e2;
  --band-sub: #a7c1ad;
  --band-line: #2c4a39;
  --display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "M PLUS 1p", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1d16; --sheet: #15281f; --ink: #e3eedf; --sub: #a5bba9; --faint: #7d9383;
    --line: #2a4335; --grid: rgba(139, 212, 106, .055); --leaf: #8bd46a; --leaf-ink: #9fdf80; --leaf-wash: #1c3627;
    --yes: #9fdf80; --no: #ff8d75; --half: #e8c15a; --band: #08130d; --band-ink: #e3eedf; --band-sub: #9db6a3; --band-line: #22392c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1d16; --sheet: #15281f; --ink: #e3eedf; --sub: #a5bba9; --faint: #7d9383;
  --line: #2a4335; --grid: rgba(139, 212, 106, .055); --leaf: #8bd46a; --leaf-ink: #9fdf80; --leaf-wash: #1c3627;
  --yes: #9fdf80; --no: #ff8d75; --half: #e8c15a; --band: #08130d; --band-ink: #e3eedf; --band-sub: #9db6a3; --band-line: #22392c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.9; font-feature-settings: "palt"; letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 16px; }
[hidden] { display: none !important; }

.wrap, .wrap-narrow {
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1160px; }
.wrap-narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 17px; letter-spacing: .02em; }
.logo img { border-radius: 8px; }
.head-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.head-nav a { text-decoration: none; color: var(--sub); }
.head-nav a:hover { color: var(--ink); }
.head-yt { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--paper) !important; padding: 6px 12px; border-radius: 6px; }
.head-yt svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .head-nav a:not(.head-yt) { display: none; }
  .logo span { font-size: 15px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 15px;
  background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 8px; border: 2px solid var(--ink);
  transition: transform .15s var(--ease), background .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ink { background: var(--band); color: var(--leaf); border-color: var(--band); }
.text-link { font-weight: 700; color: var(--leaf-ink); text-underline-offset: 4px; }

/* ---------- section heads ---------- */
.sec-head { display: grid; gap: 6px; margin-bottom: 32px; }
.sec-title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: .02em; }
.sec-sub { margin: 0; color: var(--sub); max-width: 46em; }

/* ---------- hero ---------- */
.hero {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 88px 104px; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.18; margin: 0 0 24px; letter-spacing: .01em; }
.hero-title { animation: rise .9s var(--ease) both; }
.hero-title span { display: inline-block; white-space: nowrap; }
.hero-lead { font-size: 17px; color: var(--sub); max-width: 30em; margin: 0 0 32px; animation: rise .9s .12s var(--ease) both; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .9s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.sheet {
  position: relative; display: grid; gap: 6px; text-decoration: none; background: var(--sheet);
  border: 1.5px solid var(--ink); border-radius: 4px; padding: 26px 28px 24px;
  box-shadow: 10px 10px 0 var(--leaf); transform: rotate(-1.2deg);
  animation: sheet-in 1s .15s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sheet:hover { transform: rotate(-.4deg) translateY(-3px); box-shadow: 14px 14px 0 var(--leaf); }
@keyframes sheet-in { from { opacity: 0; transform: rotate(-4deg) translateY(30px); } to { opacity: 1; transform: rotate(-1.2deg); } }
.sheet-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--faint); border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 8px; }
.sheet-head span:first-child { color: var(--ink); }
.sheet-q { font-weight: 800; font-size: 18px; line-height: 1.6; }
.sheet-num { font-family: var(--display); font-size: clamp(64px, 7.4vw, 100px); line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sheet-num small { font-size: .42em; margin-left: 4px; }
.sheet-label { font-size: 13px; color: var(--sub); }
.sheet-meter { display: grid; gap: 8px; margin: 14px 0 8px; font-size: 12px; font-weight: 700; color: var(--sub); }
.sm-row { display: grid; grid-template-columns: 3.5em 1fr; align-items: center; gap: 10px; }
.sm-track { position: relative; height: 12px; background: var(--leaf-wash); border-radius: 2px; overflow: hidden; }
.sm-fill { position: absolute; inset: 0 auto 0 0; background: var(--faint); transform-origin: left; animation: grow 1.2s .5s var(--ease) both; }
.sm-fill.is-ai { background: var(--ink); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sheet-numrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.sheet-numrow .sheet-num { margin-top: 0; }
.sheet-more { justify-self: end; font-weight: 800; font-size: 14px; border-bottom: 2px solid var(--leaf); }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 72px; }
  .sheet { margin-right: 10px; }
}
@media (max-width: 480px) {
  .sheet { padding: 20px 20px 18px; }
}

/* ---------- stamp ---------- */
.stamp {
  display: inline-block; font-family: var(--display); font-size: 14px; line-height: 1.25; letter-spacing: .04em;
  padding: 5px 10px 4px; border: 2.5px solid currentColor; border-radius: 6px; transform: rotate(-6deg);
  white-space: nowrap; color: var(--half); background: color-mix(in srgb, var(--sheet) 70%, transparent);
}
.stamp.tone-yes { color: var(--yes); }
.stamp.tone-no { color: var(--no); }
.stamp.tone-half { color: var(--half); }
.stamp.is-big { font-size: 20px; padding: 8px 14px 6px; border-width: 3px; box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 25%, transparent); }
.sheet .stamp { animation: stamp 0.5s 1.5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.2); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }

/* ---------- records ---------- */
.records { padding-block: 104px 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: var(--sheet); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 16px;
  transition: background .2s, border-color .2s, color .2s;
}
.chip span { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: var(--leaf); }

.rec-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rec { border-bottom: 1px solid var(--line); }
.rec a {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 190px 150px; gap: 24px; align-items: center;
  padding: 26px 8px; text-decoration: none; transition: background .2s;
}
.rec a:hover { background: var(--sheet); }
.rec a:hover .rec-title { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.rec-no { display: grid; font-size: 11px; font-weight: 700; color: var(--faint); line-height: 1.3; }
.rec-no b { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rec-main { display: grid; gap: 4px; min-width: 0; }
.rec-meta { font-size: 12px; font-weight: 700; color: var(--faint); }
.rec-title { font-weight: 800; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.rec-q { font-size: 14px; color: var(--sub); }
.rec-key { display: grid; gap: 2px; }
.rec-key b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rec-key small { font-size: 12px; color: var(--sub); line-height: 1.5; }
.rec-stamp { justify-self: center; }
.rec.is-in { animation: rec-in .45s var(--ease) both; }
@keyframes rec-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.rec-empty { color: var(--sub); padding: 24px 8px; }
@media (max-width: 900px) {
  .rec a { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding: 22px 4px; }
  .rec-key { grid-column: 2; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .rec-key b { font-size: 24px; }
  .rec-stamp { grid-column: 2; justify-self: start; margin-top: 4px; }
  .rec-no b { font-size: 22px; }
  .rec-title { font-size: 16px; }
}

/* ---------- follow-up ---------- */
.followup { background: var(--band); color: var(--band-ink); padding-block: 96px; }
.followup .sec-sub { color: var(--band-sub); }
.fu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fu a { display: grid; gap: 14px; text-decoration: none; border: 1px solid var(--band-line); border-radius: 6px; padding: 28px; transition: border-color .2s; }
.fu a:hover { border-color: var(--leaf); }
.fu-title { font-weight: 800; font-size: 19px; line-height: 1.55; }
.fu-line { position: relative; height: 4px; background: var(--band-line); border-radius: 2px; margin: 10px 6px; }
.fu-line::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--leaf); border-radius: 2px; transform-origin: left; }
.followup.pre .fu-line::before { transform: scaleX(0); }
.followup .fu-line::before { transition: transform 1.6s .2s var(--ease); }
.fu-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.fu-dot.is-start { left: 0; background: var(--leaf); }
.fu-dot.is-end { left: 100%; background: var(--band); border: 3px solid var(--band-ink); }
.fu-dates { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--band-sub); flex-wrap: wrap; }
.fu-note { font-size: 14px; color: var(--band-sub); }

/* ---------- rules ---------- */
.rules { padding-block: 104px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.rule-list li { display: grid; gap: 8px; padding: 30px 32px 34px 0; border-bottom: 1px solid var(--line); }
.rule-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.rule-list li:nth-child(even) { padding-left: 32px; }
.rule-list b { font-size: 20px; font-weight: 800; line-height: 1.5; }
.rule-list b::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--leaf); margin-right: 12px; vertical-align: 2px; }
.rule-list span { color: var(--sub); }
.rules.pre .rule-list b::before { transform: scale(0); }
.rules .rule-list b::before { transition: transform .5s var(--ease); }
.rules .rule-list li:nth-child(2) b::before { transition-delay: .12s; }
.rules .rule-list li:nth-child(3) b::before { transition-delay: .24s; }
.rules .rule-list li:nth-child(4) b::before { transition-delay: .36s; }
@media (max-width: 760px) {
  .rule-list { grid-template-columns: 1fr; }
  .rule-list li, .rule-list li:nth-child(even) { padding: 24px 0 26px; border-right: 0 !important; }
}

/* ---------- toolbox ---------- */
.toolbox { padding-block: 96px; background: var(--sheet); border-block: 1px solid var(--line); }
.tb-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.tb-list { list-style: none; margin: 0; padding: 0; }
.tb-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.tb-list li:first-child { border-top: 1px dashed var(--line); }
.tb-name { font-weight: 800; font-size: 17px; }
.tb-use { grid-column: 1; font-size: 14px; color: var(--sub); }
.tb-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; font-weight: 700; color: var(--leaf-ink); background: var(--leaf-wash); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 900px) { .tb-in { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- youtube band ---------- */
.yt-band { background: var(--leaf); color: #12261c; padding-block: 96px; }
.yt-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: center; }
.yt-copy p { margin: 16px 0 28px; max-width: 28em; }
.yt-band .btn-ink { background: #12261c; color: #8bd46a; border-color: #12261c; }
.yt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.yt-list a { display: grid; gap: 10px; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.5; }
.yt-list img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 6px; border: 2px solid #12261c; background: #cfe8c4; transition: transform .2s var(--ease); }
.yt-list a:hover img { transform: translateY(-4px) rotate(-1deg); }
@media (max-width: 900px) { .yt-in { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .yt-list { gap: 10px; } .yt-list a { font-size: 11px; } }

/* ---------- footer ---------- */
.site-foot { background: var(--band); color: var(--band-sub); padding-block: 56px 40px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; }
.foot-name { font-family: var(--display); color: var(--band-ink); font-size: 18px; margin: 0; }
.foot-tag { margin: 4px 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.foot-nav a { color: var(--band-ink); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-note { grid-column: 1 / -1; font-size: 12px; margin: 0; border-top: 1px solid var(--band-line); padding-top: 20px; }
.foot-copy { grid-column: 1 / -1; font-size: 12px; margin: 0; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.exp-head {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; border-bottom: 1px solid var(--line); padding-block: 40px 56px;
}
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 28px; }
.crumb a { color: var(--sub); }
.exp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 700; color: var(--sub); margin: 0 0 12px; align-items: baseline; }
.exp-no { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--ink); background: var(--leaf); padding: 2px 10px; border-radius: 3px; color: #12261c; }
.exp-title { font-weight: 800; font-size: clamp(26px, 4.2vw, 38px); line-height: 1.45; margin: 0 0 14px; text-wrap: balance; letter-spacing: .01em; }
.exp-q { font-size: 17px; color: var(--sub); margin: 0; }
.pr-note, .fin-note { display: inline-block; font-size: 12px; font-weight: 700; margin: 16px 8px 0 0; padding: 3px 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--sheet); color: var(--sub); }

.verdict {
  position: relative; margin-top: -32px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 28px 30px 24px; box-shadow: 8px 8px 0 var(--leaf);
}
.v-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.v-key { display: grid; }
.v-key b { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 64px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.v-key small { font-size: 13px; color: var(--sub); }
.v-title { font-size: 14px; font-weight: 800; color: var(--leaf-ink); margin: 0 0 6px; letter-spacing: .1em; }
.v-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.v-list li { position: relative; padding-left: 22px; font-weight: 500; line-height: 1.8; }
.v-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 10px; height: 10px; background: var(--leaf); }
.v-data { margin: 18px 0 0; font-size: 13px; color: var(--sub); display: flex; gap: 12px; flex-wrap: wrap; }
.v-data dt { font-weight: 800; }
.v-data dd { margin: 0; }

.prose { margin-top: 56px; }
.prose h2 { font-weight: 800; font-size: 23px; line-height: 1.5; margin: 64px 0 18px; padding-top: 18px; border-top: 2px solid var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .35em; }
.prose strong { background: linear-gradient(transparent 62%, var(--leaf-wash) 62%); font-weight: 800; }
.prose a { color: var(--leaf-ink); text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--leaf-wash); font-weight: 800; white-space: nowrap; }
.prose td:first-child { font-weight: 700; white-space: nowrap; }
.photo { margin: 8px 0 2em; }
.photo img { border-radius: 4px; border: 1px solid var(--line); }
.photo figcaption { font-size: 13px; color: var(--sub); margin-top: 8px; }

/* ---------- charts ---------- */
.chart { margin: 8px 0 2.2em; padding: 22px 22px 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; }
.chart figcaption { font-weight: 800; font-size: 15px; margin-bottom: 16px; line-height: 1.6; }
.chart-note { font-size: 12px; color: var(--faint); margin: 12px 0 0 !important; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(6em, 11em) minmax(0, 1fr) 5.6em; gap: 12px; align-items: center; font-size: 14px; }
.bar-label { font-weight: 700; line-height: 1.4; }
.bar-track { position: relative; height: 22px; background: var(--paper); border-radius: 2px; }
.bar-fill { position: absolute; top: 0; bottom: 0; background: var(--faint); border-radius: 2px; transform-origin: left; transition: transform 1s var(--ease); }
.bar-row.is-neg .bar-fill { transform-origin: right; }
.bar-row.is-hl .bar-fill { background: var(--leaf); }
.bar-row.is-hl.is-neg .bar-fill, .bar-row.is-neg .bar-fill { background: color-mix(in srgb, var(--no) 70%, var(--paper)); }
.bar-row.is-hl.is-neg .bar-fill { background: var(--no); }
.bar-zero { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); z-index: 1; }
.bar-ref { position: absolute; top: -5px; bottom: -5px; border-left: 2px dashed var(--ink); z-index: 1; opacity: .55; }
.bar-val { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row.is-hl .bar-label, .bar-row.is-hl .bar-val { color: var(--ink); }
.chart.pre .bar-fill { transform: scaleX(0); }
@media (max-width: 560px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .chart { padding: 18px 14px 14px; }
}

.cols { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; height: 240px; align-items: end; padding-bottom: 26px; border-bottom: 0; }
.col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.col-bar { width: 100%; max-width: 46px; background: var(--faint); border-radius: 2px 2px 0 0; transform-origin: bottom; transition: transform 1s var(--ease); }
.col.is-hl .col-bar { background: var(--leaf); }
.col-val { font-size: 12px; font-weight: 800; margin-bottom: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-label { position: absolute; bottom: -26px; font-size: 12px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.cols::after { content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 2px; background: var(--ink); }
.col-ref { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--ink); opacity: .5; margin-bottom: 26px; z-index: 1; pointer-events: none; }
.col-ref em { position: absolute; right: 0; top: -20px; font-style: normal; font-size: 11px; font-weight: 700; }
.chart-cols.is-many .cols { gap: 3px; }
.chart-cols.is-many .col-val { writing-mode: vertical-rl; font-size: 11px; }
.chart-cols.is-many .col-label { font-size: 10px; }
.chart.pre .col-bar { transform: scaleY(0); }
@media (max-width: 640px) {
  .chart-cols.is-many .col.is-odd .col-label { visibility: hidden; }
  .chart-cols.is-many .col:not(.is-hl) .col-val { display: none; }
  .chart-cols.is-many .col-val { writing-mode: horizontal-tb; }
  .col-val { font-size: 11px; }
}

.ln-legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; font-weight: 700; }
.ln-legend li { display: flex; align-items: center; gap: 8px; }
.ln-legend i { width: 18px; height: 4px; border-radius: 2px; background: currentColor; }
.ln-legend b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.ln-plot { position: relative; height: 240px; margin: 8px 8px 8px 58px; }
.ln-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { fill: none; stroke: currentColor; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ln-plot svg { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease); }
.chart.pre .ln-plot svg { clip-path: inset(0 100% 0 0); }
.ln-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.ln-grid.is-zero { border-top: 2px solid var(--ink); }
.ln-grid em { position: absolute; right: calc(100% + 8px); top: -.75em; font-style: normal; font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ln-end { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); border: 2px solid var(--sheet); transition: opacity .3s 1.4s; }
.chart.pre .ln-end { opacity: 0; transition: none; }
.tone-accent { color: var(--leaf-ink); }
.tone-no { color: var(--no); }
.tone-half { color: var(--half); }
.tone-yes { color: var(--yes); }

/* ---------- article bottom ---------- */
.video-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; text-decoration: none; background: var(--band); color: var(--band-ink); border-radius: 6px; padding: 14px; margin: 48px 0; transition: transform .2s var(--ease); }
.video-card:hover { transform: translateY(-3px); }
.video-card img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.video-card b { display: block; font-size: 17px; color: var(--leaf); }
.video-card small { color: var(--band-sub); }
.used { margin: 48px 0; }
.used h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.used ul { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line); }
.used li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.used b { min-width: 11em; }
.used span { color: var(--sub); font-size: 14px; }
.disclaimer { font-size: 13px; color: var(--sub); background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin: 32px 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 96px; }
.pager a { display: grid; gap: 4px; text-decoration: none; border: 1.5px solid var(--line); border-radius: 6px; padding: 16px 18px; transition: border-color .2s; }
.pager a:hover { border-color: var(--ink); }
.pager small { font-size: 12px; font-weight: 700; color: var(--faint); }
.pager span { font-weight: 700; line-height: 1.55; }
.pg-next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pg-next { text-align: left; } }

/* ---------- simple pages ---------- */
.page { padding-block: 72px 112px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.3; margin: 0 0 20px; }
.page-lead { color: var(--sub); margin: 0 0 40px; }
.page .prose, .page.prose { margin-top: 0; }
.tool-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tool { padding: 28px 0; border-bottom: 1px solid var(--line); }
.tool-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tool-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.tool-head span { font-size: 12px; font-weight: 700; color: var(--leaf-ink); background: var(--leaf-wash); padding: 3px 10px; border-radius: 999px; }
.tool p { margin: 6px 0 10px; color: var(--sub); }
.tool-exps { margin: 0; padding-left: 1.2em; font-size: 14px; }
.tool-exps a { color: var(--ink); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .chart.pre .bar-fill, .chart.pre .col-bar { transform: none; }
  .chart.pre .ln-plot svg { clip-path: none; }
  .chart.pre .ln-end { opacity: 1; }
}
