/* Discovery shares the global experience tokens and keeps imagery dominant. */
.discovery-page{background:var(--experience-bg);color:var(--experience-text)}
.discovery-page .site-footer{display:block}
.discovery-page #homeHero{padding:0;margin:0;max-width:none}
.discovery-featured{position:relative;isolation:isolate;min-height:74svh;max-height:920px;display:flex;align-items:flex-end;overflow:hidden;background:#151a16;color:#fff;margin:0 0 24px}
.discovery-featured-art,.discovery-featured-ambient{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3}
.discovery-featured-art{object-position:center 40%}
.discovery-featured-ambient{filter:blur(60px) brightness(.45);transform:scale(1.1);opacity:.45}
.discovery-featured::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(9,15,12,.91),rgba(9,15,12,.48) 45%,rgba(9,15,12,.04) 85%),linear-gradient(0deg,var(--experience-bg),transparent 36%)}
.discovery-featured .discovery-area-nav{position:absolute;top:24px;left:4%;margin:0}
.discovery-area-nav a{border:1px solid var(--experience-line);border-radius:6px;background:var(--experience-surface);color:var(--experience-text);padding:9px 14px;font-size:13px}
.discovery-featured .discovery-area-nav a{background:rgba(15,23,18,.7);border-color:#ffffff40;color:#fff}
.discovery-area-nav a[aria-current=page],.discovery-featured .discovery-area-nav a[aria-current=page]{background:var(--experience-brand);color:var(--experience-on-brand);border-color:var(--experience-brand)}
.discovery-featured-copy{padding:95px 4% 72px;width:min(760px,65%)}
.discovery-featured-copy h1{font-size:clamp(32px,4.5vw,66px);line-height:1.06;letter-spacing:-.045em;margin:10px 0 18px;text-wrap:balance;color:#fff}
.discovery-featured-copy .discovery-eyebrow{color:#e3e9df;margin:0;letter-spacing:.08em}
.discovery-featured-timing{font-weight:650;font-size:16px;margin:0 0 12px;color:#f0f3ed}
.discovery-featured-synopsis{font-size:15px;line-height:1.6;max-width:530px;color:#e0e7df;margin:0 0 22px}
.discovery-featured-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.discovery-featured-actions a,.discovery-featured-actions button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:11px 18px;border:1px solid #ffffff50;border-radius:5px;background:rgba(25,33,28,.7);color:#fff;text-decoration:none;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.discovery-featured-actions a{background:var(--experience-brand);color:var(--experience-on-brand);border-color:var(--experience-brand)}
.discovery-featured-copy>small{font-size:11px;color:#d9dfd7;display:block}
.discovery-featured-dots{position:absolute;right:4%;bottom:45px;display:flex;gap:5px}
.discovery-featured-dots button{background:#ffffff40;border:0;border-radius:0;width:22px;height:4px;padding:0;color:transparent;cursor:pointer;position:relative}
.discovery-featured-dots button::before{content:"";position:absolute;inset:-18px 0}
.discovery-featured-dots button[aria-current=true]{background:#fff}
.discovery-page #pageFilters,.discovery-page #eventSections{width:92%;max-width:1520px;margin-inline:auto}
.discovery-compact-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:15px 0 24px}
.discovery-compact-tools>button,.discovery-filter-chip,.discovery-load-more{padding:10px 14px;min-height:44px;background:var(--experience-surface);color:var(--experience-text);border:1px solid var(--experience-line);border-radius:5px;font:inherit;font-size:13px;cursor:pointer}
.discovery-active-search{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px}
.discovery-active-search>button{color:var(--experience-text);background:var(--experience-raised);border:1px solid var(--experience-line);border-radius:5px;min-height:36px}
.event-feature-chip{color:var(--experience-text);background:var(--experience-surface);border-color:var(--experience-line)}
.event-feature-chip[aria-pressed=true]{background:var(--experience-brand);color:var(--experience-on-brand)}
.discovery-results__head{margin-bottom:22px;align-items:center}
.discovery-results__head h2{font-size:23px;color:var(--experience-text)}
.discovery-results__head p,.discovery-row__head p,.discovery-caption,.discovery-notice{color:var(--experience-muted)}
.discovery-notice{background:var(--experience-surface);border-color:var(--experience-line);font-size:12px}
.discovery-view-switch{background:var(--experience-surface);border-color:var(--experience-line);padding:3px;border-radius:5px}
.discovery-view-switch button{color:var(--experience-muted);font-size:12px;border-radius:3px}
.discovery-view-switch button[aria-pressed=true]{background:var(--experience-brand);color:var(--experience-on-brand)}
.discovery-row{margin-bottom:30px}
.discovery-row__head{margin-bottom:12px;gap:12px}
.discovery-row__head h3{font-size:21px;margin-bottom:4px;color:var(--experience-text)}
.discovery-row__head p{font-size:12px}
.discovery-row__controls{align-items:center;gap:6px}
.discovery-view-all{font-size:12px;white-space:nowrap;color:var(--experience-text);padding:10px 4px;text-decoration:none}
.discovery-row__controls button{border-radius:4px;width:36px;height:36px;color:var(--experience-text);background:var(--experience-raised);border-color:var(--experience-line)}
.discovery-rail{grid-auto-columns:calc((100% - 64px)/4.3);gap:16px;padding:3px 0 10px;scrollbar-width:none;align-items:start}
.discovery-rail::-webkit-scrollbar{display:none}
.discovery-card{position:relative;background:transparent;border:0;border-radius:5px;overflow:visible;box-shadow:none;min-height:0;color:var(--experience-text)}
.discovery-card:hover{box-shadow:none}
.discovery-card__link{display:block;flex:none;min-width:0;border-radius:5px}
.discovery-card__image{aspect-ratio:1.65;border-radius:5px;background:var(--experience-raised)}
.discovery-card__image img{object-fit:cover}
.discovery-card__body,.discovery-rail .discovery-card__body{padding:10px 0 2px;display:block;min-height:0;flex:none;background:transparent}
.discovery-card h3,.discovery-rail .discovery-card h3{font-size:14px;font-weight:650;line-height:1.35;letter-spacing:-.015em;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.discovery-card__date{font-size:11px;font-weight:500;margin:0;color:var(--experience-muted);line-height:1.45}
.discovery-card__status{position:absolute;bottom:8px;left:8px;max-width:calc(100% - 16px);font-size:11px;line-height:1.3;background:#101b14db;color:#fff;padding:4px 7px;border-radius:3px}
.discovery-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 18px;align-items:start}
.discovery-load-more{grid-column:1/-1;justify-self:center}
.discovery-card--ranked{padding-left:45px}
.discovery-card--ranked .event-rank-number{position:absolute;left:-5px;top:8%;font-size:clamp(70px,7vw,112px);line-height:1;font-weight:800;letter-spacing:-.09em;z-index:0;color:var(--experience-bg);-webkit-text-stroke:2px var(--experience-muted)}
.discovery-card--ranked .discovery-card__link{position:relative}
.event-preview{position:fixed;z-index:160;overflow:auto;border:1px solid var(--experience-line);background:var(--experience-raised);color:var(--experience-text);border-radius:7px;box-shadow:0 15px 55px #0006;overscroll-behavior:contain}
.event-preview__image{position:relative;aspect-ratio:1.65}
.event-preview__image img{width:100%;height:100%;object-fit:cover;display:block}
.event-preview__image>button{position:absolute;right:10px;top:10px;border:1px solid #ffffff70;background:#172119db;color:#fff;border-radius:50%;width:36px;height:36px;font-size:23px;cursor:pointer}
.event-preview__body{padding:18px}
.event-preview__body h3{font-size:22px;line-height:1.2;letter-spacing:-.025em;margin:0 0 12px}
.event-preview__body p{font-size:13px;line-height:1.5;margin:7px 0;color:var(--experience-muted)}
.event-preview__body .event-preview__time{color:var(--experience-text);font-weight:650}
.event-preview__body .event-plan-actions{padding:14px 0 0;margin-top:10px;border-color:var(--experience-line);gap:8px}
.event-plan-actions button,.event-plan-actions a{background:var(--experience-surface);color:var(--experience-text);border:1px solid var(--experience-line);border-radius:5px;min-height:40px;padding:8px 11px;text-decoration:none;font-size:12px}
.event-plan-actions button[aria-pressed=true]{background:var(--experience-brand);color:var(--experience-on-brand);border-color:var(--experience-brand)}
.event-plan-actions button:disabled{opacity:.45;cursor:default}
.event-preview :focus-visible{outline:3px solid var(--experience-brand);outline-offset:2px}
.discovery-popup{background:var(--experience-raised);color:var(--experience-text);border:1px solid var(--experience-line);border-radius:10px;max-height:88svh;max-width:600px;width:calc(100% - 32px);padding:28px;overflow:auto}
.discovery-popup::backdrop{background:#0009;backdrop-filter:blur(3px)}
.discovery-popup-close{color:var(--experience-text);background:var(--experience-surface);border-color:var(--experience-line)}
.discovery-popup .discovery-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;background:transparent;border:0;margin:18px 0 0;gap:16px}
.discovery-filters label{color:var(--experience-muted)}
.discovery-filters input,.discovery-filters select{background:var(--experience-surface);color:var(--experience-text);border-color:var(--experience-line)}
.discovery-filter-footer{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px}
.discovery-filter-apply{background:var(--experience-brand);color:var(--experience-on-brand);border:0;border-radius:5px;padding:12px 18px;font:inherit;font-size:13px;cursor:pointer}
.discovery-reset{border-color:var(--experience-line);color:var(--experience-text)}
.discovery-detail{max-width:1380px;padding-top:24px;color:var(--experience-text)}
.discovery-detail h1{font-size:clamp(30px,3.4vw,48px);max-width:1050px}
.discovery-detail__organiser{font-size:14px;color:var(--experience-muted);margin-bottom:24px}
.discovery-detail__layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:28px;align-items:start}
.discovery-detail__image{border-radius:7px;aspect-ratio:1.5}
.discovery-detail__info{background:var(--experience-surface);border-color:var(--experience-line);border-radius:7px;padding:22px}
.discovery-detail__info h2{margin:0 0 15px;font-size:20px}
.discovery-detail__info dl{display:grid;grid-template-columns:85px minmax(0,1fr);gap:14px 16px;margin:18px 0}
.discovery-detail__info dt,.discovery-detail__info dd{margin:0;font-size:13px;line-height:1.5}
.discovery-detail__info dt{color:var(--experience-muted);letter-spacing:0;text-transform:none;font-weight:500}
.discovery-detail__info small{color:var(--experience-muted);margin-top:2px}
.discovery-detail__info .discovery-caption{font-size:11px;line-height:1.5}
.discovery-source{background:var(--experience-brand);color:var(--experience-on-brand);border-radius:5px}
.discovery-copy{margin-top:24px;color:var(--experience-text)}
.discovery-copy p{color:var(--experience-muted);line-height:1.65}
.event-detail-features span{background:var(--experience-raised);color:var(--experience-text);border-color:var(--experience-line)}
.discovery-page .discovery-intro{padding:32px 0 24px}
.discovery-page .discovery-intro h1{font-size:36px}
@media(hover:hover) and (pointer:fine){.discovery-row__controls button{opacity:0;transition:opacity .15s}.discovery-row:hover .discovery-row__controls button,.discovery-row:focus-within .discovery-row__controls button{opacity:1}}
@media(max-width:1000px){.discovery-rail{grid-auto-columns:calc((100% - 40px)/3.2);gap:14px}.discovery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.discovery-featured-copy{width:80%}.discovery-detail__layout{grid-template-columns:minmax(0,1fr) minmax(290px,1fr);gap:20px}}
@media(max-width:640px){.discovery-featured{min-height:68svh;max-height:none;margin-bottom:18px;align-items:flex-end}.discovery-featured-art{object-position:62% center}.discovery-featured::after{background:linear-gradient(0deg,var(--experience-bg),rgba(7,17,11,.86) 13%,rgba(7,17,11,.22) 63%,rgba(7,17,11,.25))}.discovery-featured .discovery-area-nav{top:16px;left:5%;right:5%;gap:8px}.discovery-featured .discovery-area-nav a{font-size:12px;padding:8px 11px}.discovery-featured-copy{width:100%;padding:160px 5% 42px}.discovery-featured-copy h1{font-size:32px;max-width:95%;margin:10px 0 14px}.discovery-featured-timing{font-size:13px}.discovery-featured-synopsis{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:17px}.discovery-featured-actions{gap:7px}.discovery-featured-actions a,.discovery-featured-actions button{padding:10px 12px;font-size:12px;min-height:44px}.discovery-featured-copy>small{font-size:10px}.discovery-featured-dots{bottom:17px;right:5%}.discovery-page #pageFilters,.discovery-page #eventSections{width:90%}.discovery-compact-tools{gap:8px;margin-bottom:20px}.discovery-results__head{gap:12px}.discovery-results__head h2{font-size:22px}.discovery-results__head p{font-size:11px}.discovery-view-switch button{font-size:11px;padding:8px}.discovery-rail{grid-auto-columns:66%;gap:12px}.discovery-row__head{align-items:start}.discovery-row__head h3{font-size:19px}.discovery-row__head p{font-size:11px;max-width:230px}.discovery-row__controls button{display:none}.discovery-view-all{font-size:11px;padding:6px 0}.discovery-row{margin-bottom:26px}.discovery-card__image{aspect-ratio:1.5}.discovery-card h3,.discovery-rail .discovery-card h3{font-size:13px}.discovery-card__date{font-size:10px}.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.discovery-grid .discovery-card__image{aspect-ratio:1.3}.discovery-card--ranked{padding-left:38px}.discovery-card--ranked .event-rank-number{font-size:88px;top:10%}.discovery-detail__layout{display:flex;flex-direction:column;gap:16px}.discovery-detail__layout>div{display:contents}.discovery-detail__image{order:1;aspect-ratio:1.5}.discovery-detail__layout>div>.discovery-caption{order:2}.discovery-detail__info{order:3;width:100%;padding:18px}.discovery-copy{order:4;margin:10px 0}.discovery-detail h1{font-size:30px}.discovery-popup{padding:24px 18px;border-radius:10px}}
@media(prefers-reduced-motion:reduce){.discovery-page *, .event-preview *{scroll-behavior:auto;transition:none}}
.discovery-page .mock-page{background:var(--experience-bg);padding-block:0}
.discovery-page .mock-page__grid{width:100%;max-width:none;padding-inline:0;gap:0;display:block}
.discovery-card__image img.discovery-poster,.event-preview__image img.discovery-poster,.discovery-featured-art.discovery-poster,.discovery-detail__image.discovery-poster{object-fit:contain;background:#101812;object-position:center}
.discovery-detail__organiser a{color:var(--experience-brand);text-decoration:none}
@media(max-height:500px) and (min-width:641px){.discovery-featured{min-height:85svh}.discovery-featured-copy{padding-top:100px;padding-bottom:48px}.discovery-featured-copy h1{font-size:36px}.discovery-featured-synopsis{display:none}}
.discovery-event-state{color:var(--experience-brand);font-size:13px;font-weight:650;margin:0 0 15px}
.discovery-detail>.discovery-row{margin-top:36px}
/* Match legacy body-scoped discovery rules without changing shared CSS. */
body.discovery-page .discovery-featured{min-height:70svh;border-radius:0;border:0;margin:0 0 8px;box-shadow:none}
body.discovery-page .discovery-compact-tools{padding:0;border:0;margin:8px 0 14px;gap:10px}
body.discovery-page .discovery-compact-tools>button{border-radius:5px;min-height:40px;padding:9px 13px}
body.discovery-page .discovery-results__head{margin-bottom:12px}
body.discovery-page .discovery-rows{margin-top:0}
body.discovery-page .discovery-results:has(.discovery-rows)>.discovery-results__head h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.discovery-page .discovery-results:has(.discovery-rows)>.discovery-results__head p{margin:0}
.discovery-event-tags{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none;margin:20px 0}
.discovery-event-tags li{border:1px solid var(--experience-line);background:var(--experience-surface);font-size:12px;padding:6px 9px;border-radius:4px;color:var(--experience-muted)}
@media(max-width:640px){body.discovery-page .discovery-featured{min-height:68svh}body.discovery-page .discovery-compact-tools{margin-top:8px;margin-bottom:12px}}
@media(max-height:500px) and (min-width:641px){body.discovery-page .discovery-featured{min-height:85svh}}
/* Keep the collection's leading artwork within reach of the hero. */
@media(min-width:1100px){
 body.discovery-page[data-page=events] .discovery-results{position:relative;}
 body.discovery-page[data-page=events] .discovery-results__head:has([data-view=rows][aria-pressed=true]){position:relative;height:0;margin:0;display:block;overflow:visible;}
 body.discovery-page[data-page=events] .discovery-results__head:has([data-view=rows][aria-pressed=true])>div:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
 body.discovery-page[data-page=events] .discovery-results__head:has([data-view=rows][aria-pressed=true]) .discovery-view-switch{position:absolute;right:0;bottom:10px;}
 body.discovery-page[data-page=events] .discovery-compact-tools{padding-right:235px;}
}
@media(max-width:640px){body.discovery-page[data-page=events] .discovery-featured{min-height:60svh;}}
body.discovery-page .discovery-rail .event-plan-actions{border-top:0;padding:6px 0;gap:6px;flex-wrap:wrap;}
body.discovery-page .event-plan-actions :is(button,a){min-height:44px;}


/* Students remains visible beside account controls at mobile widths. */
.discovery-students-entry{font-size:13px;font-weight:650;color:var(--text-primary,inherit);padding:8px 4px;white-space:nowrap}
.site-header .discovery-students-entry{color:#fff}
/* Compact collection, expanding search and spotlight playback. */
.discovery-header-audience select{font:inherit;font-size:13px;color:#fff;background:#203923;border:1px solid #ffffff55;border-radius:8px;min-height:44px;max-width:170px;padding:6px 8px}
.discovery-inline-search{position:relative;display:flex;flex:none;align-items:center}
.discovery-search-pill{position:absolute;right:0;display:flex;align-items:center;width:min(440px,70vw);min-height:44px;border-radius:99px;background:var(--experience-surface);border:1px solid var(--experience-line);box-shadow:0 6px 24px #0004;z-index:95;overflow:hidden}
.discovery-search-pill[hidden]{display:none}
.discovery-search-pill input{width:100%;min-width:0;border:0;background:transparent;color:var(--experience-text);font:inherit;font-size:16px;padding:10px 16px;min-height:44px}
.discovery-search-pill button{min-width:44px;min-height:44px;border:0;background:transparent;color:var(--experience-text);font-size:22px;cursor:pointer}
.discovery-inline-search.is-open>.discovery-header-search{visibility:hidden}
.discovery-featured-pause{position:absolute;top:20px;right:4%;min-height:44px;min-width:64px;border:1px solid #ffffff70;border-radius:8px;background:#142318e8;color:white;font:inherit;font-size:13px;padding:8px 12px;cursor:pointer}
.discovery-featured-pause[hidden]{display:none}
body.discovery-page[data-page=events] .discovery-results__head{height:auto;margin-bottom:18px;position:static;overflow:visible}
body.discovery-page[data-page=events] .discovery-results__head>div:first-child{position:static;width:auto;height:auto;clip-path:none;overflow:visible}
@media(max-width:760px){.discovery-header-audience select{max-width:122px;font-size:12px;padding:6px 4px}.discovery-search-pill{position:fixed;left:12px;right:64px;top:10px;width:auto}.discovery-featured-pause{top:12px;right:5%}}
@media(max-width:640px){.discovery-featured{height:68svh;min-height:480px;overflow:visible;margin-bottom:36px}.discovery-featured-art{border-radius:0;overflow:hidden}.discovery-featured-ambient{top:auto;bottom:-38px;height:40%;filter:blur(28px) saturate(.7);transform:none;opacity:.18;mask-image:linear-gradient(transparent,#000 35%,transparent);pointer-events:none}.discovery-featured::after{background:linear-gradient(0deg,#101b14 3%,#101b14ed 18%,#101b1490 55%,#101b1420)}.discovery-featured-copy{padding-top:125px;padding-bottom:28px}.discovery-featured-copy h1{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.discovery-featured-copy>small{font-size:11px}.discovery-card__date{font-size:12px}.discovery-card h3,.discovery-rail .discovery-card h3{font-size:15px}}
@media(prefers-reduced-transparency:reduce){.discovery-search-pill{box-shadow:none}.discovery-featured-ambient{display:none}}
.discovery-header-audience .visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.discovery-featured-art,.discovery-featured-ambient{animation:spotlight-reveal .35s ease-out}
@keyframes spotlight-reveal{from{opacity:.7}to{opacity:1}}
.discovery-featured-ambient{animation-name:spotlight-ambience}
@keyframes spotlight-ambience{from{opacity:.06}to{opacity:.18}}
@media(prefers-reduced-motion:reduce){.discovery-featured-art,.discovery-featured-ambient{animation:none}}
/* Catalogue and dedicated search results keep browsing compact and accessible. */
.discovery-rows .discovery-row,.discovery-personal-rows .discovery-row{margin-bottom:26px}
.discovery-all-events{margin-top:28px}.discovery-all-events>h2,.discovery-organiser-results>h2{margin-bottom:8px}
.discovery-all-events>.discovery-grid{align-items:start}.discovery-all-events>.discovery-load-more{display:block;margin:20px auto;min-height:44px}
.discovery-organiser-card{border:1px solid var(--experience-line);padding:18px;border-radius:12px;background:var(--experience-surface)}
.discovery-organiser-card p{color:var(--experience-muted);margin:4px 0}.discovery-organiser-card a{text-decoration:underline;text-underline-offset:3px}
.discovery-detail__info dd:has(.discovery-address){display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.discovery-address,.discovery-organiser-check{text-decoration:underline;text-underline-offset:3px}
.discovery-detail__info .discovery-map{display:inline-flex;align-items:center;white-space:nowrap;flex-shrink:0;min-height:44px;padding:6px 12px;border-radius:999px;background:#244b32;color:#fff;margin:0;font-size:13px}
.discovery-rail-frame{position:relative}
.discovery-rail{scrollbar-width:none;-ms-overflow-style:none}
.discovery-rail::-webkit-scrollbar{width:0;height:0;display:none}
.discovery-rail-edge{position:absolute;top:3px;bottom:10px;width:40px;z-index:170;border:0;border-radius:4px;background:#0c2115c9;color:#fff;font:inherit;font-size:20px;cursor:pointer;opacity:0;transition:opacity .18s;pointer-events:none}
.discovery-rail-edge[data-direction="-1"]{left:0}.discovery-rail-edge[data-direction="1"]{right:0}
.discovery-row:hover .discovery-rail-edge,.discovery-row:focus-within .discovery-rail-edge{opacity:1;pointer-events:auto}
.discovery-rail-edge[hidden]{display:none}.discovery-rail-edge:focus-visible{outline:3px solid var(--experience-brand);outline-offset:3px}
.event-preview__content{display:block;color:inherit;text-decoration:none}.event-preview__image>a{display:block;height:100%}
.discovery-open-map,.discovery-detail__info a.discovery-map-link,.discovery-map-button,.discovery-detail a[href*="maps.google"].discovery-source{color:#fff!important}
@media(max-width:640px),(hover:none){.discovery-rail-edge{display:none}}

.discovery-detail__info a.discovery-map,.discovery-detail__info a.discovery-map:hover,.discovery-detail__info a.discovery-map:focus,.discovery-detail__info a.discovery-map[aria-disabled="true"]{background:#14523a;color:#fff!important}
/* Colour is behind the transition controls, never over their text or surface. */
body.discovery-page #pageFilters{position:relative;z-index:2}
body.discovery-page .discovery-compact-tools>button{background:#315b2c;color:#fff;border-color:#315b2c;opacity:1}
.discovery-grid-support{color:var(--experience-text);background:transparent;border:0;font:inherit;text-decoration:underline;text-underline-offset:.2em;padding:8px 0;min-height:44px;cursor:pointer}.discovery-grid-support:focus-visible{outline:3px solid var(--brand,#14523a);outline-offset:3px}

body.discovery-page .discovery-compact-tools{padding-right:0;margin-bottom:4px}
body.discovery-page #openDiscoveryFilters{order:3;margin-left:auto;min-height:44px}
.discovery-results__head:empty{display:none}
.discovery-personal-rows{margin-top:8px}
.discovery-card--ranked .event-rank-number{color:var(--experience-brand);-webkit-text-stroke:1px var(--experience-bg)}
/* October integrated refinement: page-edge tools and a short ambient continuation. */
body.discovery-page #pageFilters{width:auto;max-width:none;margin-inline:max(4vw,env(safe-area-inset-left)) max(4vw,env(safe-area-inset-right));}
body.discovery-page .discovery-compact-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 6px;padding:0;}
body.discovery-page #openDiscoveryFilters{order:3;margin-left:auto;flex-shrink:0;}
body.discovery-page .discovery-results__head{margin-bottom:8px;}
body.discovery-page .discovery-results:has(.discovery-rows)>.discovery-results__head{height:0;margin:0;}
body.discovery-page .discovery-results:has(.discovery-rows)>.discovery-results__head>div{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
body.discovery-page .discovery-personal-rows{margin-top:0;}
body.discovery-page .discovery-rail-edge{color:#fff;background:#07110feb;opacity:.92;pointer-events:auto;box-shadow:0 0 8px #0005;}
body.discovery-page .discovery-row:hover .discovery-rail-edge,body.discovery-page .discovery-row:focus-within .discovery-rail-edge{opacity:1;}
body.discovery-page .discovery-detail{padding-top:12px;}
body.discovery-page .discovery-detail .discovery-back{display:inline-flex;margin:0 0 10px;min-height:44px;align-items:center;}
body.discovery-page .discovery-detail>.discovery-eyebrow{margin:0 0 6px;}
body.discovery-page .discovery-detail>h1{margin:0 0 8px;}
body.discovery-page .discovery-detail__organiser{margin:0 0 16px;}
.shared-rail-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.shared-rail-empty{padding:20px;border:1px solid var(--experience-line);border-radius:12px;color:var(--experience-muted);}
@media(max-width:640px),(hover:none){body.discovery-page .discovery-rail-edge{display:none;}}
@media(max-width:640px){body.discovery-page #pageFilters{margin-inline:max(5vw,env(safe-area-inset-left)) max(5vw,env(safe-area-inset-right));}}
body.discovery-page[data-page=events] .discovery-compact-tools{padding-right:0;}
/* Owner-observed narrow-screen repairs: shrink the actual grid tracks and native controls. */
body #discoveryFiltersDialog{box-sizing:border-box;min-width:0;max-width:calc(100vw - 24px);margin:auto;overflow-y:auto;overflow-x:hidden;position:fixed;inset:12px;width:min(600px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 24px)}
body #discoveryFiltersDialog .discovery-filters{width:100%;min-width:0;box-sizing:border-box;margin-inline:0}
body #discoveryFiltersDialog :is(label,fieldset,input,select){min-width:0;max-width:100%;box-sizing:border-box}
body #discoveryFiltersDialog label{display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
body #discoveryFiltersDialog :is(input,select){width:100%;font:inherit}
body #discoveryFiltersDialog h2{padding-right:52px;overflow-wrap:anywhere}
body .discovery-detail__info dl{grid-template-columns:minmax(100px,max-content) minmax(0,1fr)}
body .discovery-detail__info :is(dt,dd){min-width:0;overflow-wrap:anywhere}
.discovery-plan-secondary{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;margin-top:8px}
body .discovery-plan-secondary button{border:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:10px 8px;font:inherit}
.discovery-plan-secondary button+button::before{content:'·';display:inline-block;margin-right:16px;text-decoration:none}
.discovery-plan-secondary [role=status]{flex-basis:100%;text-align:center}
.discovery-plan-provenance{font-size:.875rem;margin-top:12px}.discovery-plan-provenance summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
body .discovery-going-popup{box-sizing:border-box;text-align:center;padding:56px 24px 24px;overflow-wrap:anywhere}
body .discovery-going-popup h2{padding:0;text-align:center;margin:16px 0}
body .discovery-going-popup .discovery-going-logo{display:block;margin-inline:auto}
body .discovery-going-popup .discovery-going-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
body .discovery-going-popup .discovery-going-actions>*{max-width:100%;white-space:normal;min-height:44px}
@media(max-width:480px){body .discovery-detail__info dl{grid-template-columns:minmax(0,1fr);gap:4px}body .discovery-detail__info dd{margin-bottom:14px}body #discoveryFiltersDialog .discovery-filters{grid-template-columns:minmax(0,1fr)}}
/* Drop the decorative inline separator when large text needs separate action rows. */
.discovery-plan-secondary{container-type:inline-size}
@container(max-width:20em){.discovery-plan-secondary button+button::before{display:none}}

/* Keep the organiser after the event description in the mobile detail flow. */
@media(max-width:640px){.discovery-detail__layout .discovery-about-organiser{order:5}}

/* Compact, high-contrast controls appear only during interaction. */
body.discovery-page .discovery-rail-frame .discovery-rail-edge{top:calc(33% - 22px);bottom:auto;width:40px;height:44px;background:#173e28;color:#fff!important;border:1px solid #ffffff70;opacity:0;pointer-events:none}
body.discovery-page .discovery-row:hover .discovery-rail-edge,body.discovery-page .discovery-rail-edge:focus-visible{opacity:1;pointer-events:auto}
body.discovery-page .discovery-row:focus-within:not(:hover) .discovery-rail-edge:not(:focus-visible){opacity:0;pointer-events:none}
body .discovery-card--ranked .event-rank-number{-webkit-text-stroke:0;text-shadow:none;color:var(--experience-brand)}
body .discovery-header-audience select{appearance:none;-webkit-appearance:none;border:1px solid #ffffff55;border-radius:999px;background-color:#ffffff12;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;color:#fff;font:inherit;font-size:14px;min-height:44px;padding:8px 34px 8px 14px;max-width:190px;cursor:pointer}
body .discovery-header-audience select option{background:#1c2d20;color:#fff}
@media(max-width:760px){body .discovery-header-audience select{font-size:12px;max-width:148px;padding-left:10px;padding-right:28px;background-position:right 8px center}}
