/* ==========================================================================
   Baffo, the product: the design system "De nacht" (26 October 2026; docs/BAFFO-CONTEXT.md, v2).
   A city at night in which Baffo Bot switches the light on in every empty moment: a night blue-black, the amber of the
   bot's own eyes for everything lit and for the one action, moonlight blue for structure, tall capitals (Big Shoulders
   Display) over readable text (Instrument Sans). Dark is empty, amber is filled. Components: button, card (a data ticket), pass (a neon
   access pass), list and notice; the ambient world, Baffo Bot and the companion live in universe.css.
   Functional screens (booking, the till, the venue's pages) use the same parts with less glow and more air.
   Every class starts with "b-" (or "n-" in universe.css). The example page is /ontwerp/; the rules are written there.
   ========================================================================== */

/* Instrument Sans, hosted here (SIL Open Font License, see assets/fonts/OFL-instrument-sans.txt).
   A variable font: one file serves every weight from 400 to 700. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Serif, hosted here (SIL Open Font License, see assets/fonts/OFL-instrument-serif.txt): titles only. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin.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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.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;
}

/* Big Shoulders Display, hosted here (SIL Open Font License, see assets/fonts/OFL-big-shoulders-display.txt): display and titles.
   A variable font: one file serves every weight from 100 to 900. */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/big-shoulders-display-latin.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;
}

/* Its fallback, with the same measurements (fontTools, 26 October: Big Shoulders at weight 800 is 68.7% as wide as Arial
   Bold on capitals), so the page does not move when the real font arrives. */
@font-face {
  font-family: "Big Shoulders Fallback";
  font-weight: 100 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica-Bold"), local("Arial");
  size-adjust: 68.7%;
  ascent-override: 143.2%;
  descent-override: 31%;
  line-gap-override: 0%;
}

/* Fallbacks with the same measurements (size-adjust and the line metrics measured with fontTools against Times New
   Roman and Arial), so the page does not move when the real fonts arrive: no visible font swap. */
@font-face {
  font-family: "Instrument Serif Fallback";
  font-style: normal;
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times");
  size-adjust: 83.1%;
  ascent-override: 119.1%;
  descent-override: 37.3%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Serif Fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Times-Italic");
  size-adjust: 87.5%;
  ascent-override: 113.1%;
  descent-override: 35.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 101.7%;
  ascent-override: 95.4%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}

/* ----- Tokens: "De nacht" (26 October 2026, second direction) -----
   One idea: Baffo switches the light on in every empty moment. The page is a building at night; every window is a
   moment; dark is empty, amber is filled. So the palette is a night blue-black, the warm amber of Baffo Bot's own eyes
   (the one action and every lit thing) and one cool moonlight blue for structure and links. No other colours: no
   neon rainbow, no purple. Dark only: a night has no daylight, and a dark page saves a phone's battery.
   Every text colour reaches at least 4.5:1 on the backgrounds it is used on, every border that shapes a control at least
   3:1 (measured by tests/site.test.mjs). Names say what a colour does, not what it looks like: --b-honey is still "the one
   action colour" (now amber), so every page that used it follows without an edit. */
:root {
  color-scheme: dark;
  --b-page: #080B16;          /* the night */
  --b-surface: #0F1424;       /* a dark facade: cards, lists */
  --b-sunk: #181E36;          /* quiet areas: the info notice, empty faces, a hovered row */
  --b-ink: #F6EFE0;           /* text: warm cream, like lamplight on paper */
  --b-soft: #AEB4CC;          /* secondary text */
  --b-line: #242B46;          /* dividers (decoration only) */
  --b-edge: #6670A0;          /* borders that shape a control */
  /* The four meanings (10 November 2026). A new rule uses these names; the old names below are aliases of them, so
     every page that uses an old name looks exactly the same. Action and lit share one amber on purpose: the same
     lamp doing two jobs, kept apart so one can change without the other. Contrast per pair: /ontwerp/#betekenis. */
  --b-action: #FFB547;        /* amber: the one action on a screen ("Ik ga", "Goedkeuren"); never two per screen */
  --b-lit: #FFB547;           /* amber: lit, filled (a sold seat, the lit word in a title, the hour on a deal) */
  --b-moon: #8FB8FF;          /* moonlight: structure and what is expected (hairlines, frames, a forecast) */
  --b-proof: #6FE3A5;         /* green: proven, measured on the till (a result, "gelukt") */
  /* Old names, kept as aliases (do not remove without Leandro's yes: CSS and pages still use them). */
  --b-honey: var(--b-action);
  --b-honey-hover: #FFC96E;
  --b-on-honey: #1A1100;
  --b-honey-edge: #FFD58A;
  --b-brass: var(--b-moon);
  --b-bronze: var(--b-lit);
  --b-emerald: var(--b-moon);
  --b-link: #9CC4FF;
  --b-focus: #FFD58A;
  --b-ok: var(--b-proof);
  --b-ok-bg: #0C2A1E;
  --b-warn: #FFD166;
  --b-warn-bg: #2F2508;
  --b-bad: #FF8A98;
  --b-bad-bg: #35121A;
  --b-bot-disc: #131A38;      /* the disc behind Baffo Bot */
  --b-amber: var(--b-lit);
  --b-amber-soft: #FFD58A;
  /* Light, not glow: amber is only ever a light that something gives off. Two of them, always behind something. */
  --b-glow-amber: 0 0 0 1px rgba(255, 181, 71, 0.55), 0 0 28px -4px rgba(255, 181, 71, 0.5);
  --b-glow-moon: 0 0 0 1px rgba(143, 184, 255, 0.45), 0 0 24px -6px rgba(143, 184, 255, 0.35);
  --b-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 32px -12px rgba(0, 0, 0, 0.7);
  /* The one action: amber with a warm run, so the button looks lit. Dark text on its darkest point: 9:1. */
  --b-gold: linear-gradient(115deg, #F2A135 0%, #FFB547 30%, #FFD58A 48%, #FFB547 66%, #F2A135 100%);
  /* The sky above the building: a faint warm horizon under the night. */
  --b-hero: radial-gradient(80% 60% at 50% 110%, rgba(255, 181, 71, 0.14), transparent 70%), radial-gradient(70% 50% at 10% -10%, rgba(143, 184, 255, 0.10), transparent 70%), #080B16;
  /* The edge of a lit window: moonlight in the frame, warmth inside. */
  --b-edge-gradient: linear-gradient(180deg, rgba(143, 184, 255, 0.5), rgba(143, 184, 255, 0.18));

  /* Type: Big Shoulders Display (condensed and tall, like the lettering on a building) for display and titles, always in
     capitals; Instrument Sans for everything you read and tap; the system's monospace only for codes.
     Body text is 17 px, like a phone's own text. */
  --b-font: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --b-serif: "Big Shoulders Display", "Big Shoulders Fallback", Impact, "Arial Narrow", sans-serif;   /* the display face (name kept: every page uses it) */
  --b-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --b-small: 0.875rem;        /* 14 px: meta lines and every sentence or price, never below this */
  --b-caps: 0.8125rem;        /* 13 px: only bold, tracked capitals (labels, navigation); never a sentence */
  --b-body: 1.0625rem;        /* 17 px */
  --b-lead: 1.25rem;          /* 20 px */
  --b-title: 2.25rem;         /* 36 px, in the display face */
  --b-display: clamp(3.5rem, 17vw, 5.5rem);   /* 56 to 88 px, in the display face; the start page goes larger */
  --b-display-xl: clamp(4rem, 19vw, 11rem);   /* the start page's promise */

  /* Spacing: a fixed scale on a 4 px grid. Use these, never a number in between. */
  --b-1: 4px;
  --b-2: 8px;
  --b-3: 12px;
  --b-4: 16px;
  --b-5: 24px;
  --b-6: 32px;
  --b-7: 48px;
  --b-8: 64px;
  --b-9: 96px;

  /* Sharp, not soft: small radii, like the corners of a window. */
  --b-radius-s: 3px;
  --b-radius-m: 4px;
  --b-radius-l: 8px;
  --b-radius-pill: 9999px;
  --b-cut: 14px;
  --b-tap: 48px;              /* the smallest tap zone */
  --b-width: 560px;           /* one column, phone first */
  --b-workspace: 880px;       /* the venue's pages and a venue's moments, from tablet up */
  --b-wide: 1120px;           /* the start page on a large screen */

  /* Motion: three speeds and two curves. Nothing is slower than 900 ms, nothing blocks a tap. */
  --b-fast: 150ms;
  --b-mid: 320ms;
  --b-slow: 700ms;
  --b-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --b-ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

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

body {
  margin: 0;
  background: var(--b-page);
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: var(--b-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--b-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* One focus ring for everything: thick, with room around it, in night blue (light) or honey (dark). */
:focus-visible {
  outline: 3px solid var(--b-focus);
  outline-offset: 3px;
}

/* hidden always wins, also over components that set their own display. */
[hidden] {
  display: none !important;
}

/* Hidden on screen, still read by screen readers. */
.b-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----- Type: display lines in the serif, large and calm; one word may lean (<em>) in bronze ----- */
.b-display {
  font-family: var(--b-serif);
  font-size: var(--b-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.b-display em,
.b-title em,
.b-h2 em {
  color: var(--b-bronze);
  font-style: italic;
}

.b-title {
  font-family: var(--b-serif);
  font-size: var(--b-title);
  font-weight: 400;
  line-height: 1.1;
}

/* Small capitals above a title: the lobby's signs. Only for a few words, never for a sentence. */
.b-kicker {
  color: var(--b-bronze);
  font-size: var(--b-caps);
  font-weight: 650;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
}

.b-lead {
  color: var(--b-soft);
  font-size: var(--b-lead);
  line-height: 1.4;
}

.b-label {
  color: var(--b-soft);
  font-size: var(--b-small);
  font-weight: 600;
  line-height: 1.4;
}

.b-small {
  color: var(--b-soft);
  font-size: var(--b-small);
  line-height: 1.45;
}

/* Prices: figures of equal width, so they never jump. */
.b-price {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

/* ----- Layout ----- */
.b-center {
  text-align: center;
}

.b-column {
  width: 100%;
  max-width: var(--b-width);
  margin: 0 auto;
  padding: 0 var(--b-4);
}

.b-stack > * + * {
  margin-top: var(--b-4);
}

/* ==========================================================================
   1. Button: one brass action per screen ("Ik ga"), with a metallic run and a sheen of light on hover;
   quiet buttons for the rest; text buttons for "back".
   ========================================================================== */
.b-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--b-2);
  min-height: 52px;
  padding: 0 var(--b-5);
  border: 1px solid var(--b-honey-edge);
  border-radius: var(--b-radius-pill);
  background: var(--b-gold);
  background-size: 180% 100%;
  color: var(--b-on-honey);
  box-shadow: 0 10px 22px -14px rgba(125, 94, 37, 0.9);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-position 400ms var(--b-ease), transform 150ms var(--b-ease);
  -webkit-tap-highlight-color: transparent;
}

/* The sheen: a band of light that slides over the brass, once, on hover or focus. */
.b-button:not(.b-button--quiet):not(.b-button--text)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 252, 235, 0.7) 48%, transparent 66%);
  pointer-events: none;
  transform: translateX(-120%);
}

.b-button:hover {
  background-position: 100% 0;
}

.b-button:active {
  transform: scale(0.98);
}

.b-button--quiet {
  border-color: var(--b-edge);
  background: var(--b-surface);
  color: var(--b-ink);
  box-shadow: none;
}

.b-button--quiet:hover {
  background: var(--b-sunk);
}

.b-button--text {
  min-height: var(--b-tap);
  padding: 0 var(--b-2);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--b-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.b-button--text:hover {
  background: transparent;
  text-decoration-thickness: 2px;
}

.b-button--wide {
  width: 100%;
}

.b-button:disabled,
.b-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

/* Busy: a small ring turns before the words; the words say what happens ("Even geduld…"). */
.b-button[aria-busy="true"] {
  cursor: progress;
}

.b-button[aria-busy="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: b-turn 700ms linear infinite;
}

@keyframes b-turn {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   2. Card: one moment, as an old ticket. The whole card is the tap zone; "Ik ga" on it says what a tap does.
   Above the perforation: when, what and where. Below it, the stub: the price, what you save and "Ik ga".
   A notch on each side of the perforation, and a torn edge along the bottom.
   ========================================================================== */
.b-cards {
  display: grid;
  gap: var(--b-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The shadow sits on the list item: the torn edge (a mask) would cut a shadow on the ticket itself. */
.b-cards > li {
  filter: drop-shadow(0 8px 14px rgba(20, 26, 46, 0.1));
}

.b-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--b-4);
  row-gap: var(--b-3);
  align-items: start;
  padding: var(--b-4) var(--b-4) calc(var(--b-4) + 4px);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m) var(--b-radius-m) 6px 6px;
  background: var(--b-surface);
  color: var(--b-ink);
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, #0000 4.6px, #000 5px) bottom / 14px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 100%, #0000 4.6px, #000 5px) bottom / 14px 100% repeat-x;
  text-decoration: none;
  transition: border-color 150ms ease-out, transform 150ms var(--b-ease);
  -webkit-tap-highlight-color: transparent;
}

/* A card can be a link (to another page) or a button (opens the moment on the same page): both look the same. */
button.b-card {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

:is(a, button).b-card:hover {
  border-color: var(--b-edge);
}

:is(a, button).b-card:active {
  transform: scale(0.99);
}

.b-card-time {
  min-width: 3.2em;
  font-size: var(--b-lead);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.2;
}

.b-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.b-card-title {
  font-family: var(--b-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.b-card-meta {
  color: var(--b-soft);
  font-size: var(--b-small);
}

/* The stub: the price on the left, the action on the right, below a perforation with a notch on each side. */
.b-card-foot {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-3);
  padding-top: var(--b-4);
  border-top: 2px dotted color-mix(in srgb, var(--b-brass) 60%, transparent);
}

.b-card-foot::before,
.b-card-foot::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--b-behind, var(--b-page));
}

.b-card-foot::before { left: calc(-1 * var(--b-4) - 11px); }
.b-card-foot::after { right: calc(-1 * var(--b-4) - 11px); }

.b-card-price {
  display: grid;
  gap: 2px;
}

.b-card-price > span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--b-2);
}

/* The normal price, struck through: the honest anchor. Screen readers hear "normaal". */
.b-card-price s {
  color: var(--b-soft);
  font-size: var(--b-body);
  font-variant-numeric: tabular-nums;
}

.b-card-price small {
  color: var(--b-soft);
  font-size: var(--b-small);
}

/* What you save, right next to the price: "€ 4 minder". */
.b-card-save {
  align-self: center;
  padding: 2px var(--b-2);
  border-radius: var(--b-radius-pill);
  background: var(--b-ok-bg);
  color: var(--b-ok);
  font-size: var(--b-small);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The look of a small brass button, inside a card that is itself the link. */
.b-card-go {
  flex: none;
  padding: var(--b-2) var(--b-4);
  border: 1px solid var(--b-honey-edge);
  border-radius: var(--b-radius-pill);
  background: var(--b-gold);
  background-size: 180% 100%;
  color: var(--b-on-honey);
  font-size: var(--b-body);
  font-weight: 650;
  line-height: 1.2;
}

:is(a, button).b-card:hover .b-card-go {
  background-position: 100% 0;
}

/* ==========================================================================
   3. Pass: the Baffo-pas, a golden ticket and the finest screen of all. What, when and where on gold above the
   tear line (an engraved frame, a fan of 24 rays, a sheen that never stops); who and the price below it, on ivory,
   so the till stays plain.
   ========================================================================== */
.b-pass {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--b-brass) 55%, transparent);
  border-radius: var(--b-radius-l);
  background: var(--b-surface);
  box-shadow: 0 2px 4px rgba(20, 26, 46, 0.06), 0 28px 48px -28px rgba(20, 26, 46, 0.55);
}

.b-pass-top,
.b-pass-bottom {
  padding: var(--b-5);
}

.b-pass-top {
  position: relative;
  display: grid;
  gap: var(--b-1);
  border-radius: var(--b-radius-l) var(--b-radius-l) 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--b-honey) 22%, transparent), transparent 85%);
}

/* The real pass (b-pass--gold) is gold; a moment before booking keeps the quiet ivory ticket. */
.b-pass--gold .b-pass-top {
  background:
    repeating-conic-gradient(from 90deg at 50% 0%, rgba(26, 20, 8, 0.07) 0deg 0.8deg, transparent 0.8deg 7.5deg),
    var(--b-gold);
  background-size: auto, 200% 100%;
  color: #1A1408;
}

/* The engraved frame, 8 px inside the gold. */
.b-pass--gold .b-pass-top::before {
  content: "";
  position: absolute;
  inset: 8px 8px 0;
  border: 1px solid rgba(26, 20, 8, 0.3);
  border-bottom: 0;
  border-radius: calc(var(--b-radius-l) - 6px) calc(var(--b-radius-l) - 6px) 0 0;
  pointer-events: none;
}

.b-pass-top > * {
  position: relative;
}

.b-pass--gold .b-pass-top .b-small,
.b-pass--gold .b-pass-top .b-pass-brand,
.b-pass--gold .b-pass-top .b-live {
  color: #3A2E14;
}

.b-pass-brand {
  display: flex;
  align-items: center;
  gap: var(--b-2);
  color: var(--b-soft);
  font-size: var(--b-caps);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* A small ink diamond: the mark of the pass. */
.b-pass-brand::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
}

.b-pass-title {
  margin-top: var(--b-3);
  font-family: var(--b-serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

/* The tear line, with a notch on each side in the colour behind the pass (the page, unless --b-behind says otherwise). */
.b-pass-tear {
  position: relative;
  height: 0;
  margin: 0 var(--b-5);
  border-top: 2px dashed var(--b-line);
}

.b-pass-tear::before,
.b-pass-tear::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--b-line);
  border-radius: 50%;
  background: var(--b-behind, var(--b-page));
}

.b-pass-tear::before {
  left: calc(-1 * var(--b-5) - 12px);
  clip-path: inset(0 0 0 50%);
}

.b-pass-tear::after {
  right: calc(-1 * var(--b-5) - 12px);
  clip-path: inset(0 50% 0 0);
}

.b-pass-bottom {
  display: grid;
  gap: var(--b-4);
}

/* Who is going: a face per person, an empty place up to three. */
.b-faces {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-face {
  display: grid;
  justify-items: center;
  gap: var(--b-1);
  width: 56px;
  font-size: var(--b-small);
  text-align: center;
}

.b-face-initial {
  display: grid;
  place-items: center;
  width: var(--b-tap);
  height: var(--b-tap);
  border-radius: 50%;
  background: var(--b-honey);
  color: var(--b-on-honey);
  font-size: var(--b-lead);
  font-weight: 700;
}

.b-face-name {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-face.is-empty .b-face-initial {
  border: 2px dashed var(--b-edge);
  background: transparent;
  color: var(--b-soft);
}

.b-face.is-empty .b-face-name {
  color: var(--b-soft);
}

.b-pass-price {
  display: grid;
  gap: var(--b-1);
}

.b-pass-actions {
  display: grid;
  gap: var(--b-3);
}

/* Confirmed at the till: a tick that pops in and a clock that runs, so a screenshot from earlier does not pass.
   The gold stays: it is still the same ticket. */

.b-confirmed {
  display: grid;
  justify-items: center;
  gap: var(--b-2);
  text-align: center;
}

.b-tick {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--b-ok);
  color: var(--b-page);
}

.b-tick svg {
  width: 36px;
  height: 36px;
}

.b-clock {
  font-size: clamp(2.5rem, 10vw, 3rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: no-preference) {
  .b-tick {
    animation: b-pop 500ms var(--b-ease) both;
  }

  /* The tick keeps breathing, slowly: a live screen, not a picture. */
  .b-tick svg {
    animation: b-breathe 2.4s ease-in-out 600ms infinite;
  }
}

@keyframes b-pop {
  from { opacity: 0; transform: scale(0.6); }
}

@keyframes b-breathe {
  50% { transform: scale(1.08); }
}

/* ==========================================================================
   4. List: rows of the same kind. A row can be a link (the whole row is the tap zone) or plain text.
   ========================================================================== */
.b-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
  list-style: none;
}

.b-list > li + li {
  border-top: 1px solid var(--b-line);
}

.b-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--b-3);
  align-items: center;
  min-height: 64px;
  padding: var(--b-3) var(--b-4);
  color: var(--b-ink);
  text-decoration: none;
}

button.b-row {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

:is(a, button).b-row:hover {
  background: var(--b-sunk);
}

.b-list > li:first-child > :is(a, button).b-row {
  border-radius: var(--b-radius-m) var(--b-radius-m) 0 0;
}

.b-list > li:last-child > :is(a, button).b-row {
  border-radius: 0 0 var(--b-radius-m) var(--b-radius-m);
}

.b-list > li:only-child > :is(a, button).b-row {
  border-radius: var(--b-radius-m);
}

.b-row-lead {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--b-sunk);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.b-row-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.b-row-text strong {
  font-weight: 650;
}

.b-row-text span {
  color: var(--b-soft);
  font-size: var(--b-small);
}

.b-row-end {
  color: var(--b-soft);
  font-size: var(--b-small);
  text-align: right;
}

.b-chevron {
  width: 20px;
  height: 20px;
  color: var(--b-soft);
}

/* Steps: numbered rows without a border, for "Zo werkt het". */
.b-list--steps {
  border: 0;
  background: transparent;
}

.b-list--steps > li + li {
  border-top: 0;
}

.b-list--steps .b-row {
  align-items: start;
  min-height: 0;
  padding: var(--b-2) 0;
}

.b-list--steps .b-row-lead {
  background: var(--b-honey);
  color: var(--b-on-honey);
}

/* ==========================================================================
   5. Notice: one short message. Info and done use role="status", a problem role="alert".
   ========================================================================== */
.b-notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--b-3);
  align-items: start;
  padding: var(--b-3) var(--b-4);
  border-radius: var(--b-radius-s);
  background: var(--b-sunk);
  color: var(--b-ink);
  font-size: var(--b-body);
  line-height: 1.45;
}

.b-notice svg {
  width: 24px;
  height: 24px;
  margin-top: 0;
}

.b-notice strong {
  font-weight: 650;
}

.b-notice--ok {
  background: var(--b-ok-bg);
}

.b-notice--ok svg {
  color: var(--b-ok);
}

.b-notice--warn {
  background: var(--b-warn-bg);
}

.b-notice--warn svg {
  color: var(--b-warn);
}

.b-notice--bad {
  background: var(--b-bad-bg);
}

.b-notice--bad svg {
  color: var(--b-bad);
}

/* ==========================================================================
   Baffo Bot: a quiet guide, only on an empty screen or a moment of success. At most once per screen,
   never next to a price, a form or the till. The picture is decoration (alt=""); the words carry the message.
   ========================================================================== */
.b-bot {
  display: grid;
  justify-items: center;
  gap: var(--b-3);
  padding: var(--b-6) var(--b-4);
  text-align: center;
}

.b-bot-picture {
  width: 112px;
  height: 112px;
  padding: var(--b-2);
  border-radius: 50%;
  background: var(--b-bot-disc);
}

.b-bot-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.b-bot-title {
  font-size: var(--b-lead);
  font-weight: 650;
  line-height: 1.3;
}

.b-bot-text {
  max-width: 32ch;
  color: var(--b-soft);
}

.b-bot .b-button {
  margin-top: var(--b-2);
}

/* Small, next to a line of text: for a success moment inside a screen. */
.b-bot--inline {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  padding: 0;
  text-align: left;
}

.b-bot--inline .b-bot-picture {
  width: 64px;
  height: 64px;
  padding: var(--b-1);
}

@media (prefers-reduced-motion: no-preference) {
  .b-bot-picture img {
    animation: b-wave 900ms var(--b-ease) 300ms both;
  }
}

@keyframes b-wave {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
}

/* ----- Form: a field with its label above it. Never a placeholder instead of a label. ----- */
.b-field {
  display: grid;
  gap: var(--b-2);
}

.b-field > span {
  font-weight: 600;
}

.b-input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--b-4);
  border: 1px solid var(--b-edge);
  border-radius: var(--b-radius-s);
  background: var(--b-surface);
  color: var(--b-ink);
  font: inherit;
}

.b-input:focus-visible {
  outline-offset: 1px;
}

/* A field of several lines: a programme, opening hours (the private demo on the admin page). */
textarea.b-input {
  min-height: 8em;
  padding: var(--b-3) var(--b-4);
  line-height: 1.5;
  resize: vertical;
}

/* ----- Choice buttons, a kind of button: a day, a language, a view. The chosen one is pressed (ink, never honey:
   honey stays for the one action). ----- */
.b-chips {
  display: flex;
  gap: var(--b-2);
  margin: -3px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.b-chips::-webkit-scrollbar {
  display: none;
}

/* Choices that may take two lines instead of scrolling sideways. */
.b-chips--wrap {
  flex-wrap: wrap;
  overflow: visible;
}

.b-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: var(--b-tap);
  min-height: var(--b-tap);
  padding: 0 var(--b-4);
  border: 1px solid var(--b-edge);
  border-radius: var(--b-radius-pill);
  background: var(--b-surface);
  color: var(--b-ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--b-body);
  font-weight: 600;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.b-chip:hover {
  background: var(--b-sunk);
}

.b-chip[aria-pressed="true"] {
  border-color: var(--b-ink);
  background: var(--b-ink);
  color: var(--b-page);
}

/* Sharing: one link, in the app the guest picks (WhatsApp, Instagram, SMS, the phone's own menu). */
.b-share {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--b-2);
}

.b-share--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.b-share--three .b-chip {
  font-size: var(--b-small);
}

.b-share .b-chip {
  width: 100%;
  padding: 0 var(--b-2);
}

/* The language switch: small and modest, two words of text side by side. The tap zone stays 48 px high. */
.b-langs {
  flex: none;
  gap: 0;
}

.b-langs .b-chip {
  min-width: var(--b-tap);
  padding: 0 var(--b-2);
  border: 0;
  background: none;
  color: var(--b-soft);
  font-size: var(--b-small);
  font-weight: 500;
}

.b-langs .b-chip:hover {
  background: none;
  color: var(--b-ink);
}

.b-langs .b-chip[aria-pressed="true"] {
  border: 0;
  background: none;
  color: var(--b-ink);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--b-honey);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ----- A card with the film's poster on the right ----- */
.b-card.has-poster {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.b-card-poster {
  width: 48px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background: var(--b-sunk);
  object-fit: cover;
}

.b-card.has-poster .b-card-foot {
  grid-column: 1 / -1;
}

/* ----- A card with a photo on top: the moment's own picture (a still from the film; later a venue's own photo).
   Real pictures build trust (the lesson of Airbnb); the card stays one tap zone. ----- */
.b-card.has-photo {
  overflow: hidden;
  padding-top: 0;
}

.b-card-photo {
  grid-column: 1 / -1;
  width: calc(100% + 2 * var(--b-4));
  max-width: none;
  margin: 0 calc(-1 * var(--b-4));
  aspect-ratio: 5 / 2;
  background: var(--b-sunk);
  object-fit: cover;
}

/* A photo with our own widths sits in a <picture> (product.js): the picture itself takes no place in the layout.
   (Not ".b-photo": that is the venue's photo tile further down, whose "img { width: 100% }" shrank the card's photo.) */
.b-card-picture {
  display: contents;
}

/* The one sentence that explains the price, right on the card. */
.b-card-why {
  grid-column: 1 / -1;
  color: var(--b-soft);
  font-size: var(--b-small);
}

/* A placeholder ticket while the moments load: the shape and the text sizes of a real card, so nothing moves when it
   comes; the words are invisible, grey bars stand in for them. */
.b-skeleton .b-card {
  pointer-events: none;
}

.b-skeleton .b-card * {
  color: transparent !important;
}

.b-skeleton :is(.b-card-time, .b-card-title, .b-card-meta, .b-card-why, .b-price, .b-card-price small) {
  justify-self: start;
  border-radius: 6px;
  background: var(--b-sunk);
}

.b-skeleton span.b-card-photo {
  display: block;
}

.b-skeleton .b-card-go {
  border-color: transparent;
  background: var(--b-sunk);
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  .b-skeleton .b-card {
    animation: b-glow 1.4s ease-in-out infinite alternate;
  }
}

@keyframes b-glow {
  to { opacity: 0.6; }
}

/* A card that is not a link (a group on the staff page): one column, no tap feedback. */
.b-card--plain {
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--b-radius-m);
  -webkit-mask: none;
  mask: none;
}

.b-card--plain .b-card-foot {
  border-top: 1px solid var(--b-line);
}

.b-card--plain .b-card-foot::before,
.b-card--plain .b-card-foot::after {
  content: none;
}

/* ----- At the till: how many, then a swipe in front of the staff (part of the pass) ----- */
.b-till {
  display: grid;
  gap: var(--b-4);
  padding: var(--b-5) var(--b-4);
  border-radius: var(--b-radius-m);
  background: var(--b-sunk);
  text-align: center;
}

.b-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--b-4);
}

.b-stepper output {
  min-width: 6.5em;
  font-size: var(--b-lead);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.b-round {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--b-edge);
  border-radius: 50%;
  background: var(--b-surface);
  color: var(--b-ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.b-round:hover {
  background: var(--b-page);
}

.b-round:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* The swipe: a range input dressed as a track with a honey handle; the track fills behind it (--swipe). */
.b-swipe {
  position: relative;
  display: block;
  height: 64px;
  border: 1px solid var(--b-honey-edge);
  border-radius: var(--b-radius-pill);
  background: linear-gradient(90deg, var(--b-honey) var(--swipe, 0%), var(--b-surface) var(--swipe, 0%));
}

.b-swipe input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: grab;
  -webkit-appearance: none;
  appearance: none;
}

.b-swipe input::-webkit-slider-thumb {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--b-honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' stroke='%231F1B16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 0 0 1px var(--b-honey-edge), 0 2px 8px rgba(31, 27, 22, 0.2);
  -webkit-appearance: none;
  appearance: none;
}

.b-swipe input::-moz-range-thumb {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--b-honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' stroke='%231F1B16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 0 0 1px var(--b-honey-edge), 0 2px 8px rgba(31, 27, 22, 0.2);
}

.b-swipe input:focus-visible {
  border-radius: var(--b-radius-pill);
  outline: 3px solid var(--b-focus);
  outline-offset: 4px;
}

.b-swipe-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: var(--b-7);
  color: var(--b-ink);
  font-weight: 600;
  pointer-events: none;
}

/* ----- Facts: a label and a number per row (the month on the staff page) ----- */
.b-facts {
  margin: 0;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
}

.b-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--b-3);
  min-height: 56px;
  padding: var(--b-3) var(--b-4);
}

.b-facts > div + div {
  border-top: 1px solid var(--b-line);
}

.b-facts dt {
  color: var(--b-soft);
}

.b-facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

/* A list row without a lead: the text and an action at the end. */
.b-row--nolead {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* ----- The head of a pass or a moment, with the film's poster beside it ----- */
.b-pass-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--b-4);
  align-items: start;
}

.b-pass-head > div {
  display: grid;
  gap: var(--b-1);
}

.b-pass-poster {
  width: 64px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: var(--b-sunk);
  object-fit: cover;
}

/* The moment's photo across the top of a pass or a moment. */
.b-pass-photo {
  width: 100%;
  aspect-ratio: 5 / 2;
  border-radius: var(--b-radius-l) var(--b-radius-l) 0 0;
  background: var(--b-sunk);
  object-fit: cover;
}

.b-pass-photo + .b-pass-top {
  border-radius: 0;
}

/* ----- A living pass: a dot that breathes, a clock that runs and a soft light that glides across the top.
   A screenshot stands still; a real pass never does. With less motion the clock still runs. ----- */
.b-pass-brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-3);
}

.b-live {
  display: inline-flex;
  align-items: center;
  gap: var(--b-2);
  color: var(--b-ink);
  font-size: var(--b-small);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.b-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b-ok);
}

.b-pass--gold .b-pass-top .b-live::before {
  background: #145C40;
}

.b-pass.is-live .b-pass-top {
  position: relative;
  overflow: hidden;
}

/* Confirmed: the big clock takes over from the small one. */
.b-pass.is-confirmed .b-live {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .b-live::before {
    animation: b-pulse 1.6s ease-in-out infinite;
  }

  .b-pass.is-live .b-pass-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 252, 235, 0.55) 50%, transparent 65%);
    border-radius: inherit;
    pointer-events: none;
    transform: translateX(-100%);
    animation: b-sheen 3.4s ease-in-out infinite;
  }
}

@keyframes b-pulse {
  50% { opacity: 0.35; transform: scale(1.7); }
}

@keyframes b-sheen {
  70%,
  100% { transform: translateX(100%); }
}

/* ----- The deal page (/deals/<venue>/): a day, then the cards; on a moment or a pass the intro steps back ----- */
.b-chips + .b-cards,
.b-chips + p {
  margin-top: var(--b-4);
}

/* On a moment or a pass the venue is in the "where" line, so the page's own head steps aside: "Ik ga" and the pass
   come onto the first screen. The title stays for screen readers. */
.b-deals.is-focus .b-intro-top,
.b-deals.is-focus .b-intro .b-lead,
.b-deals.is-focus #deals-demo,
.b-deals.is-focus #deals-how {
  display: none;
}

.b-deals.is-focus .b-intro .b-display {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.b-deals.is-focus #deals-moment,
.b-deals.is-focus #deals-pass {
  margin-top: 0;
}

#deals-moment > .b-button--text,
#deals-pass > .b-bot {
  margin-bottom: var(--b-4);
}

#pass-leave {
  margin-top: var(--b-3);
}

/* ==========================================================================
   The top of a page and the steps. These rules come from the previous system (Gouden lobby: a fan, a floor dial, an
   elevator dial); universe.css restyles or hides their ornaments, and the markup that still carries them keeps working.
   ========================================================================== */

/* The top of a page: centred, a fan of 24 brass hairlines behind the title, the floor dial above it. */
.b-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--b-3);
  padding: var(--b-7) 0 var(--b-6);
  overflow-x: clip;
  isolation: isolate;
  text-align: center;
}

.b-hero .b-lead {
  max-width: 30ch;
}

/* The start page's promise: three short lines, each on its own, the last one leaning in bronze. */
.b-display .b-line {
  display: block;
}

/* Two ways on, stacked on a phone and side by side from 560 px: a brass one and a quiet one (the start page's hero:
   "Ontdek de deals" and "Ik heb een zaak"; its block for venues: "Start in 5 minuten" and "Meer voor zaken"). */
.b-cta-pair {
  display: grid;
  gap: var(--b-3);
  width: 100%;
  max-width: 22rem;
  margin-top: var(--b-2);
}

.b-linkbox .b-cta-pair {
  max-width: none;
  margin-top: 0;
}

@media (min-width: 560px) {
  .b-cta-pair {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    max-width: 30rem;
  }
}

/* The anchor of "Ontdek de deals": the title of today's moments stops just below the sticky header. */
.b-anchor {
  scroll-margin-top: calc(var(--b-8) + env(safe-area-inset-top, 0px));
}

.b-anchor .b-small {
  margin-top: var(--b-1);
}

.b-fan {
  position: absolute;
  top: var(--b-6);
  left: 50%;
  z-index: -1;
  width: min(560px, 100vw);
  height: min(280px, 50vw);
  border-radius: 280px 280px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, color-mix(in srgb, var(--b-brass) 40%, transparent) 0deg 0.4deg, transparent 0.4deg 7.5deg);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 18%, #000 19%, #000 58%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 100%, transparent 18%, #000 19%, #000 58%, transparent 100%);
  pointer-events: none;
  transform: translateX(-50%);
}

/* The floor dial: a brass half-dial with a needle, like the one above an elevator door. */
.b-dial {
  position: relative;
  width: 56px;
  height: 28px;
  overflow: hidden;
  border: 1.5px solid var(--b-honey-edge);
  border-bottom: 0;
  border-radius: 56px 56px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(80, 58, 18, 0.45) 0deg 1deg, transparent 1deg 30deg), var(--b-gold);
}

.b-dial::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 24px;
  margin-left: -1px;
  background: #1A1408;
  transform: rotate(var(--b-floor, 0deg));
  transform-origin: 50% 100%;
  transition: transform 900ms var(--b-ease);
}

/* A deco rule: two brass lines with a diamond between them. */
.b-rule {
  position: relative;
  width: 132px;
  height: 9px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--b-brass) 0 54px, transparent 54px 78px, var(--b-brass) 78px) center / 100% 1px no-repeat;
}

.b-rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 4.5px);
  width: 9px;
  height: 9px;
  background: var(--b-brass);
  transform: rotate(45deg) scale(0.8);
}

/* ----- Steps as an elevator dial: the needle points at the floor you are on ----- */
.b-lift {
  display: grid;
  justify-items: center;
  gap: var(--b-3);
}

.b-lift-dial {
  width: 100%;
  max-width: 220px;
  overflow: visible;
}

.b-lift-arc {
  fill: none;
  stroke: var(--b-brass);
  stroke-width: 1.5;
}

.b-lift-ticks line {
  stroke: var(--b-brass);
  stroke-width: 1;
  opacity: 0.6;
}

.b-lift-floors text {
  fill: var(--b-ink);
  font-family: var(--b-serif);
  font-size: 22px;
  text-anchor: middle;
}

.b-lift-needle {
  fill: var(--b-honey-edge);
  transform: rotate(var(--b-needle, -55deg));
  transform-box: view-box;
  transform-origin: 120px 118px;
  transition: transform 900ms var(--b-ease);
}

.b-lift .b-list--steps {
  width: 100%;
  text-align: left;
}

.b-lift .b-row-lead {
  background: var(--b-surface);
  box-shadow: inset 0 0 0 1px var(--b-line);
  font-family: var(--b-serif);
  font-size: 1.25rem;
  font-weight: 400;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}

.b-lift .is-here .b-row-lead {
  background: var(--b-gold);
  box-shadow: none;
  color: #1A1408;
}

/* ----- Baffo Bot the bellhop sits on a disc with a brass ring ----- */
.b-bot-picture {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-brass) 55%, transparent), 0 0 0 6px var(--b-page), 0 0 0 7px color-mix(in srgb, var(--b-brass) 30%, transparent);
}

/* The language switch in a centred top: small, in the top right corner. */
.b-hero-langs {
  position: absolute;
  top: var(--b-2);
  right: 0;
}

/* Mijn pas: every pass in the list starts with a small golden stub, the day in the serif. */
.b-list--passes .b-row-lead {
  width: 44px;
  height: 52px;
  border-radius: 6px;
  background: var(--b-gold);
  background-size: 200% 100%;
  color: #1A1408;
  font-family: var(--b-serif);
  font-size: 1.5rem;
  font-weight: 400;
  box-shadow: inset 0 0 0 3px rgba(255, 253, 248, 0.25), inset 0 0 0 4px rgba(26, 20, 8, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .b-button:not(.b-button--quiet):not(.b-button--text):hover::after,
  .b-button:not(.b-button--quiet):not(.b-button--text):focus-visible::after {
    transform: translateX(120%);
    transition: transform 900ms var(--b-ease);
  }

}

/* Between pages: a soft cross-fade, like a scene that changes; the header stays put. No script, and none with
   less motion. Browsers without view transitions simply load the next page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .b-header {
    view-transition-name: b-header;
  }
}

/* ==========================================================================
   The product's frame: header, page and footer (the product:* shared blocks; source web/index.html)
   ========================================================================== */
.b-skip {
  position: absolute;
  top: var(--b-2);
  left: var(--b-2);
  z-index: 30;
  padding: var(--b-3) var(--b-4);
  border-radius: var(--b-radius-s);
  background: var(--b-honey);
  color: var(--b-on-honey);
  font-weight: 650;
  transform: translateY(-200%);
}

.b-skip:focus {
  transform: none;
}

.b-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--b-line);
  background: color-mix(in srgb, var(--b-page) 90%, transparent);
  box-shadow: 0 3px 0 -2px color-mix(in srgb, var(--b-brass) 35%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-3);
  max-width: 960px;
  min-height: 64px;
  margin: 0 auto;
  padding: var(--b-2) var(--b-4);
}

.b-nav {
  display: flex;
  align-items: center;
  gap: var(--b-1);
  margin-right: calc(-1 * var(--b-3));
}

.b-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--b-tap);
  padding: 0 var(--b-3);
  border-radius: var(--b-radius-pill);
  color: var(--b-ink);
  font-weight: 600;
  text-decoration: none;
}

.b-nav a:hover {
  background: var(--b-sunk);
}

/* The current page: a honey underline, so it is never shown by colour alone. */
.b-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--b-honey);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

@media (max-width: 639px) {
  .b-nav-wide {
    display: none !important;
  }
}

.b-main {
  width: 100%;
  max-width: var(--b-width);
  margin: 0 auto;
  padding: var(--b-6) var(--b-4) var(--b-7);
}

/* The top of a page: a small label (with the language switch beside it), the title, one sentence. */
.b-intro {
  display: grid;
  gap: var(--b-2);
}

.b-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-3);
  min-height: var(--b-tap);
}

.b-intro .b-lead {
  margin-top: var(--b-1);
}

/* Blocks on a page: 32 px apart, each with a small head. */
.b-block {
  margin-top: var(--b-6);
}

.b-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--b-3);
  margin-bottom: var(--b-3);
}

.b-h2 {
  font-family: var(--b-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
}

/* A small head inside a block: "Vandaag" and "Morgen" under the block's own title. */
.b-h3 {
  font-family: var(--b-serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.15;
}

.b-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b-3);
}

.b-footer {
  display: grid;
  gap: var(--b-2);
  max-width: 960px;
  margin: var(--b-7) auto 0;
  padding: var(--b-5) var(--b-4) calc(var(--b-6) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--b-line);
}

.b-footer-links {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--b-3));
}

.b-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--b-tap);
  padding: 0 var(--b-3);
  color: var(--b-soft);
  font-weight: 600;
  text-decoration: none;
}

.b-footer-links a:hover,
.b-footer-links a[aria-current] {
  color: var(--b-ink);
  text-decoration: underline;
}

/* "Plan een gesprek" (/book/): Cal.com's calendar keeps its place while it loads. */
.b-cal-embed {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
}

/* The personal side of Baffo: one small link at the very end, a smile for whoever finds it (docs/BAFFO-CONTEXT.md). */
.b-footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-2) var(--b-4);
}

.b-footer-maker {
  display: inline-flex;
  align-items: center;
  min-height: var(--b-tap);
  color: var(--b-soft);
  text-decoration: none;
}

.b-footer-maker:hover,
.b-footer-maker[aria-current] {
  color: var(--b-ink);
  text-decoration: underline;
}

/* ----- Without motion everything is simply there ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   The venue's side (/zaken/start/, /zaak/<slug>/, /zaken/beheer/): the same system, for a phone at the till.
   One question per screen, big tap zones, every choice a button. Words only: no charts.
   ========================================================================== */
.b-soft {
  color: var(--b-soft);
  font-weight: 400;
}

/* Where you are in "Start in 5 minuten": a thin honey bar, and "Stap 3 van 8" for everyone. */
.b-progress {
  height: 6px;
  margin-bottom: var(--b-4);
  overflow: hidden;
  border-radius: var(--b-radius-pill);
  background: var(--b-sunk);
}

.b-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--b-honey);
  transition: width 0.4s var(--b-ease);
}

.b-step {
  display: grid;
  gap: var(--b-4);
  margin-top: var(--b-2);
}

.b-step > h2:focus {
  outline: none;
}

.b-step-nav {
  display: grid;
  gap: var(--b-2);
  margin-top: var(--b-3);
  justify-items: center;
}

/* Big choices, one per row: the kind of venue. Pressed: ink, like every choice. */
.b-options {
  display: grid;
  gap: var(--b-3);
}

.b-option {
  display: grid;
  gap: var(--b-1);
  min-height: 72px;
  padding: var(--b-4);
  border: 1px solid var(--b-edge);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
  color: var(--b-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.b-option strong {
  font-size: var(--b-lead);
}

.b-option span {
  color: var(--b-soft);
}

.b-option:hover {
  background: var(--b-sunk);
}

.b-option[aria-pressed="true"] {
  border-color: var(--b-ink);
  background: var(--b-ink);
  color: var(--b-page);
}

.b-option[aria-pressed="true"] span {
  color: inherit;
}

/* A price field with the euro sign in front. */
.b-money {
  position: relative;
  display: block;
}

.b-money > span {
  position: absolute;
  top: 50%;
  left: var(--b-4);
  transform: translateY(-50%);
  color: var(--b-soft);
  font-weight: 600;
}

.b-money .b-input {
  padding-left: calc(var(--b-4) + 1.2em);
  font-variant-numeric: tabular-nums;
}

.b-input--pin {
  font-size: var(--b-lead);
  letter-spacing: 0.3em;
}

.b-input--count {
  width: 5.5em;
  margin-top: var(--b-2);
  text-align: center;
}

.b-select {
  width: auto;
  min-width: 0;
  padding: 0 var(--b-2);
}

/* Photos: three tiles in a row, the first one is on every card. */
.b-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--b-2);
}

.b-photo,
.b-photo-add {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--b-radius-s);
  background: var(--b-sunk);
}

.b-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-photo-remove {
  position: absolute;
  right: var(--b-1);
  bottom: var(--b-1);
  min-height: 36px;
  padding: 0 var(--b-3);
  border: 0;
  border-radius: var(--b-radius-pill);
  background: rgba(31, 27, 22, 0.78);
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-size: var(--b-small);
  font-weight: 600;
}

.b-photo-add {
  display: grid;
  place-items: center;
  padding: var(--b-2);
  border: 1px dashed var(--b-edge);
  color: var(--b-ink);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

.b-photo-add:focus-within {
  outline: 3px solid var(--b-focus);
  outline-offset: 2px;
}

.b-photo-add[aria-busy="true"] span {
  opacity: 0.5;
}

/* The quiet grid: a row per day, a column per part of the day. Empty, quiet (soft green), very quiet (green). */
.b-quiet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}

.b-quiet th {
  font-size: var(--b-small);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.b-quiet thead th {
  padding-bottom: var(--b-1);
}

.b-quiet thead small {
  display: block;
  color: var(--b-soft);
  font-weight: 400;
}

.b-quiet tbody th {
  width: 2.2em;
  text-align: left;
}

.b-quiet td.is-closed {
  border-radius: var(--b-radius-s);
  background: repeating-linear-gradient(135deg, transparent 0 6px, var(--b-line) 6px 7px);
}

.b-quiet-cell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  padding: var(--b-1);
  border: 1px solid var(--b-edge);
  border-radius: var(--b-radius-s);
  background: var(--b-surface);
  color: var(--b-ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--b-small);
  font-weight: 650;
  line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
}

.b-quiet-cell[data-level="1"] {
  border-color: var(--b-ok);
  background: var(--b-ok-bg);
  color: var(--b-ok);
}

.b-quiet-cell[data-level="2"] {
  border-color: var(--b-ok);
  background: var(--b-ok);
  color: var(--b-surface);
}

/* Opening hours: the day, open or closed, from and to. */
.b-hours-row {
  display: grid;
  grid-template-columns: minmax(5.5em, 1fr) auto auto auto;
  gap: var(--b-2);
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--b-line);
}

.b-hours-day {
  font-weight: 600;
}

.b-hours-row .b-chip {
  min-width: 4.6em;
  padding: 0 var(--b-3);
  font-size: var(--b-small);
}

.b-hours-row .b-select {
  min-height: var(--b-tap);
}

/* On a small phone: the day and open or closed on one line, from and to on the next, equally wide. */
@media (max-width: 380px) {
  .b-hours-row {
    grid-template-columns: 1fr 1fr;
    padding: var(--b-2) 0;
  }

  .b-hours-row .b-chip {
    justify-self: end;
  }

  .b-hours-row .b-select {
    width: 100%;
  }
}

/* The team: a first name per row, with "Weg" beside it. */
.b-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--b-2);
  align-items: center;
  margin-bottom: var(--b-2);
}

.b-stepper--left {
  justify-content: flex-start;
}

/* The tabs of the venue's side: four equal buttons, the current one pressed. */
.b-tabs {
  position: sticky;
  top: calc(72px + env(safe-area-inset-top, 0px));   /* just below the sticky header (64 px), never behind it */
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-pill);
  background: var(--b-surface);
}

.b-tabs button {
  position: relative;
  min-height: var(--b-tap);
  padding: 0 var(--b-1);
  border: 0;
  border-radius: var(--b-radius-pill);
  background: transparent;
  color: var(--b-ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--b-small);
  font-weight: 600;
}

.b-tabs button[aria-pressed="true"] {
  background: var(--b-ink);
  color: var(--b-page);
}

/* How many proposals wait: a small honey badge in the corner of its tab. */
.b-badge {
  position: absolute;
  top: -4px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--b-surface);
  border-radius: var(--b-radius-pill);
  background: var(--b-honey);
  color: var(--b-on-honey);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.b-panel {
  margin-top: var(--b-5);
}

/* A settings form: its fields, one line of help and "Bewaar", evenly apart. */
.b-panel form {
  display: grid;
  gap: var(--b-3);
}

.b-panel form > .b-button {
  justify-self: start;
}

.b-panel .b-block-head {
  margin-bottom: 0;
}

/* A proposal: what, when, the price, how much is free, and yes or no. */
.b-proposals {
  display: grid;
  gap: var(--b-3);
  margin: var(--b-4) 0 0;
  padding: 0;
  list-style: none;
}

.b-proposal {
  display: grid;
  gap: var(--b-1);
  padding: var(--b-4);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
  box-shadow: var(--b-shadow);
}

.b-proposal-title {
  font-size: 1.5rem;
  line-height: 1.2;
}

.b-proposal-when {
  color: var(--b-soft);
}

.b-proposal-price {
  margin-top: var(--b-2);
}

.b-proposal-price .b-price {
  margin-right: 0.15em;
  font-size: 1.5rem;
}

.b-proposal-why {
  margin-top: var(--b-1);
  color: var(--b-soft);
}

.b-proposal-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--b-2);
  margin-top: var(--b-3);
}

.b-proposal-actions .b-button {
  width: 100%;
}

.b-button--small {
  min-height: var(--b-tap);
  padding: 0 var(--b-4);
  font-size: var(--b-small);
}

.b-row-lead--time {
  width: auto;
  min-width: 3.2em;
  font-variant-numeric: tabular-nums;
}

.b-till--row {
  margin: var(--b-2) 0 var(--b-3);
}

.b-total .b-row-text {
  display: grid;
}

/* A small label: Live, Concept, Binnen. */
.b-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--b-3);
  border-radius: var(--b-radius-pill);
  background: var(--b-warn-bg);
  color: var(--b-warn);
  font-size: var(--b-small);
  font-weight: 650;
  white-space: nowrap;
}

.b-tag--ok {
  background: var(--b-ok-bg);
  color: var(--b-ok);
}

/* On or off: a switch with its sentence. */
.b-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-4);
  width: 100%;
  min-height: 56px;
  padding: var(--b-2) var(--b-4);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
  color: var(--b-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.b-toggle::after {
  content: "";
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: var(--b-radius-pill);
  background: var(--b-edge) radial-gradient(circle at 16px 50%, var(--b-surface) 11px, transparent 12px);
  transition: background-color 0.2s var(--b-ease);
}

.b-toggle[aria-checked="true"]::after {
  background: var(--b-ok) radial-gradient(circle at 36px 50%, var(--b-surface) 11px, transparent 12px);
}

/* One tick with its sentence ("Ik ga akkoord met …"): the whole row is the tap target. */
.b-agree {
  display: flex;
  align-items: center;
  gap: var(--b-3);
  min-height: 56px;
  padding: var(--b-2) var(--b-4);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
  color: var(--b-ink);
  cursor: pointer;
  font-weight: 600;
}

.b-agree input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--b-ok);
  cursor: pointer;
}

.b-agree a {
  color: inherit;
}

/* The secret link: shown once, to keep. */
.b-linkbox {
  display: grid;
  gap: var(--b-3);
  padding: var(--b-4);
  border-radius: var(--b-radius-m);
  background: var(--b-sunk);
}

.b-linkbox-url {
  padding: var(--b-3);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-s);
  background: var(--b-surface);
  font-size: var(--b-small);
  overflow-wrap: anywhere;
  user-select: all;
}

/* A QR code to print: black on white in light and dark, so every phone camera reads it. */
.b-qr {
  width: min(220px, 60vw);
  margin: 0;
  padding: var(--b-2);
  border-radius: var(--b-radius-s);
  background: #FFFFFF;
}

.b-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

/* A calendar per hairdresser (or for the whole venue): its label, then its state or a field to connect it. */
.b-cal {
  display: grid;
  gap: var(--b-2);
  padding: var(--b-3) 0;
  border-bottom: 1px solid var(--b-line);
}

.b-cal-label {
  font-weight: 600;
}

.b-cal .b-button {
  justify-self: start;
}

.b-howto-box summary {
  min-height: var(--b-tap);
  padding: var(--b-3) 0;
  color: var(--b-link);
  cursor: pointer;
  font-weight: 600;
}

/* A short numbered how-to inside a box: "Tik op Deel, dan op Zet op beginscherm". */
.b-howto {
  display: grid;
  gap: var(--b-2);
  margin: 0;
  padding-left: 1.4em;
}

.b-prose {
  display: grid;
  gap: var(--b-3);
  margin-top: var(--b-3);
}

/* Leandro's list of new venues. */
.b-admin {
  display: grid;
  gap: var(--b-3);
  margin-top: var(--b-4);
  padding: var(--b-4);
}

.b-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-3);
}

.b-admin-photos {
  display: flex;
  gap: var(--b-2);
}

.b-admin-photos img {
  width: 88px;
  height: 88px;
  border-radius: var(--b-radius-s);
  object-fit: cover;
}

/* ----- The page for venues (/zaken/): how it works in three pictures, the price, and who you talk to ----- */
.b-pictures {
  display: grid;
  gap: var(--b-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-picture {
  display: grid;
  gap: var(--b-3);
  margin: 0;
}

.b-picture svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--b-radius-m);
  background: var(--b-sunk);
  font-family: var(--b-font);
}

.b-picture figcaption {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--b-3);
  align-items: start;
}

.b-picture figcaption > span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--b-gold);
  color: #1A1408;
  font-family: var(--b-serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.b-picture figcaption strong {
  display: block;
  font-weight: 650;
}

.b-picture figcaption span span {
  color: var(--b-soft);
}

/* The pictures' colours follow the page's tokens, in light and dark. */
.b-art-surface { fill: var(--b-surface); }
.b-art-sunk { fill: var(--b-sunk); }
.b-art-page { fill: var(--b-page); }
.b-art-honey { fill: var(--b-honey); }
.b-art-ink { fill: var(--b-ink); }
.b-art-soft { fill: var(--b-soft); }
.b-art-ok { fill: var(--b-ok); }
.b-art-on-honey { fill: var(--b-on-honey); }
.b-art-line { fill: none; stroke: var(--b-line); stroke-width: 2; }
.b-art-edge { fill: none; stroke: var(--b-edge); stroke-width: 3; }
.b-art-tick { fill: none; stroke: var(--b-surface); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.b-founder {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--b-4);
  align-items: start;
}

.b-founder img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--b-brass), 0 0 0 5px var(--b-page), 0 0 0 6px color-mix(in srgb, var(--b-brass) 45%, transparent);
}

@media (max-width: 380px) {
  .b-founder {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----- "Een maandagochtend met Baffo" (/zaken/bioscoop/, tools/maandag.mjs and web/assets/js/maandag.js) -----
   Without scripts: a numbered list of four pictures. With scripts: the four lie on one spot from the first paint
   (decided by CSS, not by the script), so the box is as high as the highest picture and nothing moves (CLS 0).
   Changing a picture is opacity and transform only. */
.b-maandag-beelden {
  display: grid;
  gap: var(--b-5);
  margin: 0;
  padding-left: var(--b-5);
}

.b-beeld {
  display: grid;
  align-content: start;
  gap: var(--b-3);
  padding: var(--b-4);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-l);
  background: var(--b-surface);
}

.b-beeld-label {
  justify-self: start;
  padding: 2px var(--b-2);
  border: 1px solid var(--b-moon);
  border-radius: var(--b-radius-s);
  color: var(--b-moon);
  font-size: var(--b-small);
}

.b-maandag-ramen {
  display: grid;
  gap: var(--b-4);
}

.b-maandag-ramen .b-raamplan {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
}

.b-voorstel {
  display: grid;
  gap: var(--b-2);
}

.b-voorstel-titel {
  font-weight: 650;
}

.b-voorstel-bedrag strong {
  color: var(--b-lit);
  font-family: var(--b-serif);
  font-size: var(--b-title);
  font-weight: 400;
  line-height: 1;
}

.b-beslis {
  display: none;
  flex-wrap: wrap;
  gap: var(--b-2);
}

/* Three buttons in three fixed columns and the count on its own line: a font that loads late moves nothing. */
.b-maandag-bediening {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--b-2);
  max-width: 420px;
}

.b-maandag-bediening .b-button {
  min-height: var(--b-tap);
  padding: 0 var(--b-2);
}

.b-maandag-bediening [data-stand] {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--b-soft);
}

.b-beslis-antwoord:empty {
  display: none;
}

.b-rapport {
  overflow-x: auto;
}

.b-rapport table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--b-small);
}

.b-rapport caption {
  margin-bottom: var(--b-2);
  color: var(--b-soft);
  text-align: left;
}

.b-rapport th,
.b-rapport td {
  padding: var(--b-2);
  border-bottom: 1px solid var(--b-line);
  text-align: left;
  vertical-align: top;
}

.b-rapport th {
  color: var(--b-soft);
  font-weight: 650;
}

.b-rapport small {
  display: block;
  color: var(--b-soft);
}

@media (min-width: 720px) {
  .b-maandag-ramen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .b-maandag-ramen .b-raamplan {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (scripting: enabled) {
  .b-beslis {
    display: flex;
  }

  .b-maandag-bediening {
    display: grid;
    margin-bottom: var(--b-3);
  }

  .b-maandag-beelden {
    padding-left: 0;
    list-style: none;
  }

  .b-beeld {
    grid-area: 1 / 1;
  }

  .b-beeld:not(:first-child) {
    opacity: 0;
  }

  .b-maandag.is-klaar .b-beeld {
    opacity: 1;
  }

  .b-maandag.is-klaar .b-beeld:not(.is-on) {
    opacity: 0;
    pointer-events: none;
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .b-beeld {
    transition: opacity var(--b-mid) var(--b-ease), transform var(--b-mid) var(--b-ease);
  }

  .b-maandag.is-klaar .b-beeld:not(.is-on) {
    transform: translateY(var(--b-2));
  }
}

/* ----- Raamplan: one moment as a grid of windows (web/assets/js/raamplan.js) -----
   Sold = amber, expected = a moonlight outline, the interval = a soft band, the rest dark. The box has a fixed shape
   before the script draws in it, so nothing moves (CLS 0); the drawing is hidden from assistive tech, the figcaption
   says the same in words. */
.b-raamplan {
  display: grid;
  gap: var(--b-3);
  margin: 0;
}

.b-raamplan-ramen {
  aspect-ratio: 2 / 1;          /* raamplan.js lays out twice as many columns as rows */
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  padding: var(--b-2);
  background: var(--b-page);
}

.b-raamplan-ramen svg {
  display: block;
  width: 100%;
  height: 100%;
}

.b-raam {
  fill: var(--b-sunk);
  stroke: var(--b-line);
  stroke-width: 0.6;
}

.b-raam.is-band {
  fill: color-mix(in srgb, var(--b-moon) 32%, var(--b-sunk));   /* soft: where the real number lands 8 times out of 10 */
}

.b-raam.is-expected {
  stroke: var(--b-moon);
  stroke-width: 1;
}

.b-raam-licht {
  fill: var(--b-lit);
}

.b-raamplan figcaption {
  color: var(--b-soft);
  font-size: var(--b-small);
}

/* Without scripts there is no drawing: no empty box either, only the sentence (decided at load, so nothing moves). */
@media (scripting: none) {
  .b-raamplan-ramen {
    display: none;
  }
}

/* One animation, once: the lit windows switch on when the plan comes into view (opacity only, 600 ms in all). */
@media (prefers-reduced-motion: no-preference) {
  .b-raamplan:not(.is-on) .b-raam-licht {
    opacity: 0;
  }

  .b-raam-licht {
    transition: opacity 300ms var(--b-ease);
  }
}

/* ==========================================================================
   The example page (/ontwerp/): the system shown on one page. Not part of the product.
   ========================================================================== */
.od-top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--b-line);
  background: color-mix(in srgb, var(--b-page) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.od-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-4);
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
  padding: var(--b-2) var(--b-4);
}

/* The word mark: BAFFO in the serif, in capitals with room between them, like the sign above a lobby door. */
.b-wordmark {
  color: var(--b-ink);
  font-family: var(--b-serif);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.b-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: var(--b-tap);
  white-space: nowrap;
}

.b-wordmark span {
  color: var(--b-soft);
  font-family: var(--b-font);
  font-size: var(--b-small);
  font-weight: 500;
  letter-spacing: 0.2em;
}

@media (max-width: 420px) {
  .od-top .b-wordmark span {
    display: none;
  }
}

/* Theme switch: three choices, the current one pressed. */
.od-theme {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--b-edge);
  border-radius: var(--b-radius-pill);
  background: var(--b-surface);
}

.od-theme button {
  min-width: var(--b-tap);
  min-height: var(--b-tap);
  padding: 0 var(--b-3);
  border: 0;
  border-radius: var(--b-radius-pill);
  background: transparent;
  color: var(--b-soft);
  cursor: pointer;
  font: inherit;
  font-size: var(--b-small);
  font-weight: 600;
}

.od-theme button[aria-pressed="true"] {
  background: var(--b-honey);
  color: var(--b-on-honey);
}

.od-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--b-7) var(--b-4) var(--b-8);
}

.od-hero {
  display: grid;
  gap: var(--b-4);
  max-width: 720px;
}

.od-hero .b-display {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

.od-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b-2);
  margin: var(--b-5) 0 0;
  padding: 0;
  list-style: none;
}

.od-toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--b-tap);
  padding: 0 var(--b-4);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-pill);
  background: var(--b-surface);
  color: var(--b-ink);
  font-size: var(--b-small);
  font-weight: 600;
  text-decoration: none;
}

.od-toc a:hover {
  border-color: var(--b-edge);
}

.od-section {
  margin-top: var(--b-8);
  scroll-margin-top: 80px;
}

.od-section > header {
  display: grid;
  gap: var(--b-2);
  max-width: 640px;
  margin-bottom: var(--b-5);
}

.od-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.od-section > h3,
.od-two h3,
.od-part > header h3 {
  margin-bottom: var(--b-3);
  font-size: var(--b-lead);
}

.od-part > header h3 {
  margin-bottom: 0;
}

.od-figure {
  margin: 0;
}

/* The example screens: phone-wide columns on the page, side by side when there is room. */
.od-screens {
  display: grid;
  gap: var(--b-6);
  align-items: start;
}

@media (min-width: 900px) {
  .od-screens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--b-5);
  }
}

.od-screen {
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: 28px;
  background: var(--b-page);
  box-shadow: var(--b-shadow);
}

.od-screen-caption {
  margin-top: var(--b-3);
  color: var(--b-soft);
  font-size: var(--b-small);
  text-align: center;
}

.od-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--b-4);
  border-bottom: 1px solid var(--b-line);
}

.od-screen-bar a:not(.b-wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: var(--b-tap);
  font-size: var(--b-small);
  font-weight: 600;
}

.od-screen-body {
  display: grid;
  gap: var(--b-5);
  padding: var(--b-5) var(--b-4) var(--b-6);
}

.od-screen-head {
  display: grid;
  gap: var(--b-2);
}

.od-screen-head .b-display {
  font-size: 2rem;
}

.od-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

/* Swatches: the colour itself comes from the token, so it follows light and dark. */
.od-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--b-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.od-swatch {
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
}

.od-chip {
  display: flex;
  align-items: flex-end;
  height: 88px;
  padding: var(--b-3);
  border-bottom: 1px solid var(--b-line);
  font-size: var(--b-small);
  font-weight: 650;
}

.od-swatch-info {
  display: grid;
  gap: 2px;
  padding: var(--b-3);
}

.od-swatch-info strong {
  font-weight: 650;
}

.od-swatch-info code,
.od-code {
  color: var(--b-soft);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 0.8125rem;
}

/* The four meanings and their contrast table (/ontwerp/#betekenis). Only classes of that page. */
.od-chip-action { background: var(--b-action); color: var(--b-on-honey); }
.od-chip-lit { background: var(--b-page); color: var(--b-lit); font-size: 1.75rem; }
.od-chip-moon { background: var(--b-page); color: var(--b-moon); font-size: 1.75rem; }
.od-chip-proof { background: var(--b-ok-bg); color: var(--b-proof); }

#betekenis > .b-small { max-width: 640px; margin: var(--b-4) 0 0; }
#betekenis > h3 { margin-top: var(--b-6); }
#betekenis > h3 + .b-small { margin: 0 0 var(--b-4); }

.od-contrast-wrap {
  overflow-x: auto;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);   /* one known background, so the samples sit on exactly the tokens they name */
}

.od-contrast {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--b-small);
}

.od-contrast th,
.od-contrast td {
  padding: var(--b-2) var(--b-3);
  border-bottom: 1px solid var(--b-line);
  text-align: left;
  white-space: nowrap;
}

.od-contrast tbody tr:last-child td { border-bottom: 0; }
.od-contrast th { color: var(--b-soft); font-weight: 650; }
.od-contrast code { color: var(--b-soft); font-family: var(--b-mono); font-size: 0.8125rem; }
.od-contrast .od-ratio,
.od-contrast th:last-child { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }

.od-sample {
  display: inline-block;
  padding: var(--b-1) var(--b-2);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-s);
  font-weight: 600;
}

/* Each row paints its sample with its own two tokens. */
[data-fg="ink"] .od-sample { color: var(--b-ink); }
[data-fg="soft"] .od-sample { color: var(--b-soft); }
[data-fg="link"] .od-sample { color: var(--b-link); }
[data-fg="lit"] .od-sample { color: var(--b-lit); }
[data-fg="action"] .od-sample { color: var(--b-action); }
[data-fg="moon"] .od-sample { color: var(--b-moon); }
[data-fg="amber-soft"] .od-sample { color: var(--b-amber-soft); }
[data-fg="proof"] .od-sample { color: var(--b-proof); }
[data-fg="warn"] .od-sample { color: var(--b-warn); }
[data-fg="bad"] .od-sample { color: var(--b-bad); }
[data-fg="on-honey"] .od-sample { color: var(--b-on-honey); }
[data-fg="page"] .od-sample { color: var(--b-page); }
[data-fg="surface"] .od-sample { color: var(--b-surface); }
[data-bg="page"] .od-sample { background: var(--b-page); }
[data-bg="surface"] .od-sample { background: var(--b-surface); }
[data-bg="sunk"] .od-sample { background: var(--b-sunk); }
[data-bg="ok-bg"] .od-sample { background: var(--b-ok-bg); }
[data-bg="warn-bg"] .od-sample { background: var(--b-warn-bg); }
[data-bg="bad-bg"] .od-sample { background: var(--b-bad-bg); }
[data-bg="action"] .od-sample { background: var(--b-action); }
[data-bg="honey-hover"] .od-sample { background: var(--b-honey-hover); }
[data-bg="ink"] .od-sample { background: var(--b-ink); }
[data-bg="proof"] .od-sample { background: var(--b-proof); }

/* Type samples */
.od-type {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--b-line);
  list-style: none;
}

.od-type li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--b-4);
  align-items: baseline;
  padding: var(--b-4) 0;
  border-bottom: 1px solid var(--b-line);
}

@media (max-width: 600px) {
  .od-type li {
    grid-template-columns: 1fr;
    gap: var(--b-1);
  }
}

/* Spacing bars */
.od-spaces {
  display: grid;
  gap: var(--b-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.od-spaces li {
  display: grid;
  grid-template-columns: 80px 56px minmax(0, 1fr);
  gap: var(--b-3);
  align-items: center;
}

.od-bar {
  height: 16px;
  border-radius: 4px;
  background: var(--b-honey);
}

.od-radii {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b-4);
  margin: var(--b-5) 0 0;
  padding: 0;
  list-style: none;
}

.od-radii li {
  display: grid;
  justify-items: center;
  gap: var(--b-2);
  color: var(--b-soft);
  font-size: var(--b-small);
}

.od-radius {
  width: 88px;
  height: 64px;
  border: 2px solid var(--b-edge);
  background: var(--b-surface);
}

.od-tapzone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px dashed var(--b-link);
  border-radius: var(--b-radius-s);
}

/* Components: each in its own panel */
.od-parts {
  display: grid;
  gap: var(--b-5);
}

@media (min-width: 900px) {
  .od-parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.od-part {
  display: grid;
  align-content: start;
  gap: var(--b-4);
  padding: var(--b-5);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-l);
  background: var(--b-sunk);
  --b-behind: var(--b-sunk);
}

.od-part > header {
  display: grid;
  gap: var(--b-1);
}

.od-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b-3);
  align-items: center;
}

/* Writing: good and not so good, side by side */
.od-rules {
  display: grid;
  gap: var(--b-3);
  margin: 0 0 var(--b-6);
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

@media (min-width: 900px) {
  .od-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.od-rules li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--b-3);
  padding: var(--b-4);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
  counter-increment: rule;
}

.od-rules li::before {
  content: counter(rule);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--b-honey);
  color: var(--b-on-honey);
  font-weight: 700;
}

.od-rules strong {
  display: block;
  font-weight: 650;
}

.od-rules span {
  color: var(--b-soft);
}

.od-pairs {
  display: grid;
  gap: var(--b-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.od-pair {
  display: grid;
  gap: var(--b-3);
  padding: var(--b-4);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-m);
  background: var(--b-surface);
}

@media (min-width: 760px) {
  .od-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

.od-say {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--b-2);
}

.od-say svg {
  width: 24px;
  height: 24px;
}

.od-say.is-good svg {
  color: var(--b-ok);
}

.od-say.is-bad svg {
  color: var(--b-bad);
}

.od-say.is-bad p {
  color: var(--b-soft);
  text-decoration: line-through;
  text-decoration-color: var(--b-bad);
}

.od-why {
  color: var(--b-soft);
  font-size: var(--b-small);
}

/* Do and don't lists (Baffo Bot, access) */
.od-two {
  display: grid;
  gap: var(--b-5);
}

@media (min-width: 900px) {
  .od-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.od-checks {
  display: grid;
  gap: var(--b-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.od-checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--b-3);
}

.od-checks svg {
  width: 24px;
  height: 24px;
}

.od-checks.is-yes svg {
  color: var(--b-ok);
}

.od-checks.is-no svg {
  color: var(--b-bad);
}

.od-foot {
  display: grid;
  gap: var(--b-3);
  max-width: 640px;
  margin-top: var(--b-8);
  padding-top: var(--b-6);
  border-top: 1px solid var(--b-line);
}

/* ===== Finding a moment: search, filters and sorting on the start page (discover.js, today.js) ===== */
.b-find {
  display: grid;
  gap: var(--b-3);
}

.b-find .b-field {
  gap: var(--b-1);
}

.b-find-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--b-3);
}

/* The selects fill their cell: a tap zone of 48 px, the full width of the column. */
.b-find .b-select {
  width: 100%;
}

.b-check {
  display: flex;
  align-items: center;
  gap: var(--b-3);
  min-height: var(--b-tap);
  cursor: pointer;
}

.b-check input {
  flex: none;
  width: 24px;
  height: 24px;
  accent-color: var(--b-honey);
}

.b-find-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-2);
  margin: 0 0 var(--b-3);
  color: var(--b-soft);
  font-size: var(--b-small);
}

#find-out > section + section {
  margin-top: var(--b-5);
}

/* A moment you cannot join: full, or joining has closed. Still a card, but quiet, dashed and without the button, and it
   says so in words (the badge), never by colour alone. The text keeps its contrast: no opacity on it. */
.b-card.is-unavailable {
  border-style: dashed;
  border-color: var(--b-edge);
  background: var(--b-sunk);
  box-shadow: none;
  cursor: default;
}

.b-card.is-unavailable .b-card-time,
.b-card.is-unavailable .b-card-title,
.b-card.is-unavailable .b-price {
  color: var(--b-soft);
}

.b-card.is-unavailable .b-card-photo {
  filter: grayscale(1) brightness(0.6);
}

.b-card-state {
  flex: none;
  padding: var(--b-2) var(--b-4);
  border: 1px solid var(--b-edge);
  border-radius: var(--b-radius-pill);
  color: var(--b-ink);
  font-size: var(--b-small);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

/* The deal's facts above "Ik ga": the kind of deal, the saving, until when, how to pay. */
.b-deal-facts {
  margin: 0;
}

.b-deal-facts dd strong {
  color: var(--b-ok);
}

.b-use {
  display: grid;
  gap: var(--b-2);
  margin: 0;
  padding-left: var(--b-5);
  color: var(--b-soft);
  font-size: var(--b-small);
}
