/* apluxor.com — marine electrical service and the «Электрика лодки» handbook.
 *
 * Owner decision 2026-09-27: apluxor.com stopped being the maker shelf and
 * became the publisher/service site the book already prints on its title
 * verso. Its visual identity therefore comes from the book, not from the
 * four-site shelf sheet: the cover's navy (#001434 → #02306A, mark #013A77),
 * its copper rule (#C2622C / #E8A33D on dark) and Inter. The estate's
 * behavioural law is kept unchanged: ≥44px controls, 3px focus ring,
 * 120/180/360ms motion only where it explains something, reduced-motion and
 * forced-colors fallbacks, safe-area gutters, nothing scrolls sideways.
 *
 * The second half of this file is the book's own reading system, ported from
 * the kit's print stylesheet (head.html) class by class. Box labels that the
 * print sheet generates with ::before are copied verbatim — they are part of
 * the author's text.
 */

/* ---------- fonts ---------- */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
/* Cyrillic and the few symbols the Latin file lacks, cut from the book's own
   Inter (SIL OFL 1.1, /fonts/Inter-LICENSE.txt). Loaded only on pages that
   actually contain these characters. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-cyr-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116, U+2190-2199, U+2248, U+2264-2265, U+03A9, U+2605, U+00AB, U+00BB; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-cyr-500.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116, U+2190-2199, U+2248, U+2264-2265, U+03A9, U+2605, U+00AB, U+00BB; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-cyr-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116, U+2190-2199, U+2248, U+2264-2265, U+03A9, U+2605, U+00AB, U+00BB; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-cyr-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116, U+2190-2199, U+2248, U+2264-2265, U+03A9, U+2605, U+00AB, U+00BB; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --surface-2: #e9edf3;
  --ink: #0b1a2e;
  --ink-2: #33445c;
  --muted: #56667d;
  --rule: #d5dce6;
  --rule-strong: #9aa7b8;
  --link: #0a4a94;
  --action: #013a77;
  --action-ink: #ffffff;
  --action-hover: #002a58;
  --copper: #c2622c;
  --copper-text: #9a4a1c;
  --focus: #0a66d8;
  --night-1: #001434;
  --night-2: #012553;
  --night-3: #02306a;
  --night-ink: #ffffff;
  --night-ink-2: #dbe6f4;
  --night-muted: #9fb3cc;
  --night-rule: #24457a;
  --night-copper: #e8a33d;
  --night-link: #9ccaff;
  --page: 1184px;
  --measure: 42rem;
  --gutter: max(16px, min(5vw, 56px));
  --radius: 10px;
  --radius-s: 6px;
  --t-fast: 120ms;
  --t-mid: 180ms;
  --t-slow: 360ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111f;
    --surface: #0d1a2c;
    --surface-2: #132338;
    --ink: #e9eef5;
    --ink-2: #c3cedc;
    --muted: #9aabc1;
    --rule: #22344c;
    --rule-strong: #3d5572;
    --link: #9ccaff;
    --action: #e8a33d;
    --action-ink: #1a1206;
    --action-hover: #f3b85c;
    --copper: #e8a33d;
    --copper-text: #efb25a;
    --focus: #9ccaff;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;             /* 17px — Apple's body default */
  line-height: 1.6;
  font-feature-settings: "calt", "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.vh { position: absolute !important; 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: var(--gutter); top: -100px; z-index: 50; background: var(--action); color: var(--action-ink);
  padding: 12px 18px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; min-height: 44px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand .word { font-weight: 800; letter-spacing: .2em; font-size: .95rem; }
.brand .mark, .brand .mark img { display: block; width: 32px; height: 32px; flex: none; }
.foot-mark, .foot-mark img { display: block; width: 40px; height: 40px; }
.brand .sub { white-space: nowrap; font-size: .8125rem; color: var(--muted); letter-spacing: 0; font-weight: 500; border-left: 1px solid var(--rule); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font-weight: 500; font-size: .9375rem; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
@media (hover: hover) { .nav a:hover { background: var(--surface); color: var(--ink); } }
.nav a[aria-current="page"], .nav a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
.nav a.cta { background: var(--action); color: var(--action-ink); margin-left: 6px; padding: 0 16px; font-weight: 600; }
.nav a.cta:hover { background: var(--action-hover); }
.menu { display: none; }
@media (max-width: 1279px) { .brand .sub { display: none; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
    padding: 0 14px; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--ink); }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu[open] > summary { background: var(--surface-2); }
  .menu .sheet { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 320px); background: var(--bg); border: 1px solid var(--rule);
    border-radius: 14px; padding: 8px; box-shadow: 0 18px 48px rgba(0, 10, 30, .18); display: grid; gap: 2px;
    transform-origin: top right; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
  /* The sheet grows out of the button that opened it. */
  @starting-style { .menu[open] .sheet { opacity: 0; transform: scale(.96) translateY(-4px); } }
  .menu .sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
  .menu .sheet a:hover, .menu .sheet a[aria-current="page"] { background: var(--surface-2); }
  .menu .sheet a.cta { background: var(--action); color: var(--action-ink); font-weight: 600; margin-top: 4px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn-primary { background: var(--action); color: var(--action-ink); }
@media (hover: hover) { .btn-primary:hover { background: var(--action-hover); } }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--ink); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Feedback on press, not on release (Apple fluid-interface principle); only transform, 100ms. */
.btn:active, .nav a:active, .menu .sheet a:active, .pager a:active { transform: scale(.97); transition: transform 100ms ease-out; }

/* ---------- night band (the cover's field) ---------- */
.night { background: linear-gradient(168deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%); color: var(--night-ink); }
.night a:not(.btn) { color: var(--night-link); }
.night .btn-primary { background: var(--night-copper); color: #1a1206; }
.night .btn-primary:hover { background: #f3b85c; }
.night .btn-ghost { border-color: rgba(219, 230, 244, .45); color: var(--night-ink); }
.night .btn-ghost:hover { border-color: var(--night-ink); }
.night :focus-visible { outline-color: #ffffff; }
.kicker-line { display: flex; align-items: center; gap: 12px; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.night .kicker-line { color: var(--night-muted); }
.kicker-line::before { content: ""; width: 10px; height: 10px; background: var(--copper); flex: none; }
.night .kicker-line::before { background: var(--night-copper); }

.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 9vw, 104px); }
.hero h1 { font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.02; margin: 22px 0 0; max-width: 16ch; }
.hero .rule { width: 96px; height: 4px; background: var(--night-copper); margin: 28px 0; }
.hero .lede { font-size: clamp(1.125rem, 1rem + .55vw, 1.375rem); line-height: 1.5; color: var(--night-ink-2); max-width: 40rem; margin: 0 0 32px; }
.hero .fine { margin: 22px 0 0; color: var(--night-muted); font-size: .9375rem; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--surface); border-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 750; margin-top: 14px; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; margin: 16px 0 0; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 48px 0 12px; }
.prose h3 { font-size: 1.1875rem; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.page-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); font-weight: 800; letter-spacing: -.024em; margin-top: 16px; max-width: 20ch; }
.page-head .lede { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 42rem; margin: 18px 0 0; }

/* symptom cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tint .card { background: var(--bg); }
.card h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.card .meta { margin-top: auto; padding-top: 10px; font-size: .9375rem; }
.card .meta a { font-weight: 600; }
.card .lang { color: var(--muted); font-weight: 400; }

/* numbered process */
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; max-width: 52rem; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps-list li:last-child { border-bottom: 1px solid var(--rule); }
.steps-list li::before { content: counter(s, decimal-leading-zero); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--copper-text); font-size: 1.0625rem; padding-top: 1px; }
.steps-list h3 { font-size: 1.125rem; margin-bottom: 6px; }
.steps-list p { margin: 0; color: var(--ink-2); }

/* two columns: list + boundary */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.25fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 6px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }
.checks.no li::before { width: 12px; height: 2px; border: 0; background: var(--muted); transform: none; top: 24px; }
.checks strong { color: var(--ink); }
.note-box { border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); }
.note-box h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.note-box p { margin: 0 0 10px; color: var(--ink-2); }
.note-box p:last-child { margin: 0; }

/* book promo on the English side */
.book-promo { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .book-promo { grid-template-columns: minmax(220px, 340px) 1fr; } }
.cover-img { width: 100%; max-width: 340px; aspect-ratio: 17 / 22; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 40px rgba(0, 20, 52, .22); background: var(--night-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

/* contact */
.contact-card { border: 1px solid var(--rule); border-radius: 14px; padding: clamp(22px, 4vw, 36px); background: var(--bg); max-width: 46rem; }
.contact-card .addr { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 700; word-break: break-word; }
.template { font-family: var(--mono); font-size: .9375rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; white-space: pre-wrap; color: var(--ink-2); margin: 16px 0 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9375rem; }
.foot .wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot p { margin: 0 0 8px; }

/* ================================================================
   The book — web edition of «Электрика лодки»
   ================================================================ */
:root {
  --b-blue: #2a78d6; --b-red: #b8322f; --b-navy: #013a77; --b-copper: #c2622c;
  --b-std-bg: #eef3fb; --b-std: #2a78d6; --b-std-t: #1a5490;
  --b-field-bg: #eefaf4; --b-field: #1baf7a; --b-field-t: #0c6a48;
  --b-warn-bg: #fdf0ec; --b-warn: #e34948; --b-warn-t: #a82c29;
  --b-ex-bg: #f6f6f2; --b-ex: #8a8a80; --b-ex-t: #4d4d46;
  --b-diag-bg: #f5f2fb; --b-diag: #4a3aa7; --b-diag-t: #4a3aa7;
  --b-why-bg: #f7f4ec; --b-why: #a08a5a; --b-why-t: #6b5530;
  --b-num-bg: #f2f6f8; --b-num: #5a7f94; --b-num-t: #3a5769;
  --b-life-bg: #fbe9e7; --b-cost-bg: #fff6e5; --b-cost: #c98a00; --b-cost-t: #7a4f00;
  --b-gold-bg: #fffaf4; --b-gold-t: #93461b;
  --b-old-bg: #fbf7f0; --b-old: #8a6d3b; --b-old-t: #6e5020;
  --b-off-bg: #eef6fa; --b-off: #2a6f8f; --b-off-t: #1d5a78;
  --b-for-bg: #f4f1fb; --b-for: #6b5aa7; --b-for-t: #4a3a8a;
  --b-svm-bg: #f7f7f4; --b-pro-bg: #f0f4f9;
  --b-stop-bg: #fdf1f0; --b-lpro-bg: #fffaf0; --b-cond-bg: #f3f7fd; --b-self-bg: #f1faf5;
  --b-restore-bg: #f3f8f3; --b-restore: #4c8a4c; --b-restore-t: #2a602a;
  --b-th: #eef1f5;
  --tag-abyc-bg: #d9e6f8; --tag-abyc: #1a4f94; --tag-cfr-bg: #d9f3e8; --tag-cfr: #0f6b47; --tag-ver-bg: #fde9c7; --tag-ver: #7a4f00;
  --tag-pr-bg: #e8e8e2; --tag-pr: #444; --tag-iso-bg: #ece3f7; --tag-iso: #4b2a80; --tag-mfr-bg: #e6f0e6; --tag-mfr: #2f6b2f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --b-navy: #9ccaff; --b-copper: #e8a33d;
    --b-std-bg: #0f2036; --b-std: #4c93ea; --b-std-t: #9cc6ff;
    --b-field-bg: #0c2219; --b-field: #2cc38e; --b-field-t: #7fe0bb;
    --b-warn-bg: #2a1413; --b-warn: #ff6b62; --b-warn-t: #ff9e97;
    --b-ex-bg: #161b22; --b-ex: #6f7680; --b-ex-t: #c3c8cf;
    --b-diag-bg: #1b1730; --b-diag: #8f80e8; --b-diag-t: #c4baff;
    --b-why-bg: #221d12; --b-why: #b59c62; --b-why-t: #e2c98f;
    --b-num-bg: #111d25; --b-num: #6f98ad; --b-num-t: #a9cadb;
    --b-life-bg: #2a1413; --b-cost-bg: #261d0a; --b-cost: #d9a126; --b-cost-t: #f1c768;
    --b-gold-bg: #20160c; --b-gold-t: #f0b27a;
    --b-old-bg: #1f190f; --b-old: #a88a55; --b-old-t: #e2c792;
    --b-off-bg: #0e1d25; --b-off: #4b95b8; --b-off-t: #9fd0e8;
    --b-for-bg: #181a26; --b-for: #9a8ad8; --b-for-t: #c9bcf5;
    --b-svm-bg: #141920; --b-pro-bg: #0f1a28;
    --b-stop-bg: #2a1413; --b-lpro-bg: #241c0b; --b-cond-bg: #0f1d31; --b-self-bg: #0d2219;
    --b-restore-bg: #0f1f12; --b-restore: #5fae5f; --b-restore-t: #9fd89f;
    --b-th: #132338;
    --tag-abyc-bg: #1b3350; --tag-abyc: #b7d4ff; --tag-cfr-bg: #123527; --tag-cfr: #9ee5c4; --tag-ver-bg: #3a2a0a; --tag-ver: #f5cf7c;
    --tag-pr-bg: #2a2e33; --tag-pr: #d8dbe0; --tag-iso-bg: #2a1f40; --tag-iso: #d6c2ff; --tag-mfr-bg: #1a2e1a; --tag-mfr: #b6e0b6;
  }
}

/* reading layout */
.reader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: clamp(28px, 5vw, 56px); padding-bottom: 72px; }
@media (min-width: 1100px) { .reader { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
.reader > * { min-width: 0; }
.reader-aside { display: none; }
@media (min-width: 1100px) {
  .reader-aside { display: block; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: .875rem; padding-right: 8px; }
}
.reader-aside h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.reader-aside ol { list-style: none; margin: 0 0 24px; padding: 0; }
.reader-aside a { display: flex; align-items: center; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.3; }
.reader-aside a:hover { background: var(--surface); color: var(--ink); }
.reader-aside a[aria-current="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.chapter-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.chapter-tools .btn { min-height: 44px; font-size: .9375rem; padding: 0 18px; }

.book { max-width: 44rem; font-size: 1.125rem; line-height: 1.62; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.book h1 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.1; margin: 10px 0 12px; hyphens: manual; }
.book h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); font-weight: 750; margin: 56px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); hyphens: manual; }
.book h3 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 10px; hyphens: manual; }
.book h4 { font-size: 1.0625rem; font-weight: 700; margin: 24px 0 8px; }
.book p { margin: 0 0 14px; }
.book ul, .book ol { margin: 0 0 14px; padding-left: 1.4em; }
.book li { margin-bottom: 6px; }
.book section { scroll-margin-top: 88px; }
.book [id] { scroll-margin-top: 88px; }
.book a { color: var(--link); }
.book .kicker { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; hyphens: manual; }
.book .subtitle { font-size: 1.1875rem; color: var(--ink-2); margin: 0 0 22px; line-height: 1.45; }
.book .lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.book .cover { padding-top: 0; border-bottom: 0; }
.book p.prereq { font-size: 1rem; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 16px 0 20px; }
.book .toc { font-size: 1rem; background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0 8px; columns: 1; }
@media (min-width: 640px) { .book .toc { columns: 2; column-gap: 28px; } }
.book .toc div { break-inside: avoid; margin-bottom: 4px; }
.book .toc span { color: var(--muted); display: inline-block; min-width: 2.6em; font-variant-numeric: tabular-nums; }
.book .toc a { text-decoration: none; }
.book .small { font-size: .9375rem; color: var(--muted); }
.book .term { font-style: italic; }
.book .en { font-weight: 700; }
.book sup { font-size: 70%; }
.book svg desc { display: none; }

/* boxes */
.book .box, .book .why, .book .numbers, .book .restore, .book .stock-vs-marine, .book .say-to-pro {
  border-left: 4px solid; padding: 14px 18px 8px; margin: 18px 0 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 1.0625rem; }
.book .box p:last-child, .book .box ul:last-child, .book .box ol:last-child { margin-bottom: 6px; }
.book .t { font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; hyphens: manual; }
.book .std { background: var(--b-std-bg); border-color: var(--b-std); } .book .std .t { color: var(--b-std-t); }
.book .field { background: var(--b-field-bg); border-color: var(--b-field); } .book .field .t { color: var(--b-field-t); }
.book .warn { background: var(--b-warn-bg); border-color: var(--b-warn); } .book .warn .t { color: var(--b-warn-t); }
.book .ex { background: var(--b-ex-bg); border-color: var(--b-ex); } .book .ex .t { color: var(--b-ex-t); }
.book .diag { background: var(--b-diag-bg); border-color: var(--b-diag); } .book .diag .t { color: var(--b-diag-t); }
.book .walkaround { background: var(--b-restore-bg); border-color: var(--b-restore); } .book .walkaround .t { color: var(--b-restore-t); }
.book .season { background: var(--b-cond-bg); border-color: #6a6ab0; } .book .season .t { color: var(--b-diag-t); }
.book .why { background: var(--b-why-bg); border-color: var(--b-why); }
.book .why .t { color: var(--b-why-t); }
.book .why .t::before { content: "Почему так"; } .book .why .t:not(:empty)::before { content: "Почему так · "; }
.book .numbers { background: var(--b-num-bg); border-color: var(--b-num); font-variant-numeric: tabular-nums; }
.book .numbers .t { color: var(--b-num-t); }
.book .numbers .t::before { content: "Цифры"; } .book .numbers .t:not(:empty)::before { content: "Цифры · "; }
.book .danger-life { background: var(--b-life-bg); border-left: 6px solid var(--b-red); border-radius: 0; }
.book .danger-life .t { color: var(--b-warn-t); } .book .danger-life .t::before { content: "⚠ "; }
.book .danger-cost { background: var(--b-cost-bg); border-left: 6px solid var(--b-cost); border-radius: 0; }
.book .danger-cost .t { color: var(--b-cost-t); }
.book .rule-gold { border: 2px solid var(--b-copper); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0 24px; background: var(--b-gold-bg); }
.book .rule-gold .t { color: var(--b-gold-t); letter-spacing: .1em; }
.book .rule-gold .t::before { content: "На борту: золотое правило"; }
.book .rule-gold p { font-size: 1.1875rem; font-weight: 700; margin: 0; }
.book .old-boat, .book .offshore, .book .foreign-boat { border: 1.5px solid; border-radius: var(--radius-s); padding: 14px 18px 8px; margin: 18px 0 20px; font-size: 1.0625rem; }
.book .old-boat { border-color: var(--b-old); background: var(--b-old-bg); } .book .old-boat .t { color: var(--b-old-t); } .book .old-boat .t::before { content: "Если лодке 20–40 лет"; }
.book .offshore { border-color: var(--b-off); background: var(--b-off-bg); } .book .offshore .t { color: var(--b-off-t); } .book .offshore .t::before { content: "В автономке"; }
.book .foreign-boat { border-color: var(--b-for); background: var(--b-for-bg); } .book .foreign-boat .t { color: var(--b-for-t); } .book .foreign-boat .t::before { content: "На чужой лодке"; }
.book .stock-vs-marine { border-color: #888; background: var(--b-svm-bg); }
.book .stock-vs-marine .t { color: var(--muted); }
.book .stock-vs-marine .t::before { content: "Обычное или морское?"; } .book .stock-vs-marine .t:not(:empty)::before { content: "Обычное или морское? · "; }
.book .stock-vs-marine .verdict { font-weight: 700; color: var(--b-navy); margin-top: 6px; }
.book .stock-vs-marine .verdict::before { content: "Вывод: "; }
.book .seems-check-solves { display: grid; grid-template-columns: 1fr; border: 1px solid var(--rule); border-radius: var(--radius-s); margin: 18px 0 20px; font-size: 1.0625rem; }
@media (min-width: 760px) { .book .seems-check-solves { grid-template-columns: repeat(3, 1fr); } .book .seems-check-solves > div + div { border-left: 1px solid var(--rule); border-top: 0 !important; } }
.book .seems-check-solves > div { padding: 14px 16px; }
.book .seems-check-solves > div + div { border-top: 1px solid var(--rule); }
.book .seems .t { color: var(--b-cost-t); } .book .seems .t::before { content: "Кажется решением"; }
.book .check .t { color: var(--b-off-t); } .book .check .t::before { content: "Что выяснить до покупки"; }
.book .solves .t { color: var(--b-field-t); } .book .solves .t::before { content: "Что решает задачу"; }
.book .self-or-pro { border: 1px solid var(--rule); border-radius: var(--radius-s); margin: 18px 0 20px; font-size: 1.0625rem; overflow: hidden; }
.book .self-or-pro .t { color: var(--muted); padding: 12px 18px 6px; margin: 0; }
.book .self-or-pro .t::before { content: "Сам или мастер"; } .book .self-or-pro .t:not(:empty)::before { content: "Сам или мастер · "; }
.book .self-or-pro .lvl { padding: 12px 18px 8px 20px; border-top: 1px solid var(--rule); border-left: 7px solid; }
.book .self-or-pro .lvl b.l { text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; }
.book .lvl-stop { border-left-color: var(--b-red); background: var(--b-stop-bg); } .book .lvl-stop b.l { color: var(--b-warn-t); } .book .lvl-stop b.l::before { content: "СТОП · "; }
.book .lvl-pro { border-left-color: var(--b-cost); background: var(--b-lpro-bg); } .book .lvl-pro b.l { color: var(--b-cost-t); } .book .lvl-pro b.l::before { content: "Мастер · "; }
.book .lvl-cond { border-left-color: var(--b-std); background: var(--b-cond-bg); } .book .lvl-cond b.l { color: var(--b-std-t); } .book .lvl-cond b.l::before { content: "Сам при условии · "; }
.book .lvl-self { border-left-color: var(--b-field); background: var(--b-self-bg); } .book .lvl-self b.l { color: var(--b-field-t); } .book .lvl-self b.l::before { content: "Сам · "; }
.book .self-or-pro p { margin: 0 0 8px; }
.book .self-or-pro .now::before { content: "Что сделать в эту минуту: "; font-weight: 700; }
.book .self-or-pro .no-pro::before { content: "Если мастера нет: "; font-weight: 700; }
.book .self-or-pro .pro-may::before { content: "Когда мастер вправе отступить: "; font-weight: 700; }
.book .say-to-pro { border-color: var(--b-navy); background: var(--b-pro-bg); }
.book .say-to-pro .t { color: var(--b-navy); } .book .say-to-pro .t::before { content: "Что сказать мастеру"; }
.book .what-changed { border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-s); padding: 12px 18px; margin: 18px 0; font-size: 1.0625rem; background: var(--surface); }
.book .what-changed .t { color: var(--muted); } .book .what-changed .t::before { content: "Что изменилось перед проблемой?"; }
.book ol.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 14px 0 18px; }
.book ol.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 12px; }
.book ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--b-navy); color: var(--bg);
  font-weight: 700; font-size: .9375rem; text-align: center; line-height: 30px; }
.book ol.steps > li .see { display: block; font-size: .9375rem; color: var(--muted); margin-top: 4px; }
.book ol.steps > li .see::before { content: "Вы увидите: "; }
.book .restore { border-color: var(--b-restore); background: var(--b-restore-bg); }
.book .restore .t { color: var(--b-restore-t); } .book .restore .t::before { content: "Вернуть лодку в рабочее состояние"; }
.book table.meaning-table td:first-child { font-style: italic; }
.book table.meaning-table td:last-child { font-weight: 700; }
.book p.note { font-size: .9375rem; color: var(--muted); border-left: 2px solid var(--rule); padding: 2px 0 2px 12px; margin: 10px 0; }
.book a.xref { text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
.book a.xref.ext { color: var(--link); }
.book .xref.pending { position: relative; color: inherit; text-decoration: underline dotted var(--rule-strong); text-underline-offset: .2em; }
.book a.site { color: var(--link); }
.book .tag { font-size: .8125rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; white-space: nowrap; vertical-align: 1px; hyphens: manual; }
.book .abyc { background: var(--tag-abyc-bg); color: var(--tag-abyc); } .book .cfr { background: var(--tag-cfr-bg); color: var(--tag-cfr); }
.book .ver { background: var(--tag-ver-bg); color: var(--tag-ver); } .book .pr { background: var(--tag-pr-bg); color: var(--tag-pr); }
.book .iso { background: var(--tag-iso-bg); color: var(--tag-iso); } .book .mfr { background: var(--tag-mfr-bg); color: var(--tag-mfr); }
.book .tag.margin { float: right; margin: 2px 0 4px 10px; }

/* tables scroll inside themselves, never the page */
.book .table-scroll { position: relative; overflow-x: auto; margin: 16px 0 20px; border-radius: var(--radius-s); -webkit-overflow-scrolling: touch; }
.book .table-scroll:focus-visible { outline-offset: 2px; }
.book table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.45; hyphens: manual; min-width: 34rem; }
.book table.meaning-table, .book .legend-table { min-width: 0; }
.book th, .book td { border-bottom: 1px solid var(--rule); padding: 8px 10px; vertical-align: top; text-align: left; }
.book th { background: var(--b-th); font-weight: 700; border-bottom: 2px solid var(--rule-strong); }
.book td.n, .book th.n { text-align: right; font-variant-numeric: tabular-nums; }
.book caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 8px; font-size: .9375rem; }
.book figure { margin: 24px 0 28px; }
/* The kit's diagrams are drawn for white paper (red +, black −, green bonding);
   in dark mode they keep their own white sheet rather than being recoloured. */
.book figure svg { display: block; width: 100%; height: auto; background: #fff; border-radius: var(--radius-s); color-scheme: light; }
.book figure.anatomy { border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 10px; }
.book figcaption { font-size: .9375rem; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.book figcaption b { color: var(--ink); }
.book .passport { border: 2px solid var(--b-navy); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.book .passport .t { color: var(--b-navy); font-size: .875rem; }
.book .passport-field { display: grid; grid-template-columns: 1fr; gap: 4px; border-bottom: 1px solid var(--rule); padding: 10px 0; font-size: 1rem; }
@media (min-width: 640px) { .book .passport-field { grid-template-columns: 38% 1fr; gap: 12px; } }
.book .passport-field .l { font-weight: 700; }
.book .passport-field .v { min-height: 24px; border-bottom: 1px dotted var(--rule-strong); }
.book .passport-field .unknown { font-size: .9375rem; color: var(--muted); }
.book .passport-field .unknown::before { content: "☐ не знаю  "; }
.book .keep { break-inside: avoid; }
.book .cols2 { columns: 1; }
@media (min-width: 760px) { .book .cols2 { columns: 2; column-gap: 28px; } }
.book .check li { list-style: none; position: relative; padding-left: 26px; }
.book .check li::before { content: "☐"; position: absolute; left: 0; top: 0; color: var(--muted); }
.book .gloss dt { font-weight: 700; margin-top: 12px; }
.book .gloss dd { margin: 2px 0 6px; }
.book .src { font-size: .9375rem; line-height: 1.5; hyphens: manual; }
.book .src li { margin-bottom: 6px; overflow-wrap: anywhere; }
.book .keyfacts { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; background: var(--surface); }
.book .keyfacts .t { color: var(--muted); }
.book .keyfacts ul { margin-bottom: 0; }
.book .sig { font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.book .sig-life { color: var(--b-warn-t); } .book .sig-cost { color: var(--b-cost-t); }
.book .legend-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.book .legend-table td { vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.book .pb { break-before: auto; }

/* chapter end: prev / next */
.pager { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 56px 0 0; max-width: 44rem; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
@media (hover: hover) { .pager a:hover { border-color: var(--rule-strong); background: var(--surface); } }
.pager small { color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pager .next { text-align: right; }
.pager span { font-weight: 600; line-height: 1.35; }
.after-chapter { margin: 40px 0 0; max-width: 44rem; }

/* book hub */
.book-hero { padding: clamp(40px, 7vw, 96px) 0; }
.book-hero .inner { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .book-hero .inner { grid-template-columns: 1fr minmax(220px, 320px); } }
.book-hero h1 { font-size: clamp(1.9rem, 0.6rem + 7vw, 5rem); font-weight: 900; letter-spacing: -.03em; line-height: .98; text-transform: uppercase; margin: 22px 0 0; }
.book-hero .sub { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--night-ink-2); margin: 18px 0 6px; font-weight: 500; }
.book-hero .scope { color: var(--night-muted); margin: 0 0 28px; }
.book-hero .rule { width: 96px; height: 4px; background: var(--night-copper); margin: 24px 0 0; }
.parts { display: grid; gap: 28px; }
.part h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.part h3 .name { color: var(--ink); }
.part ol { list-style: none; padding: 0; margin: 0; }
.ch-row { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ch-row .no { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.ch-row a { font-weight: 600; color: var(--ink); text-decoration: none; }
.ch-row a:hover { text-decoration: underline; }
.ch-row a::after { content: ""; }
.ch-row .t-plan { color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.pill.open { background: color-mix(in srgb, #1e9e6a 16%, transparent); color: #117a50; }
.pill.soon { background: var(--surface-2); color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.open { color: #7fe0bb; } }
.ch-row .d { grid-column: 2 / 4; color: var(--ink-2); font-size: .9375rem; margin: 0; }

.search { margin: 0 0 8px; max-width: 44rem; }
.search label { display: block; font-weight: 600; margin-bottom: 8px; }
.search input { width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--rule-strong); border-radius: 12px; }
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.search-results { list-style: none; padding: 0; margin: 12px 0 0; }
.search-results li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.search-results li a:hover b { text-decoration: underline; }
.search-results small { display: block; color: var(--muted); font-size: .875rem; }
.search-hint { color: var(--muted); font-size: .9375rem; margin: 10px 0 0; }

.modules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.module { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.module .code { font-weight: 800; color: var(--copper-text); font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: .875rem; }
.module h3 { font-size: 1.125rem; }
.module p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.module .kind { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.module .pill { white-space: normal; min-height: 26px; padding: 3px 10px; line-height: 1.35; }
.module .pill:not(.soon) { border: 1px solid var(--rule); color: var(--ink-2); }
.module:target { border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 30%, transparent); }

/* ---------- motion, contrast, print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .nav a.cta, .menu .sheet a.cta, .pill, .tag { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
  .kicker-line::before, .hero .rule, .book-hero .rule { background: CanvasText; }
  .book .box, .book .why, .book .numbers, .book .restore, .book .say-to-pro, .book .stock-vs-marine, .book .self-or-pro .lvl { border-left-color: CanvasText; }
  .book figure svg { forced-color-adjust: none; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  .masthead, .foot, .reader-aside, .chapter-tools, .pager, .skip, .after-chapter { display: none !important; }
  body { background: #fff; color: #000; }
  .book { max-width: none; font-size: 11pt; }
}

/* «Мне интересно» — one click per module */
.want { margin: 0; }
.btn-want { background: transparent; color: var(--ink); border: 1.5px solid var(--copper); cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; padding: 0 18px; }
@media (hover: hover) { .btn-want:hover { background: color-mix(in srgb, var(--copper) 12%, transparent); } }
.btn-want.is-done, .btn-want:disabled { border-color: var(--rule); color: var(--muted); cursor: default; transform: none; }
.want-note { color: var(--muted); font-size: .9375rem; margin: 12px 0 0; }
.want:target .want-idle { display: none; }
.want:target .want-done { display: inline !important; }
.want.compact { margin-top: 10px; }
.want.compact .btn-want { min-height: 44px; font-size: .9375rem; padding: 0 16px; }
.module-link { color: var(--ink); text-decoration: none; }
.module-link::after { content: ""; position: absolute; inset: 0; }
.module { position: relative; }
.module .want, .module .kind { position: relative; z-index: 1; }
@media (hover: hover) { .module:hover { border-color: var(--rule-strong); } .module:hover .module-link { text-decoration: underline; } }
.want-box h3 { margin-bottom: 12px; }

/* Language switcher: EN · ES · RU, always visible, 44px targets */
.langs { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.langs .lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 0 6px;
  border-radius: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.langs a.lang:hover { color: var(--ink); background: var(--surface); }
.langs .is-current { color: var(--ink); }
.masthead .wrap { gap: 8px; }
.masthead .nav { margin-left: auto; }
@media (max-width: 1080px) { .langs { margin-left: auto; } }
@media (max-width: 760px) { .langs .lang { min-width: 36px; padding: 0 4px; } }
@media (max-width: 440px) { .masthead .langs { display: none; } }
.sheet-langs { display: none; }
@media (max-width: 440px) {
  .menu .sheet .sheet-langs { display: flex; gap: 4px; border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 6px; }
  .menu .sheet .sheet-langs .lang { flex: 1; justify-content: center; min-height: 44px; font-size: .9375rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); display: flex; align-items: center; border-radius: 10px; text-decoration: none; }
  .menu .sheet .sheet-langs .is-current { background: var(--surface-2); color: var(--ink); }
}
@media (max-width: 360px) { .brand .word { letter-spacing: .12em; } }
/* Contents rows on narrow phones: the status pill goes under the title. */
.ch-row { grid-template-columns: 2.4em minmax(0, 1fr) auto; }
@media (max-width: 440px) {
  .ch-row { grid-template-columns: 2em minmax(0, 1fr); row-gap: 6px; }
  .ch-row .pill { grid-column: 2; justify-self: start; }
}
