/* ==========================================================================
   bjørn base stylesheet
   Inspiration: 2012 style guide (PDF). Interpretation: free-busy (2026).
   Rules:
   - Components use ROLE tokens only, never palette tokens directly.
   - Everything local: no CDN, no external references.
   ========================================================================== */

/* Two families, paired as in the PDF: a rounded face for headings, menu and buttons (VAG Rounded),
   a neutral grotesque for text (print: Akkurat; screen: Helvetica). Open stand-ins, self-hosted:
   Nunito for VAG Rounded, Hanken Grotesk for Akkurat (owner 2026-10-29; Arimo, a Helvetica
   stand-in, is the fallback choice). Both SIL OFL 1.1, one variable file per style, subset to
   Latin and Latin Extended-A (pyftsubset). */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
/* Only downloaded when italic text is actually rendered. */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-italic-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hankengrotesk-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hankengrotesk-latin-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---- Palette: exact brand values, unchanged since 2012 ---- */
  --purple:   #4b3e73;
  --lavender: #f4efff;
  --lilac:    #aea6c2;
  --yellow:   #f1ff51;
  --olive:    #453d0a;
  --orange:   #f8633b;
  --white:    #ffffff;

  /* ---- Roles (contrast on intended background in comments) ---- */
  --text:            var(--purple);    /* 9.4:1 on white */
  --text-muted:      #6b6189;          /* muted purple: secondary text and form field edges (5.7:1) */
  --surface:         var(--white);
  --surface-soft:    var(--lavender);  /* today, week numbers, quiet panels */
  --surface-brand:   var(--purple);    /* footer, active states, primary buttons */
  --on-brand:        var(--white);     /* 9.4:1 */
  --on-brand-soft:   var(--lavender);  /* 8.3:1 */
  --on-brand-muted:  var(--lilac);     /* 4.0:1: large text or decoration only */
  --highlight:       var(--yellow);    /* hero / ad background */
  --on-highlight:    var(--olive);     /* 10:1 */
  --action:          var(--orange);    /* buttons and language switch; the main nav follows the PDF */
  --action-hover:    #ea5228;          /* slightly darker orange */
  --on-action:       var(--white);     /* 3.1:1, below WCAG AA 4.5:1: accepted risk (owner decision) */
  --focus:           var(--purple);

  /* ---- Type (see the @font-face comment): --font for headings, menu, buttons; --font-text for text ---- */
  --font: "Nunito", "VAG Rounded", "Arial Rounded MT Bold", ui-rounded, "Segoe UI", Arial, sans-serif;
  --font-text: "Hanken Grotesk", "Akkurat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-h1: 2.25rem;   /* 36px: PDF H1 */
  --fs-h2: 1.875rem;  /* 30px: PDF H2 */
  --fs-h3: 1.5rem;    /* 24px: PDF H3 */
  --fs-h4: 1.125rem;  /* 18px: PDF H4 */
  --fs-body: 1rem;    /* 16px: PDF said 13px, too small today */
  --fs-small: 0.875rem;
  --lh: 1.6875;      /* 27px: 1.5 baselines */
  --measure: 68ch;    /* readable line length */

  /* ---- Space, shape, layout ---- */
  /* Rhythm: PDF baseline 18px. Every vertical size is a multiple of 9px. */
  --bl: 1.125rem;     /* 18px */
  --s1: 0.28125rem;   /* 4.5px */
  --s2: 0.5625rem;    /* 9px */
  --s3: 1.125rem;     /* 18px */
  --s4: 1.6875rem;    /* 27px */
  --s5: 2.25rem;      /* 36px */
  --s6: 3.375rem;     /* 54px */
  --s7: 4.5rem;       /* 72px */
  /* Shape rule: small square corners = a control (button, toggle, nav box); larger rounded box = it contains something. */
  --radius-control: 4px; /* buttons, language switch, chips: square like the purple nav boxes, as in the PDF (owner 2026-10-30) */
  --radius-box: 12px;   /* logo, panels, images, form fields */
  --container: 58.75rem; /* 940px content = 960.gs: 12 x 60px columns + 11 x 20px gutters, 10px frame margin each side */
  --gap: 1.25rem;       /* 20px column gutter, as in 960.gs */
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- Reset / elements ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* components with their own display must still hide */
/* Everything is in rem, so this one value scales the whole design proportionally, like a 112.5%
   zoom: 18px text (owner 2026-10-29: 16px felt small). A percentage keeps the visitor's own browser
   setting on top. Pixel values in the comments below are at the 16px reference. Media queries
   do not scale (their rem is the browser default), so breakpoints stay at 768 and 1024px. */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* short pages keep the scrollbar's space: no sideways shift between pages */
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 var(--fs-body)/var(--lh) var(--font-text); color: var(--text); background: var(--surface);
  overflow-wrap: break-word; hyphens: auto; /* long German/Dutch compounds wrap instead of overflowing (uses <html lang>) */
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--s3); font-family: var(--font); }
h4, h6 { font-family: var(--font-text); font-weight: 700; } /* PDF: H4 and H6 in the text face, bold */
h1 { font-size: var(--fs-h1); line-height: 2.8125rem; font-weight: 700; } /* 45px */
h2 { font-size: var(--fs-h2); line-height: 2.25rem; font-weight: 300; }  /* 36px */
/* The pages use h3 for small section headings ("What you get"); in the PDF that is H4: 18px, text
   face, bold. The PDF's H3 (24px VAG Rounded Thin) has no use on the site. */
h3, .h3 { font: 700 var(--fs-h4)/1.6875rem var(--font-text); } /* 27px; .h3: an h2 that looks like h3 (heading order) */
p, ul, ol, dl { margin: 0 0 var(--s3); }
p, li { max-width: var(--measure); }
.expertise > p { max-width: none; } /* the bubbles' one-line intro spans the block, as the cloud does (owner, 2026-11-01) */
/* Text links: underline in text colour, orange on hover (PDF). */
a { color: inherit; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--action); text-decoration-thickness: 2px; }
strong, b, .brand { font-weight: 700; }
small, .small { font-size: var(--fs-small); line-height: var(--bl); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* On purple surfaces a purple outline is invisible (WCAG 2.4.7): white there. */
.site-footer :focus-visible, .site-nav .sub-nav :focus-visible { outline-color: var(--on-brand); }
/* Headings break only where the text allows (soft hyphens), never mid-word by the browser: "of-fensive" in a
   heading reads badly. overflow-wrap (body) still keeps an unbreakable word from overflowing. */
h1, h2, h3, h4, h5, h6, .session-title { hyphens: manual; }
.muted { color: var(--text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s2); top: -100px; padding: var(--s2) var(--s3);
  background: var(--surface-brand); color: var(--on-brand); border-radius: var(--radius-control); z-index: 100; }
.skip-link:focus { top: var(--s2); }

/* ---------- Layout: the PDF's 960px, 12-column frame ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* One 12-column grid for everything, so column edges line up across sections. */
.features, .template-2, .highlight .container {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
}
/* Three equal columns (4/4/4). The PDF's 5/4/3 suited unequal content; the home page now
   lists three peers (in-company, custom, consultancy), which read unevenly in 5/4/3. */
.features > * { grid-column: span 4; }             /* PDF landing page: 4/4/4 */
.template-2 > :first-child { grid-column: span 8; } /* PDF subpage: 8 + 4 */
.template-2 > :last-child { grid-column: span 4; }
/* Two halves of an 8-column area with one gutter = exactly 4 + 4 columns. */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
main { flex: 1 0 auto; padding-block: var(--s6); }
/* Home and training: the yellow bar (with the page's h1) belongs to <main> too, so the skip link and landmarks
   reach the heading; the padding then goes to the content below the bar. */
main.with-bar { padding-block: 0; }
.main-body { padding-block: var(--s6); }
/* PDF: subpages have a yellow line under the header; the logo hangs over it. */
.rule { height: 5px; background: var(--highlight); }
.rule + main { padding-top: var(--s6); }

/* ---------- Header (PDF): hanging logo, slogan, lowercase text nav ---------- */
.site-header { position: relative; z-index: 2; } /* transparent: a hero cut-out may show behind it */
.site-header .container {
  display: grid; grid-template-columns: auto auto 1fr; column-gap: var(--s4);
  padding-bottom: var(--s5);   /* 36px between menu and yellow bar, as in the PDF; also clears the stick-out */
  grid-template-areas: "logo slogan lang" "logo slogan nav";
  min-height: 5.0625rem; /* 81px */
}
.logo { grid-area: logo; }
.header-slogan { grid-area: slogan; }
.lang-switch { grid-area: lang; justify-self: end; }
.site-nav { grid-area: nav; justify-self: end; }
.logo {
  display: block; flex: none; width: 7.875rem; height: 7.875rem; /* 126px = 7 baselines */
  margin-bottom: -2.8125rem;                                  /* hangs over the yellow line / hero */
  border-radius: 0;  /* square, as in the PDF */
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; }
/* A logo on a page without the site header (404, coming soon): no overhang, space below the logo. */
main > .logo { margin: var(--s5) 0 var(--s4); }
.header-slogan { align-self: end; margin: 0 0 var(--s2); color: var(--text-muted); /* 5.7:1; lilac was 2.3:1 */ font-family: var(--font); font-weight: 300; font-size: var(--fs-h4); white-space: nowrap; }
.site-nav { padding-top: var(--s2); }
.site-nav ul, .lang-switch ul { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0 var(--s2);
  font-family: var(--font); font-size: 1.0625rem; font-weight: 400; line-height: 1.75; text-transform: lowercase;
  text-decoration: none; border-radius: 4px;
}
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--action); text-decoration-thickness: 2px; }
.site-nav a[aria-current="page"] { background: var(--surface-brand); color: var(--on-brand); text-decoration: none; }
/* Submenu (PDF "website 2"): a purple panel joined to the menu item, on hover or keyboard focus.
   Only where hovering exists: on touch screens the item opens the section's landing page, which
   lists the same pages (a hover menu there would need a second tap). */
.site-nav .sub-nav { display: none; }
@media (hover: hover) {
  .site-nav .has-sub { position: relative; }
  .site-nav .has-sub:hover > a, .site-nav .has-sub:focus-within > a {
    background: var(--surface-brand); color: var(--on-brand); text-decoration: none; border-radius: 4px 4px 0 0;
  }
  .site-nav .has-sub:hover > .sub-nav, .site-nav .has-sub:focus-within > .sub-nav { display: block; }
  .site-nav .sub-nav {
    position: absolute; top: 100%; left: 0; z-index: 3; min-width: 13.5rem;
    padding: var(--s1) 0; background: var(--surface-brand); border-radius: 0 4px 4px 4px;
  }
  .site-nav .sub-nav li + li { border-top: 1px solid var(--on-brand-muted); } /* the PDF's thin dividers */
  .site-nav .sub-nav a { /* PDF: small bold text face, roomy rows */
    padding: var(--s2) var(--s3); color: var(--on-brand); font: 700 0.875rem/1.5 var(--font-text);
    text-transform: none; border-radius: 0; white-space: nowrap;
  }
}

/* Language switch: flag-only buttons; hover or keyboard focus expands the name.
   The name is collapsed, not hidden, so screen readers always announce it. */
.lang-switch { padding-top: var(--s2); }
.lang-switch a {
  display: inline-flex; align-items: center;
  padding: 3px 7px; border: 1px solid var(--action); border-radius: var(--radius-control);
  background: var(--surface); color: var(--text);
  font-family: var(--font); font-size: var(--fs-small); font-weight: 600; line-height: 1; text-decoration: none;
}
.lang-name { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .2s ease, opacity .2s ease, margin .2s ease; }
.lang-switch a:hover .lang-name, .lang-switch a:focus-visible .lang-name { max-width: 8rem; opacity: 1; margin-left: var(--s2); }
.lang-switch a:hover, .lang-switch a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Colour semantics: orange = you can act on it; purple = selected/current state (as the nav tab);
   yellow = highlight (as the yellow bar). */
.lang-switch a[aria-current="true"] { background: var(--surface-brand); border-color: var(--surface-brand); color: var(--on-brand); }
.flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; flex: none; } /* decorative: alt="" */

/* ---------- Buttons: orange, square like the nav boxes ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s4);
  border: 1px solid var(--action); border-radius: var(--radius-control);
  background: var(--action); color: var(--on-action);
  font: 600 var(--fs-small)/1.75 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--action-hover); border-color: var(--action-hover); outline: 2px solid var(--focus); outline-offset: 2px; }
/* Toggle: orange outline button; filled orange when pressed (as the current language). */
.btn-toggle {
  display: inline-flex; align-items: center; padding: 0 var(--s3); cursor: pointer;
  border: 1px solid var(--action); border-radius: var(--radius-control);
  background: var(--surface); color: var(--text); font: 600 var(--fs-small)/var(--s4) var(--font);
}
.btn-toggle:hover, .btn-toggle:focus-visible { background: var(--surface-soft); outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-toggle[aria-pressed="true"] { background: var(--surface-brand); border-color: var(--surface-brand); color: var(--on-brand); }

/* ---------- Breadcrumb, lead ---------- */
.crumbs { margin-bottom: var(--s3); font-size: var(--fs-small); line-height: var(--bl); color: var(--text-muted); }
/* A heading's subline: completes the heading in smaller, muted type ("... that you can join"). */
.subline { margin-top: calc(-1 * var(--s2)); color: var(--text-muted); }
.lead { font-size: 1.25rem; line-height: 1.6875rem; max-width: var(--measure); }
.positioning { hyphens: manual; } /* one line of who I am: no broken words */

/* ---------- Highlight (PDF "advertentie"): yellow text block + duotone image ---------- */
.highlight { background: var(--highlight); color: var(--on-highlight); }
/* Centred vertically beside the photo (owner, 2026-10-31), with just enough padding: above, well clear of the
   logo's lower edge in the bar; below, a little air. The bar is the photo's height unless the text needs more. */
.highlight-text { grid-column: span 5; padding-block: 3.125rem var(--s3);
  display: flex; flex-direction: column; justify-content: center; }
.highlight-text > .btn { align-self: flex-start; } /* a button keeps its own width in the column */
.highlight .hero-figure { grid-column: span 7; align-self: stretch; width: 100%; } /* width from the column, never from the stretched height */
.highlight h1, .highlight h2 { color: var(--on-highlight); font-size: var(--fs-h3); line-height: 2.25rem; font-weight: 800; }
/* Hero image (PDF): a light greyscale picture, tinted yellow where it lies on the yellow bar and
   left untinted where its subject sticks out above it into the header. As in the PDF the photo
   itself is a rectangle on the bar; only the subject's top rises above it, staying clear of the
   menu. Breakout images are therefore drawn with a transparent band of --overhang at the top,
   in which only the subject continues (see docs/ARCHITECTURE.md for the image specification). Two copies of the same file
   (one download), clipped to complementary parts:
     .hero-out  the part above the bar, plain greyscale
     .hero-in   the part on the bar, multiplied with the yellow (the PDF's colour mask)
   Rectangular photos: no .breakout class, no overhang, so .hero-out shows nothing. */
.highlight { position: relative; }
/* Fixed bar height (owner, 2026-10-31): the bar is as high as the photo at its own proportion (1080 x 648 =
   5:3), so the photo fills it uncropped, and the text is made to fit that height (the featured session
   below). Only text that does not fit makes the bar taller; the photo then covers it. The bar's
   height must not follow the text, or every change there (the schedule arriving, the web fonts) would
   visibly rescale ("zoom") the photo. */
.hero-figure { --overhang: 0rem; position: relative; aspect-ratio: 5 / 3; }
.hero-figure.breakout { --overhang: 1.6875rem; } /* 27px, as in the PDF: a head rising above the bar, clear of the menu */
.hero-figure img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: calc(100% + var(--overhang));
  object-fit: cover; object-position: center bottom; filter: grayscale(1); pointer-events: none;
}
.hero-out { z-index: 1; clip-path: inset(0 0 calc(100% - var(--overhang)) 0); }
.hero-in { clip-path: inset(var(--overhang) 0 0 0); mix-blend-mode: multiply; }
.hero-figure:not(.breakout) .hero-out { display: none; }

/* Duotone (PDF): any greyscale image becomes yellow/olive. Replace placeholder.svg with real photos. */
.duotone { position: relative; background: var(--highlight); overflow: hidden; isolation: isolate; border-radius: var(--radius-box); }
.duotone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.duotone::after { content: ""; position: absolute; inset: 0; background: var(--olive); mix-blend-mode: lighten; pointer-events: none; }
.aside-image { aspect-ratio: 4 / 3; margin-bottom: var(--s4); }
.portrait { width: 10.125rem; height: 10.125rem; border-radius: 50%; margin-bottom: var(--s4); }

/* ---------- Icons (PDF "diensten") and feature columns (PDF landing page) ---------- */
.icon { width: 2.8125rem; height: 2.8125rem; } /* 45px */
.feature { text-align: center; display: flex; flex-direction: column; } /* cards stretch to the row height */
.feature > .btn { margin-top: auto; align-self: center; } /* buttons line up at the bottom of every card */
.feature .icon { margin: 0 auto var(--s3); }
.feature p { text-align: left; }
.feature h2 { font-size: var(--fs-h4); font-weight: 700; }

/* ---------- Panels, aside ---------- */
.panel { background: var(--surface-soft); border-radius: var(--radius-box); padding: var(--s4); }
.aside { font-size: var(--fs-small); line-height: var(--bl); }
.aside h2 { font-size: var(--fs-h4); font-weight: 700; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; margin-bottom: var(--s1); }
input, textarea, select {
  width: 100%; max-width: 32rem; padding: var(--s2) var(--s3);
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--text-muted); border-radius: var(--radius-box);
}
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--purple); }
textarea { min-height: 10rem; resize: vertical; }
.field { margin-bottom: var(--s4); }
.field-hint { margin: var(--s1) 0 0; }
.field-error { font-size: var(--fs-small); font-weight: 700; color: var(--text); border-left: 3px solid var(--action); padding-left: var(--s2); }

/* ---------- Footer: only the slogan, centred ---------- */
.site-footer { background: var(--surface-brand); padding-block: var(--s6); }
/* Slogan centred; the privacy link on the same baseline, left, on the content edge of the grid. */
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; row-gap: var(--s3); }
.site-footer .slogan { grid-column: 2; grid-row: 1; margin: 0 auto; text-align: center; }
.imprint { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: var(--s1) var(--s4); margin: 0 0 var(--s3); }
.imprint dt { font-weight: 700; }
.imprint dd { margin: 0; }
.footer-legal { grid-column: 1; grid-row: 1; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); margin: 0; }
.footer-privacy, .footer-imprint, .footer-terms, .footer-security {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--on-brand-soft); font-size: var(--fs-small); text-decoration: none;
}
.footer-imprint:hover, .footer-terms:hover, .footer-security:hover { text-decoration: underline; text-decoration-color: var(--action); }
.footer-privacy:hover { text-decoration: underline; text-decoration-color: var(--action); }
.site-footer .slogan { color: var(--on-brand-muted); font-family: var(--font); font-size: var(--fs-h3); font-weight: 300; }
.site-footer .slogan .brand { color: var(--on-brand-soft); }
/* Accreditations (generated from the registry), as in Barth's design: small white logos on the right of
   the footer's first line, the small text (here the privacy link) on the left. On hover the original
   colours, on a light tile so they stay readable. */
.accreditations { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
.accreditations ul { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.accreditations li, .accreditations .brand-link { display: flex; }  /* no line box under the logo: it centres on the row */
.accreditations img { height: 1.375rem; max-width: 4.5rem; width: auto; object-fit: contain; padding: 2px 4px; border-radius: 4px;
  filter: brightness(0) invert(1); opacity: .85; transition: filter .2s ease, background-color .2s ease, opacity .2s ease; }
.accreditations img:hover { filter: none; opacity: 1; background: var(--surface); }


/* ---------- Sections and the training schedule ---------- */
.block { margin-top: var(--s6); }
.block:first-child { margin-top: 0; }
.eyebrow { margin: 0 0 var(--s2); font-size: var(--fs-small); line-height: var(--bl); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sessions { margin-bottom: var(--s3); }
/* The schedule page's list arrives after the page: until then it holds a screen's height, so the iCal line and
   the footer start out of view instead of jumping down (layout shift). Only with JS; without it, no gap. */
@media (scripting: enabled) { .sessions[data-view="all"]:empty { min-height: 100vh; } }
.session {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: var(--s4); border-top: 1px solid var(--surface-soft);
}
.session-date { grid-column: span 3; margin: 0; font-weight: 700; }
/* Text left, logos right (vendor on top, providers below), so the logos never push the title. */
.session-body { grid-column: span 9; display: flex; align-items: flex-start; gap: var(--s4); }
.session-main { flex: 1; min-width: 0; }
.session-title { margin-bottom: var(--s2); font-size: var(--fs-h4); line-height: var(--lh); font-weight: 700; }
.session-logos { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); flex: none; padding-top: var(--s1); }
/* Vendor and providers in one size box, so they carry about the same weight. A fixed height, not
   max-height: SVGs without their own width/height would otherwise collapse to 0 in a flex column. */
/* Logos and provider names link to the party's main website (new tab): no underline, no baseline gap. */
.brand-link { display: inline-flex; color: inherit; text-decoration: none; }
.brand-link:hover .provider-name { text-decoration: underline; }
.brand-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.accreditations .brand-link:focus-visible { outline-color: var(--on-brand); }
.vendor-logo, .provider-logo { height: 1.25rem; max-width: 6rem; width: auto; object-fit: contain; object-position: right center; }
.signup-who .provider-logo { object-position: left center; }
.session-role { display: flex; align-items: center; gap: var(--s2); }
.session-role .badge { margin: 0; }
/* The square bjørn logo beside the role badge: as tall as the badge (its line height), a matching pair. */
.session-role .vendor-logo[src$="/bjorn-logo.svg"] { height: calc(var(--lh) * 1rem); }
.provider-name { font-size: var(--fs-small); line-height: 1; font-weight: 700; color: var(--purple); }
/* Logos (docs/LOGOS.md): brand-styled by default, a silhouette in the site's purple, with the
   original colours on hover. The chain turns any colour into the purple (rendered: Chromium
   76,63,116, WebKit 72,62,112, against #4b3e73; found by a search against the browser's own
   rendering). To show the original colours everywhere, set --logo-filter to none. */
:root { --logo-filter: brightness(0) saturate(100%) invert(39%) sepia(25%) saturate(959%) hue-rotate(214deg) brightness(65%) contrast(97%); }
.vendor-logo, .provider-logo, .popover-logo { filter: var(--logo-filter); transition: filter .2s ease; }
.vendor-logo:hover, .provider-logo:hover, .popover-logo:hover { filter: none; }
/* The owner's own logo is the brand itself: always as it is. */
.vendor-logo[src$="/bjorn-logo.svg"], .popover-logo[src$="/bjorn-logo.svg"] { filter: none; }
/* Two-tone logos whose shape only reads through their light/dark contrast (a silhouette makes them a
   blob): dark parts to the purple, light parts to the lilac (computed with the Filter Effects formulas:
   #01507c -> 69,67,115 and #98c5db -> 178,170,196). Hover still shows the original colours. */
:root { --logo-filter-duotone: grayscale(1) sepia(1) hue-rotate(204deg) saturate(3) brightness(.8) contrast(.9); }
.provider-logo[src$="/providers/tstc.svg"] { filter: var(--logo-filter-duotone); }
.provider-logo[src$="/providers/tstc.svg"]:hover { filter: none; }
.session-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin-bottom: var(--s2); }
.session-meta .badge { margin: 0; }  /* the flex gap spaces it; a margin would indent it when it wraps */
/* Guaranteed to run: a highlight, so the yellow with purple text (colour semantics). */
.badge.badge-highlight { background: var(--highlight); color: var(--purple); } /* two classes: .badge comes later in this file */
/* The sign-up popover: a row per provider, the logo in an equally wide box on the left. */
/* Two classes: .popover (further down) caps the width at 22rem; this one must win. */
.popover.signup-popover { width: min(36rem, calc(100vw - 2 * var(--gutter))); max-width: none; }
.popover-studio { margin-block: var(--s2) var(--s3); }
.popover-map { display: block; margin-block: var(--s2) var(--s3); }
.popover-map img { display: block; width: 100%; height: auto; border-radius: var(--radius-box); border: 1px solid var(--surface-soft); }
.signup-row { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s3); align-items: center;
  padding-block: var(--s2); border-top: 1px solid var(--surface-soft); }
.signup-row:last-of-type { margin-bottom: var(--s3); border-bottom: 1px solid var(--surface-soft); }
.signup-who { display: flex; align-items: center; }
.signup-how { hyphens: manual; }
.signup-how > :last-child { margin-bottom: 0; }
.session-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* Status label, not clickable: a small grey box; clickable things are orange. */
.badge { display: inline-block; margin-bottom: var(--s2); padding: 0 var(--s2); border-radius: 4px;
  background: var(--surface-soft); font-size: var(--fs-small); line-height: var(--s4); font-weight: 700; }
/* The next session inside the yellow bar: one column, olive text. To fit the photo's height, schedule.js
   (fitBar) drops the title's abbreviation, then the guaranteed badge, then the unofficial-preparation note, then
   takes a smaller title, each only when needed. */
.highlight .session { display: block; padding: 0; border: 0; }
.highlight .session-title { font-size: var(--fs-h3); line-height: 2.25rem; font-weight: 800; color: var(--on-highlight); }
.highlight .session-title.compact { font-size: 1.25rem; line-height: var(--s4); } /* fitBar's last step */
.highlight .badge { background: var(--purple); color: var(--on-brand); } /* brand purple on yellow, as elsewhere (owner, 2026-11-01) */


/* ---------- Home page ---------- */
/* The next item, one line at the bottom of the bar; a highlighted item takes the bar instead. */
.next-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin: var(--s4) 0 0; font-size: var(--fs-small); line-height: var(--bl); }
.next-label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.help-cards .feature h3 { font-family: var(--font); }
/* Upcoming and reading side by side on wide screens; each list compact (date above the title). */
/* Read articles look read: :visited uses the browser's own history; the site stores nothing. */
.news-item > a:visited { color: var(--text-muted); }


/* ---------- Roadmap (generated by tools/build.py) ---------- */
/* Wide screens: no scroll container, so the header row can stick to the top of the window.
   Narrow screens: the table scrolls inside its own box in both directions, so both the header
   row and the theme column stay visible (a sticky header needs its scroll container). */
.roadmap-table thead th { position: sticky; top: 0; z-index: 2; }
.roadmap-table thead th:first-child { left: 0; z-index: 3; }
/* Narrow screens: the theme column stays put while the levels scroll past it. */
.roadmap-table tbody th {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  box-shadow: 1px 0 0 var(--surface-soft);
}
/* Optical structure: alternating theme rows, and level headers that deepen from foundation to
   expert. Colours on cells (not rows) so the sticky theme column carries the same shade. */
.roadmap-table tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--lavender) 60%, var(--surface)); }
.roadmap-table thead th { background: var(--lavender); }
.roadmap-table thead th:nth-child(2) { background: color-mix(in srgb, var(--purple) 8%, var(--surface)); }
.roadmap-table thead th:nth-child(3) { background: color-mix(in srgb, var(--purple) 14%, var(--surface)); }
.roadmap-table thead th:nth-child(4) { background: color-mix(in srgb, var(--purple) 20%, var(--surface)); }
.roadmap-table thead th:nth-child(5) { background: color-mix(in srgb, var(--purple) 26%, var(--surface)); }
.roadmap-table tbody th { border-right: 2px solid var(--lavender); }
.roadmap-table { width: 100%; min-width: 40rem; border-collapse: separate; border-spacing: 0; table-layout: fixed; } /* separate: sticky cells keep their edges */
.roadmap-table th:first-child { width: 11rem; }
.roadmap-table th, .roadmap-table td { padding: var(--s2); border-bottom: 1px solid var(--surface-soft); text-align: left; vertical-align: top; }
.roadmap-table thead th { font-size: var(--fs-small); line-height: var(--bl); }
.roadmap-table tbody th { font-weight: 700; }
/* Training buttons: clickable, so orange outline buttons like every other clickable. */
.where-online { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em; min-width: 0; }  /* narrow cards: wraps, never overflows */
.studio { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.studio img { width: 1.1em; height: 1.1em; }
.code { white-space: nowrap; }  /* training codes stay whole: B-EHW, C)PTE, SC-500 */
.chip {
  display: inline-flex; margin: 2px; padding: 0 var(--s3); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--action); border-radius: var(--radius-control);
  background: var(--surface); color: var(--text); font: 600 var(--fs-small)/var(--s4) var(--font);
}
.chip:hover, .chip:focus-visible { background: var(--surface-soft); outline: 2px solid var(--focus); outline-offset: 2px; }
/* Native popover: a container, so a rounded box. No JavaScript involved. */
.popover {
  max-width: min(22rem, calc(100vw - 2 * var(--gutter))); padding: var(--s4);
  /* Taller than the screen (a phone, the sign-up popover with its map): scroll inside, never off-screen. */
  max-height: calc(100dvh - 2 * var(--gutter)); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--text-muted); border-radius: var(--radius-box);
  background: var(--surface); color: var(--text); box-shadow: 0 9px 27px rgba(43, 33, 64, .25);
}
.popover::backdrop { background: rgba(43, 33, 64, .15); }
.popover-title { font-family: var(--font); font-weight: 700; margin-bottom: var(--s2); }
/* A defined term in running text (the owner's definitions, [site.terms]): reads as text, the dotted
   orange underline says it is clickable; opens its native popover. */
/* Cursor: Nunito's "?" in brand purple with a white edge (drawn from the font file, so no font load); help as fallback */
.term { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit;
  cursor: url(/assets/img/icons/cursor-help.svg) 12 12, help;
  text-decoration: underline dotted var(--action); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.term:hover, .term:focus-visible { text-decoration-style: solid; outline: none; }
.term:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.term-popover dfn { font-style: normal; }
/* About: the list of terms */
.glossary dt { font-weight: 700; margin-top: var(--s3); }
.glossary dfn { font-style: normal; }
.glossary dd { margin: 0; }

/* ---------- Medium screens: too narrow for 5/4/3 ---------- */
@media (max-width: 64rem) {
  .header-slogan { display: none; }
  .site-header .container { grid-template-columns: auto 1fr; grid-template-areas: "logo lang" "logo nav"; }
}

/* ---------- Small screens ---------- */
@media (max-width: 48rem) {
  .site-header .container { padding-bottom: 0; }
  .table-scroll { overflow: auto; max-height: 80vh; }
  .roadmap-tools { grid-template-columns: 1fr; }
  .roadmap-search { justify-self: start; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer .slogan { grid-column: 1; }
  .footer-legal { grid-column: 1; grid-row: 3; justify-self: center; }
  .accreditations { grid-column: 1; grid-row: 2; justify-self: center; }
  .accreditations ul { justify-content: center; }
  .cols-2, .features, .template-2, .highlight .container, .session { grid-template-columns: 1fr; }
  /* :nth-child(n) matches the specificity of the template spans so this rule wins */
  .features > *, .template-2 > :nth-child(n), .highlight-text, .highlight .hero-figure, .session-date, .session-body { grid-column: 1 / -1; }
  .highlight-text { padding: var(--s6) 0 var(--s4); }
  /* Full width at the photo's own ratio (1080 x 648 = 5:3), so the whole photo shows; a fixed
     height would crop its top (heads) more the wider the phone. The breakout band falls away. */
  .highlight .hero-figure { width: auto; margin-inline: calc(-1 * var(--gutter)); }
  .hero-figure.breakout { --overhang: 0rem; } /* phones: the menu has its own row, nothing sticks out */
  .site-header .container { grid-template-areas: "logo lang" "nav nav"; row-gap: var(--s2); }
  .logo { width: 5.0625rem; height: 5.0625rem; margin-bottom: 0; }
  .lang-switch { padding-top: var(--s3); }
  .site-nav { justify-self: start; padding: 0 0 var(--s2); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .spinner { animation: none; } /* an endless spin at 0.01ms would jump every frame */
}

/* ---------- Free-busy calendar (FullCalendar v6 via its CSS variables) ---------- */
.calendar-wrapper { position: relative; min-height: 25rem; margin-bottom: var(--s4); }
/* While loading, a spinner over the calendar, as on the original free-busy page; an error replaces it
   with text in the same place (free-busy.js). */
.calendar-loader { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s2); margin: 0; background: color-mix(in srgb, var(--surface) 90%, transparent); text-align: center; }
.calendar-loader p { margin: 0; color: var(--text-muted); }
.spinner { width: 40px; height: 40px; animation: spin 1s linear infinite; }
.spinner circle { fill: none; stroke: var(--purple); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 31.4 31.4; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Without scripts nothing replaces the spinner; the page's <noscript> line says why instead. */
@media (scripting: none) { .calendar-loader { display: none; } .calendar-wrapper { min-height: 0; } }
.calendar-note { margin-inline: auto; text-align: center; }
#calendar {
  --fc-button-bg-color: var(--action);
  --fc-button-border-color: var(--action);
  --fc-button-text-color: var(--on-action);
  --fc-button-hover-bg-color: var(--action-hover);
  --fc-button-hover-border-color: var(--action-hover);
  --fc-button-active-bg-color: var(--action);
  --fc-button-active-border-color: var(--action);
  --fc-today-bg-color: color-mix(in srgb, var(--lavender) 50%, transparent);
  --fc-border-color: var(--surface-soft);
  font-size: var(--fs-small);
}
#calendar .fc-button { border-radius: var(--radius-control); font: 600 var(--fs-small)/1.5 var(--font); text-transform: none; padding: var(--s1) var(--s3); }
#calendar .fc-button:hover, #calendar .fc-button:focus-visible { box-shadow: none; outline: 2px solid var(--focus); outline-offset: 2px; }
#calendar .fc-button:focus:not(:focus-visible) { box-shadow: none; }
#calendar .fc-button:disabled { opacity: .5; }
#calendar .fc-toolbar-title { font-weight: 700; text-transform: capitalize; } /* FullCalendar renders an h2 (light, 300); bold like the page title, as on the original page */
#calendar .fc-col-header-cell-cushion { text-transform: capitalize; text-decoration: none; }
#calendar .fc-daygrid-week-number { background: var(--surface-soft); color: var(--text); font-size: 10px; }
#calendar .fc-day-today .fc-daygrid-day-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; margin: 4px; border-radius: 50%;
  background: var(--surface-brand); color: var(--on-brand);
}
#calendar .fc-daygrid-day-number { text-decoration: none; }
#calendar .fc-event { border: none; padding: 1px 4px; border-radius: 4px; }

/* ---------- Curated news ---------- */
.news-list { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.news-item { padding-block: var(--s3); border-top: 1px solid var(--surface-soft); }
.news-item > a { font-weight: 700; }
.news-meta { display: flex; align-items: center; gap: var(--s1); margin: var(--s1) 0 0; }

/* ---------- Training brief: filter and search (roadmap.js) ---------- */
/* 50/50: vendor toggles left, search right (right-aligned). */
.roadmap-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s3); margin-bottom: var(--s3); }
.roadmap-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.roadmap-search { justify-self: end; text-align: right; min-width: 0; max-width: 100%; } /* a grid item may not outgrow a phone */
.roadmap-search label { display: block; margin-bottom: var(--s1); }
.roadmap-search input { width: 16rem; max-width: 100%; }
.chip.is-match { background: var(--highlight); color: var(--on-highlight); border-color: var(--on-highlight); }
.chip.is-dim { color: var(--text-muted); border-color: var(--surface-soft); } /* faded but readable (5.7:1), still clickable */
.popover-logo { height: 1.75rem; max-width: 10rem; width: auto; object-fit: contain; object-position: left center; margin-bottom: var(--s2); }

/* ---------- Expertise (tools/build.py writes the list; expertise.js may draw it as bubbles) ----------
   Size and shade by rank: step 1 = the first terms. Shades of purple only. Not clickable, so no
   orange; draggable bubbles show a grab cursor instead. Contrast: lavender text on the two dark
   steps (8.3:1, 4.9:1), purple text on the light ones (at least 4.6:1). */
.expertise-list { list-style: none; padding: 0; margin: 0 0 var(--s4); max-width: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2); }
.expertise-list li { max-width: none; padding: var(--s1) var(--s3); border-radius: var(--radius-box);
  font-family: var(--font); font-weight: 700; line-height: 1.2; text-align: center; hyphens: manual; }
.expertise-1 { font-size: 2.25rem; background: var(--purple); color: var(--lavender); }
.expertise-2 { font-size: 1.875rem; background: color-mix(in srgb, var(--purple) 82%, var(--lavender)); color: var(--lavender); }
.expertise-3 { font-size: 1.5rem; background: color-mix(in srgb, var(--purple) 35%, var(--lavender)); color: var(--purple); }
.expertise-4 { font-size: 1.25rem; background: color-mix(in srgb, var(--purple) 25%, var(--lavender)); color: var(--purple); }
.expertise-5 { font-size: 1.0625rem; background: color-mix(in srgb, var(--purple) 15%, var(--lavender)); color: var(--purple); }
.expertise-6 { font-size: 0.875rem; background: color-mix(in srgb, var(--purple) 8%, var(--lavender)); color: var(--purple); }
/* Bubble mode (wide screens, precise pointer): absolutely placed circles in a field. */
.expertise-list.bubbles { display: block; position: relative; }
.expertise-list .bubble { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 18px; border-radius: 50%; cursor: grab; user-select: none; touch-action: none; }
.expertise-list .bubble.dragging { cursor: grabbing; z-index: 1; box-shadow: 0 9px 27px rgba(43, 33, 64, .25); }

/* ---------- bjørn enhanced (badge from assets/img/bjorn-enhanced.svg) ---------- */
.chip-badge { width: 14px; height: 14px; margin-left: var(--s1); align-self: center; }
.enhanced-note { display: flex; align-items: flex-start; gap: var(--s2); }
.roadmap > .enhanced-note { margin-top: var(--s3); } /* the legend under the grid */
.enhanced-note img { flex: none; margin-top: 2px; }
.enhanced-note .eq { flex: none; }  /* "(b) =" is the marker; the text wraps aligned to its right */
