/* ── Data Department — locked design system (variant A "Helder", refined) ──
   Refinements vs variant A: wider container (1360px), announcement banner,
   two-tier Tableau-style header with dropdowns, article + dataviz components. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ink: #13233a;
  --ink-60: #51617a;
  --ink-40: #8494ab;
  --line: #dde5ef;
  --blue: #1565e8;
  --blue-deep: #0d4cb8;
  --blue-tint: #e8f0fd;
  --navy: #0e1b2f;
  --green: #0e7d52;
  --green-tint: #e6f4ee;
  --amber: #b97324;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(19,35,58,.05), 0 8px 24px rgba(19,35,58,.07);
  --shadow-lg: 0 2px 4px rgba(19,35,58,.06), 0 18px 48px rgba(19,35,58,.12);
  --wrap: 1360px;
}

body { background: var(--bg); color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
::selection { background: var(--blue); color: #fff; }
h1,h2,h3,h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
.mono { font-family: var(--jbmono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ── brand mark (old hexagonal d-mark, recolored; symbol #ddmark inlined per page) ── */
.brandmark { display: block; fill: currentColor; color: var(--blue); flex: none; }

/* ── hexagon design language ── */
.hex { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex-icon { width: 2.8rem; height: 3.05rem; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; font-family: var(--jbmono); font-size: 1rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex-num { width: 1.9rem; height: 2.1rem; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--jbmono); font-size: .75rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex-bullet { width: .8rem; height: .9rem; background: var(--blue); display: inline-block; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.has-decor { position: relative; overflow: hidden; }
.hex-decor { position: absolute; color: var(--blue); opacity: .07; pointer-events: none; }
.has-decor > .wrap { position: relative; }

/* ── announcement banner ── */
.banner { background: var(--navy); color: #fff; font-size: .88rem; }
.banner-inner { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .55rem clamp(1.25rem, 4vw, 3rem); }
.banner .tag { font-family: var(--jbmono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; background: var(--blue); padding: .2rem .55rem; border-radius: 99px; }
.banner a { color: #fff; font-weight: 500; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.banner a:hover { text-decoration-color: #fff; }

/* ── utility bar ── */
.utility { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .82rem; }
.utility-inner { display: flex; justify-content: flex-end; gap: 1.6rem; padding: .4rem clamp(1.25rem, 4vw, 3rem); max-width: var(--wrap); margin: 0 auto; }
.utility a { text-decoration: none; color: var(--ink-60); transition: color .15s; }
.utility a:hover { color: var(--blue); }
.utility .mono { font-size: .76rem; }

/* ── main nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 4.5rem; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.logo-mark { width: 1.8rem; height: 1.8rem; border-radius: 6px; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--jbmono); font-size: .82rem; }
.nav-links { display: flex; gap: .4rem; margin-right: auto; margin-left: 1rem; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: .35rem; text-decoration: none; font-size: .96rem; font-weight: 500; color: var(--ink-60); padding: .55rem .85rem; border-radius: 8px; transition: color .15s, background .15s; }
.nav-item > a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-item .caret { font-size: .6rem; color: var(--ink-40); transition: transform .2s; }
.nav-item:hover .caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 17rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; text-decoration: none; padding: .6rem .8rem; border-radius: 8px; transition: background .12s; }
.dropdown a:hover { background: var(--blue-tint); }
.dropdown a b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); }
.dropdown a span { font-size: .8rem; color: var(--ink-60); }
.nav-cta { display: flex; gap: .7rem; align-items: center; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--euclid); font-weight: 600; font-size: .95rem; text-decoration: none; padding: .75rem 1.4rem; border-radius: 8px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-40); }
.btn-ghost { color: var(--ink-60); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-soft); }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }

/* ── shared section bits ── */
.section { padding: clamp(3.5rem, 8vh, 6.5rem) 0; }
.sec-head { max-width: 46rem; margin-bottom: 2.8rem; }
.sec-label { font-family: var(--jbmono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .7rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.sec-head p { color: var(--ink-60); margin-top: .9rem; font-size: 1.1rem; }

/* chips, badges, provenance */
.chip { font-family: var(--jbmono); font-size: .65rem; color: var(--green); background: var(--green-tint); padding: .2rem .55rem; border-radius: 99px; white-space: nowrap; }
.badge { font-family: var(--jbmono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 99px; }
.badge-live { background: var(--green-tint); color: var(--green); }
.badge-soon { background: #f7ecd9; color: var(--amber); }

/* record card */
.record { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.record-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.record-head h3 { font-size: 1.05rem; }
.record-head .domain { font-family: var(--jbmono); font-size: .75rem; color: var(--blue); }
.record-rows { padding: .4rem 1.4rem .9rem; }
.record-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.record-row:last-child { border-bottom: 0; }
.record-row dt { font-family: var(--jbmono); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-40); }
.record-row dd { font-size: .92rem; font-weight: 500; }
.record-row dd .masked { color: var(--ink-40); letter-spacing: .08em; }
.record-foot { display: flex; justify-content: space-between; font-family: var(--jbmono); font-size: .68rem; color: var(--ink-40); padding: .8rem 1.4rem; background: var(--bg-soft); border-top: 1px solid var(--line); }

/* ── dataviz components (blog + inzichten) ── */
.chart-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.7rem; margin: 2.2rem 0; }
.chart-block h3, .chart-block h4 { font-size: 1.05rem; margin-bottom: .25rem; }
.chart-sub { font-family: var(--jbmono); font-size: .68rem; color: var(--ink-40); margin-bottom: 1.4rem; }
.bar-row { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr 3.4rem; gap: .9rem; align-items: center; padding: .45rem 0; font-size: .88rem; }
.bar-track { background: var(--bg-soft); border-radius: 99px; height: .9rem; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--blue); transform-origin: left; animation: grow 1s cubic-bezier(.2,.6,.2,1) both; }
.bar-row:nth-child(odd) .bar-fill { background: var(--blue-deep); }
.bar-fill.alt { background: var(--green) !important; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-val { font-family: var(--jbmono); font-size: .76rem; color: var(--ink-60); text-align: right; }
.chart-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-family: var(--jbmono); font-size: .66rem; color: var(--ink-40); border-top: 1px dashed var(--line); margin-top: 1.2rem; padding-top: .9rem; }
.chart-foot .src::before { content: "⌖ "; color: var(--green); }

/* big stat callout (pull-stat in articles) */
.pull-stat { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.8rem; margin: 2.2rem 0; }
.pull-stat b { font-family: var(--jbmono); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; color: var(--blue-deep); }
.pull-stat span { font-size: 1rem; color: var(--ink-60); }

/* data table */
.data-table { width: 100%; border-collapse: collapse; margin: 2.2rem 0; font-size: .92rem; }
.data-table caption { text-align: left; font-weight: 600; padding-bottom: .8rem; }
.data-table th { font-family: var(--jbmono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-40); font-weight: 400; text-align: left; padding: .55rem .8rem; border-bottom: 2px solid var(--line); }
.data-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.data-table tr:hover td { background: var(--bg-soft); }
.data-table td.num { font-family: var(--jbmono); font-size: .8rem; text-align: right; }

/* ── article (blog data-story) ── */
.article-head { max-width: 50rem; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4.5rem) 0 1.5rem; text-align: left; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-family: var(--jbmono); font-size: .72rem; color: var(--ink-40); margin-bottom: 1.2rem; }
.article-meta .cat { color: var(--blue); background: var(--blue-tint); padding: .25rem .65rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
.article-head .standfirst { font-size: 1.22rem; color: var(--ink-60); margin-top: 1.1rem; font-weight: 400; line-height: 1.55; }
.article-body { max-width: 44rem; margin: 0 auto; }
.article-body > p { margin: 1.3rem 0; }
.article-body h2 { font-size: 1.6rem; margin: 2.6rem 0 .9rem; }
.article-body a { color: var(--blue); text-decoration-color: var(--blue-tint); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body .chart-block, .article-body .pull-stat { max-width: 54rem; margin-left: 50%; transform: translateX(-50%); width: min(54rem, calc(100vw - 2.5rem)); }
.method-note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; font-size: .9rem; color: var(--ink-60); margin: 2.2rem 0; }
.method-note b { color: var(--ink); display: block; margin-bottom: .3rem; font-family: var(--jbmono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

/* newsletter box */
.newsletter { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.2rem; margin: 3rem 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; align-items: center; }
.newsletter h3 { font-size: 1.35rem; }
.newsletter p { color: rgba(255,255,255,.75); font-size: .92rem; margin-top: .4rem; }
.newsletter form { display: flex; gap: .6rem; }
.newsletter input { flex: 1; font-family: var(--euclid); font-size: .92rem; padding: .75rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 7vh, 5rem); padding: 3.5rem 0 2rem; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--jbmono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-40); margin-bottom: .9rem; font-weight: 400; }
.footer a, .footer .foot-line { display: block; font-size: .9rem; color: var(--ink-60); text-decoration: none; padding: .18rem 0; }
.footer a:hover { color: var(--blue); }
.footer .brand-line { font-size: .9rem; color: var(--ink-60); max-width: 26rem; margin-top: .8rem; }
.footer-legal { font-family: var(--jbmono); font-size: .68rem; color: var(--ink-40); margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ── responsive ── */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .utility { display: none; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-inner { flex-wrap: wrap; text-align: center; }
}
