/* Final explore layer: a quick decision, then the detail needed to leave. */
.discovery-spotlight{margin:13px 0 16px}
.spotlight-heading{margin-bottom:7px;gap:8px}
.spotlight-heading h2{font-size:15px;line-height:1.5}
.spotlight-heading>button,.spotlight-heading>span{font-size:12px;min-height:36px}
.spotlight-track{gap:10px}
.spotlight-card,.spotlight-card[data-genre],.spotlight-card:first-child{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:17px 44px 19px;align-content:center;align-items:center;column-gap:11px;row-gap:1px;min-height:112px;height:112px;padding:10px 13px;border-radius:13px;color:#242620;background:var(--pick-butter,#f8edcf)}
.spotlight-card:nth-child(2){background:var(--pick-sky,#eaf1f7)}
.spotlight-card:nth-child(3){background:var(--pick-coral,#faeae2)}
.spotlight-card .spotlight-symbol,.spotlight-card:first-child .spotlight-symbol{position:static;grid-column:1;grid-row:1/4;width:48px;height:60px;background:none;color:#526b4b;opacity:1}
.spotlight-card .spotlight-symbol>svg{width:100%;height:100%}
.spotlight-card .spotlight-kicker,.spotlight-card:first-child .spotlight-kicker{grid-column:2;grid-row:1;padding:0;font-size:11px;line-height:17px;color:#53594c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spotlight-card .spotlight-title{grid-column:2;grid-row:2;font-size:16px;line-height:22px;max-height:44px;min-width:0;padding:0;letter-spacing:-.02em;-webkit-line-clamp:2}
.spotlight-card .spotlight-state,.spotlight-card .spotlight-time{display:none}
.spotlight-card .spotlight-meta,.spotlight-card:first-child .spotlight-meta{grid-column:2;grid-row:3;display:flex;align-content:center;align-items:center;flex-wrap:nowrap;gap:0 8px;margin:0;padding:0;max-width:100%;font-size:12px;line-height:19px;color:#53594c;white-space:nowrap;overflow:hidden}
.spotlight-meta>span{white-space:nowrap;flex-shrink:0;word-break:normal}
.spotlight-meta>span:last-child{flex-shrink:1;overflow:hidden;text-overflow:ellipsis}
.spotlight-card::after,.spotlight-card:first-child::after{display:none}
.event-title{font-size:17px;line-height:1.45;text-wrap:balance}
.row-map-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;border-radius:7px;color:#3b5e48}
.row-map-link:hover{background:#eaf0e2;text-decoration:underline}
.event-row:has(.decision-summary)>.event-meta{display:none}
.event-row:has(.decision-summary)>.decision-summary{grid-row:1/3;align-self:center}
.event-row:has(.decision-summary) .event-distance{grid-row:1}
.event-row:has(.decision-summary) .row-map-link{grid-row:2;grid-column:3/5;min-height:36px;font-size:12px;justify-self:end;padding-inline:5px}
.event-subline .event-venue{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#detail-dialog{max-width:660px;max-height:90dvh;overflow:hidden}
#detail-dialog[open]{display:flex;flex-direction:column}
#detail-dialog .dialog-header{flex:0 0 auto;padding:10px 20px;min-height:59px}
#detail-dialog .dialog-header p{font-size:12px;line-height:1.5}
#detail-dialog .dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 24px 22px;scrollbar-gutter:stable}
.detail-heading{display:flex;align-items:center;gap:14px}
.detail-heading .detail-cat{display:grid;place-items:center;flex:0 0 64px;width:64px;height:70px;border-radius:16px;background:#f3eddb;color:#526b4b}
.detail-cat>svg{width:60px;height:64px}
#detail-dialog .detail-heading h2{margin:0;min-width:0;font-size:25px;line-height:1.4;letter-spacing:-.025em;overflow-wrap:anywhere}
#detail-dialog .decision-panel{margin:15px 0 16px;padding:13px 15px;background:#f0f3e9}
#detail-dialog .decision-panel>header{margin-bottom:10px;gap:5px 8px}
#detail-dialog .decision-panel dl{gap:10px 14px}
#detail-dialog .decision-panel dt{font-size:12px;line-height:1.5;margin-bottom:3px}
#detail-dialog .decision-panel dd{font-size:14px;line-height:1.55}
#detail-dialog .decision-panel .decision-condition dd{font-size:13px;font-weight:500;line-height:1.65;color:#344f36}
#detail-dialog .decision-panel>p{font-size:12px;line-height:1.65;margin-top:11px;color:#4e6045}
.detail-venue{margin:13px 0 0}
.detail-place{display:flex;gap:11px;align-items:baseline;font-size:14px;line-height:1.7}
.detail-place>span{font-size:12px;color:#58634f;flex-shrink:0}
.detail-place strong{font-weight:650;overflow-wrap:anywhere}
.venue-links{display:flex;gap:8px;margin-top:10px}
.venue-links a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:9px 14px;border:1px solid #c8d3bd;border-radius:9px;background:#f0f4e9;color:#31513b;font-size:14px;font-weight:650;text-decoration:none;line-height:1.5}
.venue-links .venue-map-link{flex:1 1 auto;background:#e5eddc}
.venue-links a:hover{background:#dde8d2;text-decoration:underline}
.venue-link-note{font-size:12px;line-height:1.65;color:#596550;margin-top:7px}
#detail-dialog .detail-note{font-size:12px;line-height:1.7;padding:10px 12px;margin:12px 0}
.detail-time-note{font-size:12px;line-height:1.7;color:#596550;margin:10px 0}
.detail-more,.detail-source{border-top:1px solid #e1e5d9;margin-top:15px}
.detail-more>summary,.detail-source>summary{padding:13px 0;min-height:46px;font-size:13px;font-weight:650;line-height:1.6;cursor:pointer;color:#405039}
.detail-more-body .dialog-description{font-size:13px;line-height:1.85}
.detail-more-body .dialog-description+.dialog-description{margin-top:9px}
.detail-more-body .detail-extra{margin-top:12px}
.detail-source .source-note{border:0;padding:0 0 12px;font-size:12px}
#detail-dialog .media-credit,#detail-dialog .screening-row small,#detail-dialog .selected-screening small{font-size:12px;line-height:1.7}
#detail-dialog .detail-actionbar{flex:0 0 auto;position:relative;z-index:2;display:flex;flex-wrap:nowrap;gap:9px;margin:0;padding:11px 24px max(11px,env(safe-area-inset-bottom));border-top:1px solid #dfe4d7;background:#fffef9;box-shadow:0 -4px 15px #25362206}
#detail-dialog .detail-actionbar a,#detail-dialog .detail-actionbar button{min-height:46px;font-size:14px;line-height:1.5;justify-content:center;padding:10px 15px;border-radius:9px}
#detail-dialog .detail-actionbar a.primary{flex:1 1 auto;background:#294d38;color:#fff;border-color:#294d38;font-weight:650}
#detail-dialog .detail-actionbar .detail-save{gap:7px;flex:0 0 auto;background:#fffef9}
.detail-actionbar .detail-save>span:first-child{font-size:21px;line-height:1}

@media(min-width:960px){
 .event-row,.event-row:has(.decision-summary){min-height:100px;padding:12px 7px!important}
 .event-row:has(.decision-summary){grid-template-columns:minmax(0,1fr) 154px 62px 44px}
 .event-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media(max-width:959px){
 .spotlight-track{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
 .spotlight-card,.spotlight-card[data-genre],.spotlight-card:first-child{flex:0 0 320px;scroll-snap-align:start}
}
@media(max-width:650px){
 .main-panel{padding-top:7px!important}
 .page-header{margin-bottom:6px!important;min-height:43px;gap:6px}
 .page-header .cat-title-group h1{font-size:22px;line-height:1.25}
 .cat-app-mascot{width:48px;flex-basis:48px}
 .cat-speech{font-size:11px;line-height:1.3;margin-bottom:1px}
 .genre-nav{padding-top:7px!important;padding-bottom:4px!important}
 .day-nav{margin-bottom:4px!important;gap:2px}
 .day-nav button,.day-nav .week-button{min-height:47px;padding-block:4px;gap:1px}
 .time-controls{margin-bottom:4px;row-gap:2px}
 .search-field input{padding-block:6px}
 .availability-tabs{padding-top:3px;gap:2px}
 .availability-tabs button{min-height:38px}
 .result-granularity{display:none}
 body:has(#more-filters[aria-expanded=true]) .result-granularity,
 body:has(#genres [data-genre=film][aria-pressed=true]) .result-granularity{display:flex}
 .discovery-spotlight{margin:10px 0 13px}
 .spotlight-heading h2{font-size:14px}
 .spotlight-heading>button,.spotlight-heading>span{font-size:11px;min-height:36px}
 .spotlight-card,.spotlight-card[data-genre],.spotlight-card:first-child{flex-basis:93%;min-height:112px;height:112px;padding:10px 12px;grid-template-columns:45px minmax(0,1fr);column-gap:10px}
 .spotlight-card .spotlight-symbol,.spotlight-card:first-child .spotlight-symbol{width:45px;height:57px}
 .results-toolbar{margin-top:12px!important}
 .event-row,.event-row:has(.decision-summary),.film-group .event-row.is-screening{grid-template-columns:minmax(0,1fr) 49px;grid-template-rows:auto auto auto;min-height:104px;padding:6px 3px!important;gap:0 5px;align-items:center}
 .event-main,.event-row:has(.decision-summary) .event-main{grid-column:1;grid-row:1/3;min-height:48px;gap:9px;padding:0;align-items:center}
 .event-symbol,.event-symbol:has(.category-art){width:46px;min-width:46px;height:46px;margin:0;padding:2px;border-radius:13px}
 .event-symbol>svg.dokoiko-cat{width:42px;height:42px}
 .event-summary{min-width:0;overflow:hidden}
 .event-title{font-size:16px;line-height:1.4;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .event-subline{margin-top:3px;gap:3px 6px;flex-wrap:nowrap;min-height:0;overflow:hidden}
 .event-subline .event-venue{font-size:11px;line-height:1.5;margin:0}
 .event-subline .live-state,.event-subline .temporal-tag{font-size:10px;line-height:1.5;flex-shrink:0}
 .event-row:has(.decision-summary)>.decision-summary{grid-column:1;grid-row:3;margin:0 0 0 55px;align-self:start;font-size:12px;line-height:1.5;gap:0 7px;flex-wrap:wrap;white-space:normal}
 .event-row:has(.decision-summary) .save-button{grid-column:2;grid-row:1;width:46px;min-height:44px;height:44px;font-size:24px}
 .event-row:has(.decision-summary) .event-distance{grid-column:2;grid-row:2;padding:0;text-align:center;font-size:11px;line-height:16px}
 .event-row:has(.decision-summary) .row-map-link{grid-column:2;grid-row:3;min-height:32px;width:49px;padding:0;font-size:12px;line-height:1.5;justify-self:center}
 #detail-dialog{max-height:95dvh;width:100%;border-radius:18px 18px 0 0}
 #detail-dialog .dialog-header{padding-inline:17px}
 #detail-dialog .dialog-body{padding:15px 18px 20px;scrollbar-gutter:auto}
 .detail-heading{gap:11px}
 .detail-heading .detail-cat{flex-basis:54px;width:54px;height:61px;border-radius:13px}
 .detail-cat>svg{width:51px;height:55px}
 #detail-dialog .detail-heading h2{font-size:22px;line-height:1.4}
 #detail-dialog .decision-panel{padding:12px;margin-top:13px}
 #detail-dialog .decision-panel dd{font-size:13px}
 #detail-dialog .detail-actionbar{padding-inline:18px}
}
@media(max-width:350px){
 .spotlight-card,.spotlight-card[data-genre],.spotlight-card:first-child{flex-basis:98%;grid-template-columns:40px minmax(0,1fr);column-gap:8px;padding-inline:9px}
 .spotlight-card .spotlight-symbol,.spotlight-card:first-child .spotlight-symbol{width:40px;height:53px}
 .spotlight-card .spotlight-title{font-size:16px}
 .event-main,.event-row:has(.decision-summary) .event-main{gap:7px}
 .event-symbol,.event-symbol:has(.category-art){width:40px;min-width:40px;height:44px}
 .event-symbol>svg.dokoiko-cat{width:37px;height:40px}
 .event-row:has(.decision-summary)>.decision-summary{margin-left:47px;font-size:12px;gap:0 6px}
 #detail-dialog .dialog-body{padding-inline:14px}
 #detail-dialog .detail-heading h2{font-size:21px}
 .venue-links{gap:6px}
 .venue-links a{font-size:13px;padding-inline:11px}
 #detail-dialog .detail-actionbar{padding-inline:14px}
}

/* Small, predictable responses to touch. The list stays usable while refreshing. */
.search-combo{position:relative;flex:1 1 auto;min-width:0}
.search-combo>.search-field{width:100%;box-sizing:border-box}
.search-suggestions{position:absolute;z-index:35;top:calc(100% + 7px);left:0;right:0;padding:5px;background:#fffefb;border:1px solid #dedfd7;border-radius:13px;box-shadow:0 12px 28px #232b201c;max-height:min(330px,45dvh);overflow-y:auto;overscroll-behavior:contain}
.search-suggestions[hidden]{display:none}
.search-suggestions [role=option]{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;padding:9px 11px;text-align:left;border:0;border-radius:8px;background:transparent;color:#293c30;font:inherit;font-size:14px;line-height:1.5;cursor:pointer}
.search-suggestions [role=option]::before{content:'⌕';font-size:20px;color:#8c9684;flex:0 0 17px}
.search-suggestions [role=option]:hover,.search-suggestions [aria-selected=true],.search-suggestions .is-suggestion-active{background:#edf0e5}
.search-suggestions [role=option]>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-suggestions [role=option] small{font-size:11px;color:#626b60}
.search-suggestions .suggestion-label{flex:1 1 auto}
.search-suggestions .suggestion-meta{flex:0 0 auto;font-size:11px;color:#626b60;max-width:64px}
.results-tools .refresh-button{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#3b5141;cursor:pointer}
.refresh-button:hover{background:#edf0e5}
.refresh-button:focus-visible,.sheet-grab:focus-visible{outline:2px solid #57735c;outline-offset:2px}
.refresh-symbol{display:block;font-size:23px;line-height:1}
.refresh-button:disabled{opacity:.7;cursor:wait}
.refresh-button.is-refreshing .refresh-symbol,.is-refreshing .pull-symbol{animation:interaction-spin .9s linear infinite}
.pull-refresh{position:fixed;top:max(12px,env(safe-area-inset-top));left:50%;z-index:50;transform:translate(-50%,var(--pull-distance,0px));display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;max-width:calc(100% - 28px);min-height:42px;background:#fffefb;border:1px solid #dfe2d7;border-radius:24px;box-shadow:0 4px 18px #293a261a;color:#43523f;font-size:13px;pointer-events:none}
.pull-refresh[hidden]{display:none}
.pull-refresh .pull-symbol{display:inline-block;font-size:21px}
.pull-refresh.is-ready{background:#edf2e7;border-color:#bccab4;color:#315237}
.sheet-grab{display:none}
#detail-dialog{transform:translateY(var(--sheet-drag,0px));transition:transform .2s ease-out}
#detail-dialog.is-sheet-dragging{transition:none;will-change:transform}
.skeleton-row{display:flex;align-items:center;gap:13px;min-height:96px;padding:14px 4px;border-bottom:1px solid #e7e8e1;pointer-events:none}
.sk-icon{flex:0 0 44px;height:48px;border-radius:13px;background:#e7e8e1}
.sk-lines{flex:1;display:grid;gap:10px}
.sk-line{display:block;width:78%;height:13px;border-radius:4px;background:#e7e8e1;animation:interaction-pulse 1.3s ease-in-out infinite alternate}
.sk-line:last-child{width:54%;height:10px}
.toast{top:auto;right:auto;margin:0;border:0;max-width:calc(100vw - 36px);width:max-content;box-sizing:border-box;border-radius:14px!important;padding:11px 17px!important;background:#263e30!important;color:#fffef9!important;font-size:14px!important;line-height:1.5!important;box-shadow:0 6px 20px #1e352223;pointer-events:none}
@keyframes interaction-spin{to{transform:rotate(360deg)}}
@keyframes interaction-pulse{from{opacity:.45}to{opacity:1}}
@keyframes interaction-sheet-in{from{transform:translateY(25px);opacity:.65}to{transform:translateY(0);opacity:1}}
@media(max-width:650px){
 .results-toolbar{display:flex;flex-wrap:wrap;gap:4px 7px!important}
 .results-toolbar>div:first-child{flex:1 1 auto;min-width:105px}
 .results-toolbar .sort-controls{flex:0 0 auto;margin-left:0}
 .results-toolbar .results-tools{display:flex!important;flex:0 0 36px;gap:0;margin:0}
 .results-toolbar #saved-filter{display:none}
 .results-tools .refresh-button{width:36px;min-width:36px;min-height:44px}
 .sort-controls button{padding-inline:9px}
 .search-combo input{font-size:16px!important;min-width:0}
 .search-suggestions{min-width:min(300px,calc(100vw - 30px))}
 .sheet-grab{display:flex;align-items:center;justify-content:center;flex:0 0 28px;min-height:28px;width:100%;padding:0;border:0;background:#fffef9;touch-action:none;cursor:grab}
 .sheet-grab::after{content:'';display:block;width:36px;height:4px;border-radius:4px;background:#c8cdc1}
 .sheet-grab:active{cursor:grabbing}
 #detail-dialog[open]{animation:interaction-sheet-in .2s ease-out}
 #detail-dialog .dialog-header{min-height:45px;padding-block:4px 8px}
 .toast{bottom:calc(77px + env(safe-area-inset-bottom))!important}
 body:has(#detail-dialog[open]) .toast{z-index:100}
}
@media(prefers-reduced-motion:reduce){
 .refresh-button.is-refreshing .refresh-symbol,.is-refreshing .pull-symbol,.sk-line,#detail-dialog[open]{animation:none}
 #detail-dialog{transition:none}
}

/* Nearby comes first: browse the station immediately, then choose location. */
#search-utilities[hidden]{display:none!important}
.page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.page-header .cat-title-group h1{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
.page-header .origin-controls{position:static;top:auto;right:auto;order:0;display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;flex-wrap:wrap;max-width:none;gap:8px;margin:0;padding:0}
.page-header .origin-controls>span.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
.page-header .origin-controls #locate-button{order:0;min-height:46px;padding:10px 17px;border:1px solid #294d38;border-radius:12px;background:#294d38;color:#fffef9;font-size:14px;font-weight:650;line-height:1.5;text-decoration:none;white-space:nowrap}
.page-header .origin-controls #locate-button:hover:not(:disabled){background:#1e3d2a;border-color:#1e3d2a}
.page-header .origin-controls #locate-button:disabled{opacity:.75;cursor:wait}
.page-header .origin-controls #station-button{order:1;max-width:180px;min-height:46px;padding:10px 13px;border:1px solid #d7ded1;border-radius:12px;background:#f5f6ef;color:#36513d;font-size:14px;line-height:1.5;text-decoration:none}
.page-header .origin-controls #origin-reset{position:static;top:auto;right:auto;order:2;min-height:36px;padding:5px 4px;background:none;border:0;color:#4c614d;font-size:13px;line-height:1.5}
.nearby-browse-controls{justify-content:space-between;gap:12px;margin-top:3px!important}
.nearby-browse-controls .view-switch{margin-left:auto}
.search-field:focus-within{border-color:#57735c!important;box-shadow:none!important;outline:0}
.app-shell :is(button,a,input,select,summary,[tabindex]):focus-visible,.bottom-nav button:focus-visible,#detail-dialog :is(button,a,summary,[tabindex]):focus-visible{outline:2px solid #57735c!important;outline-offset:3px}
@media(max-width:959px){
 .page-header{gap:10px!important;margin-bottom:10px!important}
 .page-header .origin-controls{flex-basis:100%;gap:8px}
 .page-header .origin-controls #station-button{max-width:calc(100% - 172px)}
}
@media(max-width:650px){
 .page-header .cat-title-group h1{font-size:23px;line-height:1.3}
 .page-header .origin-controls #locate-button{min-height:46px;padding-inline:15px;font-size:14px}
 .page-header .origin-controls #station-button{min-height:46px;padding-inline:12px;font-size:14px}
 .page-header .origin-controls #origin-reset{flex-basis:100%;text-align:left}
 body:has(#origin-reset:not([hidden])) .sidebar .genre-nav{padding-top:7px!important}
 .nearby-browse-controls{min-height:40px}
}
.origin-status{border:0!important;padding:0!important;font-size:12px!important;color:#4c614d}.origin-status:not(:empty){margin:0 0 12px!important}

/* now-first-mobile-list: show actionable nearby choices on the first screen.
   Dated/week browsing retains the discovery picks. No type size reduction. */
@media(max-width:650px){
 body:has(#now-button[aria-pressed="true"]) #discovery-spotlight{display:none}
}

/* Compact browse surface: optional controls live in one dialog. */
.app-shell{display:block;max-width:1100px;margin:auto}
.sidebar{position:static!important;display:block!important;width:auto!important;height:auto!important;padding:18px 26px 0!important;border:0!important;background:transparent!important}
.sidebar>:not(.brand){display:none!important}
.main-panel{padding-top:12px!important}
.page-header .cat-title-group{align-items:center;gap:10px}
.page-header .cat-app-mascot{width:55px;flex:0 0 55px}
.page-header .cat-speech{position:static!important;transform:none!important;margin:0 0 5px!important;font-size:12px;line-height:1.5;display:block;color:#986044}
.page-header .cat-title-group h1{font-size:25px!important;line-height:1.4!important;letter-spacing:-.045em;white-space:normal!important;margin:0!important}
.page-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px!important;margin-bottom:12px!important}
.page-header .origin-controls{display:flex;flex-wrap:wrap;align-items:center;gap:7px;flex-basis:auto!important}
.page-header .origin-controls #locate-button,.page-header .origin-controls #station-button,#more-filters{min-height:44px!important;padding:8px 11px!important;border-radius:10px!important;font-size:14px!important;line-height:1.3!important;width:auto;max-width:none!important;white-space:nowrap}
#more-filters{border:1px solid #cfd6cb;background:#fff;color:#273e30;font-weight:600;cursor:pointer}
.nearby-browse-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px!important;justify-content:flex-start;margin:0!important;border-top:1px solid #e4e7df;padding:9px 0}
.active-conditions{font-size:13px;line-height:1.5;color:#526050;margin:0 auto 0 0;max-width:100%;overflow-wrap:anywhere}
.nearby-browse-controls .view-switch{margin:0!important;white-space:nowrap}
.nearby-browse-controls .sort-controls{margin:0!important;white-space:nowrap}
.sort-controls button,.view-switch button{min-height:44px!important;font-size:13px!important;padding:7px 10px!important}
.results-toolbar{align-items:center!important;margin-bottom:6px!important}
.results-toolbar h2{font-size:18px!important}
.results-toolbar #result-count{font-size:13px!important;line-height:1.5;color:#526050}
.result-granularity{display:none!important}
.filters-header,.filters-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;background:#fafaf8;flex-shrink:0}
.filters-header{border-bottom:1px solid #e1e5db}.filters-header h2{margin:0;font-size:20px}.filters-header button{border:0;background:none;font:inherit;font-size:26px;min-width:44px;min-height:44px}
#filters-dialog{width:min(580px,calc(100% - 24px));max-height:min(90dvh,850px);padding:0;border:1px solid #dce1d5;border-radius:20px;background:#fafaf8;color:#252d25;overflow:hidden;box-shadow:0 20px 65px #16251733}
#filters-dialog[open]{display:flex;flex-direction:column}
#filters-dialog::backdrop{background:#1d2b2666;backdrop-filter:blur(3px)}
.filters-body{overflow-y:auto;overscroll-behavior:contain;padding:0 20px;min-height:0}
.filters-body section{padding:16px 0;border-bottom:1px solid #e1e5db}.filters-body section:last-child{border-bottom:0}
.filters-body h3{margin:0 0 10px;font-size:15px;font-weight:650}.filters-body h3 small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#586453}
#filters-dialog .day-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:0!important;padding:0!important;overflow:visible;border:0}
#filters-dialog .day-nav button{min-width:0;min-height:54px;border:1px solid #e0e4da;border-radius:10px;font-size:14px;padding:6px}
#filters-dialog .day-nav button[aria-pressed=true]{background:#e5ecdc;border-color:#597352;color:#263e2e}
#filters-dialog .time-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
#filters-dialog .time-controls select{font-size:14px;min-height:44px;max-width:100%;padding:8px;border:1px solid #cdd4c7;border-radius:8px;background:white}
#filters-dialog .time-controls #now-button{min-height:44px;border:1px solid #cdd4c7;border-radius:8px;padding:8px 11px}
#filters-dialog .radius-control{margin:0!important;max-width:100%}
#filters-dialog #genres{display:flex!important;flex-wrap:wrap;gap:6px;padding:0!important;overflow:visible;margin:0;border:0}
#filters-dialog #genres button{display:flex;align-items:center;gap:6px;min-height:44px;padding:7px 10px;font-size:14px;border:1px solid #dde2d6;border-radius:10px;background:#fff}
#filters-dialog #genres button[aria-pressed=true]{background:#e5ecdc;border-color:#597352}
#filters-dialog .genre-count{display:none}
#filters-dialog .genre-icon{width:25px;height:25px;flex:0 0 25px}
#filters-dialog #availability-tabs,#filters-dialog .quick-filters{display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0;border:0}
#filters-dialog #availability-tabs button,#filters-dialog .quick-filters button{min-height:44px;border:1px solid #dde2d6;border-radius:10px;padding:8px 10px;font-size:14px;margin:0}
#filters-dialog #availability-tabs button[aria-pressed=true],#filters-dialog .quick-filters button[aria-pressed=true]{background:#294d38;color:white}
#filters-dialog #availability-tabs small{margin-left:5px;font-size:12px}
#filters-dialog #extra-filters{display:block!important;margin:0;padding:0}
.filters-footer{border-top:1px solid #e1e5db;padding-bottom:max(16px,env(safe-area-inset-bottom))}
.filters-footer button{min-height:44px;font-size:15px;padding:10px 18px;border-radius:10px;border:1px solid #ced6c5;background:#fff;color:#273e30}
.filters-footer #filters-done{background:#294d38;border-color:#294d38;color:white;font-weight:650;min-width:140px}
body:has(#filters-dialog[open]){overflow:hidden}
@media(max-width:650px){
 .sidebar{padding:16px 16px 0!important}.main-panel{padding-top:10px!important}
 .page-header .cat-title-group h1{font-size:21px!important}.page-header .cat-app-mascot{width:44px;flex-basis:44px}
 .page-header .origin-controls{flex-basis:100%!important;gap:6px}
 .page-header .origin-controls #locate-button,.page-header .origin-controls #station-button,#more-filters{font-size:13px!important;padding:8px 10px!important}
 .page-header .origin-controls #more-filters{margin-left:auto}
 .nearby-browse-controls .active-conditions{flex-basis:100%}
 .nearby-browse-controls .sort-controls{margin-left:auto!important}
 .nearby-browse-controls{gap:2px 6px!important}
 .view-switch button,.sort-controls button{padding-inline:9px!important}
 #discovery-spotlight{display:none!important}
 .filters-header,.filters-footer{padding-inline:16px}.filters-body{padding-inline:16px}
}
@media(max-width:360px){.page-header .cat-title-group h1{font-size:18px!important}.page-header .cat-title-group{gap:7px}.page-header .origin-controls #locate-button,.page-header .origin-controls #station-button,#more-filters{font-size:12px!important;padding-inline:8px!important}}

.page-header .origin-controls #more-filters{order:2}

/* Place and heading refinements, 2026-10-21. */
#detail-dialog #detail-title:focus,#detail-dialog #detail-title:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}
.page-header .origin-controls{flex-basis:auto!important;margin-left:auto!important;align-self:center}
.page-header .origin-controls #more-filters{width:44px!important;height:44px!important;min-width:44px;min-height:44px!important;padding:11px!important;background:transparent;border:1px solid #d8ded1;border-radius:50%!important;color:#34503c}
#more-filters svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.page-header{flex-wrap:nowrap!important;gap:10px!important}
.page-header>div:first-child{min-width:0}
.place-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#filters-dialog .place-modes button,#filters-dialog .place-recovery button{min-height:44px;font:inherit;font-size:15px;line-height:1.4;border:1px solid #d6ddcc;border-radius:10px;padding:9px 12px;background:#fff;color:#35503e;cursor:pointer;text-align:left}
#filters-dialog .place-modes button[aria-pressed=true]{background:#e5ecdc;border-color:#5c7755;font-weight:650}
#filters-dialog .place-recovery{display:flex;gap:8px;flex-wrap:wrap}
#filters-dialog .place-recovery button{font-size:13px;min-height:40px;padding:7px 10px;background:transparent}
#filters-dialog .place-recovery button[hidden]{display:none}
.place-status{font-size:13px;line-height:1.6;color:#52634d;margin:10px 0}
#filters-dialog #station-button{overflow-wrap:anywhere}
#detail-dialog .detail-actionbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}
#detail-dialog .detail-actionbar .primary{font-size:15px;text-align:center;min-width:0}
#detail-dialog .detail-actionbar .detail-official{font-size:13px;line-height:1.4;color:#38523c;text-decoration:underline;text-underline-offset:4px;padding:10px 2px;white-space:nowrap}
#detail-dialog .detail-save{padding-inline:3px!important;min-width:44px;font-size:13px}
#detail-dialog .affiliate-label{font-size:11px;color:#52634d;grid-column:1;margin:-7px 0 0}
@media(max-width:650px){
 .page-header .origin-controls{flex-basis:auto!important}.page-header .cat-title-group h1{font-size:20px!important}
 .page-header .cat-app-mascot{width:39px;flex-basis:39px}.page-header .cat-title-group{gap:7px}
 #detail-dialog .detail-actionbar{gap:8px;padding-inline:16px}
}
@media(max-width:360px){.page-header .cat-title-group h1{font-size:18px!important}.page-header .cat-app-mascot{width:32px;flex-basis:32px}.page-header .origin-controls #more-filters{width:40px!important;height:40px!important;padding:10px!important}#detail-dialog .detail-actionbar{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}#detail-dialog .detail-actionbar .detail-official{grid-column:1;grid-row:2;justify-self:center;padding:2px 8px}#detail-dialog .detail-save{grid-column:2;grid-row:1/3}}

/* Touch focus is not a selection state. Retain a quiet keyboard-only cue. */
html body dialog:focus,html body dialog:focus-visible{outline:0!important}
html:not([data-input="keyboard"]) body :is(button,a,input,select,summary,[tabindex]):focus,html:not([data-input="keyboard"]) body :is(button,a,input,select,summary,[tabindex]):focus-visible{outline:0!important;box-shadow:none!important}
html[data-input="keyboard"] body :is(button,a,input,select,summary,[tabindex]):focus-visible{outline:2px solid #57735c!important;outline-offset:3px}
body :is(button,a,input,select,summary){-webkit-tap-highlight-color:transparent}
#item-list .event-row.is-selected::before{display:none!important}
#location-intro{width:min(390px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:0;border-radius:24px;padding:0;background:#fffef9;color:#253a2c;box-shadow:0 14px 60px #1b302626;overflow:auto}
#location-intro::backdrop{background:#1b2b2475;backdrop-filter:blur(5px)}
.location-intro-body{padding:30px 24px 22px;text-align:center}
.location-intro-cat{display:block;font-size:44px;color:#4d6d4d;margin-bottom:16px}
.location-intro-kicker{font-size:13px;color:#64735e;margin:0 0 10px}
#location-intro h2{font-size:24px;line-height:1.5;margin:0 0 14px;letter-spacing:0}
#location-intro p{font-size:15px;line-height:1.8}
#location-intro button{min-height:48px;width:100%;font:inherit;border-radius:13px;cursor:pointer;touch-action:manipulation}
#intro-locate{background:#284d38;color:#fff;border:0;font-weight:700;margin-top:16px}
#intro-locate:disabled{opacity:.65;cursor:wait}
#location-intro #intro-location-status{font-size:13px;line-height:1.7;color:#5b6a56;margin:13px 0}
#intro-station{background:transparent;border:0;color:#39543f;text-decoration:underline;text-underline-offset:4px;font-size:14px!important}
#filters-dialog .place-recovery:has(#origin-reset[hidden]){display:none}

.location-intro-cat svg{width:84px;height:62px;display:block;margin:auto}

/* Keep Japanese words and their particles together in narrow detail headings. */
#detail-dialog #detail-title>.detail-word{display:inline-block;max-width:none;white-space:pre;word-break:normal;overflow-wrap:normal}
#detail-dialog #detail-title>.detail-long-word{max-width:100%;white-space:normal;overflow-wrap:anywhere}

#detail-dialog .decision-panel dl>div:not(.decision-condition)>dd{text-wrap:balance}

/* Official affiliate HTML is retained; styling belongs to its outer wrapper. */
#detail-dialog .affiliate-unit{display:flex;flex:1;min-width:0}
#detail-dialog .affiliate-unit>a{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 16px;border:1px solid #2b503b;border-radius:12px;background:#2b503b;color:#fff;font-weight:700;text-decoration:none;font-size:16px;line-height:1.5}
#detail-dialog .affiliate-unit>a:focus-visible{outline:3px solid #2b503b;outline-offset:3px}
#detail-dialog .affiliate-label{display:flex;align-items:baseline;gap:6px;grid-column:1/-1;width:100%;margin:-3px 0 0;font-size:12px;line-height:1.6;color:#52644f;order:4}
#detail-dialog .affiliate-ad-label{flex:none;font-size:10px;line-height:1.4;border:1px solid #a5b09e;border-radius:3px;padding:0 4px}
#detail-dialog .affiliate-notice{min-width:0;text-wrap:pretty}
.page-footer .about-data p{font-size:14px;line-height:1.8}

/* Jalan requires disclosure near the top; keep it quietly beside the brand. */
.site-ad-disclosure{display:block;font-size:11px;line-height:1.5;color:#52644f;margin:4px 0 0}

/* Mobile readability: retain complete names and keep actions within the viewport. */
@media(max-width:650px){
 #location-intro h2{font-size:clamp(19px,5.8vw,24px);white-space:nowrap}
 #location-intro .intro-description{text-wrap:balance}
 #location-intro .intro-description span{display:inline-block;white-space:nowrap}
 #item-list .event-title{display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible;overflow-wrap:anywhere;text-wrap:pretty}
 #item-list .event-subline{flex-wrap:wrap;overflow:visible}
 #item-list .event-subline .event-venue{flex-basis:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-wrap:pretty}
 #detail-dialog #detail-title>.detail-word{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #detail-dialog .detail-save{width:auto!important;min-width:64px;white-space:nowrap;gap:5px;padding-inline:8px!important}
 #map-origin-note,.page-footer p,.map-setup-note{text-wrap:pretty}
}
