/* vDNS - informatiepagina op esreal.org/vdns/. Eén stylesheet, geen externe bronnen, geen cookies.
   Licht met een navy kop, in cyaan (de kleur van vDNS). Volgt de instelling van het toestel voor donker. */

@font-face { font-family: 'Raleway'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/raleway-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Raleway'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/raleway-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0d1b2a; --ink-2: #1a2e45; --muted: #52657a; --dim: #7f91a3;
  --ground: #eef2f6; --paper: #ffffff; --wash: #f3f6f9; --line: #dde5ec;
  --accent: #0a7f8c; --accent-bright: #3fc5d4; --accent-wash: #e2f5f7; --on-accent: #062b33;
  --gold: #8a611c; --gold-bright: #e8c77a;
  --ok: #15803d; --ok-wash: #e5f6ec; --warn: #92610a; --warn-wash: #fdf3e2; --bad: #be123c; --bad-wash: #fdecef;
  --navy: #0d1b2a; --navy-2: #0b2340;
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.05);
  --font: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SFMono-Regular', monospace;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef4; --ink-2: #c9d6e2; --muted: #9aabbc; --dim: #6b7f93;
    --ground: #0b1520; --paper: #12202f; --wash: #172739; --line: #26384c;
    --accent: #3fc5d4; --accent-wash: #10333a; --on-accent: #062b33;
    --gold: #e8c77a;
    --ok: #3ccf7f; --ok-wash: #123526; --warn: #f0c04a; --warn-wash: #3a2f17; --bad: #fb7185; --bad-wash: #3a1720;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; font-feature-settings: 'lnum' 1; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p, ul, ol, dl, figure, pre { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, pre, .mono { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { padding: 1px 6px; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kop */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -0.02em; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--accent-bright); font-weight: 900; }
.logo small { font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0; }
.top nav { display: flex; gap: 2px; margin-left: auto; }
.top nav a { padding: 8px 11px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.82); text-decoration: none; border-radius: 8px; }
.top nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.lang { margin-left: 8px; padding: 6px 11px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; }
.lang:hover { border-color: #fff; }
@media (max-width: 980px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero { color: #fff; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px);
  background: radial-gradient(900px 520px at 85% -10%, rgba(63, 197, 212, 0.22), transparent 60%), linear-gradient(160deg, #0d1b2a 0%, #0b2340 70%, #0d1f38 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright); }
.hero h1 { margin-top: 14px; font-size: clamp(34px, 5.2vw, 56px); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lead { margin-top: 20px; max-width: 34em; font-size: clamp(17px, 2vw, 20px); color: #c9d6e2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; font: 700 16px/1 var(--font); text-decoration: none; border: 2px solid transparent; border-radius: 12px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { color: var(--on-accent); background: var(--accent-bright); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(63, 197, 212, 0.35); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-line { color: var(--ink); background: var(--paper); border-color: var(--line); }
.btn-line:hover { border-color: var(--accent); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: #9fb3c6; }
.meta-row span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 2px; border-radius: 50%; background: var(--accent-bright); }

/* De bewijskaart in de hero */
.proof { padding: 22px; color: var(--ink); background: #f6f8fa; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.proof-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #dde5ec; }
.proof-head img { width: 26px; height: 26px; }
.proof-head strong { font-size: 17px; }
.proof-head span { margin-left: auto; padding: 3px 10px; font-size: 12px; font-weight: 800; color: #0a5c40; background: #dff5ea; border-radius: 999px; }
.proof ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.proof li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.4; color: #33475b; }
.proof li b { display: block; color: #0d1b2a; }
.proof li::before { content: '\2713'; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; font-size: 13px; font-weight: 900; color: #fff; background: #0a7f8c; border-radius: 50%; }
.proof-foot { margin-top: 14px; padding-top: 12px; font: 12px/1.5 var(--mono); color: #52657a; border-top: 1px dashed #c9d5df; overflow-wrap: anywhere; }

/* Secties als kaarten */
main { padding: clamp(16px, 2vw, 24px) 0 40px; }
.card { margin: 0 auto 20px; max-width: var(--wrap); padding: clamp(26px, 4vw, 52px); background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 1150px) { .card { margin-left: 16px; margin-right: 16px; } }
.card > * + * { margin-top: 18px; }
.card h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 24ch; }
.card .sub { max-width: 46em; color: var(--muted); font-size: 18px; }
.card h3 { font-size: 19px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tile { padding: 22px; background: var(--wash); border-radius: 18px; }
.tile > * + * { margin-top: 8px; }
.tile p { color: var(--muted); font-size: 16px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-weight: 900; color: var(--on-accent); background: var(--accent-bright); border-radius: 10px; }

/* Schema */
.diagram { margin-top: 26px; padding: 20px; background: var(--wash); border-radius: 18px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 640px; height: auto; }
.diagram figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.d-box { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.d-hinge { fill: var(--navy); }
.d-text { fill: var(--ink); font: 700 14px var(--font); }
.d-small { fill: var(--muted); font: 500 12px var(--font); }
.d-hinge-text { fill: #fff; font: 800 15px var(--font); }
.d-hinge-small { fill: var(--accent-bright); font: 600 12px var(--mono); }
.d-line { stroke: var(--accent); stroke-width: 2; fill: none; }
.d-witness { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.5; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* Niveaus */
.levels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.level { padding: 18px 20px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 14px; background: var(--paper); }
.level > * + * { margin-top: 6px; }
.level code { font-size: 14px; font-weight: 700; }
.level p { font-size: 15.5px; color: var(--muted); }
.level .not { font-size: 14px; color: var(--dim); }
.level-none { border-left-color: var(--dim); }
.level-id { border-left-color: var(--accent); }
.level-proof { border-left-color: var(--warn); }
.level-vdns { border-left-color: var(--ok); background: var(--ok-wash); }
.level-contra { border-left-color: var(--bad); }

/* Notities en code */
.note { padding: 16px 20px; font-size: 16px; background: var(--accent-wash); border-left: 4px solid var(--accent); border-radius: 12px; }
.note-warn { background: var(--warn-wash); border-left-color: var(--warn); }
pre { padding: 18px 20px; font-size: 14px; line-height: 1.6; color: #dfe8f1; background: var(--navy); border-radius: 14px; overflow-x: auto; }
pre .c { color: #7f91a3; }
.never { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.never li::marker { color: var(--bad); }
.badge { display: inline-block; padding: 3px 11px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warn); background: var(--warn-wash); border-radius: 999px; }

/* De ketting voor agents */
.chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 24px; }
.chain > div { flex: 1 1 160px; padding: 16px 18px; background: var(--wash); border: 1px solid var(--line); }
.chain > div:first-child { border-radius: 14px 0 0 14px; }
.chain > div:last-child { border-radius: 0 14px 14px 0; background: var(--navy); color: #fff; border-color: var(--navy); }
.chain > div + div { border-left: 0; }
.chain small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.chain > div:last-child small { color: var(--accent-bright); }
.chain b { display: block; margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.chain b.mono { font-size: 13px; }
@media (max-width: 760px) { .chain > div, .chain > div:first-child, .chain > div:last-child { flex-basis: 100%; border-radius: 0; border-left: 1px solid var(--line); } .chain > div + div { border-top: 0; } .chain > div:first-child { border-radius: 14px 14px 0 0; } .chain > div:last-child { border-radius: 0 0 14px 14px; } }
.quote { padding: 20px 24px; font-size: 19px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 16px; }
.quote small { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: #9fb3c6; }

/* Specificatie */
.doc { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.doc .mono { color: var(--muted); }
.doc .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details summary { padding: 16px 0; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; float: right; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: '\2212'; }
details > div { padding: 0 0 18px; color: var(--muted); max-width: 52em; }
details > div > * + * { margin-top: 10px; }

/* Voet */
.foot { padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--muted); }
.foot address { display: grid; gap: 4px; font-style: normal; font-size: 13px; color: var(--dim); }
.foot address strong { color: var(--muted); }

/* Specificatiepagina's */
.spec { max-width: 860px; margin: 24px auto 40px; padding: clamp(24px, 4vw, 52px); background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .spec { margin-left: 16px; margin-right: 16px; } }
.spec h1 { font-size: clamp(28px, 4vw, 38px); }
.spec h2 { margin-top: 2.2em; padding-top: 0.6em; font-size: 24px; border-top: 1px solid var(--line); }
.spec h3 { margin-top: 1.6em; font-size: 19px; }
.spec p, .spec ul, .spec ol, .spec table, .spec pre, .spec blockquote { margin-top: 14px; }
.spec ul, .spec ol { padding-left: 24px; }
.spec li + li { margin-top: 4px; }
.spec blockquote { margin-left: 0; padding: 14px 18px; background: var(--accent-wash); border-left: 4px solid var(--accent); border-radius: 10px; }
.spec blockquote > :first-child { margin-top: 0; }
.spec hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.spec table { font-size: 15px; display: block; overflow-x: auto; }
.spec td code, .spec th code { white-space: normal; }
.spec-bar { margin: 0 0 8px; font-size: 14px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ── esreal.org als geheel: de EsReal Foundation ─────────────────────────── */
.top nav a.is-active { color: #fff; background: rgba(63, 197, 212, 0.16); }
.logo .found { font-weight: 800; }
.logo .found em { font-style: normal; color: var(--accent-bright); }

/* De lagen van de infrastructuur, in de hero */
.stack { display: grid; gap: 8px; padding: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; }
.stack div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; color: #e8eef4; background: rgba(255, 255, 255, 0.05); border-radius: 12px; }
.stack div b { font-size: 16px; }
.stack div span { font-size: 13px; color: #9fb3c6; }
.stack .top-layer { color: var(--on-accent); background: var(--accent-bright); }
.stack .top-layer span { color: var(--on-accent); opacity: 0.8; }
.stack small { padding: 2px 4px 0; font-size: 12px; color: #7f91a3; }

/* De publieke diensten */
.services { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service { display: flex; flex-direction: column; gap: 8px; padding: 22px; color: inherit; text-decoration: none; background: var(--wash); border: 1px solid transparent; border-radius: 18px; transition: border-color 0.15s ease, transform 0.15s ease; }
.service:hover { border-color: var(--accent); transform: translateY(-1px); }
.service h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.service h3::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.service p { font-size: 15.5px; color: var(--muted); }
.service .go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }

.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.domain-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; }
.domain-card > * + * { margin-top: 8px; }
.domain-card .mono { font-size: 15px; font-weight: 700; color: var(--accent); }
.domain-card p { color: var(--muted); font-size: 16px; }

.prose { max-width: 46em; }
.prose > * + * { margin-top: 16px; }
.prose p { color: var(--ink-2); }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.hero .wrap.single { grid-template-columns: 1fr; }
.hero .wrap.single .lead { max-width: 42em; }

/* Herstellingen na de schermafdrukken */
.foot .logo { color: var(--ink); }
.foot .logo .found em { color: var(--accent); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.hero .wrap > * { min-width: 0; }
.hero h1 { overflow-wrap: break-word; hyphens: auto; }
.stack div { grid-template-columns: auto minmax(0, 1fr); }
.stack div span { text-align: right; }
/* Op een smal scherm: het menu als tweede rij, die zijwaarts schuift. */
@media (max-width: 980px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 4px; }
  .top nav { display: flex; order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { flex: none; padding: 7px 10px; }
  .lang { margin-left: auto; }
}
@media (max-width: 520px) {
  .stack div { grid-template-columns: 1fr; gap: 2px; }
  .stack div span { text-align: left; }
}
