/* Modernist — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --color-accent-2-100: #fff2ef;
  --color-accent-2-200: #ffe0da;
  --color-accent-2-300: #ffc4b9;
  --color-accent-2-400: #ff9784;
  --color-accent-2-500: #ef6853;
  --color-accent-2-600: #c94b39;
  --color-accent-2-700: #9e3526;
  --color-accent-2-800: #71261b;
  --color-accent-2-900: #471d16;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.grayscale{filter:grayscale(1) contrast(1.08)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }



/* InceptionApps site — the original palette and radii, on the new navigation.
   Loaded after the design system's styles.css (type + resets). */

:root {
  --bg:            #ffffff;
  --bg-soft:       #f5f6f8;
  --surface:       #ffffff;
  --surface-2:     #f0f2f5;
  --border:        #d9dee5;
  --border-strong: #b9c1cc;

  --text:          #11151b;
  --text-muted:    #515b69;
  --text-faint:    #6b7684;

  --accent:        #FFB020;
  --accent-ink:    #7a4f00;
  --accent-soft:   rgba(255, 176, 32, .16);
  --accent-line:   rgba(255, 176, 32, .55);

  --green-ink:     #14612f;

  --radius:        14px;
  --radius-sm:     10px;
  --radius-pill:   999px;
  --shadow:        0 1px 2px rgba(16, 20, 26, .06), 0 8px 24px rgba(16, 20, 26, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #070809;
    --bg-soft:       #0A0D12;
    --surface:       #0A0D12;
    --surface-2:     #12161C;
    --border:        #1F252E;
    --border-strong: #2A313C;

    --text:          #F5F7FA;
    --text-muted:    #A8B0BD;
    --text-faint:    #8B92A0;

    --accent-ink:    #FFC257;
    --accent-soft:   rgba(255, 176, 32, .12);
    --accent-line:   rgba(255, 176, 32, .45);
    --green-ink:     #5FDD86;

    --shadow:        0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* the sticky header needs the document itself to be the scroller */
html, body { height: auto !important; min-height: 100%; }
#dc-root, #dc-root > .sc-host { height: auto !important; min-height: 100%; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--text); letter-spacing: -.02em; }
h1 { font-size: clamp(1.95rem, 1.4rem + 2.2vw, 2.8rem); margin: 0 0 .45em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); margin: 2.1em 0 .55em; }
h3 { font-size: 1.12rem; margin: 1.7em 0 .5em; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
li > ul, li > ol { margin-top: .45em; }
strong, b { font-weight: 600; }
small, .small { font-size: .875rem; }
.muted, .text-muted { color: var(--text-muted); }
.lead { font-size: 1.1rem; color: var(--text-muted); }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

code, kbd, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1em .38em;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 20px; }
.prose { max-width: 44rem; }
section { padding-block: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); }
section + section { border-top: 1px solid var(--border); }
.section-title { margin-top: 0; }
.hr, hr { height: 1px; border: 0; background: var(--border); margin: 2.5rem 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--accent); color: #14100a;
  padding: .6em 1em; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- sticky header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 26px; min-height: 58px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; margin-right: auto;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex: none; color: var(--accent); }
.brand .sub { font-weight: 400; font-size: .8rem; color: var(--text-faint); letter-spacing: 0; }

.topnav { display: flex; gap: 6px; }
.topnav a {
  color: var(--text-muted); text-decoration: none;
  font-size: .92rem; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }

/* breadcrumb strip */
.contextbar { border-top: 1px solid var(--border); background: var(--bg-soft); }
.contextbar .wrap {
  display: flex; align-items: center; gap: 14px;
  min-height: 44px; overflow-x: auto; scrollbar-width: none;
}
.contextbar .wrap::-webkit-scrollbar { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .88rem; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs .sep { color: var(--text-faint); }
.crumbs [aria-current] { font-weight: 600; color: var(--text); }
.crumbs .up {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 10px; margin-right: 4px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent-ink); font-weight: 600;
}
.crumbs .up:hover { border-color: var(--accent-line); background: var(--accent-soft); text-decoration: none; }
.crumbs .up svg { display: block; }

/* per-product document strip */
.docnav { border-top: 1px solid var(--border); background: var(--bg); }
.docnav .wrap {
  display: flex; align-items: center; gap: 6px;
  min-height: 46px; overflow-x: auto; scrollbar-width: none;
}
.docnav .wrap::-webkit-scrollbar { display: none; }
.docnav a {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 6px 13px; border-radius: var(--radius-pill);
  color: var(--text-muted); text-decoration: none; font-size: .9rem;
}
.docnav a:hover { background: var(--surface-2); color: var(--text); }
.docnav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* reading progress, on the header's bottom edge */
.readprog { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--accent); border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }

/* ---------- hero (always dark — brand band) ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(255, 176, 32, .17) 0%, rgba(255, 176, 32, 0) 55%),
    linear-gradient(180deg, #0d1117 0%, #070809 100%);
  color: #F5F7FA;
  border-bottom: 1px solid #1F252E;
  padding: clamp(2.6rem, 1.5rem + 5vw, 5rem) 0;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .heromark { display: block; color: var(--accent); margin-bottom: 1.2rem; }
img.heromark { width: 76px; height: 76px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.hero .tagline {
  margin: 0 0 .9em; color: #FFC257;
  font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero .lede { color: #C6CDD8; font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); max-width: 38rem; margin-bottom: 1.6em; }
.hero .badges { margin-top: 1.4em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .68em 1.3em; border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #14100a; }
.btn-primary:hover { background: #ffc04a; color: #14100a; }
.btn-primary:active { background: #f0a412; }
.btn-ghost, .btn-secondary { border-color: var(--border-strong); color: var(--text); background: transparent; padding: .68em 1.3em; }
.btn-ghost:hover, .btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.hero .btn-ghost { border-color: #39424f; color: #E7EBF1; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin: 0 0 .35em; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-ink);
}
.card .ico svg { display: block; }

/* ---------- callout ---------- */
.note {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 0 0 1.6em;
}
.note h3 { margin-top: 0; }
.note :last-child { margin-bottom: 0; }

/* ---------- products ---------- */
.products { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.product {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; color: inherit;
}
.product:hover { border-color: var(--accent-line); background: var(--surface-2); }
.product .mark {
  flex: none; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #12161C, #070809);
}
.product .mark img { width: 100%; height: 100%; display: block; border-radius: 13px; }
.product .body { min-width: 0; }
.product h3 { margin: 0 0 .25em; font-size: 1.1rem; }
.product h3 a { color: var(--text); text-decoration: none; }
.product h3 a:hover { color: var(--accent-ink); }
.product p { margin: 0 0 .6em; color: var(--text-muted); font-size: .95rem; }
.plats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .6em; padding: 0; list-style: none; }
.plats li {
  margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .12em .7em;
}
.plats li.soon-tag { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.stores { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; font-weight: 600; }
.stores a { color: var(--accent-ink); }

/* ---------- editorial split sections (heading beside the copy) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 4px 48px; max-width: 68rem; }
.split > h2 { margin: 0 0 .4em; }
.split > *:not(h2) { max-width: 44rem; }
@media (min-width: 920px) {
  .split { grid-template-columns: 16rem minmax(0, 1fr); }
  .split > h2 { grid-column: 1; grid-row: 1 / -1; align-self: start; font-size: 1.4rem; margin: 0; }
  .split > *:not(h2) { grid-column: 2; }
}
.split ul { list-style: none; padding: 0; margin: 0; }
.split ul li {
  margin: 0; padding: 14px 0; border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.split ul li:first-child { border-top: 0; padding-top: 0; }
.split ul li strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- documents ---------- */
.page-head { padding-top: 2.4rem; padding-bottom: .5rem; }
.updated {
  display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: .25em .9em; margin-bottom: 1.4em;
}
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 2.5rem; }
.doc-body { max-width: 68ch; }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 244px minmax(0, 1fr); gap: 48px; }
  .doc-layout > *:not(.toc) { grid-column: 2; }
  .doc-layout .toc {
    grid-column: 1; grid-row: 1 / -1; align-self: start;
    position: sticky; top: calc(var(--head-h, 148px) + 12px);
    max-height: calc(100vh - var(--head-h, 148px) - 40px); overflow-y: auto; margin-bottom: 0;
  }
}
.doc-layout > *:not(.toc) { max-width: 68ch; }

.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 12px; margin-bottom: 2.2rem;
}
.toc h2 {
  margin: 0 0 .6em; padding: 0 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; font-size: .92rem; }
.toc li { margin: 0; counter-increment: toc; }
.toc a {
  display: flex; gap: 9px; padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none;
}
.toc a::before { content: counter(toc); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc a[data-active] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.toc a[data-active]::before { color: var(--accent-ink); }

.doc h2, .doc h3, .doc-sec, .clause { scroll-margin-top: calc(var(--head-h, 148px) + 20px); }
.doc-sec { padding: 1.9rem 0 .4rem; border-top: 1px solid var(--border); }
.doc-sec:first-child { border-top: 0; padding-top: .4rem; }
.doc-sec > h2 { display: flex; align-items: baseline; gap: .55em; margin-top: 0; margin-bottom: .7em; }
.doc-sec > h2 .n {
  flex: none; font-size: .58em; font-weight: 700; line-height: 1;
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 8px;
  padding: .45em .55em; transform: translateY(-.15em); font-variant-numeric: tabular-nums;
}
.clause { margin-top: 1.7rem; padding-left: 14px; border-left: 2px solid var(--border); }
.clause > h3 { margin-top: 0; margin-bottom: .5em; font-size: 1.06rem; }
.clause > h3 .n { color: var(--text-faint); margin-right: .5em; font-variant-numeric: tabular-nums; }
.clause:hover { border-left-color: var(--accent-line); }
.clause > :last-child { margin-bottom: 0; }

.datatable { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.4em; }
.datatable th, .datatable td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.datatable thead th { font-weight: 600; background: var(--surface-2); }
.datatable tbody th { background: transparent; width: 34%; font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  padding: .15em .7em; border-radius: var(--radius-pill); border: 1px solid currentColor; white-space: nowrap;
}
.pill.no { color: var(--green-ink); }
.pill.yes { color: var(--accent-ink); }

.ph {
  display: inline-block; font-size: .85em; font-weight: 600;
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1px dashed var(--accent-line); border-radius: 6px; padding: .05em .45em;
}

/* ---------- FAQ ---------- */
.faq { margin-bottom: 1.1em; }
.faq > summary {
  cursor: pointer; font-weight: 600; padding: 12px 15px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; color: var(--accent-ink); font-weight: 700; }
.faq[open] > summary::after { content: "\2212"; }
.faq[open] > summary { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.faq .faq-body { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 15px; }
.faq .faq-body :last-child { margin-bottom: 0; }

/* ---------- forms (contact) ---------- */
.contact-form { max-width: 34rem; margin-bottom: 2rem; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: .9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.contact-form label .opt { font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 13px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.contact-form textarea { resize: vertical; }
.contact-form .counter { margin: 6px 0 0; }
.contact-mail { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.02rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--border); background: var(--bg-soft);
  padding-block: 2.4rem; margin-top: 2.5rem;
  font-size: .92rem; color: var(--text-muted);
}
.site-foot .foot-cols { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-foot .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.site-foot h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; margin: 0 0 12px; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: var(--text-muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-foot .copy { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .86rem; }

/* ---------- back to top ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 25;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 600;
  background: var(--surface); color: var(--text); text-decoration: none;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.totop[data-show] { opacity: 1; pointer-events: auto; }
.totop:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .topbar .wrap { min-height: 54px; gap: 12px; }
  .brand { font-size: .98rem; }
  .topnav { gap: 2px; }
  .topnav a { font-size: .85rem; padding: 6px 10px; }
  .contextbar .wrap { min-height: 42px; }
  .docnav .wrap { min-height: 44px; }
  .crumbs { font-size: .82rem; }
  .product { flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
  .crumbs a:not(.up), .crumbs .sep { display: none; }
  .topnav a[href$="Home.dc.html"] { display: none; }
}
