/*
 * WAYON design system.
 *
 * MOBILE FIRST. Base rules target a ~360px phone, which is what most of this network
 * actually uses; wider layouts are added at min-width breakpoints. Never add a
 * max-width query to "fix" mobile: fix the base rule instead.
 *
 * All colours are custom properties so a rebrand is a one-file change (brief 9.4).
 * System fonts only, no web font, no framework: member data budgets forbid it and the
 * second product principle is that it works on a bad connection or it does not work.
 * High contrast, WCAG 2.1 AA, legible in bright outdoor light (brief 15.2).
 */

:root {
  --wayon-navy: #1F3864;
  --wayon-blue: #2E5FAC;
  --wayon-accent: #E8A33D; /* [DECISION #2] placeholder accent, awaiting brand */
  --wayon-ink: #14213D;
  --wayon-surface: #FFFFFF;
  --wayon-muted: #F4F6FA;
  --wayon-border: #D7DEEA;
  --wayon-success: #1B7F5A;
  --wayon-warning: #B8860B;
  --wayon-critical: #B3261E;
  --wayon-quiet: #5A6480;       /* passes AA on white and on --wayon-muted */
  --wayon-maxw: 1080px;

  /* Fluid type. Body never drops below 16px: anything smaller makes iOS zoom on focus. */
  --step-0: 1rem;
  --step-1: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.45rem, 1.25rem + 1.1vw, 1.9rem);
  --step-4: clamp(1.75rem, 1.35rem + 2.4vw, 2.8rem);

  /* Spacing scale, tightened on small screens by the values themselves. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 16px rgba(20, 33, 61, .06);
  --tap: 48px;   /* minimum comfortable touch target */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  font-size: var(--step-0);
  color: var(--wayon-ink);
  background: var(--wayon-surface);
  line-height: 1.6;
  /* Long unbroken strings (URLs, membership numbers) must not force a sideways scroll. */
  overflow-wrap: break-word;
}

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

a { color: var(--wayon-blue); }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--wayon-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Respect a person's motion preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

h1, h2, h3 { line-height: 1.2; color: var(--wayon-navy); }
h1 { font-size: var(--step-4); margin: 0 0 var(--space-4); }
h2 { font-size: var(--step-3); margin: 0 0 var(--space-3); }
h3 { font-size: var(--step-2); margin: 0 0 var(--space-2); }

/* Measure: long prose is unreadable edge to edge, in any of the three languages. */
.prose, p.lede, .measure { max-width: 62ch; }

.container {
  width: 100%;
  max-width: var(--wayon-maxw);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 700px) {
  .container { padding: 0 var(--space-5); }
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--wayon-navy); color: #fff;
  padding: var(--space-3) var(--space-4); z-index: 100;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

.muted { color: var(--wayon-quiet); }
.helptext { color: var(--wayon-quiet); font-size: .9rem; }

/* ---------------------------------------------------------------- header ---
 * On a phone: brand on one row, then a horizontally scrollable nav strip.
 * No JS, no hamburger. A menu that needs a tap to reveal costs a tap on every
 * visit; a scrollable strip shows where you can go straight away.
 */
.site-header { background: var(--wayon-navy); color: #fff; }
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
  line-height: 1.15;
}
.brand:hover { text-decoration: none; }
.brand strong { font-size: 1.3rem; letter-spacing: .04em; }
.brand span { font-size: .72rem; opacity: .85; max-width: 24ch; }

.lang-switch { display: flex; gap: var(--space-1); }
.lang-switch button {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-3);
  min-height: 40px; min-width: 44px;
  cursor: pointer; font-size: .85rem; font-weight: 700;
}
.lang-switch button[aria-current="true"] {
  background: #fff; color: var(--wayon-navy);
}

/* Member nav: a full-width scrollable strip under the brand on phones. */
.member-nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  /* Bleed to the container edges so the scroll looks intentional, not clipped. */
  margin: 0 calc(var(--space-4) * -1);
  padding: var(--space-1) var(--space-4) var(--space-2);
  scrollbar-width: none;
}
.member-nav::-webkit-scrollbar { display: none; }
.member-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.member-nav a:hover { border-bottom-color: var(--wayon-accent); text-decoration: none; }

@media (min-width: 760px) {
  .brand { flex-direction: row; align-items: baseline; gap: var(--space-2); }
  .brand span { font-size: .8rem; max-width: none; }
  .member-nav {
    order: 0; flex: 0 1 auto; overflow: visible;
    margin: 0; padding: 0; gap: var(--space-5);
  }
}

/* ------------------------------------------------------------------ hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--wayon-navy), var(--wayon-blue));
  color: #fff;
  padding: var(--space-7) 0;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(31, 56, 100, .93), rgba(46, 95, 172, .80));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: var(--step-4); margin-bottom: var(--space-3); }
.hero p.lede { font-size: var(--step-1); opacity: .95; }
.hero .kicker {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .75rem; color: var(--wayon-accent);
  font-weight: 700; margin: 0 0 var(--space-3);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (min-width: 700px) { .hero { padding: 72px 0; } }

/* --------------------------------------------------------------- buttons ---
 * Full width on a phone, because a thumb should not have to aim.
 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-3) var(--space-5);
  background: var(--wayon-accent);
  color: var(--wayon-ink);
  font-weight: 700; font-size: 1rem; text-align: center;
  border: 0; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(.95); text-decoration: none; }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.btn-quiet { background: transparent; color: var(--wayon-navy); border: 2px solid var(--wayon-border); }
.btn-danger { background: var(--wayon-critical); color: #fff; }
@media (min-width: 520px) {
  .btn { width: auto; }
}

/* ----------------------------------------------------------------- stats --- */
.stats { background: var(--wayon-muted); padding: var(--space-6) 0; }
.stats-grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none; padding: 0; margin: 0;
}
.stat, .stat-grid li {
  background: #fff;
  border: 1px solid var(--wayon-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.stat .num, .stat-grid strong {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  font-weight: 800; color: var(--wayon-navy);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat .label, .stat-grid span {
  display: block;
  font-size: .85rem; color: var(--wayon-quiet);
}
@media (min-width: 700px) {
  .stats-grid, .stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); }
  .stat, .stat-grid li { padding: var(--space-5); }
}

/* -------------------------------------------------------------- sections --- */
section.block { padding: var(--space-6) 0; }
@media (min-width: 700px) { section.block { padding: var(--space-7) 0; } }

.partners { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; }
.partners li {
  list-style: none; background: var(--wayon-muted);
  border: 1px solid var(--wayon-border); border-radius: 999px;
  padding: var(--space-1) var(--space-3); font-size: .88rem;
}
.partners ul { display: contents; padding: 0; margin: 0; }

.gallery-grid {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  display: block; width: 100%; height: 140px;
  object-fit: cover; border-radius: var(--radius-sm);
  background: var(--wayon-muted);
}
@media (min-width: 700px) {
  .gallery-grid { gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .gallery-grid img { height: 200px; }
  .gallery-grid .wide { grid-column: span 2; }
}

/* ----------------------------------------------------------------- cards ---
 * Used by the directory, chapters and the public member list.
 */
.member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  list-style: none; padding: 0; margin: var(--space-5) 0 0;
}
.member-card {
  display: flex; flex-direction: column; gap: var(--space-1);
  background: #fff;
  border: 1px solid var(--wayon-border);
  border-left: 4px solid var(--wayon-blue);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  position: relative;
}
.member-card a { text-decoration: none; color: var(--wayon-navy); }
/* The whole card is the target on a phone, not just the words. Scoped to the first
   link so a card that later gains a second one does not stack two hit areas. */
.member-card > a:first-of-type::after { content: ""; position: absolute; inset: 0; }
.member-card a:hover { text-decoration: underline; }
.member-card strong { font-size: var(--step-1); }
.member-card .muted { font-size: .88rem; }
@media (min-width: 620px) {
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

.tag {
  display: inline-block;
  background: var(--wayon-muted);
  border: 1px solid var(--wayon-border);
  border-radius: 999px;
  padding: 2px var(--space-3);
  font-size: .78rem; font-weight: 700;
  color: var(--wayon-navy);
  margin: 0 var(--space-1) var(--space-1) 0;
  /* A tag sits inside a linked card; keep it below the card-wide hit area. */
  position: relative; z-index: 1;
}

.member-photo {
  width: 120px; height: 120px;
  object-fit: cover; border-radius: 50%;
  border: 3px solid var(--wayon-muted);
  margin: var(--space-4) 0;
}

.profile-facts { margin: var(--space-5) 0 0; }
.profile-facts dt {
  font-weight: 700; color: var(--wayon-navy);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
  margin-top: var(--space-4);
}
.profile-facts dd { margin: 2px 0 0; }
@media (min-width: 620px) {
  .profile-facts {
    display: grid; grid-template-columns: minmax(140px, auto) 1fr;
    gap: var(--space-2) var(--space-5); align-items: baseline;
  }
  .profile-facts dt { margin-top: 0; }
  .profile-facts dd { margin: 0; }
}

/* Members-per-country bars on the public page. */
.country-bars { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.country-bars li {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--wayon-border);
}
.country-bars strong { color: var(--wayon-navy); font-variant-numeric: tabular-nums; }

.request-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }

/* Callout panels (console review aids, page notices). */
.panel {
  background: var(--wayon-muted);
  border: 1px solid var(--wayon-border);
  border-left: 4px solid var(--wayon-blue);
  border-radius: var(--radius-sm);
  padding: var(--space-4); margin: var(--space-5) 0;
}
.panel h2 { font-size: var(--step-1); margin-top: 0; }
.panel-warn { background: #fdf4e3; border-color: var(--wayon-warning); border-left-color: var(--wayon-warning); }

/* ------------------------------------------------------------ pagination --- */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-4); margin: var(--space-6) 0 0;
}
.pagination a {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0 var(--space-4);
  border: 1px solid var(--wayon-border); border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
}
.pagination span { color: var(--wayon-quiet); font-size: .9rem; }

/* ----------------------------------------------------------------- forms --- */
.form-card {
  background: #fff;
  border: 1px solid var(--wayon-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  max-width: 640px;
  margin-bottom: var(--space-5);
}
@media (min-width: 620px) { .form-card { padding: var(--space-6); } }

.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 700; margin-bottom: var(--space-2); }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=url], .field input[type=date], .field input[type=number],
.field input[type=file], .field input[type=search], .field input[type=password],
.field select, .field textarea,
.form-card input[type=text], .form-card input[type=email], .form-card input[type=password],
.form-card select, .form-card textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-3);
  /* 16px exactly: anything smaller and iOS zooms the page on focus. */
  font-size: 1rem;
  font-family: inherit;
  color: var(--wayon-ink);
  background: #fff;
  border: 1px solid var(--wayon-border);
  border-radius: var(--radius-sm);
}
.field textarea, .form-card textarea { min-height: 140px; line-height: 1.5; }
.field select { appearance: none; background-image: none; }

.field .choices { display: grid; gap: var(--space-3); }
.field .choices label { font-weight: 400; }
.field .choices-stacked { display: grid; gap: var(--space-3); }
.field .choices-stacked label,
.field .choices label {
  display: flex; gap: var(--space-3); align-items: flex-start;
  line-height: 1.4; min-height: 44px; padding: var(--space-1) 0;
}
.field .choices input[type=checkbox], .field .choices input[type=radio],
.field .choices-stacked input {
  width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto;
}
.field .choices-stacked label.is-disabled { opacity: .5; }
@media (min-width: 620px) {
  .field .choices { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .field .choices-stacked { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

.limit-counter { margin: var(--space-2) 0 0; font-variant-numeric: tabular-nums; }
.checkbox-row { display: flex; gap: var(--space-3); align-items: flex-start; }
.checkbox-row input { margin-top: 4px; width: 22px; height: 22px; flex: 0 0 auto; }
.errorlist {
  color: var(--wayon-critical); list-style: none;
  padding: 0; margin: var(--space-2) 0 0; font-size: .9rem; font-weight: 700;
}

.messages { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.messages li {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); margin-bottom: var(--space-2);
  border: 1px solid var(--wayon-border); background: var(--wayon-muted);
}
.messages li.success { background: #e6f4ee; color: var(--wayon-success); border-color: var(--wayon-success); }
.messages li.error { background: #fdeceb; color: var(--wayon-critical); border-color: var(--wayon-critical); }

/* --------------------------------------------------------------- filters ---
 * A row of selects is fine on a laptop and awful on a phone, where it pushes the
 * results themselves below the fold. Collapsed into a disclosure on small screens,
 * using <details> so it works with JavaScript switched off.
 */
.filters { display: grid; gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); }
.filters input, .filters select {
  width: 100%; min-height: var(--tap);
  padding: var(--space-3); font-size: 1rem; font-family: inherit;
  border: 1px solid var(--wayon-border); border-radius: var(--radius-sm);
  background: #fff;
}
.filters .btn { width: 100%; }
@media (min-width: 700px) {
  .filters { display: flex; flex-wrap: wrap; align-items: center; }
  .filters input, .filters select { width: auto; min-width: 160px; flex: 0 1 auto; }
  .filters input[type=search] { flex: 1 1 260px; }
  .filters .btn { width: auto; }
}

.filter-toggle {
  display: block; cursor: pointer; font-weight: 700; color: var(--wayon-navy);
  padding: var(--space-3) 0; min-height: var(--tap);
  list-style: none;
}
.filter-toggle::-webkit-details-marker { display: none; }
.filter-toggle::after { content: " ▾"; }
details[open] > .filter-toggle::after { content: " ▴"; }
@media (min-width: 700px) {
  /* On a laptop the panel is always open, so the disclosure control is noise. */
  .filter-toggle { display: none; }
}

/* ---------------------------------------------------- application journey --- */
.requirements { max-width: 66ch; padding-left: 1.2em; }
.requirements li { margin-bottom: var(--space-3); }

.steps {
  display: flex; gap: var(--space-2); list-style: none;
  padding: 0; margin: var(--space-5) 0 var(--space-2);
}
.steps li {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wayon-muted); border: 1px solid var(--wayon-border);
  color: var(--wayon-quiet); font-weight: 700;
}
.steps li.current { background: var(--wayon-navy); color: #fff; border-color: var(--wayon-navy); }
.steps li.done { background: var(--wayon-success); color: #fff; border-color: var(--wayon-success); }

.form-actions {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (min-width: 520px) {
  .form-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

dl.review { margin: 0; }
dl.review dt { font-weight: 700; color: var(--wayon-navy); margin-top: var(--space-4); font-size: .9rem; }
dl.review dd { margin: 2px 0 0; }

.guidance {
  background: var(--wayon-muted); border: 1px solid var(--wayon-border);
  border-left: 4px solid var(--wayon-blue); border-radius: var(--radius-sm);
  padding: var(--space-4); margin: 0 0 var(--space-3); font-size: .92rem;
}
.guidance p { margin: 0 0 var(--space-2); }
.guidance p:last-child { margin-bottom: 0; }
.guidance ul { margin: 0 0 var(--space-2); padding-left: 1.2em; }

/* --------------------------------------------------------- knowledge hub --- */
.resource-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.resource-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--wayon-border); }
.resource-list h2 { font-size: var(--step-1); margin: 0 0 var(--space-1); }
.resource-list h2 a { color: var(--wayon-navy); text-decoration: none; }
.resource-list h2 a:hover { text-decoration: underline; }
.citation {
  background: var(--wayon-muted); border: 1px solid var(--wayon-border);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  font-size: .9rem; max-width: 70ch;
  /* A citation is for copying: let it wrap rather than overflow the screen. */
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--wayon-ink); color: #cdd6e6;
  padding: var(--space-6) 0; margin-top: var(--space-7);
  font-size: .92rem;
}
.site-footer a { color: #fff; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
  list-style: none; padding: 0; margin: 0 0 var(--space-4);
}
.footer-nav a {
  display: inline-block; padding: var(--space-1) 0;
  min-height: 32px; text-decoration: none; font-weight: 700;
}
.footer-nav a:hover { text-decoration: underline; }

/* --------------------------------------------------------- staff console ---
 * Not public-facing, but the queue is read on a phone often enough to matter.
 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.queue { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.queue th, table.queue td {
  text-align: left; padding: var(--space-3); vertical-align: top;
  border-bottom: 1px solid var(--wayon-border);
}
table.queue th {
  color: var(--wayon-navy); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
}
table.queue tr:hover td { background: var(--wayon-muted); }

.pill {
  display: inline-block; padding: 2px var(--space-3); border-radius: 999px;
  font-size: .78rem; background: var(--wayon-muted);
  border: 1px solid var(--wayon-border); white-space: nowrap;
}
.pill-approved { background: #e6f4ee; border-color: var(--wayon-success); color: var(--wayon-success); }
.pill-rejected { background: #fdeceb; border-color: var(--wayon-critical); color: var(--wayon-critical); }
.pill-information_requested { background: #fdf4e3; border-color: var(--wayon-warning); color: var(--wayon-warning); }

.review-cols { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 900px) {
  .review-cols { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
}
.review-cols .form-card { max-width: none; }

ul.events { list-style: none; padding: 0; margin: 0; }
ul.events li { padding: var(--space-3) 0; border-bottom: 1px solid var(--wayon-border); }

/* Small utilities the templates rely on. */
.inline-form { display: inline-block; }
.preserve-lines { white-space: pre-wrap; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.messages-wrap { padding-top: var(--space-5); }
.block-muted { background: var(--wayon-muted); }

/* ------------------------------------------------------- late corrections ---
 * Found by rendering the live pages at 360px rather than trusting the markup.
 */

/* The application form groups radios and checkboxes in <fieldset>. The templates
   used to cancel the browser's default border inline; once those inline styles moved
   into CSS, every group on the public join form grew a heavy black box. */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: var(--space-2); color: var(--wayon-navy); }

/* Guarantee the brand shrinks and the language switcher never gets clipped off the
   right edge, rather than relying on how flex happens to distribute the overflow. */
.brand { min-width: 0; flex: 1 1 auto; }
.lang-switch { flex: 0 0 auto; }

/* Navigation spacing without depending on flex `gap`, which older Android WebViews
   (still common on cheap handsets here) do not support: there the links would run
   together into one unreadable string. */
.footer-nav { gap: 0; }
.footer-nav li { margin: 0 var(--space-5) var(--space-3) 0; }
.member-nav { gap: 0; }
.member-nav a { margin-right: var(--space-5); }
.member-nav a:last-child { margin-right: 0; }
