/* Ouafo — site styles, derived from design/systeme/ds.css (the reference:
   change it there first). Only what the templates use is kept.
   A sign system carried by a Swiss grid.
   1. A level is a sign: one silhouette, one colour, one word. Never one alone.
   2. Flat colour belongs to official alerts. Anything else is paper and rules.
   3. Dashed means "do not lean on it": not confirmed, not known, not open.
   4. The slab is the emergency path, and nothing else.
   5. The only frame is the alert plaque. Everything else is a rule or a tint.
   6. One text axis: marks hang to its left, words start on it.
   7. The water line (6 px of Plouf) underlines the header and closes the page.
   No JavaScript, no inline style, no third-party resource. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2");
}

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  /* Colour: 15 names. ban, warning, night and white never change with the theme. */
  --paper: #FFFFFF;
  --mist: #F0F3FA;
  --ink: #101B3B;
  --ink-2: #4A5470;
  --line: #C5CCDC;
  --plouf: #2F5BFF;
  --action: #1C3FD1;
  --on-action: #FFFFFF;
  --slab: #101B3B;
  --on-slab: #FFFFFF;
  --ban: #C21F30;
  --warning: #F2A33A;
  --unconfirmed: #9A2EAE;
  --night: #101B3B;
  --white: #FFFFFF;

  /* Type: two families, four files, eight styles. Weight is a signal. */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --t-poster: 800 clamp(3rem, 15vw, 6.5rem) / 0.92 var(--display);
  --t-title: 800 2.25rem / 2.5rem var(--display);
  --t-figure: 800 1.75rem / 2rem var(--display);
  --t-name: 700 1.375rem / 1.75rem var(--display);
  --t-label: 800 1.125rem / 1.5rem var(--display);
  --t-lead: 700 1.375rem / 1.75rem var(--text);
  --t-body: 400 1.125rem / 1.75rem var(--text);
  --t-small: 400 0.9375rem / 1.5rem var(--text);

  /* Space: 4 px line grid */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Grid. --hang is the track of the marks, left of the text axis. */
  --page: 75rem;
  --margin: 1rem;
  --gutter: 1.5rem;
  --measure: 35rem;
  --hang: 3rem;
  --label: 11rem;

  /* Shape. No elevation anywhere. */
  --radius: 0.375rem;
  --plaque-r: 1.25rem;
  --plaque: 0 var(--plaque-r) var(--plaque-r) var(--plaque-r);
  --rule: 0.125rem;
  --hair: 0.0625rem;
  --frame: 0.1875rem;
  --water: 0.375rem;
  --dash-on: 0.5rem;
  --dash-off: 0.375rem;
  --hatch: 0.4375rem;
  --link-pad: 0.75rem;
  --target: 2.75rem;
  --control: 3.5rem;

  /* Signs and pictograms */
  --sign-s: 1.5rem;
  --sign-m: 2.5rem;
  --sign-l: 4rem;
  --sign-xl: 8rem;
  --picto-s: 1.25rem;
  --picto: 1.5rem;
  --picto-l: 2rem;
}

@media (min-width: 37.5em) {
  :root {
    --hang: 3.5rem;
  }
}
/* From 1024 px a page is 12 columns. One column is written once (--col);
   every width on the grid is a span of it. */
@media (min-width: 64em) {
  :root {
    --margin: 2rem;
    --col: calc((min(100vw, var(--page) + 2 * var(--margin)) - 2 * var(--margin) - 11 * var(--gutter)) / 12);
    --span-2: calc(2 * var(--col) + var(--gutter));
    --span-3: calc(3 * var(--col) + 2 * var(--gutter));
    --span-4: calc(4 * var(--col) + 3 * var(--gutter));
    --span-6: calc(6 * var(--col) + 5 * var(--gutter));
    --measure: var(--span-6);
    --label: var(--span-2);
    --t-title: 800 2.75rem / 3rem var(--display);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1126;
    --mist: #151E42;
    --ink: #EEF2FF;
    --ink-2: #B4BEDB;
    --line: #33406E;
    --plouf: #6C8CFF;
    --action: #A9BAFF;
    --on-action: #0B1126;
    --slab: #EEF2FF;
    --on-slab: #0B1126;
    --unconfirmed: #E09BEA;
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-body);
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
svg {
  flex: none;
}
strong {
  font-weight: 700;
}
a {
  color: var(--action);
  text-decoration-thickness: var(--hair);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: var(--rule);
}
:focus-visible {
  outline: var(--frame) solid var(--ink);
  outline-offset: var(--frame);
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.skip {
  position: absolute;
  left: var(--margin);
  top: -6rem;
  z-index: 2;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  font-weight: 700;
}
.skip:focus {
  top: var(--s-2);
}

/* Text styles, usable on any element */
.title {
  font: var(--t-title);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.lead {
  font: var(--t-lead);
}
.small {
  font: var(--t-small);
  color: var(--ink-2);
}
.small strong {
  color: var(--ink);
}
.measure {
  max-width: var(--measure);
}
/* A year inside a sentence, next to the frieze: same figures as the frieze */
.num {
  font-family: var(--display);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Signs and pictograms                                                */
/* ------------------------------------------------------------------ */

/* Line pictograms: 24 grid, 2 px stroke, round joins */
.picto {
  width: var(--picto);
  height: var(--picto);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.picto--s {
  width: var(--picto-s);
  height: var(--picto-s);
}
.pf {
  fill: currentColor;
  stroke: none;
}
.pd {
  stroke-dasharray: 2.6 3.2;
}

/* Level signs: 32 grid, one drawing per level at every size. --sa is the
   sign, --sb the mark on it, --so the inside of an outlined sign. An
   official plaque inverts them. */
.sign {
  width: var(--sign-s);
  height: var(--sign-s);
}
.sign--m {
  width: var(--sign-m);
  height: var(--sign-m);
}
.s-ban {
  --sa: var(--ban);
  --sb: var(--white);
}
.s-warning {
  --sa: var(--warning);
  --sb: var(--night);
}
.s-unconfirmed {
  --sa: var(--unconfirmed);
  --sb: var(--unconfirmed);
  --so: var(--paper);
}
.s-lifted {
  --sa: var(--ink-2);
  --sb: var(--ink-2);
  --so: var(--paper);
}
.sa {
  fill: var(--sa);
}
.sa-k {
  fill: var(--sa);
  stroke: var(--sb);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.sb-l {
  fill: none;
  stroke: var(--sb);
  stroke-width: 3;
  stroke-linecap: round;
}
.sb-t {
  fill: none;
  stroke: var(--sb);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.sb-f {
  fill: var(--sb);
}
.so {
  fill: var(--so);
  stroke: var(--sa);
  stroke-width: 3;
  stroke-linejoin: round;
}

/* Logo: the goutte-truffe. Drop in Plouf, nose in night, in both themes. */
.logo {
  width: 2.25rem;
  height: 2.625rem;
}
.lg-drop {
  fill: var(--logo-drop, var(--plouf));
}
.lg-nose {
  fill: var(--night);
}
.lg-line {
  fill: none;
  stroke: var(--night);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lg-ear {
  fill: var(--action);
}
.lg-thin {
  stroke-width: 3;
}
/* A stroke drawn outside the drop sits on the page: it follows the ink */
.lg-out {
  stroke: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Page frame                                                          */
/* ------------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}
/* The water line underlines the header and closes the page */
.top {
  border-bottom: var(--water) solid var(--plouf);
}
.top__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s-2);
  min-height: var(--control);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--target);
  color: var(--ink);
  font: var(--t-figure);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--s-1);
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-width: var(--target);
  min-height: var(--target);
  padding-inline: var(--s-3);
  justify-content: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
}
.nav .nav__wide {
  display: none;
}
.nav .nav__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
/* The slab keeps a transparent border: it becomes its edge in forced colours */
.nav a.nav__sos {
  padding-inline: var(--s-4);
  border: var(--rule) solid transparent;
  border-radius: var(--radius);
  background: var(--slab);
  color: var(--on-slab);
}
@media (min-width: 37.5em) {
  .nav {
    gap: var(--s-3);
  }
  .nav .nav__wide {
    display: inline-flex;
  }
  .nav .nav__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}

main {
  display: block;
  padding-block: var(--s-4) var(--s-8);
}
@media (min-width: 64em) {
  main {
    padding-top: var(--s-6);
  }
}

/* A section opens with an ink rule. Its title is the display face, the
   titles inside it are the text face. */
.section {
  margin-top: var(--s-7);
  padding-top: var(--s-3);
  border-top: var(--rule) solid var(--ink);
}
.section__title {
  font: var(--t-label);
}
.section__note {
  margin-top: var(--s-1);
  font: var(--t-small);
  color: var(--ink-2);
}
.section__head {
  margin-bottom: var(--s-4);
}
.section__body > * + * {
  margin-top: var(--s-4);
}
.section__body > p,
.section__body > ul.prose {
  max-width: var(--measure);
}
/* A section whose content is two ruled columns: its own rule moves to the
   label, so that the three rules sit on one line instead of stacking */
.section--split {
  padding-top: 0;
  border-top: 0;
}
.section--split > .section__head {
  padding-top: var(--s-3);
  border-top: var(--rule) solid var(--ink);
}
.sub {
  padding-top: var(--s-4);
  font: var(--t-body);
  font-weight: 700;
}
.lede {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
.kicker {
  display: none;
  font: var(--t-small);
  font-weight: 700;
}
/* The tagline of the home page: beside the title on the grid, absent on a
   phone, where the title of the alert list says what the page is about */
.intro {
  display: none;
  font: var(--t-small);
  max-width: var(--measure);
}
@media (min-width: 37.5em) {
  .intro {
    display: block;
  }
}

/* The grid. The label of a block holds columns 1 to 3, its content columns
   4 to 12. A framed block gives its inner offset as --inset so that its text
   lands on the same axis. The label keeps clear of the hanging marks. */
@media (min-width: 64em) {
  .section,
  .lede,
  .door,
  .poster {
    --head: calc(var(--span-3) - var(--inset, 0rem));
    display: grid;
    grid-template-columns: var(--head) minmax(0, 1fr);
    column-gap: var(--gutter);
  }
  .section {
    margin-top: var(--s-8);
  }
  .section__head {
    margin-bottom: 0;
    padding-right: calc(var(--hang) - var(--gutter) + var(--s-3));
  }
  .lede > * {
    grid-column: 2;
  }
  .lede > .lede__side {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding: 1.25rem calc(var(--hang) - var(--gutter) + var(--s-3)) 0 0;
  }
  .lede > .lede__side--tall {
    grid-row: 1 / span 2;
  }
  .kicker {
    display: block;
  }
}

/* The water line again: it closes every page */
.foot {
  margin-top: var(--s-7);
}
.foot__in {
  padding-block: var(--s-5) var(--s-7);
  border-top: var(--water) solid var(--plouf);
}
.foot__in > * + * {
  margin-top: var(--s-3);
}
.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--ink);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Actions                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: var(--s-2) var(--s-5);
  border: var(--rule) solid var(--action);
  border-radius: var(--radius);
  background: var(--action);
  color: var(--on-action);
  font: var(--t-body);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.btn:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--target);
  font-weight: 700;
}

/* The emergency door: always the second element of a page. On the grid it
   reads like a section: the question in columns 1 to 3, the answer on the axis. */
.door {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: var(--rule) solid transparent;
  border-radius: var(--radius);
  background: var(--slab);
  color: var(--on-slab);
  text-decoration: none;
}
.door__ask {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font: var(--t-label);
}
.door__go {
  padding-left: calc(var(--picto) + var(--s-3));
  font: var(--t-small);
  font-weight: 700;
}
.door > .picto {
  display: none;
}
.door:hover .door__ask {
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
}
.door--slim .door__go {
  display: none;
}
@media (min-width: 64em) {
  .door {
    --inset: calc(var(--s-5) + var(--rule));
    grid-template-columns: var(--head) minmax(0, 1fr) auto;
    align-items: center;
    padding: var(--s-4) var(--s-5);
  }
  .door__go,
  .door--slim .door__go {
    display: block;
    padding-left: 0;
    font: var(--t-body);
    font-weight: 700;
  }
  .door > .picto {
    display: block;
  }
}

/* Call buttons. The first one is the slab, the second an ink outline:
   one obvious choice, one fallback. Name, number and hours are stacked: the
   eye never has to cross the slab. */
.calls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
}
.hint {
  display: grid;
  grid-template-columns: var(--hang) minmax(0, 1fr);
  align-items: start;
  font-weight: 700;
}
.hint .picto {
  margin: var(--s-1) 0 0 calc((var(--hang) - var(--picto)) / 2);
}
.call {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--s-3) var(--s-4);
  border: var(--rule) solid transparent;
  border-radius: var(--radius);
  background: var(--slab);
  color: var(--on-slab);
  text-decoration: none;
}
.call__who {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
}
/* The floor keeps the number the largest text of the button when the page
   is zoomed; the pairs can wrap, the figures never shrink under 22 px. */
.call__number {
  font: var(--t-figure);
  font-size: max(1.375rem, min(1.75rem, 8vw));
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}
.call:hover .call__number {
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
}
.call--alt {
  border-color: var(--ink);
  background: none;
  color: var(--ink);
}
@media (min-width: 37.5em) {
  .calls {
    gap: var(--s-3);
    max-width: calc(var(--measure) + 2 * var(--s-5) + 2 * var(--rule));
  }
  .call {
    padding: var(--s-4) var(--s-5);
  }
  .call__number {
    font: var(--t-title);
    font-variant-numeric: tabular-nums;
  }
}
/* On the grid the slab starts with the hanging track: its pictogram hangs
   like any mark, its words sit on the text axis */
@media (min-width: 64em) {
  .calls {
    margin-left: calc(-1 * var(--hang));
    max-width: calc(var(--measure) + var(--hang) + var(--s-5));
  }
  .call {
    padding-left: calc(var(--hang) - var(--rule));
  }
  .call__who .picto {
    position: absolute;
    left: calc((var(--hang) - var(--picto)) / 2 - var(--rule));
    top: calc(var(--s-4) + 0.125rem);
  }
}

/* Search */
.search label {
  display: block;
  margin-bottom: var(--s-2);
  font-weight: 700;
}
.search__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.search input {
  flex: 1 1 10rem;
  min-width: 0;
  height: var(--control);
  padding-inline: var(--s-4);
  border: var(--rule) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: var(--t-body);
}
.search .btn {
  flex: 0 0 auto;
  min-height: var(--control);
  padding-inline: var(--s-4);
}
.search__hint {
  display: none;
  margin-top: var(--s-2);
  font: var(--t-small);
  color: var(--ink-2);
}
@media (min-width: 37.5em) {
  .search__hint {
    display: block;
  }
}
@media (max-width: 22.4em) {
  .nav a.nav__sos .picto {
    display: none;
  }
  .search .btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ------------------------------------------------------------------ */
/* The alert plaque (poster): the only framed object                   */
/* ------------------------------------------------------------------ */

.poster {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  align-items: center;
  padding: var(--s-5) var(--s-4) var(--s-4);
  border: var(--frame) solid var(--pc, var(--ink));
  border-radius: var(--plaque);
  background: var(--pc, var(--paper));
  color: var(--pt, var(--ink));
}
.poster > * {
  grid-column: 1 / -1;
}
.poster > .poster__sign {
  grid-column: 1;
  width: var(--sign-l);
  height: var(--sign-l);
}
.poster > .poster__place {
  grid-column: 2;
}
.poster__name {
  font: var(--t-name);
}
.poster__where {
  font: var(--t-small);
  font-weight: 700;
}
.poster__level {
  margin-top: var(--s-2);
  font: var(--t-poster);
  letter-spacing: -0.035em;
}
.poster__order {
  font: var(--t-lead);
  max-width: var(--measure);
}
/* Everything on a flat colour is bold, the provenance line included
   (.prov resets the weight with its font shorthand) */
.poster__meta {
  display: grid;
  gap: var(--s-1);
  font: var(--t-small);
  font-weight: 700;
}
.poster__meta .prov {
  font-weight: 700;
}
.poster a {
  padding-block: var(--link-pad);
  color: inherit;
}
.poster :focus-visible {
  outline-color: currentColor;
}
/* The flat belongs to official alerts. Reported by a partner or the
   community (.poster--reported): paper, ink frame, the sign keeps its own
   colours, and who says it comes first. */
.poster--ban:not(.poster--reported) {
  --pc: var(--ban);
  --pt: var(--white);
}
.poster--ban:not(.poster--reported) .s-ban {
  --sa: var(--white);
  --sb: var(--ban);
}
.poster--warning:not(.poster--reported) {
  --pc: var(--warning);
  --pt: var(--night);
}
.poster--warning:not(.poster--reported) .s-warning {
  --sa: var(--night);
  --sb: var(--warning);
}
.poster--reported {
  padding-top: 0;
}
.poster__who {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: 0 calc(-1 * var(--s-4)) var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--frame) solid var(--ink);
  border-radius: 0 calc(var(--plaque-r) - var(--frame)) 0 0;
  background: var(--mist);
  font: var(--t-small);
  font-weight: 700;
}
.poster__who .picto {
  margin-top: 0.125rem;
}
.poster--unconfirmed {
  border: var(--frame) dashed var(--unconfirmed);
}
.poster--unconfirmed .poster__who {
  border-bottom: var(--frame) dashed var(--unconfirmed);
}
.poster--lifted {
  border-color: var(--ink-2);
}
@media (max-width: 17.5em) {
  .poster > .poster__place {
    grid-column: 1 / -1;
  }
}
@media (min-width: 64em) {
  .poster {
    --inset: calc(var(--s-6) + var(--frame));
    grid-template-columns: var(--head) minmax(0, 1fr);
    gap: var(--s-4) var(--gutter);
    align-items: start;
    padding: var(--s-6);
  }
  .poster > * {
    grid-column: 2;
  }
  .poster > .poster__sign {
    grid-row: 1 / span 4;
    width: var(--sign-xl);
    height: var(--sign-xl);
  }
  .poster__name {
    font: var(--t-figure);
  }
  .poster__level {
    margin-top: 0;
  }
  .poster--reported {
    padding-top: 0;
  }
  .poster > .poster__who {
    grid-column: 1 / -1;
    margin: 0 calc(-1 * var(--s-6)) var(--s-2);
    padding-inline: var(--s-6);
  }
  .poster--reported > .poster__sign {
    grid-row: 2 / span 4;
  }
}

/* ------------------------------------------------------------------ */
/* States: a sentence behind a rule. Never a tint, never a tick.       */
/* ------------------------------------------------------------------ */

.place__name {
  font: var(--t-title);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.place__where {
  margin-bottom: calc(-1 * var(--s-3));
  font: var(--t-small);
  font-weight: 700;
}
/* A name the server knows to be long (see IMPLEMENTATION) steps down on a phone */
@media (max-width: 37.49em) {
  .place__name--long {
    font: var(--t-figure);
    letter-spacing: -0.02em;
  }
}
/* The rule and the mark live in a track left of the words. On a phone the
   track is thin (words at 40 px, the axis of .prose) and the mark sits in
   the first line; from 600 px the track is --hang and the mark hangs in it. */
.state {
  --track: var(--s-5);
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--track) - var(--water)) minmax(0, 1fr);
  row-gap: var(--s-2);
  align-content: start;
  padding-block: var(--s-1);
  border-left: var(--water) solid var(--ink);
}
.state > * {
  grid-column: 2;
}
.state__mark {
  margin-right: var(--s-2);
  vertical-align: -0.25rem;
}
.state__pre {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font: var(--t-small);
  font-weight: 700;
}
.state__what {
  font: var(--t-lead);
  max-width: var(--measure);
}
/* The reserve of "no known alert" has the size of the state itself */
.state__but {
  font: var(--t-lead);
  font-weight: 400;
  max-width: var(--measure);
}
.state__near {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
}
.state__near > span {
  min-width: 0;
}
.state__near a {
  padding-block: var(--link-pad);
}
/* "We do not know": the rule is dashed. From 600 px the track is wide
   enough to be hatched too; on a phone a hatch this thin would read as a
   column of ticks. No word ever sits on the hatch. */
.state--unknown {
  --dashed: repeating-linear-gradient(to bottom, var(--ink) 0 var(--dash-on), transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))) left top / var(--water) 100% no-repeat;
  padding-left: var(--water);
  border-left: 0;
  background: var(--dashed);
}
.state--unknown .state__but,
.state--near .state__but {
  font: var(--t-body);
}
.state__more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--target);
  font: var(--t-small);
  font-weight: 700;
}
@media (min-width: 37.5em) {
  .state {
    --track: var(--hang);
  }
  .state__mark {
    position: absolute;
    left: calc((var(--track) - var(--water) - var(--picto-l)) / 2);
    top: var(--s-1);
    width: var(--picto-l);
    height: var(--picto-l);
    margin: 0;
  }
  /* A strip of paper between the dashed rule and the hatch */
  .state--unknown {
    background:
      var(--dashed),
      repeating-linear-gradient(135deg, var(--ink-2) 0 var(--hair), transparent var(--hair) var(--hatch)) calc(var(--water) + var(--s-1)) top / calc(var(--track) - var(--water) - var(--s-1) - var(--s-3)) 100% no-repeat;
  }
}

/* What we know (solid) / what we do not know (dashed). The dashed rule is
   drawn in the border box, on the very line of the solid one. */
.known {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}
.known > div {
  padding-top: var(--s-3);
  border-top: var(--rule) solid var(--ink);
}
.known > .known__not {
  border-top-color: transparent;
  background: repeating-linear-gradient(to right, var(--ink) 0 var(--dash-on), transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))) left top / 100% var(--rule) no-repeat border-box;
}
.known h3 {
  margin-bottom: var(--s-2);
  font: var(--t-body);
  font-weight: 700;
}
/* In one column the label of a split section already carries the solid rule */
@media (max-width: 63.99em) {
  .section--split .known > div:first-child {
    padding-top: 0;
    border-top: 0;
  }
}
@media (min-width: 64em) {
  .known {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--gutter);
  }
}

/* ------------------------------------------------------------------ */
/* Lists                                                               */
/* ------------------------------------------------------------------ */

.prose li {
  position: relative;
  padding-left: var(--s-5);
}
.prose li + li {
  margin-top: var(--s-2);
}
/* A link in a list of facts is an action (the original of an alert) */
.prose a {
  padding-block: var(--link-pad);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.875rem - var(--hair));
  width: var(--s-3);
  border-top: var(--rule) solid var(--ink);
}

/* Level badge: sign and word. The word is ink, never a link colour. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
}

/* Provenance: one line of text. Visible, never louder than the level. */
.prov {
  font: var(--t-small);
}
.prov .picto {
  margin-right: var(--s-1);
  vertical-align: -0.25rem;
}
.prov a {
  font-weight: 700;
}
/* Reading flag, never a link: solid when reviewed, dashed when only a
   program read it. In lists only the exception (dashed) is shown. */
.flag {
  display: inline-block;
  padding: 0 var(--s-2);
  border: var(--hair) solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  font: var(--t-small);
  font-weight: 700;
}
.flag--auto {
  border-style: dashed;
}

/* Place row: one component for alerts, search results and sources.
   The whole row is the link (stretched ::after, no :has needed). */
.row {
  position: relative;
  display: grid;
  grid-template-columns: var(--hang) minmax(0, 1fr) auto;
  row-gap: var(--s-2);
  padding-block: var(--s-4);
  border-bottom: var(--hair) solid var(--line);
}
.row__mark {
  grid-column: 1;
  grid-row: 1;
}
.row__main {
  grid-column: 2;
  grid-row: 1;
}
.row__side {
  grid-column: 2 / -1;
  grid-row: 2;
}
.row__side > * + * {
  margin-top: var(--s-1);
}
.row__go {
  grid-column: 3;
  grid-row: 1;
  margin: var(--s-1) 0 0 var(--s-2);
}
.row__name {
  font: var(--t-name);
}
/* Names break at a syllable (the page is in French), long words only;
   overflow-wrap stays as the net for what no dictionary knows. */
.poster__name,
.place__name,
.row__name {
  -webkit-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 4;
  -webkit-hyphenate-limit-after: 4;
  hyphenate-limit-chars: 10 4 4;
}
.row__name a {
  color: var(--ink);
  text-decoration: none;
}
.row__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.row__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
}
.row__name a:focus-visible {
  outline: none;
}
.row__name a:focus-visible::after {
  outline: var(--frame) solid var(--ink);
  outline-offset: 0;
}
.row__state {
  font: var(--t-small);
  color: var(--ink-2);
}
.row__state strong {
  font: var(--t-body);
  font-weight: 700;
  color: var(--ink);
}
.row__where {
  display: block;
}
.row__text {
  max-width: var(--measure);
}
.row .prov {
  color: var(--ink-2);
}
.row .prov strong,
.row .prov .picto {
  color: var(--ink);
}
/* The one link allowed inside a row besides its own: the original of an
   alert that has no page here, and whoever reported an alert when it is
   not an authority (a partner is named and linked wherever it is shown).
   It sits above the stretched link of the row. */
.row .prov a {
  position: relative;
  z-index: 1;
  padding-block: var(--link-pad);
}
/* Exception flag ("read by a program"), right under the level it qualifies */
.row__flag {
  margin-top: var(--s-1);
}
/* The mark is the pictogram of a state, not the sign of a level */
.row--state > .row__mark {
  width: var(--picto-l);
  height: var(--picto-l);
  margin-left: var(--s-1);
}
@media (min-width: 64em) {
  /* Name on four columns, consign on five; the mark hangs left of the axis */
  .row {
    grid-template-columns: var(--span-4) minmax(0, 1fr) auto;
    column-gap: var(--gutter);
  }
  .row__mark {
    position: absolute;
    grid-area: auto;
    top: var(--s-4);
    left: calc(-1 * var(--hang));
  }
  .row--state > .row__mark {
    margin-left: 0;
  }
  .row__main {
    grid-column: 1;
  }
  .row__side {
    grid-column: 2;
    grid-row: 1;
  }
  .row__go {
    grid-column: 3;
    margin-left: 0;
  }
  .row__name a::after {
    left: calc(-1 * var(--hang));
  }
}

/* Counter per level: also the legend of the list */
.tally {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
  margin-top: var(--s-2);
}
.tally li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 700;
}
.tally b {
  margin-inline: var(--s-1);
  font: var(--t-name);
  font-variant-numeric: tabular-nums;
}
/* Bounded facts: what the list covers, and what it does not */
.bounds {
  margin-top: var(--s-2);
  font: var(--t-small);
}
.bounds li + li {
  margin-top: var(--s-1);
}
.bounds a {
  padding-block: var(--link-pad);
  font-weight: 700;
}
.bounds__gap {
  padding-left: var(--s-3);
  background: repeating-linear-gradient(to bottom, var(--ink) 0 var(--dash-on), transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))) left top / var(--rule) 100% no-repeat;
}
.group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-bottom: var(--s-1);
  border-bottom: var(--hair) solid var(--line);
  font: var(--t-small);
  font-weight: 700;
}
.group:first-child {
  margin-top: 0;
}
.group span {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* Fact list: label on two columns, value on the next ones */
.facts > div {
  padding-block: var(--s-3);
  border-bottom: var(--hair) solid var(--line);
}
.facts dt {
  font: var(--t-small);
  color: var(--ink-2);
}
.facts dd {
  font-weight: 700;
}
.facts dd .small {
  display: block;
  margin-top: var(--s-1);
  font-weight: 400;
}
.facts dd a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--target);
}
.facts dd .small a {
  display: inline;
  padding-block: var(--link-pad);
}
/* A padded inline link keeps its 44 px target, but its focus ring hugs the
   words: around the padding it would strike through the lines above and
   below. */
.row .prov a:focus-visible,
.bounds a:focus-visible,
.poster a:focus-visible,
.state__near a:focus-visible,
.prose a:focus-visible,
.facts dd .small a:focus-visible {
  outline-offset: calc(var(--frame) - var(--link-pad));
}
@media (min-width: 37.5em) {
  .facts > div {
    display: grid;
    grid-template-columns: var(--label) minmax(0, 1fr);
    column-gap: var(--gutter);
    align-items: baseline;
  }
}

/* Advice: an outlined pictogram and one verb. Outline informs, fill acts. */
.advice li {
  position: relative;
  display: grid;
  grid-template-columns: var(--hang) minmax(0, 1fr);
  align-items: center;
  padding-block: var(--s-3);
  border-bottom: var(--hair) solid var(--line);
  font-weight: 700;
}
.advice .picto {
  width: var(--picto-l);
  height: var(--picto-l);
  color: var(--plouf);
}

/* What to look for on the water: flat tiles */
.clues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: var(--s-2);
}
.clues li {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--mist);
  font: var(--t-small);
  font-weight: 700;
}

/* Emergency steps: a figure, an order */
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: var(--hang) minmax(0, 1fr);
  align-items: baseline;
  padding-block: var(--s-3);
  border-bottom: var(--hair) solid var(--line);
  font: var(--t-lead);
}
.steps b {
  font: var(--t-figure);
  font-variant-numeric: tabular-nums;
}
.steps a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font: var(--t-body);
  font-weight: 700;
}

/* On the grid every mark leaves the text column and hangs left of the axis.
   0.625rem centres a 32 px mark on the first 28 px line of a 12 px padded row. */
@media (min-width: 64em) {
  .state {
    margin-left: calc(-1 * var(--hang));
  }
  .advice li,
  .steps li {
    display: block;
  }
  .advice .picto,
  .steps b {
    position: absolute;
    left: calc(-1 * var(--hang));
    top: 0.625rem;
  }
  .section__body > .prose,
  .text > .prose {
    margin-left: calc(-1 * var(--s-5));
    max-width: calc(var(--measure) + var(--s-5));
  }
}

/* Notice: a flat tint, no frame */
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--mist);
  max-width: calc(var(--measure) + 2 * var(--s-4) + var(--picto) + var(--s-3));
}
.note p + p {
  margin-top: var(--s-2);
}
/* Right under the emergency door: clear of the slab, and on the grid its
   text starts on the axis like every other block (the mark hangs left). */
.door + .note {
  margin-top: var(--s-4);
}
@media (min-width: 64em) {
  .door + .note {
    margin-left: calc(var(--span-3) + var(--gutter) - var(--s-4) - var(--picto) - var(--s-3));
  }
}

/* History: a sentence, a frieze of thin bars, the table on demand */
.years {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-2);
}
.years li {
  flex: 1 1 3rem;
  padding-top: var(--s-2);
  border-top: var(--water) solid var(--ink);
  font: var(--t-small);
  color: var(--ink-2);
}
.years b {
  display: block;
  font: var(--t-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.years .years--under {
  padding-top: calc(var(--s-2) + var(--water) - var(--hair));
  border-top: var(--hair) solid var(--ink);
}
.years .years--none {
  border-top-color: transparent;
  background: repeating-linear-gradient(to right, var(--ink-2) 0 var(--dash-on), transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))) left top / 100% var(--water) no-repeat border-box;
}
.fold > summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--target);
  color: var(--action);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: var(--hair);
  text-underline-offset: 0.2em;
  list-style: none;
  cursor: pointer;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold[open] > summary .picto {
  transform: rotate(90deg);
}
.table {
  table-layout: fixed;
}
.table th:first-child {
  width: 4rem;
}
.table th:nth-child(2) {
  width: 5.5rem;
}
.table th,
.table td {
  padding: var(--s-2) var(--s-3) var(--s-2) 0;
  border-bottom: var(--hair) solid var(--line);
  font: var(--t-small);
  font-variant-numeric: tabular-nums;
  text-align: left;
  vertical-align: baseline;
}
.table thead th {
  border-bottom: var(--rule) solid var(--ink);
  color: var(--ink-2);
  font-weight: 400;
}
.table tbody th {
  font: var(--t-label);
  font-variant-numeric: tabular-nums;
}
.table .table__risk {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.table td {
  color: var(--ink-2);
}
@media (min-width: 64em) {
  /* Year on two columns like a fact label, count on one */
  .table th:first-child {
    width: calc(var(--span-2) + var(--gutter));
  }
  .table th:nth-child(2) {
    width: calc(var(--col) + var(--gutter));
  }
}

/* Links out: a row per link */
.links li {
  border-bottom: var(--hair) solid var(--line);
}
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--target);
  padding-block: var(--s-2);
  font-weight: 700;
}
.links a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Empty states: the only place where the mascot lives */
.empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  justify-items: start;
}
.empty > * {
  min-width: 0;
  max-width: 100%;
}
.empty .mascot {
  width: 6rem;
  height: 6.25rem;
}
@media (min-width: 37.5em) {
  .empty {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--gutter);
    align-items: start;
  }
  .empty > * {
    grid-column: 2;
  }
  .empty > .mascot {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 9rem;
    height: 9.375rem;
  }
}
@media (min-width: 64em) {
  /* The mascot hangs in the label columns, the words keep the axis */
  .empty {
    display: block;
    position: relative;
    min-height: 9.375rem;
  }
  .empty > * + * {
    margin-top: var(--s-4);
  }
  .empty > .mascot {
    position: absolute;
    top: 0;
    right: calc(100% + var(--gutter) + var(--s-6));
    margin: 0;
  }
}

/* Long text */
.text > * + * {
  margin-top: var(--s-4);
}
.text > p,
.text > ul {
  max-width: var(--measure);
}
.text h3 {
  margin-top: var(--s-5);
  font: var(--t-body);
  font-weight: 700;
}
.text p a {
  padding-block: var(--s-1);
}
.defs > div {
  padding-block: var(--s-3);
  border-bottom: var(--hair) solid var(--line);
}
.defs dt {
  font-weight: 700;
}
.defs dt .picto {
  margin-right: var(--s-1);
  vertical-align: -0.1875rem;
}
.defs dd {
  margin-top: var(--s-1);
  max-width: var(--measure);
}
:target {
  scroll-margin-top: var(--s-5);
}

/* ------------------------------------------------------------------ */
/* Forced colours, motion, print                                       */
/* ------------------------------------------------------------------ */

/* Pictograms follow the forced text colour. Signs keep their own colours
   on the page, and become CanvasText on a plaque, whose flat is gone. */
@media (forced-colors: active) {
  .poster,
  .door,
  .call,
  .btn,
  .nav a.nav__sos {
    border-color: CanvasText;
  }
  .state--unknown {
    padding-left: 0;
    border-left: var(--water) dashed CanvasText;
    background: none;
  }
  .known > .known__not {
    border-top: var(--rule) dashed CanvasText;
    background: none;
  }
  .years .years--none {
    border-top: var(--water) dashed CanvasText;
    background: none;
  }
  .bounds__gap {
    border-left: var(--rule) dashed CanvasText;
    background: none;
  }
  .clues li,
  .note,
  .poster__who {
    border: var(--hair) solid CanvasText;
  }
  .sign,
  .logo,
  .mascot {
    forced-color-adjust: none;
  }
  /* Three classes: it has to beat the inverted sign of an official plaque */
  .poster.poster--ban .sign,
  .poster.poster--warning .sign,
  .poster.poster--unconfirmed .sign,
  .poster.poster--lifted .sign {
    --sa: CanvasText;
    --sb: Canvas;
    --so: Canvas;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a {
    transition: text-decoration-thickness 80ms;
  }
}
@media print {
  .top .nav,
  .door,
  .search {
    display: none;
  }
}
