/* Palette kept in step with leovaniersel.nl: #2f6f9f accent, slate-grey text,
   pale blue-grey borders. No web fonts, so the page renders instantly. */
:root {
  --accent: #2f6f9f;
  --accent-dark: #24587e;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --border: #e3e8ef;
  --tint: #f2f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fbfcfd;
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---- Hero ---- */
.hero {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 3rem;
}

.hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Organiser mark: the logo alone carries the attribution, so its alt text is
   what anyone with images off or a screen reader gets. */
.hero__organiser {
  display: inline-block;
  margin: 0 0 2rem;
}

.hero__organiser img {
  width: auto;
  height: 120px;
  display: block;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: #3d4855;
}

/* ---- Date / time / location ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.fact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.fact dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.fact__sub {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Calls to action ---- */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
}

.button:hover { background: var(--accent-dark); color: #fff; }

/* Secondary action: same shape, so it lines up with Register, but it does not
   compete with it. */
.button--quiet {
  background: #fff;
  color: var(--accent);
  border: 1px solid #cfdae6;
}

.button--quiet:hover {
  background: var(--tint);
  color: var(--accent-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.9rem 0 0;
}

.notice {
  background: var(--tint);
  border: 1px solid #cfdae6;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin: 0;
  font-size: 0.92rem;
  color: #35506b;
}

/* ---- Callout ---- */
/* The only solid block of colour on the page, so that it is not overlooked:
   everything else is white or pale. */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  margin: 0 0 3rem;
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.callout:hover {
  background: var(--accent-dark);
  color: #fff;
}

.callout:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

.callout__text { flex: 1 1 16rem; }

.callout__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.callout__note { margin: 0.2rem 0 0; }

/* Inverted, so the button stands out from the block it sits on. */
.callout__button,
.callout__button:hover {
  background: #fff;
  color: var(--accent-dark);
}

/* ---- Sections ---- */
.section { margin-bottom: 2.75rem; }

.section h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ---- Programme ---- */
.programme {
  list-style: none;
  margin: 0;
  padding: 0;
}

.programme__item {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.programme__item:last-child { border-bottom: 0; }

/* Arrival, breaks and lunch keep the same row as the sessions but lose their
   weight, so the eye skips over them without the list changing shape. */
.programme__item--break .programme__time {
  font-weight: 400;
  color: var(--muted);
}

.programme__item--break .programme__title {
  font-weight: 400;
  color: var(--muted);
}

.programme__time {
  flex: 0 0 4.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
}

.programme__body { display: flex; flex-direction: column; }
.programme__title { font-weight: 600; }
.programme__speaker { font-size: 0.92rem; }

.programme__note {
  font-size: 0.88rem;
  color: var(--muted);
}

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 0.2rem 0; }

/* ---- Embedded form ---- */
/* Google's iframe brings its own padding, so the wrapper only has to keep it
   from overflowing on a phone. */
.form-embed {
  margin: 0 0 1rem;
}

.form-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* The back link borrows the kicker slot but is navigation, not a label, so it
   keeps the smaller caption size. */
.hero__back {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.hero__back:hover {
  text-decoration: underline;
}

/* ---- Related links ---- */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li {
  padding: 0.45rem 0 0.45rem 1rem;
  border-left: 2px solid var(--border);
}

.links li + li { margin-top: 0.35rem; }

.links a { font-weight: 600; }

.links__note {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- Organisers ---- */
.organisers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
}

.organiser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.organiser__name {
  display: block;
  font-weight: 600;
}

.organiser__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.organiser__tag {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid #cfdae6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.organisers__funding {
  margin: 1rem 0 0;
  color: var(--muted);
}

/* ---- Vision document (/vision/) ---- */
/* Structure borrowed from leidendeclaration.ai: the whole document on one
   sheet of "paper", section headings with an accent bar, and every statement
   a tinted card with its number in a badge. The markup inside .vision is
   generated by tools/vision_to_site.py. */
.hero__subtitle {
  margin: -0.6rem 0 1.25rem;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--accent);
}

/* Draft status. Deliberately the one warm colour on the site, so that it
   cannot be mistaken for decoration. Shown while vision_draft in _config.yml
   is true. */
.draft-notice {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  background: #fff7e6;
  border: 1px solid #f0cf8f;
  border-left: 4px solid #b45309;
  border-radius: 6px;
  color: #5c3a06;
}

.draft-notice p { margin: 0; }

.draft-notice .draft-notice__title {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.draft-notice a { color: inherit; font-weight: 600; }

.vision-authors {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.vision-authors__name {
  display: block;
  font-weight: 600;
}

.vision-authors__role {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.vision-date {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

/* The toggle is a <button>, which does not inherit the page font. */
button.button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* .button sets display, which would otherwise undo the hidden attribute. */
.button[hidden] { display: none; }

.vision {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1rem, 4vw, 2.25rem);
  margin-bottom: 2.75rem;
}

/* Linked-to headings and statements should not sit flush against the top of
   the window. */
.vision [id] { scroll-margin-top: 1rem; }

.vision-intro p:first-child { margin-top: 0; }

.vision-section { margin-top: 3rem; }
.vision-section:first-child { margin-top: 0; }

.vision-section > h2 {
  margin: 0 0 0.9rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent);
  font-size: 1.55rem;
  line-height: 1.25;
}

.vision-section__number {
  margin-right: 0.3rem;
  color: var(--accent);
}

.vision-soundbite {
  margin: 0 0 1.5rem;
  padding-left: calc(0.8rem + 4px);
  font-size: 1.15rem;
  font-style: italic;
  color: #3d4855;
}

.vision-soundbite p { margin: 0; }

/* A statement: number badge in the left column, everything else beside it. */
.statement {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 0.9rem;
  padding: 1rem;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.statement + .statement { margin-top: 1rem; }
.statement > * { grid-column: 2; }

.statement__number {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  min-width: 3rem;
  padding: 0.2rem 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.statement__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.statement__claim p { margin: 0; }
.statement__claim p + p { margin-top: 0.6rem; }

/* Fold-outs: native <details>, so they work without scripts. */
.fold { margin-top: 0.75rem; }

.fold > summary {
  display: inline-block;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}

.fold > summary::-webkit-details-marker { display: none; }

.fold > summary::before {
  content: "\25B8";
  display: inline-block;
  width: 1.1em;
  transition: transform 0.15s;
}

.fold[open] > summary::before { transform: rotate(90deg); }
.fold > summary:hover { color: var(--accent-dark); }

.fold > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.fold__body { margin-top: 0.75rem; }
.fold__body > :first-child { margin-top: 0; }
.fold__body > :last-child { margin-bottom: 0; }

/* As in the PDF: supporting detail is small and grey behind a rule in the
   margin; the recommendations are small, black and flush left. */
.statement__details {
  padding-left: 1em;
  border-left: 2px solid #c3ccd6;
  font-size: 0.92rem;
  color: var(--muted);
}

.statement__details p { margin: 0; }
.statement__details p + p { margin-top: 0.6rem; }

.statement__advice { font-size: 0.92rem; }
.statement__details + .statement__advice { margin-top: 1rem; }

.statement__advice h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Running text that introduces the list. */
.statement__advice p { margin: 0 0 0.5rem; }

.statement__advice ol,
.statement__advice ul {
  margin: 0;
  padding-left: 1.4em;
}

.statement__advice li + li { margin-top: 0.4rem; }
.statement__advice li::marker { font-weight: 600; color: var(--accent); }

/* Notes: the document's footnotes, collected at the end. */
.noteref {
  font-size: 0.72em;
  line-height: 0;
}

.noteref a {
  padding: 0 0.15em;
  font-weight: 600;
  text-decoration: none;
}

.vision-notes {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.vision-notes h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.vision-notes ol { margin: 0; padding-left: 1.6em; }
/* Notes may spell out long URLs, which must not push the page wide. */
.vision-notes li { overflow-wrap: anywhere; }
.vision-notes li + li { margin-top: 0.4rem; }
.vision-notes__back { text-decoration: none; }

/* Where a link landed: a note, or the place in the text it came from. */
.vision-notes li:target,
.noteref a:target { background: #fff3c4; }

/* An editorial note left in the source; only ever shown with --draft. */
.vision-note {
  background: #ffe3f3;
  color: #9c1663;
}

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

@media (max-width: 480px) {
  .page { padding-top: 1.75rem; }
  .hero__kicker { font-size: 0.9rem; }
  .hero__organiser img { height: 90px; }
  .hero__title { font-size: 1.65rem; }
  .programme__item { flex-direction: column; gap: 0.15rem; }
  .hero__subtitle { font-size: 1.15rem; }
  .vision-section > h2 { font-size: 1.3rem; }
  /* Badge above the title instead of beside it, so the text gets the width. */
  .statement { grid-template-columns: 1fr; }
  .statement > * { grid-column: 1; }
  .statement__number { grid-row: auto; margin-bottom: 0.5rem; }
}

@media print {
  .hero__actions { display: none; }
  .vision { border: 0; padding: 0; }
  .statement { break-inside: avoid; }
}
