/* blocks.css — the blocks of the site pages (public/assets/js/blocks.mjs, PLATFORM.md § 4.8).
   Loaded after app.css and built on its tokens; every class here starts with «b-».
   The site and the preview of the studio print the same markup at different widths, so nothing here asks the
   window for its size: .b-root is a container, every responsive rule is a @container query, and sizes that follow
   the width are measured in cqi.
   The section of a block carries the name of its type (.b-events, .b-faq: section() of blocks.mjs). A part inside a
   block never takes that name (.b-event-list, .b-q-list): its rule would land on the section as well and undo the
   intervals of .b-sec. */

/* ---------- 1. The page ---------- */
.b-root {
  container: b-root / inline-size;
  background: var(--card);
  color: var(--text);
}

/* The gutters and the widths of .container in app.css, at the same thresholds: a block lines up with the header
   and the footer of the site around it. */
.b {
  --b-gutter: 16px;
  --b-max: 75rem;
  --b-space: 56px; /* above and below a section */
  --b-gap: 32px;   /* between the head of a section and its content */
}
@container b-root (min-width: 768px) {
  .b { --b-gutter: 24px; --b-space: 72px; --b-gap: 40px; }
}
@container b-root (min-width: 1280px) {
  .b { --b-gutter: 32px; --b-space: 96px; --b-gap: 48px; }
}
@container b-root (min-width: 1600px) {
  .b { --b-gutter: 40px; --b-max: 85rem; }
}

.b-wrap {
  width: 100%;
  max-width: calc(var(--b-max) + 2 * var(--b-gutter));
  margin-inline: auto;
  padding-inline: var(--b-gutter);
}

.b-sec { padding-block: var(--b-space); }
.b-bg-tint { background: var(--bg); }
/* two sections on one background read as one sheet: one interval between them, not two */
.b-bg-white + .b-bg-white, .b-bg-tint + .b-bg-tint { padding-top: 0; }

.b-icon { flex: none; width: 24px; height: 24px; }

/* ---------- 2. Heads, links, buttons ---------- */
.b-title {
  margin: 0;
  max-width: 22em;
  font-size: clamp(1.625rem, 1.3rem + 1.5cqi, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
}
.b-lead {
  margin: 12px 0 0;
  max-width: 38em;
  font-size: clamp(1.0625rem, 1.02rem + .25cqi, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
}
.b-head { min-width: 0; }
.b-head--center { text-align: center; }
.b-head--center .b-title, .b-head--center .b-lead { margin-inline: auto; }

/* the mark of the site before a short line above a title: the bar of .eyebrow in app.css */
.b-eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.b-eyebrow::before {
  content: "";
  flex: none;
  width: 28px; height: 4px;
  margin-top: .65em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--red) 33% 40%, #FFFFFF 40% 60%, var(--red) 60% 67%, var(--green) 67% 100%);
  box-shadow: 0 0 0 1px rgba(18, 24, 74, .08);
}

/* Head, content, link to the whole list. The link follows the content in the markup, where a phone shows it; from
   768 px it stands at the end of the title's line. */
.b-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--b-gap); }
.b-flow-body { min-width: 0; }
.b-more { margin: 0; }
.b-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.b-more-link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.b-more-link .b-icon { width: 18px; height: 18px; transition: transform .15s var(--ease); }
.b-more-link:hover .b-icon { transform: translateX(3px); }
@container b-root (min-width: 768px) {
  .b-flow--more { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head more" "body body"; align-items: end; column-gap: 32px; }
  .b-flow--more > .b-head { grid-area: head; }
  .b-flow--more > .b-flow-body { grid-area: body; }
  .b-flow--more > .b-more { grid-area: more; }
}

.b-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.b-actions .btn { flex: 1 1 auto; }
@container b-root (min-width: 480px) {
  .b-actions .btn { flex: 0 0 auto; }
}

.b-empty { margin: 0; max-width: 38em; font-size: 1.0625rem; }

/* A side head: the title stands in the first column, the content in the second (initiatives, contacts). */
.b-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--b-gap); }
.b-aside-action { margin: 24px 0 0; }
@container b-root (min-width: 900px) {
  .b-aside { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}

/* A whole card or row is the link of its title. */
.b-stretch::after { content: ""; position: absolute; inset: 0; }
@supports selector(:has(a)) {
  .b-stretch:focus-visible { outline: none; }
  .b-card:has(.b-stretch:focus-visible), .b-co:has(.b-stretch:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
  .b-card:has(.b-stretch:focus-visible) { border-radius: var(--radius-lg); }
}

/* ---------- 3. Text ---------- */
.b-narrow { max-width: 46rem; }
.b-narrow > .b-title + .b-prose { margin-top: 24px; }

.b-prose { max-width: 42em; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.b-prose p { margin: 0 0 1em; }
.b-prose > :last-child { margin-bottom: 0; }
.b-prose h3 { margin: 1.6em 0 .5em; font-size: 1.3125rem; font-weight: 800; line-height: 1.25; }
.b-prose h4 { margin: 1.4em 0 .4em; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
.b-prose > :first-child { margin-top: 0; }
.b-prose ul { margin: 0 0 1em; padding: 0; list-style: none; }
.b-prose li { position: relative; margin: .4em 0 0; padding-left: 1.5em; }
/* the marker of a list: a small square on its corner, the shape the girih pattern is made of */
.b-prose li::before {
  content: "";
  position: absolute;
  left: .25em; top: .68em;
  width: 6px; height: 6px;
  background: var(--blue);
  transform: rotate(45deg);
}
.b-prose a { font-weight: 600; }

/* ---------- 4. Hero ---------- */
.b-hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 56px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
/* the girih pattern, the one ornament of a page: it comes in from the right edge and fades towards the text */
.b-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/pattern.svg") 0 0 / 88px 88px;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 50%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 50%, #000 100%);
  pointer-events: none;
}
.b-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.b-hero-text { min-width: 0; }
.b-hero-title {
  margin: 0 0 20px;
  max-width: 12.5em;
  font-size: clamp(1.75rem, 1.1rem + 4.4cqi, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.b-hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: clamp(1.0625rem, .98rem + .5cqi, 1.3125rem);
  line-height: 1.5;
}
.b-hero-lead:last-child { margin-bottom: 0; }
.b-hero-note { margin: 20px 0 0; font-size: .9375rem; color: var(--muted); }

/* The first screen of an event: its days and place on one side, what is in it on the other. */
.b-hero--event { padding-block: 40px 48px; }
.b-hero--event .b-hero-title { margin-bottom: 8px; }
.b-hero-dates { margin: 0 0 12px; font-size: clamp(1.125rem, 1rem + .6cqi, 1.5rem); font-weight: 800; line-height: 1.3; color: var(--blue); font-variant-numeric: tabular-nums; }
.b-hero-place { margin: 0 0 4px; font-size: clamp(1.0625rem, .98rem + .5cqi, 1.3125rem); font-weight: 600; color: var(--muted); }
.b-hero--event .b-hero-lead { margin: 16px 0 0; }
.b-hero--event .b-actions { margin-top: 28px; }
.b-hero-side { align-self: start; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.b-prog-title { margin: 0 0 16px; font-size: 1.125rem; font-weight: 800; color: var(--heading); }
.b-hero--navy .b-hero-dates { color: #9CC4F0; }
.b-hero--navy .b-hero-place { color: #B9C3E4; }
.b-hero--navy .b-hero-side { border-color: transparent; color: var(--text); }
@container b-root (min-width: 768px) {
  .b-hero--event { padding-block: 56px 64px; }
}
@container b-root (min-width: 960px) {
  .b-hero--two .b-hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
}

/* The programme of an event: the days, and under each its parts. `--brief` prints the names alone. */
.b-prog, .b-prog-parts { margin: 0; padding: 0; list-style: none; }
.b-prog li { margin: 0; }
.b-prog-day + .b-prog-day { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.b-prog-date { margin: 0 0 8px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.b-prog--brief .b-prog-parts > li { padding: 3px 0; overflow-wrap: anywhere; }
.b-part + .b-part { margin-top: 18px; }
.b-part-kind { margin: 0 0 2px; font-size: .75rem; font-weight: 800; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.b-part-name { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.b-part-note { margin: 6px 0 0; font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .b-prog:not(.b-prog--brief) > .b-prog-day { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 24px; }
  .b-prog:not(.b-prog--brief) > .b-prog-day > .b-prog-parts:only-child { grid-column: 1 / -1; }
  .b-prog:not(.b-prog--brief) .b-prog-date { margin: 0; font-size: 1.125rem; line-height: 1.3; }
}

/* The search of the catalogue: the field and its button in one row, the kinds of listings as links under it. */
.b-search { display: flex; flex-wrap: wrap; gap: 12px; max-width: 44rem; margin: 0 0 8px; }
.b-search-field { flex: 1 1 15rem; min-width: 0; }
.b-search-field .input { min-height: 52px; padding-left: 46px; border-radius: 12px; font-size: 1.0625rem; }
.b-search-field .b-icon { left: 16px; width: 20px; height: 20px; }
.b-search .btn { flex: 1 1 auto; }
.b-search-kinds { display: flex; flex-wrap: wrap; column-gap: 24px; margin: 0 0 24px; padding: 0; list-style: none; }
.b-search-kinds:last-child { margin-bottom: 0; }
.b-search-kinds li { margin: 0; }
.b-search-kinds a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.b-search-kinds a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.b-hero--navy .b-search-kinds a { color: #D9DFF2; }
.b-hero--navy .b-search-kinds a:hover { color: #FFFFFF; }
@container b-root (min-width: 480px) {
  .b-search .btn { flex: 0 0 auto; }
}
.b-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
/* a picture takes the place of the ornament */
.b-hero--media::before { display: none; }

.b-hero--navy { border-bottom: 0; background: var(--navy); color: #D9DFF2; }
.b-hero--navy::before { background-image: url("../img/pattern-light.svg"); }
.b-hero--navy .b-hero-title { color: #FFFFFF; }
.b-hero--navy .b-eyebrow { color: #9CC4F0; }
.b-hero--navy .b-hero-note { color: #B9C3E4; }

@container b-root (min-width: 768px) {
  .b-hero { padding-block: 72px 88px; }
}
@container b-root (min-width: 960px) {
  .b-hero--media .b-hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
}
@container b-root (min-width: 1280px) {
  .b-hero { padding-block: 104px 120px; }
}
/* with a search the block is a tool, not a poster: less air, so the lists under it begin on the first screen */
@container b-root (min-width: 768px) {
  .b-hero--search { padding-block: 56px 64px; }
}
@container b-root (min-width: 1280px) {
  .b-hero--search { padding-block: 72px 80px; }
}

/* ---------- 5. Split ---------- */
.b-split-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.b-split-text > .b-title + .b-prose { margin-top: 20px; }
.b-split-cols .b-more { margin-top: 12px; }
.b-split-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@container b-root (min-width: 860px) {
  .b-split-cols--media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
  .b-split-cols--left > .b-split-media { order: -1; }
  .b-split-cols--plain { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}

/* ---------- 6. Features ---------- */
.b-feature-list { margin: 0; padding: 0; list-style: none; }
.b-feature-list > .b-feature { margin: 0; min-width: 0; }
.b-feature-icon { display: block; margin-bottom: 12px; color: var(--blue); }
.b-feature-title { margin: 0 0 8px; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.b-feature-text { margin: 0; max-width: 34em; }

/* rows: each point under a rule of its own, the beginning of the rule in the blue of the site */
.b-feature-list--rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
.b-feature-list--rows > .b-feature { position: relative; padding: 24px 0 32px; border-top: 1px solid var(--line-2); }
.b-feature-list--rows > .b-feature::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 40px; height: 3px;
  background: var(--blue);
}
@container b-root (min-width: 720px) {
  .b-feature-list--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container b-root (min-width: 1100px) {
  /* three or six points make rows of three; any other number keeps the wider lines of two columns */
  .b-feature-list--rows:has(> :nth-child(3):last-child), .b-feature-list--rows:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.b-feature-list--cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.b-feature-list--cards > .b-feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
@container b-root (min-width: 640px) {
  .b-feature-list--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container b-root (min-width: 1000px) {
  .b-feature-list--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- 7. Steps ---------- */
.b-step-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: b-step; }
.b-step-list > .b-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 12px;
  margin: 0;
  padding-bottom: 28px;
  counter-increment: b-step;
}
.b-step-list > .b-step:last-child { padding-bottom: 0; }
.b-step-num {
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.b-step-num::before { content: counter(b-step, decimal-leading-zero); }
/* a phone: the numbers stand one under the other on a line */
.b-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .6rem; top: 2rem; bottom: 6px;
  width: 1px;
  background: var(--line-2);
}
.b-step-title { margin: 0 0 6px; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.b-step-text { margin: 0; }
@container b-root (min-width: 860px) {
  /* a wide page: the steps stand side by side, each number followed by a line to the next */
  .b-step-list { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 40px 32px; }
  .b-step-list > .b-step { display: block; padding-bottom: 0; }
  .b-step:not(:last-child)::after { display: none; }
  .b-step-num { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
  .b-step-num::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
}

/* ---------- 8. Numbers ---------- */
.b-stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin: 0; }
/* the number is read first, its name second; the markup keeps the order of a definition list */
.b-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.b-stat-value {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 3cqi, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.b-stat-label { margin-top: 10px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
/* of an odd number of numbers the last one takes the row */
.b-stat-list > .b-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@container b-root (min-width: 720px) {
  .b-stat-list { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 40px 48px; }
  .b-stat-list > .b-stat:last-child:nth-child(odd) { grid-column: auto; }
  /* five: three and two, then all in one row, never four and one */
  .b-stat-list:has(> :nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container b-root (min-width: 900px) {
  .b-stat-list:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; }
}

/* ---------- 9. Call to action ---------- */
.b-cta-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 24px; border-radius: var(--radius-lg); }
.b-cta--navy { background: var(--navy); color: #D9DFF2; }
.b-cta--navy .b-cta-title { color: #FFFFFF; }
.b-cta--light { border: 1px solid var(--blue-100); background: var(--blue-50); }
.b-cta-title {
  margin: 0;
  max-width: 20em;
  font-size: clamp(1.5rem, 1.2rem + 1.5cqi, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.b-cta-lead { margin: 12px 0 0; max-width: 36em; font-size: 1.0625rem; }
@container b-root (min-width: 900px) {
  .b-cta-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 56px 64px; }
  .b-cta-panel .b-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- 10. Questions ---------- */
.b-q-list { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--line-2); }
.b-q { border-bottom: 1px solid var(--line-2); }
.b-q > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
}
.b-q > summary::-webkit-details-marker { display: none; }
.b-q > summary:hover { color: var(--blue-800); }
/* a plus drawn with two bars; an open question turns it into a cross */
.b-q > summary::after {
  content: "";
  flex: none;
  width: 24px; height: 24px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 14px no-repeat;
  transition: transform .18s var(--ease);
}
.b-q[open] > summary::after { transform: rotate(45deg); }
.b-q > .b-prose { padding: 0 48px 24px 0; }
@container b-root (min-width: 768px) {
  .b-q > summary { padding: 24px 0; font-size: 1.125rem; }
}

/* ---------- 11. Events ---------- */
.b-event-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.b-event-list > .b-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
/* the colour band of the event (.strip of app.css) as a short bar above its dates */
.b-event-band { width: 40px; margin-bottom: 12px; }
.b-event-dates { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.3; color: var(--blue); font-variant-numeric: tabular-nums; }
.b-event-main { min-width: 0; }
.b-event-city { margin: 0; font-size: clamp(1.375rem, 1.2rem + .9cqi, 1.875rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.b-event-country { margin: 4px 0 0; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.b-event-what { margin: 12px 0 0; max-width: 38em; overflow-wrap: anywhere; }
.b-event-state { margin: 16px 0 0; }
.b-event-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.b-event-side .btn { flex: 1 1 auto; }
@container b-root (min-width: 480px) {
  .b-event-side .btn { flex: 0 0 auto; }
}
@container b-root (min-width: 860px) {
  .b-event-list > .b-event { grid-template-columns: 14rem minmax(0, 1fr) auto; gap: 32px; align-items: start; padding: 32px 0; }
  .b-event-side { flex-direction: column; align-items: flex-end; gap: 4px; }
}

/* ---------- 12. Initiatives ---------- */
.b-inits { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.b-inits > .b-init { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.b-init-meta { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.b-init-title { margin: 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.b-init-bar { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px 16px; margin-top: 14px; }
.b-init-count { font-size: .9375rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.b-init-status { margin: 8px 0 0; font-size: .875rem; font-weight: 700; color: var(--green-700); }
@container b-root (min-width: 480px) {
  .b-init-bar { grid-template-columns: minmax(0, 1fr) auto; }
}

/* a real <progress>, drawn the same in every engine */
.b-progress {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--line);
  color: var(--blue);
  overflow: hidden;
}
.b-progress::-webkit-progress-bar { border-radius: 4px; background: var(--line); }
.b-progress::-webkit-progress-value { border-radius: 4px; background: var(--blue); }
.b-progress::-moz-progress-bar { border-radius: 4px; background: var(--blue); }
.b-init--reached .b-progress { color: var(--green); }
.b-init--reached .b-progress::-webkit-progress-value { background: var(--green); }
.b-init--reached .b-progress::-moz-progress-bar { background: var(--green); }

/* ---------- 13. Companies, catalogue, partners ---------- */
.b-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  overflow: hidden;
}
.b-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.b-avatar--lg { width: 56px; height: 56px; }
.b-avatar--round { border-radius: 50%; }
.b-avatar--round img { object-fit: cover; }

/* above the link that covers the card: the hint «who confirmed» shows under the pointer */
.b-verified {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-700);
}
.b-verified .b-icon { width: 16px; height: 16px; }

/* companies: a directory in two columns of rows, not a wall of cards */
.b-dir { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.b-dir > .b-co {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.b-co-name { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.b-co-name a { color: inherit; text-decoration: none; }
.b-co:hover .b-co-name a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.b-co-meta { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
.b-co-text {
  display: -webkit-box;
  margin: 8px 0 0;
  font-size: .9375rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
@container b-root (min-width: 800px) {
  .b-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The catalogue: cards, the one place where the things are equal and many. A phone shows a card as a row with a
   small picture, as the catalogue of the site does (site.css), so that a screen holds several; from 600 px the
   picture stands above the text. */
.b-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.b-cards > .b-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.b-cards > .b-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.b-listing-media { aspect-ratio: 1; border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.b-listing-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* no photograph: the seller's logo or letters over the girih pattern, as on the cards of the catalogue (site.css) */
.b-listing-media--none { display: grid; place-items: center; background: var(--bg) url("../img/pattern.svg") center / 88px 88px; }
.b-listing-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
/* neither a picture nor a seller to name: the text takes the whole row */
.b-listing-body:first-child { grid-column: 1 / -1; }
.b-kind { margin: 0; font-size: .75rem; font-weight: 800; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.b-kind--service { color: var(--green-700); }
.b-kind--request { color: var(--amber-800); }
.b-kind--partnership { color: var(--violet-800); }
.b-kind--investment { color: var(--navy); }
.b-card-title { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.b-card-title a { color: inherit; text-decoration: none; }
.b-card:hover .b-card-title a { color: var(--blue); }
.b-listing-text {
  display: none;
  margin: 0;
  font-size: .9375rem;
  color: var(--muted);
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.b-listing-price { margin: 0; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
/* the company stands at the foot of the card, whatever the length of the text above it */
.b-card-meta { margin: auto 0 0; padding-top: 8px; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.b-listing-body > .b-verified { margin-top: 0; }
@container b-root (min-width: 600px) {
  .b-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .b-cards > .b-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .b-listing-media { aspect-ratio: 4 / 3; border-radius: 0; }
  .b-listing-media--none { border-bottom: 1px solid var(--line); }
  .b-listing-media--none .b-avatar { width: 72px; height: 72px; border-radius: 14px; font-size: 1.375rem; }
  .b-listing-body { flex: 1; gap: 8px; padding: 20px; }
  .b-listing-text { display: -webkit-box; }
}
@container b-root (min-width: 960px) {
  .b-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* partners: name plates */
.b-plates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.b-plates > .b-plate {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.b-plate-main { min-width: 0; }
.b-plate-name { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.b-plate-meta { margin: 2px 0 0; font-size: .8125rem; color: var(--muted); }
.b-plate-main > .b-verified { margin-top: 6px; }
@container b-root (min-width: 600px) {
  .b-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container b-root (min-width: 960px) {
  .b-plates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- 14. Logos, gallery ---------- */
.b-logo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.b-logo-list > .b-logo {
  display: grid;
  place-items: center;
  min-height: 88px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.b-logo > a { display: grid; place-items: center; width: 100%; color: inherit; text-decoration: none; }
.b-logo > a:hover .b-logo-name { color: var(--blue); }
.b-logo img { display: block; max-width: 100%; max-height: 56px; object-fit: contain; }
.b-logo-name { font-weight: 700; line-height: 1.3; color: var(--heading); overflow-wrap: anywhere; }
@container b-root (min-width: 600px) {
  .b-logo-list { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 16px; }
}

.b-shot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.b-shot-list > .b-shot { margin: 0; min-width: 0; }
.b-shot figure { margin: 0; }
.b-shot-link { display: block; border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.b-shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .18s var(--ease); }
.b-shot-link:hover img { transform: scale(1.03); }
.b-shot figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
@container b-root (min-width: 720px) {
  .b-shot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@container b-root (min-width: 1100px) {
  .b-shot-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 15. Quote, people ---------- */
.b-quote-figure { max-width: 54rem; margin: 0; padding-left: 20px; border-left: 3px solid var(--blue); }
.b-quote-text { margin: 0; }
.b-quote-text p {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + 1.1cqi, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--heading);
}
.b-quote-by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.b-quote-who { display: grid; min-width: 0; }
.b-quote-author { font-weight: 700; color: var(--heading); }
.b-quote-role { font-size: .9375rem; color: var(--muted); }
@container b-root (min-width: 768px) {
  .b-quote-figure { padding-left: 32px; }
}

.b-person-list { margin: 0; padding: 0; list-style: none; }
.b-person-list > .b-person { margin: 0; min-width: 0; }
.b-person-name { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.b-person-role { margin: 2px 0 0; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
/* with photographs: portraits; a person without one gets the first letters in the same frame */
.b-person-list--photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.b-person-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 1.75rem;
  font-weight: 800;
  overflow: hidden;
}
.b-person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* without photographs: a list of names */
.b-person-list--names { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; border-top: 1px solid var(--line-2); }
.b-person-list--names > .b-person { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@container b-root (min-width: 640px) {
  .b-person-list--photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-person-list--names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container b-root (min-width: 960px) {
  .b-person-list--photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
}
@container b-root (min-width: 1100px) {
  .b-person-list--names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 16. Programme ---------- */
.b-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.b-day { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.b-day-title { margin: 0; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; }
.b-slots { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.b-slots > .b-slot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.b-slot-time { font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.b-slot-main { min-width: 0; }
.b-slot-title { margin: 0; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.b-slot-text { margin: 4px 0 0; font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
@container b-root (min-width: 720px) {
  .b-day { grid-template-columns: 14rem minmax(0, 1fr); gap: 32px; align-items: start; }
  /* level with the first line of the day */
  .b-day-title { padding-top: 13px; }
  .b-day > .b-slots:only-child { grid-column: 2; }
  .b-days--timed .b-slot { grid-template-columns: 8rem minmax(0, 1fr); }
  .b-days--timed .b-slot-main { grid-column: 2; }
}

/* ---------- 17. Contacts, files ---------- */
.b-contact-list { margin: 0; border-top: 1px solid var(--line-2); }
.b-contact { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.b-contact dt { font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.b-contact dd { margin: 0; font-size: 1.1875rem; font-weight: 700; overflow-wrap: anywhere; }

.b-file-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.b-file-list > li { margin: 0; border-bottom: 1px solid var(--line); }
.b-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
}
.b-file-icon { color: var(--muted); }
.b-file-main { display: grid; gap: 2px; min-width: 0; }
.b-file-title { font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.b-file-note { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.b-file-get { display: inline-flex; grid-column: 2; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 700; color: var(--blue); }
.b-file-get .b-icon { width: 18px; height: 18px; }
.b-file:hover { color: inherit; }
.b-file:hover .b-file-title { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
@container b-root (min-width: 560px) {
  .b-file { grid-template-columns: auto minmax(0, 1fr) auto; }
  .b-file-get { grid-column: auto; white-space: nowrap; }
}

/* ---------- 18. Notice, divider ---------- */
.b-notice { padding-block: 24px; }
.b-notice .notice { max-width: 56rem; }
.b-notice-title { margin: 0 0 4px; font-weight: 700; color: var(--heading); }
.b-notice .notice p:last-child { margin-bottom: 0; }

.b-divider--space { height: var(--b-space); }
.b-rule { margin: 0; border: 0; border-top: 1px solid var(--line); }
.b-divider--mark { padding-block: 8px; }
.b-mark {
  display: block;
  width: 56px; height: 4px;
  margin-inline: auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--red) 33% 40%, #FFFFFF 40% 60%, var(--red) 60% 67%, var(--green) 67% 100%);
  box-shadow: 0 0 0 1px rgba(18, 24, 74, .08);
}

/* ---------- 19. Motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
  .b-cards > .b-card:hover { transform: none; }
  .b-more-link:hover .b-icon { transform: none; }
  .b-shot-link:hover img { transform: none; }
}

@media print {
  .b-hero::before { display: none; }
  .b-sec { padding-block: 24px; }
  .b-card, .b-event, .b-q, .b-init, .b-co, .b-plate { break-inside: avoid; }
}
