/* --------------------------------------------------------------------------
   Elementor compatibility

   Pages rebuilt in Elementor carry the theme's OWN class names, so the theme's
   stylesheets do the styling and the rebuild cannot drift from the live design.
   Measured on the Learn facts band: attaching .facts-band and .fact alone
   reproduced flex-direction, gap, background, colour, typography, max-widths
   and even the `.fact + .fact` adjacent-sibling border, with zero per-element
   styles.

   WHAT DOES NOT SURVIVE, and why this file exists:

   Every Elementor atomic element writes its own `default_styles` into a
   per-element rule (`.elementor .e-xxxxxxx-xxxx`), which has higher specificity
   than a single theme class. That set is:

       position, width, min-width, padding, margin, display  (+ flex-direction
       and gap on the flex/grid containers)

   A second, separate trap: a text widget's sanitiser strips CLASS attributes
   from inline HTML, so markup arriving from a shortcode loses its hooks.
   Those get targeted structurally instead - see .explore-menu below.

   Anything in that list loses; everything else wins. So `flex-direction`, `gap`
   and `align-items` come through from the theme untouched, while `display`,
   `position`, `overflow`, `flex`, `min-width`, `width` and `padding` have to be
   restated here at `.elementor` specificity.

   Each rule below restores the theme's own value and cites the line it comes
   from, so a future change to the theme rule is easy to mirror.

   IMPORTANT: a rule here outranks the theme's own media-query rules too, so
   anything the theme RESETS at 960px must be reset here as well. Restoring
   .learn-intro__main's 96px margin without its mobile reset silently broke
   the mobile layout while desktop looked perfect.

   Scope: loaded ONLY on pages built with Elementor (pp_elementor_compat_css in
   inc/elementor.php), so pages still rendering from PHP templates are untouched.
   -------------------------------------------------------------------------- */

/* --- shared ------------------------------------------------------------- */

.elementor .section-head { padding: 0; }

/* --- hero (shared by the sub-pages) ------------------------------------- */

/* styles.css:1011-1019 + :1033-1044 */
.elementor .hero {
	position: relative;
	overflow: hidden;
	display: flex;
}
.elementor .hero--sub {
	padding: 0 48px 44px;
	width: 100%;
}
/* styles.css:1020 — the image wrapper is the positioned box the scrim fills */
.elementor .hero__img {
	position: absolute;
	inset: 0;
	overflow: hidden;
	width: auto;
	min-width: 0;
	padding: 0;
	display: block;
}
.elementor .hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* the real element standing in for .hero__img::after */
.elementor .hero-scrim {
	position: absolute;
	inset: 0;
	width: auto;
	min-width: 0;
	padding: 0;
}
.elementor .hero__title,
.elementor .hero-intro { position: relative; z-index: 1; }

/* --- Learn -------------------------------------------------------------- */

/* styles.css:1063 — padding-inline from v4.css:286, --pp-pad-x 48px */
.elementor .learn-intro {
	display: flex;
	width: 100%;
	padding-block: 64px;
	padding-inline: max(48px, calc((100% - 1200px) / 2));
}
/* styles.css:1064 — the 96px margin is what offsets the copy column from the
   centred 1200px track; losing it shifts the whole band left. */
.elementor .learn-intro__main {
	display: flex;
	max-width: 620px;
	width: auto;
	min-width: 0;
	padding: 0;
	margin-left: 96px;
}
/* styles.css:1067 */
.elementor .explore-menu {
	display: flex;
	min-width: 200px;
	width: auto;
	padding: 40px 0 0;
}
/* The shortcode's links arrive inside one text widget, so let them lay out as
   the nav's own children rather than as a single block. */
.elementor .explore-menu > span { display: contents; }
/* styles.css:1068 — .explore-menu .label. The sanitiser strips class="label",
   so it is targeted by position: it is always the first child. */
.elementor .explore-menu > span > span:first-child {
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* styles.css:1072 — --pp-pad-x is 24px for this band */
.elementor .facts-band {
	display: flex;
	width: 100%;
	padding-block: 56px;
	padding-inline: max(24px, calc((100% - 1200px) / 2));
}
/* styles.css:1073 */
.elementor .facts-band .fact {
	display: flex;
	flex: 1 0 0;
	min-width: 1px;
	width: auto;
	padding: 0 40px;
}

/* styles.css:1090 */
.elementor .event-cards--wide {
	width: 100%;
	padding: 24px 0;
}
/* styles.css:1091 */
.elementor .event-row {
	display: flex;
	width: 100%;
	padding-block: 40px;
	padding-inline: max(48px, calc((100% - 1200px) / 2));
}
/* styles.css:1093-1094 — the image column drives the row height, uncropped */
.elementor .event-card__img {
	flex: 1 1 55%;
	min-width: 1px;
	width: auto;
	padding: 0;
	display: block;
}
.elementor .event-card__img img {
	width: 100%;
	height: auto;
}
/* styles.css:1095 */
.elementor .event-card__text {
	display: flex;
	flex: 1 1 38%;
	min-width: 1px;
	width: auto;
	padding: 0;
}

@media (max-width: 960px) {
	/* styles.css:1050 — side padding stays 48px; --section-pad-sm is a legacy
	   token and is NOT among those redefined at 960px. */
	.elementor .hero--sub { padding: 0 48px 32px; }

	/* styles.css:1082 — the copy column loses its offset once the band stacks. */
	.elementor .learn-intro__main { margin-left: 0; }

	/* styles.css:1083-1084 — facts 2 and 3 gain a 32px top offset when the band
	   stacks and the rule moves from the left edge to the top. */
	.elementor .facts-band .fact + .fact { padding: 32px 40px 0; }
}

/* --- Policies ----------------------------------------------------------- */

/* v4.css:210 + :291 — the content column */
.elementor .vg-wrap {
	width: 100%;
	max-width: calc(var(--content-max) + 2 * var(--page-margin));
	margin: 0 auto;
	padding: 0 var(--page-margin);
}
/* v4.css:224 — top padding only; the <hr> provides the gap to the next band */
.elementor .vg-title { width: 100%; padding: var(--section-pad) 0 0; }
/* the <hr>, which Elementor cannot emit as a real <hr> */
.elementor .vg-rule {
	width: 100%;
	height: 0;
	padding: 0;
	/* the live <hr> clears the title block by a full section pad before its
	   0.5em user-agent bottom margin */
	margin: var(--section-pad) 0 0.5em;
	border-style: solid;
	border-color: rgba(109, 127, 137, 0.4);
	border-width: 1px 0 0 0;
}
/* v4.css:211 */
.elementor .vg-section { width: 100%; padding: var(--section-pad) 0; }

/* The loop wraps each policy, so the template's `$i % 2` alternation becomes
   :nth-child on the loop's own items — they are DOM siblings. Matches
   policies.php:66, which starts on --alt. */
.elementor .pol-list { width: 100%; padding: 0; }
.elementor .pol-list .vg-section { background: #d4d6bc; }
.elementor .pol-list > * > * > *:nth-child(even) .vg-section { background: #e5e6d2; }

/* the shortcode output sits inside one text widget; let its children lay out
   as though they were the section's own */
.elementor .pol-list span > .pol__body,
.elementor .pol-list span > .pol__pending,
.elementor .vg-wrap > span { display: contents; }

@media (max-width: 960px) {
}

/* --- Policies: the index table ------------------------------------------ */

/* The live table is a <dl> of <dt>/<dd> pairs. Elementor's div element renders
   only div/header/section/article/aside/footer/a/button/main/nav, so the rows
   are divs and the theme's element-selector rules (v4.css:233-234) are restored
   here by position instead. */
.elementor .vg-facts { width: 100%; max-width: 977px; margin: 32px 0 16px; padding: 0; }
.elementor .vg-fact {
	display: flex;
	width: 100%;
	padding: 16px 0;
	border-style: solid;
	border-color: rgba(109, 127, 137, 0.4);
	border-width: 0 0 1px 0;
}
/* v4.css:233 — .vg-fact dt */
.elementor .vg-fact > *:first-child {
	flex: 0 0 180px;
	font-size: var(--fs-caption);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
}
/* v4.css:234 — .vg-fact dd */
.elementor .vg-fact > *:last-child {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	padding: 0;
	color: #064a58;
}
/* v4.css:232 — `.vg-fact:first-child` gets the top hairline. Each looped row
   sits in its own wrapper, so the rule moves to the table itself. */
.elementor .vg-facts {
	border-style: solid;
	border-color: rgba(109, 127, 137, 0.4);
	border-width: 1px 0 0 0;
}
.elementor .pol-index__extra { display: block; margin-top: 8px; font-size: 14px; color: #42525b; }

/* --- loop plumbing ------------------------------------------------------ */

/* A loop nests three wrappers between the container and each item
   (loop > layout > item). They carry Elementor's own defaults — the layout is
   a grid — which breaks any theme rule that expects the items to be the
   container's direct children. Making them transparent blocks restores that. */
.elementor .vg-facts > *,
.elementor .vg-facts > * > *,
.elementor .vg-facts > * > * > *,
.elementor .pol-list > *,
.elementor .pol-list > * > *,
.elementor .pol-list > * > * > * {
	display: block;
	width: 100%;
	max-width: none;
	min-width: 0;
	padding: 0;
	margin: 0;
	gap: 0;
}

/* --- margins the atomic defaults zero ----------------------------------- */

/* v4.css:225 — the only heading on these pages with its own margins */
.elementor .vg-title h1 { margin: 12px 0 16px; }
/* v4.css:343 */
.elementor .pol__version { margin-top: 8px; }
/* The live index is a <dl>, and a <dd> carries a 40px user-agent
   margin-inline-start that the layout depends on — v4.css:480 calls this out.
   The rebuilt rows are divs, so it has to be restored explicitly. */
.elementor .vg-fact > *:last-child { margin-left: 40px; }

@media (max-width: 960px) {
	/* v4.css:256-257 — rows stack, so the label is full width and the value
	   loses its indent */
	.elementor .vg-fact > *:first-child { flex: 1 1 auto; }
	/* measured on the live page: both cells indent 40px once stacked */
	.elementor .vg-fact > * { margin-left: 40px; }
}

/* The Post Content widget applies Elementor's own typography (Roboto, grey).
   The policy body must inherit the theme's instead; the .pol__body h3/p/ul/li/a
   rules at v4.css:345-350 then apply as normal. */
.elementor .pol__body,
.elementor .pol__body p,
.elementor .pol__body li {
	font-family: var(--font-body);
	color: var(--teal);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
}
.elementor .pol__body a { color: var(--clay); }
/* v4.css:357 — the pending notice is the small/ink style, not body copy */
.elementor .pol__pending {
	font-family: var(--font-body);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	color: var(--ink);
}

/* --- Visitor Guidelines -------------------------------------------------- */

/* v4.css — the two-column split used by three sections on this page */
.elementor .vg-split { display: flex; width: 100%; padding: 0; }
.elementor .vg-split__head,
.elementor .vg-split__body { width: auto; min-width: 0; padding: 0; }
.elementor .vg-bullets { display: flex; width: 100%; padding: 0; }
.elementor .vg-bullet { display: flex; width: 100%; padding: 0; }
/* v4.css:240 — .vg-bullet::before, now a real span */
.elementor .vg-dot { color: var(--zen-600); font-weight: 700; }
.elementor .vg-cards { width: 100%; padding: 0; }
.elementor .vg-card { width: auto; min-width: 0; }
.elementor .vg-private { display: flex; width: 100%; padding: 0; }
.elementor .vg-reserve { display: flex; width: 100%; }
.elementor .vg-reserve__text { display: flex; width: auto; min-width: 0; padding: 0; }
.elementor .vg-note { width: 100%; padding: 0; }
/* the accordion rows, same component as the Memberships FAQ */
.elementor .acc { display: block; width: 100%; padding: 0; }
.elementor .acc summary { display: flex; width: 100%; }
.elementor .acc__body { display: flex; width: 100%; }

/* --- keyboard focus ------------------------------------------------------ */

/* Elementor resets links inside its text widgets with `all: unset`, which also
   removes the browser's focus ring. The PHP templates' links have it; restore
   the browser default so keyboard users can see where they are. */
.elementor a.e-paragraph-link-base:focus-visible,
.elementor a.e-heading-link-base:focus-visible,
.elementor .e-paragraph-base a:focus-visible,
.elementor .e-heading-base a:focus-visible {
	outline: auto 1px Highlight;
	outline: auto 1px -webkit-focus-ring-color;
	/* the 1px gap the browser leaves around a plain link's ring */
	outline-offset: 1px;
}

/* --- in-page anchors ------------------------------------------------------ */

/* Elementor's frontend CSS sets `html { scroll-behavior: smooth }` (inside a
   prefers-reduced-motion query). The PHP templates jump straight to an anchor;
   keep that, so "Guided walking" lands on its section at once. */
html:root { scroll-behavior: auto; }
