/* Maga-Dating -- site stylesheet. Review pass, 13 Oct 2026.
   Built from the live legacy home's own look (screenshots at 390 wide, computed styles): a bright, patriotic site on
   white, crimson #a82933 for every heading, link and button, grey #5f5f5f body copy in Montserrat, display headlines
   in Barlow Semi Condensed, the brand's own photographs of couples with the American flag, a light grey footer with
   red links, and the logo's navy #243668 kept for small accents and the flag ribbon under each opener.
   Assembled by working/tools/build_css.py from working/css/base.css, the kept library blocks in working/css/lib/
   (masthead-nav, crumb-trail, faq-details, colophon, cta-sticky) and working/css/maga.css. Edit those, not this. */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }

/* ---- tokens ---- */
:root {
  /* Inks and grounds. Ratios measured against white: #a82933 6.9:1, #4a4a4a 9.0:1, #5f5f5f 6.4:1, #243668 11.4:1. */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #f4f4f4;
  --color-text: #4a4a4a;
  --color-text-soft: #5f5f5f;
  --color-heading: #a82933;
  --color-primary: #a82933;
  --color-primary-dark: #87202a;
  --color-navy: #243668;
  --color-navy-deep: #1a2750;
  --color-on-primary: #ffffff;
  --color-on-scrim: #ffffff;
  --color-scrim: #1a2750;
  --color-rule: #dddddd;
  --color-focus: #243668;

  /* Type: the legacy site's own pair. Montserrat for headings and reading, Barlow Semi Condensed for headlines and
     buttons (the legacy H1 and its NEXT button). */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --weight-display: 700;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --container-max: 72rem;

  --btn-radius: 6px;
  --card-radius: 10px;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 14px 32px -16px rgba(0, 0, 0, .30);
  --card-border: 1px solid var(--color-rule);
  --logo-height: 72px;

  --transition-fast: 120ms;
  --transition-slow: 320ms;
  --type-scale: 1;
}

/* ---- base type ---- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-family: var(--font-display); letter-spacing: 0; }
a { color: var(--color-primary); text-underline-offset: 0.16em; }
a:hover { color: var(--color-primary-dark); }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
strong { font-weight: 700; }

/* ---- motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- the button: the legacy join box's red NEXT, in Barlow capitals ---- */
.mgd-btn,
.hero-stated-btn,
.hero-split-btn,
.cta-band-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 var(--space-7);
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 3px 0 #6f1922;
}
.mgd-btn:hover,
.hero-stated-btn:hover,
.hero-split-btn:hover,
.cta-band-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-on-primary);
}
.mgd-btn:focus-visible,
.hero-stated-btn:focus-visible,
.hero-split-btn:focus-visible,
.cta-band-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* === pattern masthead-nav@12 (library v248; appended by page_assemble.py -- adopt a newer version by replacing this block, never by adding a second) === */
/* masthead-nav - tokens only, selectors prefixed. The menu inside
   .masthead-nav-links is styled by structure - ul, li, a - so the list the
   platform generates for {{menu.navigation}} and a list written by hand take
   the same rules. */

/* Each ground names its own inks, and every rule below reads the pair rather
   than a token, so nothing here knows which ground it is on. */
.masthead-nav--plain {
  --masthead-nav-ground: var(--color-bg);
  --masthead-nav-ink: var(--color-text);
  --masthead-nav-edge: var(--color-rule);
  --masthead-nav-cta-face: var(--color-primary);
  --masthead-nav-cta-ink: var(--color-on-primary);
  --masthead-nav-panel-face: var(--color-surface);
  --masthead-nav-panel-ink: var(--color-text);
  --masthead-nav-ring: var(--color-focus);
}
.masthead-nav--soft {
  --masthead-nav-ground: var(--color-surface-soft);
  --masthead-nav-ink: var(--color-text);
  --masthead-nav-edge: var(--color-rule);
  --masthead-nav-cta-face: var(--color-primary);
  --masthead-nav-cta-ink: var(--color-on-primary);
  --masthead-nav-panel-face: var(--color-surface);
  --masthead-nav-panel-ink: var(--color-text);
  --masthead-nav-ring: var(--color-focus);
}
.masthead-nav--brand {
  --masthead-nav-ground: var(--color-primary);
  --masthead-nav-ink: var(--color-on-primary);
  --masthead-nav-edge: color-mix(in srgb, var(--color-on-primary) 35%, transparent);
  --masthead-nav-cta-face: var(--color-on-primary);
  --masthead-nav-cta-ink: var(--color-primary);
  --masthead-nav-panel-face: var(--color-primary);
  --masthead-nav-panel-ink: var(--color-on-primary);
  --masthead-nav-ring: var(--color-on-primary);
}

/* ---- the bar ---- */
/* One number for every tap target here, and for the room the drawer keeps.
   Clipped sideways, never scrolled: a faded submenu is laid out where it
   will open, and one past the edge would otherwise widen the page. */
.masthead-nav {
  --masthead-nav-tap: 2.75rem;
  background: var(--masthead-nav-ground);
  color: var(--masthead-nav-ink);
  border-block-end: 1px solid var(--masthead-nav-edge);
  overflow-x: clip;
}
/* edge: every rung keeps the 1px border and changes only what paints it, so
   the bar is the same height on all three and --page-header-height holds. */
.masthead-nav--rule {
  border-block-end-color: var(--masthead-nav-edge);
}
.masthead-nav--shadow {
  border-block-end-color: transparent;
  box-shadow: var(--card-shadow);
}
.masthead-nav--flush {
  border-block-end-color: transparent;
}
.masthead-nav--static {
  position: static;
}
/* The z-index orders the drawer's scrim, panel and button against each other
   rather than against the page. `sticky` is no containing block for a fixed
   child, so the drawer still pins to the viewport. */
.masthead-nav--pinned,
.masthead-nav--compact {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
}
/* The containing block for the small-screen menu and for the controls when
   they are parked in the corner on --centred. */
.masthead-nav-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
}
.masthead-nav-mark {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  margin-inline-end: auto;
}
/* The set height is the floor: `height: auto` under a `max-height` alone
   resolves a viewBox-only SVG to 0x0. object-fit stops the cap distorting it. */
.masthead-nav-logo {
  display: block;
  width: auto;
  height: var(--logo-height, 2.75rem);
  max-width: 100%;
  object-fit: contain;
}
/* mark: how the brand mark meets the ground behind it. */
.masthead-nav--direct .masthead-nav-mark {
  padding: 0;
}
.masthead-nav--plate .masthead-nav-mark {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--card-radius);
  background: var(--color-bg);
}
.masthead-nav--mono .masthead-nav-logo {
  filter: brightness(0) invert(1);
}

/* ---- the small-screen disclosure ---- */
.masthead-nav-disclosure {
  flex: 0 0 auto;
}
.masthead-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--masthead-nav-tap);
  padding-inline: var(--space-3);
  border: 1px solid var(--masthead-nav-edge);
  border-radius: var(--btn-radius);
  color: var(--masthead-nav-ink);
  font-family: var(--font-heading);
  font-size: calc(0.9375rem * var(--type-scale, 1));
  font-weight: var(--weight-display, 700);
  cursor: pointer;
  /* Both lines are needed to drop the default triangle. */
  list-style: none;
}
.masthead-nav-toggle::-webkit-details-marker {
  display: none;
}
/* Three bars: the element is the middle one, the pseudo-elements the others.
   The fold into a cross is a state change, so reduced motion keeps it. */
.masthead-nav-toggle-icon {
  position: relative;
  flex: 0 0 auto;
  width: var(--masthead-nav-bar-width, 1rem);
  height: var(--masthead-nav-bar, 2px);
  background: currentColor;
}
.masthead-nav-toggle-icon::before,
.masthead-nav-toggle-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: var(--masthead-nav-bar, 2px);
  background: currentColor;
}
.masthead-nav-toggle-icon::before {
  top: calc(-1 * var(--masthead-nav-bar-gap, 5px));
}
.masthead-nav-toggle-icon::after {
  top: var(--masthead-nav-bar-gap, 5px);
}
.masthead-nav-disclosure[open] .masthead-nav-toggle-icon {
  background: transparent;
}
.masthead-nav-disclosure[open] .masthead-nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.masthead-nav-disclosure[open] .masthead-nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}
/* burger: how the bars are drawn. Every rung folds into the same cross. */
.masthead-nav--three {
  --masthead-nav-bar: 2px;
  --masthead-nav-bar-gap: 5px;
}
.masthead-nav--two {
  --masthead-nav-bar-gap: 4px;
}
.masthead-nav--two .masthead-nav-toggle-icon {
  background: transparent;
}
.masthead-nav--bold {
  --masthead-nav-bar: 3px;
  --masthead-nav-bar-gap: 6px;
  --masthead-nav-bar-width: 1.25rem;
}
/* boxed: the element is the shape, a tap target square in the join
   control's own pair, and draws the middle bar as a centred gradient. */
.masthead-nav--boxed .masthead-nav-toggle {
  border: 0;
}
.masthead-nav--boxed.masthead-nav--icon .masthead-nav-toggle {
  padding-inline: 0;
}
.masthead-nav--boxed .masthead-nav-toggle-icon {
  width: var(--masthead-nav-tap);
  height: var(--masthead-nav-tap);
  border-radius: var(--btn-radius);
  color: var(--masthead-nav-cta-ink);
  background: linear-gradient(currentColor, currentColor) center / 1rem 2px no-repeat,
              var(--masthead-nav-cta-face);
}
.masthead-nav--boxed .masthead-nav-toggle-icon::before,
.masthead-nav--boxed .masthead-nav-toggle-icon::after {
  inset-inline: calc(50% - 0.5rem);
}
.masthead-nav--boxed .masthead-nav-toggle-icon::before {
  top: calc(50% - 6px);
}
.masthead-nav--boxed .masthead-nav-toggle-icon::after {
  top: calc(50% + 4px);
}
.masthead-nav--boxed .masthead-nav-disclosure[open] .masthead-nav-toggle-icon {
  background: var(--masthead-nav-cta-face);
}
.masthead-nav--boxed .masthead-nav-disclosure[open] .masthead-nav-toggle-icon::before,
.masthead-nav--boxed .masthead-nav-disclosure[open] .masthead-nav-toggle-icon::after {
  top: calc(50% - 1px);
}
/* toggle=icon: the word leaves the box, never the accessibility tree - never
   display: none. With no word in it the box needs a square floor, and the
   bars stand bare: no frame, the tap area and the focus ring kept. */
.masthead-nav--icon .masthead-nav-toggle {
  justify-content: center;
  min-width: var(--masthead-nav-tap);
  border: 0;
}
.masthead-nav--icon .masthead-nav-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- the menu: whatever list sits inside the nav landmark ---- */
.masthead-nav-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.masthead-nav-links li {
  margin: 0;
}
.masthead-nav-links a,
.masthead-nav-links button {
  display: flex;
  align-items: center;
  min-height: var(--masthead-nav-tap);
  margin: 0;
  padding: var(--space-2) 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-heading);
  font-size: calc(1rem * var(--type-scale, 1));
  font-weight: var(--weight-display, 700);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.masthead-nav-links a[href]:hover,
.masthead-nav-links button:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
/* A parent with children and no URL of its own arrives as an <a> with no
   href. It is a label, not a link, so it must not offer a pointer. */
.masthead-nav-links li:has(> ul) > a:not([href]) {
  cursor: default;
}
.masthead-nav-links ul ul {
  padding-inline-start: var(--space-4);
  border-inline-start: 1px solid var(--masthead-nav-edge);
}
.masthead-nav-links ul ul a,
.masthead-nav-links ul ul button {
  font-size: calc(0.9375rem * var(--type-scale, 1));
  font-weight: 500;
}

/* ---- the tray: the menu and the controls, both inside the disclosure ---- */
/* No `display` here: one would force the tray open on --panel, which opens
   and shuts natively. Each rung turns it on where it wants it laid out. */
.masthead-nav-tray {
  flex-direction: column;
  gap: var(--space-4);
}

/* ---- login and join ---- */
.masthead-nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.masthead-nav-login {
  display: flex;
  align-items: center;
  color: inherit;
  font-family: var(--font-heading);
  font-size: calc(0.9375rem * var(--type-scale, 1));
  font-weight: var(--weight-display, 700);
  text-decoration: none;
  padding-block: var(--space-2);
}
.masthead-nav-login:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.masthead-nav-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: var(--masthead-nav-tap);
  padding-inline: var(--space-5);
  border-radius: var(--btn-radius);
  background: var(--masthead-nav-cta-face);
  color: var(--masthead-nav-cta-ink);
  font-family: var(--font-heading);
  font-size: calc(0.9375rem * var(--type-scale, 1));
  font-weight: var(--weight-display, 700);
  text-decoration: none;
}
.masthead-nav-join:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* The ring is the ground's own, so one rule is right on all three. */
.masthead-nav a:focus-visible,
.masthead-nav button:focus-visible,
.masthead-nav summary:focus-visible {
  outline: 3px solid var(--masthead-nav-ring);
  outline-offset: 2px;
}

/* ---- small screens ---- */
@media (width < 60rem) {
  /* A wide wordmark at --logo-height is most of a phone across. Without this
     cap it takes the whole row and pushes the menu button onto a second one. */
  .masthead-nav-mark {
    max-width: 45%;
    min-width: var(--masthead-nav-tap);
    min-height: var(--masthead-nav-tap);
  }
  /* A wordless button is one tap wide, so the mark may take the rest of the
     row. --row has no button and --minimal a wider join control: both 45%. */
  .masthead-nav--drawer.masthead-nav--icon:not(.masthead-nav--minimal) .masthead-nav-mark,
  .masthead-nav--panel.masthead-nav--icon:not(.masthead-nav--minimal) .masthead-nav-mark {
    max-width: calc(100% - var(--masthead-nav-tap) - var(--space-3));
  }
  /* A long label ellipsises; border-box holds the padding inside the cap. */
  .masthead-nav-toggle {
    box-sizing: border-box;
    max-width: 100%;
  }
  .masthead-nav--labelled .masthead-nav-toggle-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* One button, two words, and only ever one of them in the box. */
  .masthead-nav-toggle-text--close {
    display: none;
  }
  .masthead-nav-disclosure[open] .masthead-nav-toggle-text {
    display: none;
  }
  .masthead-nav-disclosure[open] .masthead-nav-toggle-text--close {
    display: inline;
  }
  /* The controls lead the sheet, and follow the menu in the markup so the
     bar is read in the order it is drawn. --row has no sheet and is left. */
  .masthead-nav--drawer .masthead-nav-controls,
  .masthead-nav--panel .masthead-nav-controls {
    order: -1;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  /* A row in a menu here, not a word in the bar: it takes a menu target. */
  .masthead-nav-login {
    min-height: var(--masthead-nav-tap);
  }
  /* menu-side moves the button, and the drawer it opens, to the same edge.
     Scoped to the rungs that HAVE a button: on --row the disclosure is the
     whole menu, so ordering it puts the navigation above the brand. */
  .masthead-nav--drawer.masthead-nav--side-end .masthead-nav-disclosure,
  .masthead-nav--panel.masthead-nav--side-end .masthead-nav-disclosure {
    order: 0;
  }
  .masthead-nav--drawer.masthead-nav--side-start .masthead-nav-disclosure,
  .masthead-nav--panel.masthead-nav--side-start .masthead-nav-disclosure {
    order: -1;
  }
  /* No start margin: 45% and 55% add up exactly, so anything added breaks
     the line and drops the mark to a second row. */
  .masthead-nav--side-start .masthead-nav-mark {
    margin-inline-end: auto;
  }
  /* A join control stretched over a tablet is a bar, not a button. */
  /* Definite, not max-width: an auto margin here cancels the stretch. */
  .masthead-nav--panel .masthead-nav-controls {
    width: min(20rem, 100%);
  }
  .masthead-nav--panel.masthead-nav--menu-end .masthead-nav-controls {
    align-self: flex-end;
  }
}

/* menu=drawer: a panel fixed to the inline-end edge, over a dimmed page. */
@media (width < 60rem) {
  /* The drawer is fixed to the viewport and the button that shuts it is not,
     so a scroll parts them and leaves an open menu with no way out. Pinned on
     both sticky rungs: this is not the sticky axis and does not fold into it. */
  .masthead-nav--drawer:has(.masthead-nav-disclosure[open]) {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
  }
  /* 45% for the mark and the rest for the button, gap included, so the two
     share one row: flexbox breaks lines before it shrinks anything. */
  .masthead-nav--drawer .masthead-nav-disclosure,
  .masthead-nav--panel .masthead-nav-disclosure {
    max-width: calc(55% - var(--space-3));
  }
  /* Laid out open or shut, so it has somewhere to slide FROM. Engines hide a
     closed <details> two ways, one unreachable from the child, so both are
     needed. `visibility` keeps it out of the tab order - never use opacity. */
  .masthead-nav--drawer .masthead-nav-tray {
    display: flex;
  }
  .masthead-nav--drawer .masthead-nav-disclosure::details-content {
    content-visibility: visible;
    block-size: auto;
  }
  .masthead-nav--drawer .masthead-nav-tray {
    position: fixed;
    inset-block: 0;
    z-index: 41;
    width: min(20rem, 82vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Block-start padding is the header's first row, computed - the button
       sits on the drawer, so anything less puts it over the first item. */
    padding: calc(var(--space-3)
                  + max(var(--masthead-nav-tap), var(--logo-height, 2.75rem))
                  + var(--space-4))
             var(--space-4) var(--space-6);
    background: var(--masthead-nav-panel-face);
    color: var(--masthead-nav-panel-ink);
    box-shadow: var(--card-shadow);
    visibility: hidden;
  }
  /* `translate` is the one place a logical property cannot carry the meaning,
     so each side states its own, and its own :dir(rtl). */
  .masthead-nav--drawer.masthead-nav--side-end .masthead-nav-tray {
    inset-inline-end: 0;
    border-inline-start: 1px solid var(--masthead-nav-edge);
    translate: 100% 0;
  }
  .masthead-nav--drawer.masthead-nav--side-end .masthead-nav-tray:dir(rtl) {
    translate: -100% 0;
  }
  .masthead-nav--drawer.masthead-nav--side-start .masthead-nav-tray {
    inset-inline-start: 0;
    border-inline-end: 1px solid var(--masthead-nav-edge);
    translate: -100% 0;
  }
  .masthead-nav--drawer.masthead-nav--side-start .masthead-nav-tray:dir(rtl) {
    translate: 100% 0;
  }
  .masthead-nav--drawer .masthead-nav-disclosure[open] .masthead-nav-tray {
    visibility: visible;
    translate: none;
  }
  /* The backdrop belongs to the disclosure: in the panel it would be inside
     the box it has to sit behind. */
  .masthead-nav--drawer .masthead-nav-disclosure::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--color-scrim) 62%, transparent);
    visibility: hidden;
    opacity: 0;
  }
  .masthead-nav--drawer .masthead-nav-disclosure[open]::before {
    visibility: visible;
    opacity: 1;
  }
  /* The button stays where it was pressed, above both the backdrop and the
     panel. The panel's block-start padding keeps the first item out of it. */
  .masthead-nav--drawer .masthead-nav-disclosure[open] .masthead-nav-toggle {
    position: relative;
    z-index: 42;
  }
}

/* menu=panel: the menu drops out of the button, over what is below. */
@media (width < 60rem) {
  /* A shut <details> contains its own layout, so this sheet is laid out
     against the button until it opens - `visibility` keeps that box out. */
  .masthead-nav--panel .masthead-nav-tray {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 20;
    max-height: 70svh;
    overflow-y: auto;
    padding: var(--space-4);
    background: var(--masthead-nav-ground);
    border-block-end: 1px solid var(--masthead-nav-edge);
    box-shadow: var(--card-shadow);
    visibility: hidden;
  }
  /* Scoped to [open], unlike the drawer's: this sheet does not slide, and a
     `display` that applied while shut would hold it open. */
  .masthead-nav--panel .masthead-nav-disclosure[open] .masthead-nav-tray {
    display: flex;
    visibility: visible;
  }
}

/* ---- menu=row: no button, the menu is a scrolling row beside the mark ---- */
@media (width < 60rem) {
  .masthead-nav--row .masthead-nav-toggle {
    display: none;
  }
  /* Both declarations open the panel: engines hide a closed <details> in two
     different ways, and one of them cannot be reached from the child. */
  .masthead-nav--row .masthead-nav-tray {
    display: flex;
  }
  .masthead-nav--row .masthead-nav-disclosure::details-content {
    content-visibility: visible;
    block-size: auto;
  }
  .masthead-nav--row .masthead-nav-mark {
    margin-inline-end: 0;
  }
  .masthead-nav--row .masthead-nav-disclosure {
    flex: 1 1 auto;
    min-width: 0;
  }
  .masthead-nav--row .masthead-nav-tray {
    gap: var(--space-2);
  }
  .masthead-nav--row .masthead-nav-links {
    min-width: 0;
  }
  .masthead-nav--row .masthead-nav-join {
    flex: 0 1 auto;
  }
  .masthead-nav--row .masthead-nav-links > ul {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-4);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .masthead-nav--row .masthead-nav-links > ul::-webkit-scrollbar {
    display: none;
  }
  .masthead-nav--row .masthead-nav-links > ul > li {
    flex: 0 0 auto;
  }
  /* One row, so a submenu cannot nest under its parent; its children run on
     beside it instead. */
  .masthead-nav--row .masthead-nav-links li:has(> ul) {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .masthead-nav--row .masthead-nav-links ul ul {
    flex-direction: row;
    gap: var(--space-4);
    padding-inline-start: var(--space-4);
  }
}

/* ---- wide screens: the menu is always open and sits in the bar ---- */
@media (min-width: 60rem) {
  .masthead-nav-toggle {
    display: none;
  }
  /* Both declarations open the panel: engines hide a closed <details> in two
     different ways, and one of them cannot be reached from the child. */
  .masthead-nav-tray {
    display: flex;
  }
  .masthead-nav-disclosure::details-content {
    content-visibility: visible;
    block-size: auto;
  }
  .masthead-nav-tray {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }
  .masthead-nav-links {
    flex: 1 1 auto;
    min-width: 0;
  }
  .masthead-nav-inner {
    flex-wrap: nowrap;
    gap: var(--space-6);
    padding-block: var(--space-4);
  }
  /* The mark must not shrink here: the logo is sized from its height at this
     width, so a shrinking box would let the image spill over the first menu
     item instead of taking room from it. */
  .masthead-nav-mark {
    flex: 0 0 auto;
  }
  .masthead-nav-logo {
    max-width: none;
  }
  .masthead-nav-disclosure {
    flex: 1 1 auto;
    min-width: 0;
  }
  .masthead-nav-controls {
    flex: 0 0 auto;
  }
  .masthead-nav-join {
    flex: 0 0 auto;
  }
  .masthead-nav-links > ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-5);
  }
  .masthead-nav-links > ul > li {
    position: relative;
  }
  .masthead-nav-links > ul > li > a,
  .masthead-nav-links > ul > li > button {
    white-space: nowrap;
  }
  /* The tap floor holds here too: 1024 is a tablet held sideways. Padding
     inside it, so a one-row bar keeps the join control's height. */
  .masthead-nav-mark,
  .masthead-nav-login,
  .masthead-nav-links > ul > li > a,
  .masthead-nav-links > ul > li > button {
    box-sizing: border-box;
    min-width: var(--masthead-nav-tap);
    min-height: var(--masthead-nav-tap);
  }
  /* Faded rather than removed: a submenu taken out of the layout cannot be
     focused, so a keyboard could never open it. */
  .masthead-nav-links ul ul {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 30;
    min-width: 12rem;
    padding: var(--space-2);
    border: var(--card-border);
    border-inline-start: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--masthead-nav-panel-face);
    color: var(--masthead-nav-panel-ink);
    box-shadow: var(--card-shadow);
    opacity: 0;
    pointer-events: none;
  }
  .masthead-nav-links > ul > li:hover > ul,
  .masthead-nav-links > ul > li:focus-within > ul {
    opacity: 1;
    pointer-events: auto;
  }
  /* The last two items sit nearest the edge, so their panels hang from
     their end edge instead. */
  .masthead-nav-links > ul > li:nth-last-child(-n + 2) > ul {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }
  .masthead-nav-links ul ul a,
  .masthead-nav-links ul ul button {
    min-height: var(--masthead-nav-tap);
    padding-inline: var(--space-2);
  }
  /* A third level sits inside its parent's panel rather than beside it. */
  .masthead-nav-links ul ul ul {
    position: static;
    min-width: 0;
    padding: 0 0 0 var(--space-3);
    border: 0;
    border-inline-start: 1px solid var(--masthead-nav-edge);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
  }
  /* A chevron marks the items that carry children. */
  .masthead-nav-links > ul > li:has(> ul) > a::after,
  .masthead-nav-links > ul > li:has(> ul) > button::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-inline-start: var(--space-2);
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
  }

  /* overflow: what happens to items that do not fit the row. */
  .masthead-nav--wrap .masthead-nav-links > ul {
    flex-wrap: wrap;
  }
  /* --more folds the items past the room into a last item the behaviour
     library builds. Without the library this rung is --wrap, so the property
     below is the whole switch. */
  .masthead-nav--more .masthead-nav-links > ul {
    --hub-overflow: more;
  }
  .masthead-nav--scroll .masthead-nav-links > ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--space-2) var(--space-3);
    mask-image: linear-gradient(to right, transparent, currentColor var(--space-3),
                                currentColor calc(100% - var(--space-3)), transparent);
  }
  .masthead-nav--scroll .masthead-nav-links > ul::-webkit-scrollbar {
    display: none;
  }
  .masthead-nav--scroll .masthead-nav-links > ul > li {
    flex: 0 0 auto;
  }
  /* A scrolling row clips anything that pops out of it, so its submenus run
     on beside their parent instead. */
  .masthead-nav--scroll .masthead-nav-links > ul > li:has(> ul) {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .masthead-nav--scroll .masthead-nav-links ul ul {
    position: static;
    flex-direction: row;
    min-width: 0;
    padding: 0 0 0 var(--space-3);
    border: 0;
    border-inline-start: 1px solid var(--masthead-nav-edge);
    border-radius: 0;
    background: none;
    color: inherit;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
  }
  .masthead-nav--scroll .masthead-nav-links > ul > li:has(> ul) > a::after,
  .masthead-nav--scroll .masthead-nav-links > ul > li:has(> ul) > button::after {
    content: none;
  }

  /* submenu: --dropdown is the panel under its own item, above. --mega is one
     panel the width of the bar, its items in columns. */
  .masthead-nav--dropdown .masthead-nav-links > ul > li {
    position: relative;
  }
  .masthead-nav--mega .masthead-nav-links > ul > li {
    position: static;
  }
  .masthead-nav--mega .masthead-nav-links > ul > li > ul {
    display: block;
    inset-inline: 0;
    min-width: 0;
    padding: var(--space-5) var(--space-6);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    columns: 12rem;
    column-gap: var(--space-6);
  }
  .masthead-nav--mega .masthead-nav-links > ul > li > ul > li {
    break-inside: avoid;
  }
  .masthead-nav--mega .masthead-nav-links > ul > li > ul a,
  .masthead-nav--mega .masthead-nav-links > ul > li > ul button {
    padding-inline: 0;
  }

  /* layout=inline - mark, menu, controls, one row. */
  .masthead-nav--inline .masthead-nav-inner {
    justify-content: space-between;
  }
  .masthead-nav--inline .masthead-nav-links > ul {
    justify-content: flex-start;
  }

  /* layout=centred - mark on its own line, menu centred under it, controls
     parked in the corner so the mark stays optically centred. */
  .masthead-nav--centred .masthead-nav-inner {
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-block: var(--space-5);
  }
  .masthead-nav--centred .masthead-nav-mark {
    margin-inline: auto;
  }
  .masthead-nav--centred .masthead-nav-disclosure {
    flex: 1 0 100%;
  }
  /* Centred by auto margins on the end items, not justify-content: a row
     wider than its box centres by pushing its first items off the left edge,
     where no scroll can reach them. */
  .masthead-nav--centred .masthead-nav-links > ul > li:first-child {
    margin-inline-start: auto;
  }
  .masthead-nav--centred .masthead-nav-links > ul > li:last-child {
    margin-inline-end: auto;
  }
  .masthead-nav--centred .masthead-nav-controls {
    position: absolute;
    inset-block-start: var(--space-5);
    inset-inline-end: var(--space-4);
  }

  /* Last in the block on purpose: it has to outrank --centred's taller
     padding, and the two selectors weigh the same. */
  .masthead-nav--pinned .masthead-nav-inner,
  .masthead-nav--compact .masthead-nav-inner {
    padding-block: var(--space-3);
  }
  .masthead-nav--pinned.masthead-nav--centred .masthead-nav-controls,
  .masthead-nav--compact.masthead-nav--centred .masthead-nav-controls {
    inset-block-start: var(--space-3);
  }
}

/* sticky=compact: once the page has scrolled, the bar tightens and the mark
   comes down a fifth. The behaviour library sets the attribute. */
.masthead-nav--compact[data-hub-shrink="scrolled"] .masthead-nav-inner {
  padding-block: var(--space-2);
}
.masthead-nav--compact[data-hub-shrink="scrolled"] .masthead-nav-logo {
  height: calc(var(--logo-height, 2.75rem) * 0.8);
}

/* ---- nav=minimal: no menu, the mark and the controls at every width ---- */
.masthead-nav--full .masthead-nav-links {
  display: block;
}
.masthead-nav--minimal .masthead-nav-links {
  display: none;
}
.masthead-nav--minimal .masthead-nav-tray {
  justify-content: flex-end;
}
/* These outweigh the menu rungs' rules, which name two classes and the
   tray: this rung has no sheet to slide, drop or scroll. */
@media (width < 60rem) {
  .masthead-nav--minimal .masthead-nav-toggle {
    display: none;
  }
  /* The join control does not shorten as a menu button's word does, so the
     row never breaks here: the mark gives way instead. */
  .masthead-nav--minimal .masthead-nav-inner {
    flex-wrap: nowrap;
  }
  .masthead-nav--minimal .masthead-nav-inner .masthead-nav-disclosure {
    order: 0;
    flex: 0 0 auto;
    max-width: none;
  }
  .masthead-nav--minimal .masthead-nav-inner .masthead-nav-disclosure::details-content {
    content-visibility: visible;
    block-size: auto;
  }
  .masthead-nav--minimal .masthead-nav-inner .masthead-nav-disclosure::before {
    content: none;
  }
  .masthead-nav--minimal .masthead-nav-disclosure .masthead-nav-tray {
    display: flex;
    position: static;
    width: auto;
    max-height: none;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    visibility: visible;
    translate: none;
  }
  .masthead-nav--minimal .masthead-nav-controls {
    order: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
  }
  /* The join control is the point of a page with no menu; the login link
     returns above 60rem. */
  .masthead-nav--minimal .masthead-nav-login {
    display: none;
  }
}

/* ---- menu-align: which edge the small-screen menu is set against ----
   Below 60rem only: above it `layout` already decides where the menu sits. */
@media (width < 60rem) {
  .masthead-nav--menu-start .masthead-nav-tray {
    text-align: start;
  }
  .masthead-nav--menu-start .masthead-nav-links a,
  .masthead-nav--menu-start .masthead-nav-links button,
  .masthead-nav--menu-start .masthead-nav-login {
    justify-content: flex-start;
  }
  .masthead-nav--menu-centre .masthead-nav-tray {
    text-align: center;
  }
  .masthead-nav--menu-centre .masthead-nav-links a,
  .masthead-nav--menu-centre .masthead-nav-links button,
  .masthead-nav--menu-centre .masthead-nav-login {
    justify-content: center;
  }
  .masthead-nav--menu-centre .masthead-nav-links ul ul {
    align-items: center;
    padding-inline: 0;
    border-inline: none;
  }
  .masthead-nav--menu-end .masthead-nav-tray {
    text-align: end;
  }
  .masthead-nav--menu-end .masthead-nav-links a,
  .masthead-nav--menu-end .masthead-nav-links button,
  .masthead-nav--menu-end .masthead-nav-login {
    justify-content: flex-end;
  }
  /* The rule moves with the items, or it is left down the empty side. */
  .masthead-nav--menu-end .masthead-nav-links ul ul {
    align-items: flex-end;
    padding-inline: 0 var(--space-4);
    border-inline: none;
    border-inline-end: 1px solid var(--masthead-nav-edge);
  }
}

/* No easing keyword follows --transition-fast below: brands ship that token
   with an easing in it, and a second keyword makes the declaration invalid. */
@media (prefers-reduced-motion: no-preference) {
  .masthead-nav-toggle-icon,
  .masthead-nav-toggle-icon::before,
  .masthead-nav-toggle-icon::after {
    transition: transform var(--transition-fast),
                background var(--transition-fast),
                top var(--transition-fast);
  }
  .masthead-nav-links ul ul {
    transition: opacity var(--transition-fast);
  }
  /* `visibility` is in the list so the panel stays on screen while it leaves. */
  .masthead-nav--drawer .masthead-nav-tray {
    transition: translate var(--transition-fast),
                visibility var(--transition-fast);
  }
  .masthead-nav--drawer .masthead-nav-disclosure::before {
    transition: opacity var(--transition-fast),
                visibility var(--transition-fast);
  }
  .masthead-nav--compact .masthead-nav-inner {
    transition: padding var(--transition-fast);
  }
  .masthead-nav--compact .masthead-nav-logo {
    transition: height var(--transition-fast);
  }
}
/* Belt and braces if a brand reintroduces a transition on these. */
@media (prefers-reduced-motion: reduce) {
  .masthead-nav-toggle-icon,
  .masthead-nav-toggle-icon::before,
  .masthead-nav-toggle-icon::after {
    transition: none;
  }
  .masthead-nav-links ul ul {
    transition: none;
  }
  .masthead-nav--drawer .masthead-nav-tray,
  .masthead-nav--drawer .masthead-nav-disclosure::before,
  .masthead-nav--compact .masthead-nav-inner,
  .masthead-nav--compact .masthead-nav-logo {
    transition: none;
  }
}
/* === /pattern masthead-nav@12 === */

/* === pattern crumb-trail (library v248; appended 5 Oct 2026 rebuild -- adopt a newer version by replacing this block) === */
/* crumb-trail v1 - tokens only, selectors prefixed */
.crumb-trail {
  box-sizing: border-box;
  margin-inline: auto;
  padding-block: var(--space-3) var(--space-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}
.crumb-trail--page {
  width: min(100% - 2 * var(--space-4), var(--container-max));
}
/* 52rem is the article column, held by the article masthead, the contents
   list and the author block. Any other number puts a second left edge on
   the page. */
.crumb-trail--column {
  width: min(100% - 2 * var(--space-4), 52rem);
}
.crumb-trail-link {
  color: var(--color-text-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.crumb-trail-link:hover {
  color: var(--color-text);
}
.crumb-trail-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.crumb-trail-separator {
  color: var(--color-text-soft);
}
.crumb-trail-current {
  color: var(--color-text);
  font-weight: 600;
}
/* === /pattern crumb-trail === */

/* === pattern faq-details@6 (library v248; appended by page_assemble.py -- adopt a newer version by replacing this block, never by adding a second) === */
/* faq-details v3 - tokens only, selectors prefixed.
   No script anywhere: <details>/<summary> gives keyboard operation, the
   expanded/collapsed announcement and find-in-page for free. */
.faq-details {
  padding-block: var(--space-8);
}
/* Keep the measure: answers read badly at full width. */
.faq-details-inner {
  width: min(100% - 2 * var(--space-4), 48rem);
  margin-inline: auto;
}
.faq-details-title {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: calc(clamp(1.75rem, 1rem + 2vw, 2.25rem) * var(--type-scale, 1));
  margin: 0 0 var(--space-6);
}
/* A rule under every item, plus one above the first. */
.faq-details-item {
  border-block-end: 1px solid var(--color-rule);
}
.faq-details-item:first-of-type {
  border-block-start: 1px solid var(--color-rule);
}
.faq-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  cursor: pointer;
  font-family: var(--font-heading);
  /* --color-text: this is not large text. */
  color: var(--color-text);
  /* Both lines are needed to drop the default triangle. */
  list-style: none;
}
.faq-details-summary::-webkit-details-marker {
  display: none;
}
/* Required: removing the marker above removes the focus affordance some
   browsers hang off it. */
.faq-details-summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}
.faq-details-question {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}
/* The indicator is a shape, not a glyph and never colour alone. */
.faq-details-icon {
  position: relative;
  flex: 0 0 auto;
  width: var(--space-5);
  height: var(--space-5);
}
.faq-details-icon::before,
.faq-details-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 2px;
  margin-block-start: -1px;
  background: var(--color-text-soft);
}
.faq-details-icon::after {
  transform: rotate(90deg);
}
/* A state change, not an animation: it applies under reduced motion too. */
.faq-details-item[open] .faq-details-icon {
  transform: rotate(45deg);
}
.faq-details-answer {
  padding-block-end: var(--space-4);
  padding-inline-end: var(--space-6);
  color: var(--color-text-soft);
}
.faq-details-answer p {
  margin: 0 0 var(--space-3);
  line-height: 1.65;
}
.faq-details-answer p:last-child {
  margin-block-end: 0;
}
/* Motion is opt-in and only ever eases a state the page already reached. */
@media (prefers-reduced-motion: no-preference) {
  .faq-details-icon {
    transition: transform var(--transition-fast) ease-out;
  }
  .faq-details-item[open] .faq-details-answer {
    animation: faq-details-open var(--transition-fast) ease-out;
  }
}
@keyframes faq-details-open {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Belt and braces if a brand reintroduces a transition on these. */
@media (prefers-reduced-motion: reduce) {
  .faq-details-icon {
    transition: none;
  }
  .faq-details-answer {
    animation: none;
  }
}
/* === /pattern faq-details@6 === */

/* === pattern colophon@2 (library v248; appended by page_assemble.py -- adopt a newer version by replacing this block, never by adding a second) === */
/* colophon v2 - tokens only, selectors prefixed */
.colophon {
  border-top: 1px solid var(--color-rule);
  padding-block: var(--space-8) var(--space-6);
  font-size: 0.875rem;
  color: var(--color-text-soft);
}
.colophon--plain {
  background: var(--color-bg);
}
.colophon--soft {
  background: var(--color-surface);
}
.colophon-inner {
  width: 92%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  gap: var(--space-4);
}
/* layout: --line is the centred stack at every width; --columns spreads the
   three groups across the row from 60rem up and is the same stack below. */
.colophon--line .colophon-inner,
.colophon--columns .colophon-inner {
  justify-items: center;
  text-align: center;
}
/* mark: the brand mark above everything else, or nothing at all. */
.colophon--none .colophon-mark {
  display: none;
}
.colophon--logo .colophon-mark {
  display: inline-flex;
  margin-block-end: var(--space-2);
}
/* The set height is the floor: `height: auto` under a `max-height` alone
   resolves a viewBox-only SVG to 0x0. A tenth over the header's height, so
   the footer mark reads as a signature and not a repeat of the bar. */
.colophon-logo {
  display: block;
  width: auto;
  height: calc(var(--logo-height, 2.75rem) * 1.1);
  max-width: 100%;
  object-fit: contain;
}
/* The platform decides the menu's own markup, so its rules reach it by
   descent rather than by a generated class name. */
.colophon-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
}
.colophon-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
}
.colophon-menu a,
.colophon-legal a {
  color: var(--color-text-soft);
  text-decoration: none;
}
.colophon-menu a:hover,
.colophon-legal a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.colophon a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.colophon-copyright {
  margin: 0;
}
@media (min-width: 60rem) {
  .colophon--columns .colophon-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: start;
    align-items: start;
    text-align: start;
    gap: var(--space-6) var(--space-8);
  }
  /* A brand with no managed footer menu deletes the nav: two columns then,
     not two columns and a hole. */
  .colophon--columns .colophon-inner:not(:has(.colophon-menu)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .colophon--columns .colophon-mark {
    grid-column: 1 / -1;
  }
  .colophon--columns .colophon-menu ul,
  .colophon--columns .colophon-legal {
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-2);
  }
  .colophon--columns .colophon-copyright {
    justify-self: end;
    text-align: end;
  }
}
/* === /pattern colophon@2 === */

/* === pattern cta-sticky@7 (library v248; appended by page_assemble.py -- adopt a newer version by replacing this block, never by adding a second) === */
/* cta-sticky v6 - tokens only, selectors prefixed. */
@media (width < 60rem) {
  .cta-sticky {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    box-sizing: border-box;
    padding: var(--space-2) var(--space-4);
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface);
    /* Two separations: --color-rule may be set to nothing. */
    border-top: 1px solid var(--color-rule);
    box-shadow: 0 -1px 0 color-mix(in srgb, var(--color-text) 14%, transparent),
                0 -8px 24px color-mix(in srgb, var(--color-text) 10%, transparent);
  }
  .cta-sticky-btn {
    display: block;
    box-sizing: border-box;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: 700;
    text-decoration: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--btn-radius);
    /* The bar's height and the body clearance below must stay in step. */
    /* Fallback required: declared inside body:has(). */
    min-height: var(--cta-sticky-target, 48px);
    line-height: 1.5;
  }
  .cta-sticky-btn:hover {
    background: var(--color-primary-dark);
  }
  /* Focus needs its own indicator, not the hover fill. */
  .cta-sticky-btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
  }
  /* Clearance, derived from the same tokens as the bar. */
  body:has(.cta-sticky) {
    /* On body so both this rule and the bar read it. */
    --cta-sticky-target: 48px;
    padding-bottom: calc(
      max(var(--cta-sticky-target), 1.5em + 2 * var(--space-3))
      + 2 * var(--space-2) + 1px + env(safe-area-inset-bottom, 0px)
    );
  }
}
@media (width >= 60rem) {
  .cta-sticky {
    display: none;
  }
}
/* === /pattern cta-sticky@7 === */

/* === Maga-Dating layer (review pass, 13 Oct 2026; keep at the end of the file) === */

/* ---- header: white bar, the logo, a red three-bar menu button like the legacy site's ---- */
.masthead-nav--ink {
  --masthead-nav-ground: #ffffff;
  --masthead-nav-ink: var(--color-primary);
  --masthead-nav-edge: var(--color-rule);
  --masthead-nav-cta-face: var(--color-primary);
  --masthead-nav-cta-ink: #ffffff;
  --masthead-nav-panel-face: #ffffff;
  --masthead-nav-panel-ink: var(--color-text);
  --masthead-nav-ring: var(--color-focus);
  --masthead-nav-bar: 3px;
  --masthead-nav-bar-gap: 8px;
  --masthead-nav-bar-width: 1.75rem;
}
.masthead-nav--ink .masthead-nav-toggle { color: var(--color-primary); }
.masthead-nav-links a { font-family: var(--font-heading); font-weight: 600; }
.masthead-nav-join, .masthead-nav-login { font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 47.99em) {
  .masthead-nav-logo { height: 40px; width: auto; }
}

/* ---- the flag ribbon: the logo's swoosh, a navy canton of stars over red and white stripes ---- */
.hero-stated,
.hero-split,
.mgd-ribboned {
  position: relative;
}
.hero-stated::after,
.hero-split::after,
.mgd-ribboned::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 9px;
  background: repeating-linear-gradient(to bottom, var(--color-primary) 0 3px, #ffffff 3px 6px);
}
.hero-stated::before,
.hero-split::before,
.mgd-ribboned::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: min(30%, 18rem);
  height: 9px;
  background:
    radial-gradient(circle, #ffffff 0 .9px, transparent 1.3px) 0 0 / 7px 4.5px,
    var(--color-navy);
}

/* ---- home: the legacy hero, a full-width flag photograph with a white chat-bubble join card ---- */
.mgd-hero { background: var(--color-bg); }
.mgd-hero-photo img {
  width: 100%;
  height: clamp(9rem, 32svh, 15rem);
  object-fit: cover;
  object-position: 62% 0%;
}
.mgd-hero-inner {
  position: relative;
  margin-top: -2.75rem;
  padding: 0 var(--space-4) var(--space-6);
}
.mgd-hero-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.mgd-hero-hello {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
}
.mgd-hero-avatar {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-primary);
}
.mgd-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
  line-height: 1.02;
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
}
.mgd-hero-btn { width: 100%; }
.mgd-hero-sub { margin: var(--space-4) 0 0; font-size: 1.05rem; color: var(--color-text); }
.mgd-hero-trust { margin: var(--space-2) 0 0; font-size: .85rem; font-weight: 600; color: var(--color-text-soft); }
@media (min-width: 48em) {
  .mgd-hero { position: relative; min-height: 36rem; display: grid; align-items: center; overflow: hidden; }
  .mgd-hero-photo { position: absolute; inset: 0; }
  .mgd-hero-photo img { height: 100%; aspect-ratio: auto; object-position: 60% 5%; }
  .mgd-hero-inner { margin: 0 auto; width: 100%; max-width: var(--container-max); padding: var(--space-9) var(--space-6); }
  .mgd-hero-card { max-width: 30rem; padding: var(--space-6); }
  .mgd-hero-btn { width: auto; }
}

/* ---- centred section titles, as on the legacy home ---- */
.mgd-centre-title {
  text-align: center;
  font-size: calc(clamp(1.75rem, 1.25rem + 2vw, 2.4rem) * var(--type-scale, 1));
  padding-inline: var(--space-4);
}
.mgd-centre-lede {
  text-align: center;
  max-width: 40rem;
  margin: var(--space-3) auto 0;
  padding-inline: var(--space-4);
  color: var(--color-text-soft);
}

/* ---- home: how it works, photo step cards that swipe sideways on a phone like the legacy carousel ---- */
.mgd-steps { padding: var(--space-9) 0 var(--space-8); background: var(--color-surface-soft); }
.mgd-steps-inner { max-width: var(--container-max); margin: 0 auto; }
.mgd-steps-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-4);
  padding: var(--space-6) var(--space-4) var(--space-4);
  overscroll-behavior-x: contain;
}
.mgd-step {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.mgd-step-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.mgd-step-body { padding: var(--space-5) var(--space-4) var(--space-6); text-align: center; }
.mgd-step-label {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.mgd-step-title { color: var(--color-text-soft); font-weight: 500; font-size: 1.2rem; margin: var(--space-2) 0; }
.mgd-step-text { color: var(--color-text-soft); font-size: .95rem; line-height: 1.55; }
@media (min-width: 60em) {
  .mgd-steps-list { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding-inline: var(--space-6); }
}

/* ---- home: the flag couple beside the welcome ---- */
.mgd-story { padding: var(--space-9) var(--space-4); }
.mgd-story-inner { max-width: 64rem; margin: 0 auto; display: grid; gap: var(--space-6); align-items: center; }
.mgd-story-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--card-radius); }
@media (min-width: 48em) {
  .mgd-story-inner { grid-template-columns: 5fr 7fr; gap: var(--space-8); }
  .mgd-story-photo { aspect-ratio: 810 / 900; }
}

/* ---- home: the tools, red line icons as on the legacy site ---- */
.mgd-tools { padding: var(--space-9) var(--space-4); }
.mgd-tools-inner { max-width: 64rem; margin: 0 auto; text-align: center; }
.mgd-tools-list { display: grid; gap: var(--space-6); margin: var(--space-7) auto var(--space-6); text-align: start; max-width: 56rem; }
.mgd-tool { display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--space-4); align-items: start; }
.mgd-tool-icon {
  width: 3.25rem;
  height: 3.25rem;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mgd-tool-title { font-size: 1.1rem; margin: var(--space-1) 0 var(--space-1); }
.mgd-tool-text { color: var(--color-text-soft); font-size: .95rem; line-height: 1.55; }
.mgd-tools-more { color: var(--color-text-soft); margin: var(--space-6) auto var(--space-5); max-width: 36rem; }
@media (min-width: 48em) { .mgd-tools-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); } }
@media (min-width: 64em) { .mgd-tools-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- home: states, as red-bordered buttons ---- */
.mgd-places { padding: var(--space-8) var(--space-4) var(--space-9); }
.mgd-places-inner { max-width: 48rem; margin: 0 auto; }
.mgd-places-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-6); }
.mgd-places-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--color-primary);
  border-radius: var(--btn-radius);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.mgd-places-list a:hover { background: var(--color-primary); color: #ffffff; }
@media (min-width: 48em) { .mgd-places-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- reading sections ---- */
.mgd-section { padding: var(--space-9) var(--space-4); }
.mgd-section--soft { background: var(--color-surface-soft); }
.mgd-section-inner { max-width: 44rem; margin: 0 auto; }
.prose-column > h2,
.mgd-section h2 {
  font-size: calc(clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem) * var(--type-scale, 1));
  margin-bottom: var(--space-4);
}
.prose-column h3,
.mgd-section h3 { font-size: 1.2rem; margin: var(--space-6) 0 var(--space-2); }
.prose-column h3:first-child { margin-top: 0; }
.prose-column p,
.prose-column li { color: var(--color-text); }
.prose-column p + p,
.prose-column ul + p,
.prose-column ol + p,
.prose-column p + ul,
.prose-column p + ol,
.prose-column .mgd-table-wrap + p { margin-top: var(--space-4); }
.prose-column ul,
.prose-column ol { margin: var(--space-4) 0 0; padding-inline-start: 1.35rem; }
.prose-column li + li { margin-top: var(--space-2); }
.prose-column li::marker { color: var(--color-primary); font-weight: 700; }
.prose-column a { color: var(--color-primary); font-weight: 600; }
.prose-column blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-inline-start: 4px solid var(--color-primary);
  font-style: italic;
}
.mgd-note { font-size: .875rem; color: var(--color-text-soft); }
.mgd-lede { font-size: 1.125rem; color: var(--color-text); }
.mgd-eyebrow,
.hero-split-copy .hero-stated-eyebrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}
.mgd-trust { margin: var(--space-4) 0 0; font-size: .9rem; font-weight: 600; color: var(--color-text-soft); }

/* A band in the logo's navy, for the one section on a page that should stand apart. */
.mgd-section--navy { background: var(--color-navy); }
.mgd-section--navy :is(p, li, dd, dt, td, th, strong, .prose-column) { color: #eef1f8; }
.mgd-section--navy :is(h2, h3, h4) { color: #ffffff; }
.mgd-section--navy a { color: #ffffff; }
.mgd-section--navy li::marker { color: #ffffff; }

/* ---- inner openers: worded, with the flag ribbon along the foot ---- */
.hero-stated { padding: var(--space-6) var(--space-4) var(--space-8); background: var(--color-bg); }
.hero-stated-inner { max-width: 60rem; margin: 0 auto; }
.hero-stated-eyebrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}
.hero-stated-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(clamp(2.15rem, 1.4rem + 3vw, 3.5rem) * var(--type-scale, 1));
  line-height: 1.04;
  color: var(--color-primary);
  margin: 0 0 var(--space-5);
  max-width: 24ch;
}
.hero-stated-cta { margin: 0; }
.hero-stated-sub { margin: var(--space-5) 0 0; font-size: 1.1rem; color: var(--color-text-soft); max-width: 40rem; }
/* brand: the whole opener in the legacy red */
.hero-stated--brand { background: var(--color-primary); }
.hero-stated--brand :is(.hero-stated-title, .hero-stated-eyebrow, .hero-stated-sub) { color: #ffffff; }
.hero-stated--brand .hero-stated-btn { background: #ffffff; color: var(--color-primary); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.hero-stated--brand .hero-stated-btn:hover { background: #f6e3e5; color: var(--color-primary-dark); }
.hero-stated--brand .hero-stated-btn:focus-visible { outline-color: #ffffff; }
.hero-stated--brand::after { background: repeating-linear-gradient(to bottom, #ffffff 0 3px, var(--color-primary) 3px 6px); }
/* deep: the logo's navy */
.hero-stated--deep { background: var(--color-navy); }
.hero-stated--deep .hero-stated-title,
.hero-stated--deep .hero-stated-sub { color: #ffffff; }
.hero-stated--deep .hero-stated-eyebrow { color: #f3c6cb; }
.hero-stated--deep .hero-stated-btn:focus-visible { outline-color: #ffffff; }

/* ---- inner photo openers: the brand's flag photographs ---- */
.hero-split { padding: 0 0 var(--space-8); background: var(--color-bg); }
.hero-split-inner { max-width: var(--container-max); margin: 0 auto; display: grid; }
.hero-split-copy { padding: var(--space-4) var(--space-4) 0; }
.hero-split-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(clamp(2.15rem, 1.4rem + 3vw, 3.5rem) * var(--type-scale, 1));
  line-height: 1.04;
  color: var(--color-primary);
  margin: 0 0 var(--space-5);
}
.hero-split-sub { margin: var(--space-5) 0 0; font-size: 1.1rem; color: var(--color-text-soft); max-width: 36rem; }
.hero-split-visual img { width: 100%; height: clamp(8rem, 22svh, 12rem); object-fit: cover; object-position: 50% 30%; }
@media (max-width: 47.99em) {
  .hero-split-visual { order: -1; }
}
@media (min-width: 48em) {
  .hero-split { padding: var(--space-8) var(--space-6) var(--space-9); }
  .hero-split-inner { grid-template-columns: 7fr 5fr; gap: var(--space-8); align-items: center; }
  .hero-split-copy { padding: 0; }
  /* the photograph keeps its own shape on a wide screen: never squashed, never past half the page */
  .hero-split-visual img { height: auto; aspect-ratio: auto; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
}

/* ---- anchored split: a claim on the left, its reasons beside it ---- */
.anchored-split { padding: var(--space-9) var(--space-4); }
.anchored-split--soft { background: var(--color-surface-soft); }
.anchored-split-inner { max-width: 64rem; margin: 0 auto; display: grid; gap: var(--space-6); }
.anchored-split-eyebrow { color: var(--color-primary); font-weight: 600; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: var(--space-2); }
.anchored-split-title { font-size: calc(clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem) * var(--type-scale, 1)); margin-bottom: var(--space-3); }
.anchored-split-lede { color: var(--color-text-soft); font-size: 1.05rem; }
.anchored-split-flow { display: grid; gap: var(--space-5); }
.anchored-split-entry { padding-inline-start: var(--space-5); border-inline-start: 4px solid var(--color-primary); }
.anchored-split-entry-title { font-size: 1.15rem; margin-bottom: var(--space-1); }
.anchored-split-entry-body { color: var(--color-text); }
@media (min-width: 48em) { .anchored-split-inner { grid-template-columns: 2fr 3fr; gap: var(--space-9); align-items: start; } }

/* ---- link runs ---- */
.link-cluster { padding: var(--space-8) var(--space-4); }
.link-cluster--soft { background: var(--color-surface-soft); }
.link-cluster-inner { max-width: 48rem; margin: 0 auto; }
.link-cluster-title { font-size: calc(clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem) * var(--type-scale, 1)); margin-bottom: var(--space-3); }
.link-cluster-intro { color: var(--color-text-soft); margin-bottom: var(--space-2); }
.link-cluster-list { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.link-cluster-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--color-primary);
  border-radius: var(--btn-radius);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
.link-cluster-link:hover { background: var(--color-primary); color: #ffffff; }

/* ---- listing rows: the hubs' index of pages ---- */
.listing-rows { padding: var(--space-9) var(--space-4); }
.listing-rows--soft { background: var(--color-surface-soft); }
.listing-rows-inner { max-width: 48rem; margin: 0 auto; }
.listing-rows-title { font-size: calc(clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem) * var(--type-scale, 1)); margin-bottom: var(--space-5); }
.listing-rows-item { padding: var(--space-4) 0; border-top: 1px solid var(--color-rule); }
.listing-rows-item:last-child { border-bottom: 1px solid var(--color-rule); }
.listing-rows-link { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-primary); text-decoration: none; }
.listing-rows-link::after { content: " \203A"; }
.listing-rows-link:hover { text-decoration: underline; }
.listing-rows-summary { margin-top: var(--space-1); color: var(--color-text-soft); }

/* ---- key takeaways ---- */
.key-takeaways { padding: var(--space-6) var(--space-4) 0; }
.key-takeaways-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-5);
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-top: 5px solid var(--color-primary);
  border-radius: var(--card-radius);
}
.key-takeaways-title { font-size: 1.15rem; margin-bottom: var(--space-3); }
.key-takeaways-list { display: grid; gap: var(--space-2); }
.key-takeaways-list li { position: relative; padding-inline-start: 1.5rem; }
.key-takeaways-list li::before { content: "\2605"; position: absolute; left: 0; color: var(--color-primary); }

/* ---- tables ---- */
.mgd-table-wrap { overflow-x: auto; margin: var(--space-5) 0; }
.mgd-table-wrap table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.mgd-table-wrap caption { text-align: start; font-size: .85rem; color: var(--color-text-soft); padding-bottom: var(--space-2); }
.mgd-table-wrap th,
.mgd-table-wrap td { padding: var(--space-3) var(--space-2); text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-rule); }
.mgd-table-wrap thead th { color: var(--color-primary); font-weight: 700; border-bottom: 3px solid var(--color-primary); }
.mgd-table-wrap tbody th { color: var(--color-text); font-weight: 700; }
.mgd-table-wrap tbody tr:nth-child(even) { background: #fafafa; }
@media (max-width: 47.99em) {
  .mgd-table-wrap table { table-layout: fixed; }
  .mgd-table-wrap th,
  .mgd-table-wrap td { padding: var(--space-2) 4px; font-size: .8125rem; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .mgd-table-wrap thead th:first-child { width: 30%; }
}

/* ---- member mix bars on the state pages ---- */
.mgd-mix { margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.mgd-mix-row { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 3.5rem; gap: var(--space-3); align-items: center; }
.mgd-mix-label { font-weight: 600; color: var(--color-text); }
.mgd-mix-bar { block-size: .8rem; border-radius: 3px; background: #e6e6e6; overflow: hidden; }
.mgd-mix-fill {
  display: block;
  block-size: 100%;
  inline-size: calc(var(--share) * 1%);
  background: repeating-linear-gradient(to bottom, var(--color-primary) 0 4px, #c9535d 4px 8px);
}
.mgd-mix-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--color-primary); text-align: end; }
.mgd-mix-note { font-size: .85rem; color: var(--color-text-soft); }
@media (max-width: 34em) { .mgd-mix-row { grid-template-columns: 1fr 3rem; } .mgd-mix-bar { grid-column: 1 / -1; grid-row: 2; } }

/* ---- chips ---- */
.mgd-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.mgd-chips li { padding: 4px 12px; border: 1px solid var(--color-primary); border-radius: var(--btn-radius); color: var(--color-primary); font-size: .9rem; font-weight: 600; }
.mgd-chips a { color: inherit; text-decoration: none; }
.mgd-section--navy .mgd-chips li { border-color: rgba(255, 255, 255, .6); color: #ffffff; }

/* ---- about page ---- */
.mgd-about { padding: var(--space-9) var(--space-4); }
.mgd-about-inner { max-width: 44rem; margin: 0 auto; }
.mgd-about h2 { font-size: calc(clamp(1.5rem, 1.2rem + 1.4vw, 2rem) * var(--type-scale, 1)); margin: var(--space-7) 0 var(--space-3); }
.mgd-about h2:first-child { margin-top: 0; }
.mgd-rules { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: var(--space-3) var(--space-5); margin: var(--space-4) 0 var(--space-6); }
.mgd-rules dt { font-weight: 700; color: var(--color-primary); }
.mgd-rules dd { margin: 0; }
@media (max-width: 34em) { .mgd-rules { grid-template-columns: 1fr; gap: var(--space-1); } .mgd-rules dd { margin-bottom: var(--space-3); } }

/* ---- questions: red questions and a chevron, as on the legacy site ---- */
.faq-details-title { color: var(--color-primary); text-align: center; }
.faq-details-question { color: var(--color-primary); font-weight: 600; }
.faq-details-icon { width: 1.25rem; height: 1.25rem; }
.faq-details-icon::before {
  inset-inline: auto;
  left: 50%;
  top: 50%;
  width: .6rem;
  height: .6rem;
  margin: -.4rem 0 0 -.3rem;
  background: none;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}
.faq-details-icon::after { display: none; }
.faq-details-item[open] .faq-details-icon { transform: rotate(90deg); }
.faq-details-answer { color: var(--color-text); }

/* ---- closing bands ---- */
.cta-band { padding: var(--space-9) var(--space-4); text-align: center; background: var(--color-primary); }
.cta-band-inner { max-width: 40rem; margin: 0 auto; }
.cta-band-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(clamp(1.9rem, 1.35rem + 2.2vw, 2.75rem) * var(--type-scale, 1));
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: var(--space-3);
}
.cta-band-lead { color: #ffffff; margin-bottom: var(--space-6); font-size: 1.05rem; }
.cta-band-btn { background: #ffffff; color: var(--color-primary); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.cta-band-btn:hover { background: #f6e3e5; color: var(--color-primary-dark); }
.cta-band-btn:focus-visible { outline-color: #ffffff; }
/* deep: the hero's flag photograph under the logo's navy */
.cta-band--deep {
  background:
    linear-gradient(rgba(26, 39, 80, .86), rgba(26, 39, 80, .86)),
    url("https://b.hub-cdn.com/images/generic/b352cd20-fb75-4d2b-b1b6-d2838120876e.webp?width=1440") center 70% / cover no-repeat,
    var(--color-navy);
}
.cta-band--deep .cta-band-btn { background: var(--color-primary); color: #ffffff; box-shadow: 0 3px 0 #6f1922; }
.cta-band--deep .cta-band-btn:hover { background: var(--color-primary-dark); color: #ffffff; }
/* soft: light grey, red words */
.cta-band--soft { background: var(--color-surface-soft); }
.cta-band--soft .cta-band-title { color: var(--color-primary); }
.cta-band--soft .cta-band-lead { color: var(--color-text); }
.cta-band--soft .cta-band-btn { background: var(--color-primary); color: #ffffff; box-shadow: 0 3px 0 #6f1922; }
.cta-band--soft .cta-band-btn:focus-visible { outline-color: var(--color-focus); }

/* ---- footer: the legacy light grey with red links ---- */
.colophon.mgd-colophon { background: #f2f2f2; color: var(--color-text-soft); border-top: 0; }
.colophon.mgd-colophon a { color: var(--color-primary); }
.colophon.mgd-colophon a:hover { color: var(--color-primary-dark); }
.colophon-copyright { font-size: .8rem; }

/* ---- the sticky join bar: red, and only once the hero's own button has scrolled away ---- */
@media (width < 60rem) {
  .cta-sticky-btn {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
}
@supports (animation-timeline: scroll()) {
  @media (width < 60rem) {
    @keyframes cta-sticky-in { from { transform: translateY(110%); } to { transform: none; } }
    .cta-sticky { animation: cta-sticky-in linear both; animation-timeline: scroll(root); animation-range: 30svh 45svh; }
  }
}

/* ---- phones: the hero button whole on the first screen (alamex MOBILE-FIRST-SCREEN) ---- */
@media (max-width: 47.99em) {
  .hero-stated { padding-top: var(--space-4); }
  .hero-stated-inner { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-stated-inner > * { order: 5; }
  .hero-stated-eyebrow { order: 1; }
  .hero-stated-title { order: 2; font-size: 2.1rem; margin-bottom: var(--space-4); }
  .hero-stated-cta { order: 3; }
  .hero-stated-sub { order: 4; margin-top: var(--space-4); }
  .hero-split-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-split-copy > * { order: 5; }
  .hero-split-copy .hero-stated-eyebrow { order: 1; }
  .hero-split-title { order: 2; font-size: 2rem; margin-bottom: var(--space-4); }
  .hero-split-cta { order: 3; }
  .hero-split-sub { order: 4; margin-top: var(--space-4); }
}

/* related-page links on a hub: kept out of its ItemList, a touch lighter than the index links */
.link-cluster-link.mgd-related { font-weight: 600; }
/* === /Maga-Dating layer === */
