/* ===========================================================================
   PAND — The Events Calendar, wearing the site's clothes
   Prefix: .tribe-* (the plugin's own classes)

   This is a SKIN, not a template override. The plugin keeps rendering its own
   markup — so list view, month view, search, iCal export and the single-event
   page all keep working, and a plugin update cannot leave a half-rewritten
   template behind. We restyle what it outputs.

   If a future TEC release renames a class, the worst case is that one detail
   reverts to plugin styling. Nothing breaks.
   =========================================================================== */

.tribe-common,
.tribe-events,
.tribe-events-single {   /* single event pages sit outside .tribe-events: without this the
                            date box and details box below had no colours or borders */
  --ink:#12293F; --muted:#5D6B7A; --blue:#1D63AC; --blue-dk:#114B93;
  --green:#49A647; --green-dk:#1E9F49; --paper:#EEF2F7; --line:#E2E8F0;
  --ease:cubic-bezier(.22,.61,.36,1); --spring:cubic-bezier(.2,.9,.3,1);
}

/* ---------- typography: the plugin ships its own stack ---------- */
.tribe-common,
.tribe-common .tribe-common-b1,
.tribe-common .tribe-common-b2,
.tribe-common .tribe-common-b3,
.tribe-events .tribe-events-c-search__input,
.tribe-common button,
.tribe-common input,
.tribe-common select {
  font-family:'Montserrat', system-ui, sans-serif !important;
  color:var(--ink);
}
.tribe-common .tribe-common-h1,
.tribe-common .tribe-common-h2,
.tribe-common .tribe-common-h3,
.tribe-common .tribe-common-h4,
.tribe-common .tribe-common-h5,
.tribe-common .tribe-common-h6,
.tribe-common .tribe-common-h7,
.tribe-events-single h1,
.tribe-events-single h2 {
  font-family:'Poppins', system-ui, sans-serif !important;
  font-weight:500 !important;
  letter-spacing:-.01em;
  color:var(--ink);
}

/* ---------- layout width to match the rest of the site ---------- */
.tribe-events .tribe-events-l-container,
.tribe-events-single {
  max-width:1120px;
  padding-left:clamp(16px,4vw,24px);
  padding-right:clamp(16px,4vw,24px);
}

/* The calendar's own header sits a few pixels wider than a phone screen,
   which let the whole page scroll sideways. Clip it (clip, not hidden, so
   nothing inside becomes a scroll box). */
.tribe-events { overflow-x:clip; }

/* ---------- the search / events bar ---------- */
.tribe-events .tribe-events-c-events-bar--border{
  border:1px solid var(--line); border-radius:16px; background:#fff; overflow:hidden;
}
.tribe-events .tribe-events-c-search__input-control-input{
  border-radius:10px !important; border-color:var(--line) !important;
}
.tribe-events .tribe-events-c-search__input-control-input:focus{
  border-color:var(--blue) !important; box-shadow:0 0 0 4px rgba(29,99,172,.12) !important;
}

/* ---------- buttons ---------- */
.tribe-common .tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button{
  background:linear-gradient(135deg,var(--green),var(--green-dk)) !important;
  border:0 !important; border-radius:999px !important;
  font-family:'Montserrat',sans-serif !important; font-weight:700 !important;
  color:#fff !important; transition:transform .3s var(--spring);
}
.tribe-common .tribe-common-c-btn:hover{ transform:translateY(-2px); }

.tribe-common .tribe-common-c-btn-border,
.tribe-events .tribe-events-c-subscribe-dropdown__button{
  border:1.5px solid var(--line) !important; border-radius:999px !important;
  color:var(--ink) !important; font-weight:600 !important;
  background:#fff !important; transition:border-color .25s, transform .3s var(--spring);
}
.tribe-common .tribe-common-c-btn-border:hover{ border-color:var(--blue) !important; transform:translateY(-1px); }

/* ---------- month separator ---------- */
.tribe-events .tribe-events-calendar-list__month-separator-text{
  font-family:'Poppins',sans-serif !important;
  font-size:15px !important; letter-spacing:.02em; color:var(--muted) !important;
  text-transform:uppercase;
}
.tribe-events .tribe-events-calendar-list__month-separator::after{
  background-color:var(--line) !important;
}

/* ---------- an event row becomes a card ---------- */
.tribe-events .tribe-events-calendar-list__event-row{
  background:#fff; border:1px solid var(--line); border-radius:18px;
  padding:20px 22px; margin-bottom:14px;
  transition:border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tribe-events .tribe-events-calendar-list__event-row:hover{
  border-color:#BFD4EA; transform:translateY(-2px);
  box-shadow:0 20px 40px -30px rgba(18,41,63,.45);
}
.tribe-events .tribe-events-calendar-list__event-row--featured
  .tribe-events-calendar-list__event-date-tag-datetime::before{ background:var(--green) !important; }

/* the date tag on the left */
.tribe-events .tribe-events-calendar-list__event-date-tag-datetime{
  background:var(--paper); border-radius:12px; padding:10px 6px; text-align:center;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday{
  color:var(--muted) !important; letter-spacing:.1em; font-size:11px !important;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum{
  color:var(--blue-dk) !important; font-family:'Poppins',sans-serif !important; font-weight:500 !important;
}

/* title + link */
.tribe-events .tribe-events-calendar-list__event-title{
  font-size:19px !important; line-height:1.35 !important; margin-bottom:6px !important;
}
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-list__event-title-link:visited{
  color:var(--ink) !important; text-decoration:none !important; box-shadow:none !important;
}
.tribe-events .tribe-events-calendar-list__event-title-link:hover{ color:var(--blue) !important; }

/* datetime + venue */
.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-list__event-venue{
  color:var(--muted) !important; font-size:14px !important; font-style:normal !important;
}
.tribe-events .tribe-events-calendar-list__event-venue-title{ color:var(--ink) !important; }

/* featured image */
.tribe-events .tribe-events-calendar-list__event-featured-image-wrapper{ border-radius:14px; overflow:hidden; }
.tribe-events .tribe-events-calendar-list__event-featured-image{ border-radius:14px; }

/* description */
.tribe-events .tribe-events-calendar-list__event-description{
  color:var(--muted) !important; font-size:14.5px !important; line-height:1.65 !important;
}

/* ---------- pagination / nav ---------- */
.tribe-events .tribe-events-c-nav{ border-top:1px solid var(--line); padding-top:18px; }
.tribe-events .tribe-events-c-nav__next,
.tribe-events .tribe-events-c-nav__prev{ color:var(--blue) !important; font-weight:600 !important; }

/* ---------- single event ----------
   The single event page has its own template since 22 Nov 2026
   (tribe-events/single-event.php). Its styles are at the end of this file,
   under "Single event page". */

/* ---------- our own hero above the plugin's output ---------- */
.pev-hero{
  position:relative; isolation:isolate; overflow:hidden; color:#fff;
  background-color:#12293F;
  background-image:radial-gradient(120% 90% at 50% 0%, #16345A 0%, #12293F 62%, #0F2A2E 100%);
  padding:clamp(108px,13vh,144px) clamp(24px,8vw,128px) clamp(40px,6vh,58px);
  font-family:'Montserrat',system-ui,sans-serif;
}
.pev-hero::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(32% 40% at 5% 8%, rgba(29,99,172,.34), transparent 72%),
             radial-gradient(38% 48% at 97% 100%, rgba(73,166,71,.26), transparent 70%);
}
.pev-in{max-width:1120px; margin:0 auto}
.pev-eyebrow{
  margin:0 0 10px; font-size:12px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(255,255,255,.55);
}
.pev-hero h1{
  margin:0; font-family:'Poppins',system-ui,sans-serif; font-weight:400;
  font-size:clamp(30px,4.2vw,50px); line-height:1.16; letter-spacing:-.015em; color:#EAF1F8;
}
.pev-lead{margin:16px 0 0; max-width:60ch; font-size:17px; line-height:1.7; color:rgba(255,255,255,.82)}
.pev-count{margin:14px 0 0; font-size:13px; color:rgba(255,255,255,.5)}

/* The plugin's own page title is redundant where our hero renders — but the
   month view never gets the hero, so its title must stay or the page is
   headless. Hide it only when the hero is actually present. */
.pev-hero ~ * .tribe-events-header__title{ display:none !important; }

/* Month view keeps its own title — style it to match the site. */
.tribe-events-header__title{
  font-family:'Poppins', system-ui, sans-serif !important;
  font-weight:400 !important;
  font-size:clamp(26px,3.2vw,40px) !important;
  color:var(--ink) !important;
  letter-spacing:-.015em;
}

@media (max-width:782px){
  .tribe-events .tribe-events-calendar-list__event-row{ padding:16px 16px; }
}
@media (prefers-reduced-motion:reduce){
  .tribe-events .tribe-events-calendar-list__event-row,
  .tribe-common .tribe-common-c-btn{ transition:none !important; }
}

/* ===========================================================================
   Single event page (22 Nov 2026) — tribe-events/single-event.php
   Desktop (1024+): two columns, the poster stays in view on the right.
   Phone and tablet: the poster comes first, whole and uncropped; the details
   sit on a sheet that slides up over it, and a bottom bar keeps the one
   button in reach. Plan: claude/PAND-single-event-plan-nov2026.md
   =========================================================================== */
.pev-page{background:#F6F8FB}
.pev-page #tribe-events-pg-template{max-width:none !important; margin:0 !important; padding:0 !important}
.pev-wrap{
  --ink:#12293F; --muted:#5D6B7A; --blue:#1D63AC; --blue-dk:#114B93; --line:#E2E8F0; --paper:#EEF2F7;
  --go1:#26813F; --go2:#1B6A34;   /* button green: white text passes 4.5:1 (the logo green does not) */
  --ease:cubic-bezier(.22,.61,.36,1);
  font-family:'Montserrat',system-ui,sans-serif; color:var(--ink); font-size:16px; line-height:1.6;
  padding-bottom:72px;
}
.pev-wrap *,.pev-wrap *::before,.pev-wrap *::after{box-sizing:border-box}
.pev-wrap h1,.pev-wrap h2{font-family:'Poppins',system-ui,sans-serif; font-weight:500; color:var(--ink); letter-spacing:-.01em}
.pev-wrap a{color:var(--blue)}
.pev-wrap svg{flex:none}

/* --- layout -------------------------------------------------------------- */
.pev{max-width:1180px; margin:0 auto; padding:clamp(124px,14vh,150px) clamp(20px,4vw,40px) 8px;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,440px); gap:48px; align-items:start}
.pev--noposter{grid-template-columns:minmax(0,1fr)}
.pev-main{grid-column:1; grid-row:1; min-width:0; display:flex; flex-direction:column; gap:22px}

/* --- poster (desktop: sticky card on the right) ------------------------- */
.pev-poster{grid-column:2; grid-row:1; position:sticky; top:110px; margin:0; overflow:hidden; border-radius:28px; background:#12293F;
  height:min(calc(100vh - 140px), 640px); display:flex; align-items:center; justify-content:center; isolation:isolate}
.pev-poster-bg{position:absolute; inset:-60px; width:calc(100% + 120px); height:calc(100% + 120px); object-fit:cover; filter:blur(42px) saturate(1.2); opacity:.75; z-index:-1}
.pev-poster-img{position:relative; display:block; width:auto; height:auto; max-width:86%; max-height:88%; border-radius:14px; box-shadow:0 30px 60px -20px rgba(0,0,0,.55)}
.pev-poster-dim{position:absolute; inset:0; background:#0B1B2B; opacity:0; pointer-events:none}
.pev-poster-open{position:absolute; right:16px; bottom:16px; display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border-radius:999px;
  background:rgba(18,41,63,.75); color:#fff !important; font-weight:600; font-size:14px; text-decoration:none}
.pev-grab{display:none}

/* --- heading ------------------------------------------------------------- */
.pev-crumbs{display:flex; gap:8px; flex-wrap:wrap; font-size:13.5px; color:var(--muted)}
.pev-crumbs a{color:var(--muted); text-decoration:none}
.pev-crumbs a:hover{color:var(--blue)}
.pev-statusrow{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px}
.pev-status{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:13px; letter-spacing:.02em; padding:6px 12px 6px 10px; border-radius:999px}
.pev-status--green{background:#E4F3E6; color:#1B6A34}
.pev-status--grey{background:#E9EDF2; color:#3D4E60}
.pev-status--red{background:#FCE8E6; color:#A52A1B}
.pev-dot{width:8px; height:8px; border-radius:50%; background:currentColor}
.pev-repeat{display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; font-weight:600}
.pev-title{margin:0; font-size:clamp(34px,4.2vw,52px) !important; line-height:1.1 !important; letter-spacing:-.02em !important}
.pev-intro{margin:0; max-width:58ch; font-size:18px; line-height:1.65; color:#3D4E60}
.pev-reason{margin:0; padding:12px 16px; border-radius:14px; background:#FCE8E6; color:#7A1F14; font-weight:600}

/* --- when / where -------------------------------------------------------- */
.pev-facts{display:flex; flex-wrap:wrap; gap:14px}
.pev-fact{flex:1 1 250px; display:flex; gap:14px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:18px; padding:14px 16px; min-width:0}
.pev-fact strong{display:block; font-size:16px; font-weight:700; line-height:1.35}
.pev-sub{display:block; color:var(--muted); font-size:14.5px; line-height:1.5}
.pev-datebox{flex:none; width:60px; border-radius:12px; overflow:hidden; text-align:center; color:#fff; font-family:'Poppins',sans-serif;
  background:linear-gradient(160deg,var(--blue),var(--blue-dk)); display:flex; flex-direction:column; padding:7px 0}
.pev-datebox span{font-size:10.5px; font-weight:600; letter-spacing:.12em}
.pev-datebox b{font-size:26px; font-weight:500; line-height:1.05}
.pev-iconbox{flex:none; width:60px; height:72px; border-radius:12px; background:var(--paper); color:var(--blue); display:flex; align-items:center; justify-content:center}

/* --- the action card ----------------------------------------------------- */
.pev-action{background:#fff; border:1px solid #DCE4EE; border-radius:22px; padding:22px; box-shadow:0 24px 50px -36px rgba(18,41,63,.5); display:flex; flex-direction:column; gap:16px}
.pev-note{margin:0; font-weight:600}
.pev-btns{display:flex; flex-wrap:wrap; gap:10px}
.pev-btns>*{flex:1 1 220px}
.pev-btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 22px; border-radius:999px; border:0;
  font:700 16px/1.2 'Montserrat',sans-serif; text-decoration:none !important; cursor:pointer; transition:transform .25s var(--ease), box-shadow .25s var(--ease)}
.pev-btn:hover{transform:translateY(-1px)}
.pev-btn--primary{background:linear-gradient(135deg,var(--go1),var(--go2)); color:#fff !important}
.pev-btn--blue{background:linear-gradient(135deg,var(--blue),var(--blue-dk)); color:#fff !important}
.pev-btn--secondary{background:#fff; color:var(--blue-dk) !important; box-shadow:inset 0 0 0 1.5px #BFD4EA}
.pev-btn--white{background:#fff; color:var(--ink) !important}
.pev-btn--ghost{background:transparent; color:#fff !important; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.45)}
.pev-btn--small{min-height:44px; font-size:15px; padding:0 18px; align-self:flex-start}
.pev-btn:focus-visible,.pev-round:focus-visible,.pev-cal summary:focus-visible{outline:3px solid var(--blue); outline-offset:3px}

.pev-cal{position:relative}
.pev-cal summary{list-style:none; width:100%}
.pev-cal summary::-webkit-details-marker{display:none}
.pev-cal[open] summary svg:last-child{transform:rotate(180deg)}
.pev-calmenu{position:absolute; left:0; right:0; top:calc(100% + 8px); z-index:20; background:#fff; border:1px solid var(--line); border-radius:16px; padding:6px;
  box-shadow:0 24px 50px -24px rgba(18,41,63,.45); display:flex; flex-direction:column}
.pev-calmenu a{display:block; padding:12px 16px; border-radius:10px; color:var(--ink) !important; font-weight:600; text-decoration:none}
.pev-calmenu a:hover,.pev-calmenu a:focus-visible{background:var(--paper)}

.pev-sharerow{display:flex; flex-wrap:wrap; align-items:center; gap:8px; border-top:1px solid var(--line); padding-top:14px}
.pev-sharelabel{font-size:13.5px; font-weight:600; color:var(--muted); margin-right:4px}
.pev-round{width:44px; height:44px; border-radius:50%; border:0; background:var(--paper); color:var(--blue) !important; display:inline-flex; align-items:center; justify-content:center; cursor:pointer}
.pev-round:hover{background:#E2EAF4}
.pev-copied{font-size:13px; font-weight:600; color:#1B6A34}
.pev-textlink{margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:14.5px; text-decoration:none}

/* --- tickets and RSVP (Event Tickets' own form, in PAND clothes) -------- */
.pev-tickets{scroll-margin-top:110px; background:#fff; border:1px solid var(--line); border-radius:22px; padding:8px 18px}
.pev-tickets .tribe-common,.pev-tickets .tribe-common *{font-family:'Montserrat',sans-serif !important}
.pev-tickets .tribe-common .tribe-common-h2,.pev-tickets .tribe-common .tribe-common-h3,.pev-tickets .tribe-common .tribe-common-h4,
.pev-tickets .tribe-common .tribe-common-h5,.pev-tickets .tribe-common .tribe-common-h6{font-family:'Poppins',sans-serif !important; color:var(--ink)}
.pev-tickets .tribe-common .tribe-common-c-btn,.pev-tickets .tribe-common button[type="submit"]{
  background:linear-gradient(135deg,var(--go1),var(--go2)) !important; color:#fff !important; border-radius:999px !important; font-weight:700 !important}
.pev-tickets .tribe-tickets__rsvp-wrapper,.pev-tickets .tribe-tickets__tickets-wrapper{margin:8px 0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important}
.pev-tickets .tribe-tickets__rsvp,.pev-tickets .tribe-tickets__tickets-form{border:0 !important; padding:8px 0 !important}

/* --- hosts / chips ------------------------------------------------------- */
.pev-hosts{display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; font-size:15px}
.pev-hostslabel{font-size:13.5px; font-weight:600; color:var(--muted)}
.pev-host{display:inline-flex; align-items:center; gap:9px; font-weight:600}
.pev-host img,.pev-initials{width:34px; height:34px; border-radius:50%; object-fit:cover}
.pev-initials{display:inline-flex; align-items:center; justify-content:center; background:#F3E7D3; color:#7A5418; font:600 13px 'Poppins',sans-serif}
.pev-host a{color:var(--ink); text-decoration:none}
.pev-host a:hover{color:var(--blue)}

.pev-chips{display:flex; flex-wrap:wrap; align-items:center; gap:10px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:16px 0}
.pev-chipslabel{margin:0 8px 0 0 !important; font-size:15px !important}
.pev-chips ul{display:flex; flex-wrap:wrap; gap:10px; list-style:none; margin:0; padding:0}
.pev-chips li{display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 14px; font-size:14px; font-weight:600}
.pev-chips li svg{color:var(--blue)}

/* --- sections ------------------------------------------------------------ */
.pev-sec{margin-top:18px}
.pev-sec>h2{margin:0 0 14px; font-size:26px}
/* TEC prints its own "Add to calendar" links after the description; the action card already has them. */
.pev-about .tribe-events-c-subscribe-dropdown__container,.pev-about .tribe-events-cal-links{display:none !important}
.pev-desc{background:#fff; border:1px solid var(--line); border-radius:20px; padding:24px 28px; font-size:16.5px; line-height:1.75; overflow-wrap:anywhere}
.pev-desc>*:last-child{margin-bottom:0}
.pev-desc p,.pev-desc li{margin:0 0 12px}
.pev-desc .pev-fa,.pev-desc [dir="rtl"]{font-family:'Vazirmatn',system-ui,sans-serif; font-size:17.5px; line-height:2}
.pev-desc img{max-width:100%; height:auto; border-radius:12px}
.pev-desc a{font-weight:600}
.pev-pill{display:inline-flex; align-items:center; font:600 14px 'Montserrat',sans-serif; text-decoration:none !important; background:var(--paper); border-radius:999px; padding:3px 12px; vertical-align:middle; unicode-bidi:isolate}

.pev-card{background:#fff; border:1px solid var(--line); border-radius:20px; padding:18px}
.pev-therecard{display:flex; flex-wrap:wrap; gap:18px}
.pev-map{flex:1 1 280px; min-height:260px; border-radius:14px; overflow:hidden; background:#E9EFF5}
.pev-map iframe{display:block; width:100% !important; height:100% !important; min-height:260px; border:0}
.pev-notes{flex:1 1 300px; min-width:0; display:flex; flex-direction:column; gap:14px}
.pev-noterow{display:flex; gap:12px}
.pev-noterow svg{color:var(--blue); margin-top:2px}
.pev-noterow strong{display:block; font-weight:700}
.pev-noterow span{display:block; color:var(--muted); font-size:15px}
.pev-joincard{display:flex; flex-wrap:wrap; align-items:center; gap:16px}
.pev-joincard>div{flex:1 1 240px; min-width:0}
.pev-joincard strong{display:block}
.pev-joincard span{color:var(--muted); font-size:15px}

.pev-dates{display:flex; flex-wrap:wrap; gap:12px; list-style:none; margin:0; padding:0}
.pev-date{display:flex; flex-direction:column; min-width:120px; padding:12px 18px; border-radius:16px; border:1px solid var(--line); background:#fff; text-decoration:none; color:var(--ink) !important}
.pev-date small{font-size:12.5px; font-weight:600; letter-spacing:.04em; color:var(--muted)}
.pev-date b{font:500 20px/1.3 'Poppins',sans-serif}
.pev-date.is-past{color:var(--muted) !important}
.pev-date.is-current{border:2px solid var(--blue); background:#F1F6FC; color:var(--blue-dk) !important}
.pev-date.is-current small{color:var(--blue-dk)}
.pev-date.is-soon{border:1.5px dashed #BFD4EA; justify-content:center; color:var(--blue-dk) !important}
.pev-date.is-soon b{font:700 14.5px 'Montserrat',sans-serif}
a.pev-date:hover{border-color:#BFD4EA}

/* --- full-width bands ---------------------------------------------------- */
.pev-band{max-width:1180px; margin:48px auto 0; padding:0 clamp(20px,4vw,40px)}
.pev-band h2{margin:0}
.pev-give{display:flex; flex-wrap:wrap; align-items:center; gap:24px}
.pev-give{background:#fff; border:1px solid var(--line); border-radius:24px; padding:28px 32px; max-width:calc(1180px - 2 * clamp(20px,4vw,40px))}
.pev-give>div{flex:1 1 380px}
.pev-give h2{font-size:23px}
.pev-give p{margin:4px 0 0; color:var(--muted)}
.pev-givei{flex:none; width:56px; height:56px; border-radius:50%; background:#E4F3E6; color:#1B6A34; display:flex; align-items:center; justify-content:center}
.pev-morehead{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:18px}
.pev-morehead h2{font-size:26px}
.pev-morehead a{display:inline-flex; align-items:center; gap:6px; font-weight:700; text-decoration:none}
.pev-cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px}
.pev-ecard{display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; text-decoration:none; color:var(--ink) !important;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease)}
.pev-ecard:hover{transform:translateY(-2px); box-shadow:0 20px 40px -30px rgba(18,41,63,.45)}
.pev-ecard-img{display:block; aspect-ratio:16/9; background:var(--paper)}
.pev-ecard-img img{width:100%; height:100%; object-fit:cover; display:block}
.pev-ecard-body{display:flex; flex-direction:column; gap:6px; padding:16px 18px 20px}
.pev-ecard-body small{font-size:13px; font-weight:700; color:var(--blue-dk); letter-spacing:.02em}
.pev-ecard-body b{font:500 19px/1.3 'Poppins',sans-serif}
.pev-ecard-body span{font-size:14px; color:var(--muted)}
.pev-follow{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; background:#12293F; color:#EAF1F8; border-radius:24px; padding:28px 32px;
  max-width:calc(1180px - 2 * clamp(20px,4vw,40px))}
.pev-follow h2{color:#fff !important; font-size:23px}
.pev-follow p{margin:4px 0 0; color:rgba(234,241,248,.86)}
.pev-followbtns{display:flex; flex-wrap:wrap; gap:10px}
.pev-give,.pev-follow{margin-left:auto; margin-right:auto}

.pev-bar{display:none}

/* --- full poster viewer -------------------------------------------------- */
.pev-viewer{border:0; padding:0; background:transparent; max-width:94vw; max-height:94vh; overflow:visible}
.pev-viewer::backdrop{background:rgba(8,20,32,.88)}
.pev-viewer img{display:block; max-width:94vw; max-height:90vh; width:auto; height:auto; border-radius:12px}
.pev-viewer form{position:absolute; top:-8px; right:-8px; margin:0}
.pev-viewer-close{width:44px; height:44px; border-radius:50%; border:0; background:#fff; color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}

/* --- phone and tablet: poster first, details on a sheet ------------------ */
@media (max-width:1023px){
  .pev{display:block; padding:0; max-width:none; background:#0E2033}
  .pev--noposter{background:#F6F8FB; padding-top:96px}
  .pev-poster{position:sticky; top:0; z-index:0; border-radius:0; background:#0E2033; padding-top:88px;
    height:auto; display:flex; justify-content:center; align-items:flex-start}
  .pev-poster-bg{inset:88px 0 0 0; width:100%; height:calc(100% - 88px); filter:blur(28px) saturate(1.15); opacity:.8; transform:scale(1.15)}
  .pev-poster-img{max-width:100%; max-height:none; width:auto; height:min(calc(100vw * var(--pev-ratio, 1.3)), 62vh); height:min(calc(100vw * var(--pev-ratio, 1.3)), 62svh);
    border-radius:0; box-shadow:none; object-fit:contain; transform-origin:50% 0}
  .pev-poster-open{right:12px; bottom:12px; min-height:40px; padding:0 14px; font-size:13px}
  .pev-main{position:relative; z-index:1; background:#F6F8FB; border-radius:24px 24px 0 0; padding:10px 18px 8px; gap:16px;
    box-shadow:0 -18px 40px -20px rgba(0,0,0,.5)}
  .pev--noposter .pev-main{border-radius:0; box-shadow:none; padding-top:0}
  .pev-grab{display:block; align-self:center; width:40px; height:4px; border-radius:4px; background:#CBD5E1}
  .pev--noposter .pev-grab{display:none}
  .pev-crumbs{display:none}
  .pev-title{font-size:clamp(26px,7.4vw,32px) !important; line-height:1.15 !important}
  .pev-intro{font-size:16px}
  .pev-fact{flex-basis:100%; padding:10px 12px; border-radius:16px}
  .pev-datebox{width:52px; padding:6px 0}
  .pev-datebox b{font-size:22px}
  .pev-iconbox{width:52px; height:58px}
  .pev-action{padding:18px; border-radius:20px; gap:12px}
  .pev-btns>*{flex-basis:100%}
  .pev-textlink{margin-left:0; width:100%}
  .pev-tickets{scroll-margin-top:88px}
  .pev-tickets .tribe-tickets__rsvp-actions-button-going,.pev-tickets .tribe-tickets__rsvp-actions-button-not-going{min-height:48px; padding:0 36px}
  .pev-chips{border:0; padding:0}
  .pev-chipslabel{width:100%; font-size:16px !important}
  .pev-chips li{font-size:13.5px; padding:7px 12px}
  .pev-sec{margin-top:16px}
  .pev-sec>h2{font-size:22px}
  .pev-desc{padding:18px; font-size:16px}
  .pev-dates{flex-wrap:nowrap; overflow-x:auto; margin-right:-18px; padding-right:18px; scrollbar-width:none}
  .pev-date{flex:none; min-width:108px; padding:10px 14px}
  .pev-band{margin-top:34px; padding:0 18px}
  .pev-give,.pev-follow{padding:22px; border-radius:20px; max-width:calc(100% - 36px)}
  .pev-cards{grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(260px,78%); overflow-x:auto; margin-right:-18px; padding-right:18px; scrollbar-width:none}
  .pev-followbtns,.pev-followbtns .pev-btn{width:100%}

  /* Same floating dock as the site's Call / Get help bar (nav.css .pn-bottom),
     which it replaces on event pages, so the autumn pile still rests on it. */
  .pev-bar{display:flex; position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom, 0px)); z-index:9000; align-items:center; gap:10px;
    padding:8px 8px 8px 18px; border-radius:999px; background:rgba(18,41,63,.86); -webkit-backdrop-filter:blur(22px) saturate(1.6); backdrop-filter:blur(22px) saturate(1.6);
    border:1px solid rgba(255,255,255,.14); box-shadow:0 20px 45px -20px rgba(18,41,63,.8); font-family:'Montserrat',sans-serif; color:#fff;
    transform:translateY(0); transition:transform .28s var(--ease)}
  .pev-bar.is-hidden{transform:translateY(calc(100% + 40px))}
  body:has(.pev-bar) .pn-bottom{display:none}
  .pev-bartext{flex:1 1 auto; min-width:0; line-height:1.3}
  .pev-bartext strong{display:block; font-size:13.5px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .pev-bartext span{display:block; font-size:12.5px; color:rgba(234,241,248,.78); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .pev-btn--bar{flex:none; min-height:48px; padding:0 16px; font-size:14.5px; gap:7px}
  .pev-page .pf{padding-bottom:84px}
}

/* The dimming as the sheet slides over the poster: pure CSS where the
   browser supports scroll-driven animations (Chrome 115, Safari 26,
   Firefox 159); elsewhere the poster simply stays as it is. */
@media (max-width:1023px) and (prefers-reduced-motion:no-preference){
  @supports (animation-timeline: scroll()){
    .pev--poster .pev-poster-dim{animation:pev-dim linear both; animation-timeline:scroll(root); animation-range:0 50vh}
    .pev--poster .pev-poster-img{animation:pev-shrink linear both; animation-timeline:scroll(root); animation-range:0 50vh}
  }
}
@keyframes pev-dim{to{opacity:.72}}
@keyframes pev-shrink{to{transform:scale(.96)}}
@media (prefers-reduced-motion:reduce){ .pev-btn,.pev-ecard,.pev-bar{transition:none !important} }

/* ===========================================================================
   Calendar controls (5 Dec 2026)
   The plugin's own calendar controls work again (inc/events.php). These are
   small fixes to how they look.
   =========================================================================== */

/* The date in the top bar shows the full words on every screen
   ("December 2026", "December 5, 2026"), not "12/2026" on phones. */
.tribe-events .tribe-events-c-top-bar__datepicker .tribe-events-c-top-bar__datepicker-mobile{display:none !important}
.tribe-events .tribe-events-c-top-bar__datepicker .tribe-events-c-top-bar__datepicker-desktop{display:inline !important; visibility:visible !important}

/* Phone and tablet month view: the tapped day is a rounded square with a
   white date, on tablets too (it used to fill the whole tall cell). */
.tribe-events .tribe-events-calendar-month__day-cell--mobile{
  inset:0; margin:auto; width:min(100%, 56px); height:min(100%, 56px); border-radius:12px;
}
.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date-daynum{color:#fff !important}

/* Site text rule: button text at least 17px, other text at least 15px. The
   plugin ships 12 to 14px here. */
.tribe-events .tribe-events-c-search__button,
.tribe-events .tribe-events-c-subscribe-dropdown__button-text,
.tribe-events .tribe-events-c-top-bar__today-button{font-size:17px !important}
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next,
.tribe-events .tribe-events-c-nav__today{font-size:15px !important}
