/* .menu — the full-screen menu in the ☰ band (rebuild spec §5.2). [ menu ] [ stack ] [ page-gutter ]:
   the brand row (as tall as the bar: the same padding round the same brand), EN | FR under ✕, the
   links, the quote button split off to the foot. */
.menu {
  --stack-space: var(--space-lg);
  /* the home bar's room is added below the gap (checked on the iPhone at S5) */
  padding-block-end: calc(var(--space-lg) + env(safe-area-inset-bottom));
  background: var(--color-bg-base);
}

.menu > .cluster {
  --cluster-horizontal-alignment: space-between;
  padding-block: var(--space-s);
}

/* ✕'s lines end on the page side, as ☰'s do; EN | FR right under it, in a column as wide as ✕'s
   square and centred, so its line sits under ✕'s centre (decision 74; the words overflow the
   column evenly on both sides).
   primitive tried: center (text-align); fails: an overflowing line spills to one side only. */
.menu > .cluster > button,
.menu > .language-toggle {
  margin-inline-end: calc((var(--space-md) - var(--space-xl)) / 2);
}

.menu > .language-toggle {
  --stack-space-before: 0;
  display: flex;
  justify-content: center;
  align-self: flex-end;
  inline-size: var(--space-xl);
}

/* The link lines run to the page side at every ☰ width: past the global reading measure. */
.menu li {
  max-inline-size: none;
}

.menu nav a {
  display: block;
  padding-block: var(--space-s);
  border-block-end: var(--border-1) solid var(--hairline-color);
  font-size: var(--step-2);
  line-height: var(--heading-line-height);
  text-transform: uppercase;
}

html[data-state~="scroll-locked"] {
  overflow: hidden;
}
