/* Phoenician Garden — site chrome (header, megamenu, mobile drawer, footer)
   Installed from the NH standard nav kit. Install date: 2026-05-17.
   Tokens at the top are PG brand values; every other rule is the kit
   verbatim (kit references --nh-* variable names; values resolve to PG
   colors so the rules don't need editing). */

:root {
  /* Brand palette (PG values, kit variable names) */
  --nh-paper:     #FFFFFF;
  --nh-cream:     #F5F0EB;
  --nh-stone:     #E8DFD5;
  --nh-stone-2:   #CFC7B9;
  --nh-mute:      #767676;
  --nh-ink-2:     #2C2C2C;
  --nh-ink:       #1A1A1A;

  /* Primary brand = PG terracotta (kit's --nh-red slot) */
  --nh-red:       #C4704B;
  --nh-red-deep:  #B5613D;
  --nh-red-soft:  #D88C6B;

  /* Secondary accent = PG olive (kit's --nh-teal slot) */
  --nh-teal:      #6B7C4E;
  --nh-teal-deep: #546340;
  --nh-teal-soft: #D4B97E;

  /* Semantic tokens */
  --bg:           var(--nh-paper);
  --bg-alt:       var(--nh-cream);
  --bg-deep:      var(--nh-ink);
  --fg:           var(--nh-ink);
  --fg-mute:      var(--nh-mute);
  --on-deep:      var(--nh-cream);
  --on-deep-mute: rgba(245, 240, 235, 0.62);
  --line:         rgba(26, 26, 26, 0.10);
  --line-strong:  rgba(26, 26, 26, 0.22);

  /* Typography (PG fonts, already self-hosted in /fonts/) */
  --font-display:   "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:      "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  /* Spacing scale */
  --space-4:  4px;
  --space-8:  8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  /* Layout */
  --maxw:        1280px;
  --gap:         24px;
  --pad-card:    28px;
  --pad-section: clamp(64px, 9vw, 128px);

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   22px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06), 0 1px 0 rgba(26, 26, 26, 0.04);
  --shadow-md: 0 6px 20px -6px rgba(26, 26, 26, 0.18), 0 2px 6px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(26, 26, 26, 0.30), 0 8px 20px -10px rgba(26, 26, 26, 0.18);

  --header-h: 72px;
}

/* Minimal button system the kit's header / drawer expect. Kept compact
   because PG's per-page CSS already has its own .pg-btn-* utilities. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-pill);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
}
.btn--primary { background: var(--nh-red); color: var(--nh-paper); }
.btn--primary:hover { background: var(--nh-red-deep); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--nh-teal); color: var(--nh-paper); }
.btn--secondary:hover { background: var(--nh-teal-deep); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--nh-stone); border-color: var(--nh-ink); }
.btn--lg { padding: var(--space-16) var(--space-32); font-size: 15px; }

/* ===== ANNOUNCE BAR (sits above the sticky site-header) =====
   Persistent $10-off promo strip. Click goes to /specials/. */
.announce-bar {
  background: var(--nh-red);
  color: var(--nh-paper);
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 16px;
}
.announce-bar__link {
  color: var(--nh-paper);
  text-decoration: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  max-width: var(--maxw);
}
.announce-bar__title { font-weight: 700; }
.announce-bar__detail { opacity: 0.95; }
.announce-bar__code {
  background: rgba(0, 0, 0, 0.22);
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.announce-bar__cta { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) {
  .announce-bar { font-size: 12px; padding: 7px 14px; }
  /* Shortened mobile pill: hide the verbose detail + "View all specials" CTA
     so the bar stays on a single line. JS swaps the link target to the
     on-page #mobilepromo band (which carries the code + fine print). */
  .announce-bar__detail,
  .announce-bar__cta { display: none; }
  .announce-bar__title::after {
    content: " \2192";
    margin-left: 4px;
    font-weight: 700;
    opacity: 0.9;
  }
}

/* ============================================================
   Site chrome (header, megamenu, mobile drawer, footer).
   Extracted from the homepage's inline <style> block so every
   page can share the same chrome without duplicating CSS.
   var(--token) references resolve against tokens.css.
   ============================================================ */

/* ---- Site chrome shared utilities ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--space-24);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-32);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  text-decoration: none;
}
.brand img {
  height: 44px;
  width: auto;
  display: block;
}
.brand__wordmark { display: block; }
/* On phones the .header-cta column eats horizontal room. Scale the wordmark
   down so it stays legible and proportional alongside the CTAs without
   wrapping or overlapping. height stays in CSS, width auto-scales. */
@media (max-width: 700px) {
  .brand img { height: 32px; }
}
@media (max-width: 380px) {
  .brand img { height: 28px; }
}
.brand-wordmark {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--fg);
}
@media (min-width: 1100px) { .brand-wordmark { display: inline; } }

.primary-nav {
  display: none;
}
@media (min-width: 960px) {
  .primary-nav { display: flex; gap: var(--space-32); justify-content: center; }
}
.primary-nav .nav-item {
  position: relative;
}
.primary-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: 0;
}
.primary-nav .nav-link:hover { color: var(--nh-red); }

/* ---- Active trigger state ----
   When a panel is open, the trigger swaps to brand red and its chevron
   rotates 180deg to point up — same affordance Gateway uses, no extra bar. */
.primary-nav .nav-item .nav-link {
  position: relative;
  transition: color 180ms ease;
}
.primary-nav .nav-item .nav-link .icon {
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0.30, 1.00);
}

/* Default sizing for SVGs marked .icon — without this rule, inline SVGs with
   no width/height attributes collapse to zero in flexbox containers. The
   homepage had a local override that masked this missing rule; now every
   page that uses the chrome partials renders the chevron arrows correctly. */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn .icon { width: 16px; height: 16px; }
.primary-nav .nav-item.is-active .nav-link {
  color: var(--nh-red);
}
.primary-nav .nav-item.is-active .nav-link .icon {
  transform: rotate(180deg);
}

/* ---- Mega-menu (Gateway-pattern horizontal slide between panels) ----
   Red strip at the top fills the visual gap between header and panel
   (no more transparent see-through). Strip wipes in from left to right
   on open, then the panel content slides down with a slight delay. */
.megamenu {
  position: fixed;
  top: 73px; /* sits right against the bottom of the sticky header */
  left: 0;
  right: 0;
  z-index: 49;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  transition: max-height 320ms cubic-bezier(0.32, 0.72, 0.30, 1.00), visibility 320ms ease;
}
.megamenu.is-open {
  max-height: 540px;
  visibility: visible;
}
/* Red strip across the top — grows downward from the header edge in sync
   with the panel sliding down. Same direction, same easing, same duration.
   Also acts as the visual separator + hover bridge between the header and
   the dropdown content (16px gives the panel breathing room without
   introducing a transparent gap that would break gateway-pattern hover). */
.megamenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: var(--nh-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0.30, 1.00);
  z-index: 1;
  pointer-events: none;
}
.megamenu.is-open::before {
  transform: scaleY(1);
}
/* Inner content slides down + fades in 80ms behind the red strip */
.megamenu__viewport {
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0.30, 1.00) 60ms,
              opacity 280ms ease 60ms;
}
.megamenu.is-open .megamenu__viewport {
  transform: translateY(0);
  opacity: 1;
}
.megamenu__viewport {
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}
.megamenu__track {
  display: flex;
  width: 400%; /* 4 panels: menu / specials / catering / about */
  transition: transform 350ms cubic-bezier(0.32, 0.72, 0.30, 1.00);
  will-change: transform;
}
.megamenu__panel {
  flex: 0 0 calc(100% / 4);
  padding: var(--space-32) var(--space-24);
  display: grid;
  gap: var(--space-32);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .megamenu__panel--featured       { grid-template-columns: 1fr 2fr; }
  .megamenu__panel--cols           { grid-template-columns: repeat(2, 1fr); }
  .megamenu__panel--featured-2col  { grid-template-columns: 1.1fr 1fr 1fr; }
  .megamenu__panel--featured-2col .megamenu__group ul { grid-template-columns: 1fr; }
}
.megamenu__group h5,
.megamenu__group__title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nh-mute);
  margin: 0 0 var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}
.megamenu__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px var(--space-24);
}
.megamenu__group ul li a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: color 150ms ease;
}
.megamenu__group ul li a:hover {
  color: var(--nh-red);
}

/* Featured CTA card on the left side of select panels.
   16:9 to match sermon thumbnails — no letterboxing, no shrunk aspect. */
.megamenu__feature {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: end;
  padding: var(--space-24);
  background: var(--nh-ink);
  color: var(--on-deep);
  text-decoration: none;
  isolation: isolate;
  align-self: start;
}
.megamenu__feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.megamenu__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,17,15,0.85) 10%, rgba(21,17,15,0.20) 70%, rgba(21,17,15,0));
  z-index: -1;
}
.megamenu__feature__eyebrow {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--nh-red-soft);
  margin: 0 0 6px;
}
.megamenu__feature__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-8);
}
.megamenu__feature__cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 4px;
}
.megamenu__feature:hover .megamenu__feature__cta {
  border-bottom-color: var(--nh-red-soft);
}

/* Backdrop while open */
.megamenu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 17, 15, 0.30);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
  z-index: 48;
}
.megamenu-backdrop.is-visible { opacity: 1; visibility: visible; }

.header-cta {
  display: flex;
  gap: var(--space-12);
  align-items: center;
}
.header-cta .btn {
  font-size: 12.5px;
  padding: 10px 18px;
}

/* ===== HOURS PILL (live Open Now / Closed status) =====
   JS in nav-footer.js stamps the dot color, status text, and time string
   every 60s using PST. Desktop = two-line stack (pill above cross-streets
   link). Phones = single-line pill only (cross-streets hidden, available
   from the footer/contact page). */
.hours-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-body);
  line-height: 1.2;
  /* Avoid the pill text shifting the hamburger position on phones — fix a
     reasonable min-width so single-line state stays put. */
  min-width: 0;
}
.hours-pill__line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hours-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: hoursPillPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hours-pill__status { color: #16a34a; }
.hours-pill__time   { color: var(--nh-mute); font-weight: 500; }
.hours-pill.is-closed .hours-pill__dot    { background: #ef4444; }
.hours-pill.is-closed .hours-pill__status { color: #dc2626; }
.hours-pill__cross {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--nh-mute);
  text-decoration: none;
  transition: color 150ms ease;
}
.hours-pill__cross:hover { color: var(--nh-red); }
@keyframes hoursPillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
/* Phones: keep the pill visible, collapse cross-streets line. */
@media (max-width: 700px) {
  .hours-pill__line { font-size: 12px; }
  .hours-pill__cross { display: none; }
}
@media (max-width: 380px) {
  /* Tightest phones — drop the close-time clause to save room next to hamburger. */
  .hours-pill__time { display: none; }
}
.menu-btn {
  display: inline-flex;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--fg);
  /* Inline SVG inherits color via stroke="currentColor". Default size set
     here so phones can scale the icon up via @media without touching markup. */
}
.menu-btn svg {
  width: 22px;
  height: 22px;
}
.menu-btn:hover { color: var(--nh-red); }
.menu-btn:active { transform: scale(0.96); }
@media (min-width: 960px) { .menu-btn { display: none; } }

/* ---- Phone layout adjustments for the header ----
   The desktop grid is `auto 1fr auto` (brand, primary-nav, header-cta).
   When primary-nav is display:none under 960px, CSS Grid auto-places the
   remaining two visible items into columns 1 and 2 — leaving column 3
   empty and the header-cta floating in the middle 1fr column instead of
   on the right. Force a 2-column grid on phones so the header-cta lands
   in the right-hand auto column with `justify-self: end` flush right.

   Also hide the inline I'm New + Watch Live buttons (already surfaced in
   the mobile drawer) and bump the hamburger to logo-scale. */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .header-cta {
    grid-column: 2;
    justify-self: end;
  }
}
@media (max-width: 700px) {
  .header-cta .btn { display: none; }
  .menu-btn {
    width: 48px;
    height: 48px;
    /* Negative right margin pulls the icon close to the right gutter so
       it visually sits at the page edge rather than 12px inside. */
    margin-right: calc(var(--space-12) * -1);
  }
  .menu-btn svg {
    width: 30px;
    height: 30px;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-deep);
  color: var(--on-deep);
  /* Top: generous breathing room. Bottom: respect notched-phone home indicator
     by adding the safe-area inset to the base padding. */
  padding: clamp(64px, 9vw, 128px) 0 calc(var(--space-32) + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-24);
  display: grid;
  gap: var(--space-48);
}
.footer-brand {
  display: grid;
  gap: var(--space-24);
}
.footer-brand img {
  height: 48px;
  width: auto;
  /* Source asset is a black-on-transparent wordmark. Invert + brighten so it
     reads as white against the dark footer. Replace with a true white
     wordmark asset (pg-logo-horizontal-white.png) when one is exported. */
  filter: invert(1) brightness(2);
}
.footer-brand__tagline {
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-deep-mute);
  max-width: 44ch;
}
.footer-contact {
  display: grid;
  gap: var(--space-12);
  font-size: 14.5px;
}
.footer-contact a { color: var(--on-deep); border-bottom: 1px solid rgba(246, 242, 236, 0.18); padding-bottom: 1px; }
.footer-contact a:hover { color: var(--nh-red-soft); border-bottom-color: var(--nh-red-soft); }
.footer-contact .row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-deep-mute);
}
.footer-contact .row svg { color: var(--nh-teal-soft); flex-shrink: 0; }

.footer-cols {
  display: grid;
  /* Two-up on small screens to halve scroll length, 3-up on tablet+. */
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24) var(--space-32);
}
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(3, 1fr); gap: var(--space-32); } }
.footer-cols h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nh-teal-soft);
  margin: 0 0 var(--space-16);
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a {
  color: var(--on-deep);
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-cols a:hover { color: var(--nh-red-soft); border-bottom-color: var(--nh-red-soft); }

.footer-grid {
  display: grid;
  gap: var(--space-48);
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.1fr 1.5fr; }
}

.newsletter {
  margin-top: var(--space-24);
}
.newsletter h4,
.newsletter h3,
.newsletter__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 var(--space-8);
  color: var(--on-deep);
}
.newsletter p {
  color: var(--on-deep-mute);
  font-size: 13.5px;
  margin-bottom: var(--space-12);
}
.newsletter form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}
.newsletter input[type="email"] {
  flex: 1;
  /* 16px minimum to prevent iOS Safari auto-zoom on tap. */
  font-size: 16px;
  border: 1px solid rgba(246, 242, 236, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-deep);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-family: var(--font-body);
}
.newsletter input[type="email"]::placeholder { color: rgba(246, 242, 236, 0.45); }
.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--nh-red-soft);
  box-shadow: 0 0 0 4px rgba(217, 100, 89, 0.20);
}
.newsletter button {
  background: var(--nh-red);
  color: var(--on-deep);
  border: 0;
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.newsletter button:hover { background: var(--nh-red-deep); }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-24);
}
.social-row a {
  /* 44px tap target meets WCAG 2.5.5 minimum on touch. */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 236, 0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-deep);
  transition: background 200ms, border-color 200ms, color 200ms;
}
.social-row a:hover {
  background: var(--nh-red);
  border-color: var(--nh-red);
  color: var(--on-deep);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 242, 236, 0.12);
  margin-top: var(--space-48);
  padding-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  justify-content: space-between;
  align-items: center;
  color: var(--on-deep-mute);
  font-size: 13px;
}
.footer-bottom a { color: var(--on-deep-mute); border-bottom: 1px solid transparent; }
.footer-bottom a:hover { color: var(--on-deep); border-bottom-color: var(--on-deep); }

/* Build version stamp. Sits on its own line below the copyright row.
   Monospace + muted so it reads as a build/debug indicator, not a design element. */
.footer-version {
  margin-top: var(--space-12);
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--on-deep-mute);
  opacity: 0.55;
}

/* ---- Mobile drawer ---- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  /* Top inset for status bar / notch, bottom inset for home indicator. */
  padding: calc(24px + env(safe-area-inset-top, 0px))
           calc(24px + env(safe-area-inset-right, 0px))
           calc(24px + env(safe-area-inset-bottom, 0px))
           calc(24px + env(safe-area-inset-left, 0px));
  display: none;
  overflow-y: auto;
  /* Smooth momentum scroll on iOS, hides scrollbars from view. */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-drawer[aria-hidden="false"] { display: block; }
.mobile-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-24);
  border-bottom: 1px solid var(--line);
}
.mobile-drawer__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer__ctas {
  display: grid;
  gap: 10px;
  margin: var(--space-24) 0;
}
.mobile-drawer__nav { display: grid; gap: var(--space-16); margin-top: var(--space-16); }
.mobile-drawer details summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer details summary::-webkit-details-marker { display: none; }
.mobile-drawer details[open] summary { color: var(--nh-red); }
.mobile-drawer__top {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-drawer__top:hover { color: var(--nh-red); }
.mobile-drawer__more { margin-top: var(--space-16); }
.mobile-drawer__more > summary {
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  cursor: pointer;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mobile-drawer__more > summary::-webkit-details-marker { display: none; }
.mobile-drawer__more > summary::after { content: " +"; color: var(--nh-red); }
.mobile-drawer__more[open] > summary::after { content: " −"; }
.mobile-drawer__more > ul {
  list-style: none;
  padding: var(--space-12) 0 var(--space-16);
  margin: 0;
}
.mobile-drawer__more > ul > li > a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}
.mobile-drawer__more > ul > li > a:hover { color: var(--nh-red); }
.mobile-drawer details ul { list-style: none; padding: 0 0 var(--space-16); margin: 0; }
.mobile-drawer details li { padding: 6px 0; font-size: 15px; }

/* ---- Chrome rules from the @media (max-width: 700px) block ----
   Only the .header-cta + [data-sunday-mode="live"] .header-cta rules
   are chrome; the other rules in that block (.hero-cinema, .sundays,
   .featured-message, .pathway-card, etc.) stay on the homepage. */
@media (max-width: 700px) {
  /* Hide ALL secondary header CTAs on small screens — both "I'm New" and
     "Watch Live" — so only the brand mark and the burger are visible.
     "I'm New" still lives inside the mobile drawer; "Watch Live" can
     surface as a header CTA on Sunday mornings via [data-sunday-mode="live"]
     below. */
  .header-cta .btn--ghost-on-dark,
  .header-cta a.btn[href="/visit/"],
  .header-cta a.btn[href="/watch/"] { display: none; }
  [data-sunday-mode="live"] .header-cta a.btn[href="/watch/"] {
    display: inline-flex;
    background: var(--nh-red);
    color: #fff;
    border: 0;
  }
}

/* ============================================================
   SHARED UTILITIES
   Promoted out of per-page inline styles so every page can share.
   .sr-only hides content visually while keeping it for screen
   readers. .skip-link is the keyboard skip-to-content control,
   visible only when focused. .crumbs is the breadcrumb bar used
   directly below the sticky header.
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 0; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--nh-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--r-md, 8px);
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  top: 8px;
  width: auto; height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Breadcrumb bar. Sits directly under the sticky site header. */
.crumbs {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 40;
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--line);
}
.crumbs__inner {
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: 12px var(--space-24, 24px);
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-mute, #6e655d);
}
.crumbs__inner a {
  color: var(--fg-mute, #6e655d);
  text-decoration: none;
  transition: color 0.15s ease;
}
.crumbs__inner a:hover {
  color: var(--nh-red);
}
.crumbs__sep {
  color: var(--line-strong, rgba(21, 17, 15, 0.22));
}
.crumbs__here {
  color: var(--fg, #15110f);
  font-weight: 600;
}
@media (max-width: 700px) {
  .crumbs { display: none; }
}

/* ============================================================
   WATCH CTA LIVE INDICATOR
   Default state: the indicator dot is hidden, label reads "Watch".
   When [data-watch-cta] gets the .is-live class from
   nav-footer.js (Sunday 9:25 AM through 10:45 AM Pacific), the
   dot reveals and pulses, the label flips to "Watch Live".
   Respects prefers-reduced-motion (solid dot, no pulse).
   ============================================================ */
.watch-cta {
  align-items: center;
}
.watch-cta__indicator {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}
.watch-cta.is-live .watch-cta__indicator {
  display: inline-block;
  animation: watchCtaPulse 1.6s ease-in-out infinite;
}
.watch-cta__label {
  /* Tabular-like alignment so the label doesn't jump width when it
     toggles between "Watch" and "Watch Live". */
  white-space: nowrap;
}
@keyframes watchCtaPulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.65); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);    opacity: 0.85; }
  100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .watch-cta.is-live .watch-cta__indicator {
    animation: none;
    box-shadow: none;
  }
}

/* Secondary-style Watch CTAs (mobile drawer top button) need a darker
   dot since the button background is light, not red. */
.btn--secondary.watch-cta .watch-cta__indicator,
.mobile-drawer__top.watch-cta .watch-cta__indicator {
  background: var(--nh-red);
}
.btn--secondary.watch-cta.is-live .watch-cta__indicator,
.mobile-drawer__top.watch-cta.is-live .watch-cta__indicator {
  animation: watchCtaPulseRed 1.6s ease-in-out infinite;
}
@keyframes watchCtaPulseRed {
  0%   { box-shadow: 0 0 0 0   rgba(184, 50, 39, 0.55); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(184, 50, 39, 0);    opacity: 0.85; }
  100% { box-shadow: 0 0 0 0   rgba(184, 50, 39, 0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--secondary.watch-cta.is-live .watch-cta__indicator,
  .mobile-drawer__top.watch-cta.is-live .watch-cta__indicator {
    animation: none;
    box-shadow: none;
  }
}

/* ===== ACCESSIBILITY WIDGETS — ALIGNED POSITIONING =====
   Pin Osano cookie crumb + AccessiBe trigger to identical baselines so they
   sit side-by-side (Osano leftmost, AccessiBe to its right with a 64px gap).
   Identical geometry across breakpoints — only the bottom value changes on
   phones to lift both above the sticky mobile action bar (~78px tall + 18px
   clearance) + safe-area for notched devices. Per owner: one higher or more
   inset than the other reads as sloppy. */

/* Osano persistent cookie icon (post-dismissal small crumb). */
.osano-cm-link, .osano-cm-info-dialog-open, .osano-cm-info-dialog-open-link,
a[data-osano-cm="info"], .osano-cm-link--always-on,
[class*="osano-cm-link"], [id*="osano-cm-link"] {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  top: auto !important;
  right: auto !important;
}

/* AccessiBe trigger — sits 64px to the right of Osano at the same baseline. */
#acsb-trigger, .acsb-trigger, [id^="acsbi_"],
[class*="acsb-trigger"], .acsb-trigger-fixed {
  position: fixed !important;
  bottom: 20px !important;
  left: 84px !important;
  top: auto !important;
  right: auto !important;
}

@media (max-width: 768px) {
  /* Lift both above the sticky mobile action bar; keep the 64px horizontal
     gap so they stay paired. */
  .osano-cm-link, .osano-cm-info-dialog-open, .osano-cm-info-dialog-open-link,
  a[data-osano-cm="info"], .osano-cm-link--always-on,
  [class*="osano-cm-link"], [id*="osano-cm-link"] {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px !important;
  }
  #acsb-trigger, .acsb-trigger, [id^="acsbi_"],
  [class*="acsb-trigger"], .acsb-trigger-fixed {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    left: 80px !important;
  }
  /* Full Osano consent banner (separate from the persistent crumb) — keep
     it lifted above the action bar while it's showing. */
  .osano-cm-window, .osano-cm-dialog, .osano-cm-dialog--position_bottom,
  #osano-cm-window, .osano-cm-toaster, .osano-cm-widget, .osano-cm-info {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
  }
}

/* Desktop: lift AccessiBe above the Osano consent banner while the banner
   is visible. After dismissal the rule above returns it to the paired
   side-by-side baseline. */
@media (min-width: 769px) {
  body:has(.osano-cm-dialog:not(.osano-cm-dialog--hidden)) :is(#acsb-trigger, .acsb-trigger, [id^="acsbi_"], [class*="acsb-trigger"], .acsb-trigger-fixed),
  body:has(.osano-cm-window:not(.osano-cm-window--hidden)) :is(#acsb-trigger, .acsb-trigger, [id^="acsbi_"], [class*="acsb-trigger"], .acsb-trigger-fixed) {
    bottom: 220px !important;
    left: 20px !important;
    transition: bottom 0.2s ease;
  }
}
