/* OSFairground. System fonts only: fast, nothing to download, nothing tracked. */
:root {
  --navy: #13315c;
  --navy-dark: #0c2240;
  --amber: #f2b134;
  --text: #1c2430;
  --muted: #4a5565;
  --bg: #ffffff;
  --band: #f2f5f9;
  --border: #c9d2de;
  --error: #b3261e;
  --success-bg: #e3f2e6;
  --success-text: #1f5a2a;
  --focus: #f2b134;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a, code, td, th { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy-dark); }
h1, h2, h3 { line-height: 1.2; margin: 1.2em 0 0.5em; }
h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem); margin-top: 0.6em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
main .main-inner { padding-bottom: 3.5rem; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 0.5rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: #fff; color: var(--navy); font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 0.5rem; }

.demo-banner { background: var(--amber); color: #1c1400; padding: 0.6rem 0; font-size: 1rem; }
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.site-name { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; display: inline-block; padding: 0.5rem 0; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; }
.site-header nav a { color: #fff; display: inline-block; min-height: 44px; line-height: 44px; }
.site-footer { background: var(--band); border-top: 1px solid var(--border); padding: 1.25rem 0; font-size: 1rem; color: var(--muted); }
.site-footer p { margin: 0; }

.lead { font-size: 1.2rem; max-width: 46rem; }
.breadcrumb { margin: 1rem 0 0; }
.breadcrumb a { display: inline-block; min-height: 44px; line-height: 44px; }
.notice { background: var(--band); border-left: 6px solid var(--amber); padding: 0.75rem 1rem; }

.button { display: inline-block; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: 0.6rem 1.2rem; min-height: 44px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--navy-dark); text-decoration: none; }
.link-button { background: none; border: 0; padding: 0.5rem 0; min-height: 44px; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
form.inline { display: inline; }

.site-hero img { display: block; width: 100%; height: clamp(160px, 28vw, 360px); object-fit: cover; }
.photo-credit { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 0; text-align: right; }
.photo-credit a { color: var(--muted); }
.event-hero { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; border-radius: var(--radius); margin-top: 1.25rem; }

.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.event-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1rem 1.25rem 0.5rem; }
.event-card h2 { margin-top: 0; font-size: 1.35rem; }
.event-card .when { font-weight: 700; margin-bottom: 0.25rem; }
.event-card .where { color: var(--muted); }

.facts { display: grid; gap: 0.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0 0 1.5rem; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.gallery { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.links { padding-left: 1.2rem; }
.links li { margin: 0.4rem 0; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; font-size: 1rem; }
caption { text-align: left; font-weight: 700; font-size: 1.1rem; padding: 0.5rem 0; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--border); }
thead th { border-bottom: 2px solid var(--text); }
tbody th { font-weight: 600; }
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; position: relative; }
.table-scroll table { margin: 0; min-width: 32rem; }
.schedule td:first-child { white-space: nowrap; width: 11rem; }
@media (max-width: 40rem) { .schedule td:first-child { white-space: normal; width: auto; } }

.title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
.signed-in { color: var(--muted); margin: 0; }
.tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin: 1rem 0 1.5rem; padding: 0; border-bottom: 2px solid var(--border); }
.tabs a { display: inline-block; padding: 0.55rem 0.9rem; min-height: 44px; text-decoration: none; border-radius: var(--radius) var(--radius) 0 0; }
.tabs a:hover { text-decoration: underline; }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 700; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; padding: 0; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); margin: 0 0 0.35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  display: block; width: 100%; max-width: 36rem; min-height: 44px; padding: 0.45rem 0.6rem; font: inherit; color: var(--text);
  background: #fff; border: 2px solid var(--text); border-radius: 4px;
}
.w-medium { max-width: 16rem !important; }
.w-short { max-width: 10rem !important; }
textarea { min-height: 7rem; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0 0.75rem; align-items: start; }
.checkbox input { width: 28px; height: 28px; margin: 0.1rem 0 0; accent-color: var(--navy); }
.checkbox label { font-weight: 600; margin: 0.15rem 0 0; }
.checkbox .hint, .checkbox .error-message { grid-column: 2; }
.checkbox .error-message { grid-row: 1; }
.field-error { border-left: 5px solid var(--error); padding-left: 0.9rem; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--error); }
.error-message { color: var(--error); font-weight: 700; margin: 0 0 0.35rem; }
.error-summary { border: 4px solid var(--error); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.error-summary h2 { margin-top: 0; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 700; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.panel { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.panel p:last-child { margin: 0; }
.panel h1 { margin-top: 0; }
.success { background: var(--success-bg); color: var(--success-text); border: 2px solid var(--success-text); }

.field-list { padding-left: 1.5rem; }
.field-list li { margin: 0 0 0.75rem; }
.field-label { font-weight: 700; display: block; }
.field-meta { color: var(--muted); display: block; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* OSVenue */
.button.secondary { background: #fff; color: var(--navy); }
.button.secondary:hover { background: var(--band); }
form.inline { display: inline; }
.event-card h3 { margin-top: 0; font-size: 1.25rem; }
