/* Atenis · Intergovernmental space agency. One ink, one paper, one ultramarine (guide 10, Part I).
   Light only: Atenis is printed, not lit. No motion beyond a 160 ms fade. */

:root {
  --paper-50: #FAF9F5;   /* fields */
  --paper: #F2F0EA;      /* ground */
  --paper-200: #E6E3DA;  /* bands */
  --paper-300: #CFCABD;  /* rules */
  --ink-400: #8E9298;    /* disabled only */
  --ink-600: #4D5566;    /* secondary text, 6.57:1 on paper */
  --ink: #0B1220;        /* text, the symbol, rims */
  --ultra-200: #BFC8FF;
  --ultra: #2F4BFF;      /* the agency: a field, the tittle, a rule, links (5.16:1 on paper) */
  --ultra-600: #2238D6;  /* pressed, hover */
  --ultra-900: #141E52;
  --verdigris: #0B7553;  /* confirmed, open */
  --amber: #8A5800;      /* pending, closing */
  --vermilion: #BF2E0E;  /* refused, closed */

  --sans: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 16px;
  --col-gap: 24px;
  --wrap: 1200px;
  --rule: 1px solid var(--paper-300);  /* between rows */
  --rim: 1px solid var(--ink);         /* section heads */
  --bar: 2px solid var(--ultra);       /* the selected item */
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::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: 400 1rem/1.6 var(--sans);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ultra); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ultra-600); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ultra); outline-offset: 3px; border-radius: 1px; }
main:focus { outline: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
p { text-wrap: pretty; }
abbr { text-decoration: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Text roles (guide chapter 08) ---------------------------------------------------------------------------------- */
.label {
  font: 600 0.75rem/1.3 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.ref, .mono { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0; }
.ref { color: var(--ink-600); }
.display {
  font-weight: 300;
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--ink-600); max-width: 40em; }
.secondary { color: var(--ink-600); }
.num { font-family: var(--mono); font-feature-settings: "zero" 1; }

/* Skip link and the no-script note ------------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--paper); }
.noscript-note { background: var(--ink); color: var(--paper); padding: 10px var(--gutter); font-size: 0.875rem; margin: 0; }

/* Header: the agency lockup, four sections, an ink rule (rules for every Atenis page) --------------------------- */
.site-header { border-bottom: var(--rim); background: var(--paper); }
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "lockup nav lang";
  align-items: center;
  column-gap: 32px;
  min-height: 76px;
}
.lockup {
  grid-area: lockup;
  display: inline-flex; align-items: center; gap: 0.3em;
  color: var(--ink); text-decoration: none;
  font-size: 1.75rem; /* the wordmark's size; everything else in the lockup is relative to it */
}
.lockup:hover { color: var(--ink); }
.symbol { width: 0.62em; height: 0.62em; flex: none; position: relative; top: 0.02em; } /* 0.86 of the cap height */
.symbol--sm { width: 16px; height: 16px; }
.symbol--inline { display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.1em; }
.wordmark {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; line-height: 1;
  position: relative; top: -0.04em;
}
.wm-i { position: relative; display: inline-block; }
.wm-i::after { /* the tittle: a square as wide as the stem, in Ultramarine */
  content: ""; position: absolute; left: 50%; top: -0.06em;
  width: 0.135em; height: 0.135em; margin-left: -0.0675em; background: var(--ultra);
}
.descriptor {
  margin-left: 0.5em; padding-left: 0.6em;
  border-left: 1px solid var(--ink);
  font: 600 0.62rem/1.25 var(--sans); letter-spacing: 0.09em; text-transform: uppercase;
  align-self: center;
}
.main-nav { grid-area: nav; justify-self: end; }
.main-nav ul { list-style: none; padding: 0; display: flex; gap: 4px 28px; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: 6px 0 4px; color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.main-nav a[aria-current] { border-bottom-color: var(--ultra); }
.lang-switch {
  grid-area: lang; font-size: 0.875rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 6px 0 6px 20px; border-left: var(--rule);
}
.lang-switch:hover { color: var(--ultra-600); text-decoration: underline; }

@media (max-width: 1060px) {
  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "lockup lang" "nav nav";
    min-height: 0; padding-top: 14px;
  }
  .main-nav { justify-self: stretch; border-top: var(--rule); margin-top: 12px; }
  .main-nav ul { gap: 0 22px; }
  .main-nav a { padding: 10px 0 8px; }
  .lang-switch { padding-left: 14px; }
}
@media (max-width: 480px) {
  .lockup { font-size: 1.5rem; }
  .descriptor { display: none; }
  .main-nav ul { gap: 0 18px; }
  .main-nav a { font-size: 0.9375rem; }
}

/* Page head: label, the meridian rule, a title (chapter openers of the guide) ------------------------------------ */
.page-head { padding: 56px 0 48px; border-bottom: var(--rule); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.page-head-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: start; }
.page-head .big-num {
  font: 300 clamp(3.5rem, 2rem + 6vw, 6.5rem)/0.85 var(--sans); letter-spacing: -0.04em;
  padding-right: 28px; border-right: 1px solid currentColor; min-height: 100%;
}
.page-head h1 { margin-top: 10px; }
.page-head .lead { margin-top: 16px; }
.page-head .label + h1 { margin-top: 14px; }
@media (max-width: 600px) {
  .page-head { padding: 36px 0 32px; }
  .page-head-grid { column-gap: 18px; }
  .page-head .big-num { padding-right: 18px; }
}

/* The one Ultramarine band per page: the page's purpose ----------------------------------------------------------- */
.band { background: var(--ultra); color: #fff; }
.band a { color: #fff; }
.band .label, .band .ref { color: #fff; }
.band .lead { color: #fff; opacity: 1; }
.band .meta-line { color: #fff; }
.page-head.band { border-bottom: 0; }
.band .button { background: #fff; color: var(--ultra-900); border-color: #fff; }
.band .button:hover { background: var(--paper); color: var(--ultra-900); }
.band :focus-visible { outline-color: #fff; }

/* Buttons --------------------------------------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--sans); letter-spacing: 0;
  background: var(--ultra); color: #fff; border: 1px solid var(--ultra); border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.button:hover { background: var(--ultra-600); border-color: var(--ultra-600); color: #fff; text-decoration: none; }
.button:active { background: var(--ultra-900); }
.button[disabled] { background: var(--paper-200); border-color: var(--paper-300); color: var(--ink-600); cursor: not-allowed; }
.button .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }
.text-link .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Sections and the two-column layout with a local navigation ---------------------------------------------------- */
.section { padding: 56px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: var(--rim); padding-top: 10px; margin-bottom: 20px; }
.section-head .aside { font-size: 0.875rem; color: var(--ink-600); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--col-gap); }
  .layout > .local-nav { position: sticky; top: 24px; align-self: start; }
}
.local-nav .label { padding-bottom: 8px; border-bottom: var(--rim); }
.local-nav ul { list-style: none; padding: 0; }
.local-nav li { border-bottom: var(--rule); }
.local-nav a { display: block; padding: 10px 0 10px 12px; color: var(--ink); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.local-nav a:hover { color: var(--ultra-600); }
.local-nav a[aria-current="page"] { border-left: var(--bar); font-weight: 600; }
@media (max-width: 959px) {
  .local-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; border-bottom: var(--rule); }
  .local-nav li { border: 0; }
  .local-nav a { padding: 10px 0 8px; border-left: 0; margin: 0; border-bottom: 2px solid transparent; font-size: 0.9375rem; }
  .local-nav a[aria-current="page"] { border-left: 0; border-bottom: var(--bar); }
}

/* Prose ----------------------------------------------------------------------------------------------------------- */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-600); }
.prose strong { font-weight: 600; }
.content > * + * { margin-top: 48px; }
.content > .prose + .prose { margin-top: 1em; }

/* Registers: number, name, status in words (every list is a register) ------------------------------------------- */
.register { list-style: none; padding: 0; border-top: var(--rim); }
.register > li {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: var(--rule);
}
.register .r-num { font-family: var(--mono); font-weight: 500; color: var(--ink-600); font-size: 0.875rem; }
.register .r-name { font-weight: 600; }
.register .r-name a { color: var(--ink); text-decoration: none; }
.register .r-name a:hover { color: var(--ultra-600); text-decoration: underline; }
.register .r-desc { display: block; font-weight: 400; color: var(--ink-600); font-size: 0.9375rem; margin-top: 2px; }
.register .r-status { font-size: 0.875rem; text-align: right; white-space: nowrap; }
.register > li.is-current .r-name::before { content: ""; }
@media (max-width: 600px) {
  .register > li { grid-template-columns: 2.75rem minmax(0, 1fr); row-gap: 4px; }
  .register .r-status { grid-column: 2; text-align: left; }
}
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; }
.status::before { content: ""; width: 9px; height: 9px; flex: none; border: 1.5px solid currentColor; }
.status--open::before { background: currentColor; }
.status--open { color: var(--verdigris); }
.status--closed { color: var(--ink-600); }
.status--pending { color: var(--amber); }
.status--pending::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status--done { color: var(--ink-600); }
.status--done::before { background: var(--ink-600); border-color: var(--ink-600); }

/* Facts: a definition list as a filed table ------------------------------------------------------------------------ */
.facts { border-top: var(--rim); }
.facts > div { display: grid; grid-template-columns: minmax(7.5rem, 40%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: var(--rule); font-size: 0.9375rem; }
.facts dt { font: 600 0.75rem/1.6 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-600); padding-top: 1px; }
.facts dd { margin: 0; }
.band .facts { border-top-color: #fff; }
.band .facts > div { border-bottom-color: rgba(255, 255, 255, 0.35); }
.band .facts dt { color: var(--ultra-200); }

/* Tables -------------------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.filed { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
table.filed caption { text-align: left; padding-bottom: 8px; }
table.filed th { text-align: left; font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-600); padding: 8px 12px 8px 0; border-bottom: var(--rim); vertical-align: bottom; }
table.filed td { padding: 11px 12px 11px 0; border-bottom: var(--rule); vertical-align: top; }
table.filed td.n, table.filed th.n { text-align: right; font-family: var(--mono); font-weight: 500; font-feature-settings: "zero" 1; }
table.filed td.n { font-size: 0.875rem; }
table.filed tfoot td { border-bottom: 0; border-top: var(--rim); font-weight: 600; }

/* Columns of short text, separated by rules, never boxed ---------------------------------------------------------- */
.cols { display: grid; gap: 28px var(--col-gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cols > * { border-top: var(--rim); padding-top: 12px; }
.cols h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.cols p { color: var(--ink-600); font-size: 0.9375rem; }
.cols p + p { margin-top: 0.6em; }
.cols .label { display: block; margin-bottom: 8px; }
.cols a.h { color: var(--ink); text-decoration: none; }
.cols a.h:hover { color: var(--ultra-600); text-decoration: underline; }

/* Spacing helpers ------------------------------------------------------------------------------------------------- */
.spaced { margin-top: 24px; }
.spaced-lg { margin-top: 48px; }
.small { font-size: 0.875rem; }

/* Home ------------------------------------------------------------------------------------------------------------ */
/* The hero is the page's one Ultramarine band: the current notice, with the hall beside it. */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 48px; align-items: center; }
  .hero-text { padding: 24px 0; }
}
.hero h1 { margin-top: 16px; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); }
.hero .lead { margin-top: 20px; max-width: 34em; }
.hero-links { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; background: var(--paper-200); }
.figure figcaption { margin-top: 8px; font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; color: var(--ink-600); }
/* Phone: the photograph closes the band, edge to edge, its caption laid on it. Wider: a plate inside the band. */
.hero .figure { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.hero .figure figcaption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 6px var(--gutter) 8px; background: rgba(11, 18, 32, 0.72); color: #fff; }
@media (min-width: 960px) {
  .hero .figure { margin: 0; }
  .hero .figure img { aspect-ratio: 5 / 4; }
  .hero .figure figcaption { position: static; background: none; padding: 0; margin-top: 10px; color: #fff; }
}

.intro-big { font-weight: 300; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); line-height: 1.2; letter-spacing: -0.025em; max-width: 26em; }

/* Fields: the four kinds of people the agency recruits, lettered A to D */
.fields { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--col-gap); }
@media (min-width: 640px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fields:not(.fields--2) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section-head + .fields { margin-top: 0; }
.fields > li { border-top: var(--rim); padding: 14px 0 26px; }
.fields .f-num { display: block; font-family: var(--mono); font-weight: 600; font-size: 0.8125rem; color: var(--ultra); }
.fields h3 { font-size: 1.1875rem; letter-spacing: -0.015em; margin-top: 6px; }
.fields p { margin-top: 8px; color: var(--ink-600); font-size: 0.9375rem; max-width: 30em; }

/* Figures: a few large numbers, each with its unit in words */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figures > div { border-bottom: var(--rule); padding: 4px 0 18px; }
.figures dt { font: 600 0.75rem/1.6 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-600); }
.figures dd { margin: 0; font-size: 0.875rem; color: var(--ink-600); }
.figures .fig { display: block; font: 300 clamp(2.25rem, 1.6rem + 2vw, 3.25rem)/1.05 var(--sans); letter-spacing: -0.035em; color: var(--ink); margin: 6px 0 4px; font-feature-settings: "tnum" 1; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; } }

/* The programme page: a band head, then the text and a brief beside it ------------------------------------------- */
.prog-head { padding: 48px 0 44px; }
.prog-head h1 { margin-top: 14px; }
.oe-title { display: inline-flex; align-items: center; gap: 0.28em; font-weight: 600; letter-spacing: 0.01em; }
.oe-title .oe-mark { width: 0.82em; height: 0.82em; color: #fff; }
.meta-line { margin-top: 14px; font-weight: 600; font-size: 0.9375rem; }
.layout.prog-layout { display: block; }
.prog-main > * + * { margin-top: 48px; }
.prog-aside .side-card { margin-top: 28px; }
.side-card h2, .side-card h3 { font-size: 1rem; letter-spacing: 0; }

/* Register as a table (the programmes page) */
.register-table td strong { font-weight: 600; }
.register-table td strong a { color: var(--ink); }
.register-table td strong a:hover { color: var(--ultra-600); }
.register-table .t-desc { display: block; color: var(--ink-600); font-size: 0.875rem; margin-top: 2px; max-width: 34em; }
.register-table td:first-child { color: var(--ink-600); font-size: 0.875rem; white-space: nowrap; }
.register-table td:nth-child(3) { color: var(--ink-600); font-size: 0.875rem; }
.register-table td:last-child { white-space: nowrap; }
.register-table tr.is-current td:first-child { color: var(--ultra); font-weight: 600; box-shadow: inset 2px 0 0 var(--ultra); padding-left: 10px; }
@media (max-width: 720px) {
  .register-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .register-table, .register-table tbody, .register-table tr, .register-table td { display: block; }
  .register-table tr { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-bottom: var(--rule); }
  .register-table td { border: 0; padding: 0; grid-column: 2; }
  .register-table td:first-child { grid-column: 1; grid-row: 1 / span 4; padding-top: 2px; }
  .register-table td:nth-child(3), .register-table td:nth-child(4) { display: inline; }
  .register-table td:nth-child(3) { margin-top: 4px; }
  .register-table td.n { text-align: left; font-size: 0.8125rem; color: var(--ink-600); }
  .register-table td:last-child { margin-top: 4px; }
  .register-table tr.is-current td:first-child { box-shadow: none; padding-left: 0; }
}

.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px var(--col-gap); border-top: var(--rim); padding-top: 18px; }
@media (min-width: 720px) { .feature { grid-template-columns: 120px minmax(0, 1fr); } }
.feature-mark { background: #0B1220; color: #fff; width: 120px; aspect-ratio: 1; display: grid; place-items: center; }
.feature-mark .oe-mark { width: 56px; height: 56px; color: #F1F3FA; } /* the OE mark keeps its own ink: Photon on night */
.feature-mark--wide { width: 100%; aspect-ratio: auto; height: 132px; }
.feature h2 { font-size: 1.75rem; letter-spacing: 0.01em; margin-top: 8px; }
.feature p { margin-top: 10px; max-width: 40em; }
.feature .feature-links { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Pages with a wider left column (contact, privacy) */
@media (min-width: 960px) {
  .layout--wide-aside { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .layout--wide-aside > :first-child { position: sticky; top: 24px; align-self: start; }
}
.plain-note { border-left: 4px solid var(--ink); background: var(--paper-50); padding: 14px 18px; }
.plain-note p { font-size: 0.9375rem; }

/* Notices page */
.notices-wrap { padding: 40px var(--gutter) 64px; }
.notices-wrap .notice .prose { margin-top: 12px; }

/* The honeypot: out of sight and out of the accessibility tree */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Notices ---------------------------------------------------------------------------------------------------------- */
.notice-list { list-style: none; padding: 0; border-top: var(--rim); }
.notice-list > li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; column-gap: 16px; padding: 12px 0; border-bottom: var(--rule); align-items: baseline; }
.notice-list .n-num { font-family: var(--mono); font-weight: 500; color: var(--ultra); font-size: 0.875rem; }
.notice-list .n-title { font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.notice-list .n-title a { color: var(--ink); text-decoration: none; }
.notice-list .n-title a:hover { color: var(--ultra-600); text-decoration: underline; }
.notice-list .n-date { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-600); white-space: nowrap; }
@media (max-width: 520px) {
  .notice-list > li { grid-template-columns: 3.5rem minmax(0, 1fr); row-gap: 2px; }
  .notice-list .n-date { grid-column: 2; }
}
.notice { border-top: var(--rim); padding: 18px 0 36px; scroll-margin-top: 16px; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; }
.notice-meta .n-num { font-family: var(--mono); font-weight: 600; color: var(--ultra); }
.notice h2, .notice h3 { font-size: 1.375rem; letter-spacing: -0.02em; margin-top: 10px; max-width: 34em; }
/* The archive, a year at a time: the year in light figures over an Ink rule, the notices beneath */
.year-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; font-family: var(--mono); font-weight: 500; font-size: 0.875rem; }
.year-group { scroll-margin-top: 16px; }
.year-group + .year-group { margin-top: 28px; }
.year-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; }
.year-head h2 { font: 300 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1 var(--sans); letter-spacing: -0.035em; font-feature-settings: "tnum" 1; }
.year-head .aside { font-size: 0.875rem; color: var(--ink-600); }
.notices-foot { border-top: var(--rim); padding-top: 12px; margin-top: 8px; font-size: 0.875rem; color: var(--ink-600); max-width: 42rem; }
.notice-parts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px var(--col-gap); margin-top: 18px; }
@media (min-width: 860px) { .notice-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.notice-parts > div { border-top: var(--rule); padding-top: 10px; }
.notice-parts .label { color: var(--ultra); display: block; margin-bottom: 6px; font-size: 0.6875rem; }
.notice-parts p { font-size: 0.9375rem; }
.notice-sign { margin-top: 18px; font-size: 0.875rem; color: var(--ink-600); }

/* People ---------------------------------------------------------------------------------------------------------- */
.people { list-style: none; padding: 0; border-top: var(--rim); display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); } }
.people > li { padding: 14px 0 16px; border-bottom: var(--rule); }
.people .p-role { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-600); }
.people .p-name { font-weight: 600; font-size: 1.0625rem; margin-top: 4px; }
.people .p-note { font-size: 0.9375rem; color: var(--ink-600); margin-top: 4px; }

/* Offices --------------------------------------------------------------------------------------------------------- */
.office { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px var(--col-gap); border-top: var(--rim); padding: 16px 0 36px; }
@media (min-width: 860px) { .office { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); } }
.office h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.office .o-code { font-family: var(--mono); font-weight: 600; font-size: 0.8125rem; color: var(--ultra); display: block; margin-bottom: 6px; }
.office p { margin-top: 8px; }
.office address { font-style: normal; }

/* Signage: numbered places, arrows that mean it (type at the scale of the building) ----------------------------- */
.signage { background: var(--ultra); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); }
.signage > div { display: grid; grid-template-columns: 1.5rem 2.25rem minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.signage > div:first-child { border-top: 0; }
.signage .s-arrow { font-weight: 400; }
.signage .s-num { font-family: var(--mono); font-weight: 500; font-size: 0.875rem; }
.signage .s-name { font-weight: 700; font-size: 1.0625rem; }

/* Enrolment form ----------------------------------------------------------------------------------------------- */
.enrol-block { border-top: var(--rim); padding-top: 14px; scroll-margin-top: 16px; }
.enrol-block h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.enrol-block > p.intro { margin-top: 10px; max-width: 40em; }
.enrol { margin-top: 22px; max-width: 40rem; }
.field-row { display: flex; gap: 0; margin-top: 8px; }
.field-row input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px;
  font: 400 1rem/1 var(--sans); color: var(--ink);
  background: var(--paper-50); border: 1px solid var(--ink); border-right: 0; border-radius: 0;
}
.field-row input:focus-visible { outline: 2px solid var(--ultra); outline-offset: 0; position: relative; z-index: 1; }
.field-row input[aria-invalid="true"] { border-color: var(--vermilion); box-shadow: inset 0 0 0 1px var(--vermilion); }
@media (max-width: 520px) {
  .field-row { flex-direction: column; gap: 10px; }
  .field-row input { border-right: 1px solid var(--ink); }
  .field-row .button { width: 100%; }
}
.field-error, .form-status.is-error { color: var(--vermilion); font-size: 0.9375rem; font-weight: 500; margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.field-error::before, .form-status.is-error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 3.8 L21 19.6 H3 Z'/%3E%3Cpath d='M12 9.5 V14'/%3E%3Ccircle fill='%23000' stroke='none' cx='12' cy='16.9' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 3.8 L21 19.6 H3 Z'/%3E%3Cpath d='M12 9.5 V14'/%3E%3Ccircle fill='%23000' stroke='none' cx='12' cy='16.9' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field-error[hidden] { display: none; }
.form-status { font-size: 0.9375rem; color: var(--ink-600); margin-top: 10px; }
.form-status:empty { display: none; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 12px; }
.consent { margin-top: 14px; font-size: 0.875rem; color: var(--ink-600); max-width: 38rem; }
.enrol-done { margin-top: 22px; max-width: 40rem; border-top: 4px solid var(--verdigris); background: var(--paper-50); padding: 18px 20px 20px; }
.enrol-done:focus { outline: none; }
.enrol-done h3 { font-size: 1.125rem; display: flex; gap: 10px; align-items: center; }
.enrol-done h3 svg { width: 20px; height: 20px; fill: none; stroke: var(--verdigris); stroke-width: 2; }
.enrol-done p { margin-top: 8px; }
.enrol-done .ref { margin-top: 12px; }

/* Aside card on programme pages (the job page's "Public programme 07" box) --------------------------------------- */
.side-card { border: var(--rim); padding: 16px 18px 18px; background: var(--paper-50); }
.side-card h3 { font-size: 1rem; }
.side-card p { font-size: 0.9375rem; color: var(--ink-600); margin-top: 6px; }
.side-card .text-link { margin-top: 10px; }

.prog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .prog-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 56px; } .prog-grid > aside { position: sticky; top: 24px; align-self: start; } }
.prog-grid aside > * + * { margin-top: 28px; }

.document-lockup { display: inline-block; padding: 14px 18px 12px; background: var(--paper-50); border: var(--rule); }
.document-lockup .lockup { font-size: 1.5rem; }
.document-lockup .dl-line { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 6px; font-size: 0.9375rem; }

.oe-lockup { display: inline-flex; align-items: center; gap: 12px; }
.oe-mark { width: 40px; height: 40px; color: var(--ink); flex: none; }
.oe-lockup .oe-name { font-weight: 700; font-size: 1.75rem; letter-spacing: 0.02em; line-height: 1; }
.oe-lockup .oe-end { display: block; font-size: 0.8125rem; color: var(--ink-600); margin-top: 4px; letter-spacing: 0; font-weight: 400; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--col-gap); counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li { position: relative; padding: 22px 0 18px; border-top: var(--rim); }
.steps > li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--ink); }
.steps > li:last-child::before { background: var(--ultra); }
.steps .s-head { font-family: var(--mono); font-weight: 600; font-size: 0.9375rem; }
.steps p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-600); }

/* Footer ---------------------------------------------------------------------------------------------------------- */
.site-footer { border-top: var(--rim); margin-top: 0; padding: 40px 0 28px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--col-gap); }
@media (min-width: 600px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-id { grid-column: 1 / -1; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: minmax(0, 3.4fr) repeat(4, minmax(0, 2.2fr)); } .foot-id { grid-column: auto; } }
.lockup--foot { font-size: 1.5rem; }
.foot-id p { margin-top: 12px; color: var(--ink-600); font-size: 0.9375rem; max-width: 22rem; }
.foot-col .label { padding-bottom: 8px; border-bottom: var(--rim); }
.foot-col ul { list-style: none; padding: 0; }
.foot-col li { border-bottom: var(--rule); }
.foot-col a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.foot-col a:hover { color: var(--ultra-600); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 12px; border-top: var(--rule); font-size: 0.8125rem; color: var(--ink-600); }

/* The fiction notice (first visit only) ------------------------------------------------------------------------ */
dialog.fiction {
  width: min(40rem, calc(100vw - 2 * 16px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-top: 5px solid var(--ultra);
  background: var(--paper-50); color: var(--ink);
  box-shadow: 0 1px 0 var(--paper-300), 0 24px 64px rgba(11, 18, 32, 0.28);
  overflow: auto;
}
dialog.fiction[open] { animation: fade 160ms ease-out; }
dialog.fiction::backdrop { background: rgba(11, 18, 32, 0.55); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.fiction[open] { animation: none; } .button { transition: none; } }
.fiction-inner { padding: 22px 26px 24px; }
.fiction-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: var(--rim); }
.fiction-lang { padding-top: 16px; }
.fiction-lang + .fiction-lang { margin-top: 16px; border-top: var(--rule); }
.fiction-lang h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.fiction-lang + .fiction-lang h2 { font-size: 1.0625rem; }
.fiction-lang p { margin-top: 8px; font-size: 0.9375rem; }
.fiction-lang + .fiction-lang p { color: var(--ink-600); font-size: 0.875rem; }
.fiction-actions { margin: 20px -26px -24px; padding: 14px 26px 18px; display: flex; justify-content: flex-start; position: sticky; bottom: 0; background: var(--paper-50); border-top: var(--rule); }
@media (max-width: 480px) { .fiction-inner { padding: 18px 18px 20px; } .fiction-actions { margin: 16px -18px -20px; padding: 12px 18px 16px; bottom: 0; } .fiction-actions .button { width: 100%; } }

/* The language picker and the not-found page ------------------------------------------------------------------- */
body.picker { min-height: 100vh; display: grid; place-items: center; }
.picker-main { width: min(30rem, calc(100vw - 32px)); padding: 48px 0; }
.lockup--picker { font-size: 2.25rem; display: inline-flex; }
.picker-list { list-style: none; padding: 0; margin-top: 36px; border-top: var(--rim); }
.picker-list li { border-bottom: var(--rule); }
.picker-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.picker-list a:hover { color: var(--ultra-600); }
.picker-sub { font-weight: 400; font-size: 0.875rem; color: var(--ink-600); }
.nf { width: min(40rem, calc(100vw - 32px)); }
.nf-lang { margin-top: 36px; border-top: var(--rim); padding-top: 12px; }
.nf-lang h1 { margin-top: 12px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.nf-lang p { margin-top: 12px; color: var(--ink-600); }
.nf > .ref { margin-top: 36px; }

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

/* Legal texts: the Convention and its protocols ------------------------------------------------------------------ */
/* Contents: articles with their titles beside the text on a wide screen; on a phone, a grid of article numbers. */
.toc .label { padding-bottom: 8px; border-bottom: var(--rim); }
.toc-texts { list-style: none; padding: 0; margin-bottom: 24px; }
.toc-texts li { border-bottom: var(--rule); }
.toc-texts a { display: block; padding: 9px 0 9px 12px; color: var(--ink); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.toc-texts a:hover { color: var(--ultra-600); }
.toc-texts a[aria-current="page"] { border-left: var(--bar); font-weight: 600; }
.toc-list { list-style: none; padding: 0; }
.toc-list a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline; padding: 6px 0; border-bottom: var(--rule); color: var(--ink); text-decoration: none; font-size: 0.875rem; line-height: 1.35; }
.toc-list a:hover { color: var(--ultra-600); }
.toc-list .toc-n { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; color: var(--ink-600); }
@media (min-width: 960px) {
  .layout > .toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
}
@media (max-width: 959px) {
  .toc-texts { display: flex; flex-wrap: wrap; gap: 0 20px; border-bottom: var(--rule); margin-bottom: 18px; }
  .toc-texts li { border: 0; }
  .toc-texts a { padding: 10px 0 8px; border-left: 0; margin: 0; border-bottom: 2px solid transparent; font-size: 0.9375rem; }
  .toc-texts a[aria-current="page"] { border-left: 0; border-bottom: var(--bar); }
  .toc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); border-left: var(--rule); }
  .toc-list a { display: block; text-align: center; padding: 8px 0; border-right: var(--rule); }
  .toc-list .toc-n { color: var(--ink); }
  .toc-list .toc-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.legal { max-width: 44rem; }
.legal-title { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.25; }
.legal-sub { margin-top: 8px; color: var(--ink-600); font-size: 0.9375rem; }
.preamble { margin-top: 28px; border-top: var(--rim); padding-top: 16px; }
.preamble p + p { margin-top: 0.75em; }
.preamble .agreed { font-weight: 600; }
.preamble em { font-style: italic; }
.article { border-top: var(--rule); padding: 20px 0 10px; scroll-margin-top: 16px; }
.preamble + .article { margin-top: 28px; border-top: var(--rim); }
.article-head { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.article-head .a-num { font-family: var(--mono); font-weight: 600; font-size: 0.8125rem; color: var(--ultra); min-width: 5.75rem; }
.article h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.article > p { margin-top: 10px; }
ol.paras { list-style: none; padding: 0; margin-top: 10px; counter-reset: para; }
ol.paras > li { counter-increment: para; position: relative; padding-left: 2.25rem; }
ol.paras > li + li { margin-top: 0.65em; }
ol.paras > li::before { content: counter(para) "."; position: absolute; left: 0; top: 0.12em; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-600); }
ol.items { list-style: none; padding: 0; margin-top: 0.45em; counter-reset: item; }
ol.items > li { counter-increment: item; position: relative; padding-left: 2.25rem; }
ol.items > li + li { margin-top: 0.3em; }
ol.items > li::before { content: "(" counter(item, lower-alpha) ")"; position: absolute; left: 0; color: var(--ink-600); }
.a-note { margin-top: 14px; padding: 10px 0 2px 14px; border-left: 2px solid var(--paper-300); font-size: 0.875rem; color: var(--ink-600); }
.a-note p + p, .a-note ol { margin-top: 0.5em; }
.a-note .label { color: var(--ink-600); display: block; margin-bottom: 4px; }
.a-note ol.paras > li { padding-left: 1.75rem; }
.legal-close { border-top: var(--rim); margin-top: 28px; padding-top: 16px; }
.legal-close p + p { margin-top: 0.75em; }
.annex { border-top: var(--rule); margin-top: 28px; padding-top: 18px; scroll-margin-top: 16px; }
.annex h2 { font-size: 1.125rem; margin-top: 6px; }
.annex p { margin-top: 8px; color: var(--ink-600); }

/* Figures of the sites and the people ----------------------------------------------------------------------------- */
.figure--wide img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
.figure--portrait img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.office-side { display: grid; gap: 16px; align-content: start; }
.portraits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--col-gap); }
@media (min-width: 900px) { .portraits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.portraits > li { border-top: var(--rim); padding-top: 12px; }
.portraits img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; background: var(--paper-200); }
.portraits .pt-name { margin-top: 12px; font-weight: 600; line-height: 1.3; }
.portraits .pt-name a { color: var(--ink); text-decoration: none; }
.portraits .pt-name a:hover { color: var(--ultra-600); text-decoration: underline; }
.portraits .pt-role { margin-top: 2px; font-size: 0.875rem; color: var(--ink-600); }
.portraits .pt-site { margin-top: 6px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-600); }
.portraits .pt-desc { margin-top: 8px; font-size: 0.875rem; color: var(--ink-600); }
.person-aside > * + * { margin-top: 24px; }
.layout--wide-aside .content > .figure { max-width: 44rem; }
.page-head .label a { color: var(--ink); }
@media (max-width: 959px) { .person-aside .figure { max-width: 20rem; } }
.byline { margin-top: 28px; padding-top: 10px; border-top: var(--rule); font-size: 0.875rem; color: var(--ink-600); max-width: 42rem; }
.piece p:first-child { font-size: 1.125rem; line-height: 1.55; }

/* Questions from applicants: the question on the left, the answer on the right ----------------------------------- */
.faq-group + .faq-group { margin-top: 48px; }
.faq-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px var(--col-gap); padding: 16px 0 18px; border-bottom: var(--rule); scroll-margin-top: 16px; }
.section-head + .faq-item { padding-top: 4px; }
@media (min-width: 720px) { .faq-item { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.faq-item h3 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.35; }
.faq-a p + p, .faq-a p + ol, .faq-a ol + p, .faq-a p + ul { margin-top: 0.7em; }
.faq-a ol, .faq-a ul { padding-left: 1.25em; }
.faq-a li + li { margin-top: 0.35em; }

/* Small links under the fields (home): one role for each field */
.fields .f-role { margin-top: 12px; font-size: 0.875rem; }

@media print {
  .site-header nav, .lang-switch, .local-nav, .toc, dialog, .skip-link { display: none !important; }
  body { background: #fff; }
}
