/* «Сечение» — «Топ-профиль» (top-profile.com). Drawing paper, ink, one signal-orange for dimensions.
   IBM Plex Sans Condensed (display) + IBM Plex Sans (reading) + IBM Plex Mono (sizes), self-hosted, SIL OFL 1.1.
   Fallback faces carry metric overrides so the swap does not move the layout. */
@font-face { font-family: "Plex Cond"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plex-cond-600.woff2) format("woff2"); }
@font-face { font-family: "Plex Cond"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plex-cond-700.woff2) format("woff2"); }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/plex-sans-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/plex-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-400-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* metric-matched fallbacks (measured against Arial / Arial Narrow / Courier New on the site's own text) */
@font-face { font-family: "Plex Sans Fb"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 101.2%; ascent-override: 101.3%; descent-override: 27.2%; line-gap-override: 0%; }
@font-face { font-family: "Plex Cond Fb"; src: local("Arial Narrow Bold"), local("Arial Narrow"), local("Roboto Condensed"); size-adjust: 108.9%; ascent-override: 94.2%; descent-override: 25.3%; line-gap-override: 0%; }
@font-face { font-family: "Plex Mono Fb"; src: local("Courier New"), local("Courier"); size-adjust: 100%; ascent-override: 102.5%; descent-override: 27.5%; line-gap-override: 0%; }

:root {
  --paper: #eef1f1;
  --sheet: #ffffff;
  --ink: #15212b;
  --ink-2: #2c3a44;
  --muted: #4a5a66;
  --line: #c9d1d4;
  --line-2: #e3e8ea;
  --accent: #c2410c;
  --accent-hi: #f59e5b;
  --display: "Plex Cond", "Plex Cond Fb", "Arial Narrow", sans-serif;
  --text: "Plex Sans", "Plex Sans Fb", Arial, sans-serif;
  --mono: "Plex Mono", "Plex Mono Fb", "Courier New", monospace;
  --w: 1200px;
  --m: clamp(16px, 3vw, 32px);
  --gap: clamp(16px, 2vw, 24px);
  --sec: clamp(56px, 7vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { top: 8px; }
.nb { white-space: nowrap; font-family: var(--mono); font-size: 0.92em; }
.lab { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lab--acc { color: var(--accent); }
.dot { color: var(--muted); }

/* drawings */
.drw { display: block; width: 100%; height: auto; color: var(--ink); }
.drw .ln { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: miter; }
.drw .ln2 { fill: none; stroke: currentColor; stroke-width: 1.6; }
.drw .ln3 { fill: none; stroke: #9aa7b0; stroke-width: 5; }
.drw .ln3d { fill: none; stroke: #9aa7b0; stroke-width: 1.5; stroke-dasharray: 4 4; }
.drw .fill { fill: var(--line); }
.drw .acc { fill: var(--accent); }
.drw .dim { fill: none; stroke: var(--accent); stroke-width: 1.3; }
.drw text { font: 500 10px var(--mono); fill: var(--muted); }
.drw .tx { font-size: 11px; }
.mark-ic { width: 40px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); transition: background-color 140ms; }
.btn:hover { background: #a3360a; color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* header */
.bar { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; }
.bar-in { max-width: var(--w); margin: 0 auto; padding: 14px var(--m); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark search" "nav nav"; gap: 10px 24px; align-items: center; }
.mark { grid-area: mark; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 700 1.4rem/1 var(--display); color: var(--ink); }
.sform { grid-area: search; justify-self: end; width: min(100%, 340px); display: flex; align-items: center; background: var(--sheet); border: 1px solid #9aa7b0; height: 44px; padding-left: 12px; }
.sform-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.sform input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 10px; font-size: 0.95rem; }
.sform input:focus-visible { outline: none; }
.sform:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sform button { height: 100%; border: 0; border-left: 1px solid var(--line); background: var(--ink); color: #fff; padding: 0 16px; font-weight: 600; cursor: pointer; }
.sform button:hover { background: var(--accent); }
.nav { grid-area: nav; min-width: 0; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-weight: 600; font-size: 0.98rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.meter { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); }
@media (min-width: 1001px) { html.reading .bar { position: sticky; top: 0; z-index: 20; } }
@media (max-width: 1000px) { html.reading .meter { position: fixed; top: 0; bottom: auto; z-index: 20; } }

/* home: hero + profnastil picker */
.home > section { max-width: var(--w); margin: 0 auto; padding-left: var(--m); padding-right: var(--m); }
.hero { display: flex; flex-wrap: wrap; gap: 40px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 24px; align-items: stretch; }
.hero-txt { flex: 1 1 380px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.hero h1 { font-size: clamp(2.75rem, 1.6rem + 4vw, 4.6rem); line-height: 0.98; }
.hero-say { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-2); max-width: 36ch; margin-top: 20px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; }
.pick { flex: 1.3 1 520px; min-width: 0; margin: 0; background: var(--sheet); border: 1px solid var(--line); padding: 22px clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.pick-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pick-btns { display: flex; gap: 6px; }
html:not(.js) .pick-btns { display: none; }
.pick-btns button { min-height: 44px; min-width: 56px; padding: 0 12px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); font: 500 0.92rem var(--mono); cursor: pointer; }
.pick-btns button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pick-btns button:hover { border-color: var(--accent); }
.pick-svg { display: block; width: 100%; height: auto; }
.pick-svg .grid { fill: url(#tp-grid); }
.pick-svg pattern path { fill: none; stroke: var(--line-2); stroke-width: 1; }
.pick-svg .wave { fill: none; stroke: var(--ink); stroke-width: 4; transition: d 380ms var(--ease); }
.pick-svg .dim { fill: none; stroke: var(--accent); stroke-width: 1.5; transition: d 380ms var(--ease); }
.pick-svg .dim-t { fill: var(--accent); font: 500 15px var(--mono); }
.pick-svg .dim2 { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.pick-svg .dim2-t { fill: var(--muted); font: 400 13px var(--mono); }
.pick-d { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pick-d div { background: var(--sheet); padding: 10px 14px; }
.pick-d dt { font-size: 0.78rem; color: var(--muted); }
.pick-d dd { margin: 0; font: 500 1.25rem/1.3 var(--mono); }
.pick-d dd.w { font: 600 0.95rem/1.3 var(--text); }
.pick-n { font-size: 0.85rem; color: var(--muted); }
.pick-more a { font-weight: 600; }
.pick-more a::after { content: " →"; }

/* home: rubrics */
.rubs { padding-top: var(--sec); }
.rubs h2 { margin-bottom: 24px; }
.rub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.rb { position: relative; background: var(--sheet); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color 140ms; }
.rb:hover { border-color: var(--ink); }
.rb .drw { height: 96px; margin-bottom: 6px; }
.rb h3 { font-size: 1.45rem; }
.rb h3 a { text-decoration: none; }
.rb h3 a::after { content: ""; position: absolute; inset: 0; }
.rb p { font-size: 0.96rem; color: var(--ink-2); }
.rb .rb-c { font: 500 0.8rem var(--mono); color: var(--muted); }
.rb-last { position: relative; z-index: 1; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 0.92rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* home: newest on the ink band */
.home > .fresh { max-width: none; padding: 0; margin-top: var(--sec); background: var(--ink); color: #eef1f1; }
.fresh-in { max-width: var(--w); margin: 0 auto; padding: var(--sec) var(--m); }
.fresh h2 { color: #fff; margin-bottom: 28px; }
.fresh .lab { color: var(--accent-hi); }
.fresh a:hover { color: var(--accent-hi); }
.fresh-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
.fr-big { display: flex; flex-direction: column; gap: 12px; }
.fr-pic img { width: 100%; }
.fr-big h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: #fff; }
.fr-big h3 a { text-decoration: none; }
.fr-x { color: #c9d3d8; }
.fr-list { list-style: none; display: flex; flex-direction: column; }
.fr-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #2f3e4a; text-decoration: none; color: #fff; }
.fr-list li:first-child .fr-row { border-top: 0; padding-top: 0; }
.fr-th { width: 104px; flex: none; }
.fr-th img { width: 104px; height: 78px; object-fit: cover; }
.fr-tx { display: flex; flex-direction: column; gap: 4px; }
.fr-t { font-weight: 600; line-height: 1.3; }
.noimg { display: block; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 12px); }

/* home: calculator */
.calc { padding-top: var(--sec); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.calc-txt { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.calc-txt h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); }
.calc-txt p:last-child { max-width: 44ch; color: var(--ink-2); }
.calc-box { flex: 1.25 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.calc-f { background: var(--sheet); border: 1px solid var(--line); padding: clamp(16px, 2.4vw, 28px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.calc-svg { width: 180px; height: 144px; flex: none; }
.calc-svg .o { fill: var(--line); stroke: var(--ink); stroke-width: 2; }
.calc-svg .i { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.calc-in { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; }
.calc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.calc-row input { height: 48px; width: 100%; border: 1px solid #9aa7b0; background: var(--sheet); padding: 0 10px; font: 500 1.15rem var(--mono); color: var(--ink); }
.calc-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.calc-out { border-top: 2px solid var(--ink); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; font: 500 2.1rem/1.1 var(--mono); }
.calc-6 { font: 400 0.98rem var(--text); color: var(--ink-2); }
.calc-err { color: var(--accent); font-size: 0.92rem; }
.pipes caption { text-align: left; padding: 10px 14px; font-weight: 600; background: var(--sheet); border-bottom: 1px solid var(--line); }

/* tables (home + article) */
.tw { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.tw table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.grades .tw table { min-width: 640px; }
.tw th, .tw td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.tw thead th { background: var(--ink); color: #fff; font-weight: 600; border-top: 0; }
.tw tbody th { font-weight: 600; }
.tw tbody tr:hover td, .tw tbody tr:hover th { background: #f6f8f8; }
.grades { padding-top: var(--sec); padding-bottom: var(--sec); }
.grades h2 { margin-bottom: 20px; }
.grades-n { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); max-width: 80ch; }

/* listings */
.lst-head { max-width: var(--w); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--m) 28px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; }
.lst-txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.lst-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.lst-pg { color: var(--muted); font-size: 0.6em; }
.lst-line { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.lst-count { font: 500 0.82rem var(--mono); color: var(--muted); }
.lst-drw { flex: 1 1 360px; max-width: 520px; background: var(--sheet); border: 1px solid var(--line); padding: 16px 20px; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 20px 20px; }
.drw--big text { font-size: 9px; }
.lst-search { width: min(100%, 520px); margin-top: 8px; }
.lst-search .sform { width: 100%; }
.lst { max-width: var(--w); margin: 0 auto; padding: 8px var(--m) var(--sec); }
.lst-sub { margin-bottom: 20px; font-size: 1.6rem; }
.lst-empty { background: var(--sheet); border: 1px solid var(--line); padding: 24px; max-width: 70ch; }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 24px; }
.cd { display: flex; flex-direction: column; gap: 8px; }
.cd-pic { display: block; background: var(--sheet); margin-bottom: 4px; }
.cd-pic img { width: 100%; }
.cd-t { font-size: 1.35rem; line-height: 1.15; }
.cd-t a { text-decoration: none; }
.cd-x { font-size: 0.96rem; color: var(--ink-2); }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--sheet); text-decoration: none; font-family: var(--mono); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* article */
.art { padding-bottom: var(--sec); }
.art-head { max-width: calc(760px + var(--m) * 2); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--m) 24px; display: flex; flex-direction: column; gap: 14px; }
.art-head--toc, .art-fig--toc { max-width: calc(1040px + var(--m) * 2); padding-left: calc(var(--m) + 288px); }
.art-head--toc > *, .art-fig--toc > * { max-width: 760px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.9rem; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--muted); }
.crumbs a { display: inline-flex; min-height: 32px; align-items: center; }
.art-drw { width: 120px; height: 60px; }
.art-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.04; }
.meta { font-size: 0.9rem; color: var(--muted); }
.meta a { color: var(--ink); }
.art-lead { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 16px; }
.art-fig { max-width: calc(760px + var(--m) * 2); margin: 8px auto 0; padding: 0 var(--m); }
.art-img { width: 100%; height: auto; }
.art-fig figcaption, .prose figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.art-grid { max-width: calc(1040px + var(--m) * 2); margin: 0 auto; padding: 32px var(--m) 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.art-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: calc(720px + var(--m) * 2); }
.toc { position: sticky; top: 112px; font-size: 0.92rem; max-height: calc(100vh - 128px); overflow-y: auto; }
.toc summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--accent); }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2rem); margin-top: 1.9em; scroll-margin-top: 120px; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { font-family: var(--mono); color: var(--accent); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }
.prose strong { font-weight: 600; }
.prose figure { margin: 1.6em 0; }
.prose img { height: auto; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; min-width: 520px; }
.prose .tw { margin: 0; }
.prose .tw th, .prose .tw td { padding: 10px 14px; }

/* mu-plugin blocks restyled (the mu prints its own <style> later in <body>, hence the .prose prefix / !important on #prc-l) */
.prose .pr-data { margin: 1.6em 0; padding: 0; border: 0; border-radius: 0; background: none; }
.prose .pr-data figcaption { margin: 0 0 10px; color: var(--ink); font: 600 1.1rem/1.25 var(--display); }
.prose .pr-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prose .pr-stats li { margin: 0; background: var(--sheet); padding: 12px 14px; font-size: 0.9rem; line-height: 1.35; color: var(--ink-2); }
.prose .pr-stats li::marker { content: none; }
.prose .pr-stats b { display: block; font: 500 1.3rem/1.2 var(--mono); color: var(--ink); margin-bottom: 4px; }
.prose .pr-faq { margin-top: 0.8em; }
.prose .pr-faq__item { background: var(--sheet); border: 1px solid var(--line); border-radius: 0; margin-top: -1px; }
.prose .pr-faq__item summary { list-style: none; cursor: pointer; min-height: 56px; padding: 15px 48px 15px 18px; position: relative; font-weight: 600; line-height: 1.35; }
.prose .pr-faq__item summary::-webkit-details-marker { display: none; }
.prose .pr-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 500 1.4rem var(--mono); color: var(--accent); }
.prose .pr-faq__item[open] summary::after { content: "−"; }
.prose .pr-faq__a { padding: 0 18px 16px; color: var(--ink-2); }
.prose .pr-sources { margin-top: 2.4em; font-size: 0.92rem; color: var(--muted); }
.prose .pr-sources h2 { font-size: 1.25rem; color: var(--ink); margin-top: 0; }
.prose .pr-sources ul { margin-top: 8px; }
.prose .pr-editorial { margin-top: 2.4em; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 0; font-size: 0.95rem; line-height: 1.5; display: grid; gap: 2px; }
.prose .pr-editorial__label { display: block; text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.prose .pr-editorial__name { font-weight: 600; color: var(--ink); }
.prose .pr-editorial__note { margin-top: 4px; color: var(--muted); }
.prose .pr-deep { margin-top: 3em; padding-top: 0; border-top: 0; }
.prose .pr-deep-h { font: 700 1.6rem/1.1 var(--display); margin: 0 0 16px; }
.prose .pr-deep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prose .pr-deep-card { border: 1px solid var(--line); border-radius: 0; background: var(--sheet); text-decoration: none; display: grid; gap: 0; align-content: start; }
.prose .pr-deep-card:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.prose .pr-deep-thumb { aspect-ratio: 300 / 197; background-size: cover; background-position: center; }
.prose .pr-deep-title { padding: 10px 12px 12px; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.pressroom-reads, .pressroom-reads-card { color: var(--muted) !important; font-size: 0.88rem !important; }
.pr-updated { color: var(--muted); font-size: 0.92rem; }
body #prc-l { position: static !important; width: 100% !important; margin: 0 !important; padding: 14px var(--m) calc(env(safe-area-inset-bottom, 0px) + 14px) !important; border-radius: 0 !important; background: #dfe4e5 !important; color: var(--ink) !important; opacity: 1 !important; text-align: left !important; font: 400 0.88rem/1.4 var(--text) !important; text-decoration: underline; text-underline-offset: 0.22em; box-shadow: none !important; }
body #prc-l:hover { color: var(--accent) !important; }

.adj { max-width: calc(1040px + var(--m) * 2); margin: var(--sec) auto 0; padding: 0 var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adj a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--line); text-decoration: none; height: 100%; }
.adj a:hover { border-color: var(--ink); color: var(--ink); }
.adj-n a { text-align: right; }
.adj-l { font: 500 0.75rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.adj-t { font-weight: 600; line-height: 1.3; }
.more { max-width: calc(1040px + var(--m) * 2); margin: var(--sec) auto 0; padding: 0 var(--m); }
.more h2 { margin-bottom: 24px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.mr-all { margin-top: 24px; font-weight: 600; }
.pg .prose { max-width: 72ch; }


/* tools: cards */
.home > .tools { padding-top: var(--sec); }
.tools h2 { margin-bottom: 20px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tl { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 16px 18px 18px; background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--accent); text-decoration: none; color: var(--ink); }
.tl:hover { border-color: var(--ink); border-top-color: var(--accent); color: var(--ink); }
.tl-t { font: 700 1.2rem/1.15 var(--display); }
.tl-t::after { content: " →"; color: var(--accent); }
.tl-x { font-size: 0.92rem; color: var(--ink-2); line-height: 1.4; }
.art-tool { max-width: calc(720px + var(--m) * 2); margin: 40px auto 0; padding: 0 var(--m); display: flex; flex-direction: column; gap: 8px; }
.art-grid:not(.art-grid--solo) + .art-tool { max-width: calc(1040px + var(--m) * 2); padding-left: calc(var(--m) + 288px); }
.lst-tool { margin-top: 4px; }

/* tools: forms */
.tool-wrap { max-width: calc(1040px + var(--m) * 2); margin: 8px auto 0; padding: 0 var(--m); }
.tool { background: var(--sheet); border: 1px solid var(--line); padding: clamp(16px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.tool-row > label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.tool-row > label[hidden], .seg[hidden] { display: none; }
.tool input[type=number] { height: 48px; width: 100%; border: 1px solid #9aa7b0; background: var(--sheet); padding: 0 12px; font: 500 1.15rem var(--mono); color: var(--ink); }
.tool input[type=number]:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg legend { width: 100%; padding: 0 0 6px; font-size: 0.88rem; color: var(--muted); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--sheet); font: 500 0.95rem var(--mono); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg label:hover span { border-color: var(--accent); }
.tool-go { display: flex; }
html.js .tool-go { display: none; }
.res { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.res-big { font: 500 1.2rem/1.2 var(--mono); }
.res-big b { font-size: 2.6rem; font-weight: 500; margin-right: 6px; }
.res-d { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.res-d div { background: var(--sheet); padding: 10px 14px; }
.res-d dt { font-size: 0.8rem; color: var(--muted); }
.res-d dd { margin: 0; font: 500 1.2rem/1.3 var(--mono); }
.res-how { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; color: var(--ink-2); max-width: 75ch; }
.res-n { font-size: 0.88rem; color: var(--muted); max-width: 80ch; }
.res-err { color: var(--accent); }
.res-t { min-width: 560px; }
.res-t td b { font: 500 1.1rem var(--mono); }
.res-sub { font-size: 0.82rem; color: var(--muted); }

/* window comparison */
.win-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.win { border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--sheet); }
.win[hidden] { display: none; }
.win h3 { font-size: 1.5rem; }
.win-svg { height: 140px; }
.win-d { margin: 0; display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.win-d div { display: flex; justify-content: space-between; gap: 12px; background: var(--sheet); padding: 8px 10px; }
.win-d dt { font-size: 0.85rem; color: var(--muted); }
.win-d dd { margin: 0; font: 500 0.98rem var(--mono); text-align: right; }
.win-fit { font-size: 0.95rem; color: var(--ink-2); }

/* search by size */
.sform--big { width: 100%; height: 56px; }
.sform--big input { font-size: 1.1rem; }
.ex-h { font-size: 0.9rem; color: var(--muted); }
.ex { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ex a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); font: 500 0.95rem var(--mono); text-decoration: none; }
.ex a:hover { border-color: var(--ink); }
.size-p { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.size-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.size-c { background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.size-c h3 { font-size: 1.5rem; }
.size-c .tw table { min-width: 0; }
.size-d { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.size-d div { background: var(--sheet); padding: 8px 10px; }
.size-d dt { font-size: 0.8rem; color: var(--muted); }
.size-d dd { margin: 0; font: 500 1rem var(--mono); }
.size-n { font-size: 0.85rem; color: var(--muted); }
.size-l { font-weight: 600; }
.size-l a { display: inline-block; padding: 6px 0; }

/* suggestions under any search box */
.sform { position: relative; }
.sugg { position: absolute; left: -1px; right: -1px; top: 100%; z-index: 30; list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--ink); box-shadow: 0 8px 24px rgba(21, 33, 43, 0.14); }
.sugg[hidden] { display: none; }
.sugg a { display: flex; flex-direction: column; gap: 2px; min-height: 48px; justify-content: center; padding: 8px 14px; text-decoration: none; border-top: 1px solid var(--line-2); }
.sugg li:first-child a { border-top: 0; }
.sugg a:hover, .sugg a[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.sugg b { font-weight: 600; }
.sugg span { font-size: 0.82rem; color: var(--muted); }
.toolpg .art-head { max-width: calc(1040px + var(--m) * 2); }
.toolpg .art-head > * { max-width: 760px; }
.toolpg .art-grid--solo { max-width: calc(1040px + var(--m) * 2); }

/* footer */
.foot { background: var(--ink); color: #c9d3d8; font-size: 0.94rem; }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 48px var(--m) 24px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--accent-hi); }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.foot li a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-about p + p { margin-top: 10px; }
.ft { display: flex; align-items: center; gap: 8px; color: #fff; font: 700 1.1rem/1.2 var(--display); margin-bottom: 10px !important; }
.ft .mark-ic { width: 32px; height: 18px; }
.legal { max-width: var(--w); margin: 0 auto; padding: 18px var(--m) 32px; border-top: 1px solid #2f3e4a; font-size: 0.88rem; }

@media (max-width: 1000px) {
  .art-head--toc, .art-fig--toc { max-width: calc(760px + var(--m) * 2); padding-left: var(--m); }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: calc(720px + var(--m) * 2); }
  .toc { position: static; background: var(--sheet); border: 1px solid var(--line); padding: 0 16px; }
  .toc ol { margin-bottom: 14px; }
  .fresh-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .art-grid:not(.art-grid--solo) + .art-tool { max-width: calc(720px + var(--m) * 2); padding-left: var(--m); }
  .prose .pr-deep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .nav ul { gap: 0 16px; }
  .nav a { font-size: 0.94rem; }
  .bar-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mark" "search" "nav"; gap: 8px; }
  .sform { justify-self: stretch; width: 100%; }
  .hero { gap: 28px; }
  .hero-act .btn { flex: 1 1 auto; justify-content: center; }
  .calc-svg { width: 120px; height: 96px; }
  .calc-out { font-size: 1.7rem; }
  .adj { grid-template-columns: 1fr; }
  .adj-n a { text-align: left; }
  .foot-in { grid-template-columns: 1fr; }
  .prose .pr-deep-grid { grid-template-columns: minmax(0, 1fr); }
  .art-drw { width: 96px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
