/* Resolve Color Class. Plain CSS, no build step. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #eceef2; --surface: #ffffff; --sunk: #e2e5eb;
  --ink: #14151c; --ink-2: #474a58; --line: #cfd3dc;
  --mast: #14151c; --mast-ink: #f4f5f8; --mast-2: #a9adbb;
  --link: #4c1fb3; --focus: #1d4ed8;
  --c1: #6d28d9; --c2: #1d4ed8; --c3: #0f766e; --c4: #15803d;
  --c5: #b45309; --c6: #c2410c; --c7: #be185d; --c8: #a21caf;
  --tip: #e3f4ea; --tip-ink: #0d4a26; --note: #e4ebfb; --note-ink: #17357f;
  --warn: #fdeed3; --warn-ink: #6b3a05; --stop: #fde5e7; --stop-ink: #7f1420;
  --shadow: 0 1px 2px rgb(20 21 28 / .06), 0 8px 24px -12px rgb(20 21 28 / .18);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0f1015; --surface: #191b23; --sunk: #14151b;
    --ink: #eceef3; --ink-2: #b1b5c3; --line: #30333f;
    --mast: #07080b; --link: #b79cff; --focus: #93b4ff;
    --tip: #12301f; --tip-ink: #b6ecc9; --note: #172444; --note-ink: #c3d4ff;
    --warn: #37260a; --warn-ink: #f8d9a0; --stop: #3a1418; --stop-ink: #ffc4ca;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -14px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0f1015; --surface: #191b23; --sunk: #14151b;
  --ink: #eceef3; --ink-2: #b1b5c3; --line: #30333f;
  --mast: #07080b; --link: #b79cff; --focus: #93b4ff;
  --tip: #12301f; --tip-ink: #b6ecc9; --note: #172444; --note-ink: #c3d4ff;
  --warn: #37260a; --warn-ink: #f8d9a0; --stop: #3a1418; --stop-ink: #ffc4ca;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -14px rgb(0 0 0 / .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7.5rem; scrollbar-color: var(--ink-2) var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-wrap: break-word; }
::selection { background: var(--c1); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
code, kbd { font: .9em var(--mono); background: var(--sunk); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Language: both are in the page, one shows. */
html[data-lang="en"] [data-l="es"], html[data-lang="es"] [data-l="en"] { display: none !important; }

/* Masthead */
.mast { position: sticky; top: -3.5rem; z-index: 30; background: var(--mast); color: var(--mast-ink); }
.mast-in { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; height: 3.5rem; color: inherit; text-decoration: none; font: 700 1rem/1.1 var(--display); letter-spacing: -.01em; }
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; border-radius: 5px; }
.tools { display: flex; align-items: center; gap: .5rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .12); }
.seg button { border: 0; background: none; color: var(--mast-2); font: 700 .8125rem/1 var(--body); letter-spacing: .04em; padding: .45rem .7rem; border-radius: 999px; cursor: pointer; min-width: 2.75rem; }
.seg button[aria-pressed="true"] { background: var(--mast-ink); color: var(--mast); }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 0; background: rgb(255 255 255 / .12); color: var(--mast-ink); cursor: pointer; }
.icon-btn:hover, .seg button:hover { color: #fff; }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
.icon-btn .moon, :root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }
.tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
.tabs a { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.9rem; padding: .3rem .35rem; color: var(--mast-2); text-decoration: none; font: 600 .875rem/1.15 var(--body); text-align: center; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--mast-ink); }
.tabs a[aria-current="page"] { color: var(--mast-ink); border-bottom-color: var(--mast-ink); }
.spectrum { display: grid; grid-template-columns: repeat(8, 1fr); height: 6px; }
.spectrum i:nth-child(1) { background: var(--c1); } .spectrum i:nth-child(2) { background: var(--c2); }
.spectrum i:nth-child(3) { background: var(--c3); } .spectrum i:nth-child(4) { background: var(--c4); }
.spectrum i:nth-child(5) { background: var(--c5); } .spectrum i:nth-child(6) { background: var(--c6); }
.spectrum i:nth-child(7) { background: var(--c7); } .spectrum i:nth-child(8) { background: var(--c8); }
@media (min-width: 860px) {
  .mast { top: 0; }
  .mast-in { grid-template-columns: auto 1fr auto; column-gap: 2rem; }
  .tabs { grid-column: 2; grid-row: 1; display: flex; gap: .25rem; }
  .tabs a { min-height: 3.5rem; padding-inline: .9rem; font-size: .9375rem; }
  .brand { font-size: 1.125rem; }
  .tools { grid-column: 3; }
}

/* Page openers */
.opener { padding-block: clamp(1.75rem, 4.5vw, 3.25rem) clamp(1.25rem, 2.5vw, 1.75rem); }
.opener h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; max-width: 16ch; }
.opener .lede { font-size: clamp(1.0625rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 58ch; margin: 1rem 0 0; }
main > section, .band { padding-block: clamp(2rem, 5vw, 3.5rem); }
.sec-h { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 750; margin-bottom: .6rem; }
.sec-p { color: var(--ink-2); max-width: 62ch; }

/* The colour chart */
.chart-frame { background: var(--mast); border-radius: 22px; padding: clamp(.6rem, 1.6vw, 1rem); box-shadow: var(--shadow); }
.chart-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .25rem .5rem .75rem; color: var(--mast-2); font-size: .9375rem; }
.chart-bar strong { color: var(--mast-ink); font-family: var(--display); font-weight: 700; }
.chart-bar .seg button { min-width: 0; }
.chart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.4rem, 1vw, .65rem); }
@media (min-width: 860px) { .chart { grid-template-columns: repeat(4, 1fr); } }
.chip { --c: var(--c1); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: clamp(8.75rem, 13vw, 10.5rem); padding: clamp(.8rem, 1.6vw, 1.15rem); border-radius: 12px; background: var(--c); color: #fff; text-decoration: none; transition: filter 1.1s var(--ease) calc(var(--i, 0) * 80ms), transform .35s var(--ease); }
.chip:hover { transform: translateY(-3px); }
.chip:focus-visible { outline-color: #fff; outline-offset: -5px; }
.chip-n { font: 800 clamp(2.4rem, 5.5vw, 4rem)/.85 var(--display); letter-spacing: -.04em; display: flex; justify-content: space-between; align-items: flex-start; }
.chip-n .emoji { font-size: .5em; line-height: 1; }
.chip-t { font: 700 clamp(1rem, 1.5vw, 1.2rem)/1.15 var(--display); display: block; }
.chip-d { display: block; font-size: .875rem; opacity: .92; margin-top: .25rem; }
.chip .tick { position: absolute; right: .7rem; bottom: .7rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: var(--c); display: none; place-items: center; }
.chip .tick svg { width: 1rem; height: 1rem; }
.chip.is-done .tick { display: grid; }
.chip.is-done .chip-t { padding-right: 2rem; }
.preflat .chart .chip, .chart.is-flat .chip { filter: saturate(.12) contrast(.5) brightness(1.2); }
.c1 { --c: var(--c1); } .c2 { --c: var(--c2); } .c3 { --c: var(--c3); } .c4 { --c: var(--c4); }
.c5 { --c: var(--c5); } .c6 { --c: var(--c6); } .c7 { --c: var(--c7); } .c8 { --c: var(--c8); }

/* 60-minute bar */
.hour { display: grid; grid-template-columns: 5fr 15fr 25fr 10fr 5fr; gap: 3px; margin: 1.5rem 0 .75rem; border-radius: 12px; overflow: hidden; }
.hour div { min-height: 3.25rem; display: grid; place-items: center; color: #fff; font: 700 .9375rem/1 var(--display); }
.hour div:nth-child(1) { background: var(--c2); } .hour div:nth-child(2) { background: var(--c1); }
.hour div:nth-child(3) { background: var(--c4); } .hour div:nth-child(4) { background: var(--c6); } .hour div:nth-child(5) { background: var(--c7); }
.hour-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); }
.hour-key li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: baseline; }
.hour-key li > b { font: 700 .875rem/1 var(--mono); color: #fff; padding: .3rem .45rem; border-radius: 6px; white-space: nowrap; }
.hour-key li:nth-child(1) > b { background: var(--c2); } .hour-key li:nth-child(2) > b { background: var(--c1); }
.hour-key li:nth-child(3) > b { background: var(--c4); } .hour-key li:nth-child(4) > b { background: var(--c6); } .hour-key li:nth-child(5) > b { background: var(--c7); }

.two { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.plain { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.plain li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; }
.plain li > span:first-child { font-size: 1.15rem; line-height: 1.4; }

/* Classes */
.class { --c: var(--c1); margin-top: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.class-head { background: var(--c); color: #fff; padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: .75rem 1.5rem; grid-template-columns: auto 1fr; align-items: end; }
.class-num { font: 800 clamp(3.5rem, 9vw, 6rem)/.8 var(--display); letter-spacing: -.05em; }
.class-head h3 { font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 750; }
.class-when { font-size: .9375rem; opacity: .95; margin: .4rem 0 0; }
.class-goal { grid-column: 1 / -1; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 60ch; margin: 0; }
.class-body { padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 980px) { .class-body { grid-template-columns: 1.15fr 1fr; } }
.class-body h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: .7rem; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .9rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.agenda li:first-child { border-top: 0; padding-top: 0; }
.agenda time { font: 700 .875rem/1.7 var(--mono); color: var(--c); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .agenda time { color: color-mix(in oklab, var(--c) 45%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agenda time { color: color-mix(in oklab, var(--c) 45%, #fff); } }
.agenda b { display: block; font-family: var(--display); }
.side { display: grid; gap: 1.5rem; align-content: start; }
.fact { background: var(--sunk); border-radius: 14px; padding: 1rem 1.1rem; }
.fact p:last-child, .fact ul:last-child { margin-bottom: 0; }
.fact ul { margin: 0; padding-left: 1.15rem; }
.go { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.go a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.go a:hover { border-color: var(--ink); }
.quiz { border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.quiz + .quiz { margin-top: .6rem; }
.quiz summary { cursor: pointer; list-style: none; padding: .8rem 1rem; font-weight: 600; display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary::after { content: attr(data-show); font: 700 .8125rem/1 var(--body); color: var(--link); white-space: nowrap; }
.quiz[open] summary::after { content: attr(data-hide); }
.quiz p { margin: 0; padding: 0 1rem 1rem; color: var(--ink-2); }
.done-btn { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 999px; border: 2px solid var(--ink); background: none; font-weight: 700; cursor: pointer; }
.done-btn svg { width: 1.1rem; height: 1.1rem; opacity: .25; }
.done-btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.done-btn[aria-pressed="true"] svg { opacity: 1; }

/* Checkpoints */
.gates { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.gates li { display: grid; gap: .25rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .gates li { grid-template-columns: 11rem 1fr 1.2fr; } }
.gates b { font-family: var(--display); font-size: 1.125rem; }
.gates span { color: var(--ink-2); }

/* Next steps */
.next { display: grid; gap: 1rem; }
@media (min-width: 760px) { .next { grid-template-columns: 1fr 1fr; } }
.next a { display: grid; gap: .35rem; padding: clamp(1.1rem, 3vw, 1.75rem); border-radius: 18px; color: #fff; text-decoration: none; background: var(--c1); }
.next a:nth-child(2) { background: var(--c6); }
.next a b { font: 750 clamp(1.3rem, 2.6vw, 1.75rem)/1.1 var(--display); }
.next a:hover b { text-decoration: underline; text-underline-offset: .15em; }

/* Reading pages */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: 4rem; }
.doc > .prose { min-width: 0; }
@media (min-width: 1100px) { .doc { grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.toc { display: none; }
@media (min-width: 1100px) {
  .toc { display: block; position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow: auto; padding-right: .5rem; }
  .toc-m { display: none; }
}
.toc h2 { font-size: .9375rem; font-weight: 700; margin-bottom: .6rem; }
.toc ol, .toc-m ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc a, .toc-m ol a { display: block; padding: .4rem .65rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; line-height: 1.3; }
.toc a:hover, .toc-m ol a:hover { color: var(--ink); background: var(--sunk); }
.toc a.is-here { background: var(--ink); color: var(--ground); font-weight: 600; }
.toc-m { position: sticky; top: 3.3rem; z-index: 20; background: var(--surface); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); margin-inline: calc(-1 * clamp(1rem, 4vw, 2.5rem)); }
.toc-m summary { cursor: pointer; list-style: none; padding: .75rem clamp(1rem, 4vw, 2.5rem); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary svg { width: 1.1rem; height: 1.1rem; transition: transform .3s var(--ease); }
.toc-m[open] summary svg { transform: rotate(180deg); }
.toc-m ol { padding: 0 .6rem .75rem; max-height: 60vh; overflow: auto; }
.tickbar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: var(--ink-2); font-size: .9375rem; margin-top: 1rem; }
.tickbar button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; font-weight: 600; font-size: .875rem; }
.tickbar button:hover { border-color: var(--ink); }

.prose { max-width: 46rem; }
.prose > p, .prose li { max-width: 68ch; }
.part { padding-top: clamp(2rem, 5vw, 3.25rem); }
.part:first-child { padding-top: 0; }
.part > h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 750; padding-bottom: .7rem; margin-bottom: 1.1rem; border-bottom: 2px solid var(--ink); }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .6rem; }
.prose h4 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 .4rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.steps { list-style: none; counter-reset: s; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.steps > li { counter-increment: s; position: relative; margin: 0; padding: .75rem .9rem .75rem 3.6rem; background: var(--surface); border-radius: 14px; min-height: 3.4rem; max-width: none; }
.steps > li p { margin: 0; }
.steps .tick-btn { position: absolute; left: .6rem; top: .6rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid var(--ink); background: none; cursor: pointer; display: grid; place-items: center; font: 700 .9375rem/1 var(--display); }
.steps .tick-btn::before { content: counter(s); }
.steps .tick-btn svg { display: none; width: 1.1rem; height: 1.1rem; }
.steps li.is-ticked .tick-btn { background: var(--c4); border-color: var(--c4); color: #fff; }
.steps li.is-ticked .tick-btn::before { content: none; }
.steps li.is-ticked .tick-btn svg { display: block; }
.steps li.is-ticked { color: var(--ink-2); }
.steps:not(.js) > li::before { content: counter(s); position: absolute; left: .6rem; top: .6rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 700 .9375rem/1 var(--display); }
.why { display: inline-block; font: 700 .75rem/1 var(--body); letter-spacing: .03em; padding: .28rem .5rem; margin: .45rem .4rem 0 0; border-radius: 6px; background: var(--note); color: var(--note-ink); }
.glance { margin: 1rem 0 1.5rem; }
.glance-label { font-weight: 700; margin-bottom: .5rem; }
.glance ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .35rem; align-items: center; }
.glance li { max-width: none; margin: 0; padding: .45rem .8rem; background: var(--ink); color: var(--ground); border-radius: 999px; font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; }
.glance li + li::before { content: ""; width: .5rem; height: .5rem; margin-left: -1.55rem; margin-right: 1.05rem; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); transform: rotate(45deg); }
.glance li + li { margin-left: 1rem; }
.callout { margin: 1.1rem 0; padding: .9rem 1.1rem; border-radius: 14px; background: var(--note); color: var(--note-ink); }
.callout p:last-child { margin: 0; }
.callout a { color: inherit; }
.callout.tip { background: var(--tip); color: var(--tip-ink); }
.callout.warning, .callout.important { background: var(--warn); color: var(--warn-ink); }
.callout.caution { background: var(--stop); color: var(--stop-ink); }
.cards { display: grid; gap: .75rem; margin: 1rem 0 1.5rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.cards > .card:only-child { grid-column: 1 / -1; }
.card { background: var(--surface); border-radius: 14px; padding: 1rem 1.1rem; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; background: var(--surface); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .9688rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--display); }
tr:last-child td { border-bottom: 0; }
.figure { display: block; width: 100%; margin: 1.25rem 0 1.75rem; padding: clamp(.4rem, 1.2vw, .8rem); border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); cursor: zoom-in; }
.figure img { width: 100%; border-radius: 8px; }
.figure.narrow { max-width: 34rem; }
dialog.zoom { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(8 9 12 / .94); overflow: auto; }
dialog.zoom::backdrop { background: rgb(8 9 12 / .94); }
dialog.zoom img { max-width: none; width: max(100%, 900px); margin: 3.5rem auto 1rem; background: #fff; border-radius: 10px; }
dialog.zoom form { position: fixed; top: .75rem; right: .75rem; }
dialog.zoom button { border: 0; border-radius: 999px; background: #fff; color: #14151c; font-weight: 700; padding: .6rem 1rem; cursor: pointer; }

/* Watch and read */
.lib { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.lib-h { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 750; padding-bottom: .65rem; border-bottom: 2px solid var(--ink); }
.lib-h i { flex: none; width: 1.1rem; height: 1.1rem; border-radius: 4px; background: var(--c); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 2.75rem 1fr; gap: .25rem .9rem; padding: .95rem .25rem; color: var(--ink); text-decoration: none; align-items: start; }
.rows .play { grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease); }
.rows .play svg { width: 1.15rem; height: 1.15rem; }
.rows a:hover .play { transform: scale(1.1); }
.rows a:hover b { text-decoration: underline; text-underline-offset: .15em; }
.rows b { font: 700 1.0938rem/1.25 var(--display); }
.rows .meta { grid-column: 2; color: var(--ink-2); font-size: .9375rem; }
.tag { display: inline-block; font: 700 .75rem/1 var(--body); padding: .25rem .45rem; border-radius: 6px; background: var(--sunk); color: var(--ink); margin-right: .35rem; vertical-align: .08em; }

.foot { background: var(--mast); color: var(--mast-2); padding-block: 2rem 2.5rem; font-size: .9375rem; }
.foot a { color: var(--mast-ink); }
.foot p { max-width: 70ch; margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media print {
  .mast, .toc, .toc-m, .tickbar, .done-btn, .foot { display: none !important; }
  body { background: #fff; }
}
