/* ============================================================
   APT-KIDNEY — design v7 (November 2026)
   Editorial calm: white pages, ink text, structure from space and
   a few hairlines. No filled panels or boxed cards; colour only
   where it means something (links, the main action, status).
   Type: one family throughout — APT Serif (Source Serif design) for
   headings, reading text and the interface alike: menus, buttons,
   labels, dates, footer. Self-hosted OFL subset, renamed per the licence.
   ============================================================ */

@font-face { font-family: "APT Serif"; src: url("assets/fonts/apt-serif-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "APT Serif"; src: url("assets/fonts/apt-serif-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "APT Serif"; src: url("assets/fonts/apt-serif-600.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --ink: #142235;          /* headings */
  --text: #2a3340;         /* body text */
  --muted: #5f6977;        /* secondary text (5.6:1 on white) */
  --line: #e2e6ea;         /* hairlines */
  --line-strong: #c9d0d7;
  --paper: #ffffff;
  --wash: #f6f8f9;         /* the faintest surface, used sparingly */
  --teal: #1d5f69;         /* petrol — professionals (7.1:1) */
  --teal-deep: #134750;
  --coral: #a8452f;        /* ASPIRE coral, deepened — patients (6.1:1) */
  --coral-deep: #86361f;
  --amber: #c9892f;        /* "planned" status dot */
  --alert: #b53444;        /* safety notices only */
  --ok: #2e7556;

  --accent: var(--teal);
  --accent-deep: var(--teal-deep);

  --serif: "APT Serif", "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --max: 1500px;
  --gutter: clamp(20px, 11vw - 36px, 150px);   /* 20px on phones, ~105px at 1280, ~122px at 1440 */
  --radius: 4px;
  --gap: 24px;
  --space: clamp(40px, 5vw, 68px);
}
body[data-path="patient"] { --accent: var(--coral); --accent-deep: var(--coral-deep); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.018em;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
@media (max-width: 600px) { body { font-size: 16.5px; } }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 16%, white); }

h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0 0 0.45em; text-wrap: balance; letter-spacing: 0; }
h1 { font-size: clamp(32px, 3.2vw, 50px); line-height: 1.12; letter-spacing: 0; }
h2 { font-size: clamp(25px, 2.2vw, 32px); line-height: 1.2; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: 0.006em; color: var(--ink); margin: 0 0 0.4em; }
p { margin: 0 0 0.8em; max-width: 70ch; }
p, li, dd, td, figcaption { text-wrap: pretty; }   /* no single word left alone on the last line */
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; max-width: 58ch; color: var(--text); letter-spacing: 0.012em; }
.small { font-size: 14.5px; color: var(--muted); letter-spacing: 0.022em; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

[lang="da"] .lang-en { display: none; }
[lang="en"] .lang-da { display: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow > * { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border: 1px solid var(--line); }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: transform 0.25s ease; }
.site-header.hide { transform: translateY(-100%); }
.topbar { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.audience { margin-left: auto; display: flex; gap: 22px; }
.audience a { padding: 4px 0; font-size: 15.5px; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.audience a:hover { color: var(--ink); }
.audience a[aria-current="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.lang-toggle { display: inline-flex; flex: none; gap: 2px; padding-left: 20px; border-left: 1px solid var(--line); }
.lang-toggle button { appearance: none; border: 0; background: transparent; padding: 4px 6px; font: 500 14px/1.2 var(--serif); letter-spacing: 0.05em; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.menu-btn { display: none; }

.mainnav.root-only { display: none; }
.mainnav ul { list-style: none; margin: 0 0 0 -11px; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; }
.mainnav a { display: block; padding: 10px 11px 11px; font-size: 16px; color: var(--text); text-decoration: none; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }
.mainnav .sep { width: 1px; background: var(--line); margin: 13px 12px; }
.mainnav .aud-m { display: none; }

@media (max-width: 900px) {
  .topbar { min-height: 58px; gap: 12px; }
  .brand img { height: 28px; }
  .audience { display: none; }
  .lang-toggle { margin-left: auto; padding-left: 0; border-left: 0; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    appearance: none; border: 0; background: transparent;
    padding: 8px 2px 8px 8px; font: 500 16px/1.2 var(--serif); letter-spacing: 0.02em; color: var(--ink); cursor: pointer;
  }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 1px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn .bars::before { top: -5px; }
  .menu-btn .bars::after { top: 5px; }
  .js .mainnav, .mainnav.root-only { display: none; }
  .js .site-header.open .mainnav { display: block; }
  .mainnav ul { flex-direction: column; margin: 0; padding: 4px 0 16px; }
  .mainnav a { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 17px; }
  .mainnav li:last-child a { border-bottom: 0; }
  .mainnav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .mainnav .sep { display: none; }
  .mainnav .aud-m { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 4.6vw, 64px) 0 clamp(8px, 1.4vw, 16px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(36px, 4vw, 80px); align-items: center; }
.hero h1 { max-width: 30ch; margin: 0; }
.hero .lead { margin-top: 18px; }
.hero-text.solo h1 { max-width: 30ch; }
.hero-grid.art { grid-template-columns: minmax(0, 1fr) 180px; }
.crumb { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }
.crumb a { color: var(--muted); }
.domain-art { width: min(180px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; margin-inline: auto; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual .platform { max-width: 560px; }
}
@media (max-width: 900px) {
  .hero-grid, .hero-grid.art { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual:has(.domain-art) { order: -1; }
  .domain-art { width: 84px; margin: 0; }
}

/* Facts — a quiet definition list between two hairlines */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 36px; margin: clamp(32px, 3.6vw, 48px) 0 0; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.facts dd .small { font-weight: 400; display: inline-block; margin-top: 2px; }
.facts dd a { font-weight: 400; }
.facts > div.wide { grid-column: span 2; }
.facts > div.wide dd { font-weight: 400; color: var(--text); }
@media (max-width: 340px) { .facts > div.wide { grid-column: auto; } }

/* ---------- Sections: separated by space and one hairline, never by filled bands ---------- */
.section > .wrap { padding-block: var(--space); }
.hero + .section > .wrap { padding-top: clamp(36px, 4vw, 56px); }
.section + .section > .wrap { background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }
.band { background: transparent; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.note { margin-top: 18px; }
.small.note { font-size: 15px; max-width: 78ch; }

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.split.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.split h3 { margin-bottom: 10px; }
.split h2 { font-size: clamp(23px, 2vw, 27px); }
@media (max-width: 1000px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .split, .split.wide-left { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Tiles: open columns, no boxes, no rules */
.grid:has(> .tile) { gap: 30px clamp(28px, 3.4vw, 48px); }
.tile { padding: 0; }
.tile h3 { margin: 0 0 6px; }
.tile p { font-size: 16px; line-height: 1.62; color: var(--text); }
body[data-path="patient"] .tile p { font-size: 16.5px; }
.tile p + p { margin-top: 8px; }
.tile .label { font-size: 14px; color: var(--muted); margin: 0 0 4px; }

/* Numbered steps — numerals, no discs */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); counter-reset: step; }
.steps.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li::before { counter-increment: step; content: counter(step); display: block; font: 500 22px/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; }
.steps p { font-size: 16px; line-height: 1.62; margin: 0; }
@media (max-width: 1000px) { .steps.c4, .steps.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps.c4, .steps.c3 { grid-template-columns: 1fr; } }

.steps.flow { display: block; columns: 2 340px; column-gap: 72px; }
.steps.flow li { display: block; break-inside: avoid; position: relative; padding: 0 0 26px 40px; }
.steps.flow li::before { position: absolute; left: 0; top: 1px; margin: 0; width: 24px; }
.steps.flow h3 { margin: 0 0 4px; }
.steps.flow p { font-size: 16.5px; }

/* Running text in two columns */
.textcols { columns: 2 320px; column-gap: 64px; }
.textcols p { max-width: none; orphans: 3; widows: 3; }

/* Criteria lists — a quiet check for "yes", a cross for "no", a dash for plain lists */
.criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.criteria li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.6; }
.criteria li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 15px; height: 15px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.6l3.1 3L13 4.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.6l3.1 3L13 4.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.criteria.exclude li::before { background: #8a929c; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.8 4.8l6.4 6.4M11.2 4.8l-6.4 6.4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.8 4.8l6.4 6.4M11.2 4.8l-6.4 6.4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.criteria.plain li { padding-left: 22px; }
.criteria.plain li::before { -webkit-mask: none; mask: none; background: var(--line-strong); width: 10px; height: 1px; top: 0.82em; left: 1px; }
.criteria li b { color: var(--ink); font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 13px 22px 13px 0; border-bottom: 1px solid var(--line); }
.spec-table thead th { font-size: 14px; color: var(--muted); font-weight: 500; padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.spec-table tbody th { color: var(--ink); font-weight: 600; width: 24%; }
.spec-table th .small { font-weight: 400; display: inline-block; margin-top: 2px; }
body[data-path="patient"] .spec-table { font-size: 16.5px; }
@media (max-width: 700px) {
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table tbody tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .spec-table tbody th, .spec-table tbody td { border: 0; padding: 2px 0; width: auto; }
}

/* Key numbers */
.keynums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap) 36px; margin: 0 0 8px; }
.keynums b { display: block; font: 500 clamp(36px, 3.6vw, 50px)/1 var(--serif); color: var(--ink); letter-spacing: 0; }
.keynums > div > span { font-size: 14.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 10px; }
@media (max-width: 700px) { .keynums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Expandable detail */
details.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
details.more > summary { list-style: none; cursor: pointer; padding: 13px 0; font-weight: 500; color: var(--accent); display: flex; align-items: center; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; flex: none; }
details.more[open] > summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.more-body { padding: 4px 0 18px; }

/* Notices — a rule, not a box */
.notice { border-left: 2px solid var(--alert); padding: 2px 0 2px 20px; }
.notice h3 { color: #8a2533; margin: 0 0 8px; }
.notice.info { border-left-color: var(--accent); }
.notice.info h3 { color: var(--ink); }
.notice ul { margin: 0; padding-left: 18px; }
.notice li { margin: 5px 0; font-size: 16px; }

/* Buttons — one solid action; everything else is a link */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 500 16px/1.25 var(--serif); letter-spacing: 0.012em; text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; text-decoration: none; }
.btn.secondary, .btn.quiet { background: transparent; border-color: transparent; color: var(--accent); padding-inline: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.btn.secondary:hover, .btn.quiet:hover { background: transparent; border-color: transparent; color: var(--accent-deep); text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; }
.newsline { margin: 26px 0 0; max-width: none; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.newsline b { font-weight: 600; color: var(--accent); margin-right: 8px; }
.newsline a { white-space: nowrap; }

/* Status — a dot and a word */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; line-height: 1.5; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.pill.open::before { background: var(--ok); }

/* ---------- Documents: a ruled list, not tiles ---------- */
.docs { display: grid; gap: 0 clamp(24px, 3vw, 40px); }
.docs.c1 { grid-template-columns: 1fr; }
.docs.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.docs.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .docs.c3, .docs.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .docs.c2, .docs.c3, .docs.c4 { grid-template-columns: 1fr; } }
.doc { display: flex; flex-direction: column; gap: 1px; padding: 15px 0 16px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.doc:hover { color: var(--text); text-decoration: none; }
.doc .ico { display: none; }
.doc .t { font-weight: 600; color: var(--ink); font-size: 16px; line-height: 1.35; }
.doc .m { font-size: 14px; color: var(--muted); }
.doc .d { font-size: 14px; line-height: 1.5; margin-top: 3px; }
.doc .get { font-size: 14.5px; font-weight: 500; color: var(--accent); margin-top: 6px; }
.doc .get .sz { font-weight: 400; color: var(--muted); }
.doc:hover .t, .doc:hover .get { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

/* Document matrix: one column per protocol, rows aligned across columns */
.matrix { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-template-rows: auto repeat(var(--rows, 4), auto); grid-auto-flow: column; gap: 0 clamp(24px, 3vw, 44px); }
.matrix .colhead { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; }
.matrix .colhead img { width: 38px; height: 38px; flex: none; }
.matrix .colhead b { display: block; font: 500 19px/1.2 var(--serif); color: var(--ink); letter-spacing: 0.004em; }
.matrix .colhead div > span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .matrix { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .matrix .colhead:not(:first-child) { margin-top: 28px; }
}

/* ---------- Platform diagram: domains standing on one line ---------- */
.platform { margin: 0; }
.platform-domains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pd { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 0 0 18px; color: var(--ink); text-decoration: none; }
a.pd:hover { color: var(--ink); text-decoration: none; }
a.pd:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.pd img { width: 64px; height: 64px; margin-bottom: 8px; }
.pd b { font: 500 17px/1.2 var(--serif); letter-spacing: 0.006em; }
.pd > span:not(.plus) { font-size: 14px; color: var(--muted); line-height: 1.4; text-wrap: balance; }
.pd .plus { width: 64px; height: 64px; margin-bottom: 8px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 50%; font: 400 26px/1 var(--serif); color: var(--muted); }
.pd.next b { color: var(--muted); }
.platform-core { border-top: 1.5px solid var(--ink); padding: 14px 0 0; }
.platform-core b { display: block; font: 600 15px/1.3 var(--serif); color: var(--ink); }
.platform-core ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 4px 44px; font-size: 14.5px; color: var(--text); }
.platform-core li { position: relative; padding-left: 16px; }
.platform-core li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 8px; height: 1px; background: var(--line-strong); }
.platform figcaption { font-size: 14px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
@media (max-width: 520px) { .pd img, .pd .plus { width: 48px; height: 48px; } .pd b { font-size: 15.5px; } .pd > span:not(.plus) { font-size: 13.5px; } .platform-core ul { grid-template-columns: 1fr; } .platform figcaption { display: none; } }

/* ---------- Domain cards: open, divided by a hairline ---------- */
.domain-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.domain-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 0 8px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.domain-card:hover { color: var(--text); text-decoration: none; }
.domain-card img { width: 88px; height: 88px; }
.domain-card h3 { font: 500 25px/1.15 var(--serif); letter-spacing: 0; margin: 0; }
.domain-card .q { font-weight: 500; color: var(--ink); font-size: 16.5px; line-height: 1.45; margin: 6px 0 10px; }
.domain-card p { font-size: 16px; line-height: 1.6; }
.domain-card .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.domain-card .go { font-weight: 500; color: var(--accent); }
.domain-card:hover .go, .domain-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 900px) { .domain-cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .domain-card { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; } .domain-card img { width: 52px; height: 52px; } .domain-card h3 { font-size: 22px; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 17px 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.faq summary:hover { color: var(--accent-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--serif); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: -4px 0 20px; max-width: 64ch; }

/* ---------- News ---------- */
.news-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item time { grid-row: span 2; font-size: 14.5px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.news-item h3 { margin: 0 0 4px; font: 500 20px/1.3 var(--serif); letter-spacing: 0.004em; }
.news-item p { margin: 0; font-size: 16.5px; }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; } .news-item time { grid-row: auto; } }

/* ---------- Contact ---------- */
.contact h3 { font: 500 21px/1.25 var(--serif); letter-spacing: 0.004em; margin: 0; }
.contact .role { color: var(--muted); margin: 6px 0 16px; font-size: 14.5px; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; font-size: 16px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--text); border-top: 1px solid var(--line); padding: 44px 0 26px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 32px; }
.site-footer .flogo { height: 28px; width: auto; margin-bottom: 14px; }
.site-footer p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.site-footer h2 { font: 500 14.5px/1.3 var(--serif); color: var(--muted); margin: 0 0 12px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.site-footer li { overflow-wrap: anywhere; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.endline { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); letter-spacing: 0.022em; }
.endline > * { white-space: nowrap; }
.endline .priv { margin-left: auto; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 26px 16px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  /* the two link lists share rows, so they start level even when one heading wraps */
  .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .endline .priv { margin-left: 0; }
}

/* ---------- Gateway ---------- */
.gateway { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.gateway { --gw-gutter: clamp(20px, 5vw, 48px); }
.gw-top { display: flex; justify-content: flex-end; padding: 18px var(--gw-gutter) 0; }
.gw-top .lang-toggle { padding-left: 0; border-left: 0; }
.gw-main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 980px; margin: 0 auto; padding: 12px var(--gw-gutter) 32px; }
.gw-logo { width: min(560px, 84vw); height: auto; margin: 0 auto; }
.gw-tag { text-align: center; font-size: clamp(15px, 2.6vw, 16.5px); color: var(--muted); margin: clamp(16px, 2.2vw, 26px) auto clamp(48px, 6vw, 76px); max-width: none; line-height: 1.55; letter-spacing: 0.022em; }
.gw-tag b { display: block; font: 500 clamp(17px, 3.4vw, 22.5px)/1.3 var(--serif); color: var(--ink); letter-spacing: 0.012em; margin-bottom: 8px; text-wrap: balance; }
.gw-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 80px); }
.gw-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: var(--text); text-decoration: none; }
.gw-card.patient { --accent: var(--coral); --accent-deep: var(--coral-deep); }
.gw-card:hover { color: var(--text); text-decoration: none; }
.gw-card h2 { font-size: clamp(22px, 1.8vw, 25px); margin: 0; }
.gw-card p { margin: 0 0 8px; font-size: 16.5px; color: var(--muted); }
.gw-card .btn { margin-top: auto; }
.gw-card:hover .btn { background: var(--accent-deep); border-color: var(--accent-deep); }
.gw-news { text-align: center; font-size: 15.5px; color: var(--text); margin: clamp(40px, 5vw, 60px) auto 0; max-width: none; }
.gw-news b { color: var(--accent); margin-right: 8px; font-weight: 600; }
.gw-news a { margin-left: 6px; }
.gw-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding: 16px var(--gw-gutter) 24px; font-size: 13.5px; color: var(--muted); letter-spacing: 0.022em; }
.gw-foot a { color: var(--muted); }
@media (max-width: 760px) { .gw-choices { grid-template-columns: 1fr; } }

/* ---------- Role rows (governance) ---------- */
.rows > div { display: grid; grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr); gap: 8px 40px; padding: 22px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0 0 4px; }
.rows .role { font-size: 14px; color: var(--muted); margin: 0; }
.rows .cols { columns: 2 300px; column-gap: 40px; }
.rows .cols p { font-size: 16.5px; break-inside: avoid; max-width: none; }
@media (max-width: 760px) { .rows > div { grid-template-columns: 1fr; } }

/* Multi-column titled lists */
.criteria.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 56px; }
.criteria.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 44px; }
@media (max-width: 900px) { .criteria.cols3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .criteria.cols2 { grid-template-columns: 1fr; } }

/* Policy text in two balanced columns */
.policy { columns: 2 340px; column-gap: 64px; }
.policy section { break-inside: avoid; margin-bottom: 30px; }
.policy h2 { font-size: 20px; margin-bottom: 8px; }
.policy p, .policy li { font-size: 16px; }
.policy p { margin-bottom: 8px; }
.policy ul { margin: 6px 0 8px; padding-left: 20px; }

/* Misc */
[id] { scroll-margin-top: 130px; }
.pd img, .domain-card img, .domain-art, .matrix .colhead img { object-fit: contain; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-note { display: block; font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.head-aside { flex: none; }
.lead + .actions { margin-top: 28px; }
h3.sub { margin: 32px 0 12px; }
.wide-gap { margin-top: 28px; }
.nobr { white-space: nowrap; }

/* ---------- Phone: calmer pages ----------
   One action per group, no repeated navigation, nothing that is one tap away. */
@media (max-width: 600px) {
  h1 { font-size: 29px; }
  .lead { font-size: 17.5px; }
  .hero .newsline, .hero-visual:has(.platform) { display: none; }   /* news: front page and News; domains: one tap away */
  .actions:not(.all) > .btn ~ .btn { display: none; }               /* the rest are in the menu or at the end of the page */
  .doc .d { display: none; }                                        /* the document titles say enough */
  .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3), .footer-grid > div:first-child p { display: none; }   /* the menu has these links */
  .gw-card h2, .gw-card p { display: none; }                        /* the two buttons say it */
  .gw-choices { gap: 12px; }
  .gw-card .btn { width: min(300px, 100%); justify-content: center; }
  .gw-foot > span { display: none; }                                /* trial numbers are in every other page's footer */
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .lang-toggle, .actions { display: none !important; }
  details.more > .more-body { display: block; }
  body { font-size: 11pt; }
}
