/* Lené van Heerden, MAP Movement Utrecht. Colours from the MAP Movement palette. */

/* Self-hosted (latin subset) so visitors' IPs aren't sent to Google */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/assets/cormorant-garamond-600-a40c05a2.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400 700; font-display: swap; src: url("/assets/figtree-variable-f7c28c58.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("/assets/caveat-600-f0eed7a8.woff2") format("woff2"); }

:root {
  --berry: #c03c71;
  --berry-deep: #9e2d5b;
  --ink: #2f2847;
  --teal: #56b1a6;
  --mist: #f5f0fd;
  --fibre: #d6c8ee;
  --white: #fff;
  --muted: #5d5673;

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
  --script: "Caveat", cursive;

  --gutter: clamp(1rem, 4vw, 3rem);
  --column: 42rem;
  --wide: 65rem; /* hero: 26rem portrait + 5rem gap + 34rem text */

  /* Shapes: panels 28, small boxes 16, inputs 12, anything clickable is a pill */
  --radius-panel: 28px;
  --radius-box: 16px;
  --radius-input: 12px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 400; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.5vw, 2.9rem); line-height: 1.05; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; height: auto; }

a { color: var(--berry); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--berry-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.2rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--white); padding: .5rem 1rem; }

/* Buttons */
.button {
  display: inline-block;
  padding: .8em 1.5em;
  border: 2px solid var(--berry);
  border-radius: 999px;
  background: var(--berry);
  color: var(--white);
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .12s var(--ease-out);
}
.button:active { transform: translateY(1px) scale(.98); }
.button:hover { background: var(--berry-deep); border-color: var(--berry-deep); color: var(--white); }
.button--quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.button--quiet:hover { background: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Header: Lené's photo stands in for a logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* full-bleed bar, contents kept to the hero width */
  padding: .65rem max(var(--gutter), (100% - var(--wide)) / 2);
  background: rgb(255 255 255 / .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--teal); }
.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-weight: 700; }
.brand__tagline { font-size: .8rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav__links { gap: 1.5rem; }
.site-nav__links a { color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; }
.site-nav__links a:hover { color: var(--berry); text-decoration: underline; }

.nav-videos { color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav-videos:hover { color: var(--berry); text-decoration: underline; }

.lang { background: var(--mist); border-radius: 999px; padding: 3px; }
.lang a {
  display: block;
  min-width: 2.75rem;
  padding: .55rem .7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(47 40 71 / .15); }

@media (max-width: 760px) {
  .site-nav .site-nav__links { display: none; }
  .brand__tagline { display: none; }
}

/* Hero: portrait inside a ring of fibres, the one decorative moment */
.hero {
  display: grid;
  grid-template-columns: minmax(16rem, 26rem) minmax(0, 34rem);
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.hero__portrait { position: relative; aspect-ratio: 1; }
.hero__photo {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  border-radius: 50%;
  object-fit: cover;
}
.hero h1 { font-size: clamp(2.9rem, 6.5vw, 4.75rem); line-height: 1; }

.fibre-ring { display: block; width: 100%; height: 100%; }
.fibre-ring path { fill: none; stroke-width: 3; stroke-linecap: round; }
.fibre-ring .fibre { stroke: var(--fibre); }
.fibre-ring .berry { stroke: var(--berry); opacity: .6; }
.fibre-ring .teal { stroke: var(--teal); opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
  .fibre-ring path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: draw .7s ease-out var(--d) forwards;
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .hero__portrait { width: min(15rem, 66vw); }
}

/* One reading column for everything below the hero */
.help, .for-you, .about, .page-head, .form-page, .admin {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}

/* How I help: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; }
.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--berry);
  font: 600 1.3rem/1 var(--display);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.5rem;
  bottom: .4rem;
  border-left: 2px dotted var(--fibre);
}
.step p { margin-bottom: .4rem; }
.note { background: var(--mist); border-radius: var(--radius-box); padding: 1.1rem 1.4rem; margin-top: 1rem; }

/* People come to me for */
.for-you { padding-top: 0; }
.fibre-list { list-style: none; margin: 0; padding: 0; }
.fibre-list li { position: relative; padding: .6rem 0 .6rem 2.1rem; border-bottom: 1px solid var(--mist); font-size: 1.1rem; }
.fibre-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.3rem;
  height: .5rem;
  border-bottom: 2.5px solid var(--berry);
  border-radius: 0 0 50% 50%;
  transform: rotate(-12deg);
}

/* About */
.about { padding-top: 0; }
.sign-off { margin-top: 1.5rem; }
.sign-off__name { display: block; font: 600 2.6rem/1 var(--script); color: var(--berry); transform: rotate(-4deg); transform-origin: left; }

/* MAP trainers: the brag */
.trainers { padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem); }
.trainers__inner {
  max-width: 56rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.trainers__stat { display: grid; gap: .5rem; margin: 0; }
.trainers__number { font: 600 clamp(4.5rem, 11vw, 7rem)/.85 var(--display); color: var(--teal); }
.trainers__label { font: 600 1.5rem/1.15 var(--display); max-width: 11ch; }
.trainers__inner p { margin-bottom: 0; }
@media (max-width: 760px) {
  .trainers__inner { grid-template-columns: 1fr; }
}
.trainers .actions { align-items: center; gap: 1.5rem; }
.trainers__link { color: var(--white); font-weight: 600; }
.trainers__link:hover { color: var(--teal); }
.button--light { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.button--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Contact */
.contact { padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem); }
.contact__inner {
  max-width: 56rem;
  margin-inline: auto;
  background: var(--mist);
  border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 1.5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.contact-list .muted { display: block; font-size: .9rem; }
.contact__address { font: 600 1.6rem/1.25 var(--display); font-style: normal; margin-bottom: .5rem; }

@media (max-width: 760px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--mist); color: var(--muted); font-size: .9rem; padding: 2rem var(--gutter) 3rem; }
.site-footer__inner { max-width: 56rem; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.site-footer strong { color: var(--ink); }

/* Membership form */
.page-head { padding-bottom: 0; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.page-head--done { padding-bottom: 5rem; }
.page-head__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; }

.terms h2 { font-size: clamp(1.8rem, 3.5vw, 2.2rem); margin-top: 1rem; }
.terms ol { padding-left: 2.25rem; margin: 0 0 2.5rem; }
.terms li { padding-left: .5rem; margin-bottom: 1.5rem; }
.terms li::marker { font: 600 1.35rem var(--display); color: var(--berry); }
.terms h3 { margin-bottom: .3rem; }

.sign-form { background: var(--mist); border-radius: var(--radius-panel); padding: clamp(1.5rem, 4vw, 2.5rem); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="date"], [type="password"]),
.field textarea, .field select, .admin-search input[type="search"], .video-filters :is(input, select), .admin-link {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid #c9bde0;
  border-radius: var(--radius-input);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.field :is(input, textarea, select):focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--ink); }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.field--check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--berry); }
.field--check label { font-weight: 500; margin: 0; }
.field--signature input[type="text"] {
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font: 600 2.2rem/1.2 var(--script);
  padding: .25rem 0;
}
.field input[aria-invalid] { border-color: var(--berry); background: #fff7fa; }
.field--check input[aria-invalid] { outline: 2px solid var(--berry); outline-offset: 2px; }
.form-errors { background: var(--white); border-left: 4px solid var(--berry); padding: 1rem 1.25rem; border-radius: var(--radius-input); margin-bottom: 1.5rem; }
.form-errors:focus { outline: 3px solid var(--teal); outline-offset: 3px; }
.form-errors p { font-weight: 600; margin-bottom: .25rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }

.hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.field input[readonly] { background: var(--mist); color: var(--muted); }

/* Client videos: a plain dated list, nothing loads from YouTube/Vimeo until a video is opened */
.videos__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.videos__head h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin: 0; }
.button--small { padding: .55em 1.2em; font-size: .9rem; }
.video-filters { display: grid; grid-template-columns: 1fr auto; gap: .75rem; margin-bottom: 1rem; }
.video-filters[hidden] { display: none; }
.video-filters select { width: auto; }
.video-month h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 2rem 0 .25rem; }
.video-list { list-style: none; margin: 0; padding: 0; }
.video-list li { border-bottom: 1px solid var(--mist); }
.video-row { display: grid; grid-template-columns: clamp(7.5rem, 30%, 11rem) 1fr; gap: 1rem; align-items: start; padding: 1rem 0; color: var(--ink); text-decoration: none; }
.video-row__thumb { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-input); overflow: hidden; background: var(--mist); }
.video-row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-row__text { display: grid; gap: .15rem; min-width: 0; }
.video-row__date { color: var(--berry); font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.video-row__title { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.video-row:hover .video-row__title { color: var(--berry); text-decoration: underline; }
.video-row__meta { color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; background: var(--berry); color: var(--white); font-size: .75rem; font-weight: 600; vertical-align: .15em; }
.video__player { aspect-ratio: 16 / 9; margin: 1.5rem 0; border-radius: var(--radius-box); overflow: hidden; background: var(--ink); }
.video__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.videos .videos__sign-out { margin-top: 3rem; font-size: .9rem; color: var(--muted); }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--berry); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-button:hover { color: var(--berry-deep); }

/* Admin */
.admin { max-width: calc(48rem + 2 * var(--gutter)); padding-top: 1.5rem; }
.admin h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.admin h2 { font-size: 1.7rem; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-bottom: 1.5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--mist); }
.admin-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.admin-nav a[aria-current] { color: var(--berry); text-decoration: underline; }
.admin-nav form { margin-left: auto; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; }
.admin-search { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-search form { flex: 1; }
.admin-search input[type="search"] { width: 100%; padding-block: .6rem; }
.admin-search a { display: inline-block; padding-block: .65rem; font-size: .9rem; white-space: nowrap; }
.admin .button { padding: .55em 1.15em; font-size: .95rem; } /* compact: admin pages carry several buttons */
.admin-section { border-top: 1px solid var(--fibre); padding-top: 1.5rem; margin-top: 2rem; }
.admin-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.admin-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; padding: .5rem 0; border-bottom: 1px solid var(--mist); }
.admin-list form { margin-left: auto; }
.admin-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 0 1rem; margin-bottom: 1rem; }
.admin-inline .field { flex: 1 1 12rem; }
.admin-inline .button { margin-bottom: 1.25rem; }
.admin-link { margin-bottom: .75rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.admin-note { background: var(--mist); border-radius: var(--radius-box); padding: 1rem 1.25rem; }
.admin-login { max-width: 24rem; margin: 2rem auto; }
.flash { background: var(--mist); border-radius: var(--radius-input); padding: .75rem 1rem; }
.flash--alert, .warn { color: var(--berry-deep); font-weight: 600; }
.button--danger { border-color: var(--berry-deep); color: var(--berry-deep); margin-top: 2rem; }
.button--danger:hover { background: var(--berry-deep); }

/* Admin lists: whole rows are tap targets; text links get 44px-high hit areas for phones */
.admin-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist); }
.admin-rows li { border-bottom: 1px solid var(--mist); }
.admin-row { display: grid; gap: .1rem; padding: .85rem 0; color: var(--ink); text-decoration: none; }
.admin-row:hover .admin-row__title { color: var(--berry); text-decoration: underline; }
.admin-row__title { font-weight: 600; font-size: 1.05rem; }
.admin-row__date { color: var(--berry); font-size: .85rem; font-weight: 700; }
.admin-row__meta { color: var(--muted); font-size: .9rem; }
.admin-nav a, .admin-nav .link-button, .admin .back a, .admin-list a, .admin-list .link-button, .admin-contact a { display: inline-block; padding-block: .65rem; }
.admin-contact { display: flex; flex-direction: column; align-items: flex-start; }
.admin .back { margin: 0 0 .5rem; }
.signed-record__details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.signed-record__details dt { font-weight: 600; }
.signed-record__details dd { margin: 0; }
.signed-record__signature { font: 600 1.8rem/1 var(--script); }

/* Drop a file: the input is stretched over the whole area, so dropping and clicking both work */
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .2rem;
  margin-top: 1.5rem;
  padding: 2.25rem 1.5rem;
  border: 2px dashed var(--fibre);
  border-radius: var(--radius-box);
  text-align: center;
  transition: background-color .15s, border-color .15s;
}
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone--over { border-color: var(--berry); background: var(--mist); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Busy while a dropped file is read or sent; the spinner only turns when motion is welcome */
.dropzone__busy { display: none; align-items: center; gap: .6rem; font-weight: 600; }
.dropzone--busy { border-color: var(--berry); background: var(--mist); }
.dropzone--busy > :not(input, .dropzone__busy) { display: none; }
.dropzone--busy .dropzone__busy { display: inline-flex; }
.dropzone__busy::before { content: ""; width: 1.1rem; height: 1.1rem; border: 2px solid var(--fibre); border-top-color: var(--berry); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .dropzone__busy::before { animation: spin .8s linear infinite; }
}
@keyframes spin { to { transform: rotate(1turn); } }

.converted { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-box); background: var(--mist); }
.converted .hint { margin-top: .75rem; }
/* The first rows of the cleaned file, exactly as Xero will get them. Wider than the admin column on
   big screens (up to 72rem, keeping the gutters), and scrolls sideways on phones. */
.csv-preview { margin: 1.5rem calc(50% - min(50vw - var(--gutter), 36rem)) 0; overflow-x: auto; }
.csv-preview table { min-width: 100%; border-collapse: collapse; font-size: .85rem; }
.csv-preview caption { padding-bottom: .5rem; text-align: left; font-weight: 600; }
.csv-preview :is(th, td) { padding: .45rem .75rem .45rem 0; border-bottom: 1px solid var(--mist); text-align: left; vertical-align: top; white-space: nowrap; }
.csv-preview th { color: var(--muted); font-size: .8rem; font-weight: 600; }
.csv-preview .csv-preview__description { min-width: 14rem; white-space: normal; }
.csv-preview .csv-preview__amount { text-align: right; font-variant-numeric: tabular-nums; }

/* VAT return results: the original tool's look, after the Belastingdienst's form, so the numbers are easy to match up.
   Its own blue, red and green are deliberate here; text colours are darkened to pass contrast. */
.bd {
  --bd-accent: #1a56db;
  --bd-accent-bg: rgb(26 86 219 / .06);
  --bd-accent-border: rgb(26 86 219 / .12);
  --bd-text: #0f172a;
  --bd-text-2: #334155;
  --bd-muted: #64748b;
  --bd-border: #e2e8f0;
  --bd-border-light: #f1f5f9;
  --bd-green: #047857;
  --bd-red: #b91c1c;
  --bd-orange: #b45309;
  --bd-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  margin-top: 2rem;
  padding: clamp(.75rem, 3vw, 1.5rem);
  border-radius: var(--radius-panel);
  background: linear-gradient(160deg, #f8fafc, #eef2ff 50%, #f0f9ff);
  color: var(--bd-text);
  font: 400 .875rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd p { margin: 0; }
.bd-card { margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius-box); background: var(--white); box-shadow: 0 1px 4px rgb(15 23 42 / .06); }
.bd-steps { margin-bottom: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--bd-accent-border); border-radius: var(--radius-box); background: var(--bd-accent-bg); color: var(--bd-accent); }
.bd-steps ol { margin: .35rem 0 0; padding-left: 1.2rem; }
.bd-steps li { margin-bottom: .25rem; }

.bd-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: 1.1rem 1.4rem; }
.bd-meta__entity { font-size: .95rem; font-weight: 600; }
.bd-meta__period { color: var(--bd-muted); }
.bd-meta__source { font: 500 .8rem var(--bd-mono); color: var(--bd-text-2); text-align: right; }
.bd-deadline { padding: .75rem 1.4rem; border-top: 1px solid; font-weight: 500; }
.bd-deadline--ok { border-color: rgb(16 185 129 / .15); background: rgb(16 185 129 / .05); color: var(--bd-green); }
.bd-deadline--urgent { border-color: rgb(245 158 11 / .2); background: rgb(245 158 11 / .06); color: var(--bd-orange); }
.bd-deadline--passed { border-color: rgb(239 68 68 / .15); background: rgb(239 68 68 / .05); color: var(--bd-red); }

/* One grid row per rubriek, like the form */
.bd-row { display: grid; grid-template-columns: 3.5rem 1fr 7.5rem 7.5rem; gap: .5rem; align-items: center; padding: .75rem 1.25rem; border-bottom: 1px solid var(--bd-border-light); }
.bd-row[hidden] { display: none; }
.bd-row--head { padding-block: .9rem; border-bottom: 2px solid var(--bd-border); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bd-muted); }
.bd-row--head span:nth-child(n+3) { text-align: right; }
.bd-row--highlight { margin: 2px 4px; padding-inline: calc(1.25rem - 4px); border-radius: var(--radius-input); background: var(--bd-accent-bg); }
.bd-section { padding: 1rem 1.25rem .25rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bd-muted); }
.bd-section span { margin-left: .4rem; font-size: .65rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.bd-code { justify-self: start; padding: .1rem .45rem; border-radius: 999px; background: rgb(26 86 219 / .08); color: var(--bd-accent); font: 600 .85rem var(--bd-mono); white-space: nowrap; }
.bd-label { color: var(--bd-text-2); font-weight: 500; line-height: 1.3; }
.bd-label small { display: block; color: var(--bd-muted); font-size: .85em; font-weight: 400; }
.bd-empty { color: var(--bd-muted); font-family: var(--bd-mono); text-align: right; }
/* Amounts are copy buttons; the negative margin keeps a 44px tap area without taller rows */
.bd-amount {
  justify-self: end;
  padding: .85rem .5rem;
  margin: -.85rem -.5rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 500 .875rem var(--bd-mono);
  white-space: nowrap;
  text-decoration: underline dotted rgb(26 86 219 / .35);
  text-underline-offset: .3em;
  cursor: pointer;
}
.bd-amount:hover { background: var(--bd-accent-bg); }
.bd-amount:last-child { font-weight: 700; }
.bd-amount[data-copied] { color: var(--bd-green); text-decoration: none; }
.bd-amount[data-copied]::after { content: " ✓"; }
.bd-total { margin: .4rem; padding-inline: calc(1.25rem - .4rem); border: 1px solid rgb(239 68 68 / .2); border-radius: var(--radius-input); background: rgb(239 68 68 / .05); color: var(--bd-red); }
.bd-total .bd-code { background: rgb(239 68 68 / .1); color: inherit; font-weight: 700; }
.bd-total .bd-label { color: inherit; font-size: .95rem; font-weight: 700; }
.bd-total .bd-amount { font-size: 1rem; }
.bd-total--refund { border-color: rgb(16 185 129 / .2); background: rgb(16 185 129 / .05); color: var(--bd-green); }
.bd-total--refund .bd-code { background: rgb(16 185 129 / .1); }

.bd-card__title { padding: 1.1rem 1.4rem .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bd-muted); }
.bd-checks ul { margin: 0; padding: 0 1.4rem 1rem; list-style: none; }
.bd-check { display: grid; grid-template-columns: 1.1rem 1fr; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--bd-border-light); color: var(--bd-text-2); }
.bd-check:last-child { border-bottom: 0; }
.bd-check::before { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-top: .1rem; border-radius: 50%; color: var(--white); font: 700 .7rem/1 var(--bd-mono); }
.bd-check--ok::before { content: "✓"; background: var(--bd-green); }
.bd-check--info::before { content: "i"; background: var(--bd-accent); }
.bd-check--warn { color: var(--bd-orange); }
.bd-check--warn::before { content: "!"; background: var(--bd-orange); }

.bd-breakdown summary { padding: .8rem 1.4rem; color: var(--bd-muted); font-weight: 600; text-align: center; cursor: pointer; }
.bd-breakdown summary:focus-visible { outline-offset: -3px; } /* the card clips anything outside */
.bd-breakdown[open] summary { border-bottom: 1px solid var(--bd-border-light); }
.bd-breakdown__body { padding: .5rem 1.4rem 1.4rem; }

/* How the VAT adds up: charged, paid, and the one subtracted from the other */
.bd-sum { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: .8125rem; }
.bd-sum caption { padding-bottom: .35rem; text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bd-text-2); }
.bd-sum caption span { margin-left: .35rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--bd-muted); }
.bd-sum :is(th, td) { padding: .4rem 0; border-bottom: 1px solid var(--bd-border-light); text-align: left; font-weight: 400; color: var(--bd-text-2); }
.bd-sum :is(th, td):not(:first-child), .bd-sum tfoot td { padding-left: .75rem; text-align: right; font-family: var(--bd-mono); white-space: nowrap; }
.bd-sum thead th { font-size: .7rem; font-weight: 600; color: var(--bd-muted); }
.bd-sum thead th:not(:first-child) { font-family: inherit; }
.bd-sum tfoot :is(th, td) { border-top: 2px solid var(--bd-border); border-bottom: 0; font-weight: 700; color: var(--bd-text); }
.bd-sum--result { border-collapse: separate; border-spacing: 0; border-radius: var(--radius-input); background: rgb(239 68 68 / .05); }
.bd-sum--result :is(th, td):first-child { padding-left: .9rem; }
.bd-sum--result :is(th, td):last-child { padding-right: .9rem; }
.bd-sum--result tfoot :is(th, td) { color: var(--bd-red); font-size: .9rem; }
.bd-sum--refund { background: rgb(16 185 129 / .05); }
.bd-sum--refund tfoot :is(th, td) { color: var(--bd-green); }
.bd .bd-sum__note { margin-top: .5rem; color: var(--bd-muted); font-size: .8rem; }

/* Phones: the results run edge to edge so the description column keeps some width */
@media (max-width: 600px) {
  .bd { margin-inline: calc(-1 * var(--gutter)); padding: .5rem; border-radius: 0; }
  .bd-row { grid-template-columns: 2rem 1fr 4.6rem 4.6rem; gap: .3rem; padding-inline: .6rem; font-size: .8125rem; }
  .bd-row--head span:nth-child(2) { visibility: hidden; } /* "Rubriek" runs into its place */
  .bd-row--highlight { padding-inline: calc(.6rem - 4px); }
  .bd-total { padding-inline: calc(.6rem - .4rem); }
  .bd-code { padding-inline: .3rem; font-size: .75rem; }
  .bd-amount { font-size: .8125rem; }
  .bd-meta__source { text-align: left; }
  .bd-section, .bd-meta, .bd-deadline, .bd-card__title, .bd-checks ul { padding-inline: .9rem; }
}

/* Cormorant defaults to old-style figures; kept last, after any `font` shorthand, which resets it */
h1, h2, .trainers__number, .trainers__label, .contact__address, .step::before, .terms li::marker { font-variant-numeric: lining-nums; }

@media print {
  .site-header, .site-footer, .no-print, .skip { display: none; }
  .form-page { padding: 0; }
}
