/* VET4Succession — direction 3a
   Prussian blue, brass, seal red. Full-width colour bands, content in a
   centred measure. Self-hosted fonts only, no external requests. */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-compatible fallbacks. They keep the text image close to the real
   faces while assets/fonts/ is still empty, so dropping the woff2 files in
   does not reflow the pages. */
@font-face {
  font-family: "Vollkorn Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 96%;
  ascent-override: 96%;
  descent-override: 24%;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Helvetica Neue"), local("Arial"), local("Liberation Sans");
  size-adjust: 103%;
  ascent-override: 94%;
  descent-override: 25%;
}

/* ---------- tokens ---------- */

:root {
  --ink: #0f2c46;         /* Prussian blue, body and display text */
  --ink-rule: #37556e;    /* hairlines on the ink band */
  --paper: #f4f6f8;
  --paper-2: #e7ebef;     /* second ground, used once */
  --paper-edge: #dae0e6;  /* window-edge gradient tone */
  --brass: #9a6206;       /* brass on light ground, 16px and larger */
  --brass-dark: #7a4e05;  /* brass below 16px, 6.7:1 on paper */
  --brass-light: #e6c67a; /* brass on the ink band */
  --seal: #9e2b22;
  --ink-soft: #22405a;
  --ink-onink: #c4cfd9;
  --serif: "Vollkorn", "Vollkorn Fallback", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 1160px;
  --gutter: 40px;
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  font-synthesis-weight: none;
  text-underline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

p { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--seal); }

:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: 3px;
}

.band { width: 100%; }
.measure {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
  color: var(--paper);
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--ink);
}
.site-head .measure {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 40px;
  padding-top: 22px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
.wordmark b { font-weight: 400; color: var(--brass); }
.wordmark:hover { color: var(--ink); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}
.site-nav a {
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  border-bottom-color: var(--ink-rule);
}
.site-nav [aria-current="page"] {
  border-bottom-color: var(--seal);
  font-weight: 700;
}

/* ---------- status notice ---------- */

.status {
  background: var(--ink);
  color: var(--paper);
}
.status .measure {
  padding-top: 22px;
  padding-bottom: 22px;
}
.status p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 92ch;
}

/* ---------- home: title and the gap ---------- */

.opening { padding-top: 60px; padding-bottom: 52px; }

.page-title {
  margin: 0 0 40px;
  max-width: 20ch;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.06;
}
.page-title em {
  font-style: normal;
  color: var(--brass);
}

.gap-a {
  max-width: 46ch;
  border-top: 6px solid var(--ink);
  padding-top: 20px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.34;
}
.gap-b {
  margin-left: 240px;
  max-width: 48ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.28;
  color: var(--seal);
}

/* ---------- intro band with side note ---------- */

.intro {
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
}
.intro .measure {
  padding-top: 38px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
}
.intro-text {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidenote {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-top: 3px solid var(--brass-dark);
  padding-top: 14px;
}

/* ---------- section heading ---------- */

.section-title {
  margin: 0 0 32px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.18;
}

/* ---------- what the network would build ---------- */

.build { padding-top: 56px; padding-bottom: 58px; }
.build-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 64px;
}
.build-list > div { min-width: 0; }
.build-list .lead-item {
  grid-column: 1 / -1;
  max-width: 88ch;
  border-top: 4px solid var(--ink);
  padding-top: 16px;
}
.build-list .lead-item h3 { font-size: 25px; }
.build-list > div:not(.lead-item) {
  border-top: 1px solid var(--brass);
  padding-top: 14px;
}
.build-list h3 {
  margin: 0 0 8px;
  font-style: italic;
  font-size: 21px;
  line-height: 1.3;
}
.build-list p { font-size: 16.5px; }

/* ---------- figures ---------- */

.figures {
  background: var(--ink);
  color: var(--paper);
}
.figures .measure {
  padding-top: 54px;
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.figures h2 { margin: 0 0 14px; color: var(--brass-light); }
.figures .note { color: var(--ink-onink); font-size: 16px; max-width: 40ch; }

table { border-collapse: collapse; width: 100%; }

.figures-table { font-size: 17px; }
.figures-table th,
.figures-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--ink-rule);
  text-align: left;
  font-weight: 400;
}
.figures-table td {
  text-align: right;
  color: var(--brass-light);
  font-variant-numeric: tabular-nums;
}
.figures-table tr:last-child th,
.figures-table tr:last-child td {
  border-bottom: 2px solid var(--brass-light);
}

/* ---------- three entries ---------- */

.entries {
  padding-top: 56px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.entries > div {
  border-top: 4px solid var(--seal);
  padding-top: 16px;
}
.entries > div:nth-child(2) { margin-top: 34px; }
.entries > div:nth-child(3) { margin-top: 68px; }
.entries h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.28;
}
.entries p { font-size: 16.5px; }

/* ---------- nodes ---------- */

.nodes {
  background: var(--brass-light);
  color: var(--ink);
}
.nodes .measure {
  padding-top: 38px;
  padding-bottom: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  align-items: baseline;
}
.nodes h2 {
  margin: 0;
  font-style: italic;
  font-size: 26px;
  line-height: 1.25;
}
.nodes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
}

/* ---------- content page ---------- */

.content { padding-top: 56px; padding-bottom: 20px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  margin-top: 52px;
  margin-bottom: 4px;
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.2;
  border-top: 4px solid var(--ink);
  padding-top: 18px;
}
.prose h3 {
  margin-top: 34px;
  margin-bottom: 2px;
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
}
.prose .standfirst {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.38;
}
.prose .after-table {
  font-size: 16px;
  color: var(--ink-soft);
  border-top: 1px solid var(--brass);
  padding-top: 14px;
}

.pathway {
  margin: 0;
  border-top: 1px solid var(--brass);
}
.pathway > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 8px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--brass);
}
.pathway h3 {
  margin: 0;
  font-style: normal;
  font-size: 20px;
  line-height: 1.35;
  color: var(--brass-dark);
}
.pathway p { font-size: 16.5px; }

.wp-table {
  font-size: 16.5px;
  margin-top: 8px;
}
.wp-table caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  padding-bottom: 14px;
}
.wp-table th[scope="col"] {
  text-align: left;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 0 14px 8px 0;
  border-bottom: 2px solid var(--ink);
}
.wp-table th[scope="row"] {
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid #cdd0c6;
  vertical-align: baseline;
  color: var(--brass-dark);
}
.wp-table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid #cdd0c6;
  vertical-align: baseline;
}
.wp-table td:last-child {
  padding-right: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.margin-notes {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 32px;
}
.margin-notes section {
  border-top: 3px solid var(--brass-dark);
  padding-top: 14px;
}
.margin-notes h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}
.margin-notes p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--ink);
  margin-top: 56px;
}
.site-foot .measure {
  padding-top: 30px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  font-size: 16px;
}
.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-foot .coordinator { color: var(--ink-soft); }

/* ---------- narrower screens ---------- */

@media (max-width: 1000px) {
  .intro .measure,
  .figures .measure,
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .entries { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .entries > div:nth-child(2),
  .entries > div:nth-child(3) { margin-top: 0; }
  .build-list { grid-template-columns: minmax(0, 1fr); }
  .gap-b { margin-left: 0; }
  .margin-notes { position: static; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .pathway > div { grid-template-columns: minmax(0, 1fr); }
  .wp-table, .figures-table { font-size: 16px; }
}

/* ==========================================================================
   Appended block — figures and mobile navigation.
   Separated section. Reuses the existing colour variables only; nothing
   above this line is changed.
   ========================================================================== */

/* The "Three ways in" section sits directly under the dark figures band and
   its heading was flush to the top edge. Give it breathing room above. */
.entries-head {
  padding-top: 48px;
}

/* ---------- Figures ---------- */
.figure {
  margin: 2.4rem 0;
}
.figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 46rem;
}
@media (prefers-reduced-motion: no-preference) {
  /* keine Animation vorgesehen */
}

/* The nodes band is a flex row (heading beside the list). Give the figure a
   full row so it sits above the list, which stays as the text equivalent. */
.nodes .figure {
  flex-basis: 100%;
  margin: 0;
}

/* Narrow screens: the timeline labels get small. Hide only the timeline
   figure below 480px and keep the work-package table as the equivalent. */
@media (max-width: 480px) {
  .figure-timeline { display: none; }
}

/* ---------- mobile navigation ---------- */
/* No JavaScript: a checkbox toggles the menu on narrow screens. On wide
   screens the toggle is removed and the nav shows exactly as before. */
.nav-toggle-input,
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-toggle-input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    padding: 4px 2px;
  }
  .nav-toggle::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--ink);
    box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink);
  }
  .nav-toggle-input:focus-visible + .nav-toggle {
    outline: 3px solid var(--seal);
    outline-offset: 3px;
  }
  .site-nav { flex-basis: 100%; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 10px 0;
  }
  .nav-toggle-input:checked ~ .site-nav ul { display: flex; }
}

/* ---------- consortium table links (prepared; links added later) ---------- */
/* Applies to links inside the consortium node tables (.wp-table). No icon,
   no arrow, no target="_blank" is used in the markup. */
.wp-table a {
  color: var(--seal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wp-table a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- page edges ---------- */
/* Gradient towards the window edges. It starts exactly where the content
   column (--measure) ends and runs outward to left and right. On viewports
   narrower than --measure the middle stops fall outside 0–100%, so the browser
   clamps them and the whole surface stays flat paper. The body background above
   is left untouched; this rule overrides it deliberately. */
body {
  background-color: var(--paper);
  background-image: linear-gradient(
    to right,
    var(--paper-edge) 0,
    var(--paper) calc(50% - var(--measure) / 2),
    var(--paper) calc(50% + var(--measure) / 2),
    var(--paper-edge) 100%
  );
}
