/**
 * Retreat landing page, cards, and filters.
 *
 * Tokens come from the site's Elementor kit (post 9) so the plugin speaks the
 * same design language as every other page: deep petrol #005468 and gold
 * #E5B603 on warm cream #FAF7F0, Georgia display over Jost body, 30px pill
 * buttons, 5px cards. Each var() references the kit's own custom property with
 * the kit's current value as fallback, so a future rebrand in Elementor
 * carries into these pages without touching this file.
 */

.edgr-retreat,
.edgr-cards,
.edgr-filters {
	--edgr-ink: var(--e-global-color-4033fe7, #005468);
	--edgr-gold: var(--e-global-color-521a2d3, #E5B603);
	--edgr-cream: var(--e-global-color-0ba02ec, #FAF7F0);
	--edgr-cream-soft: var(--e-global-color-3c41969, rgba(250, 247, 240, .73));
	--edgr-hairline: var(--e-global-color-2c6c15e, rgba(147, 209, 206, .49));
	--edgr-teal-deep: #175F70;
	--edgr-scrim: rgba(0, 26, 32, .55);
	--edgr-body-ink: #2A4A52;

	--edgr-serif: Georgia, "Times New Roman", serif;
	--edgr-sans: Jost, "Helvetica Neue", Arial, sans-serif;
}

.edgr-retreat {
	background: var(--edgr-cream);
	color: var(--edgr-body-ink);
	font-family: var(--edgr-sans);
	font-size: 1.05rem;
	letter-spacing: .3px;
	line-height: 1.7;
}

.edgr-retreat * { box-sizing: border-box; }

.edgr-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Serif display: regular weight always, scaled by size and color, never bolded. */
.edgr-retreat h1,
.edgr-retreat h2 {
	font-family: var(--edgr-serif);
	font-weight: 400;
	color: var(--edgr-ink);
}

/* Small uppercase labels are Jost's job. */
.edgr-eyebrow,
.edgr-fact h2,
.edgr-agenda-time,
.edgr-card-dates,
.edgr-cd-label,
.edgr-sponsor-label {
	font-family: var(--edgr-sans);
	font-weight: 400;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
}

/* ---------- hero ---------- */

.edgr-hero {
	position: relative;
	min-height: 64vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: var(--edgr-teal-deep) center / cover no-repeat;
	padding: 96px 24px;
}

.edgr-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 26, 32, .25), var(--edgr-scrim));
}

.edgr-hero-inner { position: relative; z-index: 1; max-width: 840px; }

.edgr-hero h1 {
	margin: 0 0 16px;
	font-size: clamp(34px, 5.5vw, 72px);
	line-height: 1.1;
	color: var(--edgr-cream);
	text-shadow: 0 2px 24px rgba(0, 26, 32, .45);
}

.edgr-hero-tagline {
	margin: 0 0 30px;
	font-family: var(--edgr-sans);
	font-size: 13px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--edgr-cream-soft);
}

/* ---------- buttons: one pattern, everywhere ---------- */

.edgr-cta-btn {
	display: inline-block;
	padding: 15px 38px;
	background: var(--edgr-ink);
	color: var(--edgr-cream);
	text-decoration: none;
	font-family: var(--edgr-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	border: 0;
	border-radius: 30px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.edgr-cta-btn:hover,
.edgr-cta-btn:focus-visible {
	background: var(--edgr-gold);
	color: var(--edgr-ink);
}

.edgr-cta-btn.is-disabled { opacity: .55; pointer-events: none; }

/* On teal grounds the same pill inverts to cream. */
.edgr-cta-light { background: var(--edgr-cream); color: var(--edgr-ink); }
.edgr-cta-light:hover,
.edgr-cta-light:focus-visible { background: var(--edgr-gold); color: var(--edgr-ink); }

/* ---------- intro ---------- */

.edgr-intro { padding: 88px 0; }

.edgr-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

@media (max-width: 820px) {
	.edgr-intro-grid { grid-template-columns: 1fr; gap: 40px; }
}

.edgr-intro-copy { max-width: 62ch; }
.edgr-intro-copy p { margin: 0 0 18px; }

.edgr-facts { display: grid; gap: 26px; }

.edgr-fact h2 {
	margin: 0 0 6px;
	color: var(--edgr-ink);
	opacity: .75;
}

.edgr-fact p { margin: 0; font-size: 16px; color: var(--edgr-ink); }

/* ---------- image bands ---------- */

.edgr-band { line-height: 0; }
.edgr-band img { width: 100%; height: clamp(200px, 28vw, 380px); object-fit: cover; display: block; }

/* ---------- schedule ---------- */

.edgr-schedule { padding: 88px 0 72px; }

.edgr-day + .edgr-day { margin-top: 72px; }

.edgr-day-title {
	margin: 0 0 26px;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.15;
}

.edgr-day-date {
	font-family: var(--edgr-sans);
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--edgr-body-ink);
	margin-left: 14px;
	opacity: .8;
}

.edgr-agenda { list-style: none; margin: 0; padding: 0; }

.edgr-agenda-item {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 30px;
	padding: 20px 0;
	border-top: 1px solid var(--edgr-hairline);
}

.edgr-agenda-item:last-child { border-bottom: 1px solid var(--edgr-hairline); }

@media (max-width: 700px) {
	.edgr-agenda-item { grid-template-columns: 1fr; gap: 6px; }
}

.edgr-agenda-time {
	color: var(--edgr-ink);
	padding-top: 4px;
	line-height: 1.7;
}

.edgr-agenda-body h3 {
	margin: 0 0 6px;
	font-family: var(--edgr-sans);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: .02em;
	color: var(--edgr-ink);
}

.edgr-agenda-body p {
	margin: 0;
	font-size: 15px;
	max-width: 68ch;
}

/* ---------- countdown ---------- */

.edgr-countdown { padding: 40px 0 72px; }

.edgr-countdown-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.edgr-cd-num {
	display: block;
	font-family: var(--edgr-sans);
	font-weight: 300;
	font-size: clamp(30px, 5vw, 48px);
	font-variant-numeric: tabular-nums;
	color: var(--edgr-ink);
}

.edgr-cd-label {
	display: block;
	margin-top: 6px;
	color: var(--edgr-body-ink);
	opacity: .75;
}

/* ---------- venue ---------- */

.edgr-venue { padding: 72px 0 88px; }

.edgr-venue-title {
	margin: 0 0 10px;
	font-size: clamp(26px, 3vw, 40px);
}

.edgr-address {
	font-style: normal;
	margin: 0 0 26px;
	font-size: 15px;
}

.edgr-map {
	position: relative;
	aspect-ratio: 16 / 7;
	background: var(--edgr-teal-deep);
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid var(--edgr-hairline);
}

.edgr-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- closing call-to-action ---------- */

.edgr-closing {
	background: var(--edgr-ink);
	text-align: center;
	padding: 88px 0;
}

.edgr-closing h2 {
	margin: 0 0 10px;
	font-size: clamp(28px, 3.4vw, 44px);
	color: var(--edgr-cream);
}

.edgr-closing p {
	margin: 0 0 32px;
	color: var(--edgr-cream-soft);
}

.edgr-closed-note { margin: 0; color: var(--edgr-cream-soft); }

/* ---------- sponsor ---------- */

.edgr-sponsor { text-align: center; padding: 52px 24px; background: var(--edgr-cream); }

.edgr-sponsor-label { display: block; margin: 0 0 14px; color: var(--edgr-body-ink); opacity: .75; }
.edgr-sponsor img { max-width: 190px; height: auto; }
.edgr-sponsor-name { font-family: var(--edgr-serif); font-size: 22px; color: var(--edgr-ink); }

@media (prefers-reduced-motion: reduce) {
	.edgr-cta-btn { transition: none; }
}

/* ===========================================================================
 * Retreat cards ([edgr_retreats])
 * ======================================================================== */

.edgr-cards {
	display: grid;
	gap: 30px;
	font-family: var(--edgr-sans);
	color: var(--edgr-body-ink);
}

.edgr-cards * { box-sizing: border-box; }

.edgr-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edgr-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edgr-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
	.edgr-cols-3, .edgr-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
	.edgr-cards { grid-template-columns: 1fr !important; }
}

.edgr-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid var(--edgr-hairline);
	border-radius: 5px;
	overflow: hidden;
}

.edgr-card-media { display: block; line-height: 0; background: var(--edgr-teal-deep); }

.edgr-card-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.edgr-card:hover .edgr-card-media img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
	.edgr-card-media img { transition: none; }
	.edgr-card:hover .edgr-card-media img { transform: none; }
}

.edgr-card-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: linear-gradient(150deg, var(--edgr-teal-deep), var(--edgr-ink));
}

.edgr-card-body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 22px 24px 24px;
	flex: 1;
}

.edgr-card-dates { margin: 0; color: var(--edgr-ink); font-weight: 600; }

.edgr-card-title {
	margin: 2px 0 0;
	font-family: var(--edgr-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.2;
}

.edgr-card-title a { color: var(--edgr-ink); text-decoration: none; }
.edgr-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.edgr-card-host,
.edgr-card-location { margin: 0; font-size: 14px; }

.edgr-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
}

.edgr-card-price { font-size: 15px; font-weight: 600; color: var(--edgr-ink); }

.edgr-card-btn {
	display: inline-block;
	padding: 10px 24px;
	background: var(--edgr-ink);
	color: var(--edgr-cream);
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	border-radius: 30px;
	white-space: nowrap;
	transition: background .18s ease, color .18s ease;
}

.edgr-card-btn:hover,
.edgr-card-btn:focus-visible { background: var(--edgr-gold); color: var(--edgr-ink); }

.edgr-card-btn-quiet {
	background: transparent;
	color: var(--edgr-ink);
	border: 1px solid var(--edgr-ink);
}

.edgr-card-btn-quiet:hover,
.edgr-card-btn-quiet:focus-visible {
	background: var(--edgr-ink);
	color: var(--edgr-cream);
	border-color: var(--edgr-ink);
}

.edgr-card-left { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--edgr-ink); }
.edgr-card-soldout { opacity: .6; }

.edgr-empty { margin: 0; font-family: var(--edgr-sans, sans-serif); color: #2A4A52; }

/* ===========================================================================
 * Filters (replaces Filter Everything)
 * ======================================================================== */

.edgr-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	margin: 0 0 32px;
	padding: 20px 24px;
	background: #FFFFFF;
	border: 1px solid var(--edgr-hairline);
	border-radius: 5px;
	font-family: var(--edgr-sans);
}

.edgr-filter { display: flex; flex-direction: column; gap: 6px; min-width: 170px; flex: 1 1 170px; }

.edgr-filter > span {
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--edgr-ink);
	opacity: .75;
}

.edgr-filter select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--edgr-hairline);
	border-radius: 5px;
	background: #FFFFFF;
	font-family: var(--edgr-sans);
	font-size: 14px;
	color: var(--edgr-ink);
}

.edgr-filter select:focus-visible { outline: 2px solid var(--edgr-ink); outline-offset: 1px; }

.edgr-filter-btn {
	padding: 11px 28px;
	border: 0;
	border-radius: 30px;
	background: var(--edgr-ink);
	color: var(--edgr-cream);
	font-family: var(--edgr-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.edgr-filter-btn:hover,
.edgr-filter-btn:focus-visible { background: var(--edgr-gold); color: var(--edgr-ink); }

.edgr-filter-clear {
	font-size: 13px;
	color: #2A4A52;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-bottom: 11px;
}

.edgr-filter-count { width: 100%; margin: 0; font-size: 13px; color: #2A4A52; }

@media (max-width: 620px) {
	.edgr-filter { flex: 1 1 100%; }
}

/* ---------- filter bar layout ---------- */

.edgr-filters {
	display: block;          /* two stacked rows, not one crowded line */
	padding: 20px 22px 18px;
}

.edgr-filter-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
}

/* ---------- Retreat Type: toggle pills ---------- */

.edgr-typerow {
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--edgr-hairline);
}

.edgr-filter-label {
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--edgr-ink);
	opacity: .75;
}

.edgr-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.edgr-chip { display: inline-flex; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* The real checkbox stays in the accessibility tree and keeps keyboard
   support; only its default box is hidden. The pill itself is the span, so
   the checked state can be expressed with a sibling selector rather than
   :has() -- which means it lights up on click with no JavaScript, and works
   in older browsers too. */
.edgr-chip input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.edgr-chip > span {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--edgr-hairline);
	border-radius: 30px;
	background: #FFFFFF;
	color: var(--edgr-ink);
	font-size: 13px;
	line-height: 1.4;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.edgr-chip:hover > span { border-color: var(--edgr-ink); }

.edgr-chip.is-on > span,
.edgr-chip input:checked + span {
	background: var(--edgr-ink);
	border-color: var(--edgr-ink);
	color: var(--edgr-cream);
}

.edgr-chip.is-on:hover > span,
.edgr-chip input:checked + span:hover { background: var(--edgr-teal-deep); }

.edgr-chip input:focus-visible + span {
	outline: 2px solid var(--edgr-ink);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.edgr-chip > span { transition: none; }
}

@media (max-width: 620px) {
	.edgr-filters { padding: 16px 16px 14px; }
	.edgr-chip > span { font-size: 12.5px; padding: 7px 14px; }
}

/* Once the filters submit on click, the button is redundant. It stays visible
   without JavaScript so the form is still usable. */
.edgr-filters.is-live .edgr-filter-btn { display: none; }
.edgr-filters.is-busy { opacity: .6; pointer-events: none; }

/* ---------- Year filter ---------- */

.edgr-filter-year { flex: 0 1 140px; min-width: 120px; }

/* ---------- Completed retreats ---------- */

.edgr-card-past {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--edgr-body-ink);
	opacity: .7;
}

/* ---------- Artist social links on cards ---------- */

.edgr-card-social {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 2px 0 0;
	padding: 0;
}

.edgr-card-social li { margin: 0; padding: 0; }

/* 40px targets: comfortable on a phone, and generous enough that a tap
   never lands on the card's own links underneath. */
.edgr-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--edgr-hairline);
	border-radius: 50%;
	color: var(--edgr-ink);
	background: #FFFFFF;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.edgr-social:hover,
.edgr-social:focus-visible {
	background: var(--edgr-ink);
	border-color: var(--edgr-ink);
	color: var(--edgr-cream);
}

.edgr-social:focus-visible { outline: 2px solid var(--edgr-ink); outline-offset: 2px; }
.edgr-social svg { display: block; }

@media (prefers-reduced-motion: reduce) {
	.edgr-social { transition: none; }
}
