/* ==========================================================================
   Elk Springs Resort - "Ridgeline" theme
   Loaded last on every page (components/header.cfm + booking engine headers) so it wins over base and module CSS.
   Tokens live in stylesheets/css/02_variables.css + 03_colors.css (mirrored in bookingEngine/stylesheets/be/).
   Design brief: 00-local/design-brief.md
   ========================================================================== */

/* Base type
   ------------------------------------------------------------------------ */
:root { --esr-header-h: 4.5rem; }
@media (min-width: 1025px) { :root { --esr-header-h: 5rem; } }
html { scroll-padding-top: 6rem; overflow-x: clip; }
body { overflow-x: clip; }
body { font-family: var(--bodyFont); font-size: var(--fs-body); line-height: 1.65; color: var(--esr-text); background: var(--esr-white); }
p { max-width: 68ch; }
a, a:hover, .mce-content-body a { color: var(--esr-pine); }
a:hover { text-decoration-thickness: 0.09em; }
::selection { background: hsla(var(--siteColor5), 0.45); color: var(--esr-ink); }

h1, .h1, .content-builder-wrap h1, .content-builder-wrap .h1, .mce-content-body h1,
h2, .h2, .content-builder-wrap h2, .content-builder-wrap .h2, .mce-content-body h2,
h3, .h3, .content-builder-wrap h3, .content-builder-wrap .h3, .mce-content-body h3,
h4, .h4, .content-builder-wrap h4, .content-builder-wrap .h4, .mce-content-body h4 {
  font-family: var(--displayFont); font-weight: var(--wMedium); text-transform: none; letter-spacing: -0.01em; color: var(--esr-ink);
  font-variation-settings: "opsz" 72; line-height: 1.15; text-wrap: balance;
}
h5, .h5, .content-builder-wrap h5, .content-builder-wrap .h5,
h6, .h6, .content-builder-wrap h6, .content-builder-wrap .h6 {
  font-family: var(--bodyFont); font-weight: var(--wHeavy); text-transform: none; letter-spacing: 0; color: var(--esr-ink); line-height: 1.3;
}
h1, .h1, .content-builder-wrap h1, .content-builder-wrap .h1 { font-size: var(--fs-h1); font-variation-settings: "opsz" 144; }
h2, .h2, .content-builder-wrap h2, .content-builder-wrap .h2 { font-size: var(--fs-h2); }
h3, .h3, .content-builder-wrap h3, .content-builder-wrap .h3 { font-size: var(--fs-h3); }
h4, .h4, .content-builder-wrap h4, .content-builder-wrap .h4 { font-size: var(--fs-h4); }
h5, .h5, .content-builder-wrap h5, .content-builder-wrap .h5 { font-size: 1.0625rem; }
h6, .h6, .content-builder-wrap h6, .content-builder-wrap .h6 { font-size: 1rem; }
@media (min-width: 1025px) {
  h1, .h1, .content-builder-wrap h1, .content-builder-wrap .h1 { font-size: var(--fs-h1); }
  h2, .h2, .content-builder-wrap h2, .content-builder-wrap .h2 { font-size: var(--fs-h2); }
  h3, .h3, .content-builder-wrap h3, .content-builder-wrap .h3 { font-size: var(--fs-h3); }
  h4, .h4, .content-builder-wrap h4, .content-builder-wrap .h4 { font-size: var(--fs-h4); }
}
.tagline, .subtitle { font-family: var(--bodyFont); text-transform: none; color: var(--esr-muted); font-weight: var(--wMedium); }
.container { max-width: var(--bsContainerWidth); padding-left: var(--gutter); padding-right: var(--gutter); }

/* Focus: visible ring everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, .bootstrap-select .dropdown-toggle:focus-visible {
  outline: 3px solid var(--esr-gold) !important; outline-offset: 2px; box-shadow: none !important;
}

/* Buttons
   ------------------------------------------------------------------------ */
.btn-esr, a.btn-esr, button.btn-esr {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3rem; padding: 0.75rem 1.5rem; border: 0; border-radius: var(--borderRadiusPill);
  background: var(--esr-ember); color: var(--esr-white) !important; font-family: var(--bodyFont); font-weight: var(--wHeavy);
  font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em; text-transform: none; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn-esr:hover, .btn-esr:focus-visible { background: var(--esr-ember-700); color: var(--esr-white) !important; text-decoration: none; }
.btn-esr-outline { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.75rem 1.5rem; border: 2px solid var(--esr-pine); border-radius: var(--borderRadiusPill); color: var(--esr-pine); font-weight: var(--wHeavy); text-decoration: none; }
.btn-esr-outline:hover { background: var(--esr-pine); color: var(--esr-white); text-decoration: none; }
.esr-text-link { font-weight: var(--wHeavy); color: var(--esr-pine); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; text-decoration-color: hsla(var(--siteColor1), 0.35); }
.esr-text-link:hover { text-decoration-color: currentColor; }
.esr-text-link-light, .esr-text-link-light:hover { color: var(--esr-cream); text-decoration-color: hsla(var(--siteColor4), 0.5); }

/* Header
   ------------------------------------------------------------------------ */
.i-header { background: transparent; transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, visibility 0.3s ease; }
.i-header-bar { padding: var(--space-3) var(--gutter); gap: var(--space-3); min-height: 4.5rem; }
.i-header-bar:after { display: none; }
.i-header-logo { margin-right: auto; flex-shrink: 0; }
.i-header-logo-img { width: clamp(10.5rem, 30vw, 15rem); max-width: none; height: auto; }
@media (min-width: 1025px) { .i-header-logo-img { max-width: none; width: clamp(12rem, 16vw, 15.5rem); } }
.i-header-logo-img-white { display: none; }
.i-header-menu { flex-grow: 0; flex-wrap: nowrap; align-items: center; gap: var(--space-2); }

/* Transparent header over a hero; solid once scrolled, on hero-less pages, or when the drawer is open */
.has-hero .i-header:not(.is-solid) .i-header-logo-img-color { display: none; }
.has-hero .i-header:not(.is-solid) .i-header-logo-img-white { display: block; }
.has-hero .i-header:not(.is-solid) { background: linear-gradient(to bottom, hsla(205, 55%, 8%, 0.55), hsla(205, 55%, 8%, 0)); }
.i-header.is-solid, .no-hero .i-header { background: var(--esr-white); box-shadow: 0 1px 0 var(--esr-sand), var(--shadowSM); }

/* Header actions: phone + utility toggles */
.i-header-phone-number { margin: 0; }
.i-header-phone-number-link { width: auto; height: 2.75rem; min-width: 2.75rem; padding: 0 0.75rem; gap: var(--space-2); border: 1.5px solid currentColor; border-radius: var(--borderRadiusPill); color: var(--esr-ink); font-weight: var(--wHeavy); font-size: 0.9375rem; text-decoration: none; }
.i-header-phone-number-link .icon { position: static; width: 1.125rem; height: 1.125rem; }
.i-header-phone-number-link:hover { color: var(--esr-pine); text-decoration: none; }
.i-header-phone-number-text { display: none; }
.i-header-actions-toggle { width: 2.75rem; height: 2.75rem; padding: 0; border: 1.5px solid currentColor !important; color: var(--esr-ink); }
/* SRP "Sort by: <value>" pill shares the toggle class but is a text pill, not a 44px circle */
.i-header-actions-toggle.srp-header-sort-by-select-chosen { width: auto; padding: 0 0.875rem; }
.i-header-actions-toggle:hover, .i-header-actions-toggle:focus { color: var(--esr-pine); box-shadow: none; }
.i-header-actions-toggle.active { background: var(--esr-pine); color: var(--esr-white); border-color: var(--esr-pine) !important; }
.i-header-actions-toggle .badge { background: var(--esr-ember); color: var(--esr-white); }
.i-header-book { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.has-hero .i-header:not(.is-solid) .i-header-phone-number-link,
.has-hero .i-header:not(.is-solid) .i-header-actions-toggle,
.has-hero .i-header:not(.is-solid) .i-header-navigation-toggle { color: var(--esr-white); }
/* Phase 9 (visual BUG-1): the bar must fit logo + Book now + menu toggle down to 320px; the phone pill moves to the drawer
   below 480px and the utility toggles stay hidden until there's room (they were reappearing at 576-639px) */
@media (max-width: 639.98px) {
  .i-header-actions .i-header-site-search, .i-header-actions .i-header-recently-viewed, .i-header-actions .i-header-favorites { display: none; }
  .i-header-book { padding: 0.5rem 0.875rem; }
}
@media (max-width: 479.98px) {
  .i-header-logo-img { width: clamp(8.5rem, 38vw, 10rem); }
  .i-header-actions .i-header-phone-number { display: none; }
  .i-header a.btn-esr.i-header-book { min-height: 2.5rem; padding: 0.375rem 0.75rem; font-size: 0.875rem; }
}
@media (max-width: 359.98px) {
  .i-header-logo-img { width: 7rem; }
  .i-header-actions { gap: var(--space-1); }
  .i-header a.btn-esr.i-header-book { padding: 0.375rem 0.625rem; font-size: 0.8125rem; }
  .i-header .i-header-navigation-toggle { width: 2.5rem; }
  .i-header .i-header-bar { padding-left: var(--space-3); padding-right: var(--space-3); gap: var(--space-2); }
}
@media (min-width: 1280px) {
  .i-header-phone-number-text { display: inline; }
}

/* Mobile drawer */
.i-header-navigation { order: 3; }
.i-header-navigation-toggle { width: 2.75rem; height: 2.75rem; color: var(--esr-ink); }
.i-header-navigation-toggle .icon { width: 1.625rem; height: 1.625rem; }
.i-header-navigation-container { background: var(--esr-white); }
.i-header-navigation-heading { background: var(--esr-cream); border-bottom: 1px solid var(--esr-sand); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); }
.i-header-navigation-heading-text { font-family: var(--displayFont); font-size: 1.375rem; font-weight: var(--wMedium); letter-spacing: 0; color: var(--esr-ink); }
.i-header-navigation-close { color: var(--esr-ink); }
.i-header-navigation-item:after { background: var(--esr-sand); }
.i-header-navigation-link { padding: 0.875rem var(--space-5); font-size: 1.0625rem; font-weight: var(--wBold); text-transform: none; color: var(--esr-ink); }
.i-header-navigation-link:hover { color: var(--esr-pine); }
.i-header-navigation-sub-toggle { background: transparent; border-left: 1px solid var(--esr-sand); }
.i-header-navigation-sub-toggle .icon { color: var(--esr-pine); }
.i-header-navigation-sub { background: var(--esr-cream); }
.i-header-navigation-sub .i-header-navigation-link { font-weight: var(--wMedium); font-size: 1rem; }
.i-header-navigation-sub .i-header-navigation-sub-toggle { background: transparent; }
.i-header-navigation-sub-list { background: var(--esr-pine-900); border-top: 0; padding: var(--space-3) 0; }
.i-header-navigation-sub-list .i-header-navigation-link { color: var(--esr-cream); }
.i-header-navigation-sub-list .i-header-navigation-item:after { display: none; }

/* Desktop navigation: one row - logo | nav | phone, search, book */
@media (min-width: 1025px) {
  .i-header-bar { padding: var(--space-3) var(--space-6); }
  .i-header-menu { flex-grow: 1; justify-content: flex-end; }
  .i-header-navigation { order: 0; width: auto; margin: 0 var(--space-3) 0 0; }
  .i-header-navigation-container { background: transparent; }
  .i-header-actions { order: 1; gap: var(--space-2); }
  .i-header-book { order: 2; }
  .i-header-navigation-list { flex-wrap: nowrap; }
  .i-header-navigation-item { margin-left: 0; }
  .i-header-navigation-link { padding: 0.625rem 0.875rem; border-radius: var(--borderRadiusXS); font-size: 1rem; font-weight: var(--wBold); color: var(--esr-ink); white-space: nowrap; }
  .has-hero .i-header:not(.is-solid) .i-header-navigation-list-wrap > .i-header-navigation-list > .i-header-navigation-item > .i-header-navigation-link { color: var(--esr-white); }
  .i-header-navigation-list-wrap > .i-header-navigation-list > .i-header-navigation-item > .i-header-navigation-link:hover,
  .i-header-navigation-list-wrap > .i-header-navigation-list > .i-header-navigation-item:focus-within > .i-header-navigation-link { text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 2px; }
  .i-header-navigation-sub .i-header-navigation-list { padding: var(--space-2); border-radius: var(--borderRadius); box-shadow: var(--shadowLG); border: 1px solid var(--esr-sand); min-width: 15rem; }
  .i-header-navigation-sub .i-header-navigation-link { font-weight: var(--wMedium); color: var(--esr-ink); }
  .i-header-navigation-sub .i-header-navigation-link:hover,
  .i-header-navigation-sub .i-header-navigation-link:focus { background: var(--esr-cream); color: var(--esr-pine); }
}
@media (min-width: 1025px) and (max-width: 1279.98px) {
  .i-header-navigation-link { padding: 0.625rem 0.5rem; font-size: 0.9375rem; }
  .i-header-actions .i-header-recently-viewed, .i-header-actions .i-header-favorites { display: none; }
}

/* Hero
   ------------------------------------------------------------------------ */
.hero-wrap { position: relative; z-index: 2; padding: 0; background: var(--esr-pine-900); color: var(--esr-white); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media picture, .hero-media .cms-hero-swiper-wrap, .hero-media .swiper-container { position: absolute; inset: 0; height: 100%; }
.hero-wrap .hero-img, .hero-video, .hero-swiper-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media:after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, hsla(205, 55%, 8%, 0.40) 0%, hsla(205, 55%, 8%, 0.30) 35%, hsla(205, 55%, 8%, 0.32) 60%, hsla(205, 55%, 8%, 0.72) 100%); } /* Phase 9 (A11Y-1): stronger mid-stops so the headline holds up over bright skies */

/* Home hero: tall, centered welcome, search card at the bottom edge */
.hero-home { min-height: 78svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--esr-header-h) + var(--space-6)) 0 var(--space-5); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 56rem; margin: 0 auto auto; padding: var(--space-8) var(--gutter) var(--space-6); text-align: center; }
.hero-tagline { display: block; max-width: none; padding: 0; font-family: var(--bodyFont); font-size: 1.0625rem; text-shadow: none; color: var(--esr-white); }
/* Phase 9 (perf BUG / simplify-8): neutralise the base desktop rule (06_layout.css) that absolutely positions the tagline from
   --qsHeight, a variable z_global.js only sets after load, which moved the headline ~210px (CLS 0.061) */
.hero-content .hero-tagline { position: static; bottom: auto; left: auto; transform: none; margin: 0; font-size: 1.0625rem; }
.hero-tagline .hero-title { margin: 0 0 var(--space-4); color: var(--esr-white); font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem); font-weight: var(--wRegular); line-height: 1.04; letter-spacing: -0.02em; text-shadow: 0 2px 24px hsla(205, 55%, 8%, 0.35); }
.hero-tagline .hero-subtitle { max-width: 34rem; margin: 0 auto; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: hsla(0, 0%, 100%, 0.92); }
.hero-img { animation: esr-hero-settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes esr-hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
  .hero-video { display: none; }
}

/* LAUN-7 home hero: YouTube background. Covers the hero at 16:9 with at least 60px cropped top and bottom so YouTube's
   title bar never shows (100% x 100% fallback for browsers without container units). */
.hero-yt { position: absolute; inset: 0; overflow: hidden; container-type: size; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.hero-yt.is-playing { opacity: 1; }
.hero-yt iframe { position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  width: max(100cqw, (100cqh + 120px) * 16 / 9); height: calc(max(100cqw, (100cqh + 120px) * 16 / 9) * 9 / 16); }
@media (max-width: 767px), (prefers-reduced-motion: reduce) { .hero-yt { display: none; } }

/* Interior hero: short photo band */
.hero-int { min-height: clamp(13rem, 34vh, 22rem); padding-top: var(--esr-header-h); display: flex; flex-direction: column; justify-content: flex-end; }

/* Search card (wraps bookingEngine/components/quickSearch.cfm) */
.hero-wrap .hero-quick-search-wrap { position: relative; inset: auto; z-index: 3; width: calc(100% - 2 * var(--gutter)); max-width: 60rem; margin: 0 auto; padding: 0; background: transparent; border-radius: 0; text-transform: none; }
.hero-search-card { position: relative; padding: var(--space-3); background: var(--esr-white); border-radius: var(--borderRadiusSM); box-shadow: var(--shadowLG); color: var(--esr-text); overflow: hidden; }
/* The four-seasons bar is painted as a top background layer so the card's own border-radius clips it (a 4px pseudo-element
   can't follow the larger corner curve and poked out). The card overflows visibly so the Bedrooms/Guests menus, which open
   above the card when there's no room below, aren't clipped. */
.hero-search-card { overflow: visible; background: var(--seasons-rule) top left / 100% 4px no-repeat, var(--esr-white); }
.hero-search-card:before { content: none; }
.hero-search-card .bootstrap-select .dropdown-menu { z-index: 1050; }
.hero-search-card .hero-quick-search .row { padding: 0; margin: 0; }
.hero-search-card .hero-quick-search [class^=col] { padding: var(--space-1); }
.hero-search-card .qs-dates-wrap,
.hero-search-card .hero-quick-search .select-wrap { height: 3.25rem; background: var(--esr-cream); border-radius: var(--borderRadiusXS); }
.hero-search-card .qs-dates-arrival, .hero-search-card .qs-dates-departure { color: var(--esr-ink); font-weight: var(--wBold); }
.hero-search-card .qs-dates-group-label { color: var(--esr-text); }
.hero-search-card .hero-quick-search .bootstrap-select .dropdown-toggle { border-radius: var(--borderRadiusXS) !important; color: var(--esr-ink); font-weight: var(--wBold); }
.hero-search-card .hero-quick-search button[type=submit] { height: 3.25rem; border-radius: var(--borderRadiusXS); font-size: 1.0625rem; text-transform: none; }
.hero-quick-search .qs-dates-wrap:before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%232F4A36" d="M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>'); }
.hero-quick-search .col-sleeps .dropdown-toggle:before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="%232F4A36" d="M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"/></svg>'); }
.datepicker-reset .icon { color: var(--esr-pine); }

@media (min-width: 1025px) {
  .hero-home { min-height: 88vh; padding-bottom: 0; }
  .hero-content { margin: auto; padding-bottom: var(--space-10); }
  .hero-wrap .hero-quick-search-wrap { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(50%); }
  .hero-int { padding-bottom: 0; }
  .hero-search-card { padding: var(--space-3) var(--space-3) var(--space-3); }
  .hero-search-card .hero-quick-search .row-be { gap: var(--space-2); }
  .hero-search-card .hero-quick-search [class^=col] { padding: 0; }
  .hero-search-card .hero-quick-search .input-wrap:after,
  .hero-search-card .hero-quick-search .select-wrap:after { display: none; }
  .hero-search-card .hero-quick-search [class^=col]:first-child > div,
  .hero-search-card .hero-quick-search [class^=col] > div { border-radius: var(--borderRadiusXS) !important; }
  .hero-search-card .hero-quick-search button[type=submit] { border-radius: var(--borderRadiusXS); height: 3.25rem; }
  .hero-search-card .hero-quick-search .col-dates { min-width: 22rem; }
  .hero-search-card .hero-quick-search .col-submit { min-width: 11rem; }
}

/* Main content offsets the overlapping search card */
@media (min-width: 1025px) {
  .has-hero .hero-wrap + * { padding-top: calc(var(--space-9) - var(--space-4)); }
  .has-hero .hero-wrap + .esr-trust { padding-top: calc(var(--space-8) + var(--space-2)); }
}

/* Trust strip
   ------------------------------------------------------------------------ */
.esr-trust { background: var(--esr-cream); padding: var(--space-5) 0; border-bottom: 1px solid var(--esr-sand); }
.esr-trust-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4) var(--space-5); margin: 0 auto; padding-top: 0; padding-bottom: 0; list-style: none; }
.esr-trust-item { display: flex; align-items: center; gap: var(--space-3); font-size: 0.9375rem; line-height: 1.35; color: var(--esr-ink); }
.esr-trust-item a { color: inherit; font-weight: var(--wHeavy); }
.esr-trust-stars { display: inline-flex; flex-shrink: 0; color: var(--season-1); }
.esr-trust-stars .icon { width: 0.95rem; height: 0.95rem; }
.esr-trust-badge { width: 2.5rem; height: 2.5rem; flex-shrink: 0; object-fit: contain; }
.esr-trust-icon { flex-shrink: 0; width: 1.375rem; height: 1.375rem; color: var(--esr-pine); }
@media (min-width: 576px) {
  .esr-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .esr-trust-list { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}

/* Sections
   ------------------------------------------------------------------------ */
.esr-section { padding: var(--sectionSpace) 0; }
.esr-section-head { margin-bottom: var(--space-7); max-width: 40rem; }
.esr-section-title { margin: 0 0 var(--space-3); }
.esr-section-title:after { content: ""; display: block; width: 4rem; height: 4px; margin-top: var(--space-4); background: var(--seasons-rule); }
.esr-section-lede { margin: 0; font-size: 1.125rem; color: var(--esr-text); }

/* Home CMS body (ContentBuilder rows authored with these classes)
   ------------------------------------------------------------------------ */
.i-content-home { padding: 0; }
.esr-home-body { max-width: var(--bsContainerWidth); margin: 0 auto; padding: 0 var(--gutter); }
.esr-home-body > .row, .esr-home-body .is-container > .row { margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
.esr-home-body .row > [class*=col] { padding-left: calc(var(--gutter) * 0.5); padding-right: calc(var(--gutter) * 0.5); }
.esr-home-body img { max-width: 100%; height: auto; }
.esr-home-body h2 { margin-bottom: var(--space-4); }
.esr-home-body h2:after { content: ""; display: block; width: 4rem; height: 4px; margin-top: var(--space-4); background: var(--seasons-rule); }

.esr-intro { padding: var(--sectionSpace) 0 var(--space-8); align-items: center; row-gap: var(--space-7); }
.esr-intro p { font-size: 1.125rem; }
.esr-intro img { border-radius: var(--borderRadiusSM); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.esr-plan-head { padding-top: var(--space-7); }
.esr-plan { row-gap: var(--space-5); padding-bottom: var(--sectionSpace); }
.esr-card-link { display: block; color: var(--esr-ink); text-decoration: none; }
.esr-card-link img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--borderRadius); margin-bottom: var(--space-3); transition: filter 0.2s ease; }
.esr-card-link:hover img { filter: brightness(1.06) saturate(1.05); }
.esr-card-title { display: block; font-family: var(--displayFont); font-size: var(--fs-h4); font-weight: var(--wMedium); }
.esr-card-text { display: block; margin-top: var(--space-1); font-size: 0.9375rem; color: var(--esr-text); }
.esr-card-link:hover .esr-card-title { text-decoration: underline; text-underline-offset: 0.2em; }

.esr-band { align-items: center; row-gap: var(--space-6); padding: var(--sectionSpace) 0; border-top: 1px solid var(--esr-sand); }
.esr-band img { width: 100%; border-radius: var(--borderRadiusSM); aspect-ratio: 5 / 4; object-fit: cover; }
.esr-band ul { padding-left: 1.25rem; }
.esr-band li { margin-bottom: var(--space-2); }
@media (min-width: 768px) {
  .esr-band-text { padding-left: var(--space-7) !important; }
  .esr-band-text.order-md-1 { padding-left: calc(var(--gutter) * 0.5) !important; padding-right: var(--space-7) !important; }
}

/* Find your cabin (callouts module) */
.esr-occasions { background: var(--esr-white); padding-bottom: var(--space-6); }
.occasion-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--space-4); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--space-2); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.occasion-grid-item { scroll-snap-align: start; }
.occasion-tile { position: relative; display: block; overflow: hidden; border-radius: var(--borderRadiusSM); aspect-ratio: 4 / 5; color: var(--esr-white); text-decoration: none; background: var(--esr-pine-900); }
.occasion-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.occasion-tile:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsla(205, 55%, 8%, 0.82) 0%, hsla(205, 55%, 8%, 0.15) 55%, hsla(205, 55%, 8%, 0) 75%); }
.occasion-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--space-5); }
.occasion-tile-title { display: block; font-family: var(--displayFont); font-size: var(--fs-h3); line-height: 1.1; }
.occasion-tile-text { display: block; margin-top: var(--space-2); font-size: 0.9375rem; line-height: 1.45; color: hsla(0, 0%, 100%, 0.88); }
.occasion-tile:hover, .occasion-tile:focus-visible { color: var(--esr-white); text-decoration: none; }
.occasion-tile:hover .occasion-tile-img { transform: scale(1.04); }
@media (min-width: 768px) {
  .occasion-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .occasion-tile { aspect-ratio: 4 / 3; }
}
@media (min-width: 1025px) {
  .occasion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .occasion-tile { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) { .occasion-tile-img { transition: none; } }

/* Guest reviews (testimonials module) */
.esr-reviews { background: var(--esr-pine-900); color: var(--esr-cream); }
.esr-reviews .esr-section-title { color: var(--esr-white); }
.esr-reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-7); }
.esr-reviews-head .esr-section-title { margin: 0; }
.esr-review { margin: 0; max-width: 52rem; }
.esr-review-title { margin: 0 0 var(--space-3); font-size: var(--fs-small); font-weight: var(--wHeavy); color: var(--esr-gold); }
.esr-review-quote { margin: 0 0 var(--space-5); font-family: var(--displayFont); font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem); font-weight: var(--wRegular); line-height: 1.3; color: var(--esr-white); quotes: "\201C" "\201D"; }
.esr-review-quote p { display: inline; margin: 0; }
.esr-review-quote:before { content: open-quote; color: var(--esr-gold); margin-right: 0.05em; }
.esr-review-quote:after { content: close-quote; color: var(--esr-gold); }
.esr-review-by { display: flex; flex-direction: column; gap: var(--space-1); font-size: 0.9375rem; }
.esr-review-name { font-weight: var(--wHeavy); color: var(--esr-white); }
.esr-review-cabin { color: hsla(37, 42%, 94%, 0.8); }
.esr-reviews-controls { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: var(--space-4); width: auto; max-width: none; margin: var(--space-7) 0 0; }
.esr-reviews-controls .swiper-pagination { flex: 0 0 auto; }
.esr-reviews-controls .swiper-button-prev, .esr-reviews-controls .swiper-button-next { position: static; width: 2.75rem; height: 2.75rem; margin: 0; border: 1.5px solid hsla(37, 42%, 94%, 0.5); border-radius: 50%; background: transparent; color: var(--esr-cream); display: inline-flex; align-items: center; justify-content: center; }
.esr-reviews-controls .swiper-button-prev:after, .esr-reviews-controls .swiper-button-next:after { display: none; }
.esr-reviews-controls .swiper-button-prev:hover, .esr-reviews-controls .swiper-button-next:hover { background: var(--esr-cream); color: var(--esr-pine-900); }
.esr-reviews-controls .icon { width: 1rem !important; height: 1rem !important; flex-shrink: 0; color: inherit; }
.esr-reviews-controls .swiper-pagination { position: relative; left: auto !important; bottom: auto; flex: 0 0 auto; overflow: hidden; transform: none !important; }
.esr-reviews-controls .swiper-pagination-bullet { background: var(--esr-cream); opacity: 0.4; }
.esr-reviews-controls .swiper-pagination-bullet-active { opacity: 1; background: var(--esr-gold); }

/* Property management CTA band */
.esr-cta-band { position: relative; overflow: hidden; padding: var(--sectionSpace) 0; background: var(--esr-pine); color: var(--esr-white); text-align: center; }
.esr-cta-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.esr-cta-band-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.esr-cta-band-title { margin: 0 0 var(--space-3); color: var(--esr-white); }
.esr-cta-band-text { margin: 0 auto var(--space-6); font-size: 1.125rem; color: hsla(0, 0%, 100%, 0.9); }

/* Footer
   ------------------------------------------------------------------------ */
.i-footer { position: relative; padding: 0; background: var(--esr-pine-900); color: hsla(37, 42%, 94%, 0.86); text-align: left; font-family: var(--bodyFont); }
.esr-footer-rule { height: 4px; background: var(--seasons-rule); }
.i-footer > .container { max-width: var(--bsContainerWidth); padding-top: var(--space-9); padding-bottom: var(--space-8); }
.esr-footer-grid { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
.i-footer-logo-wrap { display: inline-block; margin: 0 0 var(--space-5); }
.i-footer-logo-img { width: 15rem; max-width: 100%; height: auto; }
.esr-footer-blurb { margin: 0 0 var(--space-5); max-width: 24rem; }
.esr-footer-contact { margin: 0 0 var(--space-5); padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.esr-footer-contact a, .esr-footer-contact address { display: inline-flex; align-items: flex-start; gap: var(--space-3); margin: 0; color: var(--esr-white); font-weight: var(--wBold); font-style: normal; text-decoration: none; }
.esr-footer-contact address { font-weight: var(--wRegular); color: hsla(37, 42%, 94%, 0.86); }
.esr-footer-contact .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.2em; flex-shrink: 0; color: var(--esr-gold); }
.esr-footer-contact a:hover { text-decoration: underline; text-underline-offset: 0.2em; color: var(--esr-white); }
.esr-footer-heading { margin: 0 0 var(--space-4); font-family: var(--displayFont); font-size: 1.375rem; font-weight: var(--wMedium); color: var(--esr-white); }
.esr-footer-heading:after { display: none; }
.esr-footer-small { margin: 0 0 var(--space-4); font-size: 0.9375rem; }
.i-footer-links-list { display: block; columns: 2; column-gap: var(--space-6); margin: 0; padding: 0; text-align: left; line-height: 1.4; }
.i-footer-links-list-item { break-inside: avoid; padding: 0; margin: 0 0 var(--space-3); list-style: none; }
.i-footer-link { display: inline; padding: 0; font-size: 0.9375rem; text-transform: none; color: hsla(37, 42%, 94%, 0.86); text-decoration: none; }
.i-footer-link:hover { color: var(--esr-white); text-decoration: underline; text-underline-offset: 0.2em; }
.i-footer-social .i-social-list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.i-footer-social .i-social-item { margin: 0; }
.i-social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1.5px solid hsla(37, 42%, 94%, 0.35); border-radius: 50%; color: var(--esr-cream); background: transparent !important; }
.i-social-link:before { display: none !important; }
.i-social-link .icon { width: 1rem; height: 1rem; }
.i-social-link:hover { border-color: var(--esr-gold); color: var(--esr-gold); }
#socialNavItem .i-social-link { border-color: hsla(37, 42%, 94%, 0.35); }

/* Footer newsletter */
.i-footer .newsletter-signup-wrap { padding: 0; background: transparent; border: 0; color: inherit; line-height: 1.5; }
.i-footer .newsletter-form-wrap { max-width: 26rem; padding: 0; }
.i-footer .newsletter-form .fieldset { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.i-footer .newsletter-form .form-group { flex: 1 1 14rem; }
.i-footer .newsletter-form label:not(.error) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); display: block; }
.i-footer .newsletter-form input { height: 3rem; margin: 0; padding: 0 var(--space-4); border: 1.5px solid hsla(37, 42%, 94%, 0.35); border-radius: var(--borderRadiusPill); background: hsla(0, 0%, 100%, 0.06); color: var(--esr-white); }
.i-footer .newsletter-form input::placeholder { color: hsla(37, 42%, 94%, 0.6); }
.i-footer .newsletter-form button[type=submit] { position: static; width: auto; height: 3rem; padding: 0 var(--space-5); border-radius: var(--borderRadiusPill); font-size: 1rem; text-transform: none; }
.i-footer .newsletter-form button[type=submit] span { display: inline !important; }

.i-baseline { padding: var(--space-5) 0; border-top: 1px solid hsla(37, 42%, 94%, 0.12); background: transparent; font-size: 0.875rem; color: hsla(37, 42%, 94%, 0.7); }
.i-baseline .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.i-baseline a { color: inherit; }
.return-to-top { background: var(--esr-ember); color: var(--esr-white); border: 0; }
@media (min-width: 768px) {
  .esr-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .esr-footer-newsletter { grid-column: 1 / -1; }
}
@media (min-width: 1025px) {
  .esr-footer-grid { grid-template-columns: 1.1fr 1.3fr 1fr; gap: var(--space-8); }
  .esr-footer-newsletter { grid-column: auto; }
}

/* Utilities
   ------------------------------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Interior pages (view/layouts/full.cfm, default.cfm) and imported prose
   ------------------------------------------------------------------------ */
.i-content.int { padding: var(--space-8) 0 var(--sectionSpace); }
.i-content.int > .container > .row > .col { max-width: 50rem; margin: 0 auto; }
.i-content.int h1 { margin: 0 0 var(--space-3); }
.i-content.int h1.site-color-1 { color: var(--esr-ink) !important; }
.i-content.int .tagline { margin: 0 0 var(--space-7); font-size: 1.125rem; font-weight: var(--wMedium); color: var(--esr-muted); }
.i-content.int .tagline:after { content: ""; display: block; width: 4rem; height: 4px; margin-top: var(--space-5); background: var(--seasons-rule); }
.esr-prose { font-size: var(--fs-body); line-height: 1.7; color: var(--esr-text); }
.esr-prose > :first-child { margin-top: 0; }
.esr-prose h2 { margin: var(--space-8) 0 var(--space-4); font-size: var(--fs-h2); }
.esr-prose h3 { margin: var(--space-7) 0 var(--space-3); font-size: var(--fs-h3); }
.esr-prose h4 { margin: var(--space-6) 0 var(--space-2); font-size: var(--fs-h4); }
.esr-prose p, .esr-prose ul, .esr-prose ol { margin: 0 0 var(--space-5); }
.esr-prose ul, .esr-prose ol { padding-left: 1.25rem; }
.esr-prose li { margin-bottom: var(--space-2); }
.esr-prose a { color: var(--esr-pine); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: hsla(var(--siteColor1), 0.4); }
.esr-prose a:hover { text-decoration-color: currentColor; }
.esr-prose img { display: block; max-width: 100%; height: auto; margin: var(--space-6) 0; border-radius: var(--borderRadius); }
.esr-prose p > img { margin: 0; }
.esr-prose figure { margin: var(--space-6) 0; }
.esr-prose figcaption { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--esr-muted); }
.esr-prose blockquote { margin: var(--space-6) 0; padding: var(--space-4) var(--space-5); border-left: 4px solid var(--esr-gold); background: var(--esr-cream); border-radius: 0 var(--borderRadius) var(--borderRadius) 0; font-family: var(--displayFont); font-size: 1.25rem; color: var(--esr-ink); }
.esr-prose table { width: 100%; margin: var(--space-6) 0; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.esr-prose th, .esr-prose td { padding: var(--space-3); border-bottom: 1px solid var(--esr-sand); text-align: left; vertical-align: top; }
.esr-prose th { background: var(--esr-cream); color: var(--esr-ink); }
.esr-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--borderRadius); }
.esr-prose hr { margin: var(--space-7) 0; border: 0; border-top: 1px solid var(--esr-sand); }

/* Contact form card */
.i-content.int .card { border: 1px solid var(--esr-sand); border-radius: var(--borderRadius); box-shadow: none; }
.i-content.int .form-control { min-height: 3rem; border: 1.5px solid var(--esr-sand); border-radius: var(--borderRadiusXS); }
.i-content.int .form-control:focus { border-color: var(--esr-pine); box-shadow: none; }
.i-content.int label { font-weight: var(--wBold); color: var(--esr-ink); font-size: 0.9375rem; }
.i-content.int .btn:not(.btn-esr) { min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: var(--borderRadiusPill); background: var(--esr-ember) !important; border: 0; color: var(--esr-white) !important; font-weight: var(--wHeavy); text-transform: none; }
.i-content.int .btn:not(.btn-esr):hover { background: var(--esr-ember-700) !important; }

/* Blog (blogEngine/view/*; listing + detail pages use the `full` layout, no sidebar)
   ------------------------------------------------------------------------ */
.i-content.int > .container > .row > .col:has(> .cms-blog-wrap), .i-content.int > .container > .row > .col:has(> .esr-blog-cats) { max-width: none; }
body .cms-blog-wrap { display: block; margin: 0; }
body .cms-blog-wrap h1:after, body .blog-post-nav:before { display: none; }
.esr-blog-back { margin: 0 0 var(--space-3); font-size: var(--fs-small); font-weight: var(--wBold); }
.esr-blog-back a { color: var(--esr-pine); text-decoration: none; }
.esr-blog-back a:before { content: "\2190\00a0"; }
.esr-blog-back a:hover { text-decoration: underline; }
.i-content .blog-title-tag { text-transform: none; }
.esr-post-tags .esr-chip, .blog-title-tag { text-transform: capitalize; }
.i-content .blog-title { margin: 0 0 var(--space-5); padding: 0; color: var(--esr-ink); font-size: var(--fs-h1); }

/* Chips (category nav, post categories/tags) */
.esr-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.esr-chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.375rem 1rem; border: 1.5px solid var(--esr-sand); border-radius: var(--borderRadiusPill); background: var(--esr-white); color: var(--esr-ink); font-size: 0.9375rem; font-weight: var(--wMedium); line-height: 1.2; text-decoration: none; }
.esr-chip:hover { border-color: var(--esr-pine); color: var(--esr-pine); text-decoration: none; }
.esr-chip[aria-current="page"], .esr-chip-strong { border-color: var(--esr-pine); background: var(--esr-pine); color: var(--esr-white); }
.esr-chip[aria-current="page"]:hover, .esr-chip-strong:hover { background: var(--esr-pine-900); color: var(--esr-white); }
.esr-blog-cats { margin: 0 0 var(--space-7); }
@media (max-width: 767.98px) {
  .esr-blog-cats .esr-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--space-2); scrollbar-width: thin; }
  .esr-blog-cats .esr-chip { white-space: nowrap; }
}

/* Card grid */
.i-content .blog-results, .esr-related-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6) var(--space-5); }
@media (min-width: 768px) { .i-content .blog-results, .esr-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .i-content .blog-results, .esr-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.i-content .blog-results .blog-loading { grid-column: 1 / -1; }
.esr-post-card.blog-post { position: relative; display: flex; flex-direction: column; max-width: none; margin: 0; padding: 0; background: var(--esr-white); border: 1px solid var(--esr-sand); border-radius: var(--borderRadius); box-shadow: none; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.esr-post-card.blog-post:hover { box-shadow: var(--shadowMD); transform: translateY(-2px); }
.esr-post-card-media { aspect-ratio: 3 / 2; background: var(--esr-cream); overflow: hidden; }
.esr-post-card .blog-post-img { width: 100%; height: 100%; max-height: none; margin: 0 !important; object-fit: cover; border: 0; border-radius: 0; }
.esr-post-card-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); }
.esr-post-card-title { margin: 0; font-size: var(--fs-h4); line-height: 1.25; text-transform: none; }
.esr-post-card-link { display: inline; color: var(--esr-ink); text-decoration: none; }
.esr-post-card-link:after { content: ""; position: absolute; inset: 0; z-index: 1; }
.esr-post-card-link:hover, .esr-post-card-link:focus-visible { color: var(--esr-pine); text-decoration: underline; text-underline-offset: 0.2em; }
.esr-post-card:focus-within { outline: 3px solid var(--esr-gold); outline-offset: 2px; }
.esr-post-card .esr-post-card-link:focus-visible { outline: none !important; } /* Phase 9: the card shows the ring (:focus-within); the global a:focus-visible !important rule doubled it */
.esr-post-card-date { font-size: var(--fs-small); color: var(--esr-muted); }
.esr-post-card-excerpt { margin: var(--space-1) 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--esr-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .esr-post-card.blog-post, .esr-post-card.blog-post:hover { transition: none; transform: none; } }

/* Post page: 720px reading column */
.esr-post.blog-post { max-width: 45rem; margin: 0 auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.esr-post.blog-post:hover { box-shadow: none; }
.esr-post-header h1 { margin: 0 0 var(--space-4); padding: 0; color: var(--esr-ink); font-size: var(--fs-h1); line-height: 1.08; text-transform: none; }
.esr-post-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0 0 var(--space-6); font-size: var(--fs-small); color: var(--esr-muted); }
.esr-post-meta .reading-time:empty { display: none; }
.esr-post-featured.blog-post-img { width: 100%; max-height: none; height: auto; margin: 0 0 var(--space-6) !important; border: 0; border-radius: var(--borderRadius); }
.esr-post .blog-post-content { display: block; height: auto; }
.esr-post .blog-post-content, .esr-post .blog-post-content p, .esr-post .blog-post-content div:not([class^=h]), .esr-post .blog-post-content span:not([class^=h]) { font-family: var(--bodyFont) !important; }
.esr-post .esr-prose h2, .esr-post .esr-prose h3, .esr-post .esr-prose h4 { font-family: var(--displayFont) !important; color: var(--esr-ink); }
.esr-post .esr-prose img { height: auto !important; }
.esr-post-tags { margin: var(--space-7) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--esr-sand); }
.esr-post-tags .blog-tag { display: block; }
.esr-post-cta { margin: var(--space-7) 0 0; padding: var(--space-6); border-radius: var(--borderRadius); background: var(--esr-cream); }
.esr-post-cta-title { margin: 0 0 var(--space-2); font-size: var(--fs-h3); }
.esr-post-cta p { margin: 0 0 var(--space-5); }

/* Related posts + previous/next */
.esr-related { max-width: 75rem; margin: var(--space-8) auto 0; padding-top: var(--space-7); border-top: 1px solid var(--esr-sand); }
.esr-related-title { margin: 0 0 var(--space-6); font-size: var(--fs-h2); }
.i-content .blog-post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); max-width: 75rem; margin: var(--space-7) auto 0; padding: 0; }
@media (min-width: 768px) { .i-content .blog-post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.esr-post-nav-link { display: block; padding: var(--space-4) var(--space-5); border: 1px solid var(--esr-sand); border-radius: var(--borderRadius); color: var(--esr-ink); font-family: var(--displayFont); font-size: 1.125rem; line-height: 1.3; text-decoration: none; }
.esr-post-nav-link:hover { border-color: var(--esr-pine); color: var(--esr-pine); text-decoration: none; }
.esr-post-nav-next { text-align: right; grid-column: -2; }
.esr-post-nav-label { display: block; margin-bottom: var(--space-1); font-family: var(--siteFont); font-size: var(--fs-small); font-weight: var(--wBold); color: var(--esr-muted); }

/* Home: From the blog (modules/recentBlogPosts/view/recentBlogPostsESR.cfm; cards share .esr-post-card above)
   ------------------------------------------------------------------------ */
.esr-recent-posts { background: var(--esr-white); }
.esr-recent-posts-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-7); }
.esr-recent-posts-head .esr-section-title { margin: 0; }
.esr-recent-posts-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6) var(--space-5); }
.esr-recent-posts .esr-text-link:focus-visible { outline: 3px solid var(--esr-gold); outline-offset: 2px; }

@media (min-width: 768px) {
  .esr-recent-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1025px) {
  .esr-recent-posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 404 (view/layouts/notFound.cfm -> /404.html) */
.esr-404 { padding: var(--space-8) 0 var(--space-9); background: var(--esr-cream); }
.esr-404-inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.esr-404-code { margin: 0 0 var(--space-2); font-family: var(--displayFont); font-size: clamp(4rem, 3rem + 5vw, 7rem); line-height: 1; color: var(--esr-sand); }
.esr-404-title { margin: 0 0 var(--space-4); font-size: var(--fs-h1); color: var(--esr-ink); }
.esr-404-text { margin: 0 auto var(--space-7); max-width: 34rem; font-size: 1.125rem; color: var(--esr-text); }
.esr-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }

/* Empty states (components/emptyState.cfm) */
.esr-empty-state { margin: var(--space-6) 0; padding: var(--space-7) var(--space-6); border-radius: var(--borderRadius); background: var(--esr-cream); text-align: center; }
.esr-empty-state-title { margin: 0 0 var(--space-3); font-size: var(--fs-h3); }
.esr-empty-state-text { max-width: 36rem; margin: 0 auto var(--space-5); color: var(--esr-text); }
.esr-empty-state-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }

/* bootstrap-select toggles inside interior content are form controls, not CTAs (overrides the .i-content.int .btn rule) */
.i-content.int .bootstrap-select > .btn.dropdown-toggle { min-height: 3rem; padding: 0.625rem 2.25rem 0.625rem 0.875rem; border: 1.5px solid var(--esr-sand); border-radius: var(--borderRadiusXS); background: var(--esr-white) !important; color: var(--esr-ink) !important; font-size: 0.9375rem; font-weight: var(--wMedium); text-transform: none; box-shadow: none; }
.i-content.int .bootstrap-select > .btn.dropdown-toggle:focus-visible { outline: 3px solid var(--esr-gold); outline-offset: 2px; }
.availability-calendar-filter { padding: var(--space-4); background: var(--esr-cream); border: 0; border-radius: var(--borderRadius); }
.availability-calendar-filter label { font-size: var(--fs-small); }

/* Phase 9 review fixes */
.hero-tagline .hero-subtitle { text-shadow: 0 1px 12px hsla(205, 55%, 8%, 0.45); }
.blog-detail-item .esr-post-header h1 { color: var(--esr-ink); }                        /* base rule made post titles grey */
.callout-info .callout-text, .callout-info .callout-text a { color: var(--esr-white); } /* 1.71:1 on the pine bar */

/* LAUN-4: /gatlinburg-cabins-availability/ dated-search buttons (view/partials/availabilityButtons.cfm) */
.esr-availability { align-items: center; margin-top: var(--space-6, 2rem); row-gap: var(--space-6, 2rem); }
.esr-availability-label { margin-bottom: 1rem; font-weight: var(--wHeavy); }
.esr-availability-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.esr-availability-photo img { display: block; width: 100%; height: auto; max-height: 34rem; object-fit: cover; border-radius: var(--borderRadius, 0.5rem); }

/* LAUN-6: /gatlinburg-event-calendar/ event cards (view/partials/eventsCalendar.cfm) */
.esr-events { margin-top: var(--space-6); }
.esr-events-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.esr-event { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--esr-sand); border-radius: var(--borderRadius); background: var(--esr-white); }
.esr-event-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--esr-cream); }
.esr-event-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s ease; }
.esr-event-media:hover img { filter: brightness(1.06) saturate(1.05); }
.esr-event-badge { position: absolute; top: var(--space-3); left: var(--space-3); display: flex; flex-direction: column; align-items: center; min-width: 3.5rem; padding: var(--space-2) var(--space-3); border-radius: var(--borderRadiusXS); background: var(--esr-pine); color: var(--esr-white); line-height: 1; text-align: center; box-shadow: 0 2px 8px hsla(205, 55%, 8%, 0.25); }
.esr-event-badge-month { font-size: 0.75rem; font-weight: var(--wHeavy); letter-spacing: 0.08em; text-transform: uppercase; }
.esr-event-badge-day { margin-top: 0.125rem; font-family: var(--displayFont); font-size: 1.75rem; }
.esr-event-body { display: flex; flex-direction: column; padding: var(--space-5); }
.esr-event-title { margin: 0 0 var(--space-3); font-size: var(--fs-h3); }
.esr-event-title a { color: var(--esr-ink); text-decoration: none; }
.esr-event-title a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.esr-event-meta { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--fs-small); font-weight: var(--wMedium); color: var(--esr-ink); }
.esr-event-meta li { display: inline-flex; align-items: center; gap: var(--space-2); }
.esr-event-meta .icon { flex: none; width: 1em; height: 1em; fill: var(--esr-ember); }
.esr-event-text { margin: 0 0 var(--space-4); color: var(--esr-text); }
.esr-event-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.esr-event-gcal { color: var(--esr-pine); font-weight: var(--wBold); text-decoration: underline; text-underline-offset: 0.2em; }
.esr-event-gcal:hover { color: var(--esr-ember); }
@media (min-width: 768px) {
  .esr-event { grid-template-columns: minmax(14rem, 34%) 1fr; }
  .esr-event-media { aspect-ratio: auto; min-height: 15rem; }
  .esr-event-media img { position: absolute; inset: 0; }
  .esr-event-body { padding: var(--space-6); }
}
.cms-single-event-detail-wrap .card-body p a:not(.btn) { color: var(--esr-pine); font-weight: var(--wBold); text-decoration: underline; text-underline-offset: 0.2em; }

/* LAUN-6: /black-bear-facts/ (old elk-black-bears plugin page, markup from 00-local/scripts/33-bear-page.py, behavior in
   esr-theme.js). Sizes, colors and layout follow the old plugin stylesheet (black-bear-facts.css). */
/* Full container width like the old page (the interior 50rem column is for ordinary text pages) */
.i-content.int > .container > .row > .col:has(.esr-bear-page) { max-width: none; }
.i-content.int > .container > .row > .col:has(.esr-bear-page) > h1 { max-width: 50rem; }
.esr-bear-page p { max-width: none; }
.esr-bear-page button:focus:not(:focus-visible) { box-shadow: none; outline: none; }
/* 04_forms.css rounds every .content-builder-wrap button; these keep the old shapes */
.esr-bear-page .esr-slider-btn { border-radius: 50%; }
.esr-bear-page .esr-flip-card, .esr-bear-page .esr-flip-card:hover { border: 0; border-radius: 10px; background: none; box-shadow: none; color: #405059; text-transform: none; letter-spacing: normal; }
.esr-bear-page .esr-legend-btn, .esr-bear-page .esr-table-toggle, .esr-bear-page .esr-illo-close { border-radius: 0; }
.esr-prose [id^="chapter-"] { scroll-margin-top: calc(var(--esr-header-h, 5rem) + var(--space-4)); }
.esr-prose .esr-source { margin-top: calc(-1 * var(--space-3)); font-size: var(--fs-small); color: var(--esr-muted); }

/* Chapter cards (old .contents) */
.esr-toc { margin: var(--space-7) 0 var(--space-8); }
.esr-prose .esr-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.esr-prose .esr-toc li { margin: 0; }
.esr-prose .esr-toc a { display: block; height: 100%; min-height: 10.5rem; padding: 1rem; border-radius: 20px; background: #F6F1EC; color: #405059; font-weight: var(--wBold); line-height: 1.2; text-decoration: none; transition: background-color .2s ease-in-out, color .2s ease-in-out; }
.esr-toc-num { display: inline-block; margin: 0 0 1rem; padding: 0 10px 10px 0; border-bottom: 3px solid; color: var(--esr-pine); font-size: 1.125rem; transition: color .2s ease-in-out; }
.esr-toc a > span:last-child { display: block; font-size: 1.125rem; letter-spacing: -0.3px; }
.esr-prose .esr-toc a:hover, .esr-prose .esr-toc a:focus-visible { background: var(--esr-pine); color: #fff; }
.esr-toc a:hover .esr-toc-num, .esr-toc a:focus-visible .esr-toc-num { color: #fff; }
@media (min-width: 768px) {
  .esr-prose .esr-toc ol { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
  .esr-toc-num, .esr-toc a > span:last-child { font-size: 1.1875rem; }
}

/* Habitat map (images/pages/black-bear-facts/black-bear-population-map.svg) with the old click popups */
.esr-prose .esr-bear-map { position: relative; margin: var(--space-6) 0 var(--space-4); padding: 1rem; background: #f4f4f4; }
.esr-prose .esr-bear-map img, .esr-bear-map svg { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.esr-bear-map svg:focus { outline: none; }
.esr-bear-map.is-ready .bm-state, .esr-bear-map.is-ready .bm-park { cursor: pointer; }
.esr-bear-map .bm-state { transition: fill .2s ease-in-out; }
.esr-bear-map.is-filtered .bm-state:not(.is-on) { fill: #E8E3DF; }
.esr-bear-map .bm-park:focus-visible { outline: 2px solid var(--esr-ink); }
.esr-map-tip { position: absolute; z-index: 2; padding: 8px 17px; background: #fff; filter: drop-shadow(0 1px 6px rgba(0,0,0,.15)); color: #405059; line-height: 1.35; }
.esr-map-tip:not(.has-link) { pointer-events: none; }
.esr-map-tip-inner { border-left: 8px solid var(--tip-color, #405059); padding-left: 10px; }
.esr-map-tip-name { display: block; max-width: 14rem; font-size: 15px; font-weight: var(--wBold); white-space: nowrap; }
.esr-map-tip.has-link .esr-map-tip-name { white-space: normal; color: #405059; text-decoration: underline; }
.esr-map-tip-value { display: block; font-size: 18px; }
@media (min-width: 768px) { .esr-prose .esr-bear-map { padding: 1.5rem; } }

/* Map legend (old .map-legend--wrapper): one color band per range; click a band to filter the map */
.esr-bear-legend { margin: 0 0 var(--space-6); }
.esr-prose .esr-bear-legend ol { display: flex; margin: 0; padding: 0; list-style: none; }
.esr-prose .esr-bear-legend li { flex: 1 1 0; margin: 0; }
.esr-legend-btn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.esr-legend-btn:focus-visible { outline: 2px solid var(--esr-ink); outline-offset: 2px; }
.esr-legend-bar { display: block; height: 12px; transition: background-color .2s ease-in-out; }
.esr-bear-legend li:first-child .esr-legend-bar { border-radius: 6px 0 0 6px; }
.esr-bear-legend li:last-child .esr-legend-bar { border-radius: 0 6px 6px 0; }
.esr-legend-label { display: flex; justify-content: space-between; padding: .75rem 0; font-size: .875rem; color: #405059; }
.esr-bear-legend li:not(:first-child) .esr-legend-label > span:first-child { transform: translateX(-1ch); }
.esr-bear-legend.is-filtered li:not(.is-on) .esr-legend-bar { background-color: #E8E3DF; }
.esr-legend-bar.bm-c0 { background-color: #405059; } .esr-legend-bar.bm-c1 { background-color: #287271; }
.esr-legend-bar.bm-c2 { background-color: #2A9D8F; } .esr-legend-bar.bm-c3 { background-color: #74AF72; }
.esr-legend-bar.bm-c4 { background-color: #E9C46A; } .esr-legend-bar.bm-c5 { background-color: #F4A261; }
.esr-legend-bar.bm-c6 { background-color: #EE8959; } .esr-legend-bar.bm-c7 { background-color: #E76F51; }
@media (max-width: 575.98px) {
  .esr-legend-label { font-size: .75rem; }
  .esr-bear-legend li:nth-child(even):not(:last-child) .esr-legend-label > span:first-child { visibility: hidden; }
}

/* State table (old .table--esr.table--collapse): 10 rows, then Expand Table */
.esr-prose .esr-bear-table { margin: 0 0 var(--space-5); overflow-x: auto; }
.esr-prose .esr-bear-table table { display: table; width: 100%; margin: 0; table-layout: fixed; border-collapse: collapse; font-size: 1rem; }
.esr-prose .esr-bear-table th, .esr-prose .esr-bear-table td { padding: 13px 16px; border: 1px solid #405059; vertical-align: middle; }
.esr-prose .esr-bear-table thead th { background: var(--esr-pine); color: #fff; font-weight: var(--wBold); text-align: center; }
.esr-prose .esr-bear-table thead th:first-child { text-align: left; }
.esr-prose .esr-bear-table tbody th { background: none; font-weight: normal; text-align: left; }
.esr-prose .esr-bear-table td { text-align: center; }
.esr-prose .esr-bear-table tbody tr:nth-child(even) { background: #F6F1EC; }
.esr-bear-table.is-collapsed .esr-row-more { display: none; }
.esr-table-toggle { display: flex; justify-content: center; align-items: center; gap: 1rem; width: 100%; padding: 1rem 0; border: 0; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); color: #405059; font: inherit; font-weight: var(--wBold); text-transform: none; letter-spacing: 0; cursor: pointer; }
.esr-table-toggle svg { width: 1.5rem; height: 1.5rem; transition: transform .2s ease-in-out; }
.esr-table-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.esr-table-toggle:hover, .esr-table-toggle:focus-visible { color: var(--esr-pine); }

/* Expert tips and the 150-foot rule (old centered italic blockquotes with a green rule under them) */
.esr-tip, .esr-callout { margin: var(--space-7) 0; padding: 0; border: 0; background: none; text-align: center; font-style: italic; font-size: 1.1875rem; color: #405059; }
.esr-tip::after, .esr-callout::after { content: ""; display: block; width: 3.5rem; height: 3px; margin: var(--space-5) auto 0; background: #74AF72; }
.esr-prose .esr-tip p, .esr-prose .esr-callout p { margin: 0 0 var(--space-4); }
.esr-prose .esr-tip-label { font-weight: normal; }
.esr-prose .esr-tip-title { font-weight: var(--wBold); color: #405059; }
.esr-prose .esr-tip blockquote { margin: 0; padding: 0; border: 0; background: none; font-family: inherit; font-size: inherit; color: inherit; }
.esr-prose .esr-tip-by { margin: 0; }
.esr-prose .esr-callout p:first-child { font-size: 1.3125rem; }
.esr-prose .esr-callout .esr-source { margin: 0; font-size: inherit; color: inherit; }

/* Appearance / Senses illustrations with fact cards (old .illustration--wrapper / .overlay--wrapper) */
.esr-prose .esr-illo { position: relative; margin: var(--space-6) 0; background: #f2ede8; }
.esr-prose .esr-illo-art img, .esr-illo-art svg { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.esr-illo-desktop { display: none !important; }
.esr-illo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-3); padding: var(--space-4); }
.esr-illo-card { padding: 1rem 2rem; border: 1px solid #405059; background: #fff; }
.esr-prose .esr-illo-card p, .esr-prose .esr-illo-card ul { margin-bottom: var(--space-3); font-size: 1rem; }
.esr-prose .esr-illo-card .esr-source { margin: 0; font-weight: var(--wBold); color: var(--esr-pine); }
.esr-prose .esr-illo-card .esr-illo-heading { margin: 1rem 0 22px; font-size: 1.625rem; font-weight: var(--wBold); color: #405059; line-height: 1.2; }
.esr-illo .feature-indicator:focus { outline: none; }
.esr-illo .feature-indicator:focus-visible { fill: #fff; stroke: #405059; stroke-width: 3px; }
.esr-illo.is-ready { display: grid; grid-template-areas: "stack"; }
.esr-illo.is-ready > * { grid-area: stack; }
.esr-illo.is-ready .esr-illo-cards { position: relative; display: none; width: 90%; padding: 0; place-self: center; border: 1px solid #405059; background: #fff; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.esr-illo.is-ready.has-card .esr-illo-cards { display: block; }
.esr-illo.is-ready .esr-illo-card { display: none; border: 0; }
.esr-illo.is-ready .esr-illo-card.active { display: block; }
.esr-illo-close { position: absolute; top: 0; right: 0; padding: .25rem .5rem .5rem; border: 0; background: none; font-size: 2rem; font-weight: 100; line-height: 1; color: #405059; cursor: pointer; }

/* Diet animation and Skills slider (old .carousel--wrapper) */
.esr-prose .esr-bear-video { margin: var(--space-6) 0; }
.esr-bear-video video { display: block; width: 100%; height: auto; background: #f2ede8; }
.esr-prose .esr-slider { position: relative; margin: var(--space-6) 0; }
.esr-prose .esr-slider-track { display: flex; margin: 0; padding: 0; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; }
.esr-slider-track::-webkit-scrollbar { display: none; }
.esr-prose .esr-slider-track li { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.esr-prose .esr-slider-track img { width: 100%; margin: 0; border-radius: 0; }
.esr-slider-btn { position: absolute; top: 45%; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-top: -1rem; padding: 0; border: 1px solid #405059; border-radius: 50%; background: #fff; color: #405059; cursor: pointer; transition: background-color .2s ease-in-out, color .2s ease-in-out; }
.esr-slider-btn svg { width: 60%; height: 60%; }
.esr-slider-btn:hover, .esr-slider-btn:focus-visible { border-color: var(--esr-pine); background: var(--esr-pine); color: #fff; }
.esr-slider-prev { left: .25rem; }
.esr-slider-next { right: .25rem; }

/* Myth cards (old .scene / .card): topographic statement cards that flip over to the answer on click.
   Without JavaScript they are details/summary cards that open to the answer. */
.esr-prose .esr-myths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: var(--space-5) 0; padding: 0; list-style: none; }
.esr-prose .esr-myths li { margin: 0; perspective: 1200px; }
.esr-myth-bg1 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-01.svg); } .esr-myth-bg2 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-02.svg); }
.esr-myth-bg3 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-03.svg); } .esr-myth-bg4 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-04.svg); }
.esr-myth-bg5 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-05.svg); } .esr-myth-bg6 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-06.svg); }
.esr-myth-bg7 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-07.svg); } .esr-myth-bg8 { --myth-bg: url(/images/pages/black-bear-facts/myth-bg-08.svg); }
.esr-flip-card { position: relative; display: block; width: 100%; height: 295px; padding: 0; border: 0; border-radius: 10px; background: none; color: #405059; font: inherit; text-align: left; cursor: pointer; transform-style: preserve-3d; transform-origin: right center; transition: transform .5s; }
.esr-flip-card.is-flipped { transform: translateX(-100%) rotateY(-180deg); }
.esr-flip-card:focus-visible { outline: 3px solid var(--esr-gold); outline-offset: 2px; }
.esr-flip-face { position: absolute; inset: 0; display: block; padding: 1rem; overflow: hidden; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.esr-flip-front { background: #F6F1EC var(--myth-bg) center / cover no-repeat; font-size: 1.25rem; font-weight: var(--wBold); line-height: 1.3; }
.esr-flip-back { transform: rotateY(180deg); overflow-y: auto; background: linear-gradient(rgba(64,80,89,.92), rgba(64,80,89,.92)), #405059 var(--myth-bg) center / cover no-repeat; color: #fff; font-size: 1.125rem; line-height: 1.4; }
.esr-flip-card.is-true .esr-flip-back { background: linear-gradient(rgba(70,122,68,.94), rgba(70,122,68,.94)), #467a44 var(--myth-bg) center / cover no-repeat; }
.esr-flip-icon { display: block; margin-bottom: 1rem; padding-top: 51px; background: url(/images/pages/black-bear-facts/myth-question.svg) left top / 46px 51px no-repeat; }
.esr-flip-verdict { display: block; margin-bottom: 1rem; }
.esr-flip-icon::after, .esr-flip-verdict::after { content: ""; display: block; width: 2.25rem; height: 5px; margin-top: 1rem; background: #74AF72; }
.esr-flip-verdict::after { background: #fff; }
.esr-flip-q, .esr-flip-a { display: block; }
@media (prefers-reduced-motion: reduce) { .esr-flip-card { transition: none; } }
/* no-JS fallback (details/summary) */
.esr-myth { position: relative; height: 100%; min-height: 15rem; overflow: hidden; border-radius: 10px; background: #F6F1EC var(--myth-bg) center / cover no-repeat; }
.esr-myth summary { display: block; height: 100%; min-height: 15rem; padding: 1rem; cursor: pointer; list-style: none; }
.esr-myth summary::-webkit-details-marker { display: none; }
.esr-myth summary::before { content: ""; display: block; width: 46px; height: 51px; margin-bottom: 1rem; background: url(/images/pages/black-bear-facts/myth-question.svg) left top / contain no-repeat; }
.esr-myth-q { font-size: 1.25rem; font-weight: var(--wBold); color: #405059; line-height: 1.3; }
.esr-myth[open] summary::before, .esr-myth[open] summary > * { visibility: hidden; }
.esr-prose .esr-myth-a { position: absolute; inset: 0; margin: 0; padding: 1rem; overflow-y: auto; background: #405059; color: #fff; font-size: 1.125rem; line-height: 1.4; }
.esr-myth-a strong { display: block; margin-bottom: 1rem; font-weight: normal; }
.esr-myth-true { background: #467a44 !important; }

@media (min-width: 768px) {
  .esr-illo-mobile { display: none !important; }
  .esr-illo-desktop { display: block !important; }
  .esr-illo.is-ready .esr-illo-cards { width: 50%; margin: 0 3rem 0 0; place-self: center end; }
  .esr-illo--senses.is-ready .esr-illo-cards { margin: 0 0 0 3rem; place-self: center start; }
  .esr-illo-close { display: none; }
  .esr-slider-btn { width: 3rem; height: 3rem; margin-top: -1.5rem; }
  .esr-slider-prev { left: 1rem; }
  .esr-slider-next { right: 1rem; }
  .esr-prose .esr-myths { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .esr-prose .esr-myths li { perspective: 600px; }
}
