@import url('./fonts/fonts.css');

:root {
  --blue: #1555d5;
  --ink: #162b4d;
  --muted: #52647e;
  --line: #d4deec;
  --paper: #f5f7fc;
  --yellow: #f9dd62;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, a, select, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #8a4b00; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 8px; left: 12px; padding: 12px; background: white; z-index: 20; }
header, main, footer { max-width: 1200px; margin: auto; padding-inline: 40px; }
header { position: relative; max-width: none; display: flex; justify-content: center; align-items: center; min-height: 72px; padding-block: 8px; background: #fff8e8; color: #213855; }
header::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(76%, 912px); height: 2px; border-radius: 50%; background: var(--blue); opacity: .25; }
main { padding-top: 16px; }
.brand { text-decoration: none; display: inline-flex; gap: 12px; align-items: center; font-family: Manrope, Arial, sans-serif; font-weight: 500; }
.brand-text { text-align: center; }
.brand-word { display: block; font-size: 1.875rem; line-height: 1.12; letter-spacing: -1.2px; white-space: nowrap; }
.brand-word > span { color: var(--blue); }
.brand-sun { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: #213855; }
.brand-sun svg { display: block; width: 27px; height: 27px; }
.brandtown { display: block; font-size: .6875rem; line-height: 1.3; letter-spacing: 1.4px; margin-top: 5px; }

/* The complete filter area starts closed; current selections remain legible. */
.filter-panel { background: white; border: 1px solid #bccce2; border-radius: 14px; box-shadow: 0 2px 6px #162b4d04; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }
.filter-toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 16px; border-radius: 14px; }
.filter-toggle:hover { background: #eef4ff; }
.filter-icon { width: 23px; height: 23px; color: var(--blue); flex: 0 0 auto; }
.filter-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 18px; flex: 1; font-size: 1rem; font-weight: 700; min-width: 0; }
#filter-summary { font-size: .875rem; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.filter-count { font-size: .875rem; font-weight: 700; padding: 4px 9px; background: #e2ebff; border-radius: 6px; color: #1649a5; white-space: nowrap; }
.chevron { display: block; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s; flex-shrink: 0; margin: -4px 4px 0; }
.filter-panel[open] > .filter-toggle .chevron, .event-disclosure[open] > .event-overview .chevron { transform: rotate(225deg); margin-top: 4px; }
.filter-body { padding: 0 20px 20px; }
.filter-panel:not([open]) > .filter-body, .event-disclosure:not([open]) > .detail { display: none; }
.filter-panel[open] > .filter-toggle { margin-bottom: 12px; border-bottom: 1px solid var(--line); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.quickfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.quickfilters button { border: 1px solid var(--line); background: #f6f8fc; border-radius: 8px; padding: 10px 15px; min-height: 44px; font-size: .875rem; font-weight: 600; }
.quickfilters button:hover { border-color: var(--blue); color: var(--blue); }
.quickfilters button.active { background: var(--blue); border-color: var(--blue); color: white; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 18px; }
.filters > div { min-width: 0; }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 7px; }
select, input { width: 100%; padding: 10px 28px 10px 10px; min-height: 44px; border: 1px solid #c7d3e4; border-radius: 8px; background: #f6f8fc; font-size: 1rem; }
input { padding-right: 10px; }
.reset { justify-self: start; padding: 8px 0; min-height: 44px; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: .875rem; color: var(--muted); }
.resultsbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 25px 0 15px; }
.resultsbar h2 { font-family: Manrope, Arial, sans-serif; font-size: 1.25rem; letter-spacing: -.4px; margin: 0; }
.resultsbar p { font-size: .875rem; color: var(--muted); margin: 0; }

/* A strong date band starts every day; compact tinted rows hold the events. */
.dategroup { margin-bottom: 30px; }
.dateheading { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 10px; border-radius: 14px; background: #19365d; color: white; }
.day-tile { display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 52px; min-height: 55px; padding: 5px 8px; border-radius: 9px; background: #e8eff9; color: #19365d; }
.day-tile strong { font-family: Manrope, Arial, sans-serif; font-weight: 800; font-size: 1.625rem; line-height: 1.1; }
.day-tile span { font-size: .75rem; font-weight: 700; }
.is-today .day-tile { background: var(--yellow); }
.day-label { flex: 1; min-width: 0; }
.day-relative { font-size: .875rem; color: var(--yellow); font-weight: 700; margin: 0 0 3px; }
.dateheading h3 { font-family: Manrope, Arial, sans-serif; font-size: 1.125rem; line-height: 1.35; font-weight: 700; letter-spacing: -.3px; margin: 0; }
.day-count { font-size: .875rem; color: #f0f4fc; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.event { min-width: 0; background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent) 25%, white); border-left: 4px solid var(--accent); border-radius: 12px; box-shadow: 0 2px 3px #19365d07; transition: box-shadow .16s; }
.event:hover { box-shadow: 0 5px 15px #19365d14; }
.event-overview { display: flex; align-items: center; gap: 15px; min-height: 106px; padding: 16px 15px; border-radius: 10px; }
.event-overview:hover { background: #ffffff28; }
.event-clock { display: grid; gap: 4px; align-content: center; align-self: stretch; flex: 0 0 73px; border-right: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); padding-right: 10px; font-variant-numeric: tabular-nums; }
.event-clock strong { font-family: Manrope, Arial, sans-serif; font-size: 1.375rem; font-weight: 800; line-height: 1.2; letter-spacing: -.6px; }
.event-clock span { font-size: .875rem; line-height: 1.3; }
.event-clock .time-unknown { font-size: .875rem; letter-spacing: 0; line-height: 1.4; }
.event-main { flex: 1; min-width: 0; }
.event-title { display: block; font-family: Manrope, Arial, sans-serif; font-size: 1.125rem; line-height: 1.35; font-weight: 800; letter-spacing: -.3px; overflow-wrap: anywhere; }
.location { display: block; font-size: .875rem; color: #435571; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; }
.event-toggle { display: grid; place-items: center; width: 24px; flex-shrink: 0; color: var(--accent); }
.event-status { display: block; color: #a0172d; font-weight: 700; font-size: .875rem; margin-bottom: 5px; }
.event-disclosure[open] { background: #ffffff45; border-radius: 10px; }
.detail { padding: 18px 20px; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); font-size: 1rem; line-height: 1.6; color: #354962; }
.detail p { margin: 0 0 12px; }
.detail .event-description { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag, .fact { font-size: .875rem; line-height: 1.4; padding: 4px 8px; background: #ffffffb8; border: 1px solid #ffffffa8; border-radius: 6px; }
.tag { font-weight: 700; color: var(--accent); }
.fact.free { color: #215936; background: #f0fff4; }
.sources { display: flex; flex-direction: column; align-items: flex-start; margin-top: 4px; }
.source { display: inline-block; padding: 9px 0; min-height: 44px; color: #12469f; font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.detail .checked { font-size: .75rem; color: var(--muted); margin: 10px 0 0; }
.empty { text-align: center; background: white; border: 1px dashed #aebbce; border-radius: 14px; padding: 36px 22px; line-height: 1.6; }
.empty > span { font-size: 2.5rem; color: var(--blue); }
.empty p { color: var(--muted); max-width: 520px; margin: 10px auto 24px; }
.primary { background: var(--blue); color: white; border: 0; border-radius: 8px; padding: 12px 18px; min-height: 44px; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-block: 32px; margin-top: 38px; border-top: 1px solid var(--line); }
.eyebrow { font-size: .75rem; letter-spacing: 1px; font-weight: 700; color: var(--blue); margin: 0 0 12px; }
.about h2 { font-family: Manrope, Arial, sans-serif; font-size: 1.5rem; letter-spacing: -.6px; line-height: 1.35; margin: 0; }
.about p:not(.eyebrow) { font-size: .875rem; color: var(--muted); line-height: 1.8; margin: 0 0 10px; }
.update { font-weight: 600; }
.stale { color: #8d4804 !important; background: #fff2d8; padding: 10px; border-radius: 8px; }
footer { padding-block: 22px 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .875rem; }
footer strong { font-weight: 400; }
.legal-links { flex-basis: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.legal-page { max-width: 900px; padding-top: 24px; padding-bottom: 48px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: var(--blue); font-size: .875rem; text-underline-offset: 4px; }
.legal-content { font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.legal-content h1 { font-family: Manrope, Arial, sans-serif; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.2; letter-spacing: -.5px; margin: 0 0 12px; }
.legal-content h2 { font-family: Manrope, Arial, sans-serif; font-size: 1.25rem; line-height: 1.4; margin: 30px 0 10px; }
.legal-content p, .legal-content ul { margin: 0 0 16px; }
.legal-content li { margin-bottom: 7px; }
.legal-content a { color: #12469f; text-underline-offset: 3px; }
.legal-content address { font-style: normal; margin-bottom: 16px; }
.legal-date { color: var(--muted); font-size: .875rem; }
.cookie-list { margin: 0 0 18px; }
.cookie-list dt { font-weight: 700; margin-top: 12px; }
.cookie-list dd { margin: 4px 0 0; }
noscript p { padding: 30px; background: #fff2d8; }
@media (max-width: 850px) {
  header, main, footer { padding-inline: 24px; }
  .grid { grid-template-columns: 1fr; }
  .event-overview { min-height: 96px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  header, main, footer { padding-inline: 16px; }
  .brand { gap: 9px; }
  .brand-word { font-size: 1.6875rem; }
  .brandtown { letter-spacing: 1px; }
  .filter-toggle { padding: 9px 12px; gap: 9px; }
  .filter-label { gap: 3px 9px; }
  #filter-summary { line-height: 1.4; }
  .filter-count { font-size: .75rem; padding: 4px 6px; }
  .filter-body { padding: 0 14px 16px; }
  .filters { grid-template-columns: 1fr; gap: 14px; }
  .quickfilters { gap: 6px; }
  .quickfilters button { padding-inline: 12px; }
  .resultsbar { flex-wrap: wrap; gap: 7px 12px; margin: 23px 0 12px; }
  .resultsbar h2 { font-size: 1.125rem; }
  .dategroup { margin-bottom: 26px; }
  .dateheading { gap: 11px; padding: 11px 12px; flex-wrap: wrap; }
  .day-tile { min-width: 47px; min-height: 51px; }
  .dateheading h3 { font-size: 1rem; }
  .day-count { font-size: .75rem; }
  .day-relative { margin-bottom: 2px; }
  .event-overview { padding: 14px 12px; gap: 11px; }
  .event-clock { flex-basis: 61px; padding-right: 8px; }
  .event-clock strong { font-size: 1.125rem; }
  .event-clock span { font-size: .875rem; }
  .event-title { font-size: 1.0625rem; letter-spacing: -.25px; }
  .event-toggle { width: 15px; }
  .detail { padding: 16px; }
  .about { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
