.event-search-form.search-panel{display:block;padding:0;margin-top:-30px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 35px rgb(var(--navy-rgb) / 0.039);z-index:2}
.search-panel [hidden]{display:none!important}
.search-panel-top{padding:26px 28px 23px}
.search-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}
.search-eyebrow{font-size:9px;font-weight:600;letter-spacing:.13em;color:var(--text-secondary)}
.search-live-hint{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}
.search-live-hint>span{width:5px;height:5px;background:#5e865a;border-radius:50%}
.search-input-wrap{display:flex;align-items:center;position:relative;min-height:61px;border:1px solid var(--line);background:var(--canvas);border-radius:8px;transition:border-color .15s,box-shadow .15s}
.search-input-wrap:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgb(var(--brand-rgb) / 0.063);background:#fff}
.search-input-wrap>svg{width:22px;height:22px;color:var(--muted);flex-shrink:0;margin:0 16px 0 19px}
.search-panel .search-input-wrap input{font-size:16px;min-height:59px;line-height:1.5;padding:16px 62px 16px 0;width:100%;outline:none;border:0;border-radius:8px;background:transparent;letter-spacing:-.015em}
.search-panel .search-input-wrap input::placeholder{color:var(--text-subtle)}
.search-panel .search-input-wrap input::-webkit-search-cancel-button{display:none}
.search-panel .search-clear{display:grid;place-items:center;position:absolute;right:17px;width:29px;height:29px;padding:4px;background:var(--surface-soft);color:var(--muted);border:0;border-radius:50%;cursor:pointer}
.search-clear svg{width:19px;height:19px}.search-clear:hover{background:var(--line)}
.search-progress{position:absolute;right:19px;width:17px;height:17px;border:2px solid var(--brand-border);border-top-color:var(--brand);border-radius:50%;animation:search-spin .7s linear infinite}
@keyframes search-spin{to{transform:rotate(360deg)}}
.search-panel-bottom{display:flex;align-items:center;gap:18px;padding:19px 28px;background:var(--white);border-top:1px solid var(--surface-soft);border-radius:0 0 13px 13px}
.filter-caption{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500;color:var(--muted)}
.filter-caption svg{width:18px;height:18px}
.filter-controls{display:flex;align-items:center;flex-wrap:wrap;gap:11px;flex:1;min-width:0}
.polished-filter{position:relative;min-width:125px;max-width:290px;flex:0 1 230px}
.polished-filter[data-filter-name=year]{flex-basis:150px;min-width:120px}
.polished-filter[data-filter-name=type],.polished-filter[data-filter-name=period]{flex-basis:200px}
.search-panel .polished-filter>label{font-size:9px;letter-spacing:.02em;margin:0 0 7px}
.search-panel .polished-filter>select{border:1px solid var(--line);border-radius:7px;background:#fff;min-height:43px;font-size:12px;padding:10px 11px 10px 35px}
.filter-native-icon{position:absolute;bottom:12px;left:11px;width:17px;height:17px;color:var(--muted)}
.filter-native-icon svg{width:100%;height:100%}
.search-panel .filter-enhanced>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.filter-enhanced>.filter-native-icon{display:none}
.filter-trigger{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:12px 13px;background:#fff;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:12px;text-align:left;color:var(--text-secondary);cursor:pointer;transition:border-color .15s,background .15s}
.filter-trigger:hover{border-color:var(--border-strong);background:var(--white)}
.filter-trigger:focus-visible,.search-clear:focus-visible,.search-filter-chip:focus-visible,.search-reset:focus-visible{outline:2px solid var(--brand-strong);outline-offset:3px}
.filter-trigger-icon{width:17px;height:17px;flex-shrink:0;color:var(--muted)}
.filter-trigger-icon svg{width:100%;height:100%}
.filter-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.filter-caret{width:15px;height:15px;flex-shrink:0;color:var(--muted);transition:transform .15s}
.filter-caret svg{width:100%;height:100%}
.filter-open{z-index:10}.filter-open .filter-caret{transform:rotate(180deg)}
.has-selection .filter-trigger{background:var(--brand-soft);border-color:var(--brand-border);color:var(--brand-strong)}
.filter-open .filter-trigger{border-color:var(--brand);box-shadow:0 0 0 3px rgb(var(--brand-rgb) / 0.063)}
.filter-popover{position:absolute;top:calc(100% + 9px);left:0;width:350px;max-width:calc(100vw - 64px);padding:8px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 45px rgb(var(--navy-rgb) / 0.149),0 2px 6px rgb(var(--navy-rgb) / 0.039);z-index:30}
.polished-filter:last-child .filter-popover{left:auto;right:0}
.polished-filter[data-filter-name=year] .filter-popover{width:230px}
.filter-open-up .filter-popover{top:auto;bottom:calc(100% + 9px)}
.filter-popover-heading{padding:10px 11px 9px;font-size:10px;font-weight:600;color:var(--muted)}
.filter-option-search{display:flex;align-items:center;gap:9px;padding:0 10px;margin:3px 3px 8px;border:1px solid var(--line);border-radius:7px;background:var(--canvas)}
.filter-option-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 2px rgb(var(--brand-rgb) / 0.063)}
.filter-option-search>svg{width:16px;height:16px;color:var(--muted);flex-shrink:0}
.search-panel .filter-option-search input{min-height:39px;padding:9px 0;font-size:12px;outline:none;letter-spacing:0}
.filter-options{max-height:min(290px,45vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.filter-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 11px;background:transparent;border:0;border-radius:6px;font:inherit;font-size:12px;line-height:1.55;text-align:left;color:var(--text-secondary);cursor:pointer}
.filter-option>span:first-child{overflow-wrap:anywhere}
.filter-option:hover,.filter-option.is-active{background:var(--canvas)}
.filter-option:focus-visible{outline:2px solid var(--brand-strong);outline-offset:-2px}
.filter-option[aria-selected=true]{color:var(--brand-strong);background:var(--brand-soft)}
.filter-option-tick{display:block;width:17px;height:17px;flex-shrink:0;visibility:hidden}
.filter-option-tick svg{width:100%;height:100%}
.filter-option[aria-selected=true] .filter-option-tick{visibility:visible}
.filter-options-empty{padding:18px 11px 24px;font-size:12px;line-height:1.7;color:var(--muted)}
.search-reset{font:inherit;font-size:11px;color:var(--brand-strong);text-decoration:underline;text-underline-offset:4px;border:0;background:transparent;padding:10px 0;cursor:pointer;white-space:nowrap}
.search-enhanced .search-fallback-submit{display:none}
.search-applied-filters{display:flex;gap:8px;flex-wrap:wrap;padding:0 28px 19px;background:var(--white);border-radius:0 0 13px 13px}
.search-filter-chip{display:flex;align-items:center;gap:8px;max-width:100%;border:1px solid var(--brand-border);background:var(--brand-soft);color:var(--brand-strong);border-radius:20px;padding:6px 10px;font:inherit;font-size:10px;line-height:1.5;cursor:pointer}
.search-filter-chip>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-filter-chip>svg{width:15px;height:15px;flex-shrink:0}
.search-filter-chip:hover{border-color:var(--brand);background:var(--brand-soft)}
#events-browser[aria-busy=true]{opacity:1;cursor:auto}
#directory-content{transition:opacity .15s}
#events-browser[aria-busy=true] #directory-content{opacity:.5;cursor:progress}
#events-browser[aria-busy=true] .search-clear{right:47px}
#events-browser[aria-busy=true] .search-live-hint>span{background:var(--brand)}
.event-tools{border:0;margin-top:26px}
.event-tabs{display:inline-flex;gap:3px;padding:5px;background:var(--surface-soft);border:1px solid var(--line);border-radius:9px}
.event-tabs a{margin:0;padding:11px 18px;border:0;border-radius:6px;font-size:11px;line-height:1.35;color:var(--muted)}
.event-tabs a[aria-current=page]{background:#fff;color:var(--navy);box-shadow:0 2px 5px rgb(var(--navy-rgb) / 0.047)}
.event-tabs a[aria-current=page]:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--brand)}
.event-tabs a[aria-current=page] .status-dot{display:none}
.event-tabs a:hover{background:var(--canvas)}
.calendar-link{padding:11px 14px;border:1px solid var(--line);border-radius:7px;background:var(--canvas);min-height:42px}
.events-list-heading{margin-top:32px}
.search-panel .search-input-wrap input{text-overflow:ellipsis}
@media(max-width:1100px){.filter-caption{display:none}.polished-filter{flex-basis:190px;max-width:250px}.polished-filter[data-filter-name=year]{flex-basis:150px}.polished-filter[data-filter-name=type],.polished-filter[data-filter-name=period]{flex-basis:170px}}
@media(max-width:760px){.event-search-form.search-panel{margin-top:-26px;border-radius:11px}.search-panel-top{padding:21px 19px 19px}.search-panel-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:17px}.search-eyebrow{font-size:8px}.search-live-hint{font-size:9px}.search-input-wrap{min-height:55px}.search-input-wrap>svg{width:19px;height:19px;margin:0 11px 0 13px}.search-panel .search-input-wrap input{font-size:16px;min-height:53px;padding:14px 45px 14px 0}.search-panel-bottom{padding:16px 19px;flex-wrap:wrap;gap:10px}.filter-controls{flex-basis:100%;gap:9px}.polished-filter{flex:1 1 120px;min-width:0;max-width:none}.polished-filter[data-filter-name=year]{flex:0 0 124px;min-width:0}.polished-filter[data-filter-name=type],.polished-filter[data-filter-name=period]{flex:1 1 140px}.filter-trigger{font-size:11px;padding:12px 10px;gap:7px}.filter-popover{width:100%;min-width:235px;max-width:calc(100vw - 50px)}.polished-filter[data-filter-name=year] .filter-popover{width:100%;min-width:190px}.filter-option{min-height:44px}.search-panel .filter-option-search input{font-size:16px}.search-applied-filters{padding:0 19px 16px}.search-reset{font-size:10px;padding:5px 0}.event-tools{margin-top:23px;padding-bottom:0;gap:14px}.event-tabs{width:100%;gap:2px;padding:4px;justify-content:space-between}.event-tabs a{font-size:9px;padding:10px 9px;gap:5px;justify-content:center;flex:1}.calendar-link{font-size:9px;padding:10px 12px}.events-list-heading{margin-top:29px}}
@media(max-width:380px){.filter-controls .polished-filter{flex-basis:100%}.filter-controls .filter-popover{left:0;right:auto;width:100%;min-width:0}.search-panel .search-input-wrap input{font-size:16px}.event-tabs a{font-size:8px;padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.search-progress{animation:none}.search-input-wrap,.filter-trigger,.filter-caret,#directory-content{transition:none}}

/* Compact directory intros; the homepage and individual detail heroes are separate. */
.events-page .events-hero.directory-hero{padding:18px 0 47px}
.events-page .directory-hero .events-breadcrumb,.events-page .directory-hero .catalog-breadcrumb{margin-bottom:14px;font-size:9px;line-height:1.5}
.events-page .directory-hero .eyebrow{display:none}
.events-page .events-hero.directory-hero h1{font-size:clamp(30px,3.1vw,44px);line-height:1.12;letter-spacing:-.045em;margin:0 0 10px;max-width:1000px}
.events-page .events-hero.directory-hero .wrap>p:last-child{font-size:12px;line-height:1.65;max-width:760px}
.events-page .directory-hero .events-hero-art{left:51%}
.events-page .directory-hero .events-hero-art img{object-position:77% 44%;opacity:.4}
.event-directory .search-panel-top{padding:18px 24px 16px}
.event-directory .search-panel-heading{margin-bottom:12px}
.event-directory .search-input-wrap{min-height:53px}
.event-directory .search-panel .search-input-wrap input{min-height:51px;padding-top:12px;padding-bottom:12px}
.event-directory .search-panel-bottom{padding:15px 24px}
.event-directory .search-applied-filters{padding:0 24px 15px}
.event-directory .event-tools{margin-top:20px}
.event-directory .events-list-heading{margin:22px 0 18px}
.event-directory .events-list-heading .eyebrow{display:none}
.event-directory .events-list-heading h2{font-size:27px;line-height:1.15;margin:0 0 7px}
.event-directory .events-list-heading>div>h2:last-child{margin-bottom:0}
.event-directory .calendar-toolbar{margin:24px 0 17px}
.event-directory .calendar-toolbar .eyebrow{display:none}
.event-directory .calendar-toolbar h2{font-size:30px;margin:0 0 8px}
@media(max-width:760px){
  .events-page .events-hero.directory-hero{padding:15px 0 40px}
  .events-page .directory-hero .events-breadcrumb,.events-page .directory-hero .catalog-breadcrumb{font-size:8px;margin-bottom:12px}
  .events-page .events-hero.directory-hero h1{font-size:30px;line-height:1.1;margin-bottom:9px;max-width:520px;text-wrap:balance}
  .events-page .events-hero.directory-hero .wrap>p:last-child{font-size:11px;line-height:1.65;max-width:440px}
  .events-page .directory-hero .events-hero-art{left:35%}
  .event-directory .search-panel-top{padding:16px 18px 14px}
  .event-directory .search-panel-heading{gap:8px;margin-bottom:13px}
  .event-directory .search-panel-bottom{padding:13px 18px}
  .event-directory .search-applied-filters{padding:0 18px 13px}
  .event-directory .event-tools{margin-top:18px;gap:12px}
  .event-directory .events-list-heading{margin:22px 0 17px;align-items:center}
  .event-directory .events-list-heading h2{font-size:25px}
  .event-directory .results-count{padding-top:0}
  .event-directory .calendar-toolbar{margin:23px 0 17px;gap:15px}
  .event-directory .calendar-toolbar h2{font-size:28px}
}
@media(max-width:380px){
  .events-page .events-hero.directory-hero h1{font-size:27px}
  .event-directory .events-list-heading h2{font-size:23px}
}

.event-tabs a[aria-current=page]{background:var(--navy);color:var(--white);box-shadow:0 2px 5px rgb(var(--navy-rgb) / .1)}
.event-tabs a[aria-current=page]:before{background:var(--white)}
.event-tabs a[aria-current=page]:hover{background:var(--navy-raised)}
.search-live-hint,.filter-options-empty{color:var(--muted)}
.search-panel .search-input-wrap input::placeholder{color:var(--text-subtle)}
.filter-option:hover,.filter-option.is-active{background:var(--surface-soft)}
.catalog-card,.detail-panel,.race-card,.detail-notice,.standings-filters{border-radius:12px}
.catalog-card{box-shadow:0 2px 8px rgb(var(--navy-rgb) / .025)}
.catalog-image,.catalog-badge{border-radius:7px}
.catalog-breadcrumb,.catalog-breadcrumb>span,.meta-separator{color:var(--on-dark-muted)}
