/* ═══════════════════════════════════════════════════════════════════
   VISITORS (Nov 2026): visit guide, kids page, stories, baptism dates.
   Loaded after style.css (inc/feature-visitors.php). Sections stay
   transparent on the ambient; separation comes from glass plaques
   (glass-bg + glass-line + radius 18 + highlight), per ONE AMBIENT.
   No backdrop-filter, no transform/opacity animation, no coloured glow.
═══════════════════════════════════════════════════════════════════ */

.vg-header, .stories-header, .bap-header { text-align: center; margin: 0 auto 44px; }
.vg-header .section-subtitle,
.stories-header .section-subtitle,
.bap-header .section-subtitle { margin: 16px auto 0; max-width: 600px; }

/* Shared plaque */
.vg-plaque, .vg-kids-card, .kids-safety-list, .story, .bap-item, .bap-empty {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  box-shadow: var(--glass-highlight), 0 8px 28px rgba(4,9,15,0.22);
}

.vg-icon { color: var(--teal); flex-shrink: 0; line-height: 0; }
.vg-icon .mscc-icon, .kids-safety-icon .mscc-icon { width: 40px; height: 40px; }
.kids-safety-icon { color: var(--teal); flex-shrink: 0; line-height: 0; }

/* ── Content gaps: [NEEDS: ...] shows as a dashed note until answered ── */
mark.mscc-needs {
  background: rgba(239,187,76,0.14);
  color: #f3d28c;
  border: 1px dashed rgba(239,187,76,0.55);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.9em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ═══ VISIT GUIDE: campus tabs ═══ */
.vg-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
}
.vg-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245,242,238,0.82);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 11px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.vg-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.24); }
.vg-tab[aria-selected="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}
.vg-tab--away { background: transparent; border-style: dashed; }
.vg-tab--away svg { opacity: 0.8; }
/* Without the script the tab buttons do nothing: hide them, panels stack. */
.vg--visit:not(.is-tabbed) button.vg-tab { display: none; }
.vg-panel + .vg-panel { margin-top: 24px; }
.vg-panel:focus-visible { outline-offset: 6px; border-radius: 18px; }

.vg-plaque {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  max-width: 1080px;
  margin: 0 auto;
}
.vg-where {
  padding: 40px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.vg-campus {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 14px;
}
.vg-where p { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.6; }
.vg-place { color: var(--gold-light); }
.vg-address { color: rgba(245,242,238,0.92); }
.vg-times { color: var(--teal); font-weight: 600; margin-top: 14px !important; }
.vg-pastor { color: rgba(245,242,238,0.7); }
.vg-map { margin-top: 26px; }

.vg-rows { list-style: none; margin: 0; padding: 12px 40px; }
.vg-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
}
.vg-row + .vg-row { border-top: 1px solid rgba(255,255,255,0.06); }
.vg-row h4, .vg-kids-row h4, .kids-safety-list h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin: 2px 0 6px;
}
.vg-row p, .vg-kids-row p, .kids-safety-list p {
  margin: 0;
  color: rgba(245,242,238,0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}
.vg-row a, .vg-kids-row a, .kids-safety-list a, .bap-empty a { color: var(--teal); }

@media (max-width: 900px) {
  .vg-plaque { grid-template-columns: 1fr; }
  .vg-where { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 30px 24px 28px; }
  .vg-rows { padding: 4px 24px 8px; }
}
@media (max-width: 480px) {
  .vg-tab { padding: 10px 18px; font-size: 0.9rem; }
  .vg-row { grid-template-columns: 34px 1fr; gap: 14px; }
  .vg-icon .mscc-icon { width: 34px; height: 34px; }
  .vg-map { display: block; text-align: center; }
}

/* ═══ VISIT GUIDE: kids view (ages and check-in by campus) ═══ */
.vg-kids-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.vg-kids-1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.vg-kids-card { padding: 34px 34px 30px; }
.vg-kids-top { display: flex; align-items: center; gap: 16px; }
.vg-kids-top .vg-campus { margin: 0; font-size: 1.4rem; }
.vg-kids-when { margin: 4px 0 0; color: var(--teal); font-size: 0.9rem; font-weight: 600; }
.vg-kids-ages {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.35;
  color: var(--white);
  margin: 24px 0 6px;
  text-wrap: balance;
}
.vg-kids-row { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; margin-top: 16px; }
@media (max-width: 720px) {
  .vg-kids-grid { grid-template-columns: minmax(0, 1fr); }
  .vg-kids-card { padding: 26px 22px 24px; }
}

/* ═══ KIDS PAGE: safety (raw HTML section written by the migration) ═══ */
.kids-safety-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
}
.kids-safety-head .section-title { margin-bottom: 18px; }
.kids-safety-head p { margin: 0; color: rgba(245,242,238,0.82); font-size: 1.05rem; line-height: 1.7; max-width: 420px; }
.kids-safety-list { list-style: none; margin: 0; padding: 10px 34px; }
.kids-safety-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
}
.kids-safety-list li + li { border-top: 1px solid rgba(255,255,255,0.06); }
.kids-safety-list h3 { font-size: 1.05rem; }
@media (max-width: 900px) {
  .kids-safety-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kids-safety-head { text-align: center; }
  .kids-safety-head p { margin: 0 auto; }
}
@media (max-width: 480px) {
  .kids-safety-list { padding: 4px 22px; }
  .kids-safety-list li { grid-template-columns: 34px 1fr; gap: 14px; }
  .kids-safety-icon .mscc-icon { width: 34px; height: 34px; }
}

/* ═══ STORIES ═══ */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.stories-2 .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; }
.stories-1 .stories-grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.story {
  margin: 0;
  padding: 34px 32px 28px;
  display: flex;
  flex-direction: column;
}
.story-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.6;
  height: 30px;
  color: var(--teal);
  opacity: 0.55;
}
.story-quote { margin: 8px 0 26px; padding: 0; border: 0; }
.story-quote p {
  margin: 0 0 12px;
  color: rgba(245,242,238,0.92);
  font-size: 1.05rem;
  line-height: 1.75;
}
.story-quote p:last-child { margin-bottom: 0; }
.story-by {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.story-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-line);
  flex-shrink: 0;
}
.story-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story-name { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--white); }
.story-context { color: rgba(245,242,238,0.7); font-size: 0.86rem; line-height: 1.5; }
.story-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  border-radius: 999px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.story-watch:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

/* One story: a single pull-quote plaque */
.stories-1 .story { padding: 44px 48px 36px; text-align: center; }
.stories-1 .story-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--white);
  text-wrap: pretty;
}
.stories-1 .story-by { justify-content: center; border-top: 0; padding-top: 0; }
.stories-1 .story-who { text-align: left; }
.stories-1 .story-watch { margin-left: 18px; }

@media (max-width: 960px) {
  .stories-grid, .stories-2 .stories-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
@media (max-width: 480px) {
  .story, .stories-1 .story { padding: 28px 22px 24px; }
  .story-by { flex-wrap: wrap; }
  .story-who { flex: 1 1 140px; }
  .stories-1 .story-who { flex: 0 1 auto; }
  .stories-1 .story-watch { margin-left: 0; }
}

/* ═══ BAPTISM DATES ═══ */
.bap-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  display: grid;
  gap: 16px;
}
.bap-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
}
.bap-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  border-radius: 12px;
}
.bap-mon { color: var(--teal); font-size: 0.9rem; font-weight: 600; }
.bap-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--white); }
.bap-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--white); margin: 0 0 4px; }
.bap-meta { margin: 0; color: var(--gold-light); font-size: 0.92rem; }
.bap-text { margin: 10px 0 0; color: rgba(245,242,238,0.82); font-size: 0.92rem; line-height: 1.65; }
.bap-empty {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 32px;
  text-align: center;
  color: rgba(245,242,238,0.82);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .bap-item { grid-template-columns: 60px minmax(0, 1fr); gap: 16px 18px; padding: 22px 20px; }
  .bap-num { font-size: 1.5rem; }
  .bap-btn { grid-column: 1 / -1; text-align: center; }
}

/* style.css sets `.page-blocks-full > * { display: block }`, which also
   un-hides the contact-form block's inline <script> on page.php pages (it
   printed as text under the Baptism forms). Scripts never display. */
.page-blocks-full > script, .page-blocks-full > style { display: none; }
