/* AI Privacy Filter — project page.
   Tokens follow the portfolio's pill dashboard (sabersojudi.com): light/dark
   surfaces, the portfolio author mark, blue actions and self-hosted Plex Sans.
   No build step or font service. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Bold-Latin1.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg-page: #f9fafb;
  --bg-shell: #f9fafb;
  --bg-card: #ffffff;
  --bg-inset: #f3f4f6;
  --bg-inset-hover: #e9ebef;
  --bg-chip: #f3f4f6;
  --ink: #111827;
  --ink-2: #374151;
  --ink-muted: #626d7f;
  --ink-faint: #9ca3af;
  --on-ink: #ffffff;
  --on-accent: #ffffff;
  --hairline: #e5e7eb;
  --hairline-strong: #cbd1db;
  --header-bg: rgba(255, 255, 255, .92);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-ring: #bfdbfe;
  --accent-ink: #1e40af;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 12px 32px -16px rgba(17, 24, 39, .18);
  --shadow-soft: 0 1px 2px rgba(17, 24, 39, .04);
  --r-card: 24px;
  --r-tile: 16px;
  --r-pill: 999px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Inter", ui-sans-serif, system-ui, sans-serif;
  --r-action: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; /* taste-skill-ignore: literal code tokens */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  color-scheme: light;

  /* personal-data highlight palette */
  --ent-person-bg: #ede9fe; --ent-person-ink: #5b21b6; --ent-person-line: #c4b5fd;
  --ent-org-bg: #e0e7ff; --ent-org-ink: #3730a3; --ent-org-line: #a5b4fc;
  --ent-email-bg: #dbeafe; --ent-email-ink: #1e40af; --ent-email-line: #93c5fd;
  --ent-phone-bg: #fef3c7; --ent-phone-ink: #92400e; --ent-phone-line: #fcd34d;
  --ent-iban-bg: #d1fae5; --ent-iban-ink: #065f46; --ent-iban-line: #6ee7b7;
  --ent-address-street-bg: #ffedd5; --ent-address-street-ink: #9a3412; --ent-address-street-line: #fdba74;
  --ent-postcode-city-bg: #fce7f3; --ent-postcode-city-ink: #9d174d; --ent-postcode-city-line: #f9a8d4;
  --ent-url-bg: #cffafe; --ent-url-ink: #155e75; --ent-url-line: #67e8f9;
  --ent-vat-id-bg: #ecfccb; --ent-vat-id-ink: #3f6212; --ent-vat-id-line: #bef264;
  --ent-date-of-birth-bg: #ffe4e6; --ent-date-of-birth-ink: #9f1239; --ent-date-of-birth-line: #fda4af;

  /* chart palette: Okabe-Ito, colour-blind safe; three series at most.
     All three clear 3:1 against the light card (#ffffff). */
  --chart-1: #0072b2;
  --chart-2: #d55e00;
  --chart-3: #009e73;
  --chart-grid: #e5e7eb;
  --chart-axis: #6b7280;
  --chart-whisker: #111827;
  --chart-whisker-edge: transparent;
}

:root[data-theme="dark"] {
  --bg-page: #030712;
  --bg-shell: #0b0f19;
  --bg-card: #111827;
  --bg-inset: #1a2232;
  --bg-inset-hover: #222c40;
  --bg-chip: #1a2232;
  --ink: #f9fafb;
  --ink-2: #d1d5db;
  --ink-muted: #a6afbe;
  --ink-faint: #6b7280;
  --on-ink: #111827;
  --on-accent: #0b0f19;
  --hairline: #263246;
  --hairline-strong: #394861;
  --header-bg: rgba(17, 24, 39, .92);
  --accent: #60a5fa;
  --accent-strong: #93c5fd;
  --accent-soft: #192e4e;
  --accent-ring: rgba(96, 165, 250, .42);
  --accent-ink: #bfdbfe;
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, .14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .13);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;

  --ent-person-bg: rgba(167, 139, 250, .2); --ent-person-ink: #ddd6fe; --ent-person-line: rgba(167, 139, 250, .55);
  --ent-org-bg: rgba(129, 140, 248, .2); --ent-org-ink: #e0e7ff; --ent-org-line: rgba(129, 140, 248, .55);
  --ent-email-bg: rgba(96, 165, 250, .2); --ent-email-ink: #dbeafe; --ent-email-line: rgba(96, 165, 250, .55);
  --ent-phone-bg: rgba(251, 191, 36, .18); --ent-phone-ink: #fef3c7; --ent-phone-line: rgba(251, 191, 36, .55);
  --ent-iban-bg: rgba(52, 211, 153, .18); --ent-iban-ink: #d1fae5; --ent-iban-line: rgba(52, 211, 153, .55);
  --ent-address-street-bg: rgba(251, 146, 60, .18); --ent-address-street-ink: #ffedd5; --ent-address-street-line: rgba(251, 146, 60, .55);
  --ent-postcode-city-bg: rgba(244, 114, 182, .18); --ent-postcode-city-ink: #fce7f3; --ent-postcode-city-line: rgba(244, 114, 182, .55);
  --ent-url-bg: rgba(34, 211, 238, .16); --ent-url-ink: #cffafe; --ent-url-line: rgba(34, 211, 238, .5);
  --ent-vat-id-bg: rgba(163, 230, 53, .16); --ent-vat-id-ink: #ecfccb; --ent-vat-id-line: rgba(163, 230, 53, .5);
  --ent-date-of-birth-bg: rgba(251, 113, 133, .18); --ent-date-of-birth-ink: #ffe4e6; --ent-date-of-birth-line: rgba(251, 113, 133, .55);

  /* chart palette on the dark card (#131a29): lighter Okabe-Ito tones. */
  --chart-1: #56b4e9;
  --chart-2: #e69f00;
  --chart-3: #009e73;
  --chart-grid: #26304a;
  --chart-axis: #9ca3af;
  --chart-whisker: #e5e7eb;
  --chart-whisker-edge: rgba(11, 15, 25, .9);
}

/* Base and typography. All evidence remains readable before any interaction. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-page); scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; background: var(--bg-page); color: var(--ink-2);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; color: inherit; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
img, svg { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.025em; font-weight: 500; max-width: 24ch; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; font-weight: 500; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
p { text-wrap: pretty; max-width: 75ch; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); }
.skip:focus { top: 12px; }
.lead { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.fine, .loading { font-size: 13px; line-height: 1.55; color: var(--ink-muted); margin-top: 16px; }

/* Portfolio header and detached utility rail, adapted from LIVECell Audit. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); } /* taste-skill-ignore: selected portfolio header */
.header-inner { width: min(1440px, 100%); margin-inline: auto; padding: 16px 40px; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.portfolio-brand { font-family: var(--font-brand); font-size: 20px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { position: relative; padding: 8px 0; color: var(--ink-2); font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease); }
.nav a[aria-current="location"]::after { transform: scaleX(1); }
.nav a:hover, .portfolio-brand:hover { color: var(--accent-strong); }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-width: 0; }
.project-badge { padding: 8px 14px; border: 1px solid var(--hairline); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.portfolio-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border-radius: 8px; font-size: 13px; text-decoration: none; white-space: nowrap; }
.portfolio-back svg { width: 16px; height: 16px; }
.portfolio-back:hover, .project-badge:hover { background: var(--bg-inset); }
.page-shell { width: min(1440px, 100%); margin-inline: auto; padding: 40px 40px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 24px; align-items: start; }
main { min-width: 0; }
.utility-rail { position: sticky; top: 116px; display: flex; flex-direction: column; gap: 24px; }
.seg { display: flex; flex-direction: column; gap: 4px; padding: 4px; background: var(--bg-card); border-radius: var(--r-pill); }
.seg button, .icon-btn { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-pill); color: var(--ink-2); background: transparent; font-size: 13px; font-weight: 600; text-decoration: none; }
.seg svg { width: 18px; height: 18px; }
.seg button:hover, .icon-btn:hover { background: var(--bg-inset); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--bg-inset); color: var(--ink); }
#lang button[aria-pressed="true"], .rail-nav a[aria-current="location"] { background: var(--ink); color: var(--on-ink); }
.rail-nav { margin-top: 64px; }

/* Introduction: explanation and an actual JSON-derived output fragment. */
.hero { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-copy { min-width: 0; }
.project-context { margin-bottom: 12px; color: var(--ink-muted); font-size: 13px; }
.hero .lead { margin-top: 16px; max-width: 62ch; font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-card); border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px; font-weight: 400; }
.tags svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.hero-card { background: var(--bg-card); border-radius: var(--r-card); padding: 24px; min-width: 0; }
.preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.preview-head strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.hero-message { background: var(--bg-inset); border-radius: var(--r-tile); padding: 16px 20px; color: var(--ink-2); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.hero-message .loading { white-space: normal; margin: 0; }
.boundary-note { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--r-tile); padding: 16px; margin-top: 16px; font-size: 13px; }
.boundary-note strong { display: block; margin-bottom: 6px; font-weight: 600; }
.hero-evidence { margin-top: 40px; }
.overview-evidence-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 20px; }
.overview-evidence-head h2 { font-size: 24px; }
.overview-evidence-head p { font-size: 13px; color: var(--ink-muted); max-width: 45ch; }
.evidence-caveat { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; background: var(--bg-inset); border-radius: var(--r-tile); padding: 16px 20px; margin-top: 16px; font-size: 13px; }
.evidence-caveat p { max-width: 70ch; }
.evidence-caveat a { color: var(--ink); font-weight: 500; }
.evidence-caveat a:hover { color: var(--accent); }
.role-strip { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 2fr); gap: 24px; padding-top: 24px; }
.role-strip h2 { font-size: 16px; line-height: 1.6; }
.role-strip p { font-size: 14px; max-width: 75ch; }

/* Shared actions, archive chips and section rhythm. */
.btn { min-height: 44px; padding: 10px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-action); font-size: 15px; line-height: 1.5; font-weight: 400; text-decoration: none; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary, .btn-accent { background: var(--accent); color: var(--on-accent); }
.project-source { background: var(--ink); color: var(--on-ink); }
.project-source:hover { opacity: .9; }
.github-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-links .github-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-links .github-icon { width: 16px; height: 16px; flex: none; }
.btn-primary:hover, .btn-accent:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--bg-inset); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-inset-hover); }
.btn-small { padding-inline: 14px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--bg-inset); color: var(--ink-2); font-size: 13px; line-height: 1.55; font-weight: 500; max-width: 100%; }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-success { background: var(--success-soft); color: var(--success); }
.section { margin-top: 64px; min-width: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.4fr); align-items: start; gap: 24px 40px; margin-bottom: 24px; }
.section-head .lead { max-width: 67ch; }

/* Four measured KPIs. Values, labels, counts and intervals are JSON-derived. */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; background: var(--bg-card); border-radius: var(--r-card); padding: 20px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.stat-value { font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.stat-value, .stat-note, .chart-table, .table-wrap { font-variant-numeric: tabular-nums; }
.stat-note { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.stat-label { margin-top: 10px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink-2); }
.kpi-ci-wrap { display: block; margin-top: auto; padding-top: 16px; }
.kpi-ci-btn { min-height: 32px; padding: 4px 10px; border: 0; border-radius: var(--r-pill); background: var(--bg-inset); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; cursor: help; }
.kpi-ci-btn:hover { background: var(--bg-inset-hover); color: var(--ink); }
.kpi-ci { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 58px; border-radius: 8px; background: var(--ink); color: var(--on-ink); padding: 10px 12px; font-size: 13px; line-height: 1.5; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease); }
.kpi:hover .kpi-ci, .kpi:focus-within .kpi-ci { opacity: 1; visibility: visible; transform: none; }

/* Browser-only demo. */
.try-card { background: var(--bg-card); border-radius: var(--r-card); padding: 24px; }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin-bottom: 24px; background: var(--success-soft); color: var(--success); border-radius: var(--r-tile); font-size: 13px; line-height: 1.55; }
.banner svg { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.try-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.try-pane { min-width: 0; display: flex; flex-direction: column; }
.try-label { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
#try-input { width: 100%; min-height: 260px; resize: vertical; padding: 18px; border: 1px solid var(--hairline-strong); border-radius: var(--r-tile); background: var(--bg-inset); color: var(--ink); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
#try-input::placeholder { color: var(--ink-muted); opacity: 1; }
#try-input:focus-visible { border-color: var(--accent); }
.try-out { flex: 1; min-height: 260px; padding: 18px; border-radius: var(--r-tile); background: var(--bg-inset); color: var(--ink-2); font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.try-out.is-empty { display: grid; place-items: center; text-align: center; font-size: 14px; color: var(--ink-muted); }
.try-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.try-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); min-height: 24px; }
.try-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.try-note { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-muted); max-width: 70ch; }

/* Complete original → model → restored example, then the browsable archive. */
.example-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.demo-col { background: var(--bg-card); border-radius: var(--r-card); min-width: 0; overflow: hidden; }
.demo-col header { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--bg-inset); }
.demo-col header strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.demo-col header span { font-size: 13px; color: var(--ink-muted); }
.demo-col.final header { background: var(--accent-soft); }
.demo-col.final header span { color: var(--accent-ink); }
.demo-body { padding: 20px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-foot { display: flex; align-items: flex-start; gap: 8px; background: var(--bg-inset); margin: 0 12px 12px; padding: 12px; border-radius: var(--r-tile); color: var(--ink-2); font-size: 13px; }
.demo-foot svg { width: 16px; height: 16px; margin-top: 2px; color: var(--success); flex: none; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--bg-inset); flex: none; }
.legend code { font-family: var(--mono); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter { min-height: 44px; border: 0; border-radius: var(--r-pill); padding: 10px 16px; background: var(--bg-card); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; }
.filter:hover { background: var(--bg-inset-hover); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.gallery-count { margin-bottom: 20px; color: var(--ink-muted); font-size: 13px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ex-card { display: flex; flex-direction: column; min-width: 0; background: var(--bg-card); border-radius: var(--r-card); padding: 20px; }
.ex-card.has-miss { outline: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); outline-offset: -1px; }
.ex-top { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; margin-bottom: 16px; }
.ex-red { margin: 0 0 16px; padding: 14px; border-radius: var(--r-tile); background: var(--bg-inset); color: var(--ink-2); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.ex-card details { margin-top: auto; }
.ex-card summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--accent-strong); list-style: none; }
.ex-card summary::-webkit-details-marker { display: none; }
.ex-card summary::after { content: "+"; color: var(--ink-muted); font-size: 20px; }
.ex-card details[open] summary::after { content: "−"; }
.ex-card summary:hover { color: var(--ink); }
.ex-orig { margin-top: 8px; padding-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-complete { margin-top: 16px; }
.ex-complete strong { display: block; font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.miss-box { margin-top: 12px; padding: 12px; border-radius: var(--r-tile); background: var(--danger-soft); color: var(--danger); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.miss-box strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.miss-box ul { margin: 0; padding-left: 18px; }
.miss-box .miss-type { font-weight: 600; }
.empty { grid-column: 1 / -1; padding: 24px; background: var(--bg-inset); border-radius: var(--r-tile); color: var(--ink-muted); }

/* Charts retain every SVG bar, confidence interval and visible semantic table. */
.chart-slot { min-width: 0; }
.chart-card { padding: 24px; margin: 0 0 20px; border-radius: var(--r-card); background: var(--bg-card); min-width: 0; }
.chart-head h3 { font-size: 16px; line-height: 1.45; }
.chart-note { margin-top: 8px; font-size: 13px; color: var(--ink-muted); max-width: 75ch; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
.chart-legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.chart-swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.chart-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 32px; margin-top: 24px; }
.chart-plot { min-width: 0; }
.chart-plot svg { display: block; width: 100%; height: auto; }
.ch-grid { stroke: var(--chart-grid); stroke-width: 1; }
.ch-baseline { stroke: var(--chart-axis); stroke-width: 1; }
.ch-axis { fill: var(--chart-axis); font: 13px var(--font); font-variant-numeric: tabular-nums; }
.ch-group { fill: var(--ink-2); font: 600 13px var(--font); }
.ch-value { fill: var(--ink); font: 13px var(--font); font-variant-numeric: tabular-nums; }
.ch-ci-line { stroke: var(--chart-whisker); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 .6px var(--chart-whisker-edge)); } /* taste-skill-ignore: contrast edge on measured CI whiskers */
.chart-table-wrap { min-width: 0; }
.chart-table { table-layout: fixed; min-width: 0; font-size: 13px; }
.chart-table caption { text-align: left; font-size: 13px; line-height: 1.55; color: var(--ink-muted); padding-bottom: 12px; }
.chart-table th, .chart-table td { padding: 10px 8px; }
.chart-table th:first-child { width: 37%; }
.chart-table th:nth-child(2) { width: 15%; }
.chart-table th:nth-child(3) { width: 24%; }
.chart-table th:nth-child(4) { width: 24%; }
.chart-table tbody th[scope="row"] { font-weight: 500; color: var(--ink-2); background: transparent; white-space: normal; }
.chart-table .chart-table-series th { width: auto; padding: 12px 8px; background: var(--bg-inset); color: var(--ink); font-weight: 600; }
.chart-slot-inset { margin: 0; background: var(--bg-inset); border-radius: 0 0 var(--r-card) var(--r-card); }
.chart-slot-inset .chart-table thead th, .chart-slot-inset .chart-table-series th { background: var(--bg-card); }

/* Evidence tables and their phone rows. */
.table-card { border-radius: var(--r-card); background: var(--bg-card); overflow: hidden; margin-bottom: 20px; min-width: 0; }
.table-card > header { padding: 24px; }
.table-card header p { font-size: 14px; color: var(--ink-2); margin-top: 8px; max-width: 75ch; }
.table-wrap { min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
th { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ink-2); background: var(--bg-inset); }
td { color: var(--ink-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td strong { display: block; color: var(--ink); font-weight: 600; }
td small { display: block; color: var(--ink-muted); font-size: 13px; margin-top: 4px; }
.table-note { padding: 16px 24px; color: var(--ink-muted); font-size: 13px; line-height: 1.55; max-width: 75ch; }
.table-note + .table-note { padding-top: 0; }
.disclaimers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.disclaimer { border-radius: var(--r-card); padding: 20px; min-width: 0; }
.disclaimer h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: inherit; }
.disclaimer h3 svg { width: 18px; height: 18px; flex: none; }
.disclaimer p { font-size: 14px; line-height: 1.6; }
.disclaimer.warn { background: var(--warn-soft); color: var(--warn); }
.disclaimer.info { background: var(--accent-soft); color: var(--accent-ink); }
.adoption { margin-top: 24px; padding: 20px 24px; border-radius: var(--r-tile); background: var(--bg-card); font-size: 15px; }
.adoption a { color: var(--accent-strong); font-weight: 600; }

/* Pipeline and the actual n8n evidence. */
.overview-process { min-width: 0; margin-top: 32px; }
.media-track { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: var(--r-tile); }
.media-track::-webkit-scrollbar { display: none; }
.overview-preview { display: block; flex: 0 0 calc(100% - 32px); min-width: 0; padding: 0; border: 0; border-radius: var(--r-tile); background: var(--bg-inset); color: var(--ink); cursor: zoom-in; scroll-snap-align: start; }
.overview-preview:focus-visible { outline-offset: -4px; }
.overview-visual { display: flex; align-items: center; justify-content: center; aspect-ratio: 2248 / 574; min-height: 112px; overflow: hidden; border-radius: inherit; }
.overview-visual > img, .overview-visual > svg { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.pipeline-copy text { font-family: var(--font); }
.workflow-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.workflow-open:focus-visible { outline-offset: -4px; }
.media-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html.media-open { overflow: hidden; }
.media-viewer { width: min(1440px, calc(100% - 32px)); height: min(86svh, 900px); max-height: calc(100svh - 32px); max-width: none; padding: 0; border: 0; border-radius: var(--r-tile); color: var(--ink); background: var(--bg-inset); }
.media-viewer::backdrop { background: rgba(3, 7, 18, .75); }
.media-close:focus-visible { clip-path: none; width: auto; height: 44px; margin: 0; padding: 8px 20px; top: 16px; right: 16px; z-index: 1; border-radius: 8px; background: var(--bg-card); color: var(--ink); }
.media-stage { position: relative; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: contain; touch-action: none; cursor: zoom-in; }
.media-stage.is-zoomed { cursor: grab; }
.media-stage.is-panning { cursor: grabbing; }
.media-stage:focus-visible { outline-offset: -4px; }
.media-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; user-select: none; }
.media-canvas > img, .media-canvas > svg { display: block; width: 100%; max-width: none; height: 100%; }
.how-card { background: var(--bg-card); border-radius: var(--r-card); padding: 24px; }
.how-h { display: block; width: 100%; height: auto; }
.how-v { display: none; }
.how-card svg text { font-family: var(--font); }
.how-node { fill: var(--accent-soft); stroke: var(--accent-ring); stroke-width: 1.5; }
.how-node.net { fill: var(--warn-soft); stroke: var(--warn); }
.how-num { fill: var(--accent-ink); font-size: 16px; font-weight: 600; }
.how-num.net { fill: var(--warn); }
.how-title { fill: var(--ink); font-size: 14px; font-weight: 600; }
.how-desc { fill: var(--ink-2); font-size: 13px; }
.how-line { stroke: var(--hairline-strong); stroke-width: 1.5; }
.how-note { margin-top: 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 80ch; }
.shot-card { background: var(--bg-card); border-radius: var(--r-card); overflow: hidden; min-width: 0; }
.shot-card img { display: block; width: 100%; height: auto; background: var(--bg-inset); }
.shot-card figcaption { padding: 18px 20px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.shot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.shot-wide { grid-column: 1 / -1; }

/* Native disclosures and the complete project attributions. */
.details-list { display: grid; gap: 12px; }
details.tech { background: var(--bg-card); border-radius: var(--r-tile); min-width: 0; }
details.tech summary { min-height: 56px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; color: var(--ink); list-style: none; border-radius: var(--r-tile); }
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary::after { content: "+"; color: var(--ink-muted); font-size: 20px; }
details.tech[open] summary::after { content: "−"; }
details.tech summary:hover { background: var(--bg-inset); }
.tech-body { padding: 4px 20px 20px; font-size: 15px; line-height: 1.7; max-width: 85ch; }
.tech-body p + p { margin-top: 12px; }
.tech-body code { padding: 2px 5px; background: var(--bg-inset); color: var(--ink); font: .9em var(--mono); border-radius: 4px; overflow-wrap: anywhere; }
.credits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.credit { background: var(--bg-card); border-radius: var(--r-tile); padding: 20px; min-width: 0; }
.credit strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.credit span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.credit .lic { display: inline-block; margin-top: 12px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--bg-inset); color: var(--ink-muted); font-size: 13px; }
.site-footer { max-width: 1440px; margin: 48px auto 0; padding: 24px 40px 40px 108px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.notice { padding: 16px; border-radius: var(--r-tile); background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.nowrap { white-space: nowrap; }

@media (max-width: 1100px) {
  html { scroll-padding-top: 152px; }
  .header-inner { grid-template-columns: 1fr auto; padding: 12px 24px; gap: 8px 24px; }
  .header-right { grid-column: 2; grid-row: 1; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .page-shell { padding: 32px 24px 0; }
  .utility-rail { top: 152px; }
  .hero-grid { gap: 24px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  h1 { font-size: 34px; }
  .hero-card { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid { grid-template-columns: 1fr; }
  .section-head { gap: 24px; }
  .site-footer { padding-left: 92px; padding-right: 24px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: none; }
  .role-strip { grid-template-columns: 1fr; gap: 8px; }
  .try-grid { grid-template-columns: 1fr; }
  #try-input, .try-out { min-height: 220px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .overview-evidence-head { align-items: start; flex-direction: column; gap: 8px; }
  .credits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-h { display: none; }
  .how-v { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; }
}
@media (max-width: 767px) {
  .page-shell { display: block; padding-top: 24px; }
  .utility-rail { position: static; flex-direction: row; justify-content: space-between; margin-bottom: 24px; }
  .seg { flex-direction: row; }
  .seg button { width: 44px; height: 44px; }
  .rail-nav { display: none; }
  .hero-evidence { margin-top: 32px; }
  .role-strip { grid-template-columns: 1fr; gap: 8px; }
  .section { margin-top: 48px; }
  .shot-gallery, .disclaimers { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }
  .site-footer { margin-top: 40px; padding-left: 24px; }
}
@media (max-width: 620px) {
  .table-card .table-wrap > table, .table-card .table-wrap > table > tbody, .table-card .table-wrap > table > tbody > tr, .table-card .table-wrap > table > tbody > tr > td { display: block; }
  .table-card .table-wrap > table > thead, .chart-table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-card .table-wrap > table > tbody > tr { padding: 12px 18px; }
  .table-card .table-wrap > table > tbody > tr:nth-child(even) { background: var(--bg-inset); }
  .table-card .table-wrap > table > tbody > tr > td { border: 0; padding: 8px 0; text-align: left; white-space: normal; }
  .table-card .table-wrap > table > tbody > tr > td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--ink-muted); font-size: 13px; font-weight: 500; }
  .chart-table, .chart-table tbody { display: block; }
  .chart-table tr[data-row] { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; padding: 12px 0; }
  .chart-table tr[data-row] > th { grid-column: 1 / -1; width: auto; padding: 0; border: 0; color: var(--ink); }
  .chart-table tr[data-row] > td { padding: 0; border: 0; font-size: 13px; text-align: left; white-space: normal; }
  .chart-table tr[data-row] > td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--ink-muted); font-size: 13px; font-weight: 500; }
  .chart-table .chart-table-series { display: block; margin-top: 12px; }
  .chart-table .chart-table-series th { display: block; border: 0; border-radius: 8px; }
  .chart-table caption { display: block; }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-inner { padding: 12px 16px; gap: 8px; }
  .portfolio-brand { font-size: 18px; }
  .header-right { gap: 8px; }
  .project-badge { padding: 6px 9px; font-size: 13px; }
  .portfolio-back { padding: 6px 0; font-size: 13px; }
  .portfolio-back svg { display: none; }
  .nav { gap: 0; justify-content: space-between; }
  .nav a { font-size: 13px; padding: 8px 6px; }
  .page-shell { padding-inline: 16px; }
  h1 { font-size: 30px; line-height: 1.15; }
  h2 { font-size: 24px; }
  .hero-card, .try-card, .chart-card, .how-card { padding: 18px; }
  .hero-message { padding: 16px; }
  .stats-grid { gap: 12px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 30px; }
  .stat-note { font-size: 13px; }
  .stat-label { font-size: 13px; overflow-wrap: anywhere; }
  .kpi-ci-btn { min-height: 40px; }
  .section-head { margin-bottom: 20px; }
  .hero-grid { gap: 24px; }
  .hero-message, .demo-body { font-size: 13px; }
  .demo-body, .demo-col header { padding: 18px; }
  .try-actions .btn { padding-inline: 14px; }
  .try-actions { gap: 8px; }
  .table-card > header { padding: 18px; }
  .table-note { padding: 16px 18px; }
  .credits-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 20px 16px 32px; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Entity colors identify data types, rather than decoration. */
.ent { padding: 1px 3px; border-radius: 4px; font-weight: 500; background: var(--bg-inset); -webkit-box-decoration-break: clone; box-decoration-break: clone; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ent-person { background: var(--ent-person-bg); color: var(--ent-person-ink); text-decoration-color: var(--ent-person-line); }
.ent-org { background: var(--ent-org-bg); color: var(--ent-org-ink); text-decoration-color: var(--ent-org-line); }
.ent-email { background: var(--ent-email-bg); color: var(--ent-email-ink); text-decoration-color: var(--ent-email-line); }
.ent-phone { background: var(--ent-phone-bg); color: var(--ent-phone-ink); text-decoration-color: var(--ent-phone-line); }
.ent-iban { background: var(--ent-iban-bg); color: var(--ent-iban-ink); text-decoration-color: var(--ent-iban-line); }
.ent-address-street { background: var(--ent-address-street-bg); color: var(--ent-address-street-ink); text-decoration-color: var(--ent-address-street-line); }
.ent-postcode-city { background: var(--ent-postcode-city-bg); color: var(--ent-postcode-city-ink); text-decoration-color: var(--ent-postcode-city-line); }
.ent-url { background: var(--ent-url-bg); color: var(--ent-url-ink); text-decoration-color: var(--ent-url-line); }
.ent-vat-id { background: var(--ent-vat-id-bg); color: var(--ent-vat-id-ink); text-decoration-color: var(--ent-vat-id-line); }
.ent-date-of-birth { background: var(--ent-date-of-birth-bg); color: var(--ent-date-of-birth-ink); text-decoration-color: var(--ent-date-of-birth-line); }
.ent.miss { background: var(--danger-soft); color: var(--danger); text-decoration: underline dotted; text-underline-offset: 3px; }
.ph { display: inline; padding: 1px 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-family: inherit; font-size: 1em; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
code.ph { font-family: var(--mono); }
