/* Rise of the Personal Agent — personal AI assistants, OpenClaw to dots.
 *
 * Shares the paper, type and sidebar of the API timelines. Each band has one
 * hue (open source green, proprietary violet, build-your-own orange), and
 * every band is also named in text; an event's kind is carried by its shape,
 * so the page still reads in grayscale.
 */
:root {
  --paper: #f5f3ec;
  --card: #fbfaf6;
  --card-strong: #fffefb;
  --ink: #1c1b18;
  --ink-2: #4f4c45;
  --ink-3: #847f74;
  --rule: #dad5c9;
  --rule-soft: #e8e4d9;
  --accent: #a64f2a;
  --wash: rgba(28, 27, 24, 0.045);

  --v-openai: #4a3aa7;
  --v-anthropic: #d65a24;
  --v-google: #2a78d6;

  --b-open: #2f7d4f;
  --b-closed: #5b47b8;
  --b-diy: #c2541f;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --side-w: 316px;
  --name-w: 15.5rem;
  --verdict-w: 15rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: calc(var(--appnav-h, 0px) + 24px); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  max-width: 1720px;
  margin: 0 auto;
}

/* ---------- sidebar ---------- */

.side {
  position: sticky;
  top: var(--appnav-h, 0px);
  height: calc(100vh - var(--appnav-h, 0px));
  height: calc(100dvh - var(--appnav-h, 0px));
  border-right: 1px solid var(--rule-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.side-inner { padding: 1.3rem 1.2rem 1.6rem 1.35rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wordmark {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.wordmark em { font-style: italic; color: var(--accent); }
.lede { margin-top: 0.7rem; font-size: 0.86rem; line-height: 1.55; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }

.side-h {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.score { margin-top: 1.1rem; }
.score-table { width: 100%; border-collapse: collapse; margin-top: 0.3rem; font-size: 0.76rem; }
.score-table thead th {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  color: var(--ink-3);
  text-align: right;
  padding: 0 0 0.2rem 0.3rem;
  vertical-align: bottom;
  line-height: 1.15;
}
.score-table tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding: 0.22rem 0; }
.score-table tbody th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.4rem; vertical-align: 0; }
.score-table td { text-align: right; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); padding: 0.22rem 0 0.22rem 0.3rem; }
.score-table td b { color: var(--ink); font-weight: 600; font-size: 0.8rem; }
.score-table tbody tr + tr > * { border-top: 1px solid var(--rule-soft); }
.score-note { margin-top: 0.4rem; font-size: 0.7rem; line-height: 1.45; color: var(--ink-3); }

.controls { margin-top: 1.1rem; display: grid; gap: 0.6rem; }
.control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.control-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 3rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1; }
.chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.16rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg button { font-size: 0.72rem; font-weight: 500; padding: 0.2rem 0.55rem; border: 0; background: var(--card); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button:hover { background: var(--wash); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.key {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.6rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--ink-2);
}
.key li { display: flex; align-items: center; gap: 0.38rem; }
.k-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.k-first { background: var(--card); box-shadow: 0 0 0 1.6px var(--ink); }
.k-none { background: var(--paper); border: 1.6px dashed var(--ink-3); }
.rule { margin-top: 0.8rem; font-size: 0.7rem; line-height: 1.5; color: var(--ink-3); }
.side-foot { margin-top: 1rem; font-size: 0.78rem; color: var(--ink-3); }

/* ---------- reading ---------- */

.reading, .sources, .table-sec, .off-grid {
  max-width: 1720px;
  margin: 0 auto;
  padding: 3rem 1.6rem 1rem calc(var(--side-w) + 1.4rem);
}
.reading h2, .sources h2, .table-sec h2, .off-grid h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.reading h2 em, .sources h2 em, .table-sec h2 em, .off-grid h2 em { font-style: italic; color: var(--accent); }
.reading .reading-lede, .sources .sources-lede, .off-grid .sources-lede { margin-top: 0.6rem; max-width: 70ch; color: var(--ink-2); font-size: 0.95rem; }
.findings {
  list-style: none;
  counter-reset: f;
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
  gap: 1rem 1.6rem;
}
.findings li { counter-increment: f; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.findings h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.findings h3::before {
  content: counter(f, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}
.findings p { margin-top: 0.4rem; font-size: 0.875rem; line-height: 1.6; }
.findings .refs { font-size: 0.76rem; color: var(--ink-3); }
.findings .refs a { color: var(--ink-2); }

.cu-fig { margin-top: 2.2rem; max-width: 64rem; }
.cu-fig h3 { font-size: 1rem; font-weight: 600; }
.cu-lede { margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-2); max-width: 70ch; }
.cu-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.6rem; font-size: 0.74rem; color: var(--ink-2); list-style: none; }
.cu-key li { display: inline-flex; align-items: center; gap: 0.35rem; }
.cu-key i { width: 9px; height: 9px; border-radius: 50%; }
.cu-key i.cu-k-med { width: 16px; height: 0; border-radius: 0; border-top: 2px solid var(--ink); }
.cu-svg { display: block; width: 100%; height: auto; margin-top: 0.5rem; overflow: visible; }
.cu-band { fill: var(--wash); }
.cu-grid { stroke: var(--rule-soft); stroke-width: 1; }
.cu-tick { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }
.cu-axis { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.cu-med { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.cu-medl { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.cu-dot { stroke: var(--paper); stroke-width: 2; cursor: pointer; }
.cu-open { margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink-2); max-width: 80ch; }

/* ---------- table ---------- */

.tbl-scroll { overflow-x: auto; margin-top: 1rem; }
.ftable { border-collapse: collapse; font-size: 0.8rem; min-width: 42rem; width: 100%; max-width: 72rem; }
.ftable th, .ftable td { text-align: left; padding: 0.3rem 0.8rem 0.3rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: baseline; }
.ftable thead th { font-weight: 600; font-size: 0.78rem; white-space: nowrap; border-bottom-color: var(--rule); }
.ftable thead th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; }
.ftable tbody th { font-weight: 500; }
.ftable tbody th a { color: var(--ink); text-decoration-color: var(--rule); }
.ftable td { font-family: var(--mono); font-size: 0.74rem; white-space: nowrap; }
.ftable td a { color: var(--ink-2); text-decoration-color: var(--rule); }
.ftable td.t-first a { color: var(--ink); font-weight: 600; }
.t-tag, .t-lag { font-size: 0.64rem; color: var(--ink-3); }
.t-tag { text-transform: uppercase; letter-spacing: 0.06em; }
.ftable td.t-none { color: var(--ink-3); }
.ftable tr.tg th { padding-top: 0.9rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* ---------- sources ---------- */

.apps-list { list-style: none; margin-top: 1rem; font-size: 0.86rem; line-height: 1.5; }
.apps-list li { margin-bottom: 0.4rem; }
.apps-list a { color: var(--ink); font-weight: 600; text-decoration-color: var(--rule); }
.apps-list .pub, .source-list .pub { color: var(--ink-3); font-size: 0.8rem; }
.sources-sub { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-2); }
.source-list { margin-top: 0.5rem; columns: 2 26rem; column-gap: 2rem; font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); padding-left: 1.4rem; }
.source-list li { break-inside: avoid; margin-bottom: 0.4rem; }
.source-list a { color: var(--ink); text-decoration-color: var(--rule); }

.colophon {
  max-width: 1720px;
  margin: 0 auto;
  padding: 1.6rem 1.6rem 3rem calc(var(--side-w) + 1.4rem);
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- tooltip ---------- */

.tip {
  position: fixed;
  z-index: 4000;
  max-width: 19rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  padding: 0.55rem 0.7rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.tip b { font-weight: 600; }
.tip code { font-size: 0.9em; }
.tip .tip-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: #bdb8ac; margin-bottom: 0.15rem; }
.tip .tip-why { margin-top: 0.25rem; color: #dcd8cd; font-size: 0.74rem; }
.tip .tip-since { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.64rem; color: #bdb8ac; }

/* ---------- medium screens: the sidebar moves above ---------- */

@media (max-width: 1299px) {
  :root { --side-w: 0px; }
  .layout { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule-soft); overflow: visible; }
  .side-inner {
    max-width: 66rem;
    padding: 1.4rem 1.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2.2rem;
    align-items: start;
  }
  .side-inner > .kicker, .side-inner > .wordmark, .side-inner > .lede { grid-column: 1; }
  .side-inner > .score { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .side-inner > .controls, .side-inner > .key, .side-inner > .rule, .side-inner > .side-foot { grid-column: 1 / -1; }
  .reading, .sources, .table-sec, .colophon { padding-left: 1.6rem; }
}

/* ---------- sections below the chart ---------- */

.log, .compare {
  max-width: 1720px;
  margin: 0 auto;
  padding: 3rem 1.6rem 1rem calc(var(--side-w) + 1.4rem);
}
.log h2, .compare h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.log h2 em, .compare h2 em { font-style: italic; color: var(--accent); }
.log .sources-lede, .compare .sources-lede { margin-top: 0.6rem; max-width: 70ch; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1299px) { .log, .compare { padding-left: 1.6rem; } }
@media (max-width: 560px) { .log, .compare { padding-left: 1rem; padding-right: 1rem; } }

/* ---------- shapes ---------- */

.shape { width: 14px; height: 14px; overflow: visible; flex: none; }
.sh-fill { fill: var(--band, var(--ink-2)); }
.sh-core { fill: var(--paper); }
.sh-ring { fill: var(--paper); stroke: var(--band, var(--ink-2)); stroke-width: 1.8; }
.band-open { --band: var(--b-open); }
.band-closed { --band: var(--b-closed); }
.band-diy { --band: var(--b-diy); }
.key { grid-template-columns: 1fr 1fr; }
.key .k-shape { --band: var(--ink-2); }

/* ---------- sidebar extras ---------- */

.score-table thead th:first-child { text-align: left; }
.score-table .sb-band th {
  padding: 0.55rem 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 0 !important;
}
.score-table tbody th a { color: var(--ink); text-decoration: none; }
.score-table tbody th a:hover { text-decoration: underline; text-decoration-color: var(--rule); }
.score-table td a { color: var(--ink-2); text-decoration: none; }
.score-table .dim { color: var(--rule); }
.mine-tag {
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--b-diy);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 0.22rem;
  vertical-align: 0.1em;
}

.reader { margin-top: 1.1rem; }
#reader {
  margin-top: 0.35rem;
  background: var(--card-strong);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 0.7rem 0.8rem 0.75rem;
  min-height: 6rem;
}
.rd-empty { font-size: 0.78rem; color: var(--ink-3); line-height: 1.5; }
.rd-k { display: flex; align-items: center; gap: 0.35rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.rd-t { margin-top: 0.3rem; font-size: 0.98rem; font-weight: 600; line-height: 1.3; }
.rd-a { margin-top: 0.15rem; font-size: 0.74rem; color: var(--ink-3); }
.rd-a a { color: var(--ink-2); }
.rd-w { margin-top: 0.45rem; font-size: 0.82rem; line-height: 1.55; color: var(--ink-2); }
.rd-src { margin-top: 0.4rem; font-size: 0.72rem; line-height: 1.4; }
.rd-src .pub, .c-src .pub { color: var(--ink-3); }

/* ---------- the timeline ---------- */

.tl-main { padding: 0 1.4rem 3rem 1.2rem; min-width: 0; }
.tl { --name-w: 12.5rem; }
.tl-head {
  position: sticky;
  top: var(--appnav-h, 0px);
  z-index: 3;
  display: grid;
  grid-template-columns: var(--name-w) minmax(0, 1fr);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  height: 2.6rem;
}
.tl-axis { position: relative; }
.ax-m, .ax-now {
  position: absolute;
  bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-3);
  white-space: nowrap;
  padding-left: 0.25rem;
  border-left: 1px solid var(--rule);
  line-height: 1.1;
}
.ax-m b { display: block; color: var(--ink); font-weight: 600; }
.ax-now { color: var(--accent); border-left-color: var(--accent); bottom: auto; top: 0.3rem; transform: translateX(-100%); border-left: 0; border-right: 1px solid var(--accent); padding: 0 0.25rem 0 0; }

.band { margin-top: 0.4rem; }
.band-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  padding: 1rem 0 0.3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.band-h::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--band);
  margin-right: 0.45rem;
  vertical-align: 0.1em;
}
.band-h span { font-family: var(--sans); font-size: 0.76rem; color: var(--ink-3); margin-left: 0.3rem; }

.arow {
  display: grid;
  grid-template-columns: var(--name-w) minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.35rem 0;
  scroll-margin-top: calc(var(--appnav-h, 0px) + 3.2rem);
}
.arow:target { background: var(--wash); }
.arow.mine { background: color-mix(in srgb, var(--b-diy) 6%, transparent); }
.a-name { padding-right: 0.8rem; line-height: 1.2; }
.a-n { display: block; font-weight: 600; font-size: 0.84rem; }
.a-o { display: block; font-size: 0.68rem; color: var(--ink-3); }
.a-track { position: relative; }
.a-grid { position: absolute; top: -0.35rem; bottom: -0.35rem; border-left: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.a-life {
  position: absolute;
  top: 11px;
  height: 2px;
  margin-top: -1px;
  background: var(--band);
  opacity: 0.55;
  border-radius: 1px;
}
.a-before {
  position: absolute;
  top: 11px;
  border-top: 2px dotted var(--band);
  margin-top: -1px;
  opacity: 0.45;
}
.ev {
  position: absolute;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.ev .shape { transition: transform 0.12s; }
.ev:hover .shape, .ev:focus-visible .shape { transform: scale(1.35); }
.ev .sh-fill, .ev .sh-ring { stroke: var(--paper); stroke-width: 1.4; paint-order: stroke; }
.ev .sh-ring { stroke: var(--band); stroke-width: 1.8; }
.ev.on { z-index: 2; }
.ev.on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
}
.ev-l {
  position: absolute;
  top: 3px;
  font-size: 0.66rem;
  line-height: 1;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- the log ---------- */

.log-m {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
  max-width: 64rem;
}
.log-l { list-style: none; max-width: 64rem; }
.log-e {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.84rem;
  line-height: 1.5;
  scroll-margin-top: calc(var(--appnav-h, 0px) + 2rem);
}
.log-e.on, .log-e:target { background: var(--wash); }
.log-d { display: flex; align-items: baseline; gap: 0.35rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); white-space: nowrap; }
.log-d .shape { align-self: center; }
.log-a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-right: 0.15rem; }
.log-b b { font-weight: 600; }
.log-b { color: var(--ink-2); }
.log-b b { color: var(--ink); }
.log-s { font-size: 0.74rem; color: var(--ink-3); }

/* ---------- side by side ---------- */

.cmp-band { margin-top: 1.6rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.cmp-band::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--band);
  margin-right: 0.45rem;
  vertical-align: 0.1em;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.9rem; margin-top: 0.6rem; max-width: 96rem; }
.card { background: var(--card); border: 1px solid var(--rule-soft); border-radius: 8px; padding: 0.8rem 0.9rem 0.85rem; }
.card.mine { border-color: color-mix(in srgb, var(--b-diy) 45%, var(--rule)); }
.card h4 { font-size: 1rem; font-weight: 600; }
.c-org { font-size: 0.72rem; color: var(--ink-3); margin-top: 0.1rem; }
.c-idea { margin-top: 0.45rem; font-size: 0.84rem; line-height: 1.5; }
.card dl { margin-top: 0.55rem; display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.25rem 0.6rem; font-size: 0.76rem; line-height: 1.45; }
.card dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.15rem; }
.card dd { color: var(--ink-2); }
.c-src { margin-top: 0.6rem; font-size: 0.7rem; line-height: 1.4; border-top: 1px solid var(--rule-soft); padding-top: 0.45rem; }

/* ---------- mine ---------- */

.mine-box {
  margin-top: 2rem;
  max-width: 52rem;
  border-left: 3px solid var(--b-diy);
  padding: 0.2rem 0 0.2rem 1rem;
  scroll-margin-top: calc(var(--appnav-h, 0px) + 1.5rem);
}
.mine-box h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.mine-box h3 em { font-style: italic; color: var(--b-diy); }
.mine-box p { margin-top: 0.55rem; font-size: 0.92rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- narrow ---------- */

@media (max-width: 1299px) {
  .side-inner > .reader { grid-column: 1 / -1; }
  .reader { display: none; }
}
@media (max-width: 860px) {
  .tl-main { padding: 0 0.8rem 2.4rem; }
  .tl { --name-w: 6.6rem; }
  .a-o { display: none; }
  .a-n { font-size: 0.74rem; }
  .ev-l { display: none; }
  .band-h span { display: block; margin: 0.1rem 0 0; }
  .ax-m { font-size: 0.54rem; }
  .log-e { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media (max-width: 1299px) and (min-width: 861px) {
  .side-inner { grid-template-rows: auto auto 1fr; }
}
.score-table td { white-space: nowrap; }
.arow { padding-top: 0.85rem; }
.ev-l.up { top: -10px; color: var(--ink-3); }
.ev-l.up::before { content: ""; }
.reader { margin-top: 0.9rem; }
.score-table tbody th { white-space: normal; font-size: 0.74rem; }
.score-table td { font-size: 0.66rem; padding-left: 0.4rem; }
.score-table thead th { padding-left: 0.4rem; }
@media (max-width: 860px) {
  .side-inner { display: block; }
  .side-inner > .score { margin-top: 1.1rem; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .reading, .sources, .colophon { padding-left: 1rem; padding-right: 1rem; }
  .ax-m:nth-child(even) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
