/* Exp2 Simple mode + mode switch. Flat (no shadows, gradients, bevels), page palette
   (ink / paper / red), 150–200ms transform/opacity transitions, clicky pressed states. */
.viewer{--tap:.97;--ease:cubic-bezier(.4,0,.2,1);padding:28px var(--pad) 56px;background:var(--ink);color:var(--paper);border-top:1px solid var(--line)}
.viewer button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.viewer :focus-visible{outline:2px solid var(--red);outline-offset:4px}
.flow-line{position:absolute;left:0;top:0;width:1px;height:2px;background:var(--red);transform-origin:0 0;pointer-events:none;opacity:0;transition:transform .18s var(--ease),opacity .15s ease;will-change:transform}
/* Mode switch: always above everything else in the viewer */
.mode-switch{display:inline-flex;gap:22px;margin:0 0 26px;padding-bottom:6px}
.mode-btn{border:0;background:none;color:var(--muted);padding:6px 0;font:600 12px/1 var(--body);letter-spacing:.14em;text-transform:uppercase;transition:color .15s ease,transform .1s ease}
.mode-btn[aria-pressed="true"]{color:var(--paper)}
.step-label{margin:0 0 8px;font:600 10px/1.7 var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
/* Where: Exp1 .place-choice, red accent */
.place-choices{display:flex;flex-wrap:wrap;align-items:center;gap:6px 30px;padding-bottom:4px}
.place-choice{min-height:48px;padding:0;border:0;border-bottom:2px solid transparent;background:none;color:#8d8d84;font:700 clamp(30px,4.2vw,54px)/1 var(--display);letter-spacing:-.01em;text-transform:uppercase;cursor:pointer;transition:color .18s ease,border-color .18s ease,transform .1s ease}
.place-choice[aria-pressed="true"]{color:var(--paper);border-bottom-color:rgba(220,80,57,.45)}
.place-choice.is-other{color:var(--muted);font-size:clamp(22px,2.6vw,32px)}
@media(hover:hover){.place-choice:hover,.style-choice:hover,.mode-btn:hover{color:var(--paper)}}
.place-choice:active,.style-choice:active,.mode-btn:active,.calendar-day.has-events:active,.calendar-head button:active,.simple-more:active,.flyer-wrap:active,.tile-links a:active{transform:scale(var(--tap));transition-duration:.08s}
/* Styles: Exp1 connector (vertical then horizontal draw), then the list */
.simple-styles{--route-origin:clamp(18px,6vw,120px);--route-run:clamp(56px,9vw,118px);margin-top:-2px}
.simple-styles[hidden],.simple-results[hidden]{display:none}
.style-route{display:flex;align-items:flex-end;min-height:56px;margin-left:var(--route-origin);color:var(--red)}
.style-route-line{position:relative;flex:0 0 auto;width:var(--route-run);height:56px}
.style-route-line::before,.style-route-line::after{content:"";position:absolute;left:0;background:var(--red);transform-origin:left top}
.style-route-line::before{top:0;width:2px;height:100%}
.style-route-line::after{bottom:0;width:100%;height:2px}
.style-route-label{margin:0 0 -12px -2px;padding-left:12px;font:700 clamp(24px,3vw,40px)/.95 var(--display);text-transform:uppercase}
.simple-styles.is-opening .style-route-line::before{animation:draw-y .2s var(--ease) both}
.simple-styles.is-opening .style-route-line::after{animation:draw-x .2s var(--ease) .18s both}
.simple-styles.is-opening .style-route-label,.simple-styles.is-opening .style-choices{animation:fade-up .2s ease .3s both}
.style-choices{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:26px 0 0 calc(var(--route-origin) + var(--route-run))}
.style-choice{padding:2px 0 4px;border:0;background:none;color:#8d8d84;font:600 clamp(22px,2.4vw,30px)/1.1 var(--body);letter-spacing:-.02em;text-align:left;transition:color .18s ease,transform .1s ease}
.style-choice[aria-pressed="true"]{color:var(--paper)}
.style-choice.is-unavailable,.style-choice.is-unavailable[aria-pressed="true"]{color:#4b4c47;border-color:#4b4c47;opacity:.58;cursor:not-allowed}
@media(hover:hover){.style-choice.is-unavailable:hover{color:#4b4c47}}
.solo-toggle{display:inline-flex;gap:10px;color:var(--muted);font-size:clamp(17px,1.8vw,22px)}
.solo-toggle span{color:var(--red)}
.solo-toggle.has-selection{color:var(--paper)}
.solo-choice{margin-left:18px;font-size:clamp(18px,2vw,24px)}
.simple-empty,.simple-status{color:var(--muted);margin:14px 0}
/* When + cards */
.simple-results{margin-top:40px;padding-top:22px;border-top:1px solid var(--line);display:grid;grid-template-columns:240px minmax(0,1fr);gap:36px;align-items:start}
.simple-results.is-revealing{animation:fade-up .2s ease both}
.scroll-calendar{align-self:stretch;min-width:0}
.calendar-sticky{position:sticky;top:var(--sticky-offset,16px);padding:12px 0;background:var(--ink);border-bottom:1px solid var(--line)}
.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.calendar-month-label{margin:0;font:700 20px/1 var(--display);letter-spacing:.02em;text-transform:uppercase}
.calendar-head button{width:32px;height:32px;border:1px solid var(--line);background:none;color:var(--paper);font-size:11px;transition:transform .1s ease,color .15s ease,border-color .15s ease}
.calendar-head button:disabled{opacity:.3;cursor:default}
.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.calendar-weekdays{font-size:10px;color:var(--muted);margin-bottom:4px}
.calendar-days{position:relative}
.calendar-day,.calendar-blank{height:30px;display:grid;place-items:center;font-size:13px}
.calendar-day{color:#5d5e57}
button.calendar-day{border:0;background:none;color:var(--paper);font-weight:600;cursor:pointer;transition:color .15s ease,transform .1s ease}
button.calendar-day.is-active{color:var(--red)}
.simple-list{min-width:0}
.date-block{scroll-margin-top:24px;padding:4px 0 26px}
.date-heading{margin:0 0 14px;font:700 clamp(26px,3vw,38px)/1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.day-events{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:14px}
/* Event tiles: flat, page palette (ink with paper text, red accents) — no beige */
.event-tile{display:flex;flex-direction:column;min-width:0;background:var(--paper);border:1px solid rgba(24,25,24,.18);border-left:5px solid var(--red);border-radius:14px;overflow:hidden;color:var(--ink)}
.event-tile.is-canceled{opacity:.62}
.flyer-wrap{position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;border:0;border-bottom:1px solid rgba(24,25,24,.16);background:#ded6c7;overflow:hidden;cursor:zoom-in;transition:transform .1s ease}
.flyer-wrap img{width:100%;height:100%;object-fit:contain;display:block}
.flyer-wrap.no-flyer{display:grid;place-items:center;cursor:default;aspect-ratio:auto;min-height:72px;color:var(--muted);font:700 22px/1 var(--display);text-transform:uppercase}
.flyer-count{position:absolute;right:8px;bottom:8px;padding:3px 7px;background:var(--ink);color:var(--paper);font-size:11px}
.tile-body{padding:12px 14px 14px}
.tile-cancel{margin:0 0 6px;color:var(--red);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.tile-name{margin:0 0 6px;font:600 17px/1.25 var(--body);color:var(--ink)}
.tile-meta{margin:0 0 6px;font-size:13px;color:#35352f}
.tile-meta strong{color:var(--red);font-weight:700}
.tile-venue{margin:0;font-size:12px;line-height:1.45;color:#5e5d55}
.tile-links{display:flex;flex-wrap:wrap;gap:16px;margin:10px 0 0;font-size:12px;font-weight:600}
.tile-links a{display:inline-block;border-bottom:1px solid var(--red);transition:color .15s ease,transform .1s ease}
.simple-more{margin-top:8px;padding:14px 20px;border:1px solid var(--paper);background:none;color:var(--paper);font:600 12px/1 var(--body);transition:background .15s ease,color .15s ease,transform .1s ease}
.simple-more[hidden]{display:none}
/* Flyer lightbox (dark, flat) */
#simple-lightbox{max-width:min(92vw,900px);width:auto;padding:44px 12px 12px;background:var(--ink);color:var(--paper);border:1px solid var(--line)}
#simple-lightbox::backdrop{background:rgba(10,10,10,.82)}
#simple-lightbox img{display:block;max-width:100%;max-height:78svh;margin:0 auto}
#simple-lightbox .lb-close{position:absolute;top:8px;right:10px;width:32px;height:32px;border:0;background:none;color:var(--paper);font-size:24px}
#simple-lightbox .lb-bar{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:8px}
#simple-lightbox .lb-nav{width:40px;height:32px;border:1px solid var(--line);background:none;color:var(--paper)}
#simple-lightbox .lb-nav[hidden]{display:none}
@keyframes draw-y{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes draw-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes fade-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* ≤820px: compact full-width sticky calendar bar at the top */
@media(max-width:820px){
.simple-results{display:block;margin-top:30px}
.scroll-calendar{display:contents}
.calendar-sticky{top:0;z-index:5;margin:0 calc(var(--pad) * -1) 18px;padding:8px var(--pad)}
.calendar-head{margin-bottom:4px}
.calendar-head button{width:28px;height:28px}
.calendar-day,.calendar-blank{height:26px;font-size:12px}
.calendar-weekdays{margin-bottom:2px}
.date-block{scroll-margin-top:calc(var(--cal-h,220px) + 10px)}
}
@media(max-width:560px){
.viewer{padding-top:22px}
.place-choices{gap:2px 22px}
.place-choice{min-height:42px;font-size:30px}
.style-choices{gap:8px}
.style-choice{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
.viewer *,.flow-line{animation:none!important;transition:none!important}
}
.mode-switch[hidden],.place-choice[hidden]{display:none}
/* Phone: compact horizontal wrap for style buttons so events stay close */
@media(max-width:560px){
.simple-styles{--route-origin:4px;--route-run:28px}
.style-route{min-height:36px}.style-route-line{height:36px}
.style-choices{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 8px;margin:16px 0 0}
.style-choice{padding:6px 11px;border:1px solid var(--line);font-size:15px;line-height:1.2}
.style-choice[aria-pressed="true"]{border-color:var(--red)}
.solo-toggle{font-size:14px}
.solo-choice{margin-left:0;font-size:15px}
}

/* Multi-range calendar controls */
.calendar-range{margin:0 0 8px;border-bottom:1px solid var(--line);padding-bottom:7px}
.calendar-range summary{display:flex;align-items:center;justify-content:space-between;min-height:30px;color:var(--paper);font-size:12px;font-weight:600;cursor:pointer;list-style:none}
.calendar-range summary::-webkit-details-marker{display:none}
.calendar-range summary::after{content:"+";color:var(--red);font-size:17px}
.calendar-range[open] summary::after{content:"−"}
.range-help,.range-status{margin:6px 0;color:var(--muted);font-size:11px;line-height:1.4}
.range-form{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0}
.range-form label{display:grid;gap:4px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.range-form input{box-sizing:border-box;width:100%;min-width:0;padding:7px 5px;border:1px solid var(--line);border-radius:6px;background:#222321;color:var(--paper);font:12px var(--body);color-scheme:dark}
.range-form button{min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:none;color:var(--paper);font:600 11px var(--body)}
.range-form button[type="submit"]{border-color:var(--red);background:var(--red);color:var(--ink)}
.range-form button:disabled{opacity:.45}
.range-list{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}
.range-list[hidden]{display:none}
.range-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 6px;border:1px solid var(--line);border-radius:999px;color:var(--paper);font-size:10px}
.range-chip button{width:18px;height:18px;border:0;background:none;color:var(--muted);font-size:15px;line-height:1}
.calendar-day.in-range{border-radius:999px;background:rgba(220,80,57,.2);color:var(--paper)}
.calendar-day.range-start,.calendar-day.range-end,.calendar-day.range-pending{border-radius:999px;background:rgba(220,80,57,.2);color:var(--paper)}
button.calendar-day{touch-action:none;user-select:none;-webkit-user-select:none}
button.calendar-day.no-events{cursor:crosshair}

/* Reference card: spacious editorial typography and icon-led details. */
.day-events{grid-template-columns:minmax(0,1fr);gap:18px}
.event-tile{background:#d8d0bd;border:1px solid #a69e8d;border-left:14px solid #ae543e;border-radius:18px;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.tile-body{padding:24px 28px 22px}
.tile-style{margin:0 0 12px;font:600 clamp(12px,1.3vw,16px)/1.4 var(--body);letter-spacing:.18em;text-transform:uppercase;color:#25251f}
.tile-name{margin:0 0 18px;font:700 clamp(30px,3.4vw,52px)/1.08 Georgia,'Times New Roman',serif;letter-spacing:-.025em;color:#151612;overflow-wrap:anywhere}
.tile-detail{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;gap:16px;margin:10px 0;font:400 clamp(20px,2vw,28px)/1.3 Georgia,'Times New Roman',serif;color:#23241e}
.tile-detail svg{display:block;width:26px;height:26px;margin-top:3px}
.tile-calendar svg{color:#ae543e}
.tile-links{margin-top:18px;gap:18px;font-size:12px;color:#34352d}
.tile-flyer-link{padding:0;border:0;border-bottom:1px solid #ae543e;background:none;color:inherit;font:inherit;cursor:pointer}
@media(max-width:560px){
.event-tile{border-left-width:10px;border-radius:15px}
.tile-body{padding:20px 18px}
.tile-style{font-size:12px;margin-bottom:10px;letter-spacing:.16em}
.tile-name{font-size:32px;margin-bottom:16px}
.tile-detail{grid-template-columns:22px minmax(0,1fr);gap:12px;font-size:20px}
.tile-detail svg{width:22px;height:22px;margin-top:2px}
}

.tile-address-line{display:block;margin-top:3px}
.tile-extra{margin:8px 0 8px 42px;font:400 15px/1.45 var(--body);color:#34352d}
.tile-extra summary{cursor:pointer;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.tile-extra p{margin:8px 0;white-space:pre-wrap}
@media(max-width:560px){.tile-extra{margin-left:34px}}

/* Flyer sits beside the card copy; on phones it floats at the top right. */
.event-tile.has-flyer .tile-body{display:flow-root}
.tile-flyer-preview{float:right;width:clamp(150px,22vw,260px);padding:0;margin:0 0 18px 24px;border:0;border-radius:16px;background:#c7bfad;overflow:hidden;cursor:zoom-in}
.tile-flyer-preview img{display:block;width:100%;height:auto;border-radius:inherit}
.tile-flyer-preview:focus-visible{outline:2px solid #ae543e;outline-offset:4px}
@media(max-width:560px){
.tile-flyer-preview{width:30%;max-width:120px;min-width:76px;margin:0 0 12px 14px;border-radius:12px}
}

/* All selected dates share one shade, even split-range endpoints and active dates. */
button.calendar-day.in-range,button.calendar-day.range-start,button.calendar-day.range-end,button.calendar-day.range-pending{background:rgba(220,80,57,.2);color:var(--paper);box-shadow:none}

/* Desktop flyers fill the card height with a narrow three-sided inset. */
@media(min-width:821px){
.event-tile.has-flyer{position:relative;min-height:360px}
.event-tile.has-flyer .tile-body{padding-right:calc(38% + 24px)}
.event-tile.has-flyer .tile-flyer-preview{position:absolute;float:none;top:8px;right:8px;bottom:8px;width:38%;max-width:none;min-width:0;margin:0;border-radius:12px;display:flex;align-items:center;justify-content:center}
.event-tile.has-flyer .tile-flyer-preview img{width:100%;height:100%;object-fit:contain}
}

/* Event-card focus marker is separate from selected-date shading. */
button.calendar-day.event-date{outline:2px solid var(--red);outline-offset:-2px;border-radius:0}

/* Fixed orange tab; the beige cover slides back to reveal the flyer underneath. */
.event-tile.has-flyer{position:relative;min-height:360px;border-left:0;padding-left:30px;background:#c7bfad}
.event-tile.has-flyer .tile-body{position:relative;z-index:1;display:flow-root;min-height:360px;width:100%;padding:24px 28px 22px;background:#d8d0bd;transition:width .3s ease;border-radius:0 16px 16px 0}
.event-tile.has-flyer.flyer-open .tile-body{width:62%;border-radius:0 14px 14px 0}
.event-tile.has-flyer .tile-flyer-preview{position:absolute;z-index:0;float:none;top:8px;right:8px;bottom:8px;width:calc(38% - 16px);min-width:0;max-width:none;margin:0;border-radius:12px;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s ease}
.event-tile.has-flyer.flyer-open .tile-flyer-preview{opacity:1;visibility:visible}
.event-tile.has-flyer .tile-flyer-preview img{width:100%;height:100%;object-fit:contain}
.tile-flyer-tab{position:absolute;z-index:2;inset:0 auto 0 0;width:30px;padding:12px 5px;border:0;border-radius:0;background:#ae543e;color:#fff3df;font:600 11px/1.2 var(--body);writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.06em;text-transform:uppercase}
@media(max-width:560px){
.event-tile.has-flyer{min-height:0;padding-left:26px}
.tile-flyer-tab{width:26px;font-size:10px}
.event-tile.has-flyer .tile-body{min-height:280px;padding:20px 16px}
.event-tile.has-flyer.flyer-open .tile-body{width:60%;padding:18px 12px}
.event-tile.has-flyer.flyer-open .tile-name{font-size:24px}
.event-tile.has-flyer.flyer-open .tile-detail{font-size:16px;gap:8px}
.event-tile.has-flyer .tile-flyer-preview{width:calc(40% - 12px);right:6px;top:6px;bottom:6px}
}

/* Reveal the flyer by sliding the warm card face right over a rust-red layer. */
.event-tile.has-flyer{background:#ae543e}
.event-tile.has-flyer .tile-body{transition:width .38s cubic-bezier(.2,.72,.22,1),transform .38s cubic-bezier(.2,.72,.22,1),border-radius .25s ease;will-change:width,transform}
.event-tile.has-flyer.flyer-open .tile-body{width:62%;transform:translateX(clamp(28px,5vw,68px))}
.event-tile.has-flyer .tile-flyer-preview{transition:opacity .2s ease .16s,visibility 0s linear .16s}
@media(max-width:560px){
.event-tile.has-flyer.flyer-open .tile-body{width:60%;transform:translateX(26px)}
}
@media(prefers-reduced-motion:reduce){
.event-tile.has-flyer .tile-body,.event-tile.has-flyer .tile-flyer-preview{transition:none!important}
}

/* Large flyer viewer on desktop; edge-to-edge viewing on phones. */
#simple-lightbox{box-sizing:border-box;width:min(82vw,1100px);max-width:none;max-height:90svh;border-radius:14px}
#simple-lightbox img{max-width:100%;max-height:80svh}
@media(max-width:560px){
#simple-lightbox{width:100vw;height:100svh;max-width:none;max-height:none;margin:0;padding:48px 12px 12px;border:0;border-radius:0}
#simple-lightbox img{max-width:100%;max-height:calc(100svh - 76px)}
}

/* Compact city badges retain the existing location filter buttons. */
.place-choices{gap:10px;}
.place-choice:has(.location-badge){width:100.8px;min-height:106.4px;border:0;border-radius:12px;padding:2px;background:transparent;transition:box-shadow .18s ease,transform .1s ease;}
.location-badge{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:brightness(.72) saturate(.75);transition:filter .18s ease;}
.place-choice[aria-pressed="true"]:has(.location-badge){box-shadow:0 0 0 2px var(--red);}
.place-choice[aria-pressed="true"] .location-badge{filter:none;}
@media(hover:hover){.place-choice:hover .location-badge{filter:brightness(.9);}.place-choice[aria-pressed="true"]:hover .location-badge{filter:none;}}
@media(max-width:600px){.place-choice:has(.location-badge){width:84px;min-height:89.6px;}.place-choices{gap:8px;}}
@media(prefers-reduced-motion:reduce){.location-badge{transition:none;}}

/* Selection boxes replace underlines; routes originate at selected cities. */
#simple .flow-line{display:none;}
.style-route-line{display:none;}
.style-route{margin-left:0;min-height:56px;}
.style-route-label{margin:0;padding:0;}
.selection-routes{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;}
.selection-routes path{fill:none;stroke:var(--red);stroke-width:1.5;vector-effect:non-scaling-stroke;opacity:.65;}

/* The tab-side rust layer holds the flyer; the paper face slides right. */
.event-tile.has-flyer{--flyer-reveal:38%;--flyer-tab:30px;}
.event-tile.has-flyer .tile-body{margin-left:0;transform:none;transition:width .5s cubic-bezier(.2,.72,.22,1),margin-left .5s cubic-bezier(.2,.72,.22,1);will-change:width,margin-left;}
.event-tile.has-flyer.flyer-open .tile-body{width:calc(100% - var(--flyer-reveal));margin-left:var(--flyer-reveal);transform:none;}
.event-tile.has-flyer .tile-flyer-preview{left:calc(var(--flyer-tab) + 8px);right:auto;width:calc((100% - var(--flyer-tab)) * .38 - 16px);top:8px;bottom:8px;background:transparent;}
@media(max-width:560px){
.event-tile.has-flyer{--flyer-reveal:40%;--flyer-tab:26px;}
.event-tile.has-flyer.flyer-open .tile-body{width:calc(100% - var(--flyer-reveal));margin-left:var(--flyer-reveal);transform:none;}
.event-tile.has-flyer .tile-flyer-preview{left:calc(var(--flyer-tab) + 6px);right:auto;width:calc((100% - var(--flyer-tab)) * .4 - 12px);top:6px;bottom:6px;}
}


/* Illustrated dance-style selectors for the Gulf Coast page only. */
.style-choices.has-style-badges{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 18px;
}
.style-choice.has-style-badge{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  max-width:100%;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  transition:box-shadow .18s ease,opacity .18s ease,transform .1s ease;
  line-height:1;
  text-decoration:none;
  opacity:.72;
}
.style-choice.has-style-badge img{
  display:block;
  width:clamp(130px,12vw,156px);
  height:auto;
  object-fit:contain;
  filter:brightness(1.144) saturate(.9);
}
.style-choice.has-style-badge[aria-pressed="true"]{
  box-shadow:0 0 0 2px var(--red);
  opacity:1;
}
.style-choice.has-style-badge[aria-pressed="true"] img{
  filter:brightness(1.144) saturate(.9);
}
.style-choice.has-style-badge.is-unavailable,
.style-choice.has-style-badge.is-unavailable[aria-pressed="true"]{
  opacity:.34;
}
.style-choice.has-style-badge.is-unavailable img,
.style-choice.has-style-badge.is-unavailable[aria-pressed="true"] img{
  filter:grayscale(.85) brightness(.715) saturate(.45);
}
@media(hover:hover){
  .style-choice.has-style-badge:hover,
  .style-choice.has-style-badge[aria-pressed="true"]:hover{
    opacity:inherit;
  }
  .style-choice.has-style-badge:hover img,
  .style-choice.has-style-badge[aria-pressed="true"]:hover img{
    filter:brightness(1.144) saturate(.9);
  }
  .style-choice.has-style-badge.is-unavailable:hover img{
    filter:grayscale(.85) brightness(.715) saturate(.45);
  }
}
@media(max-width:700px){
  .style-choices.has-style-badges{gap:8px 10px}
  .style-choice.has-style-badge{padding:0;border:0}
  .style-choice.has-style-badge img{width:clamp(90px,29vw,110px)}
}

/* Center city and style rows, including wrapped rows on phones. */
.place-choices{justify-content:center}
.style-choices,.style-choices.has-style-badges{justify-content:center;align-items:center;margin-left:0;margin-right:0}

/* Match the Where heading to Styles. */
#simple-where-label{font:700 clamp(24px,3vw,40px)/.95 var(--display);letter-spacing:normal;text-transform:uppercase;color:var(--red)}

/* One-line month heading and custom rust-accent navigation. */
.calendar-month-label{flex:1;min-width:0;font-size:40px;line-height:1.05;text-align:center;white-space:nowrap;letter-spacing:0}
.calendar-head button{flex-shrink:0}

.calendar-head{container-type:inline-size;gap:10px}
.calendar-month-label{font-size:clamp(20px,10cqw,40px)}
.calendar-head button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(220,80,57,.65);border-radius:14px;background:#242421;color:var(--red);cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .15s ease}
.calendar-head button svg{width:22px;height:22px;transition:transform .18s ease}
.calendar-head button:disabled{opacity:.25;cursor:default}
.calendar-head button:active:not(:disabled){transform:scale(.92);background:rgba(220,80,57,.18)}
@media(hover:hover){
.calendar-head button:hover:not(:disabled){background:rgba(220,80,57,.14);border-color:var(--red)}
.calendar-prev:hover:not(:disabled) svg{transform:translateX(-3px)}
.calendar-next:hover:not(:disabled) svg{transform:translateX(3px)}
}

/* Keep the range control compact while preserving its accessible label. */
#calendar-range-summary{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.calendar-range summary{justify-content:flex-end}

/* Prominent weekday headings above each date group. */
.date-heading{font-size:clamp(40px,6vw,64px);line-height:1.05;margin-bottom:18px}

/* Today stays identifiable alongside range shading and the event-date square. */
button.calendar-day.is-today{position:relative;font-weight:800}
button.calendar-day.is-today::after{content:"";position:absolute;bottom:2px;left:50%;width:5px;height:5px;border-radius:50%;background:var(--paper);transform:translateX(-50%);pointer-events:none}

/* Phones: a swipe on the calendar scrolls the page; drag-to-select (touch-action:none) only while the range panel is open. */
button.calendar-day{touch-action:manipulation}
.calendar-sticky:has(#calendar-range-details[open]) button.calendar-day{touch-action:none}

/* Schedule list is a compact-card feature; Full cards keep their single time line. */
.tile-schedule{display:none}

/* Compact card view (slider levels 1-5; 0 = the full cards; the last step,
   12 across at 1280px+, was picked by eye as the smallest where titles, dates and
   rows are still recognizable; 15 across turned into unreadable texture).
   Each compact card is the phone card's info panel on its own (style label,
   serif title, date/time, address, price, links), laid out at the phone
   panel's native width (--panel-w, 194px on a 393px iPhone) with the phone's exact type sizes, so
   lines wrap exactly as on a phone. card-zoom.mjs then sets --z so --cols
   panels fill the row, and `zoom` shrinks the whole panel at once. Layout zoom
   re-rasterizes text crisply (no bitmap transform). --cols per level: */
.card-zoom{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 14px;color:var(--muted);font:600 11px/1 var(--body);letter-spacing:.12em;text-transform:uppercase}
.card-zoom input{width:150px;accent-color:var(--red)}
.card-zoom output{min-width:3.6em;color:var(--paper);letter-spacing:.04em;font-variant-numeric:tabular-nums}
#simple-groups{--panel-w:194px;--gap:14px}
#simple-groups[data-zoom="1"]{--cols:6}
#simple-groups[data-zoom="2"]{--cols:7}
#simple-groups[data-zoom="3"]{--cols:8}
#simple-groups[data-zoom="4"]{--cols:10}
#simple-groups[data-zoom="5"]{--cols:12}
@media(max-width:1279px){#simple-groups[data-zoom="1"]{--cols:5}#simple-groups[data-zoom="2"]{--cols:6}#simple-groups[data-zoom="3"]{--cols:7}#simple-groups[data-zoom="4"]{--cols:8}#simple-groups[data-zoom="5"]{--cols:10}}
@media(max-width:1023px){#simple-groups[data-zoom="1"]{--cols:4}#simple-groups[data-zoom="2"]{--cols:5}#simple-groups[data-zoom="3"]{--cols:6}#simple-groups[data-zoom="4"]{--cols:7}#simple-groups[data-zoom="5"]{--cols:8}}
@media(max-width:820px){#simple-groups[data-zoom="3"]{--cols:5}#simple-groups[data-zoom="4"]{--cols:6}#simple-groups[data-zoom="5"]{--cols:7}}
@media(max-width:560px){#simple-groups{--gap:10px}#simple-groups[data-zoom="1"]{--cols:2}#simple-groups[data-zoom="2"],#simple-groups[data-zoom="3"]{--cols:3}#simple-groups[data-zoom="4"]{--cols:4}#simple-groups[data-zoom="5"]{--cols:5}}
#simple-groups:not([data-zoom="0"]) .day-events{grid-template-columns:repeat(var(--cols,6),calc(var(--panel-w) * var(--z,.78)));gap:var(--gap);justify-content:start;align-items:stretch}
#simple-groups:not([data-zoom="0"]) .date-heading{font-size:clamp(26px,3vw,38px);margin-bottom:12px}
#simple-groups:not([data-zoom="0"]) .date-block{padding-bottom:20px}
/* The card is the phone info panel alone: no flyer, no flyer tab. */
#simple-groups:not([data-zoom="0"]) .event-tile,
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer{zoom:var(--z,.78);box-sizing:border-box;width:var(--panel-w);min-height:0;height:auto;margin:0;padding:0;border:1px solid #a69e8d;border-radius:14px;background:#d8d0bd;color:#151612;box-shadow:0 1px 2px rgba(0,0,0,.06),0 4px 12px rgba(0,0,0,.1);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:transform .18s ease-out,box-shadow .18s ease-out}
@media(hover:hover){#simple-groups:not([data-zoom="0"]) .event-tile:hover{transform:translateY(-2px);box-shadow:0 2px 4px rgba(0,0,0,.08),0 8px 18px rgba(0,0,0,.14)}}
#simple-groups:not([data-zoom="0"]) .event-tile:focus-visible{outline:2px solid var(--red);outline-offset:2px}
#simple-groups:not([data-zoom="0"]) :is(.tile-flyer-tab,.tile-flyer-preview){display:none}
#simple-groups:not([data-zoom="0"]) .event-tile .tile-body,
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-body,
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer.flyer-open .tile-body{box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:18px 12px;transform:none;background:#d8d0bd;border-radius:inherit;transition:none}
/* Phone panel type, exactly (.tile-style / .tile-name / .tile-detail at <=560px, flyer open). */
#simple-groups:not([data-zoom="0"]) .tile-style{margin:0 0 10px;font:600 12px/1.4 var(--body);letter-spacing:.16em;text-transform:uppercase;color:#25251f}
#simple-groups:not([data-zoom="0"]) .tile-name{margin:0 0 16px;font:700 24px/1.08 Georgia,'Times New Roman',serif;letter-spacing:-.025em;color:#151612;overflow-wrap:anywhere}
#simple-groups:not([data-zoom="0"]) .tile-detail{--date-size:16px;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:8px;margin:0 0 10px;font:400 var(--date-size)/1.3 Georgia,'Times New Roman',serif;color:#23241e}
#simple-groups:not([data-zoom="0"]) .tile-detail svg{width:22px;height:22px;margin-top:2px}
/* Compact: date on one line, time directly below it, both beside the calendar icon. */
#simple-groups:not([data-zoom="0"]) .tile-when-sep{display:none}
#simple-groups:not([data-zoom="0"]) :is(.tile-date,.tile-time){display:block}
/* Multi-item schedule: entries stack one per line under the date (replaces the time line),
   at exactly 0.75 of the date line size; same serif, tabular numbers, scaled by the card zoom. */
#simple-groups:not([data-zoom="0"]) .tile-schedule{display:block;margin:0;padding:0;list-style:none}
#simple-groups:not([data-zoom="0"]) .tile-schedule li{display:block;font-size:calc(var(--date-size) * 0.75);line-height:1.3;font-variant-numeric:tabular-nums}
#simple-groups:not([data-zoom="0"]) .has-schedule :is(.tile-time,.tile-when-sep){display:none}
/* Only rows with real data: placeholders ("Venue not listed" etc.) and empty link rows are left out. */
#simple-groups:not([data-zoom="0"]) .is-placeholder,#simple-groups:not([data-zoom="0"]) .tile-links:empty{display:none}
/* Compact cards drop the "Full address" expander (Full cards keep it). */
#simple-groups:not([data-zoom="0"]) .tile-extra-address{display:none}
/* Links pinned to the bottom edge so they line up across a row of equal-height cards.
   Flex stops margin collapsing, so row margins are bottom-only to keep the phone spacing. */
#simple-groups:not([data-zoom="0"]) .event-tile .tile-body{display:flex;flex-direction:column}
#simple-groups:not([data-zoom="0"]) .tile-links{margin-top:auto;padding-top:18px;gap:18px;font-size:12px}
@media(prefers-reduced-motion:reduce){#simple-groups .event-tile{transition:none!important}#simple-groups .event-tile:hover{transform:none!important}}

/* Compact flip corner: an orange folded corner (top left, in the page's red-orange
   accent var(--red)) flips one compact card to its flyer and back. Each face turns on its own
   rotateY, flat and quick (no depth); reduced motion crossfades instead.
   Only cards with a real flyer get the corner; the whole flyer is letterboxed (contain).
   Full cards never show the corner. */
.tile-flip-corner{display:none}
#simple-groups:not([data-zoom="0"]) .event-tile.has-real-flyer .tile-flip-corner{position:absolute;z-index:3;top:0;left:0;display:block;width:44px;height:44px;padding:0;margin:0;border:0;border-radius:14px 0 0 0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
#simple-groups:not([data-zoom="0"]) .tile-flip-corner::before{content:"";position:absolute;top:0;left:0;width:24px;height:24px;border-radius:13px 0 0 0;background:var(--red);clip-path:polygon(0 0,100% 0,0 100%);transition:width .15s ease,height .15s ease}
@media(hover:hover){#simple-groups:not([data-zoom="0"]) .tile-flip-corner:hover::before{width:28px;height:28px}}
#simple-groups:not([data-zoom="0"]) .tile-flip-corner:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-body{backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:rotateY(0deg);transition:transform .32s cubic-bezier(.4,0,.2,1)}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-flyer-preview{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;width:auto;height:auto;min-width:0;max-width:none;margin:0;padding:0;border:0;border-radius:inherit;background:#d8d0bd;overflow:hidden;opacity:1;visibility:visible;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:rotateY(180deg);transition:transform .32s cubic-bezier(.4,0,.2,1)}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-flyer-preview img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:0}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-flyer-preview.is-fallback{background:var(--paper)}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer.is-flipped .tile-body{transform:rotateY(-180deg)}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer.is-flipped .tile-flyer-preview{transform:rotateY(0deg)}
@media(prefers-reduced-motion:reduce){
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-body,#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-flyer-preview{transform:none!important;transition:opacity .2s ease,visibility 0s linear .2s!important}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer .tile-flyer-preview,#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer.is-flipped .tile-body{opacity:0;visibility:hidden}
#simple-groups:not([data-zoom="0"]) .event-tile.has-flyer.is-flipped .tile-flyer-preview{opacity:1;visibility:visible;transition:opacity .2s ease,visibility 0s!important}
}

/* Flyers only chip: flat, quiet, sits left of the card-size slider. */
.list-tools{display:flex;align-items:center;justify-content:flex-end;gap:22px;margin:0 0 14px}
.list-tools .card-zoom{margin:0}
.flyers-only{min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--muted);font:600 11px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;cursor:pointer;transition:color .15s ease,border-color .15s ease}
.flyers-only[aria-pressed="true"]{border-color:var(--red);color:var(--paper)}
@media(hover:hover){.flyers-only:hover{color:var(--paper)}}
.list-tools>*{flex:none}
@media(max-width:560px){.list-tools{justify-content:space-between;gap:8px}.list-tools .card-zoom{gap:6px;letter-spacing:.06em}.list-tools .card-zoom input{width:76px}.flyers-only{padding:0 10px;letter-spacing:.06em}}

/* Fallback flyer: shown when an event has no real flyer (a real one replaces it).
   Flat page palette (paper / ink / red), Exp2 display + body fonts, no logos. */
.event-tile.has-flyer .tile-flyer-preview.is-fallback{cursor:default;background:var(--paper);border:1px solid rgba(24,25,24,.18);container-type:inline-size;overflow:hidden}
.fallback-flyer{display:flex;flex-direction:column;gap:10px;width:100%;height:100%;padding:clamp(10px,7cqi,26px);overflow:hidden;color:var(--ink);text-align:left}
.ff-kicker{flex:none;margin:0;display:flex;align-items:center;gap:8px;font:600 clamp(9px,4.4cqi,12px)/1.3 var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--ink);overflow-wrap:anywhere}
.ff-kicker::before{content:"";flex:none;width:22px;height:3px;background:var(--red)}
.ff-name{flex:0 1 auto;min-height:0;margin:auto 0 0;font:700 clamp(22px,13cqi,42px)/1.02 var(--display);letter-spacing:-.01em;text-transform:uppercase;color:var(--ink);overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}
.ff-name.is-medium{font-size:clamp(20px,12cqi,38px)}
.ff-name.is-long{font-size:clamp(15px,9.5cqi,30px)}
.ff-when{flex:none;margin:4px 0 0;display:flex;flex-wrap:wrap;gap:6px}
.ff-when span{padding:4px 9px;border:1.5px solid var(--ink);border-radius:999px;font:600 clamp(10px,5cqi,14px)/1.2 var(--body);color:var(--ink)}
.ff-when span:first-child{background:var(--ink);color:var(--paper)}
.ff-loc{flex:none;margin:0;padding-left:9px;border-left:3px solid var(--red);font:500 clamp(10px,5cqi,14px)/1.3 var(--body);color:var(--ink);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ff-details{flex:0 1 auto;min-height:0;overflow:hidden;margin:0;padding:8px 0 0;list-style:none;border-top:1px solid rgba(24,25,24,.2);font:400 clamp(9px,4.4cqi,13px)/1.35 var(--body);color:#3a3a34}
.ff-details li{overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* Narrow phone panels: tighter type so long names fit before clamping. */
@container (max-width:180px){.ff-name.is-long{font-size:15px}.ff-name.is-medium{font-size:18px}.ff-details li:nth-child(n+2){display:none}.ff-loc{-webkit-line-clamp:2}}

/* Phones (≤600px): compact sticky calendar. Two scrollable week rows of 40px day
   targets, the + range toggle sits in the month row, and the range panel scrolls
   inside a short box. Desktop and tablet rules above are untouched. */
@media(max-width:600px){
.calendar-sticky{padding-top:6px;padding-bottom:6px;margin-bottom:12px}
.calendar-head{margin:0 46px 2px 0;gap:6px}
.calendar-head button{width:40px;height:40px;border-radius:12px}
.calendar-month-label{font-size:clamp(18px,8cqw,28px)}
.calendar-range{margin:0;padding:0;border:0}
.calendar-range summary{position:absolute;top:6px;right:var(--pad);box-sizing:border-box;width:40px;height:40px;min-height:40px;justify-content:center;border:1px solid var(--line);border-radius:12px}
.calendar-range[open]{margin:2px 0;border-bottom:1px solid var(--line)}
.range-body{max-height:44px;overflow-y:auto;scroll-snap-type:y proximity;scrollbar-width:none}
.range-help{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.range-status{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.range-form{grid-template-columns:1fr 1fr auto auto;gap:4px;margin:0 0 4px;scroll-snap-align:start}
.range-form label{font-size:0;gap:0}
.range-form input{height:40px;padding:4px 2px;font-size:11px}
.range-form input::-webkit-calendar-picker-indicator{margin:0;padding:0}
.range-form button{min-height:40px;padding:4px 6px}
.range-list{flex-wrap:nowrap;align-items:center;height:40px;margin:0;overflow-x:auto;scroll-snap-align:start;scrollbar-width:none}
.range-chip{flex:none;height:22px}
.range-chip button{width:40px;height:40px;margin:-11px -11px -11px -8px}
.calendar-weekdays{margin-bottom:1px}
.calendar-days{max-height:83px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none}
.calendar-days::-webkit-scrollbar{display:none}
.calendar-day,.calendar-blank{height:40px;scroll-snap-align:start}
.calendar-sticky:has(#calendar-range-details[open]) .calendar-days{max-height:40px}
}
