/* Public schedule and event views. Admin and club editors load their own styles. */
body.site {
  --bg: #101315;
  --surface: #1a1e21;
  --surface-2: #242a2e;
  --text: #f3f5ef;
  --muted: #adb6b6;
  --accent: #d7fa49;
  --st-line: #333b3e;
  --st-pad: clamp(20px, 2.5vw, 64px);
  background: var(--bg);
  color: var(--text);
}
.catalog-title-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:.5rem;
}
.catalog-title-row h1 { margin:0; }
.catalog-stage-checks { position:relative; }
.catalog-stage-checks > summary {
  display:flex; align-items:center; justify-content:center; gap:.4rem;
  min-height:44px; padding:0 .55rem; border-radius:8px;
  color:var(--muted); font-size:.875rem; cursor:pointer; list-style:none;
}
.catalog-stage-checks > summary::-webkit-details-marker { display:none; }
.catalog-stage-checks > summary::after {
  content:""; width:.4rem; height:.4rem; border:solid currentColor;
  border-width:0 1.5px 1.5px 0; transform:translateY(-.1rem) rotate(45deg);
}
.catalog-stage-checks[open] > summary::after { transform:translateY(.1rem) rotate(225deg); }
.catalog-stage-checks > summary:hover, .catalog-stage-checks[open] > summary {
  background:var(--surface); color:var(--text);
}
.catalog-stage-checks nav {
  position:absolute; top:calc(100% + .25rem); inset-inline-end:0; z-index:40;
  display:grid; width:max-content; max-width:calc(100vw - 2rem); padding:.3rem;
  border:1px solid var(--st-line); border-radius:12px;
  color:var(--text); background:var(--surface); box-shadow:var(--shadow-pop);
}
.catalog-stage-checks nav a {
  display:flex; align-items:center; min-height:44px; padding:.25rem .7rem;
  border-radius:8px; text-decoration:none; font-size:.92rem;
}
.catalog-stage-checks nav a:hover, .catalog-stage-checks nav a:focus-visible { background:var(--surface-2); }
main.wrap:has(> .about-intro) { max-width:calc(76rem + 2 * var(--st-pad)); }
.about-intro, .about-info {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  align-items:start;
  gap:clamp(24px,4vw,64px);
}
.about-intro { margin-block:1.25rem 2rem; }
.about-intro h2, .about-data h2 { margin:0 0 .5rem; }
.about-intro p { margin:0 0 .5rem; }
.about-sources p, .about-guide p, .about-data p { max-width:68ch; }
.about-contact-panel {
  padding:clamp(.9rem,1.5vw,1.25rem);
  border:1px solid var(--st-line);
  border-radius:14px;
  background:var(--surface);
}
.about-contact-panel p { color:var(--muted); }
.about-channels { display:flex; flex-wrap:wrap; gap:0 clamp(.75rem,3vw,2rem); }
.about-channels a {
  display:flex; flex-direction:column; justify-content:center; align-items:start;
  min-height:44px; padding-block:.25rem;
  color:var(--text); text-decoration:none; overflow-wrap:anywhere;
}
.about-channels a > span:first-child { color:var(--muted); font-size:.875rem; }
.about-channels strong { text-decoration:underline; text-underline-offset:.18em; }
.about-channels a:hover strong, .about-example:hover { color:var(--accent); }
.about-example { display:inline-flex; align-items:center; min-height:44px; font-weight:600; overflow-wrap:anywhere; }
.about-guide, .about-data { border-top:1px solid var(--st-line); padding-top:1rem; }
.about-guide h2 { margin:0 0 .9rem; }
.about-guide h3 { margin:1rem 0 .35rem; }
.about-guide p, .about-data p { margin:0 0 .65rem; }
.about-guide > :last-child, .about-data > :last-child { margin-bottom:0; }
.about-data { margin-top:1.75rem; }
@media (max-width:42rem) {
  .about-intro, .about-info { grid-template-columns:minmax(0,1fr); gap:1.25rem; }
  .about-intro { margin-block:1rem 1.5rem; }
}
.st-header, .st-tabbar, .st-calendar, .st-detail { font-family: Manrope, Arial, sans-serif; }
.wrap {
  width:100%;
  max-width:calc(62rem + 2 * var(--st-pad));
  margin-inline:0;
  padding-inline:var(--st-pad);
}
.wrap-wide, .st-calendar.wrap, .foot > .wrap { max-width:none; }
.foot p { max-width:70ch; }
.st-stage-examples {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 14px;
  padding:6px var(--st-pad); color:var(--muted); font:14px/1.45 system-ui;
}
.st-header { display:flex; align-items:center; gap:clamp(18px,2vw,34px); border-bottom:1px solid var(--st-line); padding:8px var(--st-pad); }
.st-header a, .st-tabbar a { display:inline-flex; align-items:center; min-height:44px; color:var(--text); text-decoration:none; }
.st-header .st-brand { font-weight:800; font-size:21px; letter-spacing:-.65px; gap:9px; white-space:nowrap; }
.st-brand svg { width:26px; height:26px; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.st-header nav { display:flex; gap:22px; flex:1; }
.st-header nav a, .st-header .st-saved-nav, .st-header .st-mobile-about { font-size:14px; }
.st-saved-nav { gap:5px; }
.st-secondary[data-follow][hidden] { display:none; }
.st-saved-count { color:var(--accent); font-size:.78rem; font-weight:700; }
.st-tabbar .st-saved-count { font-size:.68rem; vertical-align:middle; }
.st-header nav a { color:var(--muted); border-bottom:2px solid transparent; }
.st-header a[aria-current] { color:var(--text); border-bottom:2px solid var(--accent); }
.st-header .st-mobile-about, .st-tabbar { display:none; }
.st-calendar.wrap, .st-detail.wrap { padding-block:18px 24px; }
.st-detail.wrap { max-width:calc(70rem + 2 * var(--st-pad)); }
.st-detail .event { max-width:none; }
.st-mast { display:flex; gap:clamp(24px,3vw,48px); align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.st-eyebrow { font-size:10px; letter-spacing:1.2px; font-weight:700; text-transform:uppercase; color:var(--muted); margin:0 0 3px; }
.st-calendar h1, .st-detail h1, .st-calendar h2, .st-detail h2, .st-calendar h3 { font-family:inherit; }
.st-mast h1 { font-size:clamp(25px,2.35vw,38px); line-height:1.15; margin:0; letter-spacing:-1.2px; font-weight:800; }
.st-modes { display:inline-flex; gap:2px; padding:4px; background:var(--surface); border-radius:11px; }
.st-modes a { display:grid; place-items:center; min-height:42px; border-radius:8px; padding:0 19px; text-decoration:none; color:var(--muted); font-size:14px; }
.st-modes a[aria-current] { background:var(--accent); color:#172000; font-weight:700; }
.st-mode-row { display:flex; align-items:center; gap:.5rem; margin-bottom:12px; }
.st-mast > .catalog-stage-checks, .st-mode-row > .catalog-stage-checks { margin-inline-start:auto; }
.st-calendar .st-tools { display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; position:relative; margin:0 0 17px; padding:0; }
.st-tools .filter-search { display:flex; align-items:center; min-height:44px; min-width:0; margin:0; width:min(26rem,75%); border:1px solid var(--st-line); border-radius:10px; background:var(--surface); }
.st-tools .filter-search:focus-within { border-color:var(--muted); box-shadow:none; outline:none; }
.st-tools .filter-search input, .st-tools .filter-search input:focus-visible { background:transparent; width:100%; min-width:0; border:none; outline:none; box-shadow:none; padding:8px 10px; color:var(--text); }
.st-tools .filter-search input { order:2; font-size:14px; }
.st-tools .filter-search .search-button { position:static; min-width:40px; min-height:40px; width:40px; padding:0; margin:0; border:0; background:transparent; }
.st-tools .filter-chosen { flex-basis:100%; }
.st-tools .filter-chosen li { min-width:0; max-width:100%; }
.st-tools .filter-chosen a { min-height:36px; max-width:100%; overflow-wrap:anywhere; }
.st-tools .filter-chosen svg { flex-shrink:0; }
.st-tools .filter-chosen .filter-reset { margin:0; background:transparent; color:var(--muted); text-decoration:underline; }
.st-tools .filter-reset .reset-word { display:inline; }
.st-tools .filter-reset svg, .st-tools .filter-reset .count { display:none; }
.st-filters { max-width:100%; margin:0; }
.st-filters > summary, .st-guide > summary, .st-conditions > summary { cursor:pointer; }
.st-filters > summary { width:fit-content; border:1px solid var(--st-line); border-radius:10px; padding:10px 14px; min-height:44px; font-size:14px; }
.st-filters[open] { flex-basis:100%; }
.st-filters .filter-bar { display:grid; justify-items:start; gap:8px; overflow:visible; margin:0; padding:10px 0 0; }
.st-filters .filter-bar > * { max-width:100%; min-width:0; }
.st-filters .chip-row { flex-wrap:wrap; }
.st-filters .filter-main { flex-wrap:wrap; }
.st-filters .filter-bar .type-chips { order:0; }
.st-filters .filter-main { order:1; width:100%; }
.st-filters .more-filters[open] { flex-basis:100%; }
.st-filters .more-filters > summary { width:fit-content; }
.st-filters .more-body { position:static; max-height:none; margin-top:6px; max-width:64rem; box-shadow:none; }
@media (max-width:40rem) {
  .st-tools .filter-search input, .st-filters select { font-size:1rem; }
  .st-filters .chip-select select, .st-filters .more-filters > summary, .st-filters .chip span { min-height:40px; }
  .st-filters .filter-selects label { min-width:0; }
}
.st-heading { display:flex; gap:12px; align-items:baseline; margin-bottom:8px; }
.st-heading h2, .st-detail h2 { margin:0 0 4px; font-size:20px; line-height:1.3; letter-spacing:-.45px; }
.st-heading span, .st-label, .st-card-foot { color:var(--muted); font-size:13px; }
.st-day { margin-bottom:20px; }
.st-layout { display:grid; grid-template-columns:minmax(0,min(60%,54rem)) minmax(0,1fr); gap:clamp(18px,2vw,38px); align-items:start; }
.st-list { display:grid; gap:10px; }
.st-many { grid-template-columns:repeat(auto-fit,minmax(min(100%,29rem),1fr)); align-items:stretch; }
.st-many > .st-card { display:flex; flex-direction:column; }
.st-many .st-card-core { margin-bottom:auto; }
.st-day > .st-side { max-width:29rem; margin-top:10px; }
.st-day > .repeats { margin-block:8px; }
.repeat-price { white-space:nowrap; font-size:.9em; }
.st-card, .st-hero { min-width:0; border:1px solid #697b32; border-radius:16px; background:linear-gradient(110deg,#222a1c,var(--surface) 68%); }
.st-card { padding:clamp(16px,1.5vw,24px); }
.st-tags { display:flex; align-items:center; gap:9px; flex-wrap:wrap; color:var(--muted); font-size:13px; margin-bottom:13px; }
.st-tag { font-size:12px; font-weight:700; background:#303b22; color:#c9e884; padding:3px 7px; border-radius:5px; }
.st-card-core { display:grid; align-items:start; grid-template-columns:fit-content(10rem) minmax(0,1fr) auto; gap:13px; }
.st-clock { display:block; font:800 clamp(23px,2vw,30px)/1.15 Manrope,Arial,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.8px; }
.st-date-range { font-size:1.03rem; line-height:1.35; letter-spacing:0; }
.st-lead-time small, .st-price small, .st-times small { display:block; color:var(--muted); font-size:13px; font-weight:400; }
.st-card-title h3 { font-size:clamp(17px,1.35vw,22px); margin:0; line-height:1.35; overflow-wrap:anywhere; }
.st-card-title a { color:var(--text); text-decoration:underline; text-decoration-color:#657149; text-underline-offset:.18em; }
.st-card-title p { font-size:14px; color:var(--muted); margin:3px 0 0; }
.st-card .follow-event { position:static; width:44px; height:44px; margin:0; }
.st-card .follow-event[aria-pressed=true] { color:var(--accent); background:#303b22; }
.st-card.is-cancelled { border-color:var(--st-line); background:var(--surface); }
.st-card.is-cancelled .st-card-title a { text-decoration:line-through; text-decoration-thickness:1px; }
.st-card.is-cancelled .st-tag { background:var(--surface-2); color:var(--muted); }
.st-card.is-cancelled .st-clock { color:var(--muted); }
.st-card.is-cancelled .st-primary { background:var(--surface-2); color:var(--text); }
.st-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--st-line); padding-top:12px; margin-top:15px; }
.st-price { font-size:22px; line-height:1.18; font-weight:800; font-variant-numeric:tabular-nums; margin:0; }
.st-price small { margin-top:4px; }
.st-primary, .st-secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 15px; border-radius:9px; text-decoration:none; text-align:center; font:700 14px/1.4 Manrope,Arial,sans-serif; }
a.st-primary { background:var(--accent); color:#172000; }
a.st-primary:hover { background:#e4ff80; color:#172000; }
.st-secondary { background:var(--surface-2); color:var(--text); border:1px solid var(--st-line); cursor:pointer; }
.st-card-foot { margin:10px 0 0; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.st-side { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:16px; align-items:start; }
.st-track { border-left:2px solid var(--st-line); padding:6px 16px; }
.st-track h3 { font-size:18px; margin:5px 0 3px; }
.st-track p { font-size:14px; margin:0; color:var(--muted); }
.st-track a, .st-back, .st-place a, .st-actions a { min-height:44px; display:inline-flex; align-items:center; font-size:14px; color:var(--text); text-underline-offset:.18em; }
.st-guide { align-self:start; background:var(--surface); border:1px solid var(--st-line); padding:2px 12px; border-radius:12px; }
.st-guide summary, .st-conditions summary { padding:11px 0; font-size:14px; font-weight:700; }
.st-guide p, .st-conditions p, .st-extra { font-size:14px; color:var(--muted); }
.st-back { text-decoration:none; margin:-6px 0 10px; color:var(--muted); }
.st-back[hidden] { display:none; }
.club-search { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:0; }
.club-search .filter-search { width:min(100%,32rem); }
.club-search-reset, .clubs-map-disclosure > summary, .club-series > summary { min-height:44px; }
.club-search-reset { display:inline-flex; align-items:center; }
.clubs-map-disclosure > summary, .club-series > summary { width:fit-content; padding:10px 0; color:var(--text); cursor:pointer; font-weight:600; }
.club-search-count { color:var(--muted); font-size:.95rem; }
.club-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.facts.club-contacts, .club-addresses { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:12px 20px; }
.facts.club-contacts { margin:8px 0 12px; }
.facts.club-contacts > div { display:block; padding:0; border:0; min-width:0; }
.club-contacts dd a, .club-addresses li { overflow-wrap:anywhere; }
.club-addresses { list-style:none; margin:0 0 12px; padding:0; }
.club-addresses li { background:var(--surface); border:1px solid var(--st-line); border-radius:var(--radius); padding:10px 14px; }
.club-addresses li > :first-child { font-weight:650; }
.club-addresses span, .club-addresses small { display:block; }
.club-addresses small { color:var(--muted); }
.club-addresses .club-map-link { font-size:.875rem; }
.club-series .club-chips { margin:0 0 12px; }
.club-list .club-head h2 { min-width:0; overflow-wrap:anywhere; }
@media (min-width:76rem) {
  .club-list { grid-template-columns:repeat(auto-fill,minmax(23rem,1fr)); }
}
#club-races { scroll-margin-top:1rem; }
@media (max-width:40rem) {
  form.club-search .filter-search { flex:1 1 100%; max-width:none; }
}
.catalog-section .card-title a { display:block; overflow:visible; }
.catalog-section .card-meta > * { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
@media (max-width:40rem) {
  .st-catalog-filters .filter-search { max-width:none; }
  .st-catalog-filters .chip span, .st-catalog-filters .chip-select select, .st-catalog-filters .more-filters > summary { min-height:44px; }
  .st-catalog-filters .filter-selects label { min-width:0; }
  .st-catalog-filters .filter-selects select { max-width:100%; font-size:1rem; }
}
.st-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(17rem,31%); gap:20px 25px; align-items:start; }
.st-hero { padding:clamp(18px,2vw,30px); }
.st-hero h1 { max-width:25ch; margin:0; font-size:clamp(26px,2.8vw,39px); font-weight:800; line-height:1.13; letter-spacing:-1px; overflow-wrap:anywhere; }
.st-where { margin:12px 0 2px; font-size:15px; }
.st-date { margin:0; font-size:15px; font-weight:600; }
.st-times { display:flex; gap:18px; flex-wrap:wrap; margin-top:13px; }
.st-times > div { padding-top:7px; border-top:1px solid var(--st-line); }
.st-times strong { display:block; font-size:34px; line-height:1.15; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.st-times > div+div strong { font-size:29px; color:var(--muted); }
.st-book { min-width:0; background:var(--surface); border:1px solid var(--st-line); padding:18px; border-radius:16px; }
.st-book > p { margin:0; }
.st-book .st-price { margin:11px 0 14px; font-size:28px; }
.st-price.st-price-unknown { font-size:1rem; font-weight:500; line-height:1.35; color:var(--muted); }
.st-book .st-primary, .st-book .st-secondary { width:100%; }
.st-book .st-label { margin-top:7px; }
.st-actions { border-top:1px solid var(--st-line); margin-top:13px; padding-top:12px; display:flex; flex-direction:column; align-items:center; }
.st-program, .st-place { min-width:0; }
.st-place p { margin:2px 0; }
.st-place a { display:flex; width:fit-content; }
.st-timeline { list-style:none; margin:0; padding:0; }
.st-timeline li { border-top:1px solid var(--st-line); padding:8px 0; display:grid; grid-template-columns:max-content 1fr; gap:16px; font-size:15px; }
.st-timeline li span { color:var(--muted); min-width:3em; font-variant-numeric:tabular-nums; }
.st-conditions { border-top:1px solid var(--st-line); margin-top:8px; }
@media (max-width:940px) { .st-side { grid-template-columns:1fr; } }
@media (max-width:700px) {
  /* Keep focused links clear of the fixed tabs and the device's bottom inset. */
  html:has(.about-intro) { scroll-padding-block-end:calc(60px + max(4px, env(safe-area-inset-bottom))); }
  body.site { --st-pad:15px; padding-bottom:66px; }
  .st-header { justify-content:space-between; padding-block:3px; }
  .st-header .st-brand { font-size:19px; }
  .st-header nav, .st-header .st-saved-nav { display:none; }
  .st-header .st-mobile-about { display:inline-flex; }
  .st-tabbar { display:flex; position:fixed; z-index:20; bottom:0; left:0; right:0; justify-content:space-around; padding:4px 4px max(4px,env(safe-area-inset-bottom)); border-top:1px solid var(--st-line); background:var(--bg); }
  .st-tabbar a { flex:1; flex-direction:column; justify-content:center; gap:2px; color:var(--muted); font-size:11px; }
  .st-tabbar span { font-size:18px; line-height:1; }
  .st-tabbar a[aria-current] { color:var(--accent); }
  .st-mast { display:grid; gap:9px; margin-bottom:9px; }
  .st-mast:has(> .catalog-stage-checks) { grid-template-columns:minmax(0,1fr) auto; }
  .st-mast > :first-child { grid-column:1/-1; }
  .st-mode-row > .st-modes { flex:1; }
  .st-modes { display:flex; }
  .st-modes a { flex:1; padding-inline:7px; }
  .st-calendar.wrap, .st-detail.wrap { padding-top:12px; }
  .st-tools .filter-search { width:auto; flex:1; }
  .st-filters[open] { flex-basis:100%; }
  .st-layout, .st-detail-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .st-card { padding:14px; }
  .st-card .st-tags { margin-bottom:4px; }
  .st-card-core { grid-template-columns:minmax(0,1fr) auto; gap:7px 8px; }
  .st-lead-time { grid-column:1; display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; }
  .st-card-title { grid-column:1/-1; grid-row:2; }
  .st-card .follow-event { grid-column:2; grid-row:1; }
  .st-hero, .st-book { padding:16px; }
  .st-side { gap:8px; }
  .st-track { padding-block:0; }
}
@media (forced-colors:active) { .st-tools .filter-search:focus-within { border-color:Highlight; } }
/* FastAPI serves each view as a full document. Keep navigation consistent between them. */
/* Month cells keep the full count and cancellation notice even when previews are truncated. */
.month .cell-overview { display:flex; flex-direction:column; align-items:center; gap:2px; }
.month .cell-tally { display:inline-flex; align-items:center; justify-content:center; gap:2px; min-width:18px; padding:1px 4px; border-radius:5px; background:var(--surface-2); color:var(--muted); font:600 11px/1.25 Manrope,Arial,sans-serif; font-variant-numeric:tabular-nums; pointer-events:none; }
.month .cell-alert, .cal-legend .cell-alert, .month-day-alert { color:var(--cancel); font-weight:700; }
.month .cell-tally .cell-alert, .cal-legend .cell-alert { display:inline-grid; place-items:center; width:13px; height:13px; margin-left:1px; border-radius:50%; background:var(--cancel); color:var(--bg); font:700 13px/1 Arial,sans-serif; }
.month .cell-day:focus-visible::after { outline:2px solid var(--accent); outline-offset:-2px; border-radius:var(--radius-sm); }
.month-view .day-panel, .st-calendar .list-days .day { scroll-margin-top:1rem; }
.month-view .day-panel-head .month-day-heading, .st-calendar .list-days .month-day-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
.month-day-heading h2 { margin:0; }
.month-day-count, .month-day-alert { font-size:.82rem; }
.month-day-count { color:var(--muted); }
.list-days .month-day-heading { margin-bottom:6px; }
.month-day-cards { display:grid; grid-template-columns:minmax(0,1fr); gap:5px 9px; }
.month-day-cards > article.card { min-width:0; margin:0; border:1px solid var(--line); border-radius:9px; }
.month-day-cards .card-title a { display:block; -webkit-line-clamp:unset; line-clamp:unset; overflow:visible; overflow-wrap:anywhere; }
.month-day-cards .card.is-cancelled .card-title a { text-decoration:none; }
@media (min-width:56rem) {
  .month .cell-overview { flex-direction:row; gap:6px; min-height:1.5rem; margin-bottom:4px; }
  .month .cell-day { margin-bottom:0; }
  .month-day-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:55.99rem) {
  .month .cell { min-height:46px; }
  .month-view > .cal-legend { order:0; margin-block:7px 0; }
}
@view-transition { navigation:none; }

.week-dates {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  width:min(100%,58rem);
  gap:4px;
  margin-block:12px 18px;
}
.week-dates a {
  min-width:0;
  display:grid;
  align-content:center;
  gap:2px;
  min-height:52px;
  padding:5px 8px;
  background:var(--surface);
  border:1px solid var(--st-line);
  border-radius:9px;
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}
.week-dates small, .week-count { color:var(--muted); font-size:.82rem; font-weight:400; }
.week-dates a:hover { border-color:var(--muted); }
.week-dates a[aria-current] { border-color:var(--accent); background:#2a351e; }
.week-dates a[aria-current] > span { color:var(--accent); }
.week-dates a:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.week-day { scroll-margin-top:7.5rem; }
.week-day > h2 { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline; }
.week .week-day.is-past .week-entries { opacity:1; filter:none; }
.week-entries { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.week-entries > article.card {
  min-width:0;
  margin:0;
  border:1px solid var(--st-line);
  border-radius:10px;
}
.week-entries .card-title a { display:block; overflow:visible; }
.week-entries > .card.is-cancelled { background:var(--surface); }
.week-entries .card.is-cancelled::before { background:var(--muted); }
.week-entries .card.is-cancelled .card-title a { text-decoration:none; }
.week-rest { padding-top:4px; border-top:1px solid var(--st-line); }
.week-rest > summary { width:fit-content; min-height:44px; padding-block:10px; cursor:pointer; font-weight:700; }
@media (max-width:52rem) {
  .week-entries { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:36rem) {
  .week-dates { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .week-dates a { padding:4px 6px; min-height:44px; }
  .week-dates small { font-size:.72rem; }
}

.catalog-toolbar { display:grid; gap:10px; margin-bottom:12px; }
.catalog-toolbar .st-catalog-filters {
  --filter-button-width:8rem;
  display:grid; grid-template-columns:minmax(0,1fr) var(--filter-button-width);
  align-items:start; gap:8px; margin:0;
}
.st-catalog-filters .filter-search { grid-column:1; width:100%; max-width:none; }
.catalog-filter-panel { grid-column:2; }
.catalog-filter-panel > summary, .st-schedule-tools .st-filters > summary {
  display:flex; align-items:center; justify-content:center; gap:10px; width:100%;
  border-color:var(--line-strong); background:var(--surface); font-weight:600;
}
.catalog-filter-panel > summary::-webkit-details-marker, .st-schedule-tools summary::-webkit-details-marker { display:none; }
.catalog-filter-panel > summary::after, .st-schedule-tools .st-filters > summary::after {
  content:""; width:.45em; height:.45em; border:solid currentColor; border-width:0 2px 2px 0;
  transform:translateY(-2px) rotate(45deg);
}
.catalog-filter-panel[open] > summary::after, .st-schedule-tools .st-filters[open] > summary::after { transform:translateY(2px) rotate(225deg); }
.catalog-filter-panel[open] { grid-column:1/-1; }
.catalog-filter-panel[open] > summary { position:absolute; top:0; right:0; width:var(--filter-button-width); }
.catalog-filter-panel .filter-bar {
  gap:10px; padding:12px; border:1px solid var(--st-line); border-radius:12px; background:var(--surface);
}
.catalog-filter-panel .filter-main { gap:8px; }
.catalog-filter-panel .filter-selects { width:100%; }
.catalog-filter-panel .filter-selects select { min-height:44px; }
.st-catalog-filters .filter-chosen { grid-column:1/-1; }
.catalog-results-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.catalog-result-count { margin:0; color:var(--text); font-weight:700; font-variant-numeric:tabular-nums; }
.catalog-toolbar .feed-sort { gap:6px; margin:0; }
.catalog-toolbar .feed-sort .chip-link { min-height:40px; }
.catalog-toolbar .filter-note { margin:0; }

/* Поиск и переключатель остаются в первой строке при раскрытии панели. */
.st-calendar .st-schedule-tools {
  --search-width:min(26rem, calc(100% - 8.75rem));
  display:block; max-width:56rem;
}
.st-schedule-tools .filter-search { position:absolute; inset:0 auto auto 0; width:var(--search-width); max-width:none; }
.st-schedule-tools .filter-search input { text-overflow:ellipsis; }
.st-schedule-tools .st-filters > summary { width:fit-content; margin-inline-start:calc(var(--search-width) + 8px); white-space:nowrap; }
.st-schedule-tools .st-filters[open] > summary { border-color:var(--accent); }
.st-schedule-tools .filter-bar {
  grid-template-columns:minmax(0,1fr); justify-items:stretch; gap:16px;
  margin-top:8px; padding:clamp(12px,2vw,20px);
  border:1px solid var(--st-line); border-radius:12px; background:var(--surface);
}
.st-schedule-tools legend, .st-schedule-tools .filter-main label { font-size:var(--fs-sm); color:var(--muted); }
.st-schedule-tools legend { margin-bottom:8px; }
.st-schedule-tools .filter-main { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px; }
.st-schedule-tools .filter-main label { display:grid; gap:4px; min-width:0; }
.st-schedule-tools select { min-height:44px; background-color:var(--bg); }
.st-schedule-tools select:has(option:checked:not([value=""])) { border-color:var(--accent); }
.st-schedule-tools .filter-chosen { margin-top:8px; }
@media (max-width:40rem) {
  .st-schedule-tools .filter-main { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:30rem) {
  .st-schedule-tools .chip-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); }
  .st-schedule-tools .chip span {
    width:100%; height:100%; min-height:44px; padding:4px 8px;
    border-radius:9px; white-space:normal; overflow-wrap:anywhere; line-height:1.2;
  }
}
@media (max-width:23rem) {
  .st-schedule-tools .chip-row { display:flex; }
  .st-schedule-tools .chip { flex:1 0 auto; }
  .st-schedule-tools .chip span { white-space:nowrap; }
}
@media (max-width:43.75rem) {
  .catalog-toolbar { grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; }
  .catalog-toolbar .st-catalog-filters, .catalog-results-bar { display:contents; }
  .st-catalog-filters .filter-search, .catalog-toolbar .filter-note { grid-column:1/-1; }
  .catalog-filter-panel { grid-area:2/1; }
  .catalog-filter-panel[open] { grid-column:1/-1; }
  .catalog-filter-panel > summary, .catalog-filter-panel[open] > summary { position:static; width:fit-content; }
  .catalog-filter-panel[open] > summary { margin-bottom:8px; }
  .catalog-filter-panel .filter-bar { padding:10px; }
  .catalog-filter-panel .filter-selects { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-filter-panel .filter-selects label:nth-child(3) { grid-column:auto; }
  .catalog-panel-sort:not(:empty) { margin-top:8px; }
  .catalog-result-count, .catalog-results-bar > .feed-sort { grid-column:1/-1; }
  .catalog-toolbar:has(.catalog-filter-panel:not([open])) .catalog-result-count { grid-area:2/2; justify-self:end; }
  .catalog-toolbar .feed-sort .chip-link { min-height:44px; }
}
