/* =========================================================================
   DASFADS Surveys Nig. Ltd — Corporate Design System
   Layout concept: a surveyor's sheet — a fixed 12-col grid, generous margins,
   mono "coordinate" labels as the signature detail, deep-navy bands for
   moments of emphasis, a red benchmark tick used sparingly as the accent.
   ========================================================================= */
/* Palette follows the company logo: forest green and gold, on green-tinted neutrals. */
:root {
  /* Color */
  --bg: #ffffff;
  --surface: #f4f6f1;
  --surface-2: #e8eee5;
  --card: #ffffff;
  --line: #d9e2d5;
  --line-strong: #b8c8b9;
  --ink: #0f1f14;
  --ink-2: #29402f;
  --muted: #55685a;
  --primary: #1e6b3c;          /* logo green, tuned for buttons and links */
  --primary-hover: #17552f;
  --primary-ink: #ffffff;
  --primary-soft: #e3f0e6;
  --link: #1e6b3c;
  --accent: #8a6508;           /* gold, dark enough for small text on white */
  --accent-soft: #fbf1d3;
  --gold: #f2c14e;             /* bright gold for marks and accents on dark bands */
  --gold-hi: #f6d47e;          /* logo gold, for text on dark bands */
  --danger: #b42318;
  --ok: #157347;
  --ok-soft: #e3f4ea;
  --warn: #9a6700;
  --warn-soft: #fbf1d9;
  --band: #0b2416;             /* deep forest band */
  --band-2: #12341f;
  --band-ink: #f1f6ef;
  --band-muted: #b2c7b6;
  --band-line: rgba(178, 199, 182, 0.2);
  --shadow-1: 0 1px 2px rgba(15, 31, 20, .06), 0 2px 8px rgba(15, 31, 20, .05);
  --shadow-2: 0 10px 30px rgba(15, 31, 20, .10), 0 2px 6px rgba(15, 31, 20, .06);
  --focus: #2f8f55;

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3rem;
  --fs-xl: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  --fs-2xl: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-3xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);

  /* Space & shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --wrap: 1240px;
  --gutter: 24px;
  --header-h: 104px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #08130c; --surface: #0e1d13; --surface-2: #13271a; --card: #0f2015;
  --line: #1f3a28; --line-strong: #2e5139; --ink: #e9f1ea; --ink-2: #c8d8cb; --muted: #9bb2a0;
  --primary: #5cbf7c; --primary-hover: #79cf95; --primary-ink: #04140a; --primary-soft: #133320;
  --link: #86d39f; --accent: #e9c25a; --accent-soft: #3a2f0e; --danger: #ff7a6b; --ok: #4cc58a; --ok-soft: #0f2e20;
  --warn: #f0b84a; --warn-soft: #33270b;
  --band: #040d07; --band-2: #0b1c11; --band-ink: #f1f6ef; --band-muted: #a7bdab; --band-line: rgba(167, 189, 171, .18);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 30px rgba(0,0,0,.45);
  --focus: #79cf95;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08130c; --surface: #0e1d13; --surface-2: #13271a; --card: #0f2015;
  --line: #1f3a28; --line-strong: #2e5139; --ink: #e9f1ea; --ink-2: #c8d8cb; --muted: #9bb2a0;
  --primary: #5cbf7c; --primary-hover: #79cf95; --primary-ink: #04140a; --primary-soft: #133320;
  --link: #86d39f; --accent: #e9c25a; --accent-soft: #3a2f0e; --danger: #ff7a6b; --ok: #4cc58a; --ok-soft: #0f2e20;
  --warn: #f0b84a; --warn-soft: #33270b;
  --band: #040d07; --band-2: #0b1c11; --band-ink: #f1f6ef; --band-muted: #a7bdab; --band-line: rgba(167, 189, 171, .18);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 30px rgba(0,0,0,.45);
  --focus: #79cf95;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg, canvas { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; font-stretch: 105%; }
h1 { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 650; }
h4 { font-size: var(--fs-md); font-weight: 650; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose p { margin: 0 0 1em; }
.prose h2 { margin: 1.6em 0 .6em; font-size: var(--fs-xl); }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.lead { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: var(--r-md); z-index: 100; font-weight: 600; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 7vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--surface); }
.section.band { background: var(--band); color: var(--band-ink); }
.band h1, .band h2, .band h3, .band h4 { color: var(--band-ink); }
.band .lead, .band p { color: var(--band-muted); }
.band a:not(.btn) { color: var(--band-ink); }
.grid { display: grid; gap: var(--gutter); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.center { align-items: center; }
@media (max-width: 1024px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .split, .split.even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 16px; }

/* ---------- Section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
.band .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow, .aside-cta .eyebrow { color: var(--gold-hi); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 720px) { .sec-head.row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--primary); --b-fg: var(--primary-ink); --b-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font: 600 var(--fs-base)/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { --b-bg: var(--primary-hover); --b-bd: var(--primary-hover); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .18s; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn.ghost { --b-bg: transparent; --b-fg: var(--primary); --b-bd: var(--line-strong); }
.btn.ghost:hover { --b-bg: var(--primary-soft); --b-bd: var(--primary); }
.btn.light { --b-bg: #ffffff; --b-fg: #0b2416; --b-bd: #ffffff; }
.btn.light:hover { --b-bg: #e3f0e6; --b-bd: #e3f0e6; }
.btn.outline-light { --b-bg: transparent; --b-fg: #ffffff; --b-bd: rgba(255,255,255,.45); }
.btn.outline-light:hover { --b-bg: rgba(255,255,255,.08); --b-bd: #ffffff; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); text-decoration: none; }
.textlink svg { width: 16px; height: 16px; transition: transform .18s; }
.textlink:hover svg { transform: translateX(3px); }
.textlink:hover { text-decoration: underline; }

/* ---------- Utility bar & header ---------- */
.utilbar { background: var(--band); color: var(--band-muted); font-size: var(--fs-xs); }
.utilbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utilbar a { color: var(--band-ink); text-decoration: none; }
.utilbar a:hover { text-decoration: underline; }
.utilbar .u-left { font-family: var(--f-mono); letter-spacing: .04em; }
.utilbar .u-right { display: flex; gap: 20px; }
@media (max-width: 760px) { .utilbar .u-left { display: none; } .utilbar .wrap { justify-content: center; } }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: .06em; font-stretch: 112%; }
.brand-sub { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-link {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  border-radius: var(--r-md); color: var(--ink-2); font-weight: 500; font-size: .95rem;
  text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--surface); color: var(--ink); }
.nav-link[aria-current="page"], .nav-link.active { color: var(--primary); }
.nav-link[aria-current="page"]::after, .nav-link.active::after { content: ""; position: absolute; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-item { position: relative; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-md); border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(880px, calc(100vw - 40px)); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 24px;
  display: none;
}
.mega.narrow { width: 340px; }
.nav-item.open > .mega { display: block; animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
.mega.narrow .mega-grid { grid-template-columns: 1fr; }
.mega-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega a.m-item { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); align-items: flex-start; }
.mega a.m-item:hover { background: var(--surface); }
.mega .m-ico { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.mega .m-ico svg { width: 18px; height: 18px; }
.mega .m-t { font-weight: 600; font-size: .92rem; line-height: 1.3; display: block; }
.mega .m-d { font-size: .8rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.mega-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }

@media (max-width: 1240px) {
  .mainnav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 13, 7, .55); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--bg); overflow-y: auto; animation: slidein .22s ease-out;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) 20px;
  display: flex; flex-direction: column; gap: 8px;
}
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer .d-link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.drawer .d-link { border-bottom: 1px solid var(--line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details ul { list-style: none; padding: 0 0 12px 4px; display: grid; gap: 2px; }
.drawer details a { display: block; padding: 9px 8px; color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); }
.drawer details a:hover { background: var(--surface); }
.drawer .btn { margin-top: 12px; }

/* ---------- Search dialog ---------- */
.search-dialog { position: fixed; inset: 0; z-index: 90; display: none; }
.search-dialog.open { display: block; }
.search-box {
  position: relative; margin: calc(env(safe-area-inset-top, 0px) + 10vh) auto 0; width: min(680px, calc(100% - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden;
}
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search-input-row svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-input-row input { flex: 1; min-width: 0; height: 60px; border: 0; background: none; font: 400 1.1rem var(--f-body); color: var(--ink); outline: none; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; list-style: none; }
.search-results a { display: block; padding: 12px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a.sel { background: var(--surface); }
.search-results .sr-t { font-weight: 600; }
.search-results .sr-s { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-right: 8px; }
.search-results .sr-d { font-size: var(--fs-sm); color: var(--muted); display: block; margin-top: 2px; }
.search-empty { padding: 24px; color: var(--muted); text-align: center; }
.search-hint { padding: 10px 16px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); font-family: var(--f-mono); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--band); color: var(--band-ink); overflow: hidden; isolation: isolate; }
.hero canvas.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--band) 0%, color-mix(in srgb, var(--band) 80%, transparent) 45%, transparent 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: clamp(64px, 9vw, 120px) clamp(56px, 7vw, 96px); }
.hero h1 { color: #ffffff; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.3rem); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.hero .lead { color: var(--band-muted); max-width: 58ch; margin-top: 22px; font-size: 1.15rem; }
.hero .btn-row { margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--band-line); font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--band-muted); text-transform: uppercase; }
.hero-meta b { color: #ffffff; font-weight: 500; }
.hero-in > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; } .hero-in > *:nth-child(3) { animation-delay: .16s; } .hero-in > *:nth-child(4) { animation-delay: .24s; } .hero-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

.readout {
  background: rgba(6, 26, 58, .72); border: 1px solid var(--band-line); border-radius: var(--r-lg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 22px; font-family: var(--f-mono); font-size: .8rem; color: var(--band-muted);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.readout-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--band-line); margin-bottom: 14px; }
.readout-head .live { display: inline-flex; gap: 8px; align-items: center; color: #ffffff; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.readout-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,.05); } }
.readout dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0; }
.readout dt { color: var(--band-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; align-self: center; }
.readout dd { margin: 0; color: #ffffff; text-align: right; font-variant-numeric: tabular-nums; }
.readout .qc { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--band-line); display: flex; justify-content: space-between; gap: 12px; }
.readout .qc span { color: #3ddc84; }
.readout .ro-note { margin-top: 10px; font-size: .64rem; color: var(--band-muted); opacity: .8; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .readout { max-width: 460px; } }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; background: var(--band); color: var(--band-ink); overflow: hidden; isolation: isolate; }
.page-hero .grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--band-line) 1px, transparent 1px), linear-gradient(90deg, var(--band-line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 0%, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
.page-hero .wrap { padding-block: clamp(44px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.page-hero h1 { color: #ffffff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); max-width: 22ch; }
.page-hero .lead { color: var(--band-muted); max-width: 62ch; margin-top: 18px; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero .ph-icon { width: 132px; height: 132px; border: 1px solid var(--band-line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi); position: relative; }
.page-hero .ph-icon svg { width: 52px; height: 52px; stroke-width: 1.3; }
.page-hero .ph-icon::before, .page-hero .ph-icon::after { content: ""; position: absolute; background: var(--band-line); }
.page-hero .ph-icon::before { width: 172px; height: 1px; }
.page-hero .ph-icon::after { width: 1px; height: 172px; }
@media (max-width: 760px) { .page-hero .wrap { grid-template-columns: minmax(0,1fr); } .page-hero .ph-icon { display: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; color: var(--band-muted); }
.crumbs a { color: var(--band-muted); text-decoration: none; }
.crumbs a:hover { color: #ffffff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs [aria-current] { color: #ffffff; }

/* Sub nav (section tabs) */
.subnav { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; }
.subnav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 14px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-link:hover { border-color: var(--primary); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-link .textlink { margin-top: auto; padding-top: 18px; }
.card-link:hover .textlink svg { transform: translateX(3px); }
.ico { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 20px; flex: none; }
.ico svg { width: 24px; height: 24px; }
.svc-card .coord { position: absolute; top: 24px; right: 24px; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.feature .ico { margin: 0; }
.feature h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* list with ticks */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-2); }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231e6b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
@media (max-width: 620px) { .ticks.cols { grid-template-columns: minmax(0,1fr); } }
.band .ticks li { color: var(--band-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }

/* Callouts */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--primary); background: var(--surface); padding: 20px 22px; border-radius: var(--r-md); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.callout svg { width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.callout.warn { border-left-color: var(--gold); }
.callout.warn svg { color: var(--accent); }
.callout h4 { font-size: var(--fs-base); margin-bottom: 4px; }
.callout p { color: var(--ink-2); font-size: .95rem; }

/* Process (real sequence) */
.process { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.process li { position: relative; padding: 0 18px 0 0; }
.process .p-num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--primary); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.band .process .p-num { color: var(--gold-hi); }
.process .p-num::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: var(--bg); flex: none; position: relative; z-index: 1; }
.band .process .p-num::before { background: var(--band); }
.process .p-num::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.band .process .p-num::after { background: var(--band-line); }
.process li:last-child .p-num::after { display: none; }
.process h3 { font-size: var(--fs-base); margin-bottom: 6px; }
.process p { font-size: .9rem; color: var(--muted); }
[hidden] { display: none !important; }
.process.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process.c1 { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
.process.c1 li { padding: 0 0 0 30px; }
.process.c1 .p-num { margin-bottom: 4px; }
.process.c1 .p-num::after { display: none; }
.process.c1 .p-num::before { position: absolute; left: 0; top: 4px; }
@media (max-width: 1024px) { .process.c5, .process.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 1024px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 620px) { .process, .process.c5, .process.c4 { grid-template-columns: minmax(0,1fr); } .process li { padding: 0 0 0 30px; } .process .p-num { margin-bottom: 8px; } .process .p-num::after { display: none; } .process .p-num::before { position: absolute; left: 0; top: 4px; } .process li::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: -36px; width: 2px; background: var(--line); } .process li:last-child::before { display: none; } }

/* Stats strip — structural facts only */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts .f-n { font-family: var(--f-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 700; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.facts .f-l { font-size: var(--fs-sm); color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(2) { border-right: 0; } .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Service finder ---------- */
.finder { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: clamp(22px, 3vw, 36px); }
.finder-q { font-family: var(--f-display); font-weight: 650; font-size: var(--fs-lg); margin-bottom: 18px; }
.finder-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink-2); font: 500 .95rem var(--f-body); cursor: pointer; transition: all .15s; }
.opt:hover { border-color: var(--primary); color: var(--primary); }
.opt[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.finder-out { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 24px; align-items: start; }
.finder-out .fo-label { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.finder-out > div { width: 100%; }
.finder-out ul { list-style: none; display: grid; gap: 8px; }
.finder-out li a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; transition: background .15s; }
.finder-out li a:hover { background: var(--primary-soft); }
.finder-out li a svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.finder-out li a .why { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: auto; text-align: right; }
@media (max-width: 760px) { .finder-out { grid-template-columns: minmax(0,1fr); } .finder-out li a .why { display: none; } }

/* Industry tiles */
.ind-tile { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); background: var(--card); transition: all .2s; }
.ind-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-1); }
.ind-tile .ico { margin: 0; width: 44px; height: 44px; }
.ind-tile b { font-weight: 600; line-height: 1.3; }
.ind-tile .arrow { margin-left: auto; width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform .2s, color .2s; }
.ind-tile:hover .arrow { color: var(--primary); transform: translateX(3px); }

/* Status lifecycle */
.lifecycle { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lifecycle li { padding: 14px; border-radius: var(--r-md); border: 1px solid var(--band-line); background: rgba(255,255,255,.03); font-size: .86rem; color: var(--band-ink); position: relative; }
.lifecycle li .n { display: block; font-family: var(--f-mono); font-size: .68rem; color: var(--gold-hi); letter-spacing: .1em; margin-bottom: 6px; }
.lifecycle li.on { border-color: var(--gold-hi); background: rgba(242, 193, 78, .1); }
.lifecycle.light li { border-color: var(--line); background: var(--card); color: var(--ink); }
.lifecycle.light li .n { color: var(--primary); }
.lifecycle.light li.on { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 900px) { .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Service detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail-main > section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.detail-main > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.detail-main h2 { font-size: var(--fs-xl); margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.detail-main h2 .idx { font-family: var(--f-mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; font-weight: 500; }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); display: grid; gap: 16px; }
.aside .card { padding: 22px; }
.toc { list-style: none; display: grid; gap: 2px; font-size: .92rem; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.on { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.aside-cta { background: var(--band); border: 0; color: var(--band-ink); }
.aside-cta h3 { color: #ffffff; font-size: var(--fs-md); }
.aside-cta p { color: var(--band-muted); font-size: .92rem; margin: 8px 0 18px; }
.label-sm { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0,1fr); } .aside { position: static; } .aside .toc-card { display: none; } }

.deliv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; }
.deliv li { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); display: flex; gap: 12px; align-items: center; font-weight: 500; font-size: .95rem; }
.deliv li svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* Accordions */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: all .2s; }
.acc summary .pm svg { width: 14px; height: 14px; transition: transform .2s; }
.acc details[open] summary .pm { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.acc details[open] summary .pm svg { transform: rotate(45deg); }
.acc .acc-body { padding: 0 4px 22px; color: var(--ink-2); max-width: 75ch; }
.acc .acc-body p + p { margin-top: .8em; }
.acc .tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 4px; margin-right: 10px; vertical-align: middle; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: radial-gradient(circle at 85% 30%, transparent 0 80px, var(--band-line) 81px 82px, transparent 83px 140px, var(--band-line) 141px 142px, transparent 143px 200px, var(--band-line) 201px 202px, transparent 203px 260px, var(--band-line) 261px 262px, transparent 263px); }
.cta-band .wrap { padding-block: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #ffffff; max-width: 22ch; }
.cta-band p { color: var(--band-muted); max-width: 60ch; margin-top: 14px; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: minmax(0,1fr); } }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: clamp(22px, 3.5vw, 40px); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fgrid { grid-template-columns: minmax(0,1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .flabel { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: 400 1rem var(--f-body); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { font-size: .82rem; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-md); padding: 26px; text-align: center; color: var(--muted); background: var(--surface); cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.dropzone svg { width: 28px; height: 28px; color: var(--primary); margin-bottom: 8px; }
.dropzone b { color: var(--primary); }
.file-list { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .88rem; background: var(--card); }
.file-list li .fsz { color: var(--muted); font-family: var(--f-mono); font-size: .75rem; margin-left: auto; }
.file-list li.bad { border-color: var(--danger); color: var(--danger); }
.file-list button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: grid; }
.file-list button svg { width: 16px; height: 16px; }

/* Segmented type picker */
.typepick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.typepick label { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; background: var(--bg); transition: all .15s; }
.typepick label:hover { border-color: var(--primary); }
.typepick input { position: absolute; opacity: 0; pointer-events: none; }
.typepick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.typepick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.typepick .tp-ico { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.typepick label:has(input:checked) .tp-ico { background: var(--primary); color: var(--primary-ink); }
.typepick .tp-ico svg { width: 20px; height: 20px; }
.typepick label:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 14px; }
.typepick b { font-size: .95rem; line-height: 1.3; }
.typepick small { color: var(--muted); font-size: .8rem; line-height: 1.4; }

/* Wizard */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin-bottom: 32px; }
.steps li { display: grid; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps li.done::before, .steps li.cur::before { background: var(--primary); }
.steps li.cur { color: var(--ink); font-weight: 600; }
.steps li .sn { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; }
@media (max-width: 560px) { .steps li .st { display: none; } }
.wiz-step[hidden] { display: none !important; }
.wiz-step h3 { margin-bottom: 6px; }
.wiz-step h3:focus { outline: none; }
.wiz-step > .muted { margin-bottom: 24px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.review > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.review > div:nth-child(odd) { background: var(--surface); }
.review > div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 560px) { .review > div { grid-template-columns: minmax(0,1fr); gap: 2px; } }
.success { text-align: center; padding: 24px 0; display: grid; justify-items: center; gap: 14px; }
.success .s-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.success .s-ico svg { width: 36px; height: 36px; }
.refno { font-family: var(--f-mono); font-size: 1.4rem; letter-spacing: .08em; padding: 12px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink); background: var(--surface); }
.preview-note { font-size: .8rem; color: var(--warn); background: var(--warn-soft); padding: 8px 12px; border-radius: var(--r-sm); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font: 600 .95rem var(--f-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tabs button:hover { color: var(--ink); }

/* Tools */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tool-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.tool-out > div { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; }
.tool-out .v { font-family: var(--f-mono); font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tool-out .u { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.inline-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }

/* Checklist tool */
.checklist { list-style: none; display: grid; gap: 8px; }
.checklist label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--card); transition: all .15s; }
.checklist label:has(input:checked) { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.checklist input { width: 20px; height: 20px; accent-color: var(--ok); margin: 2px 0 0; }
.checklist b { display: block; font-weight: 600; }
.checklist small { color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 10px 0 20px; }
.meter > span { display: block; height: 100%; background: var(--ok); width: 0; transition: width .3s; }

/* Department directory */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; align-items: center; }
.searchfield { position: relative; flex: 1 1 260px; max-width: 420px; }
.searchfield svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.searchfield input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink); font: 400 .95rem var(--f-body); }
.searchfield input:focus { outline: none; border-color: var(--primary); }
.dept-card { display: flex; flex-direction: column; gap: 10px; }
.dept-card .d-code { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--accent); }
.dept-card .d-group { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.dept-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dept-card ul li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.dept-card .textlink { margin-top: auto; padding-top: 8px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

/* Guides article */
.article-list { display: grid; gap: 0; }
.guide { padding-block: 40px; border-bottom: 1px solid var(--line); }
.guide:first-child { padding-top: 0; }
.guide .g-meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.guide h2 { font-size: var(--fs-xl); margin-bottom: 16px; }
.reading-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; background: var(--gold); width: 0; z-index: 70; transition: width .1s linear; }

/* Download rows */
.dl-list { list-style: none; border-top: 1px solid var(--line); }
.dl-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.dl-list .ico { margin: 0; }
.dl-list h3 { font-size: var(--fs-base); }
.dl-list p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.dl-list .fmt { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 620px) { .dl-list li { grid-template-columns: auto minmax(0, 1fr); } .dl-list li .btn { grid-column: 1 / -1; } }

/* Contact */
.contact-block { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-block:first-child { padding-top: 0; }
.contact-block .label-sm { margin-bottom: 4px; }
.pending { color: var(--muted); font-style: italic; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn { background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 4px 10px; font: 500 .78rem var(--f-body); color: var(--ink-2); cursor: pointer; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Legal */
.legal-note { font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); font-size: .92rem; }
.site-footer .wrap { padding-block: 72px 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.site-footer h4 { color: #ffffff; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--band-muted); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .brand { color: #ffffff; margin-bottom: 18px; }
.site-footer .brand-sub { color: var(--band-muted); }
.site-footer .f-about { max-width: 34ch; }
.f-contact { margin-top: 20px; display: grid; gap: 8px; font-size: .86rem; }
.f-contact span { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--gold-hi); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--band-line); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom .reg { font-family: var(--f-mono); letter-spacing: .04em; }
@media (max-width: 1024px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: minmax(0,1fr); } }

/* Back to top */
.to-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); border: 0; display: grid; place-items: center; box-shadow: var(--shadow-2); cursor: pointer; z-index: 45; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-md); font-size: .9rem; z-index: 95; opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Misc */
.divider-coord { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.divider-coord::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.pill.red { background: var(--accent-soft); color: var(--accent); }
.media-panel { border-radius: var(--r-lg); overflow: hidden; background: var(--band); position: relative; aspect-ratio: 5 / 4; max-width: 100%; }
.media-panel svg { width: 100%; height: 100%; display: block; }
.quote { font-family: var(--f-display); font-size: var(--fs-xl); line-height: 1.35; font-weight: 500; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 24px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; font-size: .92rem; }
.kv dt { color: var(--muted); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; color: var(--ink); }
.value-card { border-top: 3px solid var(--primary); }
.value-card .v-k { font-family: var(--f-mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 560px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; } }

/* ---------- Company logo ---------- */
.site-header .wrap { transition: height .22s ease; }
.brand-logo { display: block; width: calc(var(--header-h) - 16px); height: calc(var(--header-h) - 16px); object-fit: contain; flex: none; transition: width .22s ease, height .22s ease; }
html.scrolled { --header-h: 76px; }
@media (max-width: 1240px) { :root, html.scrolled { --header-h: 76px; } }
.drawer .brand-logo { width: 60px; height: 60px; }
.brand-text { border-left: 1px solid var(--line); padding-left: 12px; }
@media (max-width: 400px) { .site-header .brand-text { display: none; } }

.hero-seal { margin: 0; display: grid; justify-items: center; gap: 18px; }
.seal-plate {
  width: min(400px, 100%); aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  background: #ffffff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.07), 0 0 0 24px rgba(255,255,255,.035), 0 40px 80px rgba(0,0,0,.45);
}
.seal-logo { width: 85%; height: auto; display: block; }
.hero-seal figcaption { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); text-align: center; }
@media (max-width: 960px) { .hero .wrap { gap: 40px; } .seal-plate { width: 300px; } }

.footer-logo { display: inline-grid; place-items: center; width: 188px; height: 188px; border-radius: 50%; background: #ffffff; margin-bottom: 22px; box-shadow: 0 0 0 8px rgba(255,255,255,.06); }
.footer-logo img { width: 168px; height: 168px; display: block; }
.about-logo { margin-top: 28px; max-width: 340px; }
.about-logo img { width: 100%; height: auto; display: block; }
.logo-chip { width: 64px; height: 64px; flex: none; }
.logo-chip img { width: 64px; height: 64px; display: block; }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--ink);
  font: 600 .82rem var(--f-mono); letter-spacing: .06em; cursor: pointer;
}
.lang-btn:hover, .lang.open .lang-btn { border-color: var(--line-strong); background: var(--surface); }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 31, 20, .14); flex: none; display: block; overflow: hidden; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  padding: 6px; list-style: none; display: none;
}
.lang.open .lang-menu { display: block; animation: langdrop .16s ease-out; }
@keyframes langdrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu a { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-size: .93rem; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--surface); }
.lang-menu a[aria-current] { background: var(--primary-soft); font-weight: 600; }
.lang-menu b { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.lang-menu .tick { width: 16px; height: 16px; color: var(--primary); }
@media (max-width: 420px) { .lang-btn { padding: 0 8px; gap: 5px; } .lang-btn .chev { display: none; } .header-actions { gap: 4px; } }

/* ---------- Language-specific typography ---------- */
html:lang(zh) {
  --f-body: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --f-display: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(zh) h4 { letter-spacing: 0; font-stretch: 100%; line-height: 1.3; }
html:lang(zh) body { line-height: 1.8; }
html:lang(zh) .eyebrow, html:lang(zh) .label-sm { letter-spacing: .08em; }
.translation-note { margin-bottom: 1.5em; }
html:lang(en) .translation-note, html:not([lang]) .translation-note { display: none; }

/* Header fit with the language switcher (longer labels in FR/ES/NL) */
.nav-link .chev, .lang-btn .chev, .lang-btn .flag, .icon-btn svg { flex: none; }
.nav-link { padding: 0 10px; }
.site-header .wrap { gap: 18px; }
@media (max-width: 1440px) { .site-header .brand-text { display: none; } }
@media (max-width: 1240px) { .site-header .brand-text { display: grid; } }
@media (max-width: 400px) { .site-header .brand-text { display: none; } }
.site-header .wrap, .utilbar .wrap { max-width: 1480px; }
