/* Carry's docs. Loaded after style.css and desk.css: same lit paper, same anodised plates, same controls.
   Pages are built by docs/build.mjs from docs/pages/*.html. */
.dx { display: grid; grid-template-columns: 252px minmax(0, 1fr) 208px; column-gap: clamp(32px, 4.4vw, 72px); align-items: start; max-width: 1560px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- side menu ---------- */
.dx-side { position: sticky; top: 68px; max-height: calc(100dvh - 68px); overflow-y: auto; padding-block: 34px 48px; scrollbar-width: thin; scrollbar-color: #8ae3f533 transparent; }
.dx-menu > summary { display: none; }
.dx-find { position: relative; }
.dx-find .well { width: 100%; height: 44px; font: 400 15px var(--sans); }
.dx-find .well::-webkit-search-cancel-button { display: none; }
.dx-hits { position: absolute; z-index: 20; left: 0; right: -120px; top: 52px; max-height: min(460px, 60dvh); overflow-y: auto; padding: 8px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0c333df7 0%, #06242df7 100%); box-shadow: inset 0 1px 0 #8ae3f540, 0 30px 60px -20px #000000d9; }
.dx-hits[hidden] { display: none; }
.dx-hits a { display: block; padding: 10px 12px; border-radius: 12px; transition: background-color 160ms ease; }
.dx-hits a b { display: block; font-weight: 500; font-size: 15px; }
.dx-hits a span { display: block; font-size: 13px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-hits a.is-on, .dx-hits a:hover { background: #8ae3f51a; }
.dx-hits .none { padding: 10px 12px; font-size: 14px; color: var(--fg-3); }
.dx-nav { margin-top: 26px; }
.dx-group + .dx-group { margin-top: 26px; }
.dx-group p { font-size: 13px; color: var(--fg-3); }
.dx-group ul { margin-top: 8px; }
.dx-group a { display: block; padding: 7px 0 7px 16px; border-left: 1px solid var(--line); font-size: 15.5px; color: var(--fg-2); transition: color 180ms ease, border-color 180ms ease; }
.dx-group a.is-on { color: var(--fg); border-left-color: var(--ice); }
@media (hover: hover) and (pointer: fine) { .dx-group a:hover { color: var(--fg); } }

/* ---------- the page ---------- */
.dx-main { min-width: 0; padding-block: 44px 72px; }
.dx-main article { max-width: 780px; }
.dx-crumb { display: flex; gap: 8px; font-size: 14px; color: var(--fg-3); }
.dx-crumb a { color: var(--fg-2); transition: color 180ms ease; }
.dx-crumb a:hover { color: var(--fg); }
.docs h1 { margin-top: 14px; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.035em; }
.dx-lede { margin-top: 18px; max-width: 30em; font-size: clamp(18px, 1.5vw, 22px); font-weight: 300; line-height: 1.45; color: var(--fg-1); text-wrap: pretty; }
article h2 { margin-top: 68px; padding-top: 26px; border-top: 1px solid var(--engr-line); box-shadow: inset 0 1px 0 #8ae3f51c; font-size: clamp(27px, 2.5vw, 34px); font-weight: 300; line-height: 1.12; letter-spacing: -0.028em; scroll-margin-top: 84px; text-wrap: balance; }
article h3 { margin-top: 36px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; scroll-margin-top: 96px; }
article p, article li { font-size: 17px; line-height: 1.65; color: var(--fg-1); }
article p { margin-top: 16px; max-width: 41em; text-wrap: pretty; }
article h2 + p, article h3 + p { margin-top: 12px; }
article b, article strong { font-weight: 500; color: var(--fg); }
article a:not(.btn):not(.dx-row) { color: var(--ice); text-decoration: underline; text-decoration-color: #8ae3f566; text-underline-offset: 3px; transition: text-decoration-color 180ms ease, color 180ms ease; }
article a:not(.btn):not(.dx-row):hover { color: var(--ice-2); text-decoration-color: currentColor; }
article ul.list, article ol.list { margin-top: 14px; max-width: 41em; }
article .list li { position: relative; padding-left: 24px; margin-top: 8px; }
article ul.list li::before { content: ""; position: absolute; left: 2px; top: 0.74em; width: 10px; height: 2px; border-radius: 1px; background: var(--ice); }
article ol.list { counter-reset: n; }
article ol.list li { counter-increment: n; padding-left: 40px; margin-top: 12px; }
article ol.list li::before { content: counter(n); position: absolute; left: 0; top: 0.12em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(160deg, #0d3a45, #03191d); box-shadow: inset 0 1px 0 #8ae3f54d; color: var(--ice); font-size: 12.5px; font-weight: 600; }
article code { font: 400 0.86em var(--mono); padding: 2px 7px; border-radius: 7px; background: var(--well); color: var(--fg); white-space: nowrap; }
article pre { margin-top: 20px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--well); box-shadow: var(--well-in); overflow-x: auto; }
article pre code { padding: 0; background: none; font-size: 13px; line-height: 1.7; white-space: pre; color: var(--fg-1); }
article pre code i { font-style: normal; color: var(--fg-3); }
article pre code b { font-weight: 400; color: var(--ice); }

.note { margin-top: 26px; padding: 2px 0 2px 20px; border-left: 2px solid var(--ice); max-width: 41em; }
.note p { margin-top: 6px; font-size: 16px; }
.note p:first-child { margin-top: 0; }
.note.is-warn { border-left-color: var(--down); }
.eq { margin-top: 22px; padding: 22px 24px; border-radius: 18px; background: var(--well); box-shadow: var(--well-in); border: 1px solid var(--line); font-size: clamp(17px, 1.7vw, 22px); font-weight: 300; letter-spacing: -0.01em; color: var(--fg); overflow-x: auto; white-space: nowrap; }
.eq b { color: var(--ice); font-weight: 400; }
.eq small { display: block; margin-top: 10px; font-size: 14px; color: var(--fg-3); letter-spacing: 0; white-space: normal; }

.dt-wrap { margin-top: 22px; overflow-x: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.dt th { text-align: left; font-weight: 400; font-size: 13.5px; color: var(--fg-3); padding: 0 18px 10px 0; white-space: nowrap; vertical-align: bottom; }
.dt td { padding: 13px 18px 13px 0; border-top: 1px solid var(--line); color: var(--fg-1); vertical-align: top; line-height: 1.5; }
.dt td:first-child { color: var(--fg); font-weight: 500; }
.dt .num, .dt th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt td:last-child, .dt th:last-child { padding-right: 0; }
.dt .yes { color: var(--ice); }
.dt .no { color: var(--down); }
.dt .soon { color: var(--fg-3); }
.dt small { display: block; font-size: 13px; color: var(--fg-3); }

/* ---------- figures: small live scenes made of the desk's own parts ---------- */
.dfig { margin: 30px 0 0; }
.fig-plate { position: relative; padding: clamp(18px, 2.4vw, 30px); border-radius: 26px; border: 1px solid #8ae3f52e; background: radial-gradient(120% 90% at 12% 0%, #8ae3f51f 0%, #8ae3f500 58%), linear-gradient(180deg, #0a2e37d1 0%, #05212ae8 100%), var(--tex-teal) center / cover; box-shadow: inset 0 1px 0 #8ae3f540, 0 50px 90px -60px #000000e6; overflow: hidden; }
.dfig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--fg-3); max-width: 46em; }
.fig-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.fig-head p { margin: 0; font-size: 15px; color: var(--fg-1); }
.fig-head p b { color: var(--fg); }
.dfig .seg { height: 44px; border-radius: 14px; }
.dfig .rows { margin-top: 18px; }
.dfig .rows > div:first-child { border-top: 0; }
.dfig .big { display: block; font-size: clamp(34px, 4vw, 54px); line-height: 1; font-weight: 200; letter-spacing: -0.04em; background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }

.dfig .rows dt { white-space: normal; }
.dfig .key-list li { padding-block: 9px; }
.dfig .key-list li span { padding-right: 14px; }

/* the position: payments in, interest out */
.fp { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.78fr) minmax(0, 1.9fr) minmax(0, 0.78fr) minmax(0, 0.72fr); align-items: center; }
.fp-acct .rows dt, .fp-acct .rows dd { white-space: nowrap; }
.fp-end span { display: block; font-size: 14px; color: var(--fg-2); }
.fp-end b { display: block; margin-top: 6px; font-size: 22px; font-weight: 300; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.fp-end small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }
.fp-end:last-child { text-align: right; }
.fp-pipe { position: relative; padding: 0 14px; text-align: center; }
.fp-pipe b { display: block; font-size: 17px; font-weight: 500; color: var(--ice); font-variant-numeric: tabular-nums; }
.fp-pipe.is-out b { color: var(--down); }
.fp-pipe small { display: block; font-size: 12.5px; color: var(--fg-3); }
.fp-pipe i { position: relative; display: block; height: 2px; margin: 9px 0; border-radius: 1px; background: #8ae3f53d; overflow: hidden; }
.fp-pipe i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; border-radius: 1px; background: linear-gradient(90deg, #8ae3f500, var(--ice)); transform: translateX(-110%); }
.fp-pipe.is-out i { background: #ff9c8a38; }
.fp-pipe.is-out i::after { background: linear-gradient(90deg, #ff9c8a00, var(--down)); }
.is-live .fp-pipe i::after { animation: flow 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.is-live .fp-pipe.is-out i::after { animation-delay: 1.3s; }
@keyframes flow { to { transform: translateX(310%); } }
.fp-acct { padding: 20px 22px 16px; border-radius: 20px; background: #02131780; box-shadow: var(--well-in), 0 0 0 1px #8ae3f51f; }
.fp-acct > p { margin: 0 0 12px; font-size: 14px; color: var(--fg-2); }
.fp-acct .rows { margin-top: 10px; }
.fp-acct .rows > div { font-size: 14px; padding-block: 8px; }

/* price moves cancel */
.hedge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 6px; }
.hedge > div { padding: 4px 22px 0 0; }
.hedge > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hedge span { font-size: 14px; color: var(--fg-2); }
.hedge b { display: block; margin-top: 8px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.hedge small { display: block; margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.hedge .is-same b { background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 22px; font-size: 15px; color: var(--fg-1); }
.slide-row b { min-width: 9.5em; text-align: right; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }

/* the loop */
.stack { display: grid; gap: 12px; }
.stack-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 14px; color: var(--fg-2); }
.stack-bar { display: flex; height: 44px; border-radius: 12px; background: var(--well); box-shadow: var(--well-in); overflow: hidden; }
.stack-bar i { display: flex; align-items: center; min-width: 0; padding-inline: 12px; font-style: normal; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; transition: flex-basis 520ms var(--ease-out), opacity 300ms ease; flex: 0 0 0%; }
.stack-bar .is-own { background: var(--anodised); box-shadow: var(--anodised-edge); color: var(--ink); }
.stack-bar .is-lent { background: linear-gradient(180deg, #1c5a6b 0%, #0f3b47 100%); box-shadow: inset 0 1px 0 #8ae3f559; color: var(--fg); }
.stack-bar .is-short { background: linear-gradient(180deg, #d5e3e7 0%, #8fa9b0 100%); color: var(--ink); }
.stack-bar i[data-empty="1"] { padding: 0; opacity: 0; }

/* this hour */
.hourbar { position: relative; height: 14px; border-radius: 7px; background: var(--well); box-shadow: var(--well-in); }
.hourbar i { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--anodised); box-shadow: var(--anodised-edge); }
.hour-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11px var(--mono); color: var(--fg-3); }
.hour-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.hour-steps li { padding: 0 20px 0 0; }
.hour-steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hour-steps time { font: 400 12px var(--mono); color: var(--ice); }
.hour-steps b { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--fg); }
.hour-steps p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }

/* the resize band */
.band { position: relative; height: 92px; margin: 30px 6px 0; }
.band-track { position: absolute; left: 0; right: 0; top: 40px; height: 12px; border-radius: 6px; background: var(--well); box-shadow: var(--well-in); }
.band-ok { position: absolute; top: 40px; height: 12px; background: linear-gradient(180deg, #1c5a6b 0%, #0f3b47 100%); box-shadow: inset 0 1px 0 #8ae3f559; }
.band-mark { position: absolute; top: 30px; width: 2px; height: 32px; margin-left: -1px; border-radius: 1px; background: var(--fg); opacity: 0.8; }
.band-mark span { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; text-align: center; }
.band-mark span b { display: block; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.band-pin { position: absolute; top: 0; margin-left: -1px; width: 2px; height: 52px; border-radius: 1px; background: var(--ice); transition: left 600ms var(--ease-out); }
.band-pin span { position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; background: var(--anodised); box-shadow: var(--anodised-edge); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.band-pin::after { content: ""; position: absolute; left: -5px; top: 40px; width: 12px; height: 12px; border-radius: 50%; background: var(--anodised); box-shadow: var(--anodised-edge), 0 0 18px #8ae3f5a6; }
.band-wrap { padding-top: 34px; }

/* how often hours pay */
.hist { display: flex; align-items: flex-end; gap: 4px; height: 170px; }
.hist i { flex: 1; min-width: 0; min-height: 2px; border-radius: 3px 3px 1px 1px; background: var(--anodised); box-shadow: var(--anodised-edge); }
.hist i.is-neg { background: linear-gradient(160deg, #ffc2b6, #ff9c8a 50%, #e97e6b); box-shadow: none; }
.hist-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11px var(--mono); color: var(--fg-3); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--line); }
.trio > div { padding: 16px 18px 0 0; }
.trio > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.trio span { font-size: 13.5px; color: var(--fg-2); }
.trio b { display: block; margin-top: 6px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.trio small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--fg-3); }

/* the record table inside a plate */
.dfig .dt td, .dfig .dt th { padding-right: 14px; }
.dfig .dt td { font-size: 15px; padding-block: 11px; }
.dfig .dt td:first-child { font-size: 18px; font-weight: 400; }

/* how the pieces fit */
.arch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.arch-box { padding: 16px 18px 18px; border-radius: 18px; background: #02131780; box-shadow: var(--well-in), 0 0 0 1px #8ae3f51f; }
.arch-box.is-you { background: linear-gradient(180deg, #8ae3f52e, #8ae3f514); box-shadow: inset 0 1px 0 #8ae3f566, 0 0 0 1px #8ae3f54d; }
.arch-box.is-soon { box-shadow: 0 0 0 1px #8ae3f51f; background: none; outline: 1px dashed var(--line-2); outline-offset: -1px; }
.arch-box span { font-size: 12.5px; color: var(--fg-3); }
.arch-box b { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; color: var(--fg); }
.arch-box p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); max-width: none; }
.arch-box code { font-size: 12px; }
.arch-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; font-size: 13px; color: var(--fg-2); text-align: center; }
.arch-links span { position: relative; padding-block: 8px; }
.arch-links span::before, .arch-links span::after { content: ""; position: absolute; left: 50%; width: 1px; height: 8px; background: var(--line-2); }
.arch-links span::before { top: -3px; }
.arch-links span::after { bottom: -3px; }

/* screens */
.shot { margin: 30px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid #8ae3f52e; box-shadow: 0 50px 90px -50px #000000; }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--fg-3); }

/* brand kit */
.brand-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.brand-tile { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px #8ae3f52e; transition: transform 220ms var(--ease-out), box-shadow 220ms ease; text-decoration: none !important; }
.brand-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 22%; }
.brand-tile.is-teal img { background: #03191d var(--tex-paper) center / cover; }
.brand-tile.is-ice img { background: #8ae3f5 var(--tex-ice) center / cover; }
.brand-tile.is-photo img { padding: 0; object-fit: cover; }
.brand-tile span { padding: 12px 14px; font-size: 14px; color: var(--fg-1); background: #02131799; }
@media (hover: hover) and (pointer: fine) { .brand-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ice), 0 24px 40px -24px #8ae3f580; } }
.brand-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.swatch i { display: block; aspect-ratio: 1.25; border-radius: 16px; background: var(--c); box-shadow: inset 0 1px 0 #ffffff3d, inset 0 0 0 1px #8ae3f52e; }
.swatch b { display: block; margin-top: 12px; font-size: 15.5px; font-weight: 500; color: var(--fg); }
.swatch code { display: inline-block; margin-top: 4px; padding: 0; background: none; font-size: 12.5px; color: var(--fg-2); }
.swatch span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--fg-3); }
@media (max-width: 900px) { .brand-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the first page */
.dx-hero { position: relative; margin-top: 30px; height: clamp(220px, 28vw, 330px); border-radius: 28px; overflow: hidden; border: 1px solid #8ae3f52e; box-shadow: 0 50px 90px -60px #000000e6; }
.dx-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 54%; display: block; }
.dx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #03191de6 0%, #03191d99 34%, #03191d00 62%); }
.dx-hero div { position: absolute; z-index: 1; left: clamp(20px, 3vw, 36px); bottom: clamp(18px, 2.6vw, 30px); max-width: 16em; }
.dx-hero span { font-size: 14px; color: var(--fg-1); }
.dx-hero b { display: block; margin-top: 4px; font-size: clamp(30px, 4vw, 52px); line-height: 1; font-weight: 200; letter-spacing: -0.04em; background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.dx-rows { margin-top: 20px; border-top: 1px solid var(--line); }
.dx-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) 20px; gap: 20px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); transition: color 180ms ease, padding 260ms var(--ease-out); }
.dx-row b { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; color: var(--fg); }
.dx-row span { font-size: 15.5px; line-height: 1.5; }
.dx-row svg { align-self: center; color: var(--fg-3); transition: transform 220ms var(--ease-out), color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .dx-row:hover svg { transform: translateX(4px); color: var(--ice); } .dx-row:hover b { color: var(--ice); } }

/* ---------- around the page ---------- */
.dx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; margin-top: 72px; }
.dx-pn a { display: block; padding-top: 18px; border-top: 1px solid var(--engr-line); box-shadow: inset 0 1px 0 #8ae3f51c; }
.dx-pn span { display: block; font-size: 13.5px; color: var(--fg-3); }
.dx-pn b { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 20px; font-weight: 400; letter-spacing: -0.01em; transition: color 180ms ease; }
.dx-pn svg { transition: transform 220ms var(--ease-out); }
.dx-next { text-align: right; }
@media (hover: hover) and (pointer: fine) { .dx-pn a:hover b { color: var(--ice); } .dx-next:hover svg { transform: translateX(4px); } }
.dx-foot { margin-top: 40px; max-width: 780px; font-size: 13.5px; line-height: 1.6; color: var(--fg-3); }
.dx-toc { position: sticky; top: 68px; padding-block: 52px 40px; max-height: calc(100dvh - 68px); overflow-y: auto; }
.dx-toc p { font-size: 13px; color: var(--fg-3); }
.dx-toc ul { margin-top: 10px; }
.dx-toc a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--fg-2); transition: color 180ms ease, border-color 180ms ease; }
.dx-toc a.is-on { color: var(--fg); border-left-color: var(--ice); }
@media (hover: hover) and (pointer: fine) { .dx-toc a:hover { color: var(--fg); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1240px) {
  .dx { grid-template-columns: 236px minmax(0, 1fr); }
  .dx-toc { display: none; }
}
@media (max-width: 900px) {
  .dx { grid-template-columns: minmax(0, 1fr); }
  .dx-side { position: static; max-height: none; overflow: visible; padding-block: 14px 0; }
  .dx-menu > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 50px; padding-inline: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0a2e37d1 0%, #05212ae8 100%); box-shadow: inset 0 1px 0 #8ae3f540; cursor: pointer; list-style: none; font-size: 15px; color: var(--fg-2); }
  .dx-menu > summary::-webkit-details-marker { display: none; }
  .dx-menu > summary b { font-weight: 500; color: var(--fg); }
  .dx-menu > summary b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 220ms var(--ease-out); }
  .dx-menu[open] > summary b::after { transform: translateY(1px) rotate(-135deg); }
  .dx-menu[open] > summary { margin-bottom: 14px; }
  .dx-hits { right: 0; }
  .dx-nav { margin-top: 18px; padding-bottom: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .dx-group + .dx-group { margin-top: 0; }
  .dx-main { padding-block: 28px 56px; }
  article h2 { margin-top: 52px; padding-top: 22px; }
  article p, article li { font-size: 16.5px; }
  .fp { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fp-end, .fp-end:last-child { text-align: left; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
  .fp-end b { margin-top: 0; grid-row: span 2; align-self: center; }
  .fp-end small { grid-column: 1; }
  .fp-pipe { padding: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; }
  .fp-pipe i { margin: 0; order: 2; }
  .fp-pipe b { order: 1; }
  .fp-pipe small { order: 3; }
  .hedge, .trio, .hour-steps { grid-template-columns: minmax(0, 1fr); }
  .hedge > div, .hedge > div + div, .trio > div, .trio > div + div, .hour-steps li, .hour-steps li + li { padding: 14px 0; border-left: 0; }
  .hedge > div + div, .hour-steps li + li { border-top: 1px solid var(--line); }
  .trio > div + div { border-top: 1px solid var(--line); }
  .slide-row { grid-template-columns: minmax(0, 1fr) auto; }
  .slide-row span { grid-column: 1 / -1; }
  .stack-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .arch, .arch-links { grid-template-columns: minmax(0, 1fr); }
  .arch-links { display: none; }
  .band-mark span { font-size: 11.5px; }
  .hist-scale { font-size: 8.5px; letter-spacing: -0.02em; }
  .hist { gap: 3px; height: 140px; }
  .dx-hero { height: 250px; }
  .dx-hero img { object-position: 96% 40%; }
  .dx-hero::after { background: linear-gradient(90deg, #03191df2 0%, #03191dd9 38%, #03191d4d 70%, #03191d00 100%), linear-gradient(0deg, #03191dcc 0%, #03191d00 55%); }
  .dx-hero div { max-width: 10.5em; }
  .dx-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .dx-row span { grid-column: 1; grid-row: 2; }
  .dx-row svg { grid-row: 1 / span 2; }
  .dx-pn { margin-top: 52px; }
  .dx-pn b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-live .fp-pipe i::after { animation: none; transform: translateX(100%); }
  .stack-bar i, .band-pin { transition: none; }
}
