/* ============================================================
   Purchasing power — stylesheet
   Palette: slate on pale paper, crimson = erosion, green = gain
   ============================================================ */

:root {
  --paper:      #eceef2;
  --card:       #ffffff;
  --ink:        #10192b;
  --muted:      #5d6878;
  --faint:      #8b95a3;
  --rule:       #d5dae1;
  --rule-soft:  #e4e8ed;

  --salary:     #2f4858;
  --price:      #c03a4c;
  --power:      #10715f;
  --cpi:        #b8919a;  /* official CPI, kept as a reference behind the buyer's basket */
  --pos:        #10715f;
  --neg:        #c03a4c;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r: 3px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------- masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}

.masthead__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 22px;
  position: relative;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.masthead__title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  /* A 22ch measure makes this title wrap, and a greedy first line leaves one or
     two words stranded below. `balance` evens the lines out; browsers apply it
     only to short blocks, which is exactly what a heading is. Ignored where
     unsupported, so it costs nothing. */
  text-wrap: balance;
}

.lang {
  position: absolute;
  top: 26px;
  right: 24px;
  display: flex;
  gap: 2px;
}

.lang__btn {
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--muted);
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.07em;
  padding: 7px 10px;
  cursor: pointer;
  border-radius: var(--r);
}
.lang__btn + .lang__btn { margin-left: -1px; }
.lang__btn.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------------------------------------------------------- layout */

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 22px;
}

.panel__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
}

/* ---------------------------------------------------------- fields */

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--faint);
  font-size: 11px;
}
.field__opt::before { content: "· "; }

.field__help {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--faint);
}

.input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  font: 400 14px/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
}
.input:focus-visible {
  outline: 2px solid var(--salary);
  outline-offset: 1px;
  border-color: var(--salary);
}

/* The placeholder must stand out from an entered value without relying on
   the browser's default gray, which varies from one to another. */
.input::placeholder {
  color: var(--faint);
  opacity: 1;            /* Firefox otherwise applies an opacity of 0.54 */
}

/* unreadable input: the field flags it without clearing or blocking anything */
.input.is-invalid {
  border-color: var(--neg);
  background: #fdf4f5;
}
.input.is-invalid:focus-visible {
  outline-color: var(--neg);
  border-color: var(--neg);
}

/* month + year picker: a button that opens a grid of twelve months */

.ympick { position: relative; }

.ympick__btn {
  width: 100%;
  text-align: left;
  padding: 8px 26px 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  font: 400 14px/1.3 var(--sans);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%),
                    linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 13px) calc(50% + 1px), calc(100% - 9px) calc(50% + 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.ympick__btn:hover { border-color: var(--salary); }
.ympick__btn:focus-visible { outline: 2px solid var(--salary); outline-offset: 1px; }
.ympick__btn::first-letter { text-transform: uppercase; }

.ympick__pop {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  min-width: 208px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: 0 6px 20px rgba(16, 25, 43, 0.16);
}

.ympick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ympick__year {
  font: 400 14px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ympick__nav {
  width: 24px; height: 24px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--card);
  color: var(--muted);
  font: 400 15px/1 var(--sans);
  cursor: pointer;
}
.ympick__nav:hover:not(:disabled) { border-color: var(--salary); color: var(--salary); }
.ympick__nav:disabled { opacity: 0.35; cursor: default; }
.ympick__nav:focus-visible { outline: 2px solid var(--salary); outline-offset: 1px; }

.ympick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }

.ympick__m {
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  color: var(--ink);
  font: 400 12.5px/1 var(--sans);
  cursor: pointer;
}
.ympick__m:hover:not(:disabled) { background: var(--paper); border-color: var(--rule); }
.ympick__m:disabled { color: var(--faint); opacity: 0.4; cursor: default; }
.ympick__m.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ympick__m:focus-visible { outline: 2px solid var(--salary); outline-offset: 1px; }

/* compact variant, used in pay-rise rows */
.ympick--sm .ympick__btn { padding: 7px 22px 7px 8px; font-size: 13px; }
.ympick--sm .ympick__pop { min-width: 196px; }

.input-unit { position: relative; }
.input-unit .input { padding-right: 26px; }
.input-unit input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.input-unit input[type="number"]::-webkit-outer-spin-button,
.input-unit input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-unit__mark {
  position: absolute;
  right: 9px; top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font: 400 13px/1 var(--mono);
  pointer-events: none;
}

/* ---------------------------------------------------------- raise rows */

.rows { display: flex; flex-direction: column; gap: 8px; }
.rows:empty { display: none; }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 26px;
  gap: 6px;
  align-items: center;
}


.row .input { padding: 7px 8px; font-size: 13px; }

/* with a starting salary, the row gains a euro column */
.row--dual { grid-template-columns: minmax(0, 1fr) 68px 74px 26px; }
.row--dual .input { padding-left: 6px; padding-right: 20px; }
.row--dual .input-unit__mark { right: 6px; }

.row__note {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  font: 400 12px/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}

.row__del {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--card);
  color: var(--faint);
  width: 26px; height: 30px;
  font: 400 15px/1 var(--sans);
  cursor: pointer;
}
.row__del:hover { color: var(--neg); border-color: var(--neg); }
.row__del:focus-visible { outline: 2px solid var(--salary); outline-offset: 1px; }

.btn {
  margin-top: 10px;
  width: 100%;
  border: 1px dashed var(--rule);
  border-radius: var(--r);
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 var(--sans);
  padding: 10px;
  cursor: pointer;
}
.btn:hover { border-color: var(--salary); color: var(--salary); border-style: solid; }
.btn:focus-visible { outline: 2px solid var(--salary); outline-offset: 1px; }

/* ---------------------------------------------- housing option */

.field--rule {
  border-top: 1px solid var(--rule-soft);
  padding-top: 20px;
}

.opt { display: flex; align-items: flex-start; gap: 8px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 15px; height: 15px;
  margin: 1px 0 0;
  accent-color: var(--salary);
  cursor: pointer;
}
.check:has(input:disabled) { color: var(--faint); cursor: progress; }
.check:has(input:disabled) input { cursor: progress; }

.opt__info {
  flex: none;
  width: 20px; height: 20px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  font: 400 12px/1 var(--serif);
  font-style: italic;
  cursor: pointer;
}
.opt__info:hover { border-color: var(--salary); color: var(--salary); }
.opt__info[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt__info:focus-visible { outline: 2px solid var(--salary); outline-offset: 1px; }

.doc {
  margin-top: 11px;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.doc p { margin: 0 0 9px; }
.doc p:last-child { margin-bottom: 0; }
.doc strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- verdict */

.verdict {
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.verdict__figure {
  margin: 0;
  font: 400 clamp(40px, 6.4vw, 62px)/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
}
.verdict__figure.is-pos { color: var(--pos); }
.verdict__figure.is-neg { color: var(--neg); }
.verdict__figure.is-flat { color: var(--muted); }

.verdict__text {
  margin: 10px 0 0;
  max-width: 52ch;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  /* `pretty` rather than `balance`: this is running prose, and it can run past
     the few lines `balance` is meant for. It exists to stop the last line being
     a single stranded word. The text changes length with the language and with
     the home-ownership option, so no hand-placed break could cover every case.
     Not every engine supports it yet, which is why the strings themselves also
     bind their hyphens and dates with U+2011 / U+00A0 — that part works
     everywhere. */
  text-wrap: pretty;
}

/* Directly under the verdict: the moment a reader has just been handed a
   figure is the moment they wonder where it came from. Small and muted so it
   asks the question without competing with the answer above it. */
.verdict__method {
  margin: 12px 0 0;
  font-size: 13px;
}

/* ---------------------------------------------------------- chart */

.chart { margin: 0; }

.chart__frame { position: relative; }

#chart { display: block; width: 100%; height: auto; }

.grid-line { stroke: var(--rule-soft); stroke-width: 1; }
.grid-line--base { stroke: var(--rule); stroke-dasharray: 3 3; }
.axis-text {
  fill: var(--faint);
  font: 400 11px var(--mono);
  font-variant-numeric: tabular-nums;
}

.band--pos { fill: var(--pos); opacity: 0.11; }
.band--neg { fill: var(--neg); opacity: 0.11; }

.line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.line--sal { stroke: var(--salary); }
.line--pri { stroke: var(--price); }
.line--pow { stroke: var(--power); stroke-width: 2.4; }
.line--cpi { stroke: var(--cpi); stroke-width: 1.4; stroke-dasharray: 4 3; }

.marker { stroke: var(--card); stroke-width: 1.5; }
.marker--sal { fill: var(--salary); }
.marker--pri { fill: var(--price); }
.marker--pow { fill: var(--power); }
.marker--cpi { fill: var(--cpi); }

.cursor-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.4; }

.hit { fill: transparent; }

/* tooltip */

.tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: 8px 10px;
  font: 400 12px/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  box-shadow: 0 4px 14px rgba(16, 25, 43, 0.22);
}
.tip__month {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9b3c1;
}
.tip__row { display: flex; justify-content: space-between; gap: 14px; }
.tip__dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

/* legend */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}

.legend__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  padding: 5px 9px 5px 7px;
  cursor: pointer;
  font: 500 12.5px/1 var(--sans);
  color: var(--ink);
}
.legend__btn:hover { border-color: var(--rule); }
.legend__btn:focus-visible { outline: 2px solid var(--salary); outline-offset: 1px; }
.legend__btn[aria-pressed="false"] { color: var(--faint); }
.legend__btn[aria-pressed="false"] .legend__swatch { opacity: 0.28; }

.legend__swatch { width: 15px; height: 3px; border-radius: 2px; flex: none; }

.legend__val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
}

/* ---------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  overflow: hidden;
}

.stat { background: var(--card); padding: 14px 15px; margin: 0; }

.stat__label {
  display: block;
  min-height: 3em;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.stat__value {
  margin: 0;
  font: 400 21px/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat__value.is-pos { color: var(--pos); }
.stat__value.is-neg { color: var(--neg); }

.stat__sub {
  display: block;
  margin-top: 4px;
  font: 400 12px/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}

/* ---------------------------------------------------------- source */

.source {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}

.badge {
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 9px;
  font: 600 10px/1.6 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge.is-live { border-color: var(--power); color: var(--power); }
.badge.is-offline { border-color: var(--price); color: var(--price); }

/* ---------------------------------------------------------- share */

.btn--solid {
  border-style: solid;
  background: var(--ink);
  color: #fff;
}
.btn--solid:hover { background: var(--salary); border-color: var(--salary); color: #fff; }

.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.share .btn { margin-top: 0; width: auto; padding: 9px 16px; }

.share__status {
  font-size: 12px;
  color: var(--power);
  min-height: 1.2em;
}

.share__help {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--faint);
}

/* ---------------------------------------------------------- method page */

/* Both languages ship in the markup and one set is hidden, so `hidden` has to
   win over any display rule below. Scoped to the method page: the tool's own
   hidden elements never carry a display of their own and need no such reset. */
.m-body [hidden] { display: none !important; }

.m-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.m-lead {
  margin: 0 0 26px;
  max-width: 60ch;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.m-lead strong { font-weight: 400; box-shadow: inset 0 -0.55em 0 rgba(192, 58, 76, 0.12); }

.m-toc {
  margin: 0 0 34px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
.m-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 22px;
  font-size: 13.5px;
}
.m-toc li { counter-increment: toc; }
.m-toc li::before {
  content: counter(toc);
  display: inline-block;
  width: 1.6em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.m-toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.m-toc a:hover { border-bottom-color: var(--salary); color: var(--salary); }

.m-sec {
  margin: 0 0 40px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 18px;
}

.m-sec h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  text-wrap: balance;
}

.m-num {
  display: inline-block;
  min-width: 1.7em;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.m-sec p {
  margin: 0 0 14px;
  max-width: 64ch;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.m-sec code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--salary);
  white-space: nowrap;
}

/* ---- tables */

.m-tab {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.45;
}
.m-tab th,
.m-tab td {
  padding: 9px 12px 9px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-soft);
}
.m-tab th[scope="row"] { font-weight: 600; color: var(--ink); }
.m-tab td { color: var(--muted); }
.m-tab--head thead th {
  padding-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}
.m-tab--num td {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m-tab a { color: var(--salary); }

/* ---- callouts */

.m-sec .m-note,
.m-sec .m-prov {
  max-width: none;
  margin: 0 0 18px;
  padding: 12px 15px;
  border-left: 2px solid var(--rule);
  background: var(--card);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.m-sec .m-note strong,
.m-sec .m-prov strong { color: var(--ink); }
.m-sec .m-prov { border-left-color: var(--price); }

.m-formula {
  margin: 0 0 18px;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font: 400 13px/1.7 var(--mono);
  color: var(--ink);
}
.m-formula em { color: var(--muted); font-style: italic; }

/* ---- ranked limitations */

.m-limits {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: lim;
  max-width: 64ch;
}
.m-limits li {
  counter-increment: lim;
  position: relative;
  margin-bottom: 14px;
  padding-left: 34px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.m-limits li::before {
  content: counter(lim);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  text-align: center;
  padding: 1px 0;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--rule);
  font: 600 11px/1.5 var(--mono);
  color: var(--muted);
}
.m-limits strong { color: var(--ink); }

/* ---- links out */

.m-sec .m-cta { margin: 4px 0 0; font-family: var(--sans); }
.m-cta a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font: 500 13px/1 var(--sans);
  text-decoration: none;
}
.m-cta a::after { content: " \2192"; }
.m-cta a:hover { background: var(--salary); border-color: var(--salary); }

.m-back {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.m-back a { color: var(--muted); }
.m-back a::before { content: "\2190 "; }

/* Discreet by design: findable by a reader who is looking for it, silent for
   everyone else. It sits in the source line, after the controls in the tab
   order, and changes no layout. */
/* No `white-space: nowrap` here: this is a whole question on its own line now,
   and forcing it onto one would overflow a narrow screen. */
.method-link { color: var(--muted); }
.method-link:hover { color: var(--ink); }
.doc__more { color: var(--ink); }

@media (max-width: 700px) {
  .m-page { padding: 20px 16px 44px; }
  .m-toc ol { grid-template-columns: minmax(0, 1fr); }
  .m-tab { display: block; overflow-x: auto; }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .masthead__inner { padding: 20px 16px 18px; }
  .lang { top: 20px; right: 16px; }
  /* Reserves the FR/EN button gutter (81px) so that neither the eyebrow nor
     the title wraps underneath it when they collapse. */
  .eyebrow,
  .masthead__title { max-width: none; padding-right: 92px; }
  .eyebrow { padding-right: 76px; }
  .panel { padding: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
