.tpe-wrap{max-width:1100px;margin:0 auto;padding:16px}
.tpe-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px;flex-wrap:wrap}
.tpe-toolbar-left{display:flex;align-items:center;gap:10px}
.tpe-filter-open{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border:1px solid #ddd;border-radius:200px;background:#fff;font-size:16px;cursor:pointer}
.tpe-filter-open:hover{background:#f2f7f5}
.tpe-filter-open-ico{font-size:16px;width:16px;height:16px;line-height:1}
.tpe-view-toggle{display:inline-flex;align-items:center;gap:4px;background:#0b3d2e;border-radius:999px;padding:4px}
.tpe-view-btn{background:transparent;border:0;cursor:pointer;color:#fff;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;opacity:.85; padding: 8px 16px;}
.tpe-view-btn .dashicons{font-size:18px;width:18px;height:18px;line-height:1}
.tpe-view-btn:hover{opacity:1}
.tpe-view-btn.is-active{background:#fff;color:#0b3d2e;opacity:1}
.tpe-list-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.tpe-card{display:block;background:#fff;border:1px solid #eee;border-radius:10px;overflow:hidden;color:inherit;text-decoration:none;transition:transform .15s}
.tpe-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.06)}
.tpe-card-thumb{aspect-ratio:16/9;background:#eee}
.tpe-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tpe-card-body{padding:14px}
.tpe-card-title{margin:0 0 6px;font-size:1.05rem;font-weight:700}
.tpe-card-loc,.tpe-card-date{margin:2px 0;font-size:.9rem;color:#555}

.tpe-cal-header{display:flex;justify-content:center;align-items:center;gap:20px;margin-bottom:12px}
.tpe-cal-title{font-size:1.4rem;margin:0}
.tpe-cal-prev,.tpe-cal-next{background:none;border:0;font-size:1.6rem;cursor:pointer;padding:4px 12px}
.tpe-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:130px;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden}
.tpe-cal-head{padding:8px;background:#f7f7f7;font-size:.8rem;font-weight:600;text-transform:uppercase;color:#666;text-align:left;min-width:0}
.tpe-cal-cell{padding:6px;border-top:1px solid #eee;border-right:1px solid #eee;background:#fff;min-width:0;overflow:hidden;display:flex;flex-direction:column}
.tpe-cal-cell:nth-child(7n){border-right:0}
.tpe-cal-day{font-weight:700;font-size:1rem;margin-bottom:4px;position:relative;display:inline-block}
.tpe-cal-cell.is-outside .tpe-cal-day{color:#bbb}
.tpe-cal-cell.is-today .tpe-cal-day::after{content:"";position:absolute;top:0%;bottom:-2px;width:5px;height:5px;border-radius:50%;background:red;transform:translateX(-50%)}
.tpe-cal-cell.is-today .tpe-cal-day{color:#0b3d2e}
.tpe-cal-event{display:block;font-size:.75rem;background:#eaf2ed;color:#1f3a2e;padding:4px 6px;border-radius:4px;margin-top:2px;text-decoration:none;line-height:1.25;overflow:hidden}
.tpe-cal-event:hover{background:#d4e4da}
.tpe-cal-event-title{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpe-cal-event-sub{display:block;font-size:.7rem;color:#4b5e56;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
@media (max-width:640px){
	.tpe-cal-header{gap:8px;margin-bottom:8px}
	.tpe-cal-title{font-size:1.05rem}
	.tpe-cal-prev,.tpe-cal-next{font-size:1.2rem;padding:2px 8px}
	.tpe-cal-grid{grid-auto-rows:minmax(74px,auto)}
	.tpe-cal-head{padding:4px 2px;font-size:.6rem;text-align:center}
	.tpe-cal-cell{padding:3px}
	.tpe-cal-day{font-size:.8rem;margin-bottom:2px}
	.tpe-cal-event{font-size:.62rem;padding:2px 3px;margin-top:1px;border-radius:3px}
	.tpe-cal-event-title{font-size:.62rem;line-height:1.15}
	.tpe-cal-event-sub{display:none}
}

.tpe-banner{position:relative;background:#2a2a2a;background-size:cover;background-position:center;color:#fff;padding:80px 24px;margin-bottom:24px;border-radius:8px}
.tpe-banner::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.4);border-radius:8px}
.tpe-banner-inner{position:relative;max-width:900px;margin:0 auto;text-align:center}
.tpe-banner-title{font-size:2.2rem;margin:8px 0;font-weight:700}
.tpe-banner-title a{color:inherit;text-decoration:none}
.tpe-banner-badge{display:inline-block;background:#f1c40f;color:#222;font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:999px;text-transform:uppercase}
.tpe-banner-loc,.tpe-banner-date{margin:4px 0;font-size:1rem;opacity:.92}

.tpe-single{max-width:1100px;margin:0 auto;padding:16px}
.tpe-single-hero{text-align:center;padding:30px 0;border-bottom:1px solid #eee}
.tpe-single-thumb{max-width:100%;border-radius:8px;margin-bottom:16px}
.tpe-single-title{font-size:2rem;margin:0}
.tpe-single-meta,.tpe-single-loc{color:#555;margin:6px 0}
.tpe-action-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;background:#fff;border:1px solid #eee;border-radius:10px;margin:16px 0;flex-wrap:wrap}
.tpe-actions{display:flex;gap:8px;flex-wrap:wrap}
.tpe-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:1px solid #d0d0d0;background:#fff;border-radius:999px;cursor:pointer;font-size:.95rem;text-decoration:none;color:inherit}
.tpe-btn:hover{background:#f5f5f5}
.tpe-btn-primary,.tpe-btn[aria-pressed="true"]{background:#111;color:#fff;border-color:#111}
.tpe-btn-primary:hover{background:#333;color:#fff}
.tpe-single-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px;margin:20px 0}
@media (max-width:800px){.tpe-single-grid{grid-template-columns:1fr}}
.tpe-map{height:320px;border-radius:8px;border:1px solid #eee}
.tpe-map-addr{font-size:.9rem;color:#555;margin-top:8px}
.tpe-discussion{margin-top:30px;padding-top:20px;border-top:1px solid #eee}

.tpe-invite-dialog{position:fixed;inset:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:9999}
.tpe-invite-dialog[hidden]{display:none}
.tpe-invite-modal{background:#fff;border-radius:12px;width:min(640px,94vw);max-height:90vh;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.25);overflow:hidden}
.tpe-invite-head{display:flex;align-items:center;justify-content:center;position:relative;padding:16px 20px;border-bottom:1px solid #e5e7eb}
.tpe-invite-title{margin:0;font-size:18px;font-weight:700;color:#111}
.tpe-invite-close{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;border:0;background:#eef0f3;font-size:20px;line-height:1;cursor:pointer;color:#333}
.tpe-invite-close:hover{background:#e1e4e8}
.tpe-invite-search{padding:12px 20px;border-bottom:1px solid #e5e7eb}
.tpe-invite-search-input{width:100%;padding:10px 14px;border:1px solid #d1d5db;border-radius:999px;background:#f1f3f5;font-size:14px;outline:none}
.tpe-invite-search-input:focus{background:#fff;border-color:#1877f2}
.tpe-invite-body{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(360px,55vh);overflow:hidden}
.tpe-invite-col{overflow-y:auto;padding:12px 16px;min-height:0;min-width:0}
.tpe-invite-col+.tpe-invite-col{border-left:1px solid #e5e7eb;background:#f7f8fa}
.tpe-invite-col-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 10px}
.tpe-invite-col-title{font-weight:700;color:#111}
.tpe-invite-selectall{background:none;border:0;color:#0b3d2e;font-weight:600;cursor:pointer;padding:0}
.tpe-invite-list,.tpe-invite-selected-list{list-style:none;margin:0;padding:0}
.tpe-invite-row{display:flex;align-items:center;gap:12px;padding:8px;border-radius:8px;cursor:pointer}
.tpe-invite-row:hover{background:#f1f3f5}
.tpe-invite-row.is-selected{background:transparent}
.tpe-invite-row.is-selected:hover{background:#f1f3f5}
.tpe-invite-avatar img{border-radius:50%;display:block;width:40px;height:40px;object-fit:cover}
.tpe-invite-name{flex:1;font-weight:600;color:#111;font-size:14px}
.tpe-invite-check{width:20px;height:20px;border-radius:50%;border:2px solid #c5c9cf;flex-shrink:0;position:relative}
.tpe-invite-row.is-selected .tpe-invite-check{background:#1877f2;border-color:#1877f2}
.tpe-invite-row.is-selected .tpe-invite-check::after{content:"";position:absolute;left:50%;top:45%;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:translate(-50%,-50%) rotate(45deg)}
.tpe-invite-empty{padding:20px;color:#777;text-align:center}
.tpe-invite-left-count{font-size:12px;font-weight:700;color:#65676b;padding:6px 8px 10px}
.tpe-invite-selrow{display:flex;align-items:center;gap:12px;padding:8px;border-radius:8px}
.tpe-invite-selrow .tpe-invite-name{font-size:14px}
.tpe-invite-remove{margin-left:auto;background:none;border:0;font-size:18px;color:#65676b;cursor:pointer;width:28px;height:28px;border-radius:50%}
.tpe-invite-remove:hover{background:#e4e6eb;color:#111}
.tpe-invite-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid #e5e7eb;background:#fff}
.tpe-invite-foot-right{display:flex;gap:8px;align-items:center}
.tpe-invite-copy{background:#f3f4f6;border:0;color:#111;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:6px}
.tpe-invite-copy:hover{background:#e5e7eb}
.tpe-invite-cancel{background:none;border:0;color:#0b3d2e;font-weight:600;cursor:pointer;padding:8px 14px;border-radius:6px}
.tpe-invite-cancel:hover{background:rgba(11,61,46,.08)}
.tpe-invite-send{background:#0b3d2e;color:#fff;border:0;font-weight:700;cursor:pointer;padding:10px 18px;border-radius:8px}
.tpe-invite-send:hover:not(:disabled){background:#125843}
.tpe-invite-send:disabled{background:#64baa0;cursor:not-allowed}
@media (max-width:640px){.tpe-invite-body{grid-template-columns:1fr;max-height:50vh}.tpe-invite-col+.tpe-invite-col{border-left:0;border-top:1px solid #e5e7eb}}
.tpe-empty{color:#777;text-align:center;padding:40px}

/* Masthead */
.tpe-masthead{margin-bottom:16px}
.tpe-masthead-video{position:relative;aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden}
.tpe-masthead-video iframe,.tpe-masthead-video video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.tpe-btn-ticket{background:#d23;border-color:#d23;color:#fff}
.tpe-btn-ticket:hover{background:#b22;color:#fff}

/* Gallery */
.tpe-gallery-section{margin:30px 0}
.tpe-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.tpe-gallery-item{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:8px}
.tpe-gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.tpe-gallery-item:hover img{transform:scale(1.05)}

/* Filters + Near me */
.tpe-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tpe-filter-select{padding:8px 12px;border:1px solid #d0d0d0;border-radius:999px;background:#fff;font-size:.9rem}
.tpe-nearme-btn{padding:8px 14px;border:1px solid #d0d0d0;border-radius:999px;background:#fff;cursor:pointer;font-size:.9rem}
.tpe-nearme-btn.is-active{background:#1f3a2e;color:#fff;border-color:#1f3a2e}
.tpe-card-dist{font-size:.8rem;color:#888;margin-top:2px}

/* Lightbox */
.tpe-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;z-index:99999;cursor:zoom-out}
.tpe-lightbox img{max-width:92vw;max-height:92vh;border-radius:4px}
.tpe-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);border:0;color:#fff;width:44px;height:44px;border-radius:50%;font-size:22px;cursor:pointer}
.tpe-lightbox-prev{left:20px}.tpe-lightbox-next{right:20px}
.tpe-lightbox-close{position:absolute;top:20px;right:20px;background:none;border:0;color:#fff;font-size:32px;cursor:pointer}

/* Filter modal (Category filters) */
.tpe-filter-launcher{display:inline-block;margin:0 0 10px}
.tpe-filter-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:99998}
.tpe-filter-modal[hidden]{display:none}
.tpe-filter-card{background:#fff;border-radius:14px;width:min(860px,94vw);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.tpe-filter-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #eee}
.tpe-filter-head h2{margin:0;font-size:36px;line-height: 48px;}
.tpe-filter-close{background:none;border:0;font-size:28px;cursor:pointer;color:#333}
.tpe-filter-body{padding:18px 22px;overflow:auto}
.tpe-filter-group{margin-bottom:18px}
.tpe-filter-group-label{font-size:15px;color:rgb(28, 28, 26);font-weight:500;margin-bottom:12px;}
.tpe-filter-pills{display:flex;flex-wrap:wrap;gap:8px}
.tpe-filter-pills{display:flex;flex-wrap:wrap;gap:8px}
.tpe-pill{display:inline-flex;align-items:center;border:1px solid rgb(38, 76, 66);border-radius:999px;padding:6px 14px;font-size:14px;color:#0b3d2e;cursor:pointer;user-select:none;background:#fff}
.tpe-pill input{display:none}
.tpe-pill.is-on{background:#0b3d2e;color:#fff;border-color:#0b3d2e}
.tpe-pill.is-on span{ color: #fff !important;}
.tpe-pill:hover{border-color:#0b3d2e}
.tpe-filter-foot{display:flex;justify-content:flex-end;align-items:center;gap:18px;padding:14px 22px;border-top:1px solid #eee;background:#fafafa}
.tpe-filter-clear{font-family:'Barlow', sans-serif;background:none;border:0;color:#0b3d2e;font-weight:400;cursor:pointer;text-decoration:none; font-size: 20px;}
.tpe-filter-apply{background:#0b3d2e;color:#fff;border:0;border-radius:200px;padding:10px 24px !important;font-size: 16px; font-weight:400;cursor:pointer}
.tpe-filter-apply:hover{background:#11533f}

/* ---------- Single event redesign (v2) ---------- */
.tpe-single-v2{max-width:none;margin:0;padding:0 0 60px;font-family:inherit}
.tpe-single-v2 > :not(.tpe-v2-hero):not(.tpe-v2-hero-media){max-width:1330px;margin-left:auto;margin-right:auto;box-sizing:border-box}

/* Media hero (video or featured image) */
.tpe-v2-hero.tpe-v2-hero-media,
.tpe-v2-hero-media{position:relative;width:100%;min-height:clamp(340px,48vw,460px);display:flex;align-items:center;justify-content:center;color:#fff;background-color:#111;background-position:center center;background-size:cover;background-repeat:no-repeat;overflow:hidden;margin-bottom:30px;text-decoration:none}
.tpe-v2-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0;pointer-events:none}
.tpe-v2-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15) 0%,rgba(0,0,0,.45) 70%,rgba(0,0,0,.6) 100%);pointer-events:none}
.tpe-v2-hero-inner{position:relative;z-index:2;text-align:center;padding:0 20px;max-width:1080px}
.tpe-v2-hero-title,
.tpe-v2-title{font-size:clamp(22px,2.4vw,34px);font-weight:500;margin:0 0 0px;text-shadow:0 1px 2px rgba(0,0,0,.4);}
.tpe-v2-hero:not(.tpe-v2-hero-media) .tpe-v2-hero-title,
.tpe-v2-hero:not(.tpe-v2-hero-media) .tpe-v2-title,
.tpe-v2-hero:not(.tpe-v2-hero-media) .tpe-v2-hero-loc,
.tpe-v2-hero:not(.tpe-v2-hero-media) .tpe-v2-hero-date,
.tpe-v2-hero:not(.tpe-v2-hero-media) .tpe-v2-sub,
.tpe-v2-hero:not(.tpe-v2-hero-media) .tpe-v2-date{color:#111;text-shadow:none}
.tpe-v2-hero-media .tpe-v2-hero-title,
.tpe-v2-hero-media .tpe-v2-hero-loc,
.tpe-v2-hero-media .tpe-v2-hero-date{color:#fff}
.tpe-v2-hero-loc{font-size:14px;color:#f2f2f2;margin-bottom:4px}
.tpe-v2-hero-date{font-size:14px;color:#f2f2f2}
.tpe-v2-hero-ticket{display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:10px 22px;background:rgb(255,203,165);color:rgb(28,28,26);border-radius:999px;font-weight:400;text-transform:uppercase;text-decoration:none;font-size:16px;transition:background .15s}
.tpe-v2-hero-ticket:hover{background:rgb(255,188,140);color:rgb(28,28,26)}
.tpe-v2-hero-ticket .dashicons{font-size:18px;width:18px;height:18px}
.tpe-v2-hero .tpe-v2-hero-ticket,
.tpe-v2-hero-media .tpe-v2-hero-ticket{color:rgb(28,28,26)}
.tpe-v2-hero-share{position:absolute;right:24px;bottom:24px;z-index:3;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.15);backdrop-filter:blur(6px)}
.tpe-v2-hero-share a{color:#fff;text-decoration:none}
.tpe-v2-hero{text-align:center;margin-bottom:22px;background:rgb(242,242,242);min-height:clamp(260px,32vw,360px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;border-radius:0; text-decoration: none;}
.tpe-v2-sub{font-size:13px;color:#555;margin-bottom:6px}
.tpe-v2-date{font-size:13px;color:#444;text-transform:uppercase}

.tpe-v2-card{background:#f2f2f2;border-radius:0px;padding:24px 24px;display:flex;justify-content:space-between;gap:20px;align-items:stretch;flex-wrap:wrap;margin-bottom:28px}
.tpe-v2-card-info{flex:1 1 100%;max-width:100%;min-width:240px;display: flex; flex-direction: column; gap: 12px;font-size: 20px;}
@media (min-width:901px){
	.tpe-v2-card-info{flex:0 0 calc(60% - 10px);max-width:calc(60% - 10px)}
	.tpe-v2-card.is-logged-in .tpe-v2-card-info{flex:0 0 calc(55% - 10px);max-width:calc(55% - 10px)}
}
.tpe-v2-card-date{font-size:20px;color:#333;margin-bottom:4px}
.tpe-v2-card-venue{font-weight:700;color:#111}
.tpe-v2-card-addr{color:#555;font-size:18px}

.tpe-v2-card-actions{flex:1 1 100%;max-width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}
@media (min-width:901px){
	.tpe-v2-card-actions{flex:0 0 calc(40% - 10px);max-width:calc(40% - 10px);align-items:flex-end;justify-content:flex-end}
	.tpe-v2-card.is-logged-in .tpe-v2-card-actions{flex:0 0 calc(45% - 10px);max-width:calc(45% - 10px)}
}
@media (max-width:680px){
	.tpe-v2-card-info,.tpe-v2-card-actions{flex:1 1 100%;max-width:100%;align-items:flex-start;justify-content:flex-start}
}
.tpe-v2-going-pill{display:flex;align-items:center;gap:8px;font-size:13px;color:#333}
.tpe-v2-going-dots{color:#111}
.tpe-v2-avatars{display:inline-flex;align-items:center}
.tpe-v2-avatar{width:28px;height:28px;border-radius:50%;border:2px solid #fff;margin-left:-8px;display:inline-flex;align-items:center;justify-content:center;background:#e5e5e5;overflow:hidden;font-size:11px;font-weight:700;color:#333}
.tpe-v2-avatar:first-child{margin-left:0}
.tpe-v2-avatars img,.tpe-v2-avatars img.avatar,.tpe-v2-avatars img.um-avatar{width:28px!important;height:28px!important;object-fit:cover;border-radius:50%!important;border:2px solid #fff;margin-left:-8px;background:#e5e5e5;padding:0;box-shadow:none}
.tpe-v2-avatars img:first-child{margin-left:0}
.tpe-v2-avatar-more{background:#0b3d2e;color:#fff}

/* RSVP dropdown */
.tpe-rsvp-dd{position:relative;display:inline-block}
.tpe-rsvp-toggle{display:inline-flex;align-items:center;gap:8px}
.tpe-rsvp-cur-ico{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#fff;color:#0b3d2e;font-size:12px;font-weight:700}
.tpe-rsvp-caret{font-size:10px;opacity:.8}
.tpe-v2-btn-outline{background:#eef0ef;border-color:transparent;color:#0b0b0b}
.tpe-v2-btn-outline:hover{background:#e4e7e6}
.tpe-rsvp-ico-outline{background:transparent;color:#0b0b0b;width:18px;height:18px;font-size:15px;font-weight:400}
.tpe-rsvp-dd{z-index:1200}
.tpe-rsvp-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:280px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.12);padding:8px;z-index:1200}
/* Leaflet panes default to z-index:400; keep them below the dropdown */
.tpe-v2-card,.tpe-v2-card-actions{position:relative;z-index:1100}
.tpe-rsvp-menu[hidden]{display:none}
.tpe-rsvp-opt{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;background:none;border:0;border-radius:8px;cursor:pointer;text-align:left;color:#0b0b0b;font-size:15px}
.tpe-rsvp-opt:hover{background:#f4f6f5}
.tpe-rsvp-opt-ico{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#eceeed;font-size:16px;flex:0 0 34px}
.tpe-rsvp-opt-label{flex:1}
.tpe-rsvp-radio{width:20px;height:20px;border-radius:50%;border:2px solid #c0c4c2;flex:0 0 20px}
.tpe-rsvp-opt[aria-checked="true"]{color:#0b3d2e;font-weight:600}
.tpe-rsvp-opt[aria-checked="true"] .tpe-rsvp-opt-ico{background:#0b3d2e;color:#fff}
.tpe-rsvp-opt[aria-checked="true"] .tpe-rsvp-radio{border-color:#0b3d2e;background:radial-gradient(circle,#0b3d2e 50%,#fff 52%)}
.tpe-v2-cal-dd{position:relative;display:inline-block;z-index:1150}
.tpe-v2-cal-dd>summary{list-style:none;cursor:pointer}
.tpe-v2-cal-dd>summary::-webkit-details-marker{display:none}
.tpe-v2-cal-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:220px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.12);padding:6px;display:flex;flex-direction:column;z-index:1200}
.tpe-v2-cal-opt{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#0b0b0b;text-decoration:none;font-size:14px}
.tpe-v2-cal-opt:hover{background:#f4f6f5;color:#0b0b0b}
.tpe-v2-cal-opt .dashicons{font-size:18px;width:18px;height:18px}
.tpe-v2-cal-opt-btn{background:none;border:0;width:100%;text-align:left;cursor:pointer;font-family:inherit}
.tpe-v2-cal-opt-btn:disabled{opacity:.6;cursor:wait}
.tpe-v2-cal-opt.is-added .dashicons{color:#0b3d2e}
.tpe-v2-cal-opt.is-added{background:#eaf2ed}
.tpe-v2-cal-ico{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:#111}
.tpe-v2-cal-ico svg{width:16px;height:16px;display:block}
.tpe-ico-apple{color:#111}

/* Turnpike Calendar (user) page */
.tpe-user-calendar-page{max-width:1100px;margin:0 auto;padding:24px 16px}
.tpe-user-cal-wrap .tpe-toolbar{justify-content:flex-start;margin-bottom:16px}
.tpe-user-cal-title{margin:0;font-size:clamp(22px,2.4vw,32px);font-weight:500;color:rgb(28,28,26);text-transform:uppercase}

/* Toasts */
.tpe-toast-host{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:10px;z-index:100000;pointer-events:none}
.tpe-toast{display:flex;align-items:center;gap:10px;min-width:240px;max-width:360px;padding:12px 16px;border-radius:10px;background:#0b3d2e;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);font-size:14px;transform:translateY(14px);opacity:0;transition:opacity .25s ease,transform .25s ease;pointer-events:auto}
.tpe-toast.is-show{opacity:1;transform:translateY(0)}
.tpe-toast-ico{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.2);font-weight:700;font-size:13px}
.tpe-toast-error{background:#b3261e}
.tpe-v2-going-num{font-weight:600}

.tpe-v2-btn-row{display:flex;gap:8px;flex-wrap:wrap}
.tpe-v2-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 18px;border-radius:999px;background:#fff;border:1px solid #d6d9d8;color:#0b0b0b;font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;line-height:1; gap: 4px;}
.tpe-v2-btn:hover{border-color:#0b3d2e}
.tpe-v2-btn-primary,.tpe-v2-btn[aria-pressed="true"]{background:#264c42;color:#fff;border-color:#264c42}
.tpe-v2-btn-primary:hover{background:#11533f;color:#fff}

.tpe-v2-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:32px}
@media (max-width:1080px){.tpe-v2-grid,.tpe-v2-body,.tpe-v2-discussion{padding-left:20px;padding-right:20px}}
@media (max-width:640px){.tpe-v2-grid,.tpe-v2-body,.tpe-v2-discussion{padding-left:16px;padding-right:16px}}
@media (max-width:800px){.tpe-v2-grid{grid-template-columns:1fr}}
.tpe-v2-colhead{font-size:40px;font-weight:400;color:rgb(28, 28, 26);margin:0 0 10px;text-transform:uppercase}
.tpe-v2-details{font-size:14px;line-height:1.65;color:#222}
.tpe-v2-description p{margin:0 0 10px; padding-bottom: 0px; font-size:20px;}
.tpe-collapsible{position:relative}
.tpe-collapsible .tpe-collapsible-inner{overflow:hidden;transition:max-height .25s ease}
.tpe-collapsible.is-collapsed .tpe-collapsible-inner{max-height:320px;-webkit-mask-image:linear-gradient(180deg,#000 75%,transparent);mask-image:linear-gradient(180deg,#000 75%,transparent)}
.tpe-collapsible-toggle{display:inline-block;margin-top:8px;background:none;border:0;padding:0;font-size:13px;font-weight:700;color:#0b3d2e;cursor:pointer;text-decoration:underline}
.tpe-collapsible-toggle:hover{color:#11533f}
.tpe-collapsible.tpe-no-overflow .tpe-collapsible-toggle{display:none}
.tpe-v2-location .tpe-map{width:100%;height:320px;border-radius:8px;overflow:hidden}
.tpe-map-popup strong{display:block;font-size:14px;color:#111;margin-bottom:4px}
.tpe-map-popup-addr{font-size:12px;color:#555;line-height:1.4}

.tpe-v2-body{margin:0 0 40px}
.tpe-v2-discussion .comment-wrap{padding-top:0px !important;}

/* Comments — redesigned */
.tpe-v2-commentform{margin-top:10px}
.tpe-v2-commentform p{margin:0 0 4px}
.tpe-v2-commentform textarea{width:100%;min-height:140px;padding:14px 16px;border:1px solid #d6d9d8;border-radius:10px;font-size:14px;line-height:1.5;resize:vertical;background:#fff;font-family:inherit;box-sizing:border-box}
.tpe-v2-commentform .tpe-v2-commentfield,
.tpe-v2-commentform .comment-form-comment{min-width:0}
.tpe-v2-commentform textarea:focus{outline:none;border-color:#0b3d2e;box-shadow:0 0 0 2px rgba(11,61,46,.12)}
.tpe-v2-commentform .form-submit{display:flex;justify-content:center;margin:18px 0 0}
.tpe-v2-commentform input[type=submit]{background:#0b3d2e;color:#fff;border:0;border-radius:999px;padding:10px 26px;font-weight:600;cursor:pointer}
.tpe-v2-commentform input[type=submit]:hover{background:#11533f}
.tpe-v2-comments{list-style:none;margin:20px 0;padding:0}
.tpe-v2-comments .comment{border-bottom:1px solid #eee;padding:14px 0}
.tpe-v2-comments .comment:last-child{border-bottom:0}

/* Comment author fields — 3 column layout */
.tpe-v2-commentform{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;width:100%}
.tpe-v2-commentform > *{grid-column:1 / -1;margin:0}
.tpe-v2-commentform .comment-form-author{grid-column:1 / 2}
.tpe-v2-commentform .comment-form-email{grid-column:2 / 3}
.tpe-v2-commentform .comment-form-url{grid-column:3 / 4}
.tpe-v2-commentform .comment-form-author label,
.tpe-v2-commentform .comment-form-email label,
.tpe-v2-commentform .comment-form-url label{display:block;font-size:14px;font-weight:500;margin-bottom:6px;color:#111}
.tpe-v2-commentform .comment-form-author input,
.tpe-v2-commentform .comment-form-email input,
.tpe-v2-commentform .comment-form-url input{width:100%;padding:14px 16px;border:1px solid #d6d9d8;border-radius:10px;font-size:14px;background:#fff;font-family:inherit;min-height:60px;box-sizing:border-box}
.tpe-v2-commentform .comment-form-author input:focus,
.tpe-v2-commentform .comment-form-email input:focus,
.tpe-v2-commentform .comment-form-url input:focus{outline:none;border-color:#0b3d2e;box-shadow:0 0 0 2px rgba(11,61,46,.12)}
.tpe-v2-commentform .comment-form-cookies-consent{margin:6px 0 0;font-size:14px;color:#333}
@media (max-width:680px){
	.tpe-v2-commentform{grid-template-columns:1fr}
	.tpe-v2-commentform .comment-form-author,
	.tpe-v2-commentform .comment-form-email,
	.tpe-v2-commentform .comment-form-url{grid-column:1 / -1}
	.tpe-v2-colhead{font-size:32px}
	.tpe-v2-title{font-size:36px}
}

/* Monthly events list */
.tpe-month-wrap{max-width:1080px;margin:0 auto;padding:20px 0 40px;}
.tpe-month-picker{position:relative;display:flex;justify-content:center;margin:10px 0 28px}
.tpe-month-label{position:relative;display:inline-flex;align-items:center;gap:8px;font-size:20px;font-weight:700;color:#111;cursor:pointer;padding:8px 10px;background:none;border:0}
.tpe-month-caret{font-size:16px;color:#111}
.tpe-month-popover{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:6px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.12);padding:10px;z-index:200}
.tpe-month-popover[hidden]{display:none}
.tpe-mp{width:260px}
.tpe-mp-head{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 10px}
.tpe-mp-year{font-weight:700;font-size:15px;color:#0b3d2e}
.tpe-mp-nav{background:none;border:0;font-size:20px;line-height:1;cursor:pointer;color:#0b3d2e;padding:2px 10px;border-radius:6px}
.tpe-mp-nav:hover{background:#f2f7f5}
.tpe-mp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tpe-mp-month{background:#fff;border:1px solid transparent;border-radius:8px;padding:10px 0;font-size:13px;color:#0b3d2e;cursor:pointer}
.tpe-mp-month:hover{background:#f2f7f5}
.tpe-mp-month.is-on{background:#0b3d2e;color:#fff}
.tpe-month-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:700px){.tpe-month-grid{grid-template-columns:1fr;gap:22px}}
.tpe-month-card{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center;text-decoration:none;color:inherit}
.tpe-month-thumb{width:180px;aspect-ratio:4/3;background:#dcdcdc;overflow:hidden}
.tpe-month-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tpe-month-body{padding-top:4px}
.tpe-month-card-title{font-size:20px;font-weight:500;margin:0 0 6px;color:#111;line-height:28px;}
.tpe-month-loc{font-size:14px;color:#444;margin:0 0 4px; padding:0px;}
.tpe-month-date{font-size:14px;color:#555;margin:0; padding:0px;}
.tpe-month-card:hover .tpe-month-card-title{color:#0b3d2e}

/* Banner hero link — reuses single event hero classes */
a.tpe-v2-hero-media{text-decoration:none;color:#fff}
a.tpe-v2-hero-media:hover .tpe-v2-hero-title{text-decoration:underline}

/* Hide theme-injected post tags/categories on single event pages */
.single-tp_event .post-tags{display:none !important}

/* Hide PublishPress Authors boxes on single event pages */
.single-tp_event .pp-multiple-authors-boxes-wrapper{display:none !important}

/* Shrink Google Maps InfoWindow close button (48px → 32px) */
.tpe-map .gm-ui-hover-effect{width:32px !important;height:32px !important;top:0 !important;right:0 !important}
.tpe-map .gm-ui-hover-effect > span{width:16px !important;height:16px !important;margin:8px !important}

/* Verified event badge */
.tpe-verified-badge{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:8px;line-height:0;position:relative}
.tpe-verified-badge img{width:1em;height:1em;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.18));position:relative;z-index:1}
.tpe-verified-badge--hero img{width:.85em;height:.85em}
.tpe-verified-badge--card img{width:22px;height:22px}
.tpe-verified-badge--hero::before{content:"";position:absolute;inset:22%;background:#fff;border-radius:50%;z-index:0}

/* Relevant Articles */
.tpe-v2-related{margin:30px auto 40px;max-width:1280px;padding:0 0px}
.tpe-v2-related .tpe-v2-colhead{margin:0 0 20px;font-size:40px;font-weight:600;}
.tpe-v2-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,325px));gap:18px;justify-content:center}
@media(max-width:1380px){.tpe-v2-related-grid{grid-template-columns:repeat(3,minmax(0,325px))}}
@media(max-width:1040px){.tpe-v2-related-grid{grid-template-columns:repeat(2,minmax(0,325px))}}
@media(max-width:700px){.tpe-v2-related-grid{grid-template-columns:minmax(0,325px)}}
.tpe-v2-related-grid .nectar-post-grid-item{position:relative;aspect-ratio:325/400;overflow:hidden;border-radius:6px;background:#111;color:#fff;isolation:isolate}
.tpe-v2-related-grid .nectar-post-grid-item .inner,
.tpe-v2-related-grid .nectar-post-grid-item-bg-wrap,
.tpe-v2-related-grid .nectar-post-grid-item-bg-wrap-inner,
.tpe-v2-related-grid .nectar-post-grid-item-bg{position:absolute;inset:0}
.tpe-v2-related-grid .nectar-post-grid-item-bg img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.tpe-v2-related-grid .nectar-post-grid-item:hover .nectar-post-grid-item-bg img{transform:scale(1.04)}
.tpe-v2-related-grid .bg-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,.55) 70%,rgba(0,0,0,.85) 100%);pointer-events:none;z-index:1}
.tpe-v2-related-grid .content{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;padding:35px}
.tpe-v2-related-grid .nectar-post-grid-link{position:absolute;inset:0;z-index:3;text-indent:-9999px}
.tpe-v2-related-grid .item-main{position:relative;z-index:2;color:#fff}
.tpe-v2-related-grid .post-heading{margin:0 0 12px;font-size:18px;line-height:1.25;font-weight:600;color:#fff;text-transform:uppercase}
.tpe-v2-related-grid .post-heading a{color:#fff;text-decoration:none; font-size: 24px; font-weight: 400; line-height: 26px;}
.tpe-v2-related-grid .post-heading a span{display:inline;background-image:linear-gradient(#fff,#fff);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .3s ease}
.tpe-v2-related-grid .nectar-post-grid-item:hover .post-heading a span{background-size:100% 1px}
.tpe-v2-related-grid .nectar-post-grid-item__meta-wrap{display:flex;align-items:center;gap:10px;font-size:12px;color:rgba(255,255,255,.85)}
.tpe-v2-related-grid .meta-author{display:inline-flex;align-items:center;gap:8px;position:relative;z-index:4}
.tpe-v2-related-grid .meta-author img{width:24px;height:24px;border-radius:50%;display:block}
.tpe-v2-related-grid .meta-author-name{color:#fff;text-decoration:none}
.tpe-v2-related-grid .meta-date::before{content:"·";margin-right:8px;opacity:.7}
.tpe-v2-related-grid .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
