/* t215u: supporting pages on the /os design. Loaded after the older component CSS: the old tokens are remapped to the /os
   tokens (--ink --muted --line --alt --p --pt --pi), then type, spacing, sections, buttons and cards follow /os. */
html.osd body {
  --bg-canvas: #fff; --bg-card: #fff; --bg-muted: var(--alt); --border-hairline: var(--line); --border-strong: #d4d4d8;
  --ink-primary: var(--ink); --ink-secondary: #3f4147; --ink-tertiary: var(--muted);
  --accent: var(--pt); --accent-hover: var(--ink); --accent-wash: var(--alt); --accent-ink: #fff;
  --font-sans: var(--f); --radius-lg: var(--r); --radius-md: 16px; --radius-sm: 12px; --max-width: var(--wrap);
  --band-dark: #0b0b0d; --band-dark-elevated: #16161a;
  /* h24/h25 Apple-style component vocabulary */
  --ap-bg: #fff; --ap-bg2: var(--alt); --ap-ink: var(--ink); --ap-muted: var(--muted); --ap-card: var(--alt); --ap-line: var(--line);
  --ap-accent: var(--p); --ap-accent-ink: var(--pi); --ap-link: var(--pt); --ap-glass: rgba(255,255,255,.88);
  --ap-dark: #0b0b0d; --ap-dark-ink: #f5f5f7; --ap-dark-muted: #b4b4ba; --ap-dark-card: #16161a; --ap-dark-accent: var(--pd); --ap-dark-link: var(--pd);
  --ap-grad: linear-gradient(90deg, var(--pt), var(--pt));
  /* Trimline site.css vocabulary */
  --navy: var(--ink); --ink-2: #3f4147; --teal: var(--pt); --radius: var(--r); --shadow: none; --max: var(--wrap);
  /* world/fos.css vocabulary (Trimline home) */
  --fos-max: var(--wrap); --fos-gutter: 24px; --fos-r: var(--r); --fos-ease: cubic-bezier(.16, 1, .3, 1);
  --fos-bg: #fff; --fos-bg2: var(--alt); --fos-ink: var(--ink); --fos-muted: var(--muted); --fos-line: var(--line); --fos-accent: var(--p); --fos-accent-ink: var(--pi);
  --fos-stage: #f2f2f0; --fos-card: #fff; --fos-inverse: #0b0b0d; --fos-inverse-ink: #f5f5f7;
  font-family: var(--f); background: #fff; color: var(--ink);
}
html.osd .fx-skip, html.osd .skip { position: absolute; left: -9999px; }
html.osd .fx-skip:focus, html.osd .skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #111; padding: 8px 12px; border-radius: 8px; }
html.osd main { display: block; }
:where(html.osd main a) { color: var(--pt); }
html.osd ::selection { background: var(--p); color: var(--pi); }
html.osd a:focus-visible, html.osd button:focus-visible, html.osd summary:focus-visible, html.osd input:focus-visible, html.osd select:focus-visible, html.osd textarea:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; }

/* ---- wrap and rhythm */
html.osd .fx-wrap, html.osd .wrap { max-width: var(--wrap); padding-left: 24px; padding-right: 24px; }
html.osd .fx-section, html.osd .ap-band, html.osd section.band { padding: clamp(72px, 10vw, 120px) 0; }
html.osd .fx-section--tint, html.osd .ap-band--alt { background: var(--alt); border: 0; }
html.osd .ap-band--dark, html.osd .ap-band--graphite { background: #0b0b0d; }
html.osd .ap-band--graphite { background: #0b0b0d; }

/* ---- type */
html.osd .ap-h1, html.osd .fx-h1, html.osd .h25-mh1, html.osd .hero h1 {
  font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; max-width: 18ch; }
html.osd .ap-h1.h26-h1, html.osd .h25-arch-copy .ap-h1, html.osd .h25-mh1, html.osd .hero h1, html.osd .fx-h1 { font-size: clamp(40px, 6vw, 72px); }
html.osd .ap-h2, html.osd .fx-h2, html.osd .fos-h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 14px; max-width: 22ch; }
html.osd .fx-h3, html.osd main :is(h1, h2, h3) { color: inherit; }
html.osd main h3 { font-size: 21px; letter-spacing: -.015em; font-weight: 700; line-height: 1.25; }
html.osd .ap-lead, html.osd .fx-lead, html.osd .hero p.lead, html.osd .h25-lead { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: var(--muted); font-weight: 500; max-width: 34ch; }
html.osd .ap-sub, html.osd .section-lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--muted); max-width: 52ch; }
html.osd .ap-eyebrow, html.osd .eyebrow, html.osd .fx-eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pt); margin: 0 0 14px; }
html.osd .ap-band--dark :is(p, li, span, small) { color: var(--ap-dark-muted); }
html.osd .ap-band--dark :is(h1, h2, h3, strong, .ap-h1, .ap-h2) { color: #f5f5f7; }
html.osd .ap-band--dark .ap-eyebrow, html.osd .ap-band--dark .eyebrow { color: var(--pd); }
html.osd .ap-band--dark a:not(.ap-pill):not(.fx-btn) { color: var(--pd); }
html.osd .ap-band--dark .ap-src, html.osd .ap-band--dark .ap-src a { color: var(--ap-dark-muted); }
html.osd .ap-band--dark .ap-src a { text-decoration: underline; }
html.osd main p, html.osd main li { line-height: 1.55; }
html.osd main p { color: inherit; }
html.osd .small, html.osd .ap-src, html.osd .h25-src { color: var(--muted); }

/* ---- hero: centered, product name block like /os */
html.osd .ap-hero { padding: clamp(64px, 9vw, 104px) 0 0; background: #fff; }
html.osd .ap-hero-copy { padding-left: 24px; padding-right: 24px; }
html.osd .ap-hero-copy .ap-h1 { max-width: 16ch; }
html.osd .ap-hero-media { width: min(var(--wrap), calc(100% - 48px)); border-radius: var(--r); overflow: hidden; }
html.osd .ap-hero::after { display: none; }
html.osd .ap-hero-f { border-radius: 0; }
html.osd .hero { background: #fff; padding: clamp(64px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 0; }
html.osd .hero h1 { max-width: 20ch; }
html.osd .hero p.lead { max-width: 40ch; }
html.osd .h25-arch { border-radius: var(--r); margin: 0 12px; }

/* ---- buttons: the /os pill */
html.osd .ap-pill, html.osd .fx-btn, html.osd .btn, html.osd .fl-btn {
  min-height: 44px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--f); letter-spacing: 0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; cursor: pointer; transition: filter .2s; }
html.osd .ap-pill--solid, html.osd .fx-btn--dark, html.osd .fx-btn--accent, html.osd .btn-primary { background: var(--p); color: var(--pi); border: 0; }
html.osd .ap-pill--solid:hover, html.osd .fx-btn--dark:hover, html.osd .fx-btn--accent:hover, html.osd .btn-primary:hover { background: var(--p); filter: brightness(1.08); }
html.osd .ap-pill--ghost, html.osd .fx-btn--ghost, html.osd .btn-ghost { background: transparent; color: var(--pt); box-shadow: inset 0 0 0 1.5px currentColor; border: 0; }
html.osd .ap-pill--ghost:hover, html.osd .fx-btn--ghost:hover, html.osd .btn-ghost:hover { background: transparent; color: var(--pt); filter: brightness(.9); }
html.osd .ap-hero .ap-ctas .ap-pill--ghost { box-shadow: inset 0 0 0 1.5px currentColor; text-decoration: none; padding-inline: 22px; }
html.osd .fx-btn--white { background: #fff; color: #111; }
html.osd .ap-band--dark .ap-pill--ghost, html.osd .ap-band--dark .fx-btn--ghost { color: #fff; }
html.osd .ap-pill:hover { transform: none; }
html.osd button.btn-link, html.osd .btn-link { background: none; box-shadow: none; color: var(--pt); padding: 0; min-height: 44px; border-radius: 0; text-decoration: underline; }

/* ---- cards: the /os card (alt on white, white on alt) */
html.osd .fx-tile, html.osd .card, html.osd .ap-layers li, html.osd .h25-pillars li, html.osd .h25-defaults li, html.osd .h25-open li, html.osd .h25-offer, html.osd .h25-proj, html.osd .h25-road li,
html.osd .h25-mc a, html.osd .h25-form, html.osd .h25-up, html.osd .h25-which, html.osd .spec-card {
  border-radius: var(--r); border: 0; box-shadow: none; padding: 30px; background: var(--alt); }
html.osd .ap-band--alt .fx-tile, html.osd .ap-band--alt .card, html.osd .fx-section--tint .fx-tile, html.osd .ap-band--alt .ap-layers li, html.osd .ap-band--alt .h25-pillars li, html.osd .ap-band--alt .h25-defaults li { background: #fff; }
html.osd .ap-band--dark .ap-layers li, html.osd .ap-band--dark .h25-pillars li, html.osd .ap-band--dark .h25-defaults li { background: #16161a; }
html.osd .card h3, html.osd .fx-tile h3, html.osd .ap-layers h3, html.osd .h25-pillars h3, html.osd .h25-defaults h3, html.osd .h25-open h3 { font-size: 21px; letter-spacing: -.015em; color: inherit; margin: 0 0 8px; }
html.osd .card p, html.osd .fx-tile p, html.osd .ap-layers p, html.osd .h25-pillars p, html.osd .h25-defaults p { color: var(--ap-muted); font-size: 16px; }
html.osd .card.featured { box-shadow: inset 0 0 0 2px var(--p); }
html.osd .fx-callout { border-radius: 16px; background: var(--alt); border: 0; }
html.osd .ap-spec-n { background: none; color: var(--pt); -webkit-text-fill-color: currentColor; }
html.osd .ap-band--dark .ap-spec-n { background: none; color: var(--pd); -webkit-text-fill-color: currentColor; }
html.osd .ap-spec, html.osd .ap-specs { border-color: var(--line); }

/* ---- local bar (sections and Jump to), same as /os .ol */
html.osd .fl-subnav { position: sticky; top: var(--bar); z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
html.osd .fl-subnav .fx-wrap { min-height: 52px; }
html.osd .fl-subnav__name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
html.osd .fl-subnav summary { font-size: 13px; font-weight: 500; color: var(--muted); }
html.osd .fl-subnav__menu { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(0,0,0,.35); }
html.osd .fl-subnav__menu a { color: var(--ink); }
html.osd .fl-subnav__pill { background: var(--p); color: var(--pi); padding: 0 14px; min-height: 32px; font-size: 13px; font-weight: 600; }
html.osd .fl-subnav a { text-decoration: none; }
html.osd .ol ul a { color: var(--muted); }
html.osd .ol ul a:hover { color: var(--ink); }
html.osd .ol__in { max-width: var(--wrap); margin: 0 auto; }
@media (max-width: 760px) { html.osd .ol__in { gap: 12px; } html.osd .ol .ob-btn { margin-left: auto; } }

/* ---- forms, code, tables, details */
html.osd input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]), html.osd select, html.osd textarea { font: 400 16px/1.4 var(--f); border-radius: 12px; border: 1px solid #c4c4cc; background: #fff; color: var(--ink); padding: 12px 14px; max-width: 100%; }
html.osd label { font-weight: 600; }
html.osd pre, html.osd code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
html.osd pre { max-width: 100%; overflow-x: auto; border-radius: 16px; }
html.osd table { max-width: 100%; }
html.osd .table-wrap, html.osd .tbl { overflow-x: auto; }
html.osd img, html.osd video, html.osd canvas, html.osd iframe { max-width: 100%; }
html.osd details > summary { cursor: pointer; }

/* ---- 404 */
html.osd .fl-404 { text-align: center; padding: clamp(96px, 14vw, 160px) 24px; }

/* footer extras kept from the old footer: verification pill and scan.sh hash */
.of__extra { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.of__pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 12px; border: 1px solid var(--line); }
.of__extra .fx-footer-sha { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.of__extra code { font-size: 11px; overflow-wrap: anywhere; }
.of a { color: inherit; }
.of .fx-footer-sha, .of .fx-footer-sha a, .of .fx-footer-sha code { color: #4b4e55; }
html.osd .sha, html.osd code.sha, html.osd code[data-scan-sha] { color: #3f4147; }
html.osd main :not(pre) > code { color: #3f4147; }
/* dark sections of the old chassis (proof, teardown, security band, swarm token): light text on near black, product color made readable */
html.osd :is(.fl-obsidian, .teardown-band, .security-band, .fx-metrics, .tfh-token, .fl-scope, .fl-band--dark) { --ink-primary: #f5f5f7; --ink-secondary: #c9c9cf; --ink-tertiary: #a8a8b0; --accent: var(--pd); color: #f5f5f7; }
html.osd :is(.fl-obsidian, .teardown-band, .security-band, .fx-metrics, .tfh-token, .fl-scope) :is(h1, h2, h3, h4, strong) { color: #f5f5f7; }
html.osd :is(.fl-obsidian, .teardown-band, .security-band, .fx-metrics, .tfh-token, .fl-scope) :is(.eyebrow, .ap-eyebrow, a:not(.fx-btn):not(.ap-pill)) { color: var(--pd); }
html.osd :is(.fl-obsidian, .teardown-band, .security-band, .fx-metrics, .tfh-token, .fl-scope) :is(p, li, span, small, .td-label, .teardown-sub) { color: #c9c9cf; }


/* Trimline home (/) keeps its hero, proof slider and teardown; the old fos chassis rule that cleared section backgrounds is undone here */
html.osd .fos-keep > section.teardown-band { background: #0b0b0d; }
html.osd .fos-keep > section.band-dark, html.osd .fos-keep > section.fl-obsidian { background: #0b0b0d; color: #f5f5f7; }
html.osd .fos-eyebrow b { color: var(--pt); }
html.osd .fos-h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; font-weight: 700; max-width: 14ch; }
html.osd .fos-h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
html.osd .fos-lead { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.01em; font-weight: 500; }
html.osd .fos-cta { min-height: 44px; padding: 0 22px; font-size: 16px; font-weight: 600; box-shadow: none; }
html.osd .fos-link { color: var(--pt); }
html.osd .fos-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 96px); }
html.osd .fos-stage { box-shadow: none; }
html.osd .fos-step, html.osd .fos-proof { border: 0; background: var(--alt); border-radius: var(--r); }
html.osd .fos-band--alt .fos-step { background: #fff; }

/* every card-like block: white on an alt section, alt on a white one (as /os) */
html.osd :is(.ap-band--alt, .fx-section--tint) :is(.fx-tile, .card, .ap-layers li, .h25-pillars li, .h25-defaults li, .h25-open li, .h25-offer, .h25-proj, .h25-road li, .h25-mc a, .h25-form, .h25-up, .h25-which, .spec-card, .h25-need li, .h25-src-col, .fx-callout, .editorial-card) { background: #fff; }
html.osd :is(.ap-band--dark, .ap-band--graphite) :is(.fx-tile, .card, .ap-layers li, .h25-pillars li, .h25-defaults li, .h25-open li, .h25-mc a, .h25-src-col) { background: #16161a; }

/* long-form pages (methodology, security, kit, legal, calculators): /os type scale, readable measure */
html.osd main h1:not([class]) { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 16px; max-width: 20ch; }
html.osd main h2:not([class]), html.osd main .wrap h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 0 12px; max-width: 30ch; }
html.osd main h3:not([class]) { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
html.osd main .wrap > :is(p, ul, ol), html.osd main section > .wrap > :is(p, ul, ol), html.osd main article > :is(p, ul, ol) { max-width: 76ch; }
