/* Blaise Baptist Church — brand tokens (see Brand Guide One-Pager) */
:root {
  --forest: #1A3A1A;
  --sage: #8CA08C;
  --offwhite: #F5F5F0;
  --nearblack: #1A1A1A;
  --kids: #00A878;
  --kids-light: #AADFD1;
  --youth: #F08C00;
  --youth-light: #EEC685;
  --men: #142864;
  --men-light: #91A3C1;
  --women: #6B3D52;
  --women-light: #AF979D;
  --pane-1: #8CA08C;
  --pane-2: #EEC685;
  --pane-3: #AADFD1;
  --pane-4: #91A3C1;
  --pane-5: #AF979D;
  --cream: #FBFAF6;
  --sage-tint: #EEF1EC;
  --shadow-soft: 0 6px 24px rgba(26, 58, 26, 0.08);
  --shadow-lift: 0 12px 32px rgba(26, 58, 26, 0.14);
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--nearblack);
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 18px;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
/* Centered blocks: keep the measure-limited text centered under its heading
   and let the browser even out the last line instead of orphaning a word. */
[style*="text-align:center"] > p,
.stripe p { margin-inline: auto; text-wrap: balance; }

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--sage);
  display: block;
  margin-bottom: 0.9em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}

/* The brand kit has no true light-colored logo file, so this flattens the
   real green mark to white for use on dark backgrounds. */
.logo-inverse { max-width: 130px; filter: brightness(0) invert(1); opacity: 0.95; }

/* Ministry icon art is tinted close to its own ministry color, so it sits on
   a soft white badge for contrast when placed on a same-color card or banner. */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.icon-badge img { width: 40px; height: 40px; object-fit: contain; display: block; }
.icon-badge-lg { padding: 22px; margin-bottom: 0; }
.icon-badge-lg img { width: 56px; height: 56px; }

/* Celebrate Recovery's own logo is a white wordmark, so it drops straight
   onto the page-hero's dark gradient with no badge needed. */
.page-hero-logo { display: block; width: 260px; height: auto; flex-shrink: 0; }
/* Text left, logo right on desktop; on phones the logo stacks above the text. */
.hero-split { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
@media (max-width: 860px) {
  .hero-split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-split .page-hero-logo { order: -1; width: 200px; }
}

.hero-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}

.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
}
.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--sage);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nearblack);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--forest); }

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nearblack);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.nav-dropdown[open] summary::after { transform: rotate(-135deg) translateY(2px); }
.nav-dropdown summary:hover { color: var(--forest); }
.nav-dropdown ul {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 10px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  z-index: 20;
}
.nav-dropdown ul li a {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.nav-dropdown ul li a:hover { background: var(--sage-tint); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--forest);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--forest); color: var(--offwhite); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #12290f; box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--offwhite); }
/* The nav's Give button is also a .nav-links a, whose hover colour is more
   specific than .btn-outline:hover — without this the label turns forest on
   forest and disappears. */
.nav-links a.btn-outline:hover { color: var(--offwhite); }

/* Hero */
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--forest) 0%, #16311a 100%);
  color: var(--offwhite);
  padding: 60px 24px;
}
.page-hero .wrap { max-width: var(--max-width); }
.page-hero h1 { color: var(--offwhite); }
.page-hero .eyebrow { color: var(--pane-3); }
.page-hero p { color: var(--pane-3); max-width: 52ch; text-wrap: pretty; }

/* The hero sits on a dark forest gradient, where the default forest fill and
   forest outline both disappear into the background -- the outline button was
   only visible on hover. Invert both variants against it. */
.page-hero .hero-actions { justify-content: flex-start; margin-top: 24px; }
.page-hero .btn-primary {
  background: var(--offwhite);
  color: var(--forest);
  border-color: var(--offwhite);
}
.page-hero .btn-primary:hover { background: #fff; border-color: #fff; color: var(--forest); }
.page-hero .btn-outline {
  background: transparent;
  color: var(--offwhite);
  border-color: var(--offwhite);
}
.page-hero .btn-outline:hover { background: var(--offwhite); color: var(--forest); }

/* Sections */
section { padding: 56px 24px; }
/* Two plain sections in a row (e.g. a "Coming Up" block after the intro) share one gap, not two. */
section:not([class]) + section:not([class]) { padding-top: 0; }
.section-tight { padding: 44px 24px; }
.section-soft { background: var(--sage-tint); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card a[href^="mailto:"] { overflow-wrap: anywhere; }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ministry-card {
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ministry-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.ministry-card h3 { color: #fff; }
.ministry-card a.btn { border-color: rgba(255,255,255,0.7); color: #fff; }
.ministry-card a.btn:hover { background: rgba(255,255,255,0.18); }

a.ministry-card { display: block; text-decoration: none; color: #fff; }
a.ministry-card p { color: inherit; }
.jump-target { scroll-margin-top: 16px; }

.mc-kids { background: linear-gradient(160deg, #05b380, var(--kids) 70%); }
.mc-youth { background: linear-gradient(160deg, #f39a1c, var(--youth) 70%); }
.mc-men { background: linear-gradient(160deg, #1c336f, var(--men) 70%); }
.mc-women { background: linear-gradient(160deg, #79475b, var(--women) 70%); }

.schedule-row {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}
.schedule-row .time {
  font-weight: 700;
  color: var(--forest);
  min-width: 100px;
  flex-shrink: 0;
}

.stripe {
  background: linear-gradient(135deg, var(--forest) 0%, #234a23 100%);
  color: var(--offwhite);
  text-align: center;
}
.stripe h2, .stripe h3 { color: var(--offwhite); }

.callout {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: inset 0 4px 0 var(--sage), var(--shadow-soft);
}

.event-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.event-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.event-card .date { color: var(--sage); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }

footer {
  background: var(--forest);
  color: var(--pane-3);
  padding: 36px 24px 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
footer .footer-mark { width: 52px; margin-bottom: 10px; display: block; }
footer p { margin: 0 0 0.4em; }
footer h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.6em;
}
footer a { color: var(--pane-3); text-decoration: none; transition: color 0.15s ease; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 0.35em; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.placeholder-note {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  font-weight: 600;
  color: var(--nearblack);
  background: linear-gradient(90deg, var(--youth) 0 6px, #fff 6px);
  box-shadow: var(--shadow-soft);
}

/* Mobile nav drawer — pure CSS via a hidden checkbox, no JS needed */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }
.nav-close { display: none; }

@media (max-width: 860px) {
  /* Service times stack above their description on phones. */
  .schedule-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  footer { padding: 28px 20px 16px; }
  /* Brand spans the top; Visit and Connect sit side by side under it. */
  footer .wrap { grid-template-columns: 1fr 1fr; gap: 20px; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    margin-left: auto;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 58, 26, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
  }
  #nav-toggle:checked ~ .nav-backdrop { opacity: 1; pointer-events: auto; }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 320px);
    background: var(--cream);
    box-shadow: var(--shadow-lift);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 50;
    padding: 32px 28px;
    overflow-y: auto;
  }
  #nav-toggle:checked ~ .nav-drawer { transform: translateX(0); }

  .nav-close {
    display: block;
    text-align: right;
    font-size: 2rem;
    line-height: 1;
    color: var(--forest);
    cursor: pointer;
    margin-bottom: 20px;
  }

  .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-dropdown ul {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 6px 0 0 4px;
    min-width: 0;
  }
  .nav-dropdown ul li a { padding: 6px 0; }
}

@media (max-width: 480px) {
  .nav-links a, .nav-dropdown summary { font-size: 0.82rem; }
}

/* Event photos run edge to edge across the top of the card. */
.event-card { overflow: hidden; }
.event-card .event-img { width: calc(100% + 52px); margin: -26px -26px 8px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.event-card .btn { margin-top: auto; align-self: flex-start; }

.map-block { display: grid; grid-template-columns: 1.6fr 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-embed { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-info { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.map-info .btn { align-self: flex-start; }

.beliefs { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.beliefs li { background: #fff; border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-soft); }
.beliefs p { margin: 0 0 8px; }
.beliefs .refs { color: var(--sage); font-size: 0.85rem; }

@media (max-width: 860px) {
  .map-block { grid-template-columns: 1fr; }
  .map-embed { min-height: 260px; }
}

/* Core values each take a pane color. */
.pane-sage { --pane: var(--pane-1); }
.pane-gold { --pane: var(--pane-2); }
.pane-teal { --pane: var(--pane-3); }
.pane-blue { --pane: var(--pane-4); }
.pane-mauve { --pane: var(--pane-5); }

/* Callout accent bars and event dates pick up the palette instead of plain sage. */
.callout { background: linear-gradient(var(--pane-2) 0 5px, #fff 5px); box-shadow: var(--shadow-soft); }
.section-soft { background: color-mix(in srgb, var(--pane-3) 16%, var(--offwhite)); }

/* Tagline: each phrase in its pane color on the dark green band. */
.tagline .t-sage { color: var(--pane-1); }
.tagline .t-teal { color: var(--pane-3); }
.tagline .t-gold { color: var(--pane-2); }

/* Service times: the time sits in a tinted chip. */
.schedule-row .time { background: color-mix(in srgb, var(--pane, var(--pane-1)) 35%, #fff); padding: 8px 14px; border-radius: var(--radius-sm); text-align: center; }

/* Cards in a row take turns through the palette as a thin top accent. */
.grid-2 > :is(.card, .event-card):nth-child(5n+1),
.grid-3 > :is(.card, .event-card):nth-child(5n+1),
.grid-4 > :is(.card, .event-card):nth-child(5n+1) { --accent: var(--pane-3); }
.grid-2 > :is(.card, .event-card):nth-child(5n+2),
.grid-3 > :is(.card, .event-card):nth-child(5n+2),
.grid-4 > :is(.card, .event-card):nth-child(5n+2) { --accent: var(--pane-2); }
.grid-2 > :is(.card, .event-card):nth-child(5n+3),
.grid-3 > :is(.card, .event-card):nth-child(5n+3),
.grid-4 > :is(.card, .event-card):nth-child(5n+3) { --accent: var(--pane-4); }
.grid-2 > :is(.card, .event-card):nth-child(5n+4),
.grid-3 > :is(.card, .event-card):nth-child(5n+4),
.grid-4 > :is(.card, .event-card):nth-child(5n+4) { --accent: var(--pane-5); }
.grid-2 > :is(.card, .event-card):nth-child(5n),
.grid-3 > :is(.card, .event-card):nth-child(5n),
.grid-4 > :is(.card, .event-card):nth-child(5n) { --accent: var(--pane-1); }
/* Accent bands are painted as a background so the rounded corners clip them flat. */
.card, .event-card { background: linear-gradient(var(--accent, #fff) 0 5px, #fff 5px); }
.value-card { background: linear-gradient(var(--pane) 0 6px, color-mix(in srgb, var(--pane) 18%, #fff) 6px); box-shadow: var(--shadow-soft); }
.beliefs .refs a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--pane-1); text-underline-offset: 3px; }
.beliefs .refs a:hover { text-decoration-color: var(--forest); }

/* Home hero photo: full width, no crop, so the logo baked into it is never cut off.
   The band above matches the photo's sky so they read as one piece. */
.stripe-home { background: #254623; padding: 22px 20px 6px; }
.stripe-home .tagline { margin: 0; }
.hero-photo { background: #254623; }
.hero-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  /* Trim the photo's sides on phones so the building and logo read larger; the logo sits in the middle third. */
  .hero-photo img { height: 260px; object-fit: cover; object-position: center; }
}

/* Live stream takeover: while the church is live on YouTube, assets/live.js replaces the hero
   photo's contents with the player. The dark band is the same colour either way. */
.hero-live { padding: 24px; }
.hero-live-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-live iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); background: #000; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--offwhite); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #E03131; box-shadow: 0 0 0 4px rgba(224, 49, 49, 0.25); }
.hero-live-actions { margin: 16px auto 0; }
.hero-live .btn-outline { background: transparent; color: var(--offwhite); border-color: var(--offwhite); }
.hero-live .btn-outline:hover { background: var(--offwhite); color: var(--forest); }
@media (max-width: 600px) {
  .hero-live { padding: 16px; }
}

/* Campus map (About page). Building shapes are inline SVG; see src/campus-map.svg + buildings.json. */
.campus-section { scroll-margin-top: 16px; }
.campus-map { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.has-selection .campus-map { grid-template-columns: 1fr 320px; }
.campus-canvas { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 12px; }
.campus-svg { display: block; width: 100%; height: auto; max-height: 80vh; font-family: "Josefin Sans", sans-serif; }
.campus-road { fill: none; stroke: var(--sage-tint); stroke-width: 46; stroke-linecap: round; }
.campus-drive { fill: none; stroke: var(--sage-tint); stroke-width: 40; stroke-linecap: round; }
.campus-road-label, .campus-lot-label { fill: var(--sage); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.campus-road-label { fill: var(--forest); text-anchor: middle; dominant-baseline: central; font-size: 24px; }
.campus-lot-label { text-anchor: middle; text-transform: uppercase; font-size: 18px; }
.campus-lot { fill: var(--sage-tint); stroke: var(--pane-1); stroke-width: 2; stroke-dasharray: 10 8; }
.campus-playground { fill: var(--kids-light); stroke: var(--kids); stroke-width: 2; }
.campus-lane { stroke-width: 26; }
.campus-flow { fill: var(--forest); font-size: 24px; font-weight: 700; }
.campus-building { fill: var(--pane-1); stroke: var(--forest); stroke-width: 3; cursor: pointer; transition: fill 0.15s ease; outline: none; }
@media (hover: hover) {
  .campus-building:hover { fill: color-mix(in srgb, var(--forest) 45%, var(--pane-1)); }
}
.campus-building:focus-visible { stroke: var(--men); stroke-width: 7; }
.campus-building.is-selected { fill: var(--youth); stroke: var(--forest); }
/* The Underground marker always wears Youth Orange; selection adds a forest ring instead of a color change. */
.campus-building.campus-entrance, .campus-building.campus-entrance:hover, .campus-building.campus-entrance.is-selected { fill: var(--youth); stroke: #fff; stroke-width: 3; }
.campus-building.campus-entrance.is-selected circle, .campus-building.campus-entrance:focus-visible circle { stroke: var(--forest); stroke-width: 6; }
.campus-entrance path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.campus-labels .campus-entrance-label { fill: var(--forest); font-size: 20px; }
.campus-inset { position: absolute; z-index: 6; margin: 0; width: min(300px, 80%); background: #fff; padding: 8px; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.campus-inset[hidden] { display: none; }
.campus-inset figcaption { font-size: 0.85rem; color: var(--forest); opacity: 0.8; }
.campus-inset-svg { display: block; width: 100%; height: auto; font-family: "Josefin Sans", sans-serif; }
.campus-inset-svg .campus-building { stroke-width: 2; }
.campus-inset-svg .inset-bg { fill: var(--offwhite); stroke: var(--women); stroke-width: 3; stroke-dasharray: 8 6; }
.campus-inset-svg .inset-entrance circle { fill: var(--youth); stroke: #fff; }
.campus-inset-svg .inset-entrance path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.inset-labels text { font-size: 17px; }
.inset-labels .inset-rooms { font-size: 20px; }
/* Underground: hover and selection look the same (floor plan box fills Youth Orange; entrance gets its ring). */
.campus-inset-svg .campus-building.is-selected { fill: none; }
.campus-inset-svg .inset-room { fill: var(--pane-1); stroke: var(--forest); stroke-width: 2; transition: fill 0.15s ease; }
.campus-inset-svg .campus-building.is-selected .inset-room { fill: var(--pane-1); }
@media (hover: hover) {
  .campus-inset-svg .campus-building:hover { fill: none; }
  .campus-inset-svg .campus-building:hover .inset-room { fill: var(--youth); }
  .campus-building.campus-entrance:hover circle { stroke: var(--forest); stroke-width: 6; }
}
.campus-tip { position: absolute; z-index: 5; max-width: 260px; background: var(--forest); color: var(--offwhite); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow-lift); }
.campus-tip strong { display: block; margin-bottom: 2px; }
.campus-panel-number { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--youth); }
.campus-labels text { fill: var(--forest); font-size: 26px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.campus-building.is-selected ~ .campus-labels text { fill: var(--forest); }
.campus-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 24px; position: relative; border-top: 5px solid var(--youth); }
.campus-panel h3 { margin: 0 32px 8px 0; }
.campus-panel h4 { margin: 16px 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage); }
.campus-panel-desc { margin: 0; }
.campus-panel-list { list-style: none; margin: 0; padding: 0; }
.campus-panel-list li { padding: 6px 0; border-bottom: 1px solid var(--sage-tint); }
.campus-panel-list li:last-child { border-bottom: 0; }
.campus-panel-list a { font-weight: 600; color: var(--forest); }
.campus-when { display: block; font-size: 0.85rem; color: var(--nearblack); opacity: 0.75; }
.campus-none { opacity: 0.7; }
.campus-panel-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--forest); cursor: pointer; border-radius: 50%; }
.campus-panel-close:hover, .campus-panel-close:focus-visible { background: var(--sage-tint); }
.map-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--forest); }
.map-link::before { content: "\2192\00a0"; }
.map-link-where { font-weight: 400; }

@media (max-width: 760px) {
  .campus-map, .has-selection .campus-map { grid-template-columns: 1fr; }
  .campus-canvas { padding: 4px; margin: 0 -16px; }
  /* Room to scroll the map clear of the open sheet */
  .has-selection .campus-canvas { margin-bottom: 50vh; }
  /* Bottom sheet */
  .campus-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 60vh; overflow-y: auto; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(26, 58, 26, 0.2); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: campus-sheet-up 0.22s ease-out; }
  .campus-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--pane-1); margin: -8px auto 12px; }
}
@keyframes campus-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .campus-panel { animation: none; } }

/* Special Friends: line icons on soft pane-colored circles. */
.sf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pane, var(--pane-1)) 55%, #fff);
  color: var(--forest);
}
.sf-icon svg { width: 28px; height: 28px; display: block; }
.sf-icon-hero { width: 96px; height: 96px; box-shadow: var(--shadow-soft); }
.sf-icon-hero svg { width: 48px; height: 48px; }
.sf-tile .sf-icon { margin-bottom: 16px; }
.sf-tiles .sf-tile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sf-tiles .sf-tile h3 { margin: 0; }
.schedule-row .sf-icon { width: 64px; height: 64px; }
@media (max-width: 860px) {
  .schedule-row .sf-icon { width: 48px; height: 48px; }
  .schedule-row .sf-icon svg { width: 24px; height: 24px; }
}

/* A sign-up button sitting inside a schedule row (e.g. the Wednesday meal). */
.schedule-row .btn-in-row { margin-top: 14px; }

/* Home "Find Your Place": Men and Women share one column as two half-height tiles;
   Senior Adults gets the church's forest green so it can't be read as the women's tile. */
.mc-seniors { background: linear-gradient(160deg, #2c5a3c, var(--forest) 70%); }
.mc-stack { display: flex; flex-direction: column; gap: 14px; }
.mc-stack .mc-half { flex: 1; display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.mc-half .icon-badge { padding: 8px; margin: 0; flex-shrink: 0; }
.mc-half .icon-badge img { width: 32px; height: 32px; }
.mc-half h3 { margin: 0 0 2px; }
.mc-half p { margin: 0; }
@media (max-width: 860px) {
  /* On phones every home tile becomes a short row: icon left, text right. */
  .mc-stack { gap: 12px; }
  .mc-tiles { gap: 12px; }
  .mc-tiles .ministry-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
  .mc-tiles .icon-badge { padding: 8px; margin: 0; flex-shrink: 0; }
  .mc-tiles .icon-badge img { width: 34px; height: 34px; }
  .mc-tiles h3 { margin: 0 0 2px; }
  .mc-tiles p { margin: 0; }
}

/* Phone menu: call, directions, and watch live under the links. Hidden on desktop,
   where the header already has room and the footer carries the same details. */
.nav-drawer-contact { display: none; }
@media (max-width: 860px) {
  .nav-drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(26, 58, 26, 0.15);
  }
  .nav-drawer-contact a { text-decoration: none; color: var(--nearblack); line-height: 1.35; }
  .nav-drawer-contact strong { display: block; color: var(--forest); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
}

/* Readability: menu, buttons, and footer in normal case at full body size.
   All-caps with wide letter-spacing at ~14px was hard going for older eyes. */
.nav-links a, .nav-dropdown summary {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1.02rem;
}
.nav-dropdown ul li a { font-size: 1.02rem; }
.btn {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1rem;
}
.brand-text span { font-size: 0.82rem; }
footer { font-size: 1rem; }
footer h4 { font-size: 0.88rem; }
.footer-bottom { font-size: 0.9rem; }
@media (max-width: 860px) {
  .nav-links a, .nav-dropdown summary { font-size: 1.15rem; }
  .nav-dropdown ul li a { font-size: 1.08rem; padding: 8px 0; }
}

/* Watch page: responsive 16:9 video. */
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Single-column pages: cards, schedule rows, and callouts share the text's width
   instead of stretching full width with an empty right half. */
.wrap-narrow > * { max-width: 760px; }

/* Side-by-side schedule cards stretch to equal height; keep their contents top-aligned. */
.grid-2 > .schedule-row { align-items: flex-start; }

/* Tap-to-open questions (Plan Your Visit). */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--forest); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 24px 22px; }

/* Phones: sections and their inner .wrap each added side padding, leaving text about
   280px wide on a 390px screen. Let the .wrap alone set the gutter, and slim card padding. */
@media (max-width: 600px) {
  section, .page-hero { padding-left: 0; padding-right: 0; }
  .wrap { padding: 0 20px; }
  .card, .callout { padding: 22px 20px; }
  .schedule-row { padding: 20px; }
  .event-card { padding: 22px 20px; }
  .event-card .event-img { width: calc(100% + 40px); margin: -22px -20px 8px; }
  .faq summary { padding: 18px 48px 18px 20px; }
  .faq summary::after { right: 20px; }
  .faq p { padding: 0 20px 20px; }
  footer { padding-left: 0; padding-right: 0; }
}

/* Cards whose top bar should match their icon, not the position-based rotation above. */
.card.match-accent:has(.pane-sage) { --accent: var(--pane-1); }
.card.match-accent:has(.pane-gold) { --accent: var(--pane-2); }
.card.match-accent:has(.pane-teal) { --accent: var(--pane-3); }
.card.match-accent:has(.pane-blue) { --accent: var(--pane-4); }
.card.match-accent:has(.pane-mauve) { --accent: var(--pane-5); }
