/* ==========================================================
   THORWALLET - styles for the product, pair, chain, comparison,
   guide and help pages. Loaded after site.css, tokens only, so
   the light theme follows without extra rules.
   ========================================================== */

/* ---------- Breadcrumb ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; padding: 0; font-size: 0.85rem; color: var(--text-low); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--hairline-strong); }
.crumbs a { color: var(--text-low); }
.crumbs a:hover { color: var(--text-hi); }
.crumbs [aria-current] { color: var(--text-mid); }

/* ---------- Sub-page hero with a product visual on the right ---------- */
.subhero.has-visual .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.subhero.has-visual .sh-copy { min-width: 0; }
.subhero.has-visual .sh-visual { min-width: 0; display: flex; justify-content: center; }
.subhero.has-visual .display { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.sh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sh-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.sh-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-mid); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 7px 14px 7px 10px; background: var(--surface); }
.sh-facts li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--signal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000); mask-composite: exclude; }
@media (max-width: 960px) {
  .subhero.has-visual .container { grid-template-columns: 1fr; }
  .subhero.has-visual .sh-visual { justify-content: flex-start; }
}

/* ---------- Live quote box ---------- */
.qb { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-ambient), 0 0 110px -50px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.05); position: relative; }
.qb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 0.8rem; color: var(--text-low); }
.qb-live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mid); }
.qb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-low); }
.qb.is-live .qb-live i { background: var(--accent-solid); box-shadow: 0 0 0 4px rgba(31,217,166,0.16); }
.qb-ind { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.qb-leg { background: var(--bg-base); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px; }
.qb-k { display: block; font-size: 0.8rem; color: var(--text-low); margin-bottom: 6px; }
.qb-row { display: flex; align-items: center; gap: 12px; }
.qb-amt, .qb-out { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.02em; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.qb-out { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--signal-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.qb-out { transition: opacity 0.2s var(--ease); }
.qb-out.is-swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .qb-out { transition: none; } }
.qb-amt:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 6px; border-radius: 6px; }
.qb-sub { min-height: 1.3em; margin-top: 6px; font-size: 0.85rem; color: var(--text-low); font-variant-numeric: tabular-nums; }
.qb-asset { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 8px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--hairline-strong); color: var(--text-hi); font-size: 0.95rem; }
.qb-asset img { width: 22px; height: 22px; border-radius: 50%; }
.qb-asset b { font-weight: 600; }
.qb-asset small { font-size: 0.75rem; color: var(--text-low); }
.qb-asset small:empty { display: none; }
.qb-asset svg { width: 14px; height: 14px; color: var(--text-low); }
.qb-asset select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.qb-asset:focus-within { border-color: var(--accent-line); }
.qb-flip { display: grid; place-items: center; width: 38px; height: 38px; margin: -9px auto; position: relative; z-index: 1; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--hairline-strong); color: var(--text-hi); cursor: pointer; transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease); }
.qb-flip:hover { transform: rotate(180deg); border-color: var(--accent-line); }
.qb-flip svg { width: 17px; height: 17px; }
.qb-routes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.qb-routes li { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1.1fr) 64px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 0.88rem; color: var(--text-mid); }
.qb-routes li.best { background: rgba(31,217,166,0.08); color: var(--text-hi); }
.qr-n { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; white-space: nowrap; }
.qr-n em { font-style: normal; font-size: 0.75rem; font-weight: 600; color: #06241B; background: var(--signal); border-radius: var(--r-pill); padding: 2px 8px; }
.qr-k { font-size: 0.75rem; color: var(--text-low); white-space: nowrap; }
.qr-k.dec { color: var(--accent-solid); }
.qr-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-t { text-align: right; font-size: 0.8rem; color: var(--text-mid); white-space: nowrap; }
.qb-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(31,217,166,0.07); font-size: 0.85rem; line-height: 1.45; color: var(--text-mid); }
.qb-hint { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid rgba(245,165,36,0.5); font-size: 0.85rem; line-height: 1.45; color: var(--text-mid); }
.qb-hint[hidden] { display: none; }
.qb.is-empty .qb-out { background: none; -webkit-text-fill-color: var(--text-low); color: var(--text-low); }
.qb-amt[aria-invalid="true"] { color: var(--text-low); }
.qb-go { width: 100%; margin-top: 16px; }
.qb-fine { margin-top: 12px; font-size: 0.8rem; line-height: 1.45; color: var(--text-low); text-align: center; }
/* loading: a shimmer over the numbers, never a spinner */
.qb.is-loading .qb-out, .qb.is-loading [data-qb-sum] { position: relative; color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(100deg, var(--surface-2) 30%, rgba(255,255,255,0.14) 50%, var(--surface-2) 70%) 0 0 / 220% 100%; border-radius: 8px; animation: qbShimmer 1.3s linear infinite; }
.qb.is-loading .qb-routes li * { visibility: hidden; }
.qb.is-loading .qb-routes:empty::before, .qb.is-loading .qb-routes:empty::after { content: ""; display: block; height: 36px; border-radius: 10px; background: linear-gradient(100deg, var(--surface-2) 30%, rgba(255,255,255,0.14) 50%, var(--surface-2) 70%) 0 0 / 220% 100%; animation: qbShimmer 1.3s linear infinite; }
@keyframes qbShimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .qb.is-loading .qb-out, .qb.is-loading [data-qb-sum], .qb.is-loading .qb-routes:empty::before, .qb.is-loading .qb-routes:empty::after { animation: none; } .qb-flip:hover { transform: none; } }
@media (max-width: 420px) {
  .qb { padding: 14px; }
  .qb-routes li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px; }
  .qr-k { display: none; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 44px 0 0; padding: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--accent-solid); margin-bottom: 14px; }
.steps h2, .steps h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--text-hi); margin-bottom: 8px; }
.steps p { font-size: 0.95rem; line-height: 1.55; color: var(--text-mid); }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps, .steps.steps-4 { grid-template-columns: 1fr; } }

/* ---------- Link grids (pairs, chains, guides) ---------- */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 36px; }
.linkgrid a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); color: var(--text-hi); font-weight: 500; transition: border-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }
.linkgrid a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.linkgrid img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.linkgrid .lg-pair { display: inline-flex; flex-shrink: 0; }
.linkgrid .lg-pair img + img { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.linkgrid small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--text-low); margin-top: 2px; }
.linkgrid .lg-go { margin-left: auto; color: var(--text-low); }

/* ---------- Dated quote snapshot table and source list ---------- */
.snap-note { margin-top: 18px; font-size: 0.85rem; line-height: 1.5; color: var(--text-low); max-width: 70ch; }
.src-list { margin-top: 40px; padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.src-list h3 { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); margin-bottom: 14px; }
.src-list ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 40px; font-size: 0.85rem; line-height: 1.5; color: var(--text-low); }
.src-list li { break-inside: avoid; margin-bottom: 6px; overflow-wrap: anywhere; }
.src-list a { color: var(--text-mid); text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.src-list a:hover { color: var(--text-hi); }
@media (max-width: 760px) { .src-list ol { columns: 1; } }
.compare-table sup a { color: var(--text-low); font-size: 0.75em; margin-left: 3px; }
.compare-table sup a:hover { color: var(--accent-solid); }

/* ---------- Feature blocks (two columns: copy + panel) ---------- */
.fblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.fblock + .fblock { margin-top: clamp(64px, 8vw, 120px); }
.fblock.flip > :first-child { order: 2; }
.fblock h2 { margin-bottom: 18px; }
.fblock .eyebrow { display: block; margin-bottom: 16px; }
ul.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.ticks li { position: relative; padding-left: 28px; color: var(--text-mid); line-height: 1.5; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; border-radius: 50%; background: var(--signal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000); mask-composite: exclude; }
.fpanel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-ambient), inset 0 1px 0 rgba(255,255,255,0.04); min-width: 0; }
@media (max-width: 960px) { .fblock { grid-template-columns: 1fr; } .fblock.flip > :first-child { order: 0; } }

/* phone mockup holder used in page heroes (the coded app screens from app-screens.js) */
.sh-phone { width: min(300px, 78vw); }
.sh-phone .device-frame { width: 100%; }
/* the same phone as the visual column of a feature block (product pages), and beside a section head */
.fb-phone { display: flex; justify-content: center; min-width: 0; }
.fhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.fhead .sh-phone { width: min(260px, 70vw); }
@media (max-width: 960px) { .fhead { grid-template-columns: 1fr; } }
/* pair pages: the three steps stacked, the route list beside them (cross-chain pairs) */
.steps-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps-side .steps { grid-template-columns: 1fr; margin: 0; }
.steps-side .sh-phone { width: min(280px, 72vw); margin: 0; }
.steps-side figcaption { margin-top: 14px; text-align: center; font-size: 0.85rem; line-height: 1.45; color: var(--text-low); }
@media (max-width: 960px) { .steps-side { grid-template-columns: 1fr; } .steps-side .sh-phone { justify-self: center; } }

/* ---------- Key-value rows inside panels ---------- */
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 0.95rem; color: var(--text-mid); }
.kv > div:last-child { border-bottom: 0; }
.kv b { color: var(--text-hi); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv i { font-style: normal; font-weight: 400; color: var(--text-low); }
.kv .acc { color: var(--accent-solid); }

/* ---------- Risk box (token and leveraged products) ---------- */
.riskbox { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--hairline-strong); border-left: 3px solid var(--accent-solid); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-body); line-height: 1.55; color: var(--text-mid); max-width: 80ch; }
.riskbox b { color: var(--text-hi); }
.riskbox a { color: var(--accent-solid); }

/* ---------- Comparison pages ---------- */
.points.points-3 { grid-template-columns: repeat(3, 1fr); }
a.point { display: flex; flex-direction: column; color: inherit; transition: border-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }
a.point:hover { border-color: var(--accent-line); transform: translateY(-2px); }
a.point h3 .vs { color: var(--text-low); font-weight: 500; }
a.point p { flex: 1; }
.point-go { margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: var(--accent-solid); }
/* all wallets: nine columns fit the content grid on a desktop; below that a picker shows THORWallet and one wallet.
   The language versions built before this layout (no .ct-vs on the table) keep the scrolling table until they are rebuilt. */
.compare-table.compare-wide:not(.ct-vs) { min-width: 1240px; }
.compare-table.compare-wide:not(.ct-vs) th, .compare-table.compare-wide:not(.ct-vs) td { padding: 16px 16px; font-size: 0.88rem; }
.compare-table.compare-wide:not(.ct-vs) td:first-child, .compare-table.compare-wide:not(.ct-vs) th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg-elev-1); }
.compare-table.compare-wide:not(.ct-vs) thead th:first-child { background: var(--surface-2); }
.compare-table.compare-wide.ct-vs { min-width: 0; table-layout: fixed; }
.compare-table.compare-wide.ct-vs th, .compare-table.compare-wide.ct-vs td { padding: 14px 12px; font-size: 0.8rem; line-height: 1.4; overflow-wrap: break-word; }
.compare-table.compare-wide.ct-vs thead th { font-size: 0.88rem; }
.compare-table.compare-wide.ct-vs th:first-child, .compare-table.compare-wide.ct-vs td:first-child { width: 9.5%; }
.compare-table.compare-wide thead th a { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 4px; }
.compare-table.compare-wide thead th a:hover { text-decoration-color: var(--accent-solid); }
.compare-table td.win::before { margin-right: 6px; }
/* a competitor cell that is the stronger one in its row: marked, in a neutral tone (green stays THORWallet's) */
.compare-table td.win.them { color: var(--text-hi); }
.compare-table td.win.them::before { background: var(--text-mid); }
.compare-table td > a { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.compare-table td > a:hover { text-decoration-color: currentColor; }
.cmp-h { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; color: var(--text-hi); scroll-margin-top: 110px; }
.cmp-h ~ .compare-wrap { margin-top: 28px; }
.cmp-r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cmp-pick { display: none; }
@media (max-width: 1239px) {
  .cmp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
  .cmp-pick-k { flex-basis: 100%; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-low); }
  .cmp-pick label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); font-size: 0.9rem; font-weight: 500; color: var(--text-mid); cursor: pointer; }
  .compare-table.compare-wide.ct-vs th, .compare-table.compare-wide.ct-vs td { padding: 16px 18px; font-size: 0.92rem; }
  .compare-table.compare-wide.ct-vs thead th { font-size: 1rem; }
  .compare-table.compare-wide.ct-vs th:first-child, .compare-table.compare-wide.ct-vs td:first-child { width: 26%; }
  .compare-wide.ct-vs th:nth-child(n+3), .compare-wide.ct-vs td:nth-child(n+3) { display: none; }
  #cmp-w1:checked ~ .compare-wrap :is(th, td):nth-child(3), #cmp-w2:checked ~ .compare-wrap :is(th, td):nth-child(4), #cmp-w3:checked ~ .compare-wrap :is(th, td):nth-child(5), #cmp-w4:checked ~ .compare-wrap :is(th, td):nth-child(6),
  #cmp-w5:checked ~ .compare-wrap :is(th, td):nth-child(7), #cmp-w6:checked ~ .compare-wrap :is(th, td):nth-child(8), #cmp-w7:checked ~ .compare-wrap :is(th, td):nth-child(9) { display: table-cell; }
  #cmp-w1:checked ~ .cmp-pick label[for="cmp-w1"], #cmp-w2:checked ~ .cmp-pick label[for="cmp-w2"], #cmp-w3:checked ~ .cmp-pick label[for="cmp-w3"], #cmp-w4:checked ~ .cmp-pick label[for="cmp-w4"],
  #cmp-w5:checked ~ .cmp-pick label[for="cmp-w5"], #cmp-w6:checked ~ .cmp-pick label[for="cmp-w6"], #cmp-w7:checked ~ .cmp-pick label[for="cmp-w7"] { border-color: var(--accent-solid); color: var(--text-hi); background: var(--surface-2); }
  #cmp-w1:focus-visible ~ .cmp-pick label[for="cmp-w1"], #cmp-w2:focus-visible ~ .cmp-pick label[for="cmp-w2"], #cmp-w3:focus-visible ~ .cmp-pick label[for="cmp-w3"], #cmp-w4:focus-visible ~ .cmp-pick label[for="cmp-w4"],
  #cmp-w5:focus-visible ~ .cmp-pick label[for="cmp-w5"], #cmp-w6:focus-visible ~ .cmp-pick label[for="cmp-w6"], #cmp-w7:focus-visible ~ .cmp-pick label[for="cmp-w7"] { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
}
/* three-column comparisons on a phone: the feature is a row label, the two wallets sit side by side */
@media (max-width: 760px) {
  .compare-wrap:has(.ct-vs) { overflow: hidden; overflow: clip; }
  .compare-table.ct-vs { display: block; min-width: 0; border: 0; border-radius: 0; overflow: visible; }
  .ct-vs thead, .ct-vs tbody { display: block; }
  .ct-vs thead { position: sticky; top: 0; z-index: 2; }
  .ct-vs tr { display: grid; grid-template-columns: 1fr 1fr; }
  .ct-vs th:first-child { display: none; }
  .compare-table.ct-vs th, .compare-table.ct-vs td { padding: 10px 14px 14px; font-size: 0.85rem; line-height: 1.4; width: auto; overflow-wrap: anywhere; }
  .compare-table.compare-wide.ct-vs td:first-child, .compare-table.compare-wide.ct-vs th:first-child { width: auto; }
  .compare-table.ct-vs td:first-child { grid-column: 1 / -1; width: auto; padding: 14px 14px 0; border-bottom: 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
  .compare-table.ct-vs tr:last-child td:first-child { border-bottom: 0; }
  .compare-table.ct-vs tbody tr:last-child td { border-bottom: 0; }
  .compare-table.ct-vs thead th { padding: 12px 14px; font-size: 0.95rem; border-bottom: 1px solid var(--hairline); }
  .compare-table.ct-vs thead th.col-feat { background: var(--surface-2); }
}
/* narrow tables that simply fit (fee by size and tier) */
.compare-table.ct-fit { min-width: 0; }
.compare-table.ct-stack thead th { white-space: nowrap; }
@media (max-width: 760px) {
  .compare-table.ct-fit th, .compare-table.ct-fit td { padding: 12px 10px; font-size: 0.82rem; }
  .compare-table.ct-fit thead th { font-size: 0.82rem; }
  /* four columns of prose (card fees): each fee becomes a block, each plan a labelled line */
  .compare-table.ct-stack { display: block; min-width: 0; border: 0; border-radius: 0; }
  .ct-stack thead { display: none; }
  .ct-stack tbody, .ct-stack tr { display: block; }
  .ct-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
  .ct-stack tr:last-child { border-bottom: 0; }
  .compare-table.ct-stack td { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; border: 0; text-align: right; font-size: 0.88rem; }
  .compare-table.ct-stack td:first-child { display: block; padding: 0 0 8px; text-align: left; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
  .ct-stack td[data-th]::before { content: attr(data-th); flex-shrink: 0; font-family: var(--font-body); color: var(--text-low); text-align: left; }
}
@media (max-width: 960px) { .points.points-3 { grid-template-columns: 1fr; } }

/* ---------- Buttons that swap order on a phone (web app first on a desktop, the app first on a phone) ---------- */
.btn.only-m { display: none; }
@media (max-width: 760px) { .btn.only-m { display: inline-flex; } .btn.only-d { display: none; } }

/* ---------- The page subject inside the h1, set like an eyebrow ---------- */
.display .h1-kw { display: block; margin-bottom: 18px; font-family: var(--font-mono); font-size: var(--fs-cap); font-weight: 500; line-height: 1.4; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-low); }

/* ---------- Fee tier rows: the tier name (was .tier, which is the card plan component) ---------- */
.titn-row .tt-name { font-family: var(--font-display); font-weight: 600; color: var(--text-hi); font-size: 1.05rem; }
@media (min-width: 1600px) { .titn-row .tt-name { font-size: 1.25rem; } }
@media (min-width: 2000px) { .titn-row .tt-name { font-size: 1.45rem; } }
@media (max-width: 560px) { .titn-row { grid-template-columns: 1.25fr 1.2fr 0.8fr; gap: 10px; padding: 16px 16px; } .titn-row .fee { text-align: right; } .titn-row .tt-name { font-size: 1rem; } .titn-row .stake { font-size: 0.9rem; } .titn-row.head { letter-spacing: 0.08em; font-size: 0.72rem; } .titn-row.head .fee { white-space: nowrap; } }

/* ---------- Yes / no marks in capability rows ---------- */
.is-yes::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -1.5px; background: var(--accent-solid); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.kv b.is-no, .cw-c.is-no { color: var(--text-low); font-weight: 400; }

/* ---------- "What works on <chain>": the capability panel of a chain page ---------- */
.cap-h { margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-hi); }
.hold-ticks ul.ticks { margin-top: 0; gap: 16px; font-size: 1.02rem; }
.cap-note, .facts-note, .fx-note { margin-top: 14px; font-size: 0.8rem; line-height: 1.5; color: var(--text-low); }
.facts-note { max-width: 80ch; }
.fn-s { font-family: var(--font-mono); font-size: 0.62em; color: var(--accent-solid); margin-left: 2px; }
a.point h3 > span { color: var(--text-mid); }

/* ---------- /wallets: one row per chain, capabilities as columns ---------- */
.cw { margin-top: 36px; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.cw-head, .cw-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 14px; align-items: center; padding: 14px 24px; }
.cw-head { background: var(--surface-2); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.cw-row { border-top: 1px solid var(--hairline); color: var(--text-mid); transition: background var(--dur-micro) var(--ease); }
.cw-row:hover { background: var(--surface-2); }
.cw-name { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; color: var(--text-hi); }
.cw-name img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.cw-name small { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 400; color: var(--text-low); }
.cw-cell { min-width: 0; font-size: 0.9rem; line-height: 1.35; }
.cw-cell small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .cw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; border-radius: 0; background: none; overflow: visible; }
  .cw-head { display: none; }
  .cw-row { grid-template-columns: 1fr; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); }
  .cw-cell small { position: static; display: block; width: auto; height: auto; clip-path: none; white-space: normal; margin-bottom: 2px; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--text-low); }
  .cw-cell { font-size: 0.85rem; }
}
@media (max-width: 340px) { .cw { grid-template-columns: 1fr; } }

/* ---------- Worked fee example on a pair page ---------- */
.fx-k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-solid); }
.fx-math { margin: 10px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.fx-math b { font-weight: 600; background: var(--signal-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Facts table: label, figure, detail ---------- */
.facts { margin-top: 44px; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table th, .facts-table td { padding: 18px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); font-size: 0.95rem; line-height: 1.5; }
.facts-table tbody tr:last-child > * { border-bottom: 0; }
.facts-table thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.facts-table tbody th { width: 21%; font-weight: 500; color: var(--text-mid); }
.facts-table td.ft-v { width: 31%; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.facts-table td:last-child { color: var(--text-mid); }
@media (max-width: 760px) {
  .facts-table, .facts-table tbody, .facts-table tr, .facts-table th, .facts-table td { display: block; width: auto; }
  .facts-table thead { display: none; }
  .facts-table tr { padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
  .facts-table tbody tr:last-child { border-bottom: 0; }
  .facts-table th, .facts-table td, .facts-table tbody th, .facts-table td.ft-v { width: auto; padding: 0; border: 0; }
  .facts-table tbody th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
  .facts-table td.ft-v { margin: 6px 0 4px; }
  .facts-table td:last-child { font-size: 0.9rem; }
  .facts-table td:empty { display: none; }
}

/* ---------- Where a product runs: one tile per screen ---------- */
.points.points-4 { grid-template-columns: repeat(4, 1fr); }
.point.dev { align-items: flex-start; }
.point.dev > svg { width: 44px; height: 44px; margin-bottom: 20px; color: var(--accent-solid); }
.point.dev h3 { margin-bottom: 0; overflow-wrap: anywhere; }
@media (max-width: 960px) { .points.points-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .points.devs { grid-template-columns: 1fr 1fr; } .point.dev { padding: 16px; } .point.dev h3 { font-size: 0.98rem; } }

/* ---------- 2 of 3, drawn (multisig) ---------- */
.msd { margin: 0; min-width: 0; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-ambient), inset 0 1px 0 rgba(255,255,255,0.04); }
.msd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.msd-dev { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 6px 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--bg-base); color: var(--text-low); text-align: center; }
.msd-dev > svg { width: 34px; height: 54px; }
.msd-dev b { font-weight: 600; font-size: 0.95rem; color: var(--text-mid); }
.msd-dev span { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; }
.msd-dev span svg { width: 13px; height: 13px; }
.msd-dev.is-on { border-color: var(--accent-line); color: var(--accent-solid); }
.msd-dev.is-on b { color: var(--text-hi); }
.msd-wires { display: block; width: 100%; height: 56px; }
.msd-wires path { fill: none; stroke: var(--accent-solid); stroke-width: 2; vector-effect: non-scaling-stroke; }
.msd-wires path.off { stroke: var(--hairline-strong); stroke-dasharray: 4 5; }
.msd-out { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 13px 20px; border: 1px solid var(--accent-line); border-radius: var(--r-pill); background: var(--bg-base); color: var(--text-hi); }
.msd-out svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-solid); }
.msd-out b { font-weight: 600; }
.msd-out span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-low); white-space: nowrap; }
.msd figcaption { margin-top: 18px; font-size: 0.88rem; line-height: 1.5; color: var(--text-low); text-align: center; }

/* ---------- "At a glance" beside a comparison headline ---------- */
.glance { width: 100%; max-width: 520px; }
.glance-k { margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); }
.glance-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.glance-t thead th { padding: 0 14px 12px 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text-hi); }
.glance-t thead th:first-child { color: var(--accent-solid); }
.glance-t tbody th { padding: 14px 0 4px; border-top: 1px solid var(--hairline); text-align: left; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.glance-t td { padding: 0 14px 14px 0; vertical-align: top; font-size: 0.92rem; line-height: 1.45; color: var(--text-mid); overflow-wrap: anywhere; }
.glance-t td.g-tw { font-weight: 500; color: var(--text-hi); }
.glance-go { display: inline-block; margin-top: 4px; font-size: 0.88rem; font-weight: 600; color: var(--accent-solid); }

/* ---------- /perps "A desk on every screen": the Terminal window, then the four platforms as one row of links ---------- */
[data-desk] .tt-frame { margin-top: clamp(32px, 4vw, 52px); }
.desk-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 28px auto 0; padding: 0; list-style: none; }
.desk-links a { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 64px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--hairline); background: var(--surface); transition: border-color 0.15s var(--ease); }
.desk-links a:hover { border-color: var(--accent-line); }
.desk-links svg { grid-row: 1 / 3; width: 32px; height: 32px; color: var(--accent-solid); }
.desk-links .pn { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.desk-links b { font-size: 0.92rem; font-weight: 600; color: var(--text-hi); overflow-wrap: anywhere; }
@media (min-width: 901px) { .desk-links.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .desk-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .desk-links { grid-template-columns: 1fr; } }

/* ---------- /fees: the swap fee calculator in the hero ---------- */
.fcalc { display: flex; flex-direction: column; gap: 14px; }
.fcalc .fc-k { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.fc-in { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--hairline-strong); }
.fc-in:focus-within { border-color: var(--accent-line); }
.fc-in span { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--text-low); }
.fc-amt { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.fcalc .qb-hint { margin: -4px 0 0; }
.fc-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; border: 0; min-width: 0; }
.fc-tiers legend { margin-bottom: 10px; padding: 0; }
.fc-tiers label { position: relative; flex: 1 1 auto; }
.fc-tiers input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fc-tiers label span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); font-size: 0.9rem; font-weight: 600; color: var(--text-mid); cursor: pointer; white-space: nowrap; transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease); }
.fc-tiers label:hover span { color: var(--text-hi); }
.fc-tiers input:checked + span { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--bg-base); }
.fc-tiers input:focus-visible + span { outline: 2px solid var(--accent-line); outline-offset: 3px; }
.fc-out { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.fc-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.fc-main span { flex-basis: 100%; font-size: 0.9rem; color: var(--text-mid); }
.fc-main b { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--accent-solid); font-variant-numeric: tabular-nums; }
.fc-main i { font-style: normal; font-size: 1rem; color: var(--text-mid); font-variant-numeric: tabular-nums; }
.fc-out .kv { margin-top: 10px; }
.fc-out .kv b { font-variant-numeric: tabular-nums; }
.fc-out .kv b i { font-style: normal; font-weight: 400; color: var(--text-low); margin-left: 4px; }
.fc-out .kv > div.is-on span { color: var(--text-hi); font-weight: 600; }
.fc-out .kv > div.is-on b { color: var(--accent-solid); }
.fcalc .cap-note { margin-top: 0; }

/* ---------- The muted last row of a capability panel: what the chain cannot do today ---------- */
.kv > div.kv-no { align-items: flex-start; }
.kv > div.kv-no span { color: var(--text-low); flex-shrink: 0; }
.kv > div.kv-no b { max-width: 24ch; line-height: 1.4; }

/* ---------- Conversion table of a pair page: two directions side by side ---------- */
.conv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 44px; align-items: start; }
.conv-wrap { min-width: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.conv { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.conv caption { caption-side: top; padding: 18px 24px 14px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--text-hi); }
.conv th, .conv td { padding: 12px 10px; text-align: right; border-top: 1px solid var(--hairline); font-size: 0.95rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv th:first-child, .conv td:first-child { padding-left: 24px; text-align: left; width: 30%; }
.conv th:last-child, .conv td:last-child { padding-right: 24px; width: 30%; }
.conv thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.conv td { color: var(--text-mid); }
.conv td:nth-child(2) { font-family: var(--font-display); font-weight: 600; color: var(--text-hi); }
.conv td:last-child { color: var(--text-low); }
.conv tr.is-me td { background: rgba(31,217,166,0.07); }
.conv tr.is-me td:first-child { color: var(--accent-solid); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent-solid); }
.conv-go { display: block; padding: 14px 24px 16px; border-top: 1px solid var(--hairline); font-size: 0.88rem; font-weight: 600; color: var(--accent-solid); }
.conv-go:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .conv-grid { grid-template-columns: 1fr; margin-top: 32px; } }
@media (max-width: 420px) {
  .conv caption { padding: 16px 16px 12px; }
  .conv th, .conv td { padding: 11px 6px; font-size: 0.88rem; }
  .conv th:first-child, .conv td:first-child { padding-left: 16px; }
  .conv th:last-child, .conv td:last-child { padding-right: 16px; width: 27%; }
  .conv-go { padding: 14px 16px; }
}

/* ---------- The two networks of a pair: one card each, the chain's own verified rows ---------- */
.net-h { margin-top: clamp(64px, 8vw, 120px); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; color: var(--text-hi); }
.netgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.netgrid.solo { grid-template-columns: minmax(0, 720px); }
.netcard { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.netcard header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.netcard header img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.netcard .pn { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.netcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--text-hi); }
.netcard > p { font-size: 0.98rem; line-height: 1.55; color: var(--text-mid); }
.netcard .kv { margin-top: 10px; flex: 1; }
.netcard .kv b { max-width: 60%; }
.netcard .point-go { margin-top: 12px; }
.netcard .point-go:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .netgrid { grid-template-columns: 1fr; } }

/* ---------- Native swap, bridge or exchange: prose cells, the first row is ours ---------- */
.compare-table.ct-ways { min-width: 0; }
.compare-table.ct-ways td { font-family: var(--font-body); line-height: 1.45; vertical-align: top; }
.compare-table.ct-ways td:first-child { width: 22%; font-weight: 600; color: var(--text-hi); }
.compare-table.ct-ways tr.is-tw td { background: rgba(31,217,166,0.06); }
.compare-table.ct-ways tr.is-tw td:first-child { color: var(--accent-solid); }
@media (max-width: 760px) {
  .compare-table.ct-ways td:first-child { width: auto; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text-hi); }
  .compare-table.ct-ways tr.is-tw td:first-child { color: var(--accent-solid); }
  .compare-table.ct-ways td[data-th] { display: block; padding: 8px 0 0; text-align: left; }
  .compare-table.ct-ways td[data-th]::before { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .compare-table.ct-ways tr.is-tw { background: rgba(31,217,166,0.06); }
  .compare-table.ct-ways tr.is-tw td { background: none; }
}

/* ---------- Articles: guides, help, blog posts ---------- */
.art-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.art-hero .art-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em; color: var(--text-hi); max-width: 20ch; }
.art-hero .lead { margin-top: 20px; max-width: 62ch; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 0.88rem; color: var(--text-low); }
.art-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 320px); justify-content: space-between; gap: clamp(32px, 6vw, 96px); align-items: start; }
.art-grid.solo { grid-template-columns: minmax(0, 760px); justify-content: start; }
.prose { font-size: var(--fs-body); line-height: 1.75; color: var(--text-mid); min-width: 0; }
.prose > * + * { margin-top: 1.15em; }
/* the reading measure: text lines stay near 68 characters; tables, pictures and step lists with a phone use the full column */
.prose > * { max-width: 31em; }
.prose > .prose-table, .prose > figure, .prose > .help-shot-row { max-width: none; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--text-hi); margin-top: 2.1em; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: var(--text-hi); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose a { color: var(--accent-solid); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text-hi); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent-solid); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.prose .note, .prose blockquote { margin-left: 0; padding: 14px 18px; border: 1px solid var(--hairline-strong); border-left: 3px solid var(--accent-solid); border-radius: var(--r-md); background: var(--surface); color: var(--text-mid); }
.prose-table { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.prose-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.95rem; }
.prose-table th, .prose-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose-table th { background: var(--surface-2); color: var(--text-hi); font-weight: 600; }
.prose-table tr:last-child td { border-bottom: 0; }
.prose figure { margin-inline: 0; }
.prose figure img { width: auto; max-width: 100%; height: auto; display: block; margin-inline: auto; border-radius: var(--r-md); border: 1px solid var(--hairline); }
.prose figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--text-low); text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin-block: 2em; }
.art-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.art-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 22px; }
.art-card h2 { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); margin-bottom: 14px; }
.art-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; line-height: 1.45; color: var(--text-mid); }
.art-card.takeaways li { position: relative; padding-left: 22px; }
.art-card.takeaways li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.art-card a { color: var(--text-mid); }
.art-card a:hover { color: var(--text-hi); }
.art-card.cta p { font-size: 0.95rem; line-height: 1.5; color: var(--text-mid); margin-bottom: 16px; }
.art-card.cta .btn { width: 100%; }
@media (max-width: 960px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .art-aside { position: static; } }

/* cards for article indexes */
.art-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.art-list a { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; color: inherit; transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease); }
.art-list a:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.art-list h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--text-hi); }
.art-list p { font-size: 0.95rem; line-height: 1.5; color: var(--text-mid); flex: 1; }
.art-list .al-k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.art-list .al-go { font-size: 0.88rem; font-weight: 600; color: var(--accent-solid); }
@media (max-width: 960px) { .art-list { grid-template-columns: 1fr; } }

/* help center */
.help-hero { position: relative; z-index: 3; }   /* the open search results lie over the section below */
.help-search { position: relative; z-index: 5; max-width: 640px; margin-top: 28px; }
.help-search input { width: 100%; height: 60px; padding: 0 56px 0 52px; background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); color: var(--text-hi); font-family: var(--font-body); font-size: 1.02rem; outline: none; transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease); -webkit-appearance: none; appearance: none; }
.help-search input::placeholder { color: var(--text-low); }
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.help-search input:focus { border-color: var(--accent-solid); box-shadow: 0 0 0 4px var(--accent-line); }
.help-search > svg { position: absolute; left: 20px; top: 30px; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-low); pointer-events: none; }
.help-kbd { position: absolute; right: 18px; top: 30px; transform: translateY(-50%); min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline-strong); border-radius: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-low); pointer-events: none; }
.help-search input:focus ~ .help-kbd { opacity: 0; }
@media (hover: none) { .help-kbd { display: none; } }
.help-results { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: var(--bg-elev-1, var(--surface)); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-ambient, 0 24px 60px -20px rgba(0,0,0,0.6)); }
.help-results[hidden] { display: none; }
.help-results .hr { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 12px 14px; border-radius: 12px; color: inherit; text-decoration: none; }
.help-results .hr:hover, .help-results .hr.on { background: var(--surface-2); }
.help-results .hr-c { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.help-results .hr-t { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--text-hi); }
.help-results .hr-d { font-size: 0.92rem; line-height: 1.5; color: var(--text-mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-results .hr-d b { color: var(--text-hi); font-weight: 600; }
.help-results mark { background: none; color: var(--accent-solid); }
.help-results .hr-none { padding: 14px; font-size: 0.95rem; color: var(--text-mid); }
.help-results .hr-none a { color: var(--accent-solid); text-decoration: underline; text-underline-offset: 3px; }
.help-search.sm { max-width: none; margin-top: 0; }
.help-search.sm input { height: 48px; padding: 0 16px 0 44px; font-size: 0.95rem; border-radius: var(--r-md); }
.help-search.sm > svg { left: 15px; top: 24px; width: 18px; height: 18px; }
.help-search.sm .help-kbd { display: none; }
.help-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; max-width: 640px; }
.help-search-top { display: none; margin-top: 24px; }
.help-chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 500; color: var(--text-mid); transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease); }
.help-chips a:hover { color: var(--text-hi); border-color: var(--accent-line); }
.help-h { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); margin-bottom: 18px; }
.help-pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-pop-a { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); color: inherit; transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease); }
.help-pop-a:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.help-pop-a h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-hi); }
.help-pop-a p { flex: 1; font-size: 0.95rem; line-height: 1.55; color: var(--text-mid); }
.help-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-cat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; scroll-margin-top: 100px; }
.help-cat:target { border-color: var(--accent-solid); }
.help-cat-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.help-cat-ic { flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface-2); color: var(--accent-solid); }
.help-cat-ic svg { width: 22px; height: 22px; }
.help-cat h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: var(--text-hi); }
.help-cat-top p { margin-top: 4px; font-size: 0.9rem; line-height: 1.45; color: var(--text-low); }
.help-cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.help-cat li a { display: block; padding: 9px 0; border-top: 1px solid var(--hairline); color: var(--text-mid); font-size: 0.98rem; line-height: 1.4; }
.help-cat li a:hover { color: var(--accent-solid); }
.help-more summary { list-style: none; cursor: pointer; padding: 10px 0 0; border-top: 1px solid var(--hairline); font-size: 0.9rem; font-weight: 600; color: var(--accent-solid); }
.help-more summary::-webkit-details-marker { display: none; }
.help-more[open] summary { display: none; }
.help-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.help-contact-c { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); }
.help-contact-c h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--text-hi); }
.help-contact-c p { flex: 1; font-size: 0.97rem; line-height: 1.55; color: var(--text-mid); }
.help-contact-c.warn { border-color: rgba(245, 165, 36, 0.45); }
.help-contact-c .al-go { font-size: 0.92rem; font-weight: 600; color: var(--accent-solid); }

/* help article */
.help-answer { padding: 20px 22px; border: 1px solid var(--accent-line); border-radius: var(--r-md); background: var(--surface); }
.help-answer-k { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-solid); }
.help-answer p { font-size: 1.08rem; line-height: 1.6; color: var(--text-hi); }
.help-prose ol { list-style: none; padding-left: 0; counter-reset: step; }
.help-prose ol > li { position: relative; padding-left: 46px; min-height: 30px; counter-increment: step; }
.help-prose ol > li + li { margin-top: 0.9em; }
.help-prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--hairline-strong); font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--accent-solid); }
.help-prose h2, .help-prose h3 { scroll-margin-top: 96px; }
.prose .callout { padding: 14px 18px; border: 1px solid var(--hairline-strong); border-left: 3px solid var(--accent-solid); border-radius: var(--r-md); background: var(--surface); }
.prose .callout-k { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-solid); }
.prose .callout p { color: var(--text-mid); }
.prose .callout.note { border-left-color: var(--text-low); }
.prose .callout.note .callout-k { color: var(--text-low); }
.prose .callout.warning, .prose .callout.important { border-left-color: #F5A524; }
.prose .callout.warning .callout-k, .prose .callout.important .callout-k { color: #F5A524; }
.prose .callout.risk { border-left-color: #FF6B6B; }
.prose .callout.risk .callout-k { color: #FF6B6B; }
[data-theme="light"] .prose .callout.warning .callout-k, [data-theme="light"] .prose .callout.important .callout-k { color: #9A5B00; }
[data-theme="light"] .prose .callout.risk .callout-k { color: #B3261E; }
.help-faq { max-width: none; margin: 0; }
.help-faq .faq-item summary { padding: 18px 2px; font-size: 1.08rem; }
.help-faq .faq-item .faq-a { padding: 0 2px 20px; }
.prose .help-faq .faq-item + .faq-item { margin-top: 0; }
.help-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 2.6em; padding: 18px 22px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); }
.help-fb-q { font-weight: 600; color: var(--text-hi); }
.help-fb-btns { display: inline-flex; gap: 8px; }
.help-fb .btn { height: 40px; padding: 0 20px; }
.help-fb .btn.on { border-color: var(--accent-solid); color: var(--accent-solid); }
.help-fb .btn:disabled { cursor: default; transform: none; }
.help-fb-msg { flex-basis: 100%; margin: 0; font-size: 0.95rem; color: var(--text-mid); }
.help-fb-msg[hidden] { display: none; }
.help-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.4em; }
.prose a.help-pn-a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--text-mid); transition: border-color var(--dur-micro) var(--ease); }
.prose a.help-pn-a:hover { border-color: var(--accent-line); }
.help-pn-a span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-low); }
.help-pn-a strong { font-size: 0.98rem; line-height: 1.35; }
.help-pn-a.next { text-align: right; grid-column: 2; }
.help-toc a { display: block; padding-left: 12px; border-left: 2px solid transparent; }
.help-toc a.on { color: var(--text-hi); border-left-color: var(--accent-solid); }
.help-grid .art-aside { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.help-grid .art-aside::-webkit-scrollbar { display: none; }
@media (max-width: 960px) {
  .help-cats, .help-pop-grid, .help-contact { grid-template-columns: 1fr; }
  .help-grid .art-aside { max-height: none; overflow: visible; }
  .help-grid .help-toc { display: none; }
  .help-search-side { display: none; }
  .help-search-top { display: block; }
  .help-search input { height: 54px; font-size: 1rem; }
  .help-search > svg { top: 27px; }
  .help-pn { grid-template-columns: 1fr; }
  .help-pn-a.next { grid-column: auto; text-align: left; }
}
@media (min-width: 961px) and (max-width: 1180px) { .help-cats, .help-pop-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Article extras: notes, sources, related links, phone screens, the phone layout ---------- */
/* "this article is in English only": one quiet line, shown by an inline script when another site language is saved */
.art-en-only { margin-top: 14px; font-size: 0.88rem; color: var(--text-low); }
.art-en-only[hidden] { display: none; }
/* the dated note at the top of a blog post */
.prose > .art-note { max-width: calc(31em / 0.92); padding: 16px 18px; border: 1px solid var(--hairline-strong); border-left: 3px solid var(--accent-solid); border-radius: var(--r-md); background: var(--surface); font-size: 0.92em; line-height: 1.6; }
.art-note p + p { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.art-related { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--hairline); }
.prose .art-related h2 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); }
.prose .art-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.prose .art-related li + li { margin-top: 0; }
.prose .art-related a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); font-size: 0.92rem; font-weight: 500; color: var(--text-mid); text-decoration: none; transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease); }
.prose .art-related a:hover { color: var(--text-hi); border-color: var(--accent-line); }
.prose .art-src, .prose .art-method { font-size: 0.85rem; line-height: 1.55; color: var(--text-low); }
.prose .art-src { margin-top: 1.6em; }
/* guides: the help articles with the steps, and the sources */
.prose .art-how { display: block; list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); }
.prose .art-how li { padding: 14px 18px; }
.prose .art-how li + li { margin-top: 0; border-top: 1px solid var(--hairline); }
.prose .art-how a { display: block; font-weight: 600; text-decoration: none; }
.prose .art-how a:hover { text-decoration: underline; }
.prose .art-how span { display: block; margin-top: 2px; font-size: 0.92rem; line-height: 1.5; color: var(--text-mid); }
.prose .art-sources { font-size: 0.95rem; line-height: 1.55; }
.prose .art-sources li + li { margin-top: 0.35em; }
.prose-table.wide table { min-width: 680px; font-size: 0.9rem; }
.prose-table.wide th, .prose-table.wide td { padding: 11px 13px; }
/* sourced cells: the text is the link to its source, kept quiet so the table still reads as a table */
.prose .prose-table.wide td a { color: inherit; text-decoration-style: dotted; text-decoration-color: var(--text-low); }
.prose .prose-table.wide td a:hover { color: var(--accent-solid); }
.prose-table tbody th { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); font-weight: 600; color: var(--text-hi); white-space: nowrap; }
.prose-table tr:last-child th { border-bottom: 0; }
/* a phone with an app screen beside a step list (the ::screen line in the Markdown) */
.help-shot-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: start; }
.prose .help-shot { margin: 0; }
.help-shot .device-frame { width: 100%; }
.prose .help-shot figcaption { margin-top: 2px; font-size: 0.82rem; line-height: 1.45; }
.prose .help-shot .as-note { margin-top: 10px; line-height: 1.3; }
@media (max-width: 640px) { .help-shot-row { grid-template-columns: minmax(0, 1fr); } .prose .help-shot { width: min(210px, 62vw); margin-inline: auto; } }
/* phones: a table of up to three columns fits the screen (cells wrap); wider ones scroll sideways as before */
@media (max-width: 640px) {
  .prose-table[data-cols="2"] table, .prose-table[data-cols="3"] table { min-width: 0; font-size: 0.9rem; }
  .prose-table[data-cols="2"] th, .prose-table[data-cols="2"] td, .prose-table[data-cols="3"] th, .prose-table[data-cols="3"] td { padding: 10px 11px; overflow-wrap: anywhere; }
}
.help-search.sm.help-search-top { margin-top: 20px; }
/* "On this page", folded: phones only */
.art-m, .art-toc-m { display: none; }
.art-toc-m { border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); }
.art-toc-m summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 18px; list-style: none; cursor: pointer; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); }
.art-toc-m summary::-webkit-details-marker { display: none; }
.art-toc-m summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-micro) var(--ease); }
.art-toc-m[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.art-toc-m ul, .prose .art-toc-m ul { display: block; list-style: none; margin: 0; padding: 0 18px 12px; }
.art-toc-m li + li, .prose .art-toc-m li + li { margin-top: 0; }
.art-toc-m a, .prose .art-toc-m a { display: block; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 0.95rem; line-height: 1.4; color: var(--text-mid); text-decoration: none; }
@media (max-width: 960px) {
  .art-m { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .art-toc-m { display: block; }
  /* the summary and the contents are under the title now; the side column keeps the related links and the button */
  .art-aside .takeaways, .art-aside .toc-d { display: none; }
}

/* ---------- Diagrams in guides: content/figures/<name>.svg through "::fig <name> | caption" (tools/site/md.mjs) ----------
   Drawn at a 340 wide viewBox, so the text stays at 14px or more on a phone; the figure grows to 460px on a desktop.
   Colours only through the classes below (site tokens), so both themes work. */
.art-fig { --fig-risk: #FF8A80; --fig-warm: #FFC56B; }
[data-theme="light"] .art-fig { --fig-risk: #B3261E; --fig-warm: #8A5200; }
.prose .art-fig { margin-top: 1.8em; margin-bottom: 0.4em; padding: clamp(14px, 3vw, 28px) clamp(10px, 3vw, 28px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); }
.art-fig svg { display: block; width: 100%; height: auto; max-width: 460px; margin: 0 auto; overflow: visible; }
.art-fig svg text { font-family: var(--font-body); font-size: 15px; fill: var(--text-mid); }
.art-fig .t-hi { fill: var(--text-hi); font-weight: 600; }
.art-fig .t-low { fill: var(--text-low); }
.art-fig .t-acc { fill: var(--accent-solid); font-weight: 600; }
.art-fig .t-risk { fill: var(--fig-risk); font-weight: 600; }
.art-fig .t-warm { fill: var(--fig-warm); font-weight: 600; }
.art-fig .t-k { font-family: var(--font-mono); letter-spacing: 0.08em; fill: var(--text-low); }
.art-fig .t-big { font-family: var(--font-display); font-size: 17px; }
.art-fig .s-box { fill: var(--bg-base); stroke: var(--hairline-strong); stroke-width: 1.5; }
.art-fig .s-card { fill: var(--surface-2); }
.art-fig .s-acc { fill: var(--accent-solid); }
.art-fig .s-acc-soft { fill: var(--accent-solid); fill-opacity: 0.14; }
.art-fig .s-acc-line { fill: none; stroke: var(--accent-solid); stroke-width: 2; }
.art-fig .s-line { fill: none; stroke: var(--hairline-strong); stroke-width: 1.5; }
.art-fig .s-mid-line { fill: none; stroke: var(--text-low); stroke-width: 1.5; }
.art-fig .s-dash { stroke-dasharray: 5 5; }
.art-fig .s-risk { fill: var(--fig-risk); }
.art-fig .s-risk-soft { fill: var(--fig-risk); fill-opacity: 0.14; }
.art-fig .s-risk-line { fill: none; stroke: var(--fig-risk); stroke-width: 2; }
.art-fig .s-warm { fill: var(--fig-warm); }
.art-fig .s-warm-soft { fill: var(--fig-warm); fill-opacity: 0.16; }
.art-fig .s-low { fill: var(--text-low); }
.art-fig .s-mid { fill: var(--text-mid); }
.art-fig .s-hi { fill: var(--text-hi); }
.prose .art-fig figcaption { margin-top: 16px; font-size: 0.88rem; line-height: 1.5; color: var(--text-low); text-align: center; }
.prose > .msd { max-width: 31em; margin-top: 1.8em; margin-bottom: 1.6em; }

/* ---------- Guides: key takeaways in the hero (once, every width), the side rail fits the window ---------- */
.art-take { max-width: 62ch; margin-top: 24px; padding: 18px 22px; border: 1px solid var(--accent-line); border-radius: var(--r-md); background: var(--surface); }
.art-take h2 { margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-solid); }
.art-take ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.art-take li { position: relative; padding-left: 20px; font-size: 1rem; line-height: 1.5; color: var(--text-hi); }
.art-take li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
@media (min-width: 961px) { .art-grid .art-aside { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }

/* ---------- Article tables on phones: no words broken mid-word; four columns and more stack per row ---------- */
@media (max-width: 640px) {
  .prose-table[data-cols="2"] th, .prose-table[data-cols="2"] td, .prose-table[data-cols="3"] th, .prose-table[data-cols="3"] td { overflow-wrap: break-word; hyphens: auto; }
  .prose-table[data-cols="2"] td:first-child, .prose-table[data-cols="2"] th:first-child { width: 38%; }
  .prose-table[data-cols="3"] td:first-child, .prose-table[data-cols="3"] th:first-child { width: 30%; }
  .prose-table.stack { overflow: visible; }
  .prose-table.stack table { min-width: 0; }
  .prose-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose-table.stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
  .prose-table.stack tr:last-child { border-bottom: 0; }
  .prose-table.stack td { display: block; padding: 0; border: 0; overflow-wrap: break-word; hyphens: auto; }
  .prose-table.stack td:first-child { margin-bottom: 6px; font-weight: 600; color: var(--text-hi); }
  .prose-table.stack td[data-th] { margin-top: 6px; font-size: 0.92rem; line-height: 1.5; }
  .prose-table.stack td[data-th]::before { content: attr(data-th); display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-low); }
  .prose-table.stack.wide table { min-width: 0; }
  .prose-table.stack tbody th { display: block; padding: 0 0 6px; border: 0; background: none; white-space: normal; }
}

/* ---------- /learn: a lead guide with its diagram, groups by topic, the glossary ---------- */
.learn-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(22px, 3.5vw, 40px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); color: inherit; transition: border-color var(--dur-micro) var(--ease); }
.learn-lead:hover { border-color: var(--accent-line); }
.learn-lead-t { display: flex; flex-direction: column; gap: 12px; }
.learn-lead h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; color: var(--text-hi); }
.learn-lead p { font-size: 1rem; line-height: 1.55; color: var(--text-mid); max-width: 52ch; }
.learn-lead .al-k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.learn-lead .al-go, .learn-gloss .al-go { font-size: 0.88rem; font-weight: 600; color: var(--accent-solid); }
.learn-lead-k { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 52ch; }
.learn-lead-k li { position: relative; padding-left: 20px; font-size: 1rem; line-height: 1.5; color: var(--text-hi); }
.learn-lead-k li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.learn-lead-f .art-fig { margin: 0; padding: 0; background: none; border: 0; }
.learn-lead-f .art-fig svg { max-width: 400px; }
@media (max-width: 860px) { .learn-lead { grid-template-columns: minmax(0, 1fr); } }
.learn-group-h { display: flex; gap: 14px; align-items: flex-start; }
.learn-group-h .help-h { margin-bottom: 4px; }
.learn-group-h p { font-size: 0.95rem; line-height: 1.5; color: var(--text-low); max-width: 64ch; }
.learn-group .art-list { margin-top: 24px; }
.learn-gloss { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3.5vw, 36px); background: var(--surface); border: 1px dashed var(--hairline-strong); border-radius: var(--r-lg); color: inherit; transition: border-color var(--dur-micro) var(--ease); }
.learn-gloss:hover { border-color: var(--accent-line); }
.learn-gloss h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--text-hi); }
.learn-gloss p { font-size: 1rem; line-height: 1.55; color: var(--text-mid); max-width: 64ch; }
/* the glossary: an A to Z row, one entry per term */
.gl-az ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; padding: 0; }
.gl-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); font-family: var(--font-mono); font-weight: 600; color: var(--text-mid); transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease); }
.gl-az a:hover { color: var(--text-hi); border-color: var(--accent-line); }
.prose.gl h2.gl-l { margin-top: 1.6em; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.12em; color: var(--accent-solid); scroll-margin-top: 96px; }
.prose.gl dl { margin: 0; }
.gl-term { padding: 18px 0; border-bottom: 1px solid var(--hairline); scroll-margin-top: 96px; }
.gl-term:last-child { border-bottom: 0; }
.gl-term dt { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--text-hi); }
.gl-term dd { margin: 6px 0 0; }
.gl-term dd p { margin: 0; }
.prose .gl-more { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; line-height: 1.5; color: var(--text-low); }
.prose .gl-more > a { font-weight: 600; }
.prose .gl-more > a::before { content: "More: "; font-weight: 400; color: var(--text-low); }
.gl-term:target dt { color: var(--accent-solid); }
/* a blog post that was a press release says so where the byline would be */
.art-kind { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-low); }
.post .art-kind { align-self: flex-start; margin-top: -4px; }
/* the help side rail scrolls on its own: a fade says there is more below */
.help-grid .art-aside.has-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }

/* ---------- Hero visuals on hand-written pages ---------- */
.sh-cards { position: relative; width: min(460px, 86vw); aspect-ratio: 1.38; perspective: 1200px; }
.sh-cards img { position: absolute; width: 78%; height: auto; filter: drop-shadow(0 30px 56px rgba(0,0,0,0.55)); }
.sh-cards .shc-back { left: 0; top: 4%; transform: rotate(-9deg); }
.sh-cards .shc-front { right: 0; bottom: 2%; transform: rotate(6deg); }
.sh-coin { width: min(300px, 60vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, #20262e 0%, #06080b 62%, #000 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 2px 18px rgba(255,255,255,0.06), 0 0 0 12px rgba(255,255,255,0.03), 0 44px 100px -34px rgba(0,204,255,0.5); }
.sh-coin img { width: 44%; height: auto; }
@media (max-width: 960px) { .sh-coin { width: min(200px, 50vw); } }
