/* ============================================================
 * Resource Guide — Deep page chrome (gd-* + adaptive rail)
 *
 * Used by every deep guide page: shopping, food, transportation,
 * energy, waste, nature, community, government, events, practices.
 *
 * Builds on guide-rail.css (the persistent teal rail) and reuses
 * cards/chips/longform from guide-v2.css. Adds:
 *
 *   - the deep-page shell (scrollable canvas, sticky rail)
 *   - adaptive rail behavior (full / slim-icon / drawer)
 *   - .gd-hero: section-colored hero band w/ breadcrumb + lede
 *   - .gd-filterbar: sticky chip filter wrapper
 *   - .gd-explore: "continue exploring" 3-card strip
 *   - .gd-foot: slim guide footer overrides
 *
 * Page-specific tweaks live in guide-practices.css / guide-events.css.
 * ============================================================ */

/* ----------------------------------------------------------
 * Shell: persistent rail (left) + scrolling canvas (right)
 * ---------------------------------------------------------- */

html, body { height: auto; }

body.gh-deep {
  margin: 0;
  background: var(--color-bg-cream, #faf7f2);
  color: var(--color-text-primary, #2c2416);
  font-family: 'Poppins', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gh-shell--deep {
  --rail-w: 224px;
  --towns-w: 0px;
  display: grid;
  grid-template-columns: var(--rail-w) var(--towns-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.28s cubic-bezier(.4,.2,.2,1);
}
.gh-shell--deep.is-expanded { --towns-w: 220px; }

.gh-shell--deep .gh-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 30;
}
.gh-shell--deep .gh-towns {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  z-index: 20;
}
.gh-shell--deep .gh-canvas {
  min-width: 0;
  background: var(--color-bg-cream, #faf7f2);
}

/* ----------------------------------------------------------
 * Desktop compact rail (880px+)
 *
 * Deep pages keep the rail slimmer than the guide home rail so
 * the canvas can prioritize resources, while still surfacing
 * short readable labels. The mobile drawer continues to use the
 * same rail below.
 * ---------------------------------------------------------- */

@media (min-width: 880px) {
  .gh-shell--deep {
    --rail-w: 224px;
  }

  .gh-shell--deep .gh-rail .gh-rail__back {
    gap: 0.5rem;
    padding: 0.05rem 0.95rem 0.8rem;
  }

  .gh-shell--deep .gh-rail .gh-rail__back-arrow {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.82rem;
  }

  .gh-shell--deep .gh-rail .gh-rail__back-label {
    font-size: 0.96rem;
  }

  .gh-shell--deep .gh-rail .gh-where {
    grid-template-columns: 1.15rem minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.68rem 0.95rem;
  }

  .gh-shell--deep .gh-rail .gh-where__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 0.9rem;
  }

  .gh-shell--deep .gh-rail .gh-where__eyebrow {
    letter-spacing: 0.14em;
  }

  .gh-shell--deep .gh-rail .gh-where__value {
    font-size: 0.84rem;
  }

  .gh-shell--deep .gh-rail .gh-where__chev {
    font-size: 0.72rem;
  }

  .gh-shell--deep .gh-rail .gh-topics {
    padding-top: 0.35rem;
  }

  .gh-shell--deep .gh-rail .gh-topic {
    grid-template-columns: 1.15rem minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.5rem 0.95rem;
    border-left-width: 3px;
    background: transparent;
  }

  .gh-shell--deep .gh-rail .gh-topic:hover {
    background: rgba(255,255,255,0.07);
  }

  .gh-shell--deep .gh-rail .gh-topic__spacer {
    display: none;
  }

  .gh-shell--deep .gh-rail .gh-topic__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    font-size: 0.92rem;
    opacity: 0.92;
  }

  .gh-shell--deep .gh-rail .gh-topic__label {
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0;
  }

  .gh-shell--deep .gh-rail .gh-topic__count {
    min-width: 1rem;
    text-align: right;
    font-size: 0.68rem;
    opacity: 0.58;
  }

  .gh-shell--deep .gh-rail .gh-topic:hover .gh-topic__icon,
  .gh-shell--deep .gh-rail .gh-topic:focus-visible .gh-topic__icon {
    transform: translateY(-1px);
  }

  .gh-shell--deep .gh-rail .gh-topic--current {
    background: rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  }

  .gh-shell--deep .gh-rail .gh-topic--current .gh-topic__icon {
    opacity: 1;
  }

  .gh-shell--deep .gh-rail .gh-topic[data-c="0"] .gh-topic__icon { color: var(--section-0, #c2703e); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="1"] .gh-topic__icon { color: var(--section-1, #2a7a8a); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="2"] .gh-topic__icon { color: var(--section-2, #c49a2a); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="3"] .gh-topic__icon { color: var(--section-3, #6a8a5a); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="4"] .gh-topic__icon { color: var(--section-4, #3a7a2a); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="5"] .gh-topic__icon { color: var(--section-5, #8a4a6a); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="6"] .gh-topic__icon { color: var(--section-6, #4a6a8a); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="7"] .gh-topic__icon { color: var(--section-7, #8b6914); }
  .gh-shell--deep .gh-rail .gh-topic[data-c="events"] .gh-topic__icon { color: var(--color-golden, #d4a847); }

  .gh-shell--deep .gh-rail .gh-rail__footer {
    padding: 0.8rem 0.95rem 0;
    gap: 0.45rem;
  }

  .gh-shell--deep .gh-rail .gh-rail__footer-link {
    font-size: 0.76rem;
    line-height: 1.3;
    padding: 0.05rem 0;
  }

  .gh-shell--deep .gh-rail .gh-rail__footer-link[aria-current="page"] {
    color: #fff;
    font-weight: 600;
  }
}

/* ----------------------------------------------------------
 * Drawer rail (<880px)
 *
 * Rail hides; a 56px teal topbar replaces it with a hamburger
 * that opens the full rail as a slide-in drawer.
 * ---------------------------------------------------------- */

.gd-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  gap: 0.65rem;
  height: 56px;
  padding: 0 0.9rem;
  background: linear-gradient(180deg, #144a55 0%, #1a5f6d 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.gd-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
}
.gd-topbar__brand:hover { color: #fff; }
.gd-topbar__brand-arrow {
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.gd-topbar__spacer { flex: 1; }
.gd-topbar__menu {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}
.gd-topbar__menu:hover { background: rgba(255,255,255,0.18); }

.gd-scrim {
  position: fixed;
  inset: 0;
  background: rgba(8,22,26,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 45;
}
.gd-scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 879px) {
  body.gh-deep { background: var(--color-bg-cream, #faf7f2); }

  .gh-shell--deep {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  /* Replace the old drawer + gd-topbar with the new mobile chrome
     (gh-mb-topbar + gh-mb-sheet) defined in guide-mobile.css. */
  .gd-topbar,
  .gd-scrim,
  .gh-shell--deep .gh-rail,
  .gh-shell--deep .gh-towns { display: none !important; }

  .gh-shell--deep .gh-canvas { min-height: auto; }

  /* Deep pages: no fixed gh-mb-topbar — hero topline is sticky; safe-area only. */
  body.gh-deep {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 9rem;
    --gd-hero-topline-h: calc(env(safe-area-inset-top, 0px) + 3rem);
  }
}

/* ----------------------------------------------------------
 * .gd-hero — section-colored hero band
 *
 * Drives off var(--section-color) / var(--section-color-dark)
 * set inline on the <main data-section="...">. Optional
 * --section-photo url for a faint background image.
 * ---------------------------------------------------------- */

.gd-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--section-color-light, #f5efe2) 0%,
    var(--color-bg-cream, #faf7f2) 100%);
  border-bottom: 1px solid rgba(20, 18, 12, 0.07);
  color: var(--color-text-primary, #2c2416);
  padding: clamp(0.95rem, 2.4vw, 1.35rem) clamp(1rem, 3vw, 2rem) clamp(0.9rem, 2vw, 1.2rem);
}
.gd-hero__photo {
  display: none;
}
.gd-hero__veil {
  display: none;
}
.gd-hero__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}
.gd-hero__copy {
  display: grid;
  gap: 0.8rem;
  max-width: none;
}
.gd-hero__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary, #2c2416);
  margin: 0;
}
.gd-hero__breadcrumb a {
  color: var(--color-accent-dark, #144a55);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 74, 85, 0.18);
  padding-bottom: 0.02rem;
}
.gd-hero__breadcrumb a:hover {
  color: var(--color-accent, #1a5f6d);
  border-bottom-color: rgba(20, 74, 85, 0.38);
}
.gd-hero__breadcrumb-home-label--short { display: none; }
.gd-hero__topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: var(--section-color-dark, var(--color-accent-dark, #144a55));
  box-shadow: 0 1px 4px rgba(20, 18, 12, 0.08);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.gd-hero__topic-name {
  color: var(--color-text-primary, #2c2416);
}
.gd-hero__topic-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--color-text-primary, #2c2416);
  cursor: pointer;
  text-align: left;
  line-height: inherit;
}
.gd-hero__topic-toggle:hover .gd-hero__topic-name {
  color: var(--color-accent-dark, #144a55);
}
.gd-hero__topic-toggle:focus-visible {
  outline: 2px solid var(--color-accent, #1a5f6d);
  outline-offset: 2px;
  border-radius: 2px;
}
.gd-hero__topic-chevron {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary, #5a4f3a);
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}
.gd-hero__topic-toggle[aria-expanded="false"] .gd-hero__topic-chevron {
  transform: rotate(-90deg);
}
.gd-hero__lede[hidden] {
  margin: 0;
}
.gd-hero__topline {
  min-width: 0;
  flex: 1 1 auto;
}
.gd-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.gd-hero__search {
  flex: 1 1 300px;
  width: min(100%, 360px);
  max-width: 360px;
  margin-left: auto;
}
.gd-search.gv2-search {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
}
.gd-search .gv2-search__icon {
  width: 44px;
  color: var(--section-color-dark, var(--color-accent-dark, #144a55));
}
.gd-search .gv2-search__input {
  font-size: 0.95rem;
}
.gd-search .gv2-search__clear {
  padding: 0 0.9rem;
  font-size: 1.05rem;
}
.gd-hero__lede {
  margin: 0;
  max-width: none;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.55;
  color: var(--color-text-secondary, #5a4f3a);
}
.gd-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  text-shadow: none;
}

.gd-hero .gv2-town-chip {
  height: 44px;
  background: rgba(255,255,255,0.96);
  color: var(--color-text-primary, #2c2416);
  border-color: rgba(26, 95, 109, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
}
.gd-hero .gv2-town-chip:hover { background: #fff; }
.gd-hero .gv2-town-chip__label-town {
  color: var(--section-color-dark, var(--color-accent-dark, #144a55));
}

@media (max-width: 720px) {
  .gd-hero {
    padding-top: 0.8rem;
    padding-bottom: 0.85rem;
  }
  .gd-hero__row {
    align-items: stretch;
  }
  .gd-hero__search {
    max-width: none;
  }
  .gd-hero__breadcrumb {
    font-size: 1rem;
  }
}

/* ----------------------------------------------------------
 * .gd-filterbar — sticky chip filter wrapper
 *
 * Wraps the existing .gv2-filter-bar so it remains reachable
 * while the user scrolls long card grids.
 * ---------------------------------------------------------- */

.gd-filterbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.gd-filterbar > .gv2-filter-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  border-bottom: 0; /* sticky wrapper already has the border */
}

@media (max-width: 879px) {
  body.gh-deep .gd-hero__breadcrumb-home-label--long { display: none; }
  body.gh-deep .gd-hero__breadcrumb-home-label--short { display: inline; }

  /* Sit under sticky .gd-hero__topline when filter bar is visible (desktop resize edge cases) */
  body.gh-deep .gd-filterbar {
    top: var(--gd-hero-topline-h, 3rem);
  }

  body.gh-deep .gd-hero__topline {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 18;
    align-self: stretch;
    margin-left: calc(-1 * clamp(1rem, 3vw, 2rem));
    margin-right: calc(-1 * clamp(1rem, 3vw, 2rem));
    padding: 0.4rem clamp(1rem, 3vw, 2rem) 0.5rem;
    background: linear-gradient(180deg,
      var(--section-color-light, #f5efe2) 0%,
      var(--section-color-light, #f5efe2) 100%);
    box-shadow: 0 1px 0 rgba(20, 18, 12, 0.07);
  }

  main.guide-resource-mobile .gd-hero__meta {
    display: none;
  }

  main.guide-resource-mobile .gd-filterbar {
    display: none;
  }

  /* Resource guide mobile: edge-to-edge hero chrome + flush search accordion
     (reclaims vertical space; reads as a bar, not a nested input card). */
  body.gh-deep main.guide-resource-mobile .gd-hero {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  body.gh-deep main.guide-resource-mobile .gd-hero__topline {
    margin-left: 0;
    margin-right: 0;
    flex: 1 1 100%;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 0.35rem;
  }
  body.gh-deep main.guide-resource-mobile .gd-hero__lede {
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
  }
  body.gh-deep main.guide-resource-mobile .gd-hero__row {
    gap: 0;
  }
  body.gh-deep main.guide-resource-mobile .gd-hero__copy {
    gap: 0.65rem;
  }

  /* Search accordion (built by guide-section-page.js) */
  .gd-search-accordion {
    flex: 1 1 100%;
    min-width: 0;
    margin-top: 0.35rem;
  }
  main.guide-resource-mobile .gd-search-accordion {
    margin-top: 0;
    align-self: stretch;
    width: 100%;
  }
  .gd-search-accordion__trigger {
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 95, 109, 0.22);
    border-left: 3px solid var(--section-color-dark, var(--color-accent-dark, #144a55));
    background: rgba(26, 95, 109, 0.07);
    color: var(--color-text-primary, #2c2416);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
  }
  main.guide-resource-mobile .gd-search-accordion__trigger {
    border-radius: 0;
    border: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(20, 18, 12, 0.1);
    padding: 0.4rem clamp(1rem, 3vw, 2rem);
    background: var(--section-color-light, #f5efe2);
    box-shadow: none;
  }
  main.guide-resource-mobile .gd-search-accordion__trigger:hover {
    background: rgba(255, 255, 255, 0.42);
    border-bottom-color: rgba(20, 18, 12, 0.14);
  }
  .gd-search-accordion__trigger:hover {
    border-color: rgba(26, 95, 109, 0.32);
    background: rgba(26, 95, 109, 0.1);
  }
  .gd-search-accordion__trigger:focus-visible {
    outline: 2px solid var(--color-accent, #1a5f6d);
    outline-offset: 2px;
  }
  main.guide-resource-mobile .gd-search-accordion__trigger:focus-visible {
    outline-offset: -2px;
  }
  .gd-search-accordion__trigger-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .gd-search-accordion__trigger-icon {
    color: var(--section-color-dark, var(--color-accent-dark, #144a55));
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
  }
  .gd-search-accordion__trigger-chevron {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--section-color-dark, var(--color-accent-dark, #144a55));
    font-size: 0.72rem;
    transition: transform 0.2s ease;
  }
  .gd-search-accordion__trigger[aria-expanded="true"] .gd-search-accordion__trigger-chevron {
    transform: rotate(180deg);
  }
  .gd-search-accordion__trigger[aria-expanded="true"] {
    border-radius: 12px 12px 0 0;
    border-bottom-color: transparent;
  }
  main.guide-resource-mobile .gd-search-accordion__trigger[aria-expanded="true"] {
    border-radius: 0;
    border-bottom: 1px solid rgba(20, 18, 12, 0.06);
    background: rgba(255, 255, 255, 0.72);
  }
  .gd-search-accordion__panel {
    margin-top: -1px;
    padding: 0.65rem 0.75rem 0.85rem;
    border: 1px solid rgba(26, 95, 109, 0.2);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }
  main.guide-resource-mobile .gd-search-accordion__panel {
    margin-top: 0;
    padding: 0.55rem clamp(1rem, 3vw, 2rem) 0.75rem;
    border: 0;
    border-bottom: 1px solid rgba(20, 18, 12, 0.08);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
  }
  .gd-search-accordion__panel[hidden] {
    display: none !important;
  }
  .gd-search-accordion .gd-search {
    max-width: none;
    width: 100%;
    margin-bottom: 0.75rem;
  }
  .gd-search-accordion__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem 0.65rem;
    font-size: 0.78rem;
    color: var(--color-text-secondary, #5a4f3a);
  }
  .gd-search-accordion__kw {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    align-self: center;
    color: var(--color-accent-dark, #144a55);
  }
  .gd-search-accordion__field {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }
  .gd-search-accordion__lbl {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary, #5a4f3a);
  }
  .gd-search-accordion__where,
  .gd-search-accordion__what,
  .gd-search-accordion__sort {
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.32rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(26, 95, 109, 0.22);
    background: var(--color-bg-cream, #faf7f2);
    color: var(--color-text-primary, #2c2416);
    max-width: 42vw;
  }
  .gd-search-accordion__what {
    max-width: 52vw;
  }
}

@media (min-width: 880px) {
  body.gh-deep .gd-hero__topline {
    position: static;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    align-self: auto;
  }
}

/* ----------------------------------------------------------
 * Canvas content wrapper
 * ---------------------------------------------------------- */

.gd-main {
  padding: clamp(1.15rem, 3vw, 2.2rem) clamp(1.1rem, 4vw, 2.75rem);
}
.gd-main__inner { max-width: 1080px; margin: 0 auto; }
.gd-main + .gd-main { padding-top: 0; }

/* ----------------------------------------------------------
 * .gd-explore — Continue exploring strip
 * ---------------------------------------------------------- */

.gd-explore {
  background: var(--color-bg-warm, #f5efe2);
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.gd-explore__inner { max-width: 1080px; margin: 0 auto; }
.gd-explore__eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary, #5a4f3a);
  margin: 0 0 0.4rem;
  font-weight: 700;
}
.gd-explore__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--color-accent-dark, #144a55);
}
.gd-explore__title::after { content: none; display: none; }
.gd-explore__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
@media (max-width: 879px) {
  .gd-explore__row { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
 * .gd-foot — slim guide footer overrides
 * ---------------------------------------------------------- */

.gd-foot {
  background: #142e34;
  color: rgba(255,255,255,0.85);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 3rem);
}
.gd-foot__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  font-size: 0.88rem;
}
.gd-foot h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}
.gd-foot h3::after { content: none; display: none; }
.gd-foot p { margin: 0 0 0.5rem; color: rgba(255,255,255,0.78); }
.gd-foot ul { list-style: none; margin: 0; padding: 0; }
.gd-foot li { margin: 0.15rem 0; }
.gd-foot a {
  color: var(--color-golden, #d4a847);
  text-decoration: none;
}
.gd-foot a:hover { color: #fff; }
@media (max-width: 720px) {
  .gd-foot__inner { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
 * Inline callout used to replace the moved practices list in
 * community.html (and similar "see the dedicated page" blocks).
 * ---------------------------------------------------------- */

.gd-callout {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius, 8px);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: var(--spacing-md, 1.5rem) 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.gd-callout__icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--color-bg-warm, #f5efe2);
  color: var(--color-accent, #1a5f6d);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.gd-callout__body h3 {
  margin: 0 0 0.25rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--color-accent-dark, #144a55);
}
.gd-callout__body h3::after { content: none; display: none; }
.gd-callout__body p { margin: 0; color: var(--color-text-secondary, #5a4f3a); font-size: 0.92rem; }
@media (max-width: 600px) {
  .gd-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .gd-callout__icon { margin: 0 auto; }
}

/* ----------------------------------------------------------
 * .gv2-toolbar — desktop search + filter row above results
 *
 * Replaces the old hero search box and chip-style filter bar.
 * Hidden on mobile (the accordion in guide-section-page.js takes over).
 * ---------------------------------------------------------- */

.gv2-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 var(--spacing-md, 1.25rem);
  flex-wrap: wrap;
}
.gv2-toolbar .gd-search,
.gv2-toolbar .gv2-search {
  flex: 1 1 280px;
  min-width: 0;
  height: 44px;
}
.gv2-toolbar .gv2-search__icon { width: 44px; }

.gv2-filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 44px;
  padding: 0 1rem;
  background: var(--color-card-bg, #fff);
  border: 1.5px solid rgba(26, 95, 109, 0.22);
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary, #2c2416);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.gv2-filter-btn:hover { background: var(--color-bg-warm, #f3ece1); }
.gv2-filter-btn.is-filtered {
  background: var(--color-card-bg, #fff);
  border-color: var(--section-color, var(--color-accent));
  color: var(--section-color, var(--color-accent));
}
.gv2-filter-btn.is-filtered:hover { background: var(--color-bg-warm, #f3ece1); }
.gv2-filter-btn[aria-expanded="true"] {
  background: var(--section-color, var(--color-accent));
  border-color: var(--section-color, var(--color-accent));
  color: #fff;
}
.gv2-filter-btn__caret {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.1rem;
}

/* Dropdown panel that floats below the .gv2-filter-btn. The parent (.gv2-toolbar
 * has flex children, so guide-filter-dropdown.js sets position:relative on
 * the immediate wrapper before appending the panel. */
.gv2-filter-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 240px;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  background: var(--color-card-bg, #fff);
  border: 1px solid rgba(26, 95, 109, 0.18);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 18, 12, 0.18);
  padding: 0.35rem 0;
}
.gv2-filter-panel[hidden] { display: none; }

.gv2-filter-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text-primary, #2c2416);
  cursor: pointer;
  text-align: left;
}
.gv2-filter-row:hover { background: var(--color-bg-warm, #f3ece1); }
.gv2-filter-row__input {
  /* Visually hidden — we render our own check mark via .gv2-filter-row__check. */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.gv2-filter-row__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(26, 95, 109, 0.32);
  border-radius: 4px;
  background: #fff;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}
.gv2-filter-row.is-active .gv2-filter-row__check {
  background: var(--section-color, var(--color-accent));
  border-color: var(--section-color, var(--color-accent));
}
.gv2-filter-row__label { flex: 1 1 auto; }
.gv2-filter-row__count {
  font-size: 0.82rem;
  color: var(--color-text-secondary, #5a4f3a);
}
.gv2-filter-row--all {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* Hero-mounted List/Calendar toggle on events.html — same slot the search
 * used to occupy. Drop the extra .ge-modeswitch margins picked up from
 * guide-events.css.  */
.gd-hero__meta .ge-mode-toggle {
  margin: 0;
}

@media (max-width: 879px) {
  /* Standard sections build a mobile accordion in JS; hide their toolbar so
   * the accordion takes over. Events has no accordion — leave its toolbar
   * visible so search and filters keep working on mobile. */
  main.guide-resource-mobile .gv2-toolbar { display: none; }
  /* Wrap toolbar contents on narrow screens so dropdowns fit. */
  main[data-section="events"] .gv2-toolbar { flex-wrap: wrap; }
}
