:root {
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: #193234;
  background: #f8f5ed;
  --teal: #0c474b;
  --muted: #4e6565;
  --line: #d7ddd5;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { max-width: 1080px; margin: auto; padding-inline: 28px; }
.hero { color: #fff9e9; background: #0b4246; border-bottom: 5px solid #df9c67; }
.hero .wrap { padding-block: 34px 44px; }
.brand { width: fit-content; margin: 0 0 26px; padding-bottom: 5px; border-bottom: 1px solid #eab789; font-size: .9rem; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.6vw, 4.6rem); letter-spacing: -.058em; line-height: 1.01; margin: 0; }
.period { color: #f5ddbe; margin: 17px 0 0; font-size: 1rem; }
.filters { background: #fffdf7; border: 1px solid var(--line); border-radius: 16px; margin-block: 25px 28px; padding: 19px; }
.search-label, label { display: grid; gap: 6px; color: var(--teal); font-size: .87rem; font-weight: 700; min-width: 0; }
input, select, button { font: inherit; }
input, select { width: 100%; min-height: 44px; padding: 8px 10px; color: #172f31; background: white; border: 1px solid #aebdb7; border-radius: 8px; font-size: .96rem; font-weight: 500; }
input { margin-top: 6px; }
.filter-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-block: 14px; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 7px; }
.shortcuts button { min-height: 44px; padding: 6px 13px; border: 1px solid #bed0c7; background: #edf2ea; color: var(--teal); font-size: .85rem; border-radius: 24px; cursor: pointer; }
.shortcuts button[aria-pressed="true"] { background: var(--teal); color: white; border-color: var(--teal); }
#reset { margin-left: auto; background: white; }
:focus-visible { outline: 3px solid #9b431c; outline-offset: 2px; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
h2 { margin: 0; font-size: clamp(1.45rem,3vw,2rem); letter-spacing: -.04em; }
#count { color: var(--muted); margin: 0; font-size: .88rem; }
.day { margin: 25px 0 10px; font-size: 1rem; color: var(--teal); padding-left: 10px; border-left: 3px solid #b75b32; }
.event { background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px; }
.event summary { display: grid; grid-template-columns: minmax(106px, .36fr) minmax(0, 1.65fr) auto; gap: 12px; align-items: start; list-style: none; cursor: pointer; padding: 13px 15px; }
.event summary::-webkit-details-marker { display: none; }
.timing { font-size: .87rem; font-weight: 650; color: var(--teal); }
.event .title { font-size: 1rem; font-weight: 750; display: block; }
.meta { display: block; color: var(--muted); font-size: .85rem; margin-top: 5px; }
.toggle { color: var(--teal); font-weight: 650; }
.event[open] .toggle { transform: rotate(45deg); }
.detail { padding: 0 15px 15px; color: #233f40; }
.detail p { margin: 1px 0 10px; font-size: .94rem; line-height: 1.48; }
.event-links { display: flex; flex-wrap: wrap; gap: 7px 16px; }
.badge { display: inline-block; color: var(--teal); border-radius: 4px; background: #e1ebe1; padding: 1px 6px; font-weight: 630; }
a { color: #084d51; font-weight: 650; text-underline-offset: 3px; }
.empty { margin: 24px 0; color: var(--muted); }
.footer { margin-top: 35px; border-top: 1px solid var(--line); padding-block: 20px 30px; color: var(--muted); font-size: .88rem; }
.footer p { margin: 0 0 10px; }
@media(max-width: 720px) {
  .wrap { padding-inline: 17px; }
  .hero .wrap { padding-block: 25px 30px; }
  .brand { margin-bottom: 17px; }
  .filters { margin-block: 17px 23px; padding: 13px; }
  .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .event summary { grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding-inline: 12px; }
  .timing { grid-column: 1; }
  .label-stack { grid-column: 1; grid-row: 2; }
  .toggle { grid-column: 2; grid-row: span 2; align-self: center; }
}
@media(max-width: 360px) {
  .shortcuts button { padding-inline: 9px; }
  #reset { margin-left: 0; }
}
