/* Design tokens taken from the AFM International logo: its blue, gold, red and grey.
   System fonts only, so the site costs no extra download on slow connections. */
:root {
  --navy: #055594; --navy-deep: #033a66; --gold: #d4aa49; --gold-ink: #7a5c00; --red: #e42426; --grey: #d1d2d4;
  --bg: #ffffff; --band: #f6f2ea; --ink: #1b1f2a; --muted: #5a6072; --line: #ddd8cc; --panel: #fbf9f4;
  --ok: #1d7a3e; --bad: #b3261e;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1420; --band: #121c2c; --ink: #e9ecf2; --muted: #a4abbb; --line: #2a3650; --panel: #141f31; --gold-ink: #e3bd4f; --bad: #ff8a80; --ok: #6fd08c; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--bg); }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); } h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); } h3 { font-size: 1.2rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.band { background: var(--band); }
.muted { color: var(--muted); font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-ink); margin: 0 0 .8em; }
.lede { font-size: 1.2rem; max-width: 46ch; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--gold); color: var(--navy-deep); padding: 8px 12px; z-index: 10; }

.site-header { background: var(--navy-deep); color: #fff; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; text-decoration: none; margin: 0; color: #fff; }
.wordmark img { width: 44px; height: 44px; }
.wordmark span span { color: var(--gold); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-left: auto; }
nav a { text-decoration: none; padding: 6px 0; font-size: .95rem; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { border-bottom-color: var(--gold); }

.button, button { display: inline-block; background: var(--gold); color: var(--navy-deep); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--gold); border-radius: 6px; padding: 10px 20px; cursor: pointer; }
.button.small { padding: 4px 12px; border-bottom-color: var(--gold); }
.button.ghost, button.ghost { background: transparent; color: inherit; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.hero, .flagship, .page-head { background: var(--navy); color: #fff; }
.hero { padding: 72px 0 64px; background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%); }
.hero .eyebrow, .flagship .eyebrow, .page-head .eyebrow { color: var(--gold); }
.hero h1 span { display: block; }
.hero.event { padding: 56px 0 40px; }
.flagship { padding: 40px 0; background: var(--navy-deep); border-top: 3px solid var(--gold); }
.page-head { padding: 48px 0 32px; }
.badge { display: inline-block; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 700; }

.two { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.prose { max-width: 68ch; } .prose h2 { margin-top: 1.4em; }
blockquote { margin: 0; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--panel); font-family: var(--serif); font-size: 1.15rem; }
blockquote p { margin: 0 0 .5em; } cite { font: normal .9rem var(--sans); color: var(--muted); }
.notice { border: 1px dashed var(--line); border-radius: 8px; padding: 14px 16px; color: var(--muted); background: var(--panel); max-width: 68ch; }
.pills, .tiles { list-style: none; padding: 0; margin: 1em 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; background: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tiles a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--bg); text-decoration: none; }
.tiles a:hover { border-color: var(--gold); } .tiles span { display: block; color: var(--muted); font-size: .9rem; }
.tiles a { display: flex; align-items: center; gap: 12px; } .tiles .tile-text { min-width: 0; } .tiles .tile-text strong { display: block; }
/* Profile pictures, and the placeholder shown until one is supplied. */
.picture { display: block; object-fit: cover; background: var(--grey, #d1d2d4); }
.picture.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #055594, #033a66); color: #fff; font-weight: 700; letter-spacing: .04em; }
.picture.portrait { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 12px; font-size: 2rem; }
.picture.thumb { width: 48px; height: 48px; border-radius: 8px; flex: none; font-size: 1rem; }
.picture.banner { width: 100%; aspect-ratio: 16 / 7; max-height: 420px; border-radius: 12px; margin-bottom: 1.2em; font-size: clamp(1.6rem, 6vw, 3.2rem); font-family: Georgia, serif; text-align: center; padding: 0 16px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--bg); }
.card h3 a { text-decoration: none; } .card h3 a:hover { text-decoration: underline; } .card p { margin: 0; }
dt { font-weight: 700; margin-top: .8em; } dd { margin: 0; color: var(--muted); }
address { font-style: normal; }

.site-footer { background: var(--navy-deep); color: #d8dce6; padding: 40px 0; margin-top: 48px; font-size: .95rem; }
.cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }

/* Forms, shared with the booking and scanner pages. */
fieldset { border: 0; padding: 0; margin: 0; }
label { display: block; font-weight: 600; margin-top: 12px; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid var(--muted); border-radius: 6px; font: inherit; margin-top: 4px; background: var(--bg); color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--panel); }
.choice input { width: auto; margin-top: 6px; } .choice strong { display: block; }
.tag { display: inline-block; background: var(--navy-deep); color: #fff; border-radius: 4px; padding: 0 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.price { margin-left: auto; white-space: nowrap; font-weight: 700; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--panel); }
.panel h2 { font-size: 1.3rem; } .panel button, .panel .button { margin-top: 14px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 6px; font-weight: 800; }
.error { color: var(--bad); font-weight: 600; margin-top: 10px; }
.status { font-size: 1.2rem; font-weight: 800; }
.result { border-radius: 10px; padding: 18px; margin-top: 16px; color: #fff; font-size: 1.2rem; font-weight: 700; }
.result.ok { background: #1d7a3e; } .result.bad { background: #b3261e; }
.app { max-width: 820px; margin: 0 auto; padding: 16px; } .app h2 { font-size: 1.2rem; margin-top: 28px; } .app > form > button, .app form button { margin-top: 16px; }
video { width: 100%; border-radius: 8px; margin-top: 12px; background: #000; }
[hidden] { display: none !important; }
.docs { list-style: none; padding: 0; max-width: 72ch; } .docs li { padding: 14px 0; border-bottom: 1px solid var(--line); } .docs a { display: block; font-weight: 700; } .docs span { display: block; }
details { margin-top: 10px; } summary { cursor: pointer; font-weight: 600; } details p { margin: .6em 0 0 !important; font-size: .95rem; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; max-width: 520px; } .filters label { flex: 1 1 220px; margin: 0; }
.pills a { text-decoration: none; } .pills a[aria-current] { font-weight: 800; text-decoration: underline; }
.newsletter { margin-top: 0; } .newsletter label { margin-top: 0; } .newsletter button { margin-top: 10px; padding: 6px 14px; }
/* Organiser console */
.admin h1 { font-size: 1.8rem; } .admin h2 { margin-top: 1.6em; } .admin h3 { margin-top: 1.2em; }
.admin #context { color: #d8dce6; font-size: .9rem; } .admin .panel { margin-top: 16px; max-width: 900px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
button.small { padding: 5px 12px; font-size: .9rem; margin: 0; }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); } th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td select, td input, .filters select, .filters input { width: auto; margin: 0; padding: 5px 8px; }
.stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .inline { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; } input.narrow { width: 7.5em; }
label.check { display: flex; align-items: center; gap: 8px; } label.check input { width: auto; margin: 0; }
.admin .filters { max-width: none; margin-bottom: 12px; } .admin .result { font-size: 1rem; padding: 10px 14px; margin: 0 0 12px; }
/* Language switcher: a slim row above the main navigation. */
.languages { padding-top: 6px; } .languages nav { gap: 2px 14px; justify-content: flex-end; }
.languages a { font-size: .82rem; padding: 2px 0; color: #d8dce6; } .languages a[aria-current] { color: #fff; font-weight: 700; }
.languages { display: flex; align-items: center; gap: 16px; } .languages nav { margin-left: auto; } .search-link { font-size: .82rem; color: #d8dce6; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 1em 0; } .figures div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--panel); }
.figures dd { font: 700 2rem var(--serif); margin: 0; color: var(--ink); } .figures dt { font-weight: 400; margin: 0; color: var(--muted); }
.timetable { list-style: none; padding: 0; } .timetable li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .timetable time { font-weight: 700; font-variant-numeric: tabular-nums; } .timetable span { display: block; } .timetable p { margin: .3em 0 0; font-size: .95rem; }
