/* Bitsniffer B2B site — built on the tokens of Huisstijl v1.0 (05_Kleuren/bitsniffer-tokens.css) */

:root {
  --bs-blue: #1F448C;
  --bs-blue-deep: #163062;
  --bs-blue-light: #E9ECF4;
  --bs-blue-night: #8FA8DD;
  --bs-ink: #1A1A1A;
  --bs-grey: #5A6270;
  --bs-white: #FFFFFF;
  --bs-ok: #2E7D32;
  --bs-warn: #9A5B00;
  --bs-crit: #C62828;

  --bs-bg: #FFFFFF;
  --bs-text: var(--bs-ink);
  --bs-muted: var(--bs-grey);
  --bs-accent: var(--bs-blue);
  --bs-surface: var(--bs-blue-light);
  --bs-line: #D5DAE5;
  --bs-field: #FFFFFF;

  --bs-font: "Helvetica Neue", Helvetica, Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", sans-serif;
  --bs-radius: 2px;
  --bs-wrap: 72rem;
  --bs-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --bs-bit: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bs-bg: #121417;
    --bs-text: #E8EAED;
    --bs-muted: #9AA3B0;
    --bs-accent: var(--bs-blue-night);
    --bs-surface: #1B2333;
    --bs-line: #2A3346;
    --bs-field: #171B22;
  }
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bs-bg); color: var(--bs-text);
  font-family: var(--bs-font); font-size: 1rem; line-height: 1.625; /* 16/26 */
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bs-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 500; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.5rem); line-height: 1.2; }          /* 40/48 */
h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); line-height: 1.29; }        /* 28/36 */
h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: 0; }          /* 20/28 */
p { margin: 0 0 1em; }
.lead { font-size: 1.25rem; line-height: 1.5; font-weight: 300; max-width: 40em; } /* intro 20/30 Light */
.muted { color: var(--bs-muted); }
.small { font-size: .875rem; line-height: 1.43; }                        /* labels 14/20 */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--bs-wrap); margin: 0 auto; padding: 0 var(--bs-gutter); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--surface { background: var(--bs-surface); }
.section__head { max-width: 44rem; margin-bottom: 2.5rem; }
.measure { max-width: 42rem; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -10rem; z-index: 100; background: var(--bs-blue); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

/* ---------- bit markers (brand: blue square bullets) */
.bits { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.bits > li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .6rem; }
.bits > li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: .62rem; height: .62rem; background: var(--bs-accent);
}
.bits--found > li:last-child::before { background: transparent; box-shadow: inset 0 0 0 2px var(--bs-accent); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .7rem 1.25rem;
  border: 2px solid var(--bs-blue); border-radius: var(--bs-radius); background: var(--bs-blue); color: #fff;
  font: 500 1rem/1.2 var(--bs-font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--bs-blue-deep); border-color: var(--bs-blue-deep); }
.btn--ghost { background: transparent; color: var(--bs-accent); border-color: currentColor; }
.btn--ghost:hover { background: var(--bs-surface); color: var(--bs-accent); }
.btn--on-blue { background: #fff; color: var(--bs-blue); border-color: #fff; }
.btn--on-blue:hover { background: var(--bs-blue-light); border-color: var(--bs-blue-light); color: var(--bs-blue-deep); }
.btn--line-on-blue { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--line-on-blue:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--small { min-height: 2.25rem; padding: .4rem .9rem; font-size: .9375rem; }
.btn--danger { background: transparent; color: var(--bs-crit); border-color: var(--bs-crit); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bs-bg); border-bottom: 1px solid var(--bs-line); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.site-header__logo { flex: none; display: block; width: 150px; }         /* brand: min 120px on screen */
.site-header__logo img { width: 150px; height: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.nav__list { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; align-items: center; }
.nav__link, .nav__toggle-sub {
  display: block; padding: .55rem .6rem; color: var(--bs-text); text-decoration: none; font-weight: 500;
  background: none; border: 0; font: 500 1rem var(--bs-font); cursor: pointer; border-radius: var(--bs-radius);
}
.nav__link:hover, .nav__toggle-sub:hover { color: var(--bs-accent); }
.nav__link[aria-current="page"] { color: var(--bs-accent); box-shadow: inset 0 -2px 0 var(--bs-accent); }
.nav__item { position: relative; }
.nav__sub {
  display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 18rem; list-style: none; margin: 0; padding: .5rem;
  background: var(--bs-bg); border: 1px solid var(--bs-line); border-top: 3px solid var(--bs-blue);
}
.nav__item.is-open .nav__sub { display: block; }
.nav__sub a { display: block; padding: .55rem .75rem; color: var(--bs-text); text-decoration: none; }
.nav__sub a:hover { background: var(--bs-surface); color: var(--bs-accent); }
.nav__sub small { display: block; color: var(--bs-muted); font-size: .8125rem; line-height: 1.35; }
.nav__aside { display: flex; align-items: center; gap: .5rem; margin-inline-start: .75rem; }
.lang-switch { display: flex; gap: .15rem; font-size: .875rem; }
.lang-switch a { padding: .25rem .4rem; color: var(--bs-muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { color: var(--bs-accent); font-weight: 500; }
.menu-button { display: none; }

@media (max-width: 80rem) {
  .menu-button { display: inline-flex; margin-inline-start: auto; }
  .nav { display: none; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 100%; flex-direction: column; align-items: stretch;
         background: var(--bs-bg); border-bottom: 1px solid var(--bs-line); padding: 1rem var(--bs-gutter) 1.5rem; margin: 0; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__sub { position: static; border: 0; border-inline-start: 3px solid var(--bs-blue); padding-block: 0; padding-inline: .5rem 0; min-width: 0; }
  .nav__aside { margin: 1rem 0 0; flex-wrap: wrap; }
}

/* ---------- hero (solid brand blue, bit pattern, closing stair) */
.hero { position: relative; background: var(--bs-blue); color: #fff; overflow: hidden; }
.hero a:not(.btn) { color: #fff; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
              padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(5rem, 10vw, 7.5rem); }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255,255,255,.88); margin-bottom: 2rem; }
.hero--page .hero__grid { grid-template-columns: minmax(0, 1fr); padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 5.5rem); }
.hero--page h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 20em; }
.crumbs { font-size: .875rem; margin-bottom: 1rem; color: rgba(255,255,255,.75); }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li { display: inline-flex; gap: .35rem; min-width: 0; }
.crumbs li + li::before { content: "/"; opacity: .6; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* stair (brand guide p. 15): bars rise in three steps, then run level off the right edge.
   Unit u = one step; bar = 3u wide, gap = u. Bars take the colour of the next section. */
.stair { --u: 6px; position: absolute; inset-inline-end: calc(var(--u) * -2); bottom: 0; display: flex; align-items: flex-end; gap: var(--u); pointer-events: none; }
.stair i { display: block; width: calc(var(--u) * 3); height: calc(var(--u) * 3); background: var(--bs-bg); }
.stair i:nth-child(1) { height: var(--u); }
.stair i:nth-child(2) { height: calc(var(--u) * 2); }
.stair--surface i { background: var(--bs-surface); }
@media (max-width: 48rem) { .stair { --u: 4px; } .stair i:nth-child(n+7) { display: none; } }

/* bit motif in the colour block, top right (as on every page of the guide) */
.hero-motif { position: absolute; inset-inline-end: calc(var(--bs-gutter) + 2rem); top: 50%; transform: translateY(-50%);
              display: grid; grid-template-columns: repeat(2, 36px); gap: 12px; pointer-events: none; }
.hero-motif i { width: 36px; height: 36px; background: #fff; }
.hero-motif i.hero-motif__found { background: transparent; box-shadow: inset 0 0 0 6px #fff; }
@media (max-width: 64rem) { .hero-motif { display: none; } }
.hero--page .hero__grid > div { max-width: calc(100% - 9rem); }
@media (max-width: 64rem) { .hero--page .hero__grid > div { max-width: none; } }

/* home hero: bit pattern image (8 % and 18 % white, one found bit), optional real lab photo */
.hero--home { background: var(--bs-blue) url("../img/hero-bits.svg") right center / cover no-repeat; }
.hero__photo { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--bs-radius); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 48rem) { .hero__grid { grid-template-columns: 1fr; } .hero--home { background-position: 62% center; } }

/* ---------- solution rows (home) */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.row { border-top: 2px solid var(--bs-text); padding: 1.25rem 0 2rem; display: grid; grid-template-rows: auto 1fr auto; }
.row h3 { margin-bottom: .35rem; }
.row h3 a { color: var(--bs-text); text-decoration: none; }
.row h3 a:hover { color: var(--bs-accent); }
.row p { color: var(--bs-muted); }
@media (max-width: 48rem) { .rows { grid-template-columns: 1fr; } }

/* ---------- split: text + figure */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* figures with pattern fallback while images are pending */
.figure { margin: 0; position: relative; background: var(--bs-surface); aspect-ratio: 4 / 3; overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--pending { background: var(--bs-blue) url("../img/bitsniffer-pattern-blue.svg") repeat; background-size: 96px; }
.figure--pending::after { content: attr(data-pending); position: absolute; inset-inline-start: 1rem; bottom: .75rem; font-size: .8125rem; color: rgba(255,255,255,.75); }
.figure--wide { aspect-ratio: 16 / 9; }

/* ---------- tiers (three-tier recovery: 1, 2, 3 bits) */
.tiers { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: tier; }
.tiers li { counter-increment: tier; }
.tier-bits { display: flex; gap: 5px; margin-bottom: 1rem; height: 14px; }
.tier-bits i { width: 14px; height: 14px; background: var(--bs-accent); }
.tiers h3::before { content: counter(tier) ". "; color: var(--bs-accent); }
@media (max-width: 48rem) { .tiers { grid-template-columns: 1fr; } }

.tier-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.tier-list li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.tier-list .tier-bits { margin: 0; }
.tier-list strong { font-weight: 500; }

/* ---------- steps (real sequences only) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--bs-line); }
.steps > li::before {
  content: counter(step); width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: var(--bs-blue); color: #fff; font-weight: 500; border-radius: var(--bs-radius);
}
.steps h3 { margin-bottom: .25rem; font-size: 1.125rem; }
.steps p { margin: 0; color: var(--bs-muted); }
.steps--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 48rem) { .steps--two { grid-template-columns: 1fr; } }

/* ---------- incident blocks (forensics) */
.incidents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-inline-start: 1px solid var(--bs-line); border-top: 1px solid var(--bs-line); }
/* Balanced rows instead of auto-fit, so 5 items never leave one block alone on the last row:
   3 per row on a 6-column track; a last row of 2 gets halves, a single leftover the full width, 4 items 2×2. */
@media (min-width: 40rem) and (max-width: 63.99rem) {
    .incidents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .incidents > :nth-child(odd):last-child { grid-column: span 2; }
}
@media (min-width: 64rem) {
    .incidents { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .incidents > * { grid-column: span 2; }
    .incidents > :nth-child(3n+1):nth-last-child(2), .incidents > :nth-child(3n+2):last-child { grid-column: span 3; }
    .incidents > :nth-child(3n+1):last-child { grid-column: span 6; }
    .incidents:has(> :nth-child(4):last-child) > * { grid-column: span 3; }
}
.incident { padding: 1.5rem; border-inline-end: 1px solid var(--bs-line); border-bottom: 1px solid var(--bs-line); background: var(--bs-bg); }
.incident h3 { font-size: 1.125rem; }
.incident p { margin: 0; color: var(--bs-muted); }

/* ---------- definition table (systems) */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: start; vertical-align: top; padding: .9rem 0; border-top: 1px solid var(--bs-line); }
.spec th { width: 32%; padding-inline-end: 1.5rem; font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* ---------- product table */
.products { width: 100%; border-collapse: collapse; }
.products th { text-align: start; font-weight: 500; font-size: .875rem; color: var(--bs-muted); padding-block: 0 .75rem; padding-inline: 0 1rem; border-bottom: 2px solid var(--bs-text); }
.products td { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--bs-line); vertical-align: top; }
.products td:first-child { width: 28%; }
.products a.product-name { font-weight: 500; color: var(--bs-text); text-decoration: none; font-size: 1.0625rem; }
.products a.product-name:hover { color: var(--bs-accent); text-decoration: underline; }
@media (max-width: 40rem) {
  .products thead { display: none; }
  .products tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--bs-line); }
  .products td { display: block; padding: .15rem 0; border: 0; width: auto !important; }
}

.badge { display: inline-block; margin-inline-start: .4rem; padding: .05rem .45rem; font-size: .75rem; font-weight: 500; line-height: 1.5;
         border: 1px solid currentColor; border-radius: var(--bs-radius); color: var(--bs-accent); vertical-align: .15em; white-space: nowrap; }
.badge--ok { color: var(--bs-ok); } .badge--warn { color: var(--bs-warn); } .badge--crit { color: var(--bs-crit); }

/* ---------- call to action band */
.cta-band { background: var(--bs-blue-deep); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-top: 3rem; padding-bottom: 3.5rem; }
.cta-band h2 { margin-bottom: .35rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); max-width: 36rem; }

/* ---------- notes */
.note { border-inline-start: 4px solid var(--bs-accent); background: var(--bs-surface); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.note--warn { border-inline-start-color: var(--bs-warn); }
.note p:last-child { margin: 0; }
.flash { margin: 1.5rem 0 0; }

/* ---------- FAQ */
.faq details { border-top: 1px solid var(--bs-line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--bs-line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .7rem; height: .7rem; margin-top: .45em; box-shadow: inset 0 0 0 2px var(--bs-accent); }
.faq details[open] summary::after { background: var(--bs-accent); }
.faq details p { margin: .75rem 0 0; color: var(--bs-muted); max-width: 44rem; }

/* ---------- forms */
.form { max-width: 52rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 2.75rem; min-width: 0; }
.form legend { font-size: 1.375rem; font-weight: 500; padding: 0; margin-bottom: .35rem; }
.form .fieldset-intro { color: var(--bs-muted); margin-bottom: 1.25rem; max-width: 40rem; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { grid-column: span 6; display: flex; flex-direction: column; gap: .3rem; }
.field--half { grid-column: span 3; } .field--third { grid-column: span 2; } .field--sixth { grid-column: span 1; }
.field--two-thirds { grid-column: span 4; }
@media (max-width: 40rem) { .field--half, .field--third, .field--two-thirds { grid-column: span 6; } .field--sixth { grid-column: span 3; } }
.field label, .field .label { font-weight: 500; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--bs-muted); }
.field .hint { font-size: .8125rem; line-height: 1.45; color: var(--bs-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 2.75rem; padding: .6rem .75rem; font: 400 1rem/1.4 inherit; font-family: inherit; color: var(--bs-text);
  background: var(--bs-field); border: 1px solid #8C94A3; border-radius: var(--bs-radius);
}
.textarea { min-height: 9rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--bs-accent); outline-offset: 0; border-color: var(--bs-accent); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea { border-color: var(--bs-crit); }
.error { color: var(--bs-crit); font-size: .875rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--bs-blue); flex: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.input-with-button { display: flex; gap: .5rem; }
.input-with-button .input { flex: 1; }
.id-result { font-size: .875rem; min-height: 1.3em; }
.id-result.ok { color: var(--bs-ok); } .id-result.warn { color: var(--bs-warn); } .id-result.bad { color: var(--bs-crit); }
.suggestion { margin-top: .5rem; padding: .75rem 1rem; background: var(--bs-surface); font-size: .9375rem; }
.form-summary { border: 2px solid var(--bs-crit); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.form-summary ul { margin: .5rem 0 0; padding-inline-start: 1.2rem; }
.is-hidden { display: none !important; }

/* registration layout: step index + form */
.register { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.step-index { position: sticky; top: 6rem; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step-index li { counter-increment: s; }
.step-index a { display: flex; gap: .75rem; align-items: center; padding: .5rem 0; color: var(--bs-muted); text-decoration: none; }
.step-index a::before { content: counter(s); width: 1.75rem; height: 1.75rem; flex: none; display: grid; place-items: center; font-size: .8125rem; font-weight: 500;
                        box-shadow: inset 0 0 0 2px var(--bs-line); color: var(--bs-muted); }
.step-index a.is-done::before { background: var(--bs-blue); box-shadow: none; color: #fff; }
.step-index a.is-current { color: var(--bs-text); font-weight: 500; }
.step-index a.is-current::before { box-shadow: inset 0 0 0 2px var(--bs-blue); color: var(--bs-blue); }
@media (max-width: 52rem) { .register { grid-template-columns: 1fr; } .step-index { display: none; } }

/* ---------- account */
.panel { border-top: 2px solid var(--bs-text); padding-top: 1rem; margin-bottom: 2.5rem; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.addr { border: 1px solid var(--bs-line); padding: 1rem 1.1rem; }
.addr h3 { font-size: 1rem; margin-bottom: .4rem; }
.addr address { font-style: normal; color: var(--bs-muted); margin-bottom: .75rem; }
.dl { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .4rem 1rem; margin: 0; }
.dl dt { color: var(--bs-muted); } .dl dd { margin: 0; }
@media (max-width: 40rem) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: .5rem; } }
.status-dot { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.status-dot::before { content: ""; width: .7rem; height: .7rem; background: currentColor; }
.status--pending { color: var(--bs-warn); } .status--approved { color: var(--bs-ok); } .status--rejected { color: var(--bs-crit); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data-table th { text-align: start; font-weight: 500; color: var(--bs-muted); padding-block: .5rem; padding-inline: 0 1rem; border-bottom: 2px solid var(--bs-text); }
.data-table td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--bs-line); }

/* ---------- footer */
.site-footer { background: var(--bs-blue-deep); color: rgba(255,255,255,.85); font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; }
.site-footer__logo { width: 150px; margin-bottom: 1rem; }
.site-footer__phone { font-size: 1.25rem; font-weight: 500; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.18); padding-block: 1.25rem 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .8125rem; color: rgba(255,255,255,.7); }
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- print */
@media print { .site-header, .site-footer, .cta-band, .stair, .hero-motif { display: none !important; } .hero { background: none; color: #000; } }
.tier-note { margin-top: 2rem; }
.dl--spaced { margin: 1.5rem 0; }
.badge--flush { margin-inline-start: 0; }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { color: var(--bs-accent); }
.h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: 0; }
.site-phone { font-size: 1.5rem; font-weight: 500; margin: 0; }
.site-phone a { text-decoration: none; }
address { font-style: normal; }
.subhead { font-size: 1.125rem; margin: 2rem 0 .35rem; }
.subgroup { margin-top: 1rem; }

/* ---------- quotes, payment and escrow */
.num { text-align: end !important; white-space: nowrap; }
.quote-lines tfoot th { font-weight: 400; color: var(--bs-muted); border: 0; padding-top: .4rem; padding-bottom: .4rem; }
.quote-lines tfoot td { border: 0; padding-top: .4rem; padding-bottom: .4rem; }
.quote-lines .quote-total th, .quote-lines .quote-total td { color: var(--bs-text); font-weight: 500; font-size: 1.125rem; border-top: 2px solid var(--bs-text); }
.pay-options { display: grid; gap: 1rem; margin-top: 1.5rem; }
.pay-option { border: 1px solid var(--bs-line); padding: 1.25rem; }
.pay-option--featured { border: 2px solid var(--bs-blue); }
.pay-option h3 { font-size: 1.125rem; }
.pay-option .form { max-width: none; }
.escrow-steps { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .35rem; }
.escrow-steps li { display: flex; align-items: center; gap: .6rem; color: var(--bs-muted); }
.escrow-steps li::before { content: ""; width: .7rem; height: .7rem; flex: none; box-shadow: inset 0 0 0 2px var(--bs-line); }
.escrow-steps li.is-done { color: var(--bs-text); }
.escrow-steps li.is-done::before { background: var(--bs-accent); box-shadow: none; }
.escrow-steps li.is-current { color: var(--bs-text); font-weight: 500; }
.escrow-steps li.is-current::before { box-shadow: inset 0 0 0 2px var(--bs-accent); }
#dropin-container { min-height: 14rem; }
.footer-links { margin-top: 1rem !important; }
.spaced { margin-top: 1rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--bs-crit); font: inherit; cursor: pointer; text-decoration: underline; }
.form--narrow { max-width: 28rem; }
.pagination { margin-top: 1.5rem; }
.row__more { margin: 0; }
/* narrow text blocks stay left-aligned with the rest of the page */
.wrap.measure { max-width: var(--bs-wrap); }
.wrap.measure > * { max-width: 42rem; }

/* ---------- Three-Tier Recovery page */
.figure-block { margin-top: 2.5rem; }
.figure-caption { font-size: .8125rem; color: var(--bs-muted); margin: .6rem 0 0; }
.measure-text { max-width: 44rem; }
.split--spaced { margin: 2rem 0; }
.technical { border-top: 1px solid var(--bs-line); border-bottom: 1px solid var(--bs-line); padding: .9rem 0; margin-top: 1.5rem; }
.technical summary { cursor: pointer; font-weight: 500; color: var(--bs-accent); }
.technical > div { margin-top: .75rem; color: var(--bs-muted); }
/* layers stacked bottom-up visually: each layer one step narrower */
.layer-stack { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 4px; }
.layer-stack li { background: var(--bs-bg); border-inline-start: 4px solid var(--bs-accent); padding: .5rem .8rem; font-size: .9375rem; }
.layer-stack li:nth-child(2) { margin-inline-start: .75rem; } .layer-stack li:nth-child(3) { margin-inline-start: 1.5rem; }
.layer-stack li:nth-child(4) { margin-inline-start: 2.25rem; } .layer-stack li:nth-child(5) { margin-inline-start: 3rem; } .layer-stack li:nth-child(6) { margin-inline-start: 3.75rem; }
.bits--warn > li::before { background: var(--bs-warn); }

/* ---------- blog */
.filter-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.filter-bar a { padding: .35rem .75rem; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); color: var(--bs-text); text-decoration: none; font-size: .9375rem; }
.filter-bar a:hover { border-color: var(--bs-accent); color: var(--bs-accent); }
.filter-bar a[aria-current="page"] { background: var(--bs-blue); border-color: var(--bs-blue); color: #fff; }
.filter-bar--small { align-items: center; margin-bottom: 2.5rem; font-size: .875rem; }
.filter-bar--small a { padding: .2rem .6rem; font-size: .875rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.post-card { border-top: 2px solid var(--bs-text); padding: 1rem 0 2rem; display: flex; flex-direction: column; }
.post-card__meta { margin: 0 0 .4rem; color: var(--bs-muted); }
.post-card__meta a { color: var(--bs-accent); text-decoration: none; font-weight: 500; }
.post-card__title { font-size: 1.1875rem; margin-bottom: .4rem; }
.post-card__title a { color: var(--bs-text); text-decoration: none; }
.post-card__title a:hover { color: var(--bs-accent); text-decoration: underline; }
.post-card__foot { margin-top: auto; }
.section__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; max-width: none; }
.post-meta { color: rgba(255,255,255,.8); font-size: .9375rem; margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 44rem) minmax(12rem, 16rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article-toc { position: sticky; top: 6rem; border-inline-start: 3px solid var(--bs-blue); padding-inline-start: 1rem; }
.article-toc ol { margin: .5rem 0 0; padding-inline-start: 1.1rem; font-size: .9375rem; }
.article-toc li { margin-bottom: .4rem; }
.article-toc a { color: var(--bs-text); text-decoration: none; }
.article-toc a:hover { color: var(--bs-accent); text-decoration: underline; }
@media (max-width: 60rem) { .article-layout { grid-template-columns: 1fr; } .article-toc { position: static; order: -1; } }
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin: 2.5rem 0 .75rem; scroll-margin-top: 6rem; }
.prose h3 { margin: 2rem 0 .5rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.prose ul > li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .5rem; }
.prose ul > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: .55rem; height: .55rem; background: var(--bs-accent); }
.prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.25rem; }
.prose ol > li { margin-bottom: .5rem; padding-inline-start: .25rem; }
.prose ol > li::marker { color: var(--bs-accent); font-weight: 500; }
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; background: var(--bs-surface); padding: .1em .35em; border-radius: var(--bs-radius); }
.prose pre { background: #121417; color: #E8EAED; padding: 1rem 1.25rem; overflow-x: auto; border-radius: var(--bs-radius); font-size: .875rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; border-inline-start: 4px solid var(--bs-accent); background: var(--bs-surface); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding-block: .6rem; padding-inline: 0 .9rem; border-bottom: 1px solid var(--bs-line); }
.prose th { font-weight: 500; border-bottom: 2px solid var(--bs-text); }
.prose img { margin: 1.5rem 0; }
.prose .figure { margin-bottom: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.tags .badge { margin: 0; color: var(--bs-muted); }
.form--wide { max-width: 60rem; }
.textarea--short { min-height: 5rem; }
.textarea--code { min-height: 28rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9375rem; line-height: 1.55; }
.faq-row { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bs-line); }

/* touch targets: at least 44 × 44 px on small screens (brand guide p. 20) */
@media (max-width: 48rem) {
  .btn--small, .filter-bar a, .nav__link, .nav__toggle-sub, .lang-switch a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav__sub a { min-height: 44px; }
}
/* escrow */
.steps .step-text { margin: 0; color: var(--bs-text); padding-top: .4rem; }
.spaced-inline { margin-inline-start: 1rem; }
h2.spaced { margin-top: 2rem; }

/* ---------- languages */
.lang-switch__all { font-weight: 500; }
.lang-suggest { background: var(--bs-surface); border-bottom: 1px solid var(--bs-line); font-size: .9375rem; }
.lang-suggest__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-block: .6rem; }
.lang-suggest__bar > span { margin-inline-end: auto; }
.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem; }
.lang-grid a { display: flex; flex-direction: column; padding: .7rem .9rem; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); text-decoration: none; color: var(--bs-text); min-height: 44px; }
.lang-grid a:hover { border-color: var(--bs-accent); }
.lang-grid a[aria-current="true"] { border-color: var(--bs-blue); box-shadow: inset 0 0 0 1px var(--bs-blue); }
.lang-grid__native { font-weight: 500; }
.lang-grid__en { font-size: .8125rem; color: var(--bs-muted); }

/* ---------- navigation additions */
.nav__toggle-sub[data-current] { color: var(--bs-accent); box-shadow: inset 0 -2px 0 var(--bs-accent); }
.nav__sub { max-height: calc(100vh - 6rem); overflow-y: auto; }
.nav__link, .nav__toggle-sub, .nav__aside .btn { white-space: nowrap; }
.nav__toggle-sub::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-inline-start: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2em) rotate(45deg); }
.nav__item.is-open .nav__toggle-sub::after { transform: translateY(.05em) rotate(-135deg); }
.h3 { font-size: 1.25rem; margin-top: 2rem; }

/* ---------- product cards + filter */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0; border-inline-start: 1px solid var(--bs-line); border-top: 1px solid var(--bs-line); }
.card { position: relative; background: var(--bs-bg); border-inline-end: 1px solid var(--bs-line); border-bottom: 1px solid var(--bs-line); padding: 1.5rem 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; transition: background-color .15s; }
.card:hover, .card:focus-within { background: var(--bs-surface); }
.card[hidden] { display: none; }
.card__bits { display: flex; gap: 4px; margin-bottom: .5rem; }
.card__bits i { width: 10px; height: 10px; background: var(--bs-accent); }
.card__bits i.found { background: transparent; box-shadow: inset 0 0 0 2px var(--bs-accent); }
.card__group { margin: 0; font-size: .8125rem; color: var(--bs-muted); }
.card__title { margin: 0; font-size: 1.125rem; }
.card__title a { color: var(--bs-text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }            /* whole card clickable */
.card__title a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 2px solid var(--bs-accent); outline-offset: -2px; }
.card__text { margin: 0; color: var(--bs-muted); flex: 1; }
.card__meta { margin: .5rem 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8125rem; color: var(--bs-muted); }

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.filter__count { margin-inline-start: auto; }
.chip { min-height: 44px; padding: .45rem 1rem; border: 1px solid var(--bs-line); border-radius: 999px; background: var(--bs-bg); color: var(--bs-text); font: inherit; font-size: .9375rem; cursor: pointer; }
.chip:hover { border-color: var(--bs-accent); }
.chip[aria-pressed="true"] { background: var(--bs-blue); border-color: var(--bs-blue); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 2px; }

/* ---------- tabs (progressive: without JS every panel shows) */
.tabs__list { display: none; }
.tabs.is-ready .tabs__list { display: flex; gap: 0; border-bottom: 2px solid var(--bs-text); margin-bottom: 2rem; overflow-x: auto; scrollbar-width: none; }
.tabs__list button { flex: none; min-height: 44px; padding: .75rem 1.25rem; border: 0; background: none; font: inherit; font-weight: 500; color: var(--bs-muted); cursor: pointer; box-shadow: inset 0 -3px 0 transparent; }
.tabs__list button[aria-selected="true"] { color: var(--bs-accent); box-shadow: inset 0 -3px 0 var(--bs-accent); }
.tabs__list button:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: -2px; }
.tabs__panel + .tabs__panel { margin-top: 3rem; }
.tabs.is-ready .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs.is-ready .tabs__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabs__panel:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 4px; }
.bits--columns { columns: 2 18rem; column-gap: clamp(2rem, 5vw, 4rem); }
.bits--columns > li { break-inside: avoid; }

/* ---------- flow: numbered steps across, rising bits */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.flow h3 { font-size: 1.125rem; margin-bottom: .35rem; }
.flow p { margin: 0; color: var(--bs-muted); }

/* ---------- right-to-left (Arabic, Hebrew, Persian, Urdu, Pashto, Sindhi, Uyghur, Yiddish, Dhivehi, Sorani)
   Layout uses logical properties throughout; these rules handle what does not mirror by itself. */
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Noto Sans Hebrew", "Segoe UI", Tahoma, var(--bs-font); }
[dir="rtl"] :is(h1, h2, h3, .lead) { letter-spacing: 0; }                /* negative tracking breaks Arabic joining */
[dir="rtl"] .hero h1 { line-height: 1.25; }
[dir="rtl"] .lead { font-weight: 400; }                                   /* Arabic light weights read poorly */
:lang(ur), :lang(ps), :lang(sd) { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Sans Arabic", var(--bs-font); line-height: 2; }
:lang(ur) .hero h1, :lang(ur) h2 { line-height: 1.7; }
:lang(he), :lang(yi) { font-family: "Noto Sans Hebrew", "Arial Hebrew", var(--bs-font); }
:lang(fa), :lang(ckb), :lang(ug) { font-family: "Vazirmatn", "Noto Sans Arabic", Tahoma, var(--bs-font); }
:lang(dv) { font-family: "Noto Sans Thaana", "MV Boli", var(--bs-font); }
[dir="rtl"] .hero--home { background-image: url("../img/hero-bits-rtl.svg"); background-position: left center; }
/* .stair and .hero-motif mirror by themselves (flex + inset-inline-end): the stair rises towards the reading end. */
[dir="rtl"] .site-header__logo, [dir="rtl"] .brand-lockup { direction: ltr; }   /* the logo is never mirrored */
/* Latin-script data stays left-to-right inside RTL text */
[dir="rtl"] :is(input[type="email"], input[type="tel"], input[type="url"], input[inputmode="numeric"], .ltr, code, pre, .num, .ref) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] :is(input[type="email"], input[type="tel"], input[type="url"]) { text-align: end; }
[dir="rtl"] .carousel__btn--prev svg, [dir="rtl"] .carousel__btn--next svg, [dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ---------- intake wizard */
.form--wide { max-width: 52rem; }
.stepper { display: none; }
.is-stepped .stepper { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; counter-reset: st; }
.stepper li { counter-increment: st; display: flex; flex-direction: column; gap: .5rem; padding-top: .5rem; border-top: 3px solid var(--bs-line); color: var(--bs-muted); font-size: .9375rem; cursor: pointer; min-height: 44px; }
.stepper li:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 2px; }
.stepper li.is-done { border-top-color: var(--bs-accent); color: var(--bs-text); }
.stepper li.is-current { border-top-color: var(--bs-accent); color: var(--bs-accent); font-weight: 500; }
.stepper__label::before { content: counter(st) ". "; }
.stepper__status { margin: 0 0 1.5rem; }
.is-stepped .step > legend { font-size: 1.5rem; margin-bottom: 1rem; }
.is-stepped .step[hidden] { display: none; }
.stepper__nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bs-line); }
.stepper__nav [data-step-next], .stepper__nav [data-submit] { margin-inline-start: auto; }
@media (max-width: 40rem) { .stepper__label { font-size: .8125rem; } .is-stepped .stepper li:not(.is-current) .stepper__label { visibility: hidden; height: 0; } }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .75rem; margin-bottom: 1rem; }
.choice-cards--rows { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.choice-card { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1rem 1rem 2.75rem; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); background: var(--bs-bg); cursor: pointer; min-height: 44px; }
.choice-card input { position: absolute; inset-inline-start: 1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; accent-color: var(--bs-blue); margin: 0; }
.choice-card { padding-inline: 2.75rem 1rem; }
.choice-card:hover { border-color: var(--bs-accent); }
.choice-card:has(input:checked) { border-color: var(--bs-blue); box-shadow: inset 0 0 0 1px var(--bs-blue); background: var(--bs-surface); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--bs-accent); outline-offset: 2px; }
.choice-card__title { font-weight: 500; }
.choice-card__text { font-size: .9375rem; color: var(--bs-muted); }
.choice-card__off { display: none; color: var(--bs-warn); }
.choice-card.is-off { opacity: .55; cursor: not-allowed; }
.choice-card.is-off .choice-card__off { display: block; }
.choice-list { display: grid; gap: .25rem; margin: .5rem 0; }
.choice-list .check { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: baseline; padding: .6rem .75rem; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); min-height: 44px; }
.choice-list .check:has(input:checked) { border-color: var(--bs-blue); background: var(--bs-surface); }
.choice-list__price { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-box { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2rem; padding: 1.25rem; background: var(--bs-surface); margin-bottom: 1rem; }
.price-box .field { margin: 0; min-width: 8rem; }
.price-box__amount { display: flex; flex-direction: column; }
.price-box__total { font-size: 2rem; line-height: 1.1; font-weight: 500; color: var(--bs-accent); font-variant-numeric: tabular-nums; }
.price-box__none { margin: 0; flex: 1 1 20rem; }
.card-entry { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--bs-line); }
.mandate { border-inline-start: 4px solid var(--bs-accent); background: var(--bs-surface); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.mandate h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.mandate p { font-size: .9375rem; }
.summary dd { font-weight: 500; }
.stack { display: grid; gap: 2rem; align-content: start; }
.form--compact { padding: 1.25rem; border: 1px solid var(--bs-line); }
.is-hidden { display: none !important; }

/* ---------- rebranded cradle */
.color-field { display: flex; gap: .5rem; align-items: center; }
.color-field input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--bs-line); background: none; cursor: pointer; flex: none; }
.cradle-mock { --mock-primary: #1F448C; --mock-accent: #8FA8DD; border: 1px solid var(--bs-line); border-radius: 6px; overflow: hidden; background: #fff; color: #1A1A1A; box-shadow: 0 12px 32px rgba(22,48,98,.12); margin-bottom: .75rem; font-size: .9375rem; }
.cradle-mock__bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--mock-primary); color: #fff; }
.cradle-mock__logo { width: 32px; height: 32px; object-fit: contain; }
.cradle-mock__body { padding: 1.25rem 1rem; display: grid; gap: 1rem; min-height: 11rem; }
.cradle-mock__body p { margin: 0; color: #5A6270; white-space: pre-line; }
.cradle-mock__code { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border: 2px dashed var(--mock-accent); }
.cradle-mock__code b { font-size: 1.5rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.cradle-mock__btn { justify-self: start; padding: .6rem 1.1rem; background: var(--mock-primary); color: #fff; border-radius: 2px; }
.cradle-mock__foot { padding: .6rem 1rem; border-top: 3px solid var(--mock-accent); font-size: .8125rem; color: #5A6270; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.cradle-mock__foot small { flex-basis: 100%; }

/* ---------- admin dashboards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1px; background: var(--bs-line); border: 1px solid var(--bs-line); margin: 1rem 0 2rem; }
.kpi { background: var(--bs-bg); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .2rem; }
.kpi span { font-size: .8125rem; color: var(--bs-muted); }
.kpi strong { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--bs-muted); }
.bars__cell { inline-size: 40%; }
.bars__bar { display: block; block-size: .6rem; background: var(--bs-accent); min-inline-size: 2px; }

/* ---------- cookie choice */
.consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; background: var(--bs-bg); border-top: 3px solid var(--bs-blue); box-shadow: 0 -8px 24px rgba(22,48,98,.12); max-height: 80vh; overflow-y: auto; }
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; padding-block: 1.25rem; }
.consent__text { flex: 1 1 28rem; }
.consent__text h2 { margin: 0 0 .35rem; }
.consent__text p { margin: 0 0 .5rem; font-size: .9375rem; }
.consent__more summary { cursor: pointer; color: var(--bs-accent); min-height: 44px; display: flex; align-items: center; }
.consent__more .check { display: flex; gap: .5rem; margin: .35rem 0; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media print { .consent { display: none !important; } }

/* ---------- carousel (scroll-snap; works by swipe and keyboard scroll without JS) */
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.carousel { position: relative; }
.carousel__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 4px; }
.carousel__slide { scroll-snap-align: start; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--bs-blue); color: #fff; min-height: 18rem; }
.slide a.btn--ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.slide a.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.slide__art { display: grid; grid-template-columns: repeat(3, 36px); gap: 12px; justify-content: center; }
.slide__art i { width: 36px; height: 36px; background: rgba(255,255,255,.18); }
.slide__art i.found { background: transparent; box-shadow: inset 0 0 0 6px #fff; }
.slide__kicker { margin: 0 0 .35rem; font-size: .875rem; color: var(--bs-blue-night); text-transform: none; }
.slide__title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: .75rem; }
.slide p { color: rgba(255,255,255,.88); max-width: 36rem; }
.carousel__controls { display: none; }
.carousel.is-ready .carousel__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.carousel__btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--bs-line); background: var(--bs-bg); color: var(--bs-text); cursor: pointer; border-radius: var(--bs-radius); }
.carousel__btn:hover { border-color: var(--bs-accent); color: var(--bs-accent); }
.carousel__dots { display: flex; gap: .25rem; }
.carousel__dot { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.carousel__dot::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; box-shadow: inset 0 0 0 2px var(--bs-accent); }
.carousel__dot[aria-current="true"]::after { background: var(--bs-accent); }
.carousel__dot:focus-visible, .carousel__btn:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 2px; }
.carousel__status { margin-inline-start: auto; }
@media (max-width: 48rem) { .slide { grid-template-columns: 1fr; } .slide__art { display: none; } }

/* ---------- language menu (disclosure) */
.lang-menu { position: relative; font-size: .9375rem; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .5rem; color: var(--bs-text); font-weight: 500; white-space: nowrap; border-radius: var(--bs-radius); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::before { content: ""; width: 1em; height: 1em; flex: none; border: 2px solid currentColor; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; opacity: .8; }
.lang-menu summary:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 2px; }
.lang-menu__list { position: absolute; inset-inline-end: 0; top: 100%; z-index: 60; min-width: 13rem; margin: .25rem 0 0; padding: .4rem; list-style: none; background: var(--bs-bg); border: 1px solid var(--bs-line); box-shadow: 0 8px 24px rgba(22,48,98,.12); }
.lang-menu__list a { display: block; padding: .55rem .75rem; color: var(--bs-text); text-decoration: none; min-height: 44px; box-sizing: border-box; }
.lang-menu__list a:hover { background: var(--bs-surface); color: var(--bs-accent); }
.lang-menu__list a[aria-current="true"] { color: var(--bs-accent); font-weight: 500; }
.lang-menu__all { border-top: 1px solid var(--bs-line); margin-top: .25rem; padding-top: .25rem; }
@media (max-width: 80rem) { .lang-menu__list { position: static; box-shadow: none; } }

[hidden] { display: none !important; }

/* ---------- legal pages */
.legal h2 { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.0625rem; }
.legal table { font-size: .9375rem; }
.legal th[scope="row"] { font-weight: 500; vertical-align: top; border-bottom: 1px solid var(--bs-line); }
.legal td:last-child { min-width: 7rem; }
.legal td { vertical-align: top; }
.legal__toc { padding: 1rem 1.25rem; background: var(--bs-surface); margin: 1rem 0 2rem; }
.legal__toc h2 { margin: 0 0 .5rem; }
.legal__toc ol { margin: 0; padding-inline-start: 1.25rem; columns: 2 14rem; }
