:root {
  --seo-ink: #10261f;
  --seo-muted: #66746f;
  --seo-cream: #fbf8f1;
  --seo-paper: #fffdf9;
  --seo-mint: #eaf5f0;
  --seo-gold: #bd8a2d;
  --seo-line: rgba(16, 38, 31, 0.14);
}

/* The generic homepage remains a single, app-like prayer screen. */
body[data-page-type="home"] {
  height: 100svh;
  overflow: hidden;
}

body[data-page-type="home"].location-seo-open {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

body[data-page-type="home"] #main-content,
body[data-page-type="home"] #page-root,
body[data-page-type="home"] .prayer-stage {
  height: 100svh;
  min-height: 100svh;
}

body[data-page-type="home"].location-seo-open #main-content {
  height: auto;
}

/* Location routes begin as the same one-screen prayer experience as the homepage. */
body.prayer-experience[data-page-type="location"] {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--seo-cream);
}

body.prayer-experience[data-page-type="location"].location-seo-open {
  height: auto;
  overflow-y: auto;
}

body.prayer-experience[data-page-type="location"] #page-root,
body.prayer-experience[data-page-type="location"] .prayer-stage {
  height: 100svh;
  min-height: 100svh;
}

body.prayer-experience[data-page-type="location"] .experience-footer {
  display: flex;
}

body.prayer-experience[data-page-type="location"] .site-footer {
  display: none;
}

[data-seo-toggle][hidden],
.location-seo[hidden] {
  display: none !important;
}

.experience-footer__seo-toggle {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(214, 255, 88, 0.58);
  border-radius: 50%;
  color: #d6ff58;
  background: rgba(6, 17, 14, 0.68);
  font: 800 17px/1 "Manrope", Arial, sans-serif;
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.experience-footer__seo-toggle:hover,
.experience-footer__seo-toggle:focus-visible {
  color: #07110e;
  background: #d6ff58;
  box-shadow: 0 0 20px rgba(214, 255, 88, 0.32);
  transform: translateY(-1px);
}

.experience-footer__seo-toggle[aria-expanded="true"] {
  color: #07110e;
  background: #d6ff58;
}

.mobile-more-sheet__seo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid rgba(16, 38, 31, 0.12);
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

.mobile-more-sheet__seo b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07110e;
  background: #d6ff58;
  font-size: 18px;
}

.location-seo {
  position: relative;
  z-index: 2;
  color: var(--seo-ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(214, 255, 88, 0.2), transparent 24rem),
    linear-gradient(180deg, var(--seo-cream), #f5f8f5 70%, #edf5f0);
  font-family: "Manrope", Arial, sans-serif;
}

.location-seo.is-open {
  display: block;
  animation: locationSeoReveal 280ms ease both;
}

@keyframes locationSeoReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-seo__shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 110px;
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--seo-muted);
  font-size: 13px;
  font-weight: 700;
}

.seo-breadcrumb a {
  color: var(--seo-ink);
  text-decoration: none;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.location-seo__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: 24px 64px;
  align-items: end;
  padding: clamp(34px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid var(--seo-line);
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(255, 253, 249, 0.96), rgba(234, 245, 240, 0.9)),
    var(--seo-paper);
  box-shadow: 0 24px 70px rgba(16, 38, 31, 0.08);
}

.location-seo__hero::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid rgba(189, 138, 45, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(189, 138, 45, 0.05),
    0 0 0 74px rgba(189, 138, 45, 0.035);
  content: "";
}

.location-seo__eyebrow {
  margin: 0 0 12px;
  color: var(--seo-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-seo__hero h2 {
  grid-column: 1;
  margin: 0;
  max-width: 760px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.location-seo__hero > p:not(.location-seo__eyebrow) {
  grid-column: 1;
  margin: 0;
  max-width: 720px;
  color: var(--seo-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.location-seo__zone {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 26px;
  border: 1px solid var(--seo-line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.78);
}

.location-seo__zone span {
  display: block;
  color: var(--seo-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.location-seo__zone strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--seo-ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.location-seo__zone p {
  margin: 0;
  color: var(--seo-muted);
  font-size: 14px;
  line-height: 1.6;
}

.location-today,
.location-week,
.location-faq,
.related-locations {
  margin-top: 28px;
  border: 1px solid var(--seo-line);
  border-radius: 28px;
  background: var(--seo-paper);
  box-shadow: 0 18px 54px rgba(16, 38, 31, 0.05);
}

.location-today {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: center;
  padding: 34px 42px;
}

.location-today h3,
.location-section-heading h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

#location-today-summary {
  margin: 0;
  padding-left: 28px;
  border-left: 3px solid var(--seo-gold);
  color: var(--seo-muted);
  font-size: 17px;
  line-height: 1.75;
}

.location-week,
.location-faq,
.related-locations {
  padding: 40px;
}

.location-section-heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.location-section-heading > p,
.location-section-heading > a {
  max-width: 420px;
  margin: 0;
  color: var(--seo-muted);
  font-size: 14px;
  line-height: 1.6;
}

.location-section-heading > a {
  color: var(--seo-ink);
  font-weight: 800;
  text-underline-offset: 4px;
}

.location-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--seo-line);
  border-radius: 18px;
}

.location-week__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.location-week__table th {
  padding: 15px 16px;
  color: #fff;
  background: #20372f;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.location-week__table td {
  padding: 16px;
  border-top: 1px solid var(--seo-line);
  color: #2f403a;
  white-space: nowrap;
}

.location-week__table td:first-child {
  white-space: normal;
}

.location-week__table td small {
  display: block;
  margin-top: 3px;
  color: var(--seo-muted);
}

.location-week__table tr[data-today="true"] {
  background: rgba(214, 255, 88, 0.18);
}

.location-source-note {
  margin: 18px 0 0;
  color: var(--seo-muted);
  font-size: 13px;
  line-height: 1.65;
}

.location-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.location-faq details {
  padding: 0 20px;
  border: 1px solid var(--seo-line);
  border-radius: 16px;
  background: #fbfcfa;
}

.location-faq summary {
  padding: 19px 28px 19px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.location-faq details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--seo-muted);
  font-size: 14px;
  line-height: 1.7;
}

.related-locations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.related-locations__grid a {
  display: flex;
  gap: 10px;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--seo-line);
  border-radius: 14px;
  color: var(--seo-ink);
  background: #fbfcfa;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.related-locations__grid a:hover {
  border-color: var(--seo-gold);
  transform: translateY(-2px);
}

.related-locations__grid small {
  color: var(--seo-muted);
  font-size: 10px;
}

@media (max-width: 800px) {
  body.prayer-experience[data-page-type="location"] #page-root,
  body.prayer-experience[data-page-type="location"] .prayer-stage {
    height: auto;
    min-height: 100svh;
  }

  .location-seo__shell {
    width: min(100% - 28px, 720px);
    padding: 38px 0 104px;
  }

  .location-seo__hero {
    display: block;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .location-seo__hero h2 {
    margin-bottom: 20px;
    font-size: clamp(44px, 13vw, 64px);
  }

  .location-seo__hero > p:not(.location-seo__eyebrow) {
    font-size: 16px;
  }

  .location-seo__zone {
    margin-top: 26px;
    padding: 20px;
  }

  .location-today {
    display: block;
    padding: 28px 24px;
  }

  #location-today-summary {
    margin-top: 22px;
    padding: 18px 0 0;
    border-top: 3px solid var(--seo-gold);
    border-left: 0;
    font-size: 15px;
  }

  .location-week,
  .location-faq,
  .related-locations {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .location-section-heading {
    display: block;
  }

  .location-section-heading > p,
  .location-section-heading > a {
    display: inline-block;
    margin-top: 14px;
  }

  .location-faq__list,
  .related-locations__grid {
    grid-template-columns: 1fr;
  }

  .location-faq summary {
    font-size: 16px;
  }

  body.prayer-experience[data-page-type="location"] .mobile-dock {
    position: sticky;
  }
}
