:root {
  --navy: #1b365d;
  --gold: #c4a35a;
  --paper: #f7f6f1;
  --ink: #222831;
  --muted: #5c6570;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Karla", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; }

.classic-head {
  text-align: center;
  padding: 1.8rem 1rem 0.8rem;
  background: #fff;
  border-bottom: 1px solid #ddd7c8;
}
.head-bible {
  display: block;
  margin: 0 auto 0.55rem;
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.classic-head a.brand {
  text-decoration: none;
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
}
.classic-head .tag {
  margin: 0.4rem 0 0;
  font-style: italic;
  color: var(--muted);
}
.ornament {
  width: 140px;
  height: 10px;
  margin: 0.85rem auto 0;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 140px 1px no-repeat,
    radial-gradient(circle, var(--gold) 2px, transparent 3px) center / 10px 10px no-repeat;
}

.classic-nav {
  background: var(--navy);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0;
}
.classic-nav a {
  color: #eef2f7;
  text-decoration: none;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.classic-nav a[aria-current="page"],
.classic-nav a:hover {
  color: var(--gold);
}
.nav-toggle {
  display: none;
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 0.7rem;
  font: inherit;
}

.home-building-banner { margin: 0; }
.home-building-banner img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.readable {
  width: min(740px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.hero-classic {
  text-align: center;
  padding: 2.4rem 0 1.4rem;
}
.hero-classic h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 0.8rem;
  line-height: 1.3;
}
.hero-classic p { margin: 0 auto 1.2rem; max-width: 40rem; }
.actions { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  background: #fff;
  font-size: 0.95rem;
}
.btn-gold { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-gold:hover { color: #fff; background: #152a49; }
.btn:hover { background: #f3eee3; }
button.btn { cursor: pointer; font: inherit; }

.bulletin {
  border: 2px solid var(--navy);
  padding: 1.1rem 1.2rem 0.4rem;
  margin: 1.6rem 0;
  background: #fff;
}
.bulletin h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  text-align: center;
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 1.2rem;
}
.bulletin h2:not(:first-child) { margin-top: 1.1rem; }
.bulletin dl { margin: 0; }
.bulletin dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow: hidden;
  border-top: 1px solid #e5dfd0;
  padding: 0.5rem 0;
}
.bulletin dt,
.readable dl dt {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bulletin dd,
.readable dl dd {
  margin: 0;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}
.readable dl {
  margin: 0 0 1.4rem;
}
.readable dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem 1.25rem;
  flex-wrap: nowrap;
  overflow: hidden;
  border-top: 1px solid #e5dfd0;
  padding: 0.5rem 0;
}
[data-next-meeting] {
  white-space: nowrap;
}
.tri {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.6rem 0;
}
.tri a {
  display: block;
  background: #fff;
  border: 1px solid #ddd7c8;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.tri h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; color: var(--navy); }
h1 { font-size: 2rem; text-align: center; }
.rule { border: 0; border-top: 1px solid var(--gold); width: 80px; margin: 0 auto 1.3rem; }
.belief { margin: 0 0 1.6rem; }
.verse {
  margin: 0 0 0.8rem;
  padding: 0 0 0.2rem 0.9rem;
  border-left: 2px solid var(--gold);
}
.verse cite { display: block; font-style: italic; color: var(--muted); font-size: 0.92rem; }
.person, .lesson, .expect article, .form, .block {
  background: #fff;
  border: 1px solid #ddd7c8;
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
}
.preaching { margin: 1.4rem 0 0.9rem; }
.preaching > h2 { margin: 0 0 0.75rem; }
.person.has-photo,
.preach-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}
.person.has-photo > img,
.preach-card > img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #ddd7c8;
  background: #efece3;
}
.person.has-photo h2 { margin-top: 0.1rem; }
.preach-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.preach-card p { margin: 0; }
@media (max-width: 560px) {
  .person.has-photo,
  .preach-card {
    grid-template-columns: 1fr;
  }
  .bulletin dl > div,
  .readable dl > div {
    gap: 0.5rem;
  }
  .bulletin dd,
  .readable dl dd {
    font-size: 0.9rem;
  }
}
label { display: block; font-weight: 700; margin: 0.55rem 0 0.2rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.55rem;
  border: 1px solid #cfc8b8;
  background: #fff;
}
textarea { min-height: 110px; }
.thanks { background: #eef4ea; border: 1px solid #c3d6bc; padding: 0.7rem; margin-bottom: 0.7rem; }
.form-error { background: #f8ecec; border: 1px solid #d6bcbc; padding: 0.7rem; margin-bottom: 0.7rem; }
.form { position: relative; }
.gotcha,
#gotcha,
[name="_gotcha"] {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.muted { color: var(--muted); }

.readable.lessons-page {
  width: min(1000px, calc(100% - 2rem));
}
.pod-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.85rem 1.5rem;
  margin: 0.45rem 0 0;
  width: 100%;
  max-width: 100%;
}
.pod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 9.5rem;
  width: 100%;
  max-width: 11.25rem;
  min-width: 0;
}
.pod-card a {
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.pod-card img {
  width: 100%;
  max-width: 10rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #ddd7c8;
  background: #fff;
}
.pod-title {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  margin-top: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pod-count {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}
.pod-rss {
  display: inline-block;
  margin-top: 0.08rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.pod-listen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.pod-listen-btn {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid #ddd7c8;
  border-radius: 3px;
  padding: 0.12rem 0.45rem;
  background: #fff;
}
.pod-listen-btn:hover,
.pod-listen-btn:focus-visible {
  border-color: var(--navy);
  color: var(--navy);
}
.yt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1rem 0 0;
  width: 100%;
  max-width: 100%;
}
.yt-item { margin: 0; min-width: 0; }
.yt-item a {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.yt-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #ddd7c8;
  background: #111;
}
.yt-item h3 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width: 640px) {
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .yt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pod-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
  }
  .pod-card {
    flex: 0 1 auto;
    max-width: 12.5rem;
  }
}

.footer {
  background: var(--navy);
  color: #dce4ee;
  padding: 2rem 1rem;
}
.footer a { color: var(--gold); }
.footer-grid {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.1rem;
  text-align: left;
}
.footer h2, .footer h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.1rem; }
.footer h3 + p + h3 { margin-top: 0.9rem; }
.chooser-link { text-align: center; margin-top: 1.2rem; }

.readable.impact-page { width: min(960px, calc(100% - 2rem)); }
.impact-cards,
.impact-pod-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.3rem;
}
.impact-card {
  background: #f7f6f1;
  border: 1px solid #ddd7c8;
  padding: 0.95rem 0.7rem;
  text-align: center;
}
.impact-card-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.impact-card-num {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0.25rem 0 0;
  line-height: 1.15;
}
.impact-card-sub,
.impact-card-sessions {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.impact-map {
  position: relative;
  height: auto;
  min-height: 280px;
  aspect-ratio: 2 / 1;
  margin: 0.8rem 0 1.1rem;
  border: 1px solid #ddd7c8;
  background: #8fa9be;
  overflow: hidden;
}
.world-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  aspect-ratio: 2 / 1;
}
.world-ocean { fill: #8fa9be; }
.world-grid { stroke: #7d96ab; stroke-width: 0.5; }
.world-land { fill: #c5ccd4; }
.world-country {
  fill: #d9d0bc;
  stroke: #7d7464;
  stroke-width: 0.35;
  stroke-linejoin: round;
}
.world-country.is-hit {
  stroke: var(--navy);
  stroke-width: 0.55;
}
.world-country.heat-1 { fill: #ead9a6; }
.world-country.heat-2 { fill: #c4a35a; }
.world-country.heat-3 { fill: #8a6b32; }
.world-country.heat-4 { fill: #1b365d; }
.world-hit {
  fill: var(--gold);
  fill-opacity: 0.78;
  stroke: var(--navy);
  stroke-width: 1;
  pointer-events: auto;
  cursor: pointer;
}
.world-hit:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.impact-map-tooltip {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  max-width: 240px;
  padding: 0.55rem 0.72rem 0.6rem;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(27, 54, 93, 0.35);
  pointer-events: none;
  font-size: 0.86rem;
  line-height: 1.35;
  visibility: hidden;
  opacity: 0;
}
.impact-map-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
}
.impact-map-tooltip p {
  margin: 0;
}
.impact-map-tooltip-id {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.92rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.impact-map-tooltip-label {
  margin-top: 0.18rem;
  color: var(--paper);
}
.impact-map-tooltip-stats {
  margin-top: 0.28rem;
  font-size: 0.8rem;
  color: #e8e2d2;
}
.world-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  text-align: center;
  padding: 0 1rem;
}
.impact-bars {
  list-style: none;
  margin: 0.6rem 0 1rem;
  padding: 0;
}
.impact-bars li { margin: 0 0 0.65rem; }
.impact-bars .bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}
.impact-bars .bar-track {
  height: 8px;
  margin-top: 0.28rem;
  background: #efece3;
}
.impact-bars .bar-fill {
  height: 8px;
  background: var(--navy);
}
.impact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.4rem 0 0;
}
.impact-table th,
.impact-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-top: 1px solid #e5dfd0;
}
.impact-table th { color: var(--navy); font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; }
.privacy-note {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.footer .privacy-note {
  width: min(900px, 100%);
  margin: 1.4rem auto 0;
  text-align: center;
  color: #b8c3d0;
  font-size: 0.82rem;
  padding: 0 0.2rem;
}

@media (max-width: 800px) {
  .tri, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .classic-nav { display: none; flex-direction: column; text-align: center; }
  .classic-nav.is-open { display: flex; }
}

/* Bible course call-to-action banner (.course-cta) — shared by / and /lessons/ */
.course-cta { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1rem 1.6rem; align-items: center; margin: 1.4rem 0 1.8rem; padding: 1.2rem 1.5rem; background: #fbf7ec; border: 1px solid #e6d9b8; border-left: 4px solid var(--gold); border-radius: 10px; box-shadow: 0 1px 3px rgba(27, 54, 93, 0.06); }
.course-cta p { margin: 0; }
.course-cta-text { font-size: 1.04rem; line-height: 1.65; }
.course-cta-text strong { display: block; margin-bottom: 0.2rem; font-family: "Libre Baskerville", Georgia, serif; color: var(--navy); font-size: 1.12rem; }
.course-cta-text em { color: var(--navy); }
.course-cta-action { text-align: center; }
.course-cta-action .btn { display: block; width: 100%; text-align: center; padding: 0.75rem 1rem; border-radius: 6px; font-size: 1rem; }
@media (max-width: 600px) {
  .course-cta { grid-template-columns: 1fr; padding: 1rem 1.1rem; }
}

.head-social {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.7rem 0 0;
}
.head-social a {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd7c8;
  transition: color 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
}
.head-social a:hover,
.head-social a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}
.head-social a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.head-social svg { display: block; }
@media (max-width: 560px) {
  .head-social { gap: 0.75rem; }
  .head-social a { width: 36px; height: 36px; }
}
