/* FDAIApps privacy policy (www.fdaiapps.com/privacy): light-first long document. Was an inline
   <style> block; fonts come from fonts.css (vendored). IBM Plex Mono is not vendored: code falls back to ui-monospace. */
:root {
  color-scheme: light;
  --paper: #f8fafe; --paper-2: #ecf1fb; --card: #ffffff;
  --rule: #dbe2ee; --rule-strong: #c5cedf;
  --ink: #071F43; --ink-2: #364865; --muted: #616978;
  --accent: #3A64E4; --accent-hover: #2c57cd; --accent-text: #2c57cd; --accent-ink: #ffffff;
  --accent-2: #1BDCEB; --focus: #3A64E4;
  --tbc-bg: #e5efff; --tbc-edge: #3A64E4; --tbc-ink: #071F43;
  --brand-gradient: linear-gradient(135deg, #1BDCEB 0%, #3A64E4 100%);
  --shadow-soft: 0 1px 3px rgba(23, 25, 60, 0.06);
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px;
  --font-display: "Montserrat", "Assistant", system-ui, sans-serif;
  --font-sans: "Assistant", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #040f23; --paper-2: #091932; --card: #112441;
    --rule: #21314a; --rule-strong: #30405a;
    --ink: #e5ecf6; --ink-2: #b9c5d8; --muted: #929fb5;
    --accent-text: #89acfa; --accent-2: #1BDCEB; --focus: #1BDCEB;
    --tbc-bg: #16295a; --tbc-edge: #89acfa; --tbc-ink: #e5ecf6;
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.34);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #040f23; --paper-2: #091932; --card: #112441;
  --rule: #21314a; --rule-strong: #30405a;
  --ink: #e5ecf6; --ink-2: #b9c5d8; --muted: #929fb5;
  --accent-text: #89acfa; --accent-2: #1BDCEB; --focus: #1BDCEB;
  --tbc-bg: #16295a; --tbc-edge: #89acfa; --tbc-ink: #e5ecf6;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.34);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--tbc-bg); color: var(--ink); }
a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:where(a, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: 0.05em 0.3em; overflow-wrap: anywhere; }

.wrap { max-width: var(--container); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 48rem) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: 16px; top: -100px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; z-index: 10; }
.skip:focus { top: 12px; }

/* nav: the one brand-gradient use is the 3px stripe on top */
.nav { position: relative; background: var(--card); border-bottom: 1px solid var(--rule); }
.nav::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-gradient); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-top: 3px; }
.mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.mark img { width: 32px; height: 32px; flex: none; }
.mark b { font-weight: 700; }
.mark .apps { font-weight: 500; }
.mark { min-height: 44px; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font: 500 0.9375rem/1 var(--font-display); }
.nav ul a { color: var(--ink-2); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.nav ul a:hover { color: var(--ink); text-decoration: underline; }
.nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
/* phones and tablets: the four links get their own row under the mark, so none is cut off */
@media (max-width: 47.99rem) {
  .nav .wrap { flex-wrap: wrap; row-gap: 0; padding-bottom: 4px; }
  .nav nav { flex: 1 1 100%; }
  .nav ul { flex-wrap: wrap; gap: 0 14px; }
}
@media (max-width: 29.99rem) { .nav .opt-full { display: none; } }
@media (min-width: 30rem) { .nav .opt-short { display: none; } }

/* header */
.doc-head { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.doc-head .wrap { padding-top: 48px; padding-bottom: 40px; }
.doc-head .inner { max-width: 70ch; }
.eyebrow { margin: 0 0 12px; font: 600 0.8125rem/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.028em; }
.updated { margin: 16px 0 0; font: 500 0.9375rem/1.4 var(--font-display); color: var(--ink-2); }
.updated time { color: var(--ink); font-weight: 600; }
.draft-note { margin: 20px 0 0; padding: 10px 14px; border: 1px dashed var(--tbc-edge); border-radius: var(--radius-sm); background: var(--card); color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.lede { margin: 24px 0 0; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }

/* layout: TOC column + reading column */
.layout { padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 64rem) {
  .layout { display: grid; grid-template-columns: 15.5rem minmax(0, 70ch); gap: 64px; justify-content: start; padding-top: 56px; }
}
.toc { margin: 0 0 40px; padding: 20px 20px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.toc h2 { margin: 0 0 10px; font-size: 0.8125rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 0.96875rem; line-height: 1.35; }
.toc li { break-inside: avoid; }
.toc a { display: flex; gap: 8px; padding: 6px 0; color: var(--ink-2); text-decoration: none; overflow-wrap: normal; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
.toc .num { flex: none; min-width: 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) and (max-width: 63.99rem) { .toc ol { columns: 2; column-gap: 32px; } }
/* touch screens: each contents and footer link is a full 44px target */
@media (pointer: coarse) { .toc a { min-height: 44px; align-items: center; padding-block: 4px; } .foot .options a, .foot .options button { min-height: 44px; } }
@media (min-width: 64rem) {
  .toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; margin: 0; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 16px; border-left: 1px solid var(--rule); border-radius: 0; }
  .toc a { padding: 5px 0; }
}

/* reading column */
.doc { max-width: 70ch; min-width: 0; }
.doc section { padding-top: 8px; }
.doc section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rule); }
.doc h2 { margin: 0 0 16px; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem); line-height: 1.25; font-weight: 700; scroll-margin-top: 24px; }
.doc h2 .num { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.doc section { scroll-margin-top: 16px; }
.doc h3 { margin: 32px 0 10px; font-size: 1.125rem; line-height: 1.3; font-weight: 600; scroll-margin-top: 24px; }
.doc h2 + h3 { margin-top: 8px; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 1.25em; }
.doc li { margin: 0 0 10px; padding-left: 0.25em; }
.doc li::marker { color: var(--accent); }
.doc strong { font-weight: 600; color: var(--ink); }
/* last element in its parent (written without the pseudo-class name) */
.doc section > :not(:has(~ *)), .doc li > :not(:has(~ *)) { margin-bottom: 0; }

/* fill-in markers for the owner: dashed highlight, kept visible on purpose */
mark.tbc { background: var(--tbc-bg); color: var(--tbc-ink); border: 1.5px dashed var(--tbc-edge); border-radius: 4px; padding: 0 0.3em; font-weight: 600; font-size: 0.92em; letter-spacing: 0.02em; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.tbc.long { white-space: normal; }

/* footer */
.foot { border-top: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-2); font-size: 0.9375rem; }
.foot .wrap { padding-top: 32px; padding-bottom: 40px; display: grid; gap: 16px; }
.foot p { margin: 0; }
.foot .company { color: var(--ink); font-weight: 600; }
.foot .options { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; }
.foot .options a { display: inline-flex; min-height: 32px; align-items: center; }
.foot .label { color: var(--muted); }

@media print {
  .nav, .toc, .skip, .foot .options-row { display: none; }
  body { background: #fff; color: #000; }
  .layout { display: block; padding: 0; }
  .doc-head { background: #fff; }
}

/* cookie banner (markup: templates/site/_consent.html, behaviour: consent.js). Both buttons share one style. */
.foot .options button { display: inline-flex; min-height: 32px; align-items: center; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; cursor: pointer; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 46rem; margin-inline: auto; padding: 16px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule-strong); box-shadow: 0 18px 48px rgba(7, 31, 67, 0.22); color: var(--ink); display: grid; gap: 16px; font-size: 0.9375rem; line-height: 1.5; }
.consent[hidden], .consent [hidden] { display: none; }
.consent p { margin: 0; }
.consent-text { display: grid; gap: 8px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-actions .btn { flex: 1 1 9.5rem; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font: 600 0.9375rem/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.consent-actions .btn:hover { background: var(--accent-hover); }
.consent-actions .btn:disabled { opacity: 0.55; cursor: not-allowed; }
:where(button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
@media (min-width: 48rem) { .consent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
@media print { .consent { display: none; } }
