/* Page frame: header, navigation, breadcrumbs, page heads, footer.
   One frame for every page: .container is the header's box, so logo, breadcrumbs, titles and content
   share one left edge at every width. Text pages add .container--mid, which keeps that frame and
   caps the width of what is inside it (left-aligned) instead of centring a narrower box (before
   21 Nov 2026 their left edge jumped 73px at 1440 and 200px at 1920 against the header). */
.container { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gut); }
.container--mid > * { max-width: var(--mid); }
/* Free text placed straight in the frame (notes, footnotes) keeps a readable line. :where() keeps the
   specificity at one class, so .lead (46rem) and component rules still win. */
.container > :where(p:not(.btn-row, .topline)) { max-width: var(--measure-wide); }
.section { padding-top: var(--section-y); }
.section__head { max-width: 46rem; margin-bottom: var(--s6); }
.section__head h2 { font-size: var(--fs-section); margin-bottom: var(--s3); }
.section__head p { color: var(--slate); font-size: var(--fs-lg); line-height: 1.5; margin: 0; }
.lead { font-size: var(--fs-lg); color: var(--slate); line-height: 1.5; max-width: 46rem; }

/* Full-width bands behind a section (home): ink for the one bold moment, paper for a quiet change of
   ground. The band is the <section>; its .container keeps the page's left edge. No radius: a band
   that reaches the viewport edge never has rounded corners. */
.band { margin-top: var(--section-y); padding-block: var(--section-y); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--ink :focus-visible { outline-color: var(--focus-on-dark); }
.band--paper { background: var(--paper); border-block: 1px solid var(--line); }
.split { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }

/* Full-width paper band behind a constrained container, without widening the page:
   a border-image outset is ink overflow, so it never creates a horizontal scrollbar. */
.breadcrumbs { border-image: linear-gradient(var(--paper) 0 0) fill 0 // 0 100vmax; }
.page-head { border-image: linear-gradient(to top, var(--line) 1px, var(--paper) 1px) fill 0 // 0 100vmax; padding-block: var(--s4) var(--s6); margin-bottom: var(--s6); }
.page-head h1 { max-width: 24ch; margin: var(--s2) 0 var(--s3); }
.page-head:has(.cmp-toolbar) h1 { max-width: 40ch; }
.page-head .lead { max-width: 46rem; margin-bottom: 0; }
.page-head .lead + p { margin: var(--s3) 0 0; max-width: 46rem; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; margin-top: var(--s4); font-size: var(--fs-sm); color: var(--muted); }
/* A page without breadcrumbs (the 404) starts its head further from the header; actions under a lead
   get the same step as everywhere else. */
.site-header + main > .page-head:first-child { padding-top: var(--s7); }
.page-head .lead + .btn-row { margin-top: var(--s5); }

/* Independence line above the titles of pages that link to providers. */
.topline { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.topline a { color: var(--slate); }


/* Header: a sticky paper band that becomes a little more compact, with a hairline and a soft
   shadow, once the page scrolls (header_controller adds .is-scrolled). Transitions are short and
   only on shadow, border, background and height; reduced motion collapses them (2-base.css). */
.site-header { position: sticky; top: 0; z-index: 30; background: oklch(0.995 0.003 240 / 0.88); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 0 0 0 transparent; transition: box-shadow .28s ease, border-color .28s ease, background-color .28s ease; }
.site-header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px oklch(0.23 0.035 255 / 0.35); background: oklch(0.995 0.003 240 / 0.94); }
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); transition: min-height .28s ease; }
.site-header.is-scrolled .header-inner { min-height: 58px; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); gap: .6rem; color: var(--ink); text-decoration: none; font: 600 1.28rem/1 var(--serif); letter-spacing: -0.012em; white-space: nowrap; transition: font-size .28s ease; }
.site-header.is-scrolled .brand { font-size: 1.18rem; }
.brand:hover { color: var(--ink); }
/* Brand mark: three rising bars on an ink tile, the third bar (year three) in teal. Inline SVG (shared/_brand_mark). */
.brand__mark { width: 30px; height: 30px; flex: none; transition: width .28s ease, height .28s ease; }
.site-header.is-scrolled .brand__mark { width: 27px; height: 27px; }
.brand__tile { fill: var(--ink); }
.brand__bar { fill: var(--paper); }
.brand__bar--3 { fill: var(--teal-400); }
.brand__name { letter-spacing: -0.015em; }
/* Brand lockup (22 Nov 2026): the name over a quiet sans line that says what the name means. The mark
   stays centred on both lines and the header keeps its height. The long line shows where the header has
   room (wide desktop, and below the menu breakpoint where the nav folds into one button), the short one
   on phones, neither where six groups and the CTA need the width (72–88rem). "year three" takes the teal
   of the mark's third bar. */
.brand__text { display: grid; gap: .2rem; }
.brand__tagline { font: 500 .75rem/1.15 var(--sans); letter-spacing: .004em; color: var(--slate); }
.brand__tagline--short { display: none; }
.brand__accent { color: var(--teal-700); font-weight: 600; }
@media (min-width: 72.01rem) and (max-width: 88rem) { .brand__tagline { display: none; } }
@media (max-width: 34rem) { .brand__tagline--long { display: none; } .brand__tagline--short { display: block; } }
/* The French line is about 70px longer: up to 100rem it would push the CTA onto two lines, so French uses the short line there. */
@media (min-width: 88.01rem) and (max-width: 100rem) { html:lang(fr) .brand__tagline--long { display: none; } html:lang(fr) .brand__tagline--short { display: block; } }
@media (max-width: 21rem) { .brand__tagline--short { display: none; } }

.nav { display: flex; align-items: center; margin-left: var(--s4); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav__list li + li { margin-top: 0; }
.nav__cta-row { display: none; }
.nav__link { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: .2rem; min-height: var(--tap); padding: 0 .65rem; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: -0.002em; border-radius: var(--r-sm); cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link:focus-visible { outline-offset: -3px; }
/* The current section: ink text and a short teal rule centred under the label, not a coloured tab. */
.navdrop__summary[data-current] { color: var(--ink); }
.navdrop__summary[data-current]::after { content: ""; position: absolute; left: .65rem; right: 1.4rem; bottom: 5px; height: 2px; border-radius: 1px; background: var(--teal-700); }
.nav__toggle { display: none; }
.header-end { margin-left: auto; display: flex; gap: var(--s3); align-items: center; }
.header-end .btn { gap: .4rem; }
.header-cta { padding-inline: 1.05rem; white-space: nowrap; }

/* Dropdowns: native <details>, so keyboard and no-JS work; nav_controller adds hover-to-open,
   one-open-at-a-time and arrow keys. The panel starts flush with the group (a transparent
   bridge of padding) so the pointer never crosses a gap on its way into the menu. */
.nav__group { position: relative; }
.navdrop > summary { list-style: none; user-select: none; }
.navdrop > summary::-webkit-details-marker { display: none; }
.navdrop__chev { color: var(--muted); transition: transform .18s ease; margin-top: 1px; }
.navdrop[open] > summary { color: var(--ink); background: var(--surface); }
.navdrop[open] .navdrop__chev { transform: rotate(180deg); color: var(--ink-2); }
.navdrop__panel { position: absolute; top: 100%; left: 0; z-index: 40; width: 23.5rem; padding-top: .55rem; }
.nav__group:nth-last-child(-n+4) .navdrop__panel { left: auto; right: 0; }
.navdrop__box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px oklch(0.23 0.035 255 / 0.05), 0 18px 48px -12px oklch(0.23 0.035 255 / 0.28); padding: var(--s3); transform-origin: top left; animation: navdrop-in .17s ease-out both; }
.nav__group:nth-last-child(-n+4) .navdrop__box { transform-origin: top right; }
@keyframes navdrop-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }
.navdrop__blurb { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; margin: 0; padding: .35rem .75rem .65rem; border-bottom: 1px solid var(--line); }
.navdrop__list { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 1px; }
.navdrop__list li + li { margin-top: 0; }
.navdrop__item { position: relative; display: grid; gap: .12rem; padding: .55rem .75rem .6rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); transition: background-color .12s ease; }
.navdrop__item:hover, .navdrop__item:focus-visible { background: var(--surface); color: var(--ink); }
.navdrop__item:hover .navdrop__label { color: var(--teal-700); }
.navdrop__item[aria-current="page"] { background: var(--teal-50); }
.navdrop__item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 2px; border-radius: 1px; background: var(--teal-700); }
.navdrop__label { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.navdrop__desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.navdrop__more { margin: var(--s2) 0 0; padding: .6rem .75rem .25rem; border-top: 1px solid var(--line); }
.navdrop__more-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: var(--fs-sm); color: var(--teal-700); text-decoration: none; min-height: var(--tap); }
.navdrop__more-link:hover { text-decoration: underline; }

@media (max-width: 72rem) {
  .header-end { display: none; } /* the same CTA is the last item of the mobile menu */
  .nav { margin-left: auto; }
  .nav.nav-ready .nav__toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--paper); font: inherit; font-weight: 700; font-size: .93rem; color: var(--ink); cursor: pointer; }
  .nav__toggle-open, .nav__toggle-close { display: inline-flex; align-items: center; gap: .45rem; }
  .nav__toggle-close { display: none; }
  .nav.is-open .nav__toggle-open { display: none; }
  .nav.is-open .nav__toggle-close { display: inline-flex; }
  .nav.nav-ready .nav__list { display: none; }
  .nav.nav-ready.is-open .nav__list { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: var(--s2) var(--gut) var(--s5); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; animation: navdrop-in .17s ease-out both; }
  /* Lock the page behind the open menu on the root element only. With overflow hidden on html *and*
     body, body became the sticky header's scroll container: once the page had been scrolled, opening
     the menu threw the header (and the menu under it) back to the top of the document, out of view
     (fixed 21 Nov 2026). overscroll-behavior keeps a scroll inside the menu from moving the page. */
  html.nav-open { overflow: hidden; }
  .nav.is-open .nav__link { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; font-size: 1.05rem; min-height: 52px; }
  .navdrop__summary[data-current]::after { left: 0; right: auto; width: 1.5rem; bottom: 10px; }
  /* Flattened panels belong to the mobile menu only; the footer language switcher keeps its floating box. */
  .nav .navdrop__panel { position: static; width: auto; padding: 0; }
  .nav .navdrop__box { border: 0; box-shadow: none; padding: var(--s1) 0 var(--s3); border-radius: 0; animation: none; background: transparent; }
  .nav .navdrop__blurb { display: none; }
  .nav .navdrop[open] > summary { background: none; }
  .nav .navdrop__item { padding-inline: var(--s3); }
  .nav.is-open .nav__cta-row { display: block; margin-top: var(--s4); }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav { flex-basis: 100%; margin-left: 0; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .nav__cta-row, html:not(.js) .nav__lang-row { display: block; }
}
@media (max-width: 34rem) { .header-inner { gap: var(--s3); } .brand { font-size: 1.16rem; } }
html.header-compact { --header-h: 58px; }
.site-footer .footer-legal a { text-decoration: underline; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-xs); color: var(--muted); padding-top: var(--s4); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li { margin-top: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--slate); }

/* Footer: the one ink band every page shares. */
.site-footer { background: var(--ink); color: var(--on-ink); margin-top: calc(var(--section-y) * 1.2); padding-block: var(--s8) var(--s6); font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.site-footer .brand { color: #fff; }
.site-footer .brand__tile { fill: oklch(1 0 0 / 0.14); }
.site-footer .brand__bar { fill: #fff; }
.footer-grid { display: grid; gap: var(--s6) var(--s7); grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
.footer-stance { margin-top: var(--s3); font: 600 var(--fs-sm)/1.4 var(--sans); color: var(--teal-400); letter-spacing: .005em; }
.footer-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; text-align: left; }
.footer-linkbtn:hover { text-decoration: underline; }
.footer-grid__title { font: 700 var(--fs-md)/1 var(--sans); color: #fff; letter-spacing: 0; margin-bottom: var(--s4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.footer-grid li + li { margin-top: 0; }
.footer-tagline { margin-top: var(--s4); max-width: 38ch; line-height: 1.55; }
.footer-legal { border-top: 1px solid oklch(1 0 0 / 0.14); margin-top: var(--s7); padding-top: var(--s5); display: grid; gap: var(--s2); color: var(--on-ink-muted); }
.footer-legal p { margin: 0; max-width: 64rem; }
.footer-legal strong { color: #fff; }
@media (max-width: 61rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 34rem) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }


/* Language switcher (shared/_language_switcher). The dropdown reuses the navdrop component; the
   footer variant opens upwards. In the collapsed header the same choices appear as a flat row at the
   end of the mobile menu, so the control is never lost when .header-end is hidden. */
.langswitch { position: relative; }
.langdrop__summary { gap: .35rem; padding-inline: .6rem; }
.langdrop__globe { color: var(--muted); }
.langdrop__code { display: none; font-size: var(--fs-xs); letter-spacing: .04em; }
.langdrop__panel { width: 11rem; left: auto; right: 0; }
.langdrop__panel .navdrop__box { transform-origin: top right; }
.langdrop__item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.langdrop__item[aria-current="true"] .navdrop__label { color: var(--teal-700); }
.langdrop__check { color: var(--teal-700); }
.langswitch--up .langdrop__panel { top: auto; bottom: 100%; left: 0; right: auto; padding-top: 0; padding-bottom: .55rem; }
.langswitch--up .langdrop__panel .navdrop__box { transform-origin: bottom left; }
.site-footer .langswitch { display: inline-block; }
.site-footer .langdrop__summary { color: #fff; border: 1px solid oklch(1 0 0 / 0.22); border-radius: var(--pill); padding-inline: .9rem; }
.site-footer .langdrop__summary:hover, .site-footer .navdrop[open] > .langdrop__summary { background: oklch(1 0 0 / 0.08); color: #fff; }
.site-footer .langdrop__globe, .site-footer .navdrop__chev { color: inherit; }
.site-footer .langdrop__panel .navdrop__box { color: var(--ink); }
.site-footer .langdrop__panel .navdrop__item { color: var(--ink); }
.site-footer .navdrop[open] .navdrop__chev { color: inherit; }
.site-footer .langdrop__item[aria-current="true"] .navdrop__label, .site-footer .langdrop__item:hover .navdrop__label { color: var(--teal-700); }
.site-footer .langdrop__panel .navdrop__item:hover { text-decoration: none; }
.footer-lang { margin-top: var(--s5); }
.nav__lang-row { display: none; }
.langinline { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); padding: var(--s3) 0 0; border-top: 1px solid var(--line); margin-top: var(--s3); }
.langinline__icon { color: var(--muted); display: inline-flex; }
.langinline__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s2); }
.langinline__list li + li { margin-top: 0; }
.langinline__link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .85rem; border-radius: var(--pill); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.langinline__link[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 72rem) {
  .nav.is-open .nav__lang-row { display: block; }
}
/* Compact header between the menu breakpoint (72rem) and 82rem: the switcher shows the language code
   and the links lose a little padding, so six groups, the switcher and the CTA stay on one line in
   both languages (measured with script/qa/i18n_visual.mjs at 1160–1310px). */
@media (min-width: 72.01rem) and (max-width: 82rem) {
  .header-inner { gap: var(--s3); }
  .nav { margin-left: var(--s2); }
  .nav__link { padding-inline: .5rem; }
  .header-end .langdrop__name { display: none; }
  .header-end .langdrop__code { display: inline; }
  .header-end .langdrop__summary { padding-inline: .45rem; }
  .header-cta { padding-inline: .85rem; }
}
@media (max-width: 34rem) {
  .langdrop__name { display: none; }
  .langdrop__code { display: inline; }
}
