/* ============================================================
 * Resource Guide — Home page (gh-* namespace)
 * Single-viewport launch deck: rail + collapsible town column + canvas.
 * Used only by /guide/index.html. Detail pages keep guide.css/guide-v2.css.
 * ============================================================ */

html, body { height: 100%; }

body.gh-body {
  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;
  overflow: hidden;
}

/* ---- shell ---- */
.gh-shell {
  --towns-w: 0px;
  display: grid;
  grid-template-columns: 330px var(--towns-w) 1fr;
  height: 100vh;
  width: 100vw;
  transition: grid-template-columns 0.28s cubic-bezier(.4,.2,.2,1);
}
.gh-shell.is-expanded { --towns-w: 210px; }

/* Desktop: per-column scroll when content exceeds viewport (short screens, zoom) */
@media (min-width: 880px) {
  /* Grid children default to min-height:auto, which blocks internal scroll */
  .gh-rail,
  .gh-towns,
  .gh-canvas {
    min-height: 0;
  }

  .gh-rail {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .gh-canvas__content {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* ---- left rail ---- */
.gh-rail {
  background: linear-gradient(180deg, #144a55 0%, #1a5f6d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0 1rem;
  min-width: 0;
}
.gh-rail__back {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.1rem 1.25rem 0.9rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.gh-rail__back:hover { color: #fff; }
.gh-rail__back-arrow {
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.gh-rail__back-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* ---- where-you-live toggle ---- */
.gh-where {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  text-align: left;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  font: inherit;
  transition: background 0.18s;
}
.gh-where:hover { background: rgba(244, 126, 96, 0.10); }
.gh-where[aria-expanded="true"] { background: rgba(244, 126, 96, 0.16); }
.gh-where__icon {
  color: var(--color-coral, #f47e60);
  font-size: 0.95rem;
}
.gh-where__text {
  display: flex; flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.gh-where__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.gh-where__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-golden, #d4a847);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gh-where__chev {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  transition: transform 0.22s;
}
.gh-where[aria-expanded="true"] .gh-where__chev {
  transform: rotate(90deg);
  color: var(--color-coral, #f47e60);
}

/* ---- topic list ---- */
.gh-topics {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0;
  flex: 1;
}
.gh-topic {
  display: grid;
  grid-template-columns: 4px 1.6rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.25rem 0.55rem 0;
  color: #fff;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: background 0.18s, border-left-color 0.18s;
}
.gh-topic:hover { background: rgba(255,255,255,0.06); }
.gh-topic[data-c="0"] { border-left-color: var(--section-0, #c2703e); }
.gh-topic[data-c="1"] { border-left-color: var(--section-1, #2a7a8a); }
.gh-topic[data-c="2"] { border-left-color: var(--section-2, #c49a2a); }
.gh-topic[data-c="3"] { border-left-color: var(--section-3, #6a8a5a); }
.gh-topic[data-c="4"] { border-left-color: var(--section-4, #3a7a2a); }
.gh-topic[data-c="5"] { border-left-color: var(--section-5, #8a4a6a); }
.gh-topic[data-c="6"] { border-left-color: var(--section-6, #4a6a8a); }
.gh-topic[data-c="7"] { border-left-color: var(--section-7, #8b6914); }
.gh-topic[data-c="events"] { border-left-color: rgba(212, 168, 71, 0.6); }
.gh-topic__spacer { width: 4px; }
.gh-topic__icon { font-size: 1.05rem; opacity: 0.9; }
.gh-topic__label {
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  padding-right: 0.5rem;
}
.gh-topic__count { font-size: 0.75rem; opacity: 0.55; }
.gh-topic--coming { cursor: default; }
.gh-topic--coming:hover { background: transparent; }
.gh-topic--coming .gh-topic__count {
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(212, 168, 71, 0.25);
  color: #d4a847;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  white-space: nowrap;
}

/* ---- rail footer ---- */
.gh-rail__footer {
  padding: 0.75rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.gh-rail__footer-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: space-between;
}
.gh-rail__footer-link:hover { color: #fff; }

/* ---- towns column (expands from rail) ---- */
.gh-towns {
  background: #f5f0e6;
  border-right: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 1.05rem 0 1rem;
  min-width: 0;
}
.gh-shell.is-expanded .gh-towns { overflow-y: auto; }
.gh-towns__heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7860;
  padding: 0 1rem 0.5rem;
  margin: 0;
}
.gh-towns__list { list-style: none; margin: 0; padding: 0; }
.gh-towns__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.45rem 1rem;
  cursor: pointer;
  color: var(--color-text-primary, #2c2416);
  font-size: 0.85rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-left-color 0.15s;
  white-space: nowrap;
}
.gh-towns__item:hover { background: rgba(244, 126, 96, 0.08); }
.gh-towns__item.is-selected {
  background: rgba(244, 126, 96, 0.14);
  border-left-color: var(--color-coral, #f47e60);
  font-weight: 600;
}
.gh-towns__item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.25);
  display: inline-block;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.gh-towns__item.is-selected .gh-towns__item-dot {
  background: var(--color-coral, #f47e60);
  border-color: var(--color-coral, #f47e60);
}
.gh-towns__item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.gh-towns__divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0.5rem 1rem;
}

/* ---- canvas ---- */
.gh-canvas {
  position: relative;
  overflow: hidden;
  background: #142e34;
  min-width: 0;
}
.gh-canvas__photo {
  position: absolute; inset: 0;
  background-image: url('/img/guide/clay-leconey-B8sVHSccjK4-unsplash.jpg');
  background-size: cover;
  background-position: center;
}
/* heavier dark on the text side, fading toward the right so the photo breathes */
.gh-canvas__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg,
      rgba(8, 22, 26, 0.78) 0%,
      rgba(8, 22, 26, 0.52) 45%,
      rgba(8, 22, 26, 0.20) 80%,
      rgba(8, 22, 26, 0.08) 100%),
    /* second pass — a subtle bottom-up wash to lift bottom content */
    linear-gradient(to top,
      rgba(8, 22, 26, 0.55) 0%,
      rgba(8, 22, 26, 0) 35%);
}
.gh-canvas__content {
  position: absolute; inset: 0;
  padding: clamp(0.9rem, 2vw, 1.4rem) clamp(2rem, 5vw, 3.75rem) clamp(0.85rem, 1.9vw, 1.2rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1.75rem;
  min-height: 100%;
  color: #faf7f2;
  /* belt-and-suspenders shadow for any text directly on photo */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.gh-canvas__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
}

.gh-header-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.35rem;
}

.gh-edition {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.9);
  text-align: right;
  white-space: nowrap;
}

.gh-canvas__controls {
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.45rem;
}

/* In-headline community picker (desktop) */
.gh-headline-town-wrap {
  position: relative;
  display: inline;
  white-space: nowrap;
}

.gh-headline-town {
  display: inline;
  margin: 0;
  padding: 0 0.12em;
  border: 0;
  background: transparent;
  color: var(--color-golden, #d4a847);
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: baseline;
  transition: color 0.18s ease, box-shadow 0.18s ease;
}

.gh-headline-town:hover,
.gh-headline-town:focus-visible,
.gh-headline-town-wrap.is-open .gh-headline-town {
  color: #f9c47a;
  text-shadow: inherit;
  outline: none;
}

.gh-headline-town:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  border-radius: 0.12em;
}

.gh-headline-town__caret {
  display: inline-block;
  font-size: 0.52em;
  line-height: 1;
  margin-left: 0.12em;
  opacity: 0.88;
  vertical-align: 0.18em;
  transition: transform 0.18s ease;
}

.gh-headline-town-wrap.is-open .gh-headline-town__caret {
  transform: rotate(180deg);
}

.gh-headline-town-wrap .gh-status__menu {
  left: 0;
  right: auto;
}

.gh-status__menu {
  display: block;
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 20;
  min-width: min(19rem, calc(100vw - 3rem));
  max-height: min(22rem, 55vh);
  overflow-y: auto;
  padding: 0.45rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  text-shadow: none;
}

.gh-status__menu[hidden] {
  display: none;
}

.gh-status__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--color-text-primary, #2c2416);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.65rem 0.8rem;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.gh-status__option:hover,
.gh-status__option:focus-visible {
  background: rgba(26, 95, 109, 0.08);
  color: var(--color-accent-dark, #144a55);
  outline: none;
}

.gh-status__option.is-selected {
  background: rgba(244, 126, 96, 0.12);
  color: var(--color-accent-dark, #144a55);
  font-weight: 600;
}

.gh-status__option-label {
  min-width: 0;
}

.gh-status__option-check {
  color: var(--color-coral-dark, #e06045);
  font-size: 0.82rem;
  opacity: 0;
}

.gh-status__option.is-selected .gh-status__option-check {
  opacity: 1;
}

.gh-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f9c47a;             /* warm lifted golden — readable on most photos */
  margin: 0 0 0.35rem;
  font-weight: 700;
}

/* Override the global h1 rules from shared.css (centered, accent-teal, ::after underline) */
.gh-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  line-height: 1.05;
  max-width: 30ch;
  font-weight: 700;
  margin: 0;
  text-align: left;
  text-wrap: balance;
  letter-spacing: -0.01em;
  color: #faf7f2;
  hyphens: manual;
}
.gh-headline::after { content: none; display: none; }
.gh-headline__line { display: inline; }
.gh-headline__line + .gh-headline__line::before { content: ' '; }

/* Desktop: show full sentence variant only. Mobile flips this. */
.gh-headline__mobile { display: none; }
.gh-headline__desktop { display: inline; }

/* Cover-mounted town pill (mobile only — hidden on desktop) */
.gh-cover-town { display: none; }

@media (min-width: 960px) {
  .gh-headline {
    width: fit-content;
    max-width: none;
    text-wrap: initial;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.9),
      0 2px 12px rgba(0, 0, 0, 0.75),
      0 4px 28px rgba(0, 0, 0, 0.5);
  }

  .gh-headline__line {
    display: block;
    white-space: nowrap;
  }

  .gh-headline__line + .gh-headline__line::before {
    content: none;
  }
}

.gh-lede {
  max-width: 48ch;
  margin: 1.1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #faf7f2;
}

.gh-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  width: 100%;
  max-width: 40rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
  text-shadow: none;
}
.gh-canvas__controls .gh-search {
  flex: 0 1 40rem;
  width: min(100%, 40rem);
  min-width: 0;
  margin-inline: auto;
}
.gh-search__icon {
  color: var(--color-accent, #1a5f6d);
  margin-right: 0.7rem;
}
.gh-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text-primary, #2c2416);
}
.gh-search__input::placeholder { color: var(--color-text-secondary, #5a4f3a); opacity: 0.85; }
/* Custom .gh-search__clear replaces the browser’s native clear control */
.gh-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.gh-search__input::-webkit-search-decoration,
.gh-search__input::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
}
.gh-search__input::-moz-search-clear-button {
  display: none;
}
.gh-search__clear {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text-secondary, #5a4f3a);
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  display: none;
}
.gh-search.has-clear .gh-search__clear { display: inline-flex; align-items: center; justify-content: center; }
.gh-search-results {
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  max-height: min(26rem, 50vh);
  /* search result flyout positioning — handled by guide-search.js */
}

/* ---- canvas center + footer rows ---- */
.gh-canvas__feature {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-top: 0.45rem;
}

.gh-canvas__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
  width: 100%;
  text-shadow: none;
}

.gh-canvas__presenter {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: min(100%, 40rem);
  text-align: center;
}

.gh-canvas__presenter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  line-height: 1.4;
}

.gh-canvas__presenter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.82);
}

.gh-canvas__presenter-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.gh-canvas__presenter-owl {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  filter: brightness(0) invert(1) contrast(1.05);
}

.gh-canvas__presenter-line--tagline {
  gap: 0;
  font-size: 0.95rem;
  color: rgba(250, 247, 242, 0.94);
}

.gh-canvas__presenter-link {
  color: var(--color-golden, #d4a847);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.gh-canvas__presenter-brand:hover,
.gh-canvas__presenter-brand:focus-visible {
  color: var(--color-golden, #d4a847);
}

.gh-canvas__presenter-link:hover,
.gh-canvas__presenter-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.gh-canvas__presenter-brand:focus-visible,
.gh-canvas__presenter-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
  border-radius: 999px;
}

.gh-credit {
  grid-column: 3;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.72);
  justify-self: end;
  align-self: end;
  text-align: right;
}

.gh-credit a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.gh-credit a:hover,
.gh-credit a:focus-visible {
  color: var(--color-golden, #d4a847);
}

/* ---- featured resource card ---- */
.gh-featured-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 680px) auto;
  align-items: center;
  gap: 1rem;
  width: min(100%, 860px);
}

.gh-featured-carousel__nav {
  width: 3.75rem;
  height: 3.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 2.15rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}

.gh-featured-carousel__nav:hover,
.gh-featured-carousel__nav:focus-visible {
  transform: translateY(-1px);
  background: rgba(244, 126, 96, 0.2);
  border-color: rgba(244, 126, 96, 0.5);
  outline: none;
}

.gh-featured {
  display: block;
  width: min(100%, 680px);
  max-width: 680px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.15rem 1.65rem 1.35rem;
  color: var(--color-text-primary, #2c2416);
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.45);
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.gh-featured:hover,
.gh-featured:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  outline: none;
}
.gh-featured__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-coral-dark, #e06045);
  font-weight: 700;
  margin: 0 0 0.25rem;
  text-align: center;
}
.gh-featured__eyebrow-icon { font-size: 0.85rem; color: var(--color-coral, #f47e60); }
.gh-featured__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: var(--color-accent-dark, #144a55);
}
.gh-featured__category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: var(--color-accent-dark, #144a55);
  background: rgba(26, 95, 109, 0.1);
  margin: 0 0 0.5rem;
}
.gh-featured__category[hidden] { display: none; }
.gh-featured__desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-secondary, #5a4f3a);
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gh-featured__url {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-accent, #1a5f6d);
  margin: 0 0 0.65rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.gh-featured__url[hidden] { display: none; }
.gh-featured:hover .gh-featured__url,
.gh-featured:focus-visible .gh-featured__url,
.gh-featured__url:hover,
.gh-featured__url:focus-visible {
  color: var(--color-coral-dark, #e06045);
  text-decoration: underline;
}
.gh-featured__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.gh-featured__position {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(90, 79, 58, 0.88);
}
.gh-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent, #1a5f6d);
}
.gh-featured:hover .gh-featured__cta { color: var(--color-coral-dark, #e06045); }

/* ---- featured resource modal ---- */
.gh-featured-modal .modal-content {
  max-width: 760px;
  height: auto;
}

.gh-featured-modal .modal-header {
  align-items: flex-start;
  gap: 1rem;
}

.gh-featured-modal .modal-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.15;
  color: var(--color-accent-dark, #144a55);
}

.gh-featured-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gh-featured-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gh-featured-modal__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(26, 95, 109, 0.08);
  color: var(--color-accent-dark, #144a55);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gh-featured-modal__tag--section {
  background: rgba(244, 126, 96, 0.12);
  color: var(--color-coral-dark, #e06045);
}

a.gh-featured-modal__tag--section {
  text-decoration: none;
  cursor: pointer;
}

a.gh-featured-modal__tag--section:hover,
a.gh-featured-modal__tag--section:focus-visible {
  text-decoration: underline;
}

.gh-featured-modal__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-primary, #2c2416);
}

.gh-featured-modal__meta {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(26, 95, 109, 0.14);
  border-bottom: 1px solid rgba(26, 95, 109, 0.14);
}

.gh-featured-modal__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 0;
}

.gh-featured-modal__meta-row + .gh-featured-modal__meta-row {
  border-top: 1px solid rgba(26, 95, 109, 0.1);
}

.gh-featured-modal__meta-row dt {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary, #5a4f3a);
}

.gh-featured-modal__meta-row dd {
  margin: 0;
  color: var(--color-text-primary, #2c2416);
  line-height: 1.55;
}

.gh-featured-modal__website {
  margin: 0.5rem 0 0;
  text-align: center;
}

.gh-featured-modal__website a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-accent, #1a5f6d);
  text-decoration: none;
}

.gh-featured-modal__website a:hover,
.gh-featured-modal__website a:focus-visible {
  color: var(--color-coral-dark, #e06045);
  text-decoration: underline;
}

/* Default (desktop): hide the mobile-only presenter copy variants. */
.gh-canvas__presenter-label--mobile { display: none; }
.gh-canvas__presenter-line--mobile { display: none; }

/* ---- mobile layout (≤879px) — Variation A: cover + peeking sheet ----
 * Topbar + sheet chrome lives in guide-mobile.css (shared with section pages).
 * Rules below are home-specific: hero/canvas overrides + featured carousel.
 */
@media (max-width: 879px) {
  body.gh-body { overflow: auto; background: #0d3a44; }

  /* Hide desktop chrome on mobile */
  .gh-rail,
  .gh-towns,
  .gh-canvas__controls { display: none !important; }

  /* Shell becomes a single-column flow */
  .gh-shell {
    display: block !important;
    grid-template-columns: none !important;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Canvas → fullscreen magazine cover, then below-the-fold content */
  .gh-canvas {
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
  }
  .gh-canvas__photo {
    position: absolute; inset: 0;
    background-image: url('/img/guide/clay-leconey-B8sVHSccjK4-unsplash-mobile.jpg');
    background-position: center center;
  }
  .gh-canvas__veil {
    background: linear-gradient(to bottom,
      rgba(13,58,68,0.12) 0%,
      rgba(13,58,68,0.32) 45%,
      rgba(13,58,68,0.88) 92%);
  }
  .gh-canvas__content {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    /* Bottom padding matches peeking sheet height so footer sits just above the sheet top edge */
    padding: calc(env(safe-area-inset-top, 0px) + 5.5rem) 1.2rem
      calc(var(--gh-mb-sheet-peek, 130px) + env(safe-area-inset-bottom, 0px) + 0.5rem);
    gap: 0;
    display: flex; flex-direction: column;
    box-sizing: border-box;
  }
  .gh-canvas__header {
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  /* The eyebrow + edition are shown in the mobile topbar instead. */
  .gh-header-topbar { display: none; }

  /* Mobile headline: smaller font, centered, two-line wrap */
  .gh-headline {
    font-size: clamp(1.95rem, 8vw, 2.6rem);
    line-height: 1.08;
    text-shadow: 0 1px 12px rgba(0,0,0,0.32);
    margin: 0.25rem auto 0;
    max-width: none;
    text-align: center;
  }
  .gh-headline__desktop { display: none; }
  .gh-headline__mobile { display: block; }
  .gh-headline__mobile .gh-headline__line {
    display: block;
    white-space: nowrap;
  }
  .gh-headline__mobile .gh-headline__line + .gh-headline__line::before {
    content: none;
  }

  /* In-sentence town pill — completes the headline */
  .gh-cover-town {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.55rem auto 0;
    padding: 0.3rem 0.95rem 0.4rem;
    background: rgba(13, 58, 68, 0.32);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(244, 126, 96, 0.55);
    color: var(--color-coral-light, #f79b82);
    border-radius: 0.55rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.95rem, 8vw, 2.6rem);
    font-weight: 700;
    line-height: 1.08;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 0 1px 12px rgba(0,0,0,0.55);
  }
  .gh-cover-town:active {
    background: rgba(244, 126, 96, 0.22);
  }
  .gh-cover-town__caret {
    font-style: normal;
    font-size: 0.6em;
    opacity: 0.85;
    transform: translateY(-0.12em);
  }

  /* Guide home: longer sheet subtitle — slightly taller peek + title-case eyebrow */
  body.gh-body:has(.gh-mb-sheet--home) {
    --gh-mb-sheet-peek: 142px;
  }
  .gh-mb-sheet--home .gh-mb-sheet__trigger-eyebrow {
    text-transform: none;
    letter-spacing: 0.06em;
  }
  .gh-mb-sheet--home .gh-mb-sheet__trigger-text {
    min-width: 0;
  }

  /* Featured Resource carousel is hidden on mobile — too little room. */
  .gh-canvas__feature { display: none; }

  /* Presenter + credit sit just above the peeking sheet (padding-bottom matches sheet peek) */
  .gh-canvas__footer {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0;
    flex-shrink: 0;
    padding-top: 0.75rem;
    color: rgba(255,255,255,0.85);
  }
  .gh-canvas__presenter {
    align-self: center;
    text-align: center;
    max-width: min(100%, 22rem);
    padding: 0.65rem 1rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(8, 22, 26, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .gh-canvas__presenter-line {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 18px rgba(0, 0, 0, 0.45);
  }
  .gh-canvas__presenter-line--tagline {
    font-weight: 500;
    color: rgba(250, 247, 242, 0.98);
  }
  .gh-canvas__footer .gh-credit {
    align-self: end;
    text-align: right;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 4px rgba(0,0,0,0.75), 0 2px 12px rgba(0,0,0,0.5);
    margin-top: 0;
    padding: 0.2rem 0 0;
  }
  .gh-canvas__presenter-brand,
  .gh-canvas__presenter-link,
  .gh-canvas__footer .gh-credit a {
    color: #fff;
  }

  /* Mobile-only presenter copy swaps */
  .gh-canvas__presenter-label--desktop { display: none; }
  .gh-canvas__presenter-label--mobile { display: inline; }
  .gh-canvas__presenter-line--desktop { display: none; }
  .gh-canvas__presenter-line--mobile { display: block; }

  /* Featured modal: full-width on mobile */
  .gh-featured-modal .modal-content {
    max-width: 100%;
  }
  .gh-featured-modal__meta-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
