/* ECPO institutional surface (spec 12.1).

   Concept: a letterhead. Paper ground, one document column about the width
   of an A4 sheet, navy for structure, a single gold hairline, serif titles
   over a neutral sans with tabular numerals. One light theme by design.
   Strict CSP (style-src 'self'): everything lives in this file, nothing is
   inline and no script is needed. */

:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --gold: #c9a24a;
  --paper: #f7f7f4;
  --paper-deep: #eeece5;
  --white: #ffffff;
  --ink: #2b2b2b;
  --muted: #595e66; /* 6.1:1 on paper */
  --line: #d6d3cb;
  --line-strong: #6b7079; /* 4.6:1 on paper: input borders */
  --alert: #8a1c1c; /* 8.6:1 on paper */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --page: 50rem;
  --measure: 38rem;
  --gutter-left: max(16px, env(safe-area-inset-left, 0px));
  --gutter-right: max(16px, env(safe-area-inset-right, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}

img {
  max-width: 100%;
  height: auto;
}

/* Type --------------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 2.125rem;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.375rem;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
}

p,
ul,
ol {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

.kicker {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Focus: gold ring with a navy inner line, so the indicator keeps 3:1
   against the paper ground and against navy buttons alike. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy);
}

.page:focus,
.page:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Skip link ---------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter-left);
  z-index: 10;
  padding: 0.625rem 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--navy);
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

/* Masthead: seal, wordmark, double rule ------------------------------------ */

.masthead {
  position: relative;
  border-bottom: 3px solid var(--navy);
}

.masthead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--gold);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  max-width: var(--page);
  margin-inline: auto;
  padding-block: 1.75rem 1.625rem;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

.masthead__seal {
  flex: none;
  width: 6rem;
  height: 6rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: var(--serif);
  color: var(--navy);
}

.wordmark__mark {
  margin-bottom: 0.45rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.32em;
}

.wordmark__name {
  font-size: 1.125rem;
  line-height: 1.35;
}

.wordmark__name--fr {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--muted);
}

/* Page column -------------------------------------------------------------- */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-block: 3rem 5rem;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

/* Messages (django.contrib.messages) --------------------------------------- */

.messages {
  display: grid;
  gap: 0.5rem;
  max-width: none;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.messages__item {
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
}

.messages__item--warning {
  border-left-color: var(--gold);
}

.messages__item--error {
  border-left-color: var(--alert);
}

/* Status panel (verify page) ----------------------------------------------- */

.status {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem 1.125rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
}

.status__label {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.status__text {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.35;
  color: var(--ink);
}

.status--none {
  border-left-color: var(--alert);
}

.status--none .status__label {
  color: var(--alert);
}

/* Facts table (key and value) ---------------------------------------------- */

.facts {
  width: 100%;
  margin: 0 0 2rem;
  border-collapse: collapse;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.facts th,
.facts td {
  padding: 0.7rem 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.facts tr:first-child th,
.facts tr:first-child td {
  border-top: 0;
}

.facts th {
  width: 15.5rem;
  padding-right: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.facts td {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.facts .hash {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Generic tables (allauth) ------------------------------------------------- */

.table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table th {
  font-weight: 600;
  color: var(--navy);
}

.table thead th {
  border-bottom: 2px solid var(--navy);
}

.table .td--right {
  text-align: right;
}

/* Forms -------------------------------------------------------------------- */

.form {
  max-width: 26rem;
}

.field {
  max-width: 26rem;
  margin: 0 0 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  color: var(--navy);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.field input:disabled,
.field input[readonly],
.field textarea[readonly] {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--paper-deep);
  opacity: 1;
}

.field textarea {
  min-height: 6rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  resize: vertical;
}

/* Every control has a visible label, so the placeholder would only
   repeat it. */
.field ::placeholder {
  color: transparent;
  opacity: 1;
}

.field--check {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: flex-start;
}

.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.25rem 0 0;
  accent-color: var(--navy);
}

.field--check label {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

.field__help {
  margin: 0.375rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.field--error input,
.field--error textarea {
  border-width: 2px;
  border-color: var(--alert);
}

.errorlist {
  margin: 0.375rem 0 0;
  padding: 0;
  font-weight: 600;
  color: var(--alert);
  list-style: none;
}

.form__errors {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--alert);
}

.form__errors .errorlist {
  margin: 0;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
}

/* Buttons ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.5rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 2px;
}

.button:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.button--secondary {
  color: var(--navy);
  background: transparent;
}

.button--secondary:hover {
  background: var(--paper-deep);
  border-color: var(--navy);
}

.button--link {
  padding-inline: 0.25rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  background: transparent;
  border-color: transparent;
}

.button--link:hover {
  text-decoration-thickness: 2px;
  background: transparent;
  border-color: transparent;
}

.button--danger {
  color: var(--alert);
  background: transparent;
  border-color: var(--alert);
}

.button--danger:hover {
  color: var(--white);
  background: var(--alert);
  border-color: var(--alert);
}

.button + .button {
  margin-left: 0.5rem;
}

.form__actions .button,
.button-group .button,
.panel__actions .button {
  margin: 0;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.button-group--vertical {
  flex-direction: column;
  align-items: flex-start;
}

/* Panels, rules, images, details (allauth) --------------------------------- */

.panel {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.panel h2 {
  margin-top: 0;
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rule {
  height: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.image {
  display: block;
  margin: 0 0 1.5rem;
}

.image--qr {
  width: 12.5rem;
  height: 12.5rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.alert {
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
}

.details summary {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

/* Footer ------------------------------------------------------------------- */

.footer {
  color: var(--muted);
  background: var(--paper-deep);
  border-top: 2px solid var(--navy);
}

.footer__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding-block: 2rem 2.5rem;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

.footer__mark {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--navy);
}

.footer__notice {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.footer__operator {
  margin: 1.25rem 0 0;
  font-size: 1rem;
}

/* Narrow screens ----------------------------------------------------------- */

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  h1 {
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .masthead__inner {
    gap: 1rem;
    padding-block: 1.25rem 1.125rem;
  }

  .masthead__seal {
    width: 3.75rem;
    height: 3.75rem;
  }

  .wordmark__mark {
    margin-bottom: 0.25rem;
    font-size: 1.625rem;
    letter-spacing: 0.26em;
  }

  .wordmark__name {
    font-size: 0.9375rem;
  }

  .wordmark__name--fr {
    font-size: 0.875rem;
  }

  .page {
    padding-block: 2rem 3.5rem;
  }

  .status__text {
    font-size: 1.1875rem;
  }

  .facts th {
    width: 38%;
    padding-right: 1rem;
  }
}

/* Institution site (phase 1e) ============================================= */

/* Masthead additions: brand link and language switch ---------------------- */

.masthead__inner {
  flex-wrap: wrap;
  justify-content: space-between;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.masthead__brand:hover .wordmark__mark {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.langswitch {
  flex: none;
  margin: 0;
}

.langswitch__set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.langswitch__button {
  min-height: 2.5rem;
  padding: 0.375rem 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  text-transform: capitalize;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
}

.langswitch__button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.langswitch__button[aria-current="true"] {
  font-weight: 600;
  border-bottom-color: var(--gold);
}

/* Site navigation below the masthead --------------------------------------- */

.sitenav {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.sitenav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.375rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter-right) 0 var(--gutter-left);
  list-style: none;
}

.sitenav__list a {
  display: inline-block;
  padding: 0.75rem 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.sitenav__list a:hover {
  border-bottom-color: var(--line-strong);
}

.sitenav__list a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* Document head: kicker, title, lede ---------------------------------------- */

.document__head {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.document__head h1 {
  margin-bottom: 1.25rem;
}

.lede {
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

.meta {
  font-size: 0.9375rem;
  color: var(--muted);
}

.aside {
  padding-left: 1rem;
  font-size: 1rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
}

.notice {
  max-width: none;
  padding: 1rem 1.25rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}

.address {
  font-variant-numeric: tabular-nums;
}

.mark {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.05rem 0.4rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: center;
  background: var(--navy);
  border-radius: 2px;
}

.plain,
.linklist {
  padding-left: 0;
  list-style: none;
}

.plain li + li,
.linklist li + li {
  margin-top: 0.375rem;
}

.numbered {
  padding-left: 1.5rem;
}

.numbered li {
  padding-left: 0.375rem;
  margin-bottom: 0.5rem;
}

.numbered li::marker {
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Start page entries --------------------------------------------------------- */

.entries {
  margin: 0 0 3rem;
}

.entries__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
}

.entry__num {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.entry__title {
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
}

.entry__title a {
  text-decoration: none;
}

.entry__title a:hover {
  text-decoration: underline;
}

.entry__text {
  flex: 1 0 auto;
  margin: 0 0 1rem;
  font-size: 1rem;
}

.entry__more {
  margin: 0;
  font-size: 1rem;
}

/* Numbered procedure steps --------------------------------------------------- */

.steps {
  max-width: none;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 2px solid var(--navy);
}

.step {
  position: relative;
  padding: 1.5rem 0 1.5rem 4.5rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.35rem;
  left: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.step__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.step p {
  margin-bottom: 0.75rem;
}

.step__facts {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  max-width: var(--measure);
  margin: 0;
  font-size: 1rem;
}

.step__facts dt {
  font-weight: 600;
  color: var(--navy);
}

.step__facts dd {
  margin: 0;
}

.steps--compact .step {
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

/* Checkpoints H1 to H3 ------------------------------------------------------- */

.checkpoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: none;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.checkpoint {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.125rem 1.125rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.checkpoint h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
}

.checkpoint p {
  margin: 0;
  font-size: 1rem;
}

/* Document tables ------------------------------------------------------------ */

.table-wrap {
  max-width: 100%;
  margin: 0 0 1.5rem;
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.table-wrap .doc-table {
  margin-bottom: 0;
}

.doc-table caption {
  padding: 0 0 0.625rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  caption-side: top;
}

.doc-table th,
.doc-table td {
  padding: 0.7rem 1rem 0.7rem 0;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.doc-table th:last-child,
.doc-table td:last-child {
  padding-right: 0;
}

.doc-table thead th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-top: 0;
  border-bottom: 1px solid var(--navy);
}

.doc-table tbody th {
  font-weight: 600;
  color: var(--navy);
}

.doc-table .num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.doc-table td.num,
.doc-table thead th.num {
  text-align: right;
}

.doc-table tbody th.num {
  text-align: left;
}

.doc-table .hash {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.doc-table .plain {
  margin: 0;
}

.doc-table--ladder th:first-child,
.doc-table--ladder td:first-child {
  width: 4rem;
}

.doc-table--catalogue th:first-child,
.doc-table--catalogue td:first-child {
  width: 3.5rem;
}

.doc-table--catalogue td:last-child {
  width: 11rem;
}

.doc-table--criteria th:first-child,
.doc-table--criteria td:first-child,
.doc-table--decision th:first-child,
.doc-table--decision td:first-child {
  width: 13rem;
}

.doc-table--stats th,
.doc-table--stats td {
  padding-right: 0.75rem;
  font-size: 0.9375rem;
}

/* Definition lists ------------------------------------------------------------ */

.facts-list {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
}

.facts-list dt {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.facts-list dd {
  margin: 0.125rem 0 0;
}

/* Legal module -------------------------------------------------------------- */

.country {
  margin-top: 2.5rem;
}

.country__code {
  margin-left: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  vertical-align: middle;
  color: var(--muted);
}

.norms {
  max-width: none;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.norm {
  padding: 1rem 0 1.125rem;
  border-bottom: 1px solid var(--line);
}

.norms--compact .norm {
  padding: 0.625rem 0;
}

.norm p {
  max-width: var(--measure);
  margin: 0;
}

.norm__title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.norm__region {
  margin-left: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.norm__cite {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.norm__summary {
  margin-top: 0.375rem;
}

.norm__meta {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.norm__meta a {
  margin-left: 0.5rem;
}

.norm__number {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 2px;
}

/* Footer navigation ----------------------------------------------------------- */

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  max-width: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  font-size: 1rem;
  list-style: none;
  border-top: 1px solid var(--line);
}

/* Narrow screens for the site pages ------------------------------------------ */

@media (max-width: 48rem) {
  .entries__list,
  .checkpoints {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 40rem) {
  .masthead__inner {
    gap: 0.75rem 1rem;
  }

  .masthead__brand {
    gap: 1rem;
  }

  .langswitch {
    width: 100%;
  }

  .langswitch__button {
    padding-left: 0;
    padding-right: 0.75rem;
  }

  .sitenav__list {
    gap: 0 1.125rem;
  }

  .sitenav__list a {
    padding: 0.625rem 0 0.5rem;
    font-size: 0.9375rem;
  }

  .document__head {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
  }

  .lede {
    font-size: 1.125rem;
  }

  .step {
    padding-left: 3rem;
  }

  .step::before {
    font-size: 1.375rem;
  }

  .step__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem;
  }

  .step__facts dd {
    margin-bottom: 0.5rem;
  }

  .doc-table th,
  .doc-table td {
    padding-right: 0.75rem;
  }

  .doc-table--criteria th:first-child,
  .doc-table--criteria td:first-child,
  .doc-table--decision th:first-child,
  .doc-table--decision td:first-child {
    width: auto;
    min-width: 8rem;
  }

  .doc-table--catalogue td:last-child {
    width: auto;
  }
}
