:root {
  --ink: #151515;
  --body: #343941;
  --muted: #5e6570;
  --line: #dce0e5;
  --accent: #1754d1;
  --surface: #f5f6f8;
  --sans: Arial, Helvetica, sans-serif;
  /* Existing content fragments refer to these tokens in inline attributes. */
  --orange: var(--accent);
  --orange-hot: var(--accent);
  --orange-deep: var(--accent);
  --serif: var(--sans);
  --glass: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--body); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
p, h1, h2, h3, h4, figure { margin: 0; }
p { margin-bottom: 20px; }
strong, b { color: var(--ink); font-weight: 600; }
em { color: inherit; }
::selection { background: #dce7ff; color: var(--ink); }
.wrap { width: min(760px, calc(100% - 80px)); margin-inline: auto; }

/* Shared site navigation. Without JavaScript the mobile links remain visible. */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { width: min(1100px, calc(100% - 80px)); min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; }
.logo { color: var(--ink); font-size: 27px; line-height: 1.2; font-weight: 800; letter-spacing: -1.3px; text-decoration: none; white-space: nowrap; }
.logo em { font-style: normal; color: inherit; }
.topnav { display: flex; align-items: center; gap: 20px; font-size: 14px; line-height: 1.4; }
.topnav a { color: var(--body); text-decoration: none; white-space: nowrap; }
.topnav a:hover { text-decoration: underline; }
.topnav .navcta { padding: 10px 15px; background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.topnav .navcta:hover { background: #1243a8; text-decoration: none; }
.toplink { font-size: 14px; }
.navtoggle { display: none; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 9px; cursor: pointer; line-height: 0; }
.navtoggle svg { width: 23px; height: 23px; }
body .lng { display: inline-flex; align-items: center; gap: 3px; font: 12px var(--sans); letter-spacing: 0; }
body .lng a, body .lng .lng-on { padding: 6px; color: var(--muted); line-height: 1.2; }
body .lng .lng-on { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* Article hierarchy and reading width. */
main { padding-bottom: 20px; }
main > .wrap > h1:first-child { margin-top: 54px; }
.crumb { margin: 29px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.crumb a { color: var(--muted); }
.hero { padding: 3px 0 20px; }
h1 { color: var(--ink); font-size: clamp(36px, 4.5vw, 52px); font-weight: 700; line-height: 1.13; letter-spacing: -1.5px; overflow-wrap: break-word; }
.tag { color: var(--body); margin-top: 21px; margin-bottom: 20px; font-size: 21px; line-height: 1.55; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.layer, .upd { display: block; margin: 15px 0 22px; color: var(--muted); font-size: 13px; }
h2 { color: var(--ink); font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.65px; margin-bottom: 20px; overflow-wrap: break-word; }
h3 { color: var(--ink); font-size: 23px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; margin: 28px 0 12px; }
h4 { color: var(--ink); font-size: 19px; line-height: 1.45; margin: 24px 0 10px; }
main section { padding-top: 46px; }
main > .wrap > h2 { margin-top: 42px; }
.kicker { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--muted); margin-bottom: 9px; }
.lead-def, .snip { border-left: 3px solid var(--accent); padding-left: 21px; margin: 22px 0 27px; color: var(--body); font-size: 20px; line-height: 1.65; }
.toc { margin: 25px 0 7px; padding: 24px 0; border-block: 1px solid var(--line); }
.toc > b { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 23px; columns: 2; column-gap: 35px; font-size: 15px; line-height: 1.65; }
.toc li { margin: 5px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
ul, ol { padding-left: 25px; margin: 20px 0 24px; }
li { margin: 8px 0; }
li > p:last-child { margin-bottom: 0; }
blockquote { margin: 26px 0; padding: 2px 0 2px 21px; border-left: 3px solid var(--line); color: var(--body); }
blockquote p:last-child { margin-bottom: 0; }

/* Useful article structures without decorative cards. */
.check { padding-left: 24px; list-style: square; }
.check li { padding: 6px 0; }
.warn { padding-left: 25px; }
.warn li { padding: 6px 0 16px 7px; }
.warn b, .steps b { display: block; margin-bottom: 7px; color: var(--ink); }
.warn p { font-size: 17px; }
ol.steps { margin-top: 24px; padding-left: 29px; }
.steps li { padding: 0 0 24px 8px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.steps li:last-child { margin-bottom: 0; }
.steps li::marker { color: var(--muted); font-size: 16px; }
.steps p { color: var(--body); margin-bottom: 0; font-size: 17px; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0; }
.io > div { padding: 19px 0 0; border-top: 1px solid var(--line); }
.io b { display: block; margin-bottom: 9px; font-size: 17px; }
.io p { margin-bottom: 0; font-size: 16px; }
.own, .box { margin: 28px 0; padding: 19px 22px; background: var(--surface); font-size: 16px; line-height: 1.7; }
.qa { margin-top: 26px; }
.qa h3 { font-size: 21px; margin-top: 29px; }
.qa p { color: var(--body); }
.gloss { margin: 26px 0; }
.gloss dt { color: var(--ink); font-weight: 600; margin: 24px 0 7px; }
.gloss dd { margin: 0; color: var(--body); }
.plain { padding-left: 25px; }
.plain li { margin: 13px 0; }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 21px 0; margin: 25px 0 8px; border-block: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.fnode { color: var(--body); }
.fnode.on { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.farr { color: var(--muted); }
.flownote { font-size: 14px; color: var(--muted); margin-top: 10px; }
.hero-head { display: flex; align-items: center; gap: 19px; margin: 18px 0 20px; }
.ic { width: 54px; height: 54px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ic svg { display: block; }

/* Tables and code scroll inside the reading column, never the whole page. */
table { display: block; max-width: 100%; width: 100%; border-collapse: collapse; overflow-x: auto; margin: 24px 0; font-size: 15px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 12px 17px 12px 0; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }
td { color: var(--body); }
th:last-child, td:last-child { padding-right: 0; }
td:first-child { color: var(--ink); }
.tscroll, .cmp { overflow-x: auto; max-width: 100%; margin: 25px 0; }
.tscroll table, .cmp table { display: table; min-width: 610px; margin: 0; }
.bench { font-variant-numeric: tabular-nums; }
.bench .win { background: var(--surface); }
pre, .rec { overflow-x: auto; padding: 19px; border: 1px solid var(--line); background: var(--surface); color: var(--body); font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; margin: 24px 0; max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
pre code { font-size: inherit; overflow-wrap: normal; }
.rec b { color: var(--ink); }
figure { margin: 28px 0; max-width: 100%; }
figure svg, figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Listing pages and related reading use simple linked rows. */
.plist { margin-top: 24px; }
a.pcard { display: block; padding: 25px 0; border-top: 1px solid var(--line); text-decoration: none; }
a.pcard:last-of-type { border-bottom: 1px solid var(--line); }
a.pcard b { display: block; color: var(--ink); font-size: 23px; line-height: 1.4; font-weight: 600; margin-bottom: 8px; }
a.pcard:hover b { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
a.pcard p { color: var(--body); font-size: 16px; margin-bottom: 11px; }
a.pcard > span { color: var(--muted); font-size: 13px; }
.soon { margin-top: 24px; padding-top: 24px; color: var(--muted); font-size: 15px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; padding-top: 25px; border-top: 1px solid var(--line); }
.related a { display: block; text-decoration: none; }
.related .rk { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.related .rt { color: var(--accent); font-size: 16px; line-height: 1.5; }
.related a:hover .rt { text-decoration: underline; }

/* One in-flow action after the resource. */
.ctabox { margin-top: 55px; padding-top: 28px; border-top: 1px solid var(--line); }
.ctabox h2 { font-size: 27px; margin-bottom: 14px; }
.ctabox p { font-size: 16px; color: var(--body); margin-bottom: 23px; }
.ctarow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 22px; background: var(--accent); border: 1px solid var(--accent); border-radius: 3px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.cta:hover { background: #1243a8; border-color: #1243a8; text-decoration: none; }
.cta.ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.cta.ghost:hover { border-color: var(--accent); }
.visit { display: block; margin-top: 19px; font-size: 14px; }
.bookfloat { display: none; }

footer { margin-top: 64px; padding: 32px 0 40px; border-top: 1px solid var(--line); }
footer .wrap { width: min(1100px, calc(100% - 80px)); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 25px 45px; }
footer .wrap > div { font-size: 12px; line-height: 1.8; color: var(--muted); }
footer nav { font-size: 13px; line-height: 2; }
footer a { font-size: inherit; }

@media (max-width: 1000px) {
  header.site .wrap, footer .wrap { width: calc(100% - 56px); }
  .topnav { font-size: 13px; gap: 15px; }
}
@media (max-width: 860px) {
  .wrap { width: min(760px, calc(100% - 56px)); }
  header.site .wrap { min-height: 73px; flex-wrap: wrap; gap: 0 25px; }
  header.site .topnav { width: 100%; padding: 8px 0 20px; flex-wrap: wrap; gap: 8px 20px; }
  header.site .topnav a { padding: 9px 0; }
  header.site .topnav .navcta { padding: 10px 16px; }
  header.site.nav-ready .navtoggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  header.site.nav-ready .topnav { display: none; position: absolute; left: -28px; right: -28px; top: 73px; width: auto; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 28px 23px; flex-direction: column; align-items: stretch; gap: 0; }
  header.site.nav-open .topnav { display: flex; }
  header.site.nav-ready .topnav a { padding: 12px 0; font-size: 15px; }
  header.site.nav-ready .topnav .navcta { padding: 10px 16px; margin-top: 7px; align-self: flex-start; }
  header.site.nav-ready .topnav .lng { align-self: flex-start; margin-top: 15px; }
  .topnav .lng a { padding: 6px; }
  .related { gap: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; line-height: 1.65; }
  .wrap, header.site .wrap, footer .wrap { width: calc(100% - 40px); }
  header.site .wrap { min-height: 68px; }
  .logo { font-size: 25px; }
  header.site.nav-ready .topnav { left: -20px; right: -20px; top: 68px; padding-inline: 20px; }
  .crumb { margin: 24px 0 20px; font-size: 12px; }
  main > .wrap > h1:first-child { margin-top: 35px; }
  h1 { font-size: 35px; line-height: 1.16; letter-spacing: -1px; }
  h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.5px; }
  h3 { font-size: 21px; }
  .tag { font-size: 19px; margin-top: 18px; }
  .meta-line { font-size: 12px; gap: 5px 15px; }
  .hero { padding-bottom: 12px; }
  main section { padding-top: 35px; }
  .lead-def, .snip { padding-left: 16px; font-size: 18px; }
  .toc { padding-block: 20px; }
  .toc ol { columns: 1; font-size: 14px; }
  .io { grid-template-columns: 1fr; gap: 20px; }
  .io p, .steps p, .warn p { font-size: 16px; }
  .steps li { padding-left: 4px; }
  .own, .box { padding: 17px; font-size: 15px; }
  .flow { gap: 8px; font-size: 13px; }
  .hero-head { gap: 15px; }
  .ic { width: 47px; height: 47px; }
  th, td { padding-right: 14px; font-size: 14px; }
  pre, .rec { padding: 15px; font-size: 12px; }
  a.pcard { padding-block: 23px; }
  a.pcard b { font-size: 21px; }
  a.pcard p { font-size: 15px; }
  .related { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .related .rk { margin-bottom: 4px; }
  .ctabox { margin-top: 40px; padding-top: 24px; }
  .ctabox h2 { font-size: 25px; }
  .ctabox p { font-size: 15px; }
  .cta { min-height: 48px; font-size: 14px; padding-inline: 19px; }
  footer { margin-top: 44px; padding-block: 27px 32px; }
  footer .wrap { display: block; }
  footer .wrap > div { margin-top: 20px; text-align: left !important; }
  footer .wrap > div:first-child { margin-top: 0; }
  footer nav { font-size: 12px; line-height: 2.1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
