.header-search { flex: 0 0 auto; }
.header-search summary { align-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); cursor: pointer; display: flex; font-size: 14px; font-weight: 600; gap: 8px; list-style: none; padding: 11px 12px; }
.header-search summary::-webkit-details-marker { display: none; }
.header-search[open] summary, .header-search summary:hover { background: var(--paper-soft); }
.header-search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 22px; position: absolute; right: max(24px,calc((100% - 1260px)/2)); top: calc(100% + 8px); width: min(520px,calc(100% - 48px)); z-index: 35; }
.site-search-form { max-width: 760px; }
.site-search-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.site-search-fields { display: flex; gap: 10px; }
.site-search-fields input { background: var(--surface); border: 1px solid #c9b7a1; border-radius: 4px; color: var(--ink); flex: 1; min-height: 50px; min-width: 0; padding: 12px 14px; width: 100%; }
.site-search-fields input::placeholder { color: var(--muted); }
.discovery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.discovery-tabs a { border: 1px solid #c9b7a1; border-radius: 4px; color: var(--ink); font-size: 14px; padding: 9px 14px; text-decoration: none; }
.discovery-tabs a:hover { background: var(--surface); border-color: var(--accent); }
.discovery-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.event-filter-form { align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding: 24px; }
.event-filter-form .field { flex: 1; min-width: 180px; }
.event-filter-form > .text-link { margin-bottom: 12px; }
.discovery-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.search-results { display: grid; gap: 18px; }
.search-result { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.search-result-kind { color: var(--accent); display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.search-result h2 { font-size: 28px; margin-bottom: 12px; }
.search-result h2 a { text-decoration: none; }
.search-result h2 a:hover { color: var(--accent); text-decoration: underline; }
.search-result p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.search-result .search-result-address { color: var(--ink); font-size: 13px; }
.agenda-card .agenda-price { color: var(--ink); font-size: 13px; margin-top: 8px; }
.event-price { background: var(--surface); border-left: 3px solid var(--brass); padding: 14px 18px; }
@media (max-width: 1099px) { .header-search summary { padding-inline: 10px; } }
@media (max-width: 899px) { .header-search { order: 1; margin-left: auto; } .nav-toggle { order: 2; margin-left: 0; } }
@media (max-width: 619px) {
  .header-row { gap: 9px; }
  .header-row .brand { font-size: 25px; }
  .header-search summary { font-size: 12px; gap: 5px; padding: 10px 8px; }
  .header-search summary svg { width: 15px; height: 15px; }
  .nav-toggle { padding: 10px 8px; }
  .header-search-panel { padding: 18px; right: 18px; width: calc(100% - 36px); }
  .header-search-panel .site-search-fields { flex-wrap: wrap; }
  .header-search-panel .site-search-fields input { flex-basis: 100%; }
  .header-search-panel .site-search-fields .button { width: 100%; }
  .site-search-fields { gap: 8px; }
  .site-search-fields .button { padding-inline: 15px; }
  .event-filter-form { gap: 16px; padding: 18px; }
  .event-filter-form .field, .event-filter-form > .button { flex-basis: 100%; width: 100%; }
  .discovery-tabs a { font-size: 13px; padding: 9px 12px; }
  .search-result { padding: 20px; }
  .mobile-bottom-nav { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 359px) { .header-row .brand { font-size: 22px; } .header-row { gap: 7px; } .nav-toggle span { width: 18px; } }

.agenda-card .agenda-date-range { color: var(--ink); font-size: 14px; font-weight: 600; margin: 10px 0 5px; }
.agenda-period-hint { display: inline-block; color: #354f43; background: #e6ecdf; border: 1px solid #b7c5b7; border-radius: 3px; padding: 5px 9px; margin: 3px 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }

/* The weekday remains visible when the calendar colours cannot be distinguished. */
.date-tile { height: auto; min-height: 96px; overflow: hidden; padding-top: 13px; }
.date-tile .date-tile-month { margin-top: 6px; }
.date-tile .date-tile-weekday { align-self: stretch; border-top: 1px solid rgb(255 251 241 / 25%); font-size: 11px; font-weight: 600; letter-spacing: .08em; margin-top: 9px; padding: 7px 3px; text-align: center; }
.date-tile.date-tone-weekend { background: #354f43; }
.date-tile.date-tone-friday .date-tile-weekday { background: #354f43; }
.event-date-tag.date-tone-weekend { background: #354f43; border-color: #354f43; color: var(--surface); }
.event-date-tag.date-tone-friday { background: linear-gradient(115deg, var(--accent) 0 70%, #354f43 70% 100%); border-color: var(--accent); color: var(--surface); }
.event-date-inline { border-radius: 3px; padding: 3px 7px; }
.event-date-inline.date-tone-weekend { background: #354f43; color: var(--surface); }
.event-date-inline.date-tone-friday { background: linear-gradient(115deg, var(--accent) 0 70%, #354f43 70% 100%); color: var(--surface); }
.date-tile-unknown { font-size: 11px; line-height: 1.4; padding: 8px; text-align: center; }
@media (max-width: 619px) { .date-tile { min-height: 86px; padding-top: 10px; } .date-tile .date-tile-weekday { font-size: 10px; margin-top: 7px; padding-block: 6px; } }

/* Event categories share one wrapping row; the main header stays compact. */
.event-category-nav { margin-bottom: 8px; }
.home-hero-copy .event-category-nav { margin-top: 0; }
.home-hero-copy .event-category-nav a { background: rgb(255 251 241 / 55%); font-size: 13px; }
.offers-grid { display: grid; gap: 20px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.offer-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 5px; min-width: 0; padding: 26px; }
.offer-card-heading, .offer-card-footer { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
.offer-card h3 { font-size: 27px; line-height: 1.25; margin: 16px 0 14px; overflow-wrap: anywhere; }
.offer-card h3 a { text-decoration: none; }
.offer-card h3 a:hover { color: var(--accent); }
.offer-venue, .offer-card-footer span { color: var(--muted); font-size: 12px; }
.offer-conditions { color: var(--ink); font-size: 15px; line-height: 1.65; }
.offer-facts { margin: 20px 0; }
.offer-facts div { border-top: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: 120px minmax(0,1fr); padding: 12px 0; }
.offer-facts dt { color: var(--muted); font-size: 12px; }
.offer-facts dd { color: var(--ink); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.home-offers { background: var(--paper-soft); }
@media (max-width: 619px) { .offers-grid { grid-template-columns: 1fr; } .offer-card { padding: 20px; } .offer-card h3 { font-size: 25px; } .offer-facts div { grid-template-columns: 1fr; gap: 4px; } .event-category-nav a { max-width: 100%; } }
