/* logs2k6, built on the api-dead-ends v8 system: calm structure, colour only for meaning, a light poster, self-hosted type. */

@font-face { font-family: "General Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/general-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-800-latin.woff2") format("woff2"); }

:root {
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "General Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* taste-skill-ignore: only pre and code use it */

  /* neutrals, light */
  --f-hero: #fbfbfc; --f-hero-ink: #14131a; --f-hero-muted: #55535c;
  --f-paper: #f6f6f4; --f-mist: #ebeef0; --f-stone: #eceef0;
  --bg: var(--f-paper); --surface: #e4e5e3; --surface-2: #d9dbd9;
  --ink: #14131a; --muted: #4a4950;
  --accent: #b11226; --accent-ink: #ffffff; --bad-text: #a3101f;
  --code-bg: #e7e8e6;
  --f-crimson: #b11226;
  /* meaning: the four finding groups (field, strong text, dot) */
  --g-err: #fbe2df;   --g-err-s: #a3101f;   --g-err-d: #d6303f;
  --g-drift: #fbecc6; --g-drift-s: #714900; --g-drift-d: #b07a00;
  --g-usage: #d8ecf0; --g-usage-s: #0c5a66; --g-usage-d: #1b8a99;
  --g-ci: #dff0dc;    --g-ci-s: #25622a;    --g-ci-d: #3a8f3f;

  --step-small: 0.9375rem;
  --step-body: 1.125rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem);
  --step-h2: clamp(2rem, 1.1rem + 3vw, 3.5rem);
  --step-h1: clamp(2.5rem, 0.9rem + 5.2vw, 6rem);

  --pad: clamp(16px, 3vw, 40px);
  --sec: clamp(48px, 4.6vw, 72px);
  --r: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tone: var(--accent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --f-hero: #1c0a0e; --f-hero-ink: #f4efef; --f-hero-muted: #cbbfc1;
    --f-paper: #0e0e10; --f-mist: #131619; --f-stone: #161513;
    --bg: var(--f-paper); --surface: #1b1b1e; --surface-2: #242428;
    --ink: #ededed; --muted: #b3b3b3; --bad-text: #ff8a94; --code-bg: #0b0b0d;
    --f-crimson: #7e0c1b; --key: #ff6b78;
    --g-err: #2b1215; --g-err-s: #ff9aa2; --g-err-d: #ff6b78;
    --g-drift: #2a2210; --g-drift-s: #f4c862; --g-drift-d: #e8b13a;
    --g-usage: #0e2429; --g-usage-s: #7fd6e2; --g-usage-d: #3fb6c6;
    --g-ci: #13230f; --g-ci-s: #9ee08f; --g-ci-d: #5cbf55;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --f-hero: #1c0a0e; --f-hero-ink: #f4efef; --f-hero-muted: #cbbfc1;
  --f-paper: #0e0e10; --f-mist: #131619; --f-stone: #161513;
  --bg: var(--f-paper); --surface: #1b1b1e; --surface-2: #242428;
  --ink: #ededed; --muted: #b3b3b3; --bad-text: #ff8a94; --code-bg: #0b0b0d;
  --f-crimson: #7e0c1b; --key: #ff6b78;
  --g-err: #2b1215; --g-err-s: #ff9aa2; --g-err-d: #ff6b78;
  --g-drift: #2a2210; --g-drift-s: #f4c862; --g-drift-d: #e8b13a;
  --g-usage: #0e2429; --g-usage-s: #7fd6e2; --g-usage-d: #3fb6c6;
  --g-ci: #13230f; --g-ci-s: #9ee08f; --g-ci-d: #5cbf55;
  color-scheme: dark;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 200ms ease, color 200ms ease; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
img { display: inline-block; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
details > summary:focus-visible { outline-offset: -5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 20; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* buttons: one filled primary, everything else a text button */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 200ms ease; }
.btn:hover { background: #c4162c; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.textbtn { background: none; border: 0; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 500; }
.textbtn:hover { text-decoration-thickness: 2px; }
html:not(.js) .textbtn[data-copy], html:not(.js) .living__btn, html:not(.js) .theme, html:not(.js) .btn[data-copy] { display: none; }

/* sticky bar, same colour as the hero: no seam */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--f-hero); color: var(--f-hero-ink); }
.topbar__in { max-width: 1240px; margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; gap: 24px; }
.topbar__mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.topbar__where { margin-right: auto; font-size: var(--step-small); color: var(--f-hero-muted); }
.topbar__nav { display: flex; gap: 22px; font-size: var(--step-small); }
.topbar__nav a { text-decoration: none; padding: 10px 0; color: var(--f-hero-muted); }
.topbar__nav a:hover, .topbar__nav a[aria-current] { color: var(--f-hero-ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.topbar__nav a[aria-current] { text-decoration-color: var(--nav-tone, var(--accent)); }
.theme { display: flex; gap: 2px; background: rgba(127, 127, 127, 0.14); border-radius: var(--r); padding: 2px; }
.theme button { border: 0; background: none; min-height: 36px; min-width: 44px; padding: 0 10px; border-radius: 8px; font-size: var(--step-small); cursor: pointer; color: var(--f-hero-muted); }
.theme button[aria-pressed="true"] { background: var(--f-hero-ink); color: var(--f-hero); }
.theme button:focus-visible { outline-offset: 1px; }
@media (max-height: 500px) { .topbar { position: static; } }

/* frame */
.sec { padding-block: var(--sec); }
.one, .two { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.two__text { display: grid; gap: 16px; }
.two__text > p, .answer, .list, .ticks { max-width: 68ch; }
h1, h2, .foot__name { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: var(--step-h1); line-height: 0.95; max-width: 19ch; }
h2 { font-size: var(--step-h2); line-height: 0.98; }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; margin-top: 8px; }
.lead { font-size: var(--step-lead); line-height: 1.5; }
.answer { margin-top: 12px; }
.small { font-size: var(--step-small); color: var(--muted); max-width: 80ch; overflow-wrap: anywhere; }
.small a { color: var(--ink); }
.one > .small, .two__frag > .small { margin-top: 20px; }
figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.label { font-size: var(--step-small); color: var(--muted); margin: 20px 0 8px; }

.tone-paper { background: var(--f-paper); --tone: var(--ink); }
.tone-mist  { background: var(--f-mist);  --tone: var(--ink); }
.tone-stone { background: var(--f-stone); --tone: var(--ink); }

/* the light poster */
.hero { background: var(--f-hero); color: var(--f-hero-ink); padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(56px, 6vw, 96px); --tone: var(--accent); }
.hero .key { color: var(--key, var(--accent)); }
.hero__row { margin-top: clamp(28px, 3vw, 48px); }
.hero .lead { color: var(--f-hero-ink); }
.hero .small, .hero figcaption { color: var(--f-hero-muted); }
.hero .small a { color: var(--f-hero-ink); }
.cmd { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 6px 8px 6px 18px; max-width: 520px; }
.cmd code { flex: 1; font-size: var(--step-body); }
.hero .cmd { background: rgba(20, 19, 26, 0.06); }
.cmd--big { max-width: none; }

.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step-small); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--d); flex: 0 0 auto; }
.legend--small { display: grid; gap: 2px; padding: 6px 0 2px; }
.g-err { --d: var(--g-err-d); } .g-drift { --d: var(--g-drift-d); } .g-usage { --d: var(--g-usage-d); } .g-ci { --d: var(--g-ci-d); }

/* the one dark object: a static terminal that doubles as the colour key */
.term { background: #0b0b0e; color: #ededed; border-radius: var(--r); padding: 0 0 18px; box-shadow: 12px 12px 0 var(--accent); } /* taste-skill-ignore: a hard offset on the data-ui terminal, not a soft shadow */
.term pre { padding: 14px 20px 0; color: #ededed; font-size: 0.8125rem; line-height: 1.65; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1b1b20; border-radius: var(--r) var(--r) 0 0; font-size: var(--step-small); color: #b9b9b9; }
.term__bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; }
.term__bar b { font-weight: 500; margin-left: 10px; }
.t-prompt, .t-dim { color: #9a9a9a; }
.term .t-dim, .frag .t-dim, .code .t-dim { color: var(--muted); }
.term .t-prompt { color: #9a9a9a; }
.t-cmd { font-weight: 600; }
.t-bad { color: #ff8a94; font-weight: 700; }
.t-drift { color: #f2c45a; font-weight: 700; }
.t-usage { color: #7fd6e2; font-weight: 700; }
.hero figcaption { margin-top: 22px; }

/* fragments */
.frag { background: var(--code-bg); border-radius: var(--r); padding: 20px; }
.code { background: var(--code-bg); border-radius: var(--r); padding: 16px 18px; font-size: 0.875rem; line-height: 1.6; color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; color: var(--muted); padding-bottom: 10px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 12px 8px 0; }
.tbl td { padding: 8px 12px 8px 0; }
.tbl tbody tr:nth-child(odd) td { background: var(--surface); }
.tbl td:first-child, .tbl th:first-child { padding-left: 10px; }
.num { text-align: right; }
.bad { color: var(--bad-text); font-weight: 600; }

/* In short */
.ticks { display: grid; gap: 8px; padding: 0; list-style: none; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.map { background: var(--f-paper); border-radius: var(--r); padding: 24px 28px; }
.map__title { font-family: var(--display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.01em; }
.map ol { margin-top: 10px; padding-left: 1.4em; display: grid; gap: 6px; }
.map li > span { color: var(--muted); font-size: var(--step-small); margin-left: 6px; }

/* accordions: one pattern, one height */
.groups, .acc { display: grid; gap: 6px; margin-top: 24px; }
.acc--inner { margin-top: 10px; }
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 10px 52px 10px 20px; position: relative; background: var(--surface); border-radius: var(--r); font-weight: 500; transition: background-color 200ms ease; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before, details > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: currentColor; }
details > summary::after { transform: rotate(90deg); }
details[open] > summary::after { transform: none; }
details > summary:hover { background: var(--surface-2); }
details > summary span { color: var(--muted); font-weight: 400; font-size: var(--step-small); }
details > :not(summary) { margin-left: 20px; margin-right: 20px; }
details > p, details > pre { margin-top: 14px; max-width: 72ch; }
details > .textbtn { margin: 4px 16px 10px; }
.acc details[open] > :last-child:not(.textbtn) { margin-bottom: 18px; }
.acc details { border-radius: var(--r); }
.tone-mist .acc details[open], .tone-paper .acc details[open] { background: var(--surface); }

/* the four groups: colour only here, in the tags and in the dots */
.group--err   { --gf: var(--g-err);   --gs: var(--g-err-s);   --gd: var(--g-err-d); }
.group--drift { --gf: var(--g-drift); --gs: var(--g-drift-s); --gd: var(--g-drift-d); }
.group--usage { --gf: var(--g-usage); --gs: var(--g-usage-s); --gd: var(--g-usage-d); }
.group--ci    { --gf: var(--g-ci);    --gs: var(--g-ci-s);    --gd: var(--g-ci-d); }
.group { border-radius: var(--r); background: var(--surface); border-left: 6px solid var(--gd); }
.group > summary { background: transparent; border-radius: 0 var(--r) var(--r) 0; min-height: 56px; }
.group > summary:hover { background: var(--gf); }
.group[open] { background: var(--gf); }
.group .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gd); flex: 0 0 auto; }
.group__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); letter-spacing: -0.015em; color: var(--ink) !important; }
.group__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; padding: 20px 0 28px; align-items: start; }
.group__body > p { grid-column: 1 / -1; max-width: 68ch; }
.group .frag, .group .code { background: var(--f-paper); }
.group .tbl tbody tr:nth-child(odd) td { background: transparent; }
.group .tbl tbody td:first-child { border-left: 4px solid var(--gd); padding-left: 10px; }
.group .bad, .group .list b { color: var(--gs); }
.list { display: grid; gap: 10px; padding: 0; list-style: none; }

.steps { display: grid; gap: 14px; padding-left: 1.4em; max-width: 68ch; }
.steps code { overflow-wrap: anywhere; }
.why { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why b { display: block; font-size: var(--step-lead); font-weight: 600; margin-bottom: 6px; }
.more { margin-top: 20px; }
.more > summary { font-size: var(--step-body); }

/* living pictures: the final state is the default; Play replays it */
.living { position: relative; }
.living__title { font-size: var(--step-small); margin-bottom: 10px; }
.living__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: var(--step-small); color: var(--muted); flex-wrap: wrap; }
.living__btn { color: var(--ink); min-height: 40px; }
.spark { display: block; width: 100%; height: auto; }
.spark rect { fill: var(--muted); opacity: 0.8; transform-box: fill-box; transform-origin: bottom; }
.spark rect.hot { fill: var(--g-err-d); opacity: 1; }
.spark__rule { stroke: var(--g-err-s); stroke-width: 1.5; stroke-dasharray: 4 4; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--step-small); font-weight: 500; background: var(--surface); white-space: nowrap; }
.tag--err { background: var(--g-err); color: var(--g-err-s); }
.tag--drift { background: var(--g-drift); color: var(--g-drift-s); }
.tag--usage { background: var(--g-usage); color: var(--g-usage-s); }
.mcpx { font-size: 0.8125rem; line-height: 1.7; color: var(--ink); }
@keyframes rise { from { transform: scaleY(0.04); } to { transform: none; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .living.is-playing .spark rect.base { animation: rise 600ms var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
  .living.is-playing .spark rect.hot, .living.is-playing .spark__rule { animation: show 450ms var(--ease) both; animation-delay: 2080ms; }
  .living.is-playing .spark rect.hot { animation-name: rise; }
  .living.is-playing [data-step] { animation: show 450ms var(--ease) both; animation-delay: calc(var(--i) * 450ms); }
}
@media (prefers-reduced-motion: reduce) { .living__btn { display: none; } }

/* the close: one crimson page */
.install { background: var(--f-crimson); color: #fff; }
.install .cmd { background: rgba(255, 255, 255, 0.14); }
.install .cmd code { color: #fff; }
.install .btn { background: #fff; color: var(--f-crimson); }
.install .btn:hover { background: #ffe8ea; }
.install .btn:focus-visible, .install :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.install .small, .install .small a { color: #fff; }

.foot { background: var(--f-hero); color: var(--f-hero-ink); padding: 56px 0 40px; }
.foot .one { display: grid; gap: 12px; }
.foot__name { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.5rem); line-height: 1; }
.foot .small { color: var(--f-hero-muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 1000px) {
  .topbar__nav { display: none; }
  .two, .group__body { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 1001px) { .topbar__where { visibility: hidden; } }
@media (max-width: 640px) {
  .topbar__in { gap: 10px; flex-wrap: wrap; }
  .topbar__mark { font-size: var(--step-body); }
  .topbar__mark img { width: 24px; height: 24px; }
  .topbar__where { order: 5; flex-basis: 100%; margin: 0; }
  .theme button { min-width: 40px; padding: 0 6px; }
  .cmd { flex-wrap: wrap; padding: 10px 14px; }
  .frag { padding: 14px; }
  .term pre { padding: 12px 14px 0; }
  .term .t-x { display: none; }
  .map { padding: 20px; }
  details > :not(summary) { margin-left: 14px; margin-right: 14px; }
  details > summary { flex-wrap: wrap; row-gap: 2px; }
  details > summary span { flex-basis: 100%; }
  .tag { white-space: normal; }
  .tbl { table-layout: fixed; }
  .tbl td, .tbl th { overflow-wrap: anywhere; }
  .tbl th.num { width: 5.2em; }
  .tbl th:last-child:not(.num) { width: 30%; }
  .flow th:last-child { width: 44%; }
  .tbl .tag { overflow-wrap: normal; word-break: normal; }
  .flow th:nth-child(2), .flow td:nth-child(2) { display: none; }
}
@media (max-width: 360px) {
  .tbl .tag { overflow-wrap: anywhere; }
  .flow th:nth-child(2), .flow td:nth-child(2) { display: none; }
}

/* ===================== v8 ===================== */
/* copy icons: top-right of their code block */
.codebox { position: relative; }
.codebox > pre { padding-right: 56px; }
.copy { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 200ms ease; }
.copy:hover { background: rgba(127, 127, 127, 0.18); }
.copy:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.copy svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy .i-check { display: none; }
.copy.is-done .i-copy { display: none; }
.copy.is-done .i-check { display: block; }
html:not(.js) .copy { display: none; }
.cmd { position: relative; padding-right: 52px; }
.cmd .copy { top: 50%; transform: translateY(-50%); right: 8px; }
.hero .cmd .copy { color: var(--f-hero-ink); }
.install .cmd .copy { color: #fff; }
.install .cmd .copy:focus-visible { outline-color: #fff; }

/* assistant setup: full width, chips on top, the chosen config below */
.setup-row { margin-top: 32px; }
.more { margin-top: 0; }
.setup { padding: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { border: 0; border-radius: var(--r); background: var(--f-paper); min-height: 40px; padding: 0 14px; font-size: var(--step-small); cursor: pointer; transition: background-color 200ms ease; }
.chips button:hover { background: var(--surface-2); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.clp { display: grid; gap: 10px; }
.clp + .clp { margin-top: 24px; }
.clp h3 { margin: 0; }
.clp p { max-width: 80ch; }
.clp .code { background: var(--f-paper); }
.js .clp { display: none; }
.js .clp.is-on { display: grid; }
.js .clp + .clp { margin-top: 0; }
.js .clp h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .chips { display: none; }

/* living pictures: the start state, set by script only when they will play */
@media (prefers-reduced-motion: no-preference) {
  .living.is-start .spark rect.base { transform: scaleY(0.04); }
  .living.is-start .spark rect.hot, .living.is-start .spark__rule { opacity: 0; }
  .living.is-start [data-step] { opacity: 0; }
}
.note { margin-top: 4px; }
.finds-note { margin-top: 16px; }
details > .codebox { margin-top: 14px; }

/* ===== brand palette: dual (lime main + ultraviolet second, high-contrast notes) ===== */
:root { --f-hero: #fbfbfc; --f-hero-ink: #14131a; --f-hero-muted: #55535c; --accent: #9a00ff; --accent-ink: #ffffff; --accent-hover: #8400de; --violet-text: #9a00ff; --lime: #c6f000; --on-lime: #14131a; --key: #b11226; --hc-line: #14131a; --hard: #14131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --f-hero: #111210; --f-hero-ink: #f1f2ee; --f-hero-muted: #c3c5bf; --accent: #ae64ff; --accent-ink: #14131a; --accent-hover: #b67aff; --violet-text: #ae64ff; --lime: #c6f000; --on-lime: #14131a; --key: #ff6b78; --g-drift-d: #f59a23; --hc-line: #f1f2ee; --hard: #c6f000; } }
:root[data-theme="dark"] { --f-hero: #111210; --f-hero-ink: #f1f2ee; --f-hero-muted: #c3c5bf; --accent: #ae64ff; --accent-ink: #14131a; --accent-hover: #b67aff; --violet-text: #ae64ff; --lime: #c6f000; --on-lime: #14131a; --key: #ff6b78; --g-drift-d: #f59a23; --hc-line: #f1f2ee; --hard: #c6f000; }
.btn { border: 2px solid var(--hc-line); }
.btn:hover { background: var(--accent-hover); }
.btn:focus-visible { outline: 3px solid var(--hc-line); outline-offset: 3px; }
.cmd, .code, .frag, .map { border: 2px solid var(--hc-line); }
.term { box-shadow: 12px 12px 0 var(--hard); } /* taste-skill-ignore: the hard offset under the data-ui terminal */
.hero .hl { background: var(--lime); color: var(--on-lime); padding: 0 .08em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* the lime band: ink text, ultraviolet button with white text, separated from the next field by ink */
.install { background: var(--lime); color: var(--on-lime); border-block: 2px solid #14131a; }
.install .cmd { background: #fbfbfc; border-color: #14131a; }
.install .cmd code, .install .cmd .copy { color: #14131a; }
.install .small, .install .small a { color: #14131a; }
.install :focus-visible, .install .cmd .copy:focus-visible { outline-color: #14131a; }
.install .btn { background: #9a00ff; color: #ffffff; border-color: #14131a; }
.install .btn:hover { background: #8400de; }
.install__act { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.more-tools { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.more-tools svg { width: 40px; height: 40px; border-radius: 9px; }

/* ===== electric red (chroma matched to lime and violet), errors only ===== */
:root { --g-err: #ffdfdc; --g-err-s: #cd0522; --g-err-d: #ff022c; --bad-text: #cd0522; --key: #cd0522; --term-red: #ff2c39; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-err: #3d090a; --g-err-s: #ff2c39; --g-err-d: #ff022c; --bad-text: #ff2c39; --key: #ff2c39; } }
:root[data-theme="dark"] { --g-err: #3d090a; --g-err-s: #ff2c39; --g-err-d: #ff022c; --bad-text: #ff2c39; --key: #ff2c39; }
.t-bad { color: var(--term-red); }

/* ===== tweaks: white ring on violet-on-lime; signal yellow for focus, selection and badges ===== */
.install .btn { border-color: #ffffff; }
html :focus-visible, html .btn:focus-visible, html .copy:focus-visible, html .theme button:focus-visible, html .chips button:focus-visible, html .textbtn:focus-visible { outline: 3px solid var(--hc-line); outline-offset: 3px; box-shadow: 0 0 0 3px #ffd400; } /* taste-skill-ignore: focus ring, not a shadow at rest */
html details > summary:focus-visible { outline: 3px solid var(--hc-line); outline-offset: -8px; box-shadow: inset 0 0 0 3px #ffd400; } /* taste-skill-ignore: focus ring, not a shadow at rest */
html a:focus-visible { outline: none; background: #ffd400; color: #14131a; box-shadow: 0 3px 0 0 #14131a; text-decoration: none; } /* taste-skill-ignore: focus ring, not a shadow at rest */
html a.btn:focus-visible { background: var(--accent); color: var(--accent-ink); outline: 3px solid var(--hc-line); outline-offset: 3px; box-shadow: 0 0 0 3px #ffd400; } /* taste-skill-ignore: focus ring, not a shadow at rest */
html .install :focus-visible, html .install .btn:focus-visible, html .install .copy:focus-visible { outline: 3px solid #14131a; outline-offset: 3px; box-shadow: none; } /* taste-skill-ignore: focus ring, not a shadow at rest */
html .install a:not(.btn):focus-visible { background: none; color: #14131a; }
html .install a.btn:focus-visible { background: #9a00ff; color: #ffffff; }
::selection { background: #ffd400; color: #14131a; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 8px; background: #ffd400; color: #14131a; font-weight: 600; font-size: 13px; line-height: 1.5; vertical-align: 0.1em; }
.more-tools img { width: 40px; height: 40px; border-radius: 9px; }

/* ===== ground B, violet paper: the light-theme ground of logs2k6 (talik-ui data-ground="violet"; dark and contrast are shared; meaning colours never change) ===== */
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) { --f-hero: #f7f2ff; --f-paper: #f7f2ff; --bg: #f7f2ff; --f-mist: #f0e9fe; --f-stone: #f0e9fe; --surface: #ffffff; --surface-2: #e9dffb; --code-bg: #ffffff; } }
html[data-theme="light"] { --f-hero: #f7f2ff; --f-paper: #f7f2ff; --bg: #f7f2ff; --f-mist: #f0e9fe; --f-stone: #f0e9fe; --surface: #ffffff; --surface-2: #e9dffb; --code-bg: #ffffff; }

.tldr .map, .group .frag, .group .code { background: var(--code-bg); }
/* yellow, visible in three places: pill badges, one yellow highlighter on screen 2, the current-section pill */
.badge { font-size: 15px; padding: 3px 12px; border-radius: 999px; }
.hl-y { background: #ffd400; color: #14131a; padding: 0 .15em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.topbar__nav a[aria-current] { background: #ffd400; color: #14131a !important; text-decoration: none !important; border-radius: 999px; padding: 4px 12px; margin-inline: -12px; }
.install__note { margin-top: -6px; }

/* ===================== logs2k6 ===================== */
/* meaning: scenario status. Active = green field, write (generated, off) = amber field, left out = neutral. Same tones as the shared finding palette. */
:root { --s-on: var(--g-ci); --s-on-s: var(--g-ci-s); --s-on-d: var(--g-ci-d); --s-write: var(--g-drift); --s-write-s: var(--g-drift-s); --s-write-d: var(--g-drift-d); --s-out-d: #6e6c76; --chart-base: #75737c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s-out-d: #9a99a0; --chart-base: #8f8e96; } }
:root[data-theme="dark"] { --s-out-d: #9a99a0; --chart-base: #8f8e96; }
.g-on { --d: var(--s-on-d); } .g-write { --d: var(--s-write-d); } .g-out { --d: var(--s-out-d); }
.tag--on { background: var(--s-on); color: var(--s-on-s); }
.tag--write { background: var(--s-write); color: var(--s-write-s); }
.tag--out { background: var(--surface-2); color: var(--muted); }
.status { font-size: var(--step-small); color: var(--f-hero-muted); max-width: 60ch; }
.status .badge { margin-right: 6px; }

/* hero terminal: the report's mix as a real table */
.mixt { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; color: #ededed; font-variant-numeric: tabular-nums; margin-top: 10px; }
.mixt th { text-align: left; font-weight: 500; color: #b9b9b9; padding: 6px 10px 6px 0; }
.mixt td { padding: 4px 10px 4px 0; vertical-align: top; }
.mixt th:first-child, .mixt td:first-child { padding-left: 20px; }
.mixt td:first-child { overflow-wrap: anywhere; }
.mixt .num { text-align: right; }
.t-on { color: #9ee08f; font-weight: 700; }
.t-write { color: #f2c45a; font-weight: 700; }
.term__foot { padding: 10px 20px 0; font-family: var(--mono); font-size: 0.8125rem; color: #ededed; }

/* the busiest-hour chart: neutral bars, one lime bar with an ink edge */
.spark--hours rect.base { fill: var(--chart-base); opacity: 1; }
.spark--hours rect.hot { fill: #c6f000; stroke: var(--hc-line); stroke-width: 2; }
.spark__axis { display: flex; justify-content: space-between; font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.spark__axis span:nth-child(2) { margin-right: 18%; }
.spark__axis span:last-child { margin-right: 12%; }

.acc details > .frag { margin-top: 14px; }
.acc details > .frag + .frag { margin-top: 10px; }
.acc details > .list { margin-top: 14px; }
.limits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; max-width: none; margin-top: 24px; }
.limits b { display: block; }
.mix caption code { font-size: 0.95em; }

@media (max-width: 1000px) { .limits { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mixt .col-test, .mixt .col-rate { display: none; }
  .mixt th:first-child, .mixt td:first-child { padding-left: 14px; }
  .term__foot { padding: 10px 14px 0; }
  .mix .col-basis, .mix .col-rate { display: none; }
  .mix th.num.col-test { width: 4.6em; }
  .mix th.num:not(.col-test) { width: 4.2em; }
  .spark__axis span:nth-child(2) { margin-right: 6%; }
  .spark__axis span:last-child { margin-right: 0; }
}
@media (max-width: 420px) { .mix .col-test { display: none; } }

/* ===== contrast: prefers-contrast more, from talik-ui tokens (contrast theme). White grounds, black ink, deeper violet. ===== */
@media (prefers-contrast: more) {
  :root:not([data-theme]) {
    color-scheme: light;
    --f-hero: #ffffff; --f-hero-ink: #000000; --f-hero-muted: #2b2b2b;
    --f-paper: #ffffff; --f-mist: #ffffff; --f-stone: #ffffff; --bg: #ffffff;
    --surface: #ffffff; --surface-2: #f0f0f0; --code-bg: #f2f2f2;
    --ink: #000000; --muted: #2b2b2b;
    --accent: #6a00c2; --accent-ink: #ffffff; --accent-hover: #52009a; --violet-text: #6a00c2;
    --on-lime: #000000; --hc-line: #000000; --hard: #000000; --key: #a8001b; --bad-text: #a8001b;
    --g-err: #ffffff; --g-err-s: #a8001b; --g-err-d: #c00020;
    --g-drift: #ffffff; --g-drift-s: #4f3300; --g-drift-d: #7a5200;
    --g-ci: #ffffff; --g-ci-s: #174419; --g-ci-d: #1f6a24;
    --s-out-d: #2b2b2b; --chart-base: #2b2b2b;
  }
  :root:not([data-theme]) .tag--on, :root:not([data-theme]) .tag--write, :root:not([data-theme]) .tag--out { box-shadow: inset 0 0 0 1px currentColor; } /* taste-skill-ignore: a 1px outline on tags in contrast mode, not a soft shadow */
  :root:not([data-theme]) .mixt th { color: #e6e6e6; }
  :root:not([data-theme]) .install .btn { background: #6a00c2; }
}

/* phone fixes: whole tokens in commands and short inline flags; tags never wrap inside */
.nw { white-space: nowrap; }
.limits code, .why code, .answer code, .list code, .faq code, .living__foot code, figcaption code { white-space: nowrap; }
.tbl .tag { white-space: nowrap; }
@media (max-width: 640px) {
  .tbl td, .tbl th { overflow-wrap: normal; }
  .tbl th:last-child:not(.num) { width: auto; }
  .tbl td:first-child { overflow-wrap: anywhere; }
  .tbl .tag { font-size: 0.875rem; padding: 2px 8px; }
  .mixt td:first-child { overflow-wrap: normal; }
}
.t-on, .t-write, .tbl caption code { white-space: nowrap; }
/* chart axis: labels at their real positions (Nov 24 starts at the middle; the peak is bar 39 of 48) */
.spark__axis { position: relative; display: block; height: 1.6em; }
.spark__axis span { position: absolute; top: 0; margin: 0 !important; white-space: nowrap; }
.spark__axis span:first-child { left: 0; }
.spark__axis .ax-mid { left: 50%; }
.spark__axis .ax-peak { left: 80.2%; transform: translateX(-50%); }
@media (max-width: 360px) { .tbl .tag { white-space: normal; border-radius: 10px; } }

/* buttons on lime: yellow on hover, not a darker violet */
.install .btn:hover { background: #ffd400; color: #14131a; border-color: #14131a; }
