/* Geist foundations, adapted for native HTML. See GEIST.md for provenance. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-geist-sans: 'Geist', system-ui, sans-serif;
  --font-geist-mono: 'Geist Mono', ui-monospace, monospace;
  --ds-background-100: #fff;
  --ds-background-200: hsl(0 0% 98%);
  --ds-gray-100: hsl(0 0% 95%);
  --ds-gray-200: hsl(0 0% 92%);
  --ds-gray-300: hsl(0 0% 90%);
  --ds-gray-400: hsl(0 0% 92%);
  --ds-gray-500: hsl(0 0% 79%);
  --ds-gray-600: hsl(0 0% 66%);
  --ds-gray-700: hsl(0 0% 56%);
  --ds-gray-800: hsl(0 0% 49%);
  --ds-gray-900: hsl(0 0% 30%);
  --ds-gray-1000: hsl(0 0% 9%);
  --ds-green-200: #e5fce7;
  --ds-green-900: #107d32;
  --ds-amber-200: #fff4d4;
  --ds-amber-900: #a64f00;
  --geist-radius: 6px;
  --geist-control-height: 44px; /* Preserve the calendar's larger touch targets. */
  --geist-transition: 150ms cubic-bezier(.4, 0, .2, 1);
  font-family: var(--font-geist-sans);
  font-size: 100%;
  color: var(--ds-gray-1000);
  background: var(--ds-background-100);
  line-height: 1.5;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

body { max-width: 52rem; margin: 2rem auto; padding: 0 1.25rem; }
.event-index { max-width: 80rem; }
/* Project Banner visual adaptation: a quiet, non-dismissible site-wide notice. */
.construction-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .5rem;
  box-sizing: border-box; min-height: var(--geist-control-height); margin: 0 0 1.5rem; padding: .25rem 1rem;
  border: 0; border-block: 1px solid var(--ds-gray-300); border-radius: 0;
  background: var(--ds-gray-100); color: var(--ds-gray-900); font-size: .875rem; line-height: 1.5; text-align: center;
}
.construction-banner > span { min-width: 0; overflow-wrap: anywhere; }
.construction-banner button {
  flex: 0 0 auto; max-width: 100%; min-height: var(--geist-control-height); padding: 0 .25rem;
  border: 0; background: transparent; color: var(--ds-gray-1000); font-weight: 500;
  text-decoration: underline; text-underline-offset: .15em; cursor: pointer;
}
.construction-banner button:hover { text-decoration-thickness: 2px; }.feedback-dialog { box-sizing: border-box; position: fixed; inset: auto; margin: 0; width: min(22rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 1px solid var(--ds-gray-400); border-radius: 12px; background: var(--ds-background-100); color: var(--ds-gray-1000); box-shadow: 0 4px 6px rgb(0 0 0 / .04), 0 12px 32px rgb(0 0 0 / .12); overflow: auto; }
.feedback-dialog:not([open]) { display: none; }
.feedback-dialog::backdrop { background: transparent; }
.feedback-header { display: flex; align-items: center; justify-content: space-between; padding: .25rem .35rem .25rem .85rem; }
.feedback-header h2 { margin: 0; font-size: .875rem; letter-spacing: -.01em; }
.feedback-header button { width: 44px; min-height: 44px; border: 0; border-radius: var(--geist-radius); background: transparent; color: var(--ds-gray-900); font-size: 1.5rem; cursor: pointer; }
.feedback-body { padding: 0 .75rem .75rem; }
.feedback-dialog textarea { display: block; box-sizing: border-box; width: 100%; min-height: 7rem; padding: .65rem; border: 1px solid var(--ds-gray-500); border-radius: var(--geist-radius); font: inherit; font-size: 1rem; line-height: 1.5; color: inherit; background: var(--ds-background-100); resize: vertical; }
.feedback-dialog textarea::placeholder { color: var(--ds-gray-800); }
.feedback-dialog textarea:focus-visible { outline: 2px solid var(--ds-gray-1000); outline-offset: 2px; }
.feedback-hint { margin: .5rem 0 0; color: var(--ds-gray-900); font-size: .75rem; line-height: 1.5; }
.feedback-count { text-align: right; font-variant-numeric: tabular-nums; }
.feedback-dialog [data-feedback-status] { font-size: .8125rem; margin: .75rem 0 0; }
.feedback-dialog [data-feedback-status]:empty { margin: 0; }
.feedback-dialog [data-feedback-status][data-state="error"] { color: #9f2920; }
.feedback-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border-top: 1px solid var(--ds-gray-400); background: var(--ds-background-200); }
.feedback-reactions { display: flex; flex-wrap: wrap; gap: 0; }
.feedback-reactions button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--geist-radius); background: transparent; font-size: 1.25rem; cursor: pointer; }
.feedback-reactions button[aria-pressed="true"] { border-color: var(--ds-gray-1000); background: var(--ds-gray-200); }
.feedback-actions { display: flex; }
.feedback-actions button { min-height: var(--geist-control-height); padding: .45rem .85rem; border: 1px solid var(--ds-gray-1000); border-radius: var(--geist-radius); background: var(--ds-gray-1000); color: var(--ds-background-100); font-size: .875rem; cursor: pointer; }
.feedback-header button:hover, .feedback-reactions button:hover { background: var(--ds-gray-100); }
.feedback-dialog :disabled { cursor: wait; opacity: .65; }
.feedback-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 639px) {
  .feedback-dialog { inset: auto 1rem 1rem; width: calc(100% - 2rem); }
  .feedback-dialog::backdrop { background: rgb(0 0 0 / .2); }
}
.site-header { margin: 0 0 1.25rem; }
.site-brand { display: block; width: 14rem; max-width: 100%; aspect-ratio: 56 / 13; }
/* Center the original padded PNG in a compact header slot; all ink stays visible. */
.site-brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-index h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.04em; font-weight: 600; }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; margin-top: 2rem; font-weight: 600; }
h3 { font-size: 1rem; letter-spacing: -.02em; font-weight: 600; margin-bottom: .25rem; }
p { margin: .65rem 0 1rem; }
a { color: var(--ds-gray-1000); text-underline-offset: .15em; overflow-wrap: anywhere; }
a:visited { color: var(--ds-gray-900); }
a:focus-visible { outline: 2px solid var(--ds-gray-1000); outline-offset: 4px; border-radius: 1px; }
.event-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.5rem; margin: 1.25rem 0 1rem; }
.event-heading > div { flex: 1 1 20rem; min-width: 0; overflow-wrap: anywhere; }
.event-heading h1 { margin: 0; }
.event-heading p { margin: .65rem 0 0; }
.register-button, .register-button:visited { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: var(--geist-control-height); max-width: 100%; padding: .5rem 1rem; border: 1px solid var(--ds-gray-1000); border-radius: var(--geist-radius); background: var(--ds-gray-1000); color: var(--ds-background-100); font-weight: 600; text-decoration: none; }
.register-button:hover { border-color: var(--ds-gray-900); background: var(--ds-gray-900); }
.event-table { font-size: .875rem; line-height: 1.5; width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.event-table th, .event-table td { padding: .9rem .75rem; vertical-align: top; border-bottom: 1px solid var(--ds-gray-400); overflow-wrap: anywhere; }
.event-table th:first-child, .event-table td:first-child { padding-left: 0; }
.event-table th:last-child, .event-table td:last-child { padding-right: 0; }
.event-table thead th { padding-top: .25rem; padding-bottom: .6rem; font-size: .8125rem; color: var(--ds-gray-900); font-weight: 500; }
.event-table thead th:nth-child(1) { width: 24%; }
.event-table thead th:nth-child(2) { width: 12%; }
.event-table thead th:nth-child(3) { width: 24%; }
.event-table thead th:nth-child(4) { width: 25%; }
.event-table thead th:nth-child(5) { width: 15%; }
.event-table tbody th { font-weight: 500; }
.event-table .event-row:hover { background: var(--ds-background-200); }
.event-table .event-row:focus-within { background: var(--ds-gray-100); }
.event-name .event-link, .event-row th .event-link { font-weight: 600; }
.distance-options { display: block; min-width: 0; }
.distance-option { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.cell-label { display: none; }
.event-date { font-family: var(--font-geist-mono); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.event-link { font-weight: 500; }
.muted { color: var(--ds-gray-900); }
.facts { display: grid; grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr); gap: .5rem 1rem; }
dt { font-weight: 500; }
dd { margin: 0; overflow-wrap: anywhere; }
.courses { padding-left: 1.5rem; }
.courses > li { margin-bottom: 1.25rem; }
.course-comparison { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: .875rem; }
.course-comparison caption { text-align: left; color: var(--ds-gray-900); padding: 0 0 .75rem; font-size: .8125rem; }
.course-comparison th, .course-comparison td { padding: .85rem .6rem; border-bottom: 1px solid var(--ds-gray-400); vertical-align: top; overflow-wrap: anywhere; }
.course-comparison th:first-child { padding-left: 0; width: 35%; }
.course-comparison th:last-child, .course-comparison td:last-child { padding-right: 0; }
.course-comparison thead th { color: var(--ds-gray-900); font-weight: 500; font-size: .8125rem; padding-top: 0; }
.course-comparison tbody th { font-weight: 500; }
.course-cell-label { display: none; }
.course-briefings { padding: 0; list-style: none; }
.course-briefings > li { padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--ds-gray-400); scroll-margin-top: 1rem; }
.course-briefings h3 { margin: 0 0 .5rem; }
.course-briefings p { margin: .5rem 0; }
.course-briefings > li:focus { outline: 2px solid var(--ds-gray-1000); outline-offset: 4px; }
.course-metrics { font-variant-numeric: tabular-nums; }
.profile-comparison th:first-child { width: 25%; }
.profile-list > .course-profile { padding: 1.75rem 0; }
.course-profile h3 { font-size: 1.375rem; letter-spacing: -.025em; }
.profile-metrics, .profile-demands { display: grid; gap: 1.5rem; margin: 1rem 0; }
.profile-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-metrics dt, .profile-demands dt { color: var(--ds-gray-900); font-size: .8125rem; font-weight: 400; }
.profile-metrics dd { font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: .375rem; }
.profile-demands { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem 0; border-top: 1px solid var(--ds-gray-400); border-bottom: 1px solid var(--ds-gray-400); }
.profile-demands dd { margin-top: .375rem; }
.profile-demands dd strong { display: block; font-weight: 500; }
.profile-demands dd span { display: block; color: var(--ds-gray-900); font-size: .8125rem; margin-top: .375rem; line-height: 1.5; }
.profile-practical { display: grid; gap: .75rem; margin: 1rem 0; }
.profile-practical > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; font-size: .875rem; }
.profile-notes summary, .profile-method summary { cursor: pointer; min-height: 44px; align-content: center; }
.profile-notes { font-size: .875rem; }
.profile-method { margin: 1.25rem 0; font-size: .875rem; }
.profile-method summary { font-weight: 500; }
.profile-notes summary:focus-visible, .profile-method summary:focus-visible { outline: 2px solid var(--ds-gray-1000); outline-offset: 3px; }
@media (max-width: 40rem) {
  .profile-metrics { grid-template-columns: 1fr; gap: .75rem; }
  .profile-metrics > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .75rem; align-items: baseline; }
  .profile-metrics dd { margin: 0; font-size: 1rem; }
  .profile-demands { grid-template-columns: 1fr; gap: 1rem; }
  .profile-practical > div { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 40rem) {
  .course-comparison, .course-comparison tbody { display: block; }
  .course-comparison caption { display: block; }
  .course-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .course-comparison tbody tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--ds-gray-400); }
  .course-comparison tbody th, .course-comparison tbody td { display: flex; gap: .75rem; width: auto; padding: .2rem 0; border: 0; }
  .course-comparison tbody th:first-child { width: auto; }
  .course-comparison tbody td { flex-wrap: wrap; gap: .1rem .75rem; }
  .course-comparison tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
  .course-cell-label { display: block; flex: 0 0 6.5rem; color: var(--ds-gray-900); font-size: .8125rem; }
  .course-comparison td > span:last-child { flex: 1 1 9rem; min-width: 0; }
}
.site-footer { margin-top: 2rem; font-size: .8125rem; color: #666; line-height: 1.5; }
.site-footer p { margin: 0; }
.site-footer a, .site-footer a:visited { color: inherit; }
.site-footer a:hover { color: var(--ds-gray-1000); }
.footer-utilities { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 1.25rem; }
.footer-utilities > a { display: block; }
.footer-disclosure { min-width: 0; max-width: 100%; }
.footer-disclosure[open] { flex-basis: 100%; }
.footer-utilities > a, .footer-disclosure summary { box-sizing: border-box; min-height: var(--geist-control-height); padding: .75rem 0; }
.footer-disclosure summary { cursor: pointer; }
.footer-utilities > a:focus-visible, .footer-disclosure summary:focus-visible { outline: 2px solid var(--ds-gray-1000); outline-offset: 2px; border-radius: 1px; }
.footer-details { max-width: 70ch; padding-bottom: .75rem; }
.footer-details p + p { margin-top: .65rem; }
.site-footer .muted { color: inherit; }
@media (max-width: 34rem) {
  .footer-utilities > a { flex-basis: 100%; }
}
.analytics-preference { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.analytics-preference button { min-height: var(--geist-control-height); padding: .4rem .65rem; border: 1px solid var(--ds-gray-500); border-radius: var(--geist-radius); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.analytics-preference button:hover { background: var(--ds-gray-100); }
.analytics-preference button:focus-visible { outline: 2px solid var(--ds-gray-1000); outline-offset: 2px; }
.skip-link { position: absolute; top: -10rem; left: 1rem; padding: .5rem; background: var(--ds-background-100); }
.skip-link:focus { top: .5rem; z-index: 30; }
section { scroll-margin-top: 1rem; }
@media (max-width: 48rem) {
  /* Keep real headers and explicit table roles while reflowing each row. */
  .event-table, .event-table tbody { display: block; }
  .event-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .event-table tbody tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--ds-gray-400); }
  .event-table tbody tr:first-child { border-top: 1px solid var(--ds-gray-400); }
  .event-table tbody th, .event-table tbody td { display: flex; flex-wrap: wrap; gap: 0 .75rem; padding: .2rem 0; border: 0; }
  .event-table tbody th > span:last-child, .event-table tbody td > span:last-child { flex: 1 1 11rem; min-width: 0; }
  .cell-label { display: block; flex: 0 0 5.5rem; font-size: .875rem; font-weight: 400; color: var(--ds-gray-900); }
  .event-table .event-row > :nth-child(-n+3) { display: block; }
  .event-table .event-row > :nth-child(-n+3) > .cell-label { display: none; }
  .event-table .event-row > :first-child { padding-top: 0; padding-bottom: .3rem; }
  .event-table .event-row > :nth-child(2), .event-table .event-row > :nth-child(3) { padding-top: .1rem; padding-bottom: .1rem; }
  .event-table .event-row > :nth-child(3) { padding-bottom: .55rem; }
}
@media (max-width: 30rem) {
  body { margin-top: 1.25rem; padding: 0 1rem; }
  .facts { grid-template-columns: 1fr; gap: .125rem; }
  dd { margin-bottom: .65rem; }
}

/* Search and location controls. The table remains the main reading surface. */
[hidden] { display: none !important; }
button, select, input { font: inherit; color: inherit; }
button, select, input { touch-action: manipulation; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--ds-gray-1000); outline-offset: 4px; }
/* Soft-gray discovery surface, using the site's light text and field palette. */
.calendar-controls {
  --ds-background-200: #f5f5f5;
  --ds-gray-400: #d4d4d4;
  --ds-gray-500: #8a8a8a;
  --ds-gray-600: #737373;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ds-gray-1000);
  color-scheme: light;
}
/* The full-size shell stays in flow while only the inner surface compacts. */
.calendar-anchor { height: 1px; margin-top: 2rem; pointer-events: none; }
.calendar-shell { margin-bottom: 1.5rem; overflow-anchor: none; }
.calendar-shell.is-ready { position: sticky; top: max(12px, env(safe-area-inset-top)); z-index: 20; pointer-events: none; }
.calendar-controls { pointer-events: auto; }
.calendar-controls.is-docked:not(.is-compact) { box-sizing: border-box; max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - 12px); overflow-y: auto; background: var(--ds-background-200); }
.calendar-surface { position: absolute; inset: -1px; z-index: -1; border: 1px solid var(--ds-gray-400); border-radius: inherit; background: var(--ds-background-200); transform-origin: top left; pointer-events: none; }
.calendar-controls.is-compact { padding: .65rem .75rem; }
.calendar-controls.is-compact .calendar-surface { box-shadow: 0 4px 16px rgb(0 0 0 / .08); }
.calendar-controls.is-compact :is(.calendar-title, .calendar-label) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calendar-controls.is-compact .calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.calendar-controls.is-compact :is(.country-control, .region-control, .active-filters) { display: none; }
.calendar-controls.is-compact .calendar-field { gap: 0; }
.calendar-controls.is-compact :is(.search-control, .filter-toggle) { grid-column: auto; }
.calendar-controls.is-compact .search-control { flex: 1 1 16rem; }
html { scroll-padding-top: var(--calendar-scroll-offset, 1rem); }
@media (max-width: 48rem) {
  .filter-toggle { grid-column: 1 / -1; }
}
@media (min-width: 48.001rem) {
  .calendar-controls.is-docked:not(.is-compact) .calendar-toolbar { grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr) minmax(0, 1.25fr); }
}
.calendar-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; gap: 1rem; }
h2.calendar-title { margin: 0 0 1rem; font-size: 1.25rem; }
.filter-toggle { box-sizing: border-box; flex-shrink: 0; min-height: var(--geist-control-height); padding: .45rem .75rem; border: 1px solid var(--ds-gray-400); border-radius: var(--geist-radius); background: var(--ds-gray-100); font-size: .875rem; line-height: 1.4; cursor: pointer; }
.filter-toggle:hover { border-color: var(--ds-gray-600); background: var(--ds-gray-200); }
.calendar-field { display: flex; flex-direction: column; min-width: 0; gap: .35rem; font-size: .875rem; }
.calendar-field input, .calendar-field select { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: var(--geist-control-height); padding: .55rem .7rem; border: 1px solid var(--ds-gray-500); border-radius: var(--geist-radius); background: var(--ds-background-100); font-size: 1rem; line-height: 1.5; }
.search-input { display: flex; align-items: center; gap: .5rem; }
.search-input input { flex: 1; }
/* The labelled button replaces the browser's unlabelled search-clear icon. */
#event-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.clear-search { flex-shrink: 0; min-height: var(--geist-control-height); padding: .45rem .65rem; border: 1px solid var(--ds-gray-400); border-radius: var(--geist-radius); background: var(--ds-background-100); font-size: .875rem; cursor: pointer; }
.clear-search:hover { border-color: var(--ds-gray-600); background: var(--ds-gray-200); }
/* Keep native select behavior, with a consistently inset decorative chevron. */
.calendar-select { display: block; position: relative; min-width: 0; }
.calendar-select::after { content: ""; position: absolute; top: 50%; right: 16px; width: .4rem; height: .4rem; border-right: .1rem solid var(--ds-gray-900); border-bottom: .1rem solid var(--ds-gray-900); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.calendar-field select { display: block; appearance: none; -webkit-appearance: none; padding-inline-end: max(40px, 1.25rem); cursor: pointer; }
@media (forced-colors: active) {
  .calendar-select::after { display: none; }
  .calendar-field select { appearance: auto; -webkit-appearance: auto; padding-inline-end: .7rem; }
}
.calendar-field input::placeholder { color: var(--ds-gray-900); }
.calendar-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.filter-chip, .calendar-empty button, #calendar-empty button { box-sizing: border-box; max-width: 100%; min-height: var(--geist-control-height); background: var(--ds-background-100); border: 1px solid var(--ds-gray-400); border-radius: var(--geist-radius); padding: .45rem .75rem; cursor: pointer; font-size: .875rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.active-filters { display: flex; flex-wrap: wrap; list-style: none; gap: .5rem; margin: .35rem 0 0; padding: 0; }
.active-filters:empty { display: none; }
.active-filters li { min-width: 0; max-width: 100%; }
.filter-chip { text-align: left; background: var(--ds-gray-100); }
.filter-chip:hover, .calendar-empty button:hover, #calendar-empty button:hover { border-color: var(--ds-gray-600); background: var(--ds-gray-200); }
.calendar-empty, #calendar-empty { padding: 1rem 0 3rem; }
.calendar-empty h2 { margin-top: 0; }
.empty-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 48rem) {
  .calendar-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .search-control { grid-column: 1 / -1; }
}
/* Give full province/state names room on phones instead of clipping them. */
@media (max-width: 30rem) {
  .calendar-toolbar { grid-template-columns: minmax(0, 1fr); }
  .search-control { grid-column: auto; }
}

/* One connection map, with HTML targets above decorative SVG lines. */
.search-graph { margin-top: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--ds-gray-400); border-bottom: 1px solid var(--ds-gray-400); }
.search-graph h2 { margin: 0; font-size: 1rem; }
.search-graph .graph-description { max-width: 48rem; margin: .4rem 0; font-size: .875rem; }
#graph-count { margin: .4rem 0 1rem; font-size: .8125rem; }
.graph-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4.5vw, 4rem); }
.graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.graph-lines path, .graph-lines line { fill: none; stroke: var(--ds-gray-500); stroke-width: 1; }
.graph-column { position: relative; z-index: 1; min-width: 0; }
.graph-column h3 { margin: 0 0 .65rem; color: var(--ds-gray-900); font-size: .8125rem; font-weight: 500; }
.graph-nodes { display: grid; gap: .65rem; min-width: 0; }
.graph-node { display: flex; align-items: center; justify-content: space-between; gap: .5rem; box-sizing: border-box; max-width: 100%; min-width: 0; min-height: var(--geist-control-height); padding: .6rem .75rem; border: 1px solid var(--ds-gray-400); border-radius: var(--geist-radius); background: var(--ds-background-100); color: var(--ds-gray-1000); text-align: left; font-size: 1rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; transition: background-color var(--geist-transition), border-color var(--geist-transition); }
.graph-node > span { min-width: 0; }
.graph-facet { width: 100%; cursor: pointer; }
.graph-facet[aria-pressed="true"] { border-color: var(--ds-gray-1000); background: var(--ds-gray-100); font-weight: 500; }
.graph-event, .graph-event:visited { flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; width: 100%; color: var(--ds-gray-1000); text-decoration: none; font-weight: 500; }
.graph-event:hover { text-decoration: underline; }
.graph-node:hover { background: var(--ds-gray-100); border-color: var(--ds-gray-600); }
.graph-node-detail { color: var(--ds-gray-900); font-size: .8125rem; line-height: 1.5; font-weight: 400; }
.graph-node-count { flex: 0 0 auto; color: var(--ds-gray-900); font-family: var(--font-geist-mono); font-size: .8125rem; font-weight: 400; }
#graph-empty { max-width: 42rem; margin: 1rem 0 0; font-size: .875rem; }
#graph-more { box-sizing: border-box; max-width: 100%; min-height: var(--geist-control-height); margin-top: 1rem; padding: .5rem .75rem; border: 1px solid var(--ds-gray-500); border-radius: var(--geist-radius); background: var(--ds-background-100); cursor: pointer; font-size: 1rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
#graph-more:hover { background: var(--ds-gray-100); border-color: var(--ds-gray-600); }
@media (max-width: 40rem) {
  .graph-board { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .graph-lines { display: none; }
  .graph-column:not([data-graph-column="events"]) .graph-nodes { display: flex; flex-wrap: wrap; gap: .5rem; }
  .graph-facet { flex: 0 1 auto; width: auto; }
}

/* Shared Geist control states; native keyboard and select behavior stay intact. */
.register-button, .construction-banner button, .feedback-actions button, .feedback-reactions button, .feedback-header button, .calendar-field input, .calendar-field select,
.filter-chip, .event-row {
  transition: background-color var(--geist-transition), border-color var(--geist-transition), color var(--geist-transition);
}
.register-button, .feedback-actions button, .filter-chip { font-weight: 500; }
.feedback-actions button:hover { background: var(--ds-gray-100); border-color: var(--ds-gray-600); }
.feedback-actions [data-feedback-send]:hover { background: var(--ds-gray-900); color: var(--ds-background-100); }
.calendar-field input:hover, .calendar-field select:hover, .feedback-dialog textarea:hover { border-color: var(--ds-gray-600); }
.site-footer { border-top: 1px solid var(--ds-gray-400); padding-top: .75rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Geist small, subtle badges: static metadata, never registration buttons. */
.registration-badge {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 20px;
  padding: 0 8px;
  border: 0;
  border-radius: 9999px;
  background: var(--ds-gray-200);
  color: var(--ds-gray-1000);
  font-size: 11px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: .2px;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
}
.registration-badge--open { background: var(--ds-green-200); color: var(--ds-green-900); }
.registration-badge--postponed { background: var(--ds-amber-200); color: var(--ds-amber-900); }
@supports (background: oklch(from #fff .94 c h)) {
  .registration-badge { background: oklch(from var(--ds-gray-200) .94 c h); }
  .registration-badge--open { background: oklch(from var(--ds-green-200) .94 calc(c * 1.3) h); }
  .registration-badge--postponed { background: oklch(from var(--ds-amber-200) .94 calc(c * 1.3) h); }
}

/* IA: one working surface, native disclosures and the same table DOM at every width. */
.calendar-toolbar { grid-template-columns: minmax(0, 1fr); }
.calendar-controls.is-docked:not(.is-compact) .calendar-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
.calendar-advanced { margin-top: .5rem; }
.calendar-advanced > summary, .browse-navigation > summary { box-sizing: border-box; min-height: 44px; padding: .6rem 0; font-weight: 500; cursor: pointer; }
.calendar-advanced-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1rem; padding: .5rem 0; }
.calendar-controls.is-compact .calendar-advanced { display: none; }
.unknown-distance-control { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .875rem; }
.unknown-distance-control input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--ds-gray-1000); }
#distance-error { color: #9f2920; margin: .5rem 0; font-size: .875rem; }
.browse-navigation { margin: .5rem 0 1.25rem; font-size: .875rem; }
.browse-navigation nav { padding-bottom: .75rem; }
.browse-navigation h3 { margin: 1rem 0 .25rem; }
.browse-navigation ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; padding: 0; margin: 0; }
.browse-navigation li { max-width: 100%; }
.browse-navigation a { display: inline-flex; align-items: center; min-height: 44px; }
.browse-index h1 { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
.entry-milestone { display: block; margin-top: .35rem; color: var(--ds-gray-900); font-size: .8125rem; }
.event-guide .event-heading { margin: .75rem 0; }
.event-guide .event-heading p { margin-top: .35rem; font-size: .9375rem; }
.event-key-facts { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: 1rem; row-gap: .65rem; margin: .85rem 0; }
.event-key-facts > dt { color: var(--ds-gray-900); font-size: .875rem; padding-top: .125rem; }
.event-key-facts > dd { font-size: .9375rem; }
.fact-note { display: block; color: var(--ds-gray-900); font-size: .875rem; margin-top: .2rem; }
.event-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; margin: .75rem 0 1.25rem; }
.event-actions > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.event-intro { max-width: 43rem; }
.course-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; }
.course-table caption { text-align: left; color: var(--ds-gray-900); font-size: .8125rem; padding: 0 0 .75rem; }
.course-table th, .course-table td { padding: .8rem .65rem; vertical-align: top; border-bottom: 1px solid var(--ds-gray-400); overflow-wrap: anywhere; }
.course-table th:first-child { padding-left: 0; }
.course-table thead th { font-size: .8125rem; color: var(--ds-gray-900); font-weight: 500; }
.course-table tbody th { font-weight: 600; }
.course-table tr:focus, .course-format:focus { outline: 2px solid var(--ds-gray-1000); outline-offset: 4px; }
.course-table .course-details-cell { width: 36%; }
.course-details > summary, .entry-details > summary, .price-details > summary { box-sizing: border-box; min-height: 44px; padding: .5rem 0; cursor: pointer; font-size: .875rem; font-weight: 500; }
.course-details p, .entry-details p, .price-details p { font-size: .875rem; margin: .35rem 0 .75rem; }
.course-details p:last-child, .entry-details p:last-child, .price-details p:last-child { margin-bottom: .35rem; }
.course-formats { margin-top: 1.5rem; }
.course-format { padding: .75rem 0; border-bottom: 1px solid var(--ds-gray-400); }
.course-format h4 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; }
.course-format-metrics { margin: .25rem 0; }
.course-interpretation, .course-unknown { font-size: .875rem; }
.course-anchor { scroll-margin-top: 1rem; }
@media (max-width: 48rem) {
  .calendar-advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .event-guide .site-header { margin-bottom: .75rem; }
  .event-guide .event-heading { margin: .65rem 0; }
  .event-key-facts { grid-template-columns: 4.75rem minmax(0, 1fr); gap: .45rem .65rem; }
  .event-key-facts > dd { line-height: 1.4; }
  .course-table, .course-table caption, .course-table tbody { display: block; }
  .course-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .course-table tbody tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--ds-gray-400); }
  .course-table tbody th, .course-table tbody td { display: flex; width: auto; border: 0; padding: .2rem 0; gap: .75rem; }
  .course-table .course-cell-label { display: block; flex: 0 0 5.25rem; color: var(--ds-gray-900); font-size: .8125rem; }
  .course-table [data-metric] { flex: 1; min-width: 0; }
  .course-table .course-details-cell { display: block; width: auto; padding-top: .25rem; }
  .course-table .course-details { width: 100%; }
}
@media (max-width: 30rem) {
  .calendar-advanced-fields { grid-template-columns: minmax(0, 1fr); }
  .calendar-controls.is-docked:not(.is-compact) .calendar-toolbar { grid-template-columns: minmax(0, 1fr); }
}

#distance-help { margin: .5rem 0 0; color: var(--ds-gray-900); font-size: .875rem; line-height: 1.5; }

/* Event inspection keeps the calendar mounted, with a native modal focus boundary. */
html.has-event-drawer { overflow: hidden; scrollbar-gutter: stable; }
.event-drawer {
  box-sizing: border-box; position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(48rem, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; border-left: 1px solid var(--ds-gray-400); border-radius: 0;
  color: var(--ds-gray-1000); background: var(--ds-background-100);
  box-shadow: -12px 0 40px rgb(0 0 0 / .1); overflow: hidden;
}
.event-drawer:not([open]) { display: none; }
.event-drawer[open] { display: flex; flex-direction: column; animation: event-drawer-enter 220ms cubic-bezier(.22, 1, .36, 1); }
.event-drawer::backdrop { background: rgb(0 0 0 / .28); animation: event-drawer-scrim 220ms cubic-bezier(.22, 1, .36, 1); }
.event-drawer-toolbar { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; padding: .5rem 1.25rem; padding-top: max(.5rem, env(safe-area-inset-top)); border-bottom: 1px solid var(--ds-gray-400); }
.event-drawer-toolbar h2 { margin: 0 auto 0 0; font-size: .875rem; font-weight: 500; color: var(--ds-gray-900); }
.event-drawer-toolbar a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .8125rem; }
.event-drawer-toolbar button { flex: 0 0 44px; width: 44px; min-height: 44px; border: 0; border-radius: var(--geist-radius); background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.event-drawer-toolbar button:hover { background: var(--ds-gray-100); }
.event-drawer-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem 2rem max(2rem, env(safe-area-inset-bottom)); }
.event-drawer [data-event-drawer-status]:empty { display: none; }
.event-drawer [data-event-drawer-status] { color: var(--ds-gray-900); }
.event-drawer h1 { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip-path: none; white-space: normal; font-size: clamp(1.5rem, 3vw, 2rem); }
.event-drawer h1:focus { outline: none; }
.event-drawer .event-heading { margin-top: 0; }
.event-drawer-note { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--ds-gray-400); color: var(--ds-gray-900); font-size: .8125rem; }
@keyframes event-drawer-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes event-drawer-scrim { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 40rem) {
  .event-drawer { border: 0; }
  .event-drawer-toolbar { gap: .5rem; padding-inline: 1rem .5rem; }
  .event-drawer-body { padding: 1.25rem 1rem max(1.5rem, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .event-drawer[open], .event-drawer::backdrop { animation: none; }
}

/* Native historical navigation stays separate from enhanced calendar rows. */
.historical-editions { margin-top: 2rem; }
.historical-editions > summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.historical-editions li { margin-block: .5rem; }

/* Native-HTML adaptation of Geist Tooltip; the badge remains metadata. */
.registration-help {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: help;
}
.registration-help:focus-visible { outline: 2px solid var(--ds-gray-900); outline-offset: 3px; }
.registration-tooltip {
  position: fixed;
  z-index: 100;
  box-sizing: border-box;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--ds-gray-400);
  border-radius: 6px;
  background: var(--ds-background-100, #fff);
  color: var(--ds-gray-1000, #171717);
  box-shadow: 0 4px 12px #00000014;
  font: 400 13px/1.5 'Geist', sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.registration-tooltip[hidden] { display: none; }
@media (forced-colors: active) {
  .registration-tooltip { border-color: CanvasText; background: Canvas; color: CanvasText; }
  .registration-help:focus-visible { outline-color: Highlight; }
}

/* Personal note: desktop columns, natural image proportions, text first on phones. */
.personal-page { max-width: 64rem; }
.personal-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); margin-top: 1.75rem; }
.personal-copy { min-width: 0; }
.personal-copy h1 { margin: 0 0 1.5rem; }
.personal-copy p { line-height: 1.65; }
.personal-photo { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 48rem) {
  .personal-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
