:root {
  --ink: #071226;
  --navy: #001d35;
  --gold: #d5a153;
  --gold-2: #f1c06d;
  --paper: #fffaf3;
  --paper-2: #f5efe6;
  --line: rgba(65, 48, 30, 0.18);
  --muted: #596372;
  --blue: #2d6dac;
  --green: #2d917b;
  --rose: #b44d74;
  --shadow: 0 18px 45px rgba(32, 25, 18, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(213, 161, 83, 0.13), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(45, 109, 172, 0.10), transparent 28rem),
    linear-gradient(180deg, #f7f2eb 0%, #fffaf3 72%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, p { margin-top: 0; }
a { color: inherit; }

.religions-header {
  min-height: 84px;
  padding: 0 clamp(18px, 3.6vw, 56px);
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 104, 139, 0.42), transparent 34%),
    linear-gradient(90deg, #001b33 0%, #00152b 60%, #001120 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 290px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 52px;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.36));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  display: block;
  font: 600 35px/1 Cinzel, Georgia, serif;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.brand-tagline {
  display: block;
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  margin-top: 3px;
}

.religions-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
}

.religions-nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  padding: 30px 0 22px;
  border-bottom: 3px solid transparent;
}

.religions-nav a.active { border-color: var(--gold-2); }

main {
  display: grid;
  gap: 22px;
  padding-bottom: 36px;
}

.religions-hero {
  min-height: 430px;
  padding: clamp(34px, 5vw, 70px) clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(360px, 720px) minmax(260px, 420px);
  gap: clamp(30px, 7vw, 120px);
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(7, 18, 38, 0.94) 0%, rgba(7, 18, 38, 0.74) 43%, rgba(7, 18, 38, 0.28) 72%, rgba(7, 18, 38, 0.08) 100%),
    url("../assets/religions/ornate-cathedral-hero.png");
  background-size: cover;
  background-position: center;
}

.eyebrow {
  display: inline-block;
  color: #9a6b24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.religions-hero h1 {
  color: #fffaf3;
  max-width: 720px;
  margin-bottom: 16px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
  font: 650 clamp(44px, 5.6vw, 78px)/0.96 Georgia, "Times New Roman", serif;
}

.religions-hero p {
  max-width: 660px;
  color: #f7ead8;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action {
  color: #fffaf3;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(0, 24, 45, 0.22);
}

.inline-action {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  color: #fffaf3;
  background: var(--navy);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.secondary-action {
  color: #fffaf3;
  background: rgba(255, 250, 243, 0.12);
  border: 1px solid rgba(241, 192, 109, 0.72);
}

.religions-hero blockquote {
  margin: 0;
  padding: 26px 30px;
  color: #fffaf3;
  border: 1px solid rgba(241, 192, 109, 0.45);
  border-radius: 10px;
  background: rgba(7, 18, 38, 0.44);
  backdrop-filter: blur(5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.religions-hero blockquote p {
  margin-bottom: 13px;
  font: 20px/1.5 Georgia, "Times New Roman", serif;
}

.religions-hero cite {
  color: var(--gold-2);
  font-style: normal;
  font-weight: 800;
}

.tradition-hero {
  min-height: 470px;
  padding: clamp(34px, 5vw, 70px) clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(360px, 760px) minmax(260px, 420px);
  gap: clamp(28px, 6vw, 100px);
  align-items: center;
  color: #fffaf3;
  background-size: cover;
  background-position: center;
}

.catholic-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 18, 38, 0.95) 0%, rgba(7, 18, 38, 0.76) 45%, rgba(7, 18, 38, 0.24) 100%),
    url("../assets/religions/ornate-cathedral-hero.png");
}

.tradition-hero .eyebrow {
  color: var(--gold-2);
}

.tradition-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font: 650 clamp(42px, 5.2vw, 74px)/0.98 Georgia, "Times New Roman", serif;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

.tradition-hero p {
  max-width: 720px;
  color: #f7ead8;
  font-size: 18px;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #f1c06d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.identity-panel {
  padding: 24px;
  border: 1px solid rgba(241, 192, 109, 0.46);
  border-radius: 10px;
  background: rgba(7, 18, 38, 0.52);
  backdrop-filter: blur(5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.identity-panel > b {
  display: block;
  margin-bottom: 16px;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-panel dl {
  margin: 0;
  display: grid;
  gap: 13px;
}

.identity-panel div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 250, 243, 0.16);
}

.identity-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.identity-panel dt {
  color: #f1c06d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-panel dd {
  margin: 4px 0 0;
  color: #fffaf3;
  line-height: 1.45;
}

.purpose-band,
.timeline-section,
.authority-section,
.histories-section,
.scribe-section,
.collection-status,
.catholic-plan,
.overview-strip,
.teaching-section,
.council-section,
.reader-questions,
.source-library {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.purpose-band,
.scribe-section,
.collection-status,
.overview-strip,
.source-library {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.purpose-band h2,
.section-heading h2,
.scribe-section h2,
.collection-status h2,
.overview-strip h2,
.source-library h2 {
  margin-bottom: 12px;
  font: 700 clamp(28px, 3vw, 42px)/1.1 Georgia, "Times New Roman", serif;
}

.purpose-band p,
.section-heading p,
.scribe-section p,
.collection-status p,
.overview-strip p,
.source-library p {
  color: #2d3849;
  line-height: 1.62;
}

.method-list,
.collection-status ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.method-list li,
.collection-status li {
  padding: 12px 14px;
  border: 1px solid rgba(65, 48, 30, 0.14);
  border-radius: 8px;
  background: #fffaf3;
}

.method-list b {
  display: block;
  margin-bottom: 4px;
}

.method-list span,
.collection-status li {
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  margin: 20px 0 14px;
}

.history-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
}

.history-timeline li {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 7px 18px rgba(40, 29, 20, 0.08);
}

.history-timeline b {
  display: block;
  margin-bottom: 10px;
  color: #8a5515;
}

.history-timeline span {
  color: #2f3a4b;
  font-size: 13px;
  line-height: 1.45;
}

.wide-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.wide-timeline li {
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 7px 18px rgba(40, 29, 20, 0.08);
}

.wide-timeline b {
  display: block;
  margin-bottom: 10px;
  color: #8a5515;
}

.wide-timeline span {
  color: #2f3a4b;
  line-height: 1.48;
}

.authority-section {
  padding: 24px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 29, 53, 0.96), rgba(16, 55, 76, 0.94)),
    radial-gradient(circle at 80% 0%, rgba(241, 192, 109, 0.22), transparent 24rem);
  color: #fffaf3;
  box-shadow: var(--shadow);
}

.authority-section .eyebrow,
.authority-section h2 {
  color: #f1c06d;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.authority-grid span {
  min-height: 54px;
  display: grid;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(241, 192, 109, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.08);
  font-weight: 800;
}

.tradition-authority .section-heading p {
  color: #f7ead8;
}

.question-stack {
  display: grid;
  align-content: start;
  gap: 10px;
}

.question-stack b {
  color: #8a5515;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-stack a {
  min-height: 50px;
  display: grid;
  align-items: center;
  padding: 12px 14px;
  color: #082a45;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(65, 48, 30, 0.14);
  border-radius: 8px;
  background: #fffaf3;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.history-card {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 7px 18px rgba(40, 29, 20, 0.08);
}

.history-card span {
  color: #8a5a15;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-card h3 {
  margin: 0;
  font: 700 23px/1.12 Georgia, "Times New Roman", serif;
}

.history-card p {
  color: #2e3949;
  line-height: 1.52;
}

.history-card a {
  align-self: end;
  color: #082a45;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.catholic { border-top: 5px solid var(--gold); }
.orthodox { border-top: 5px solid var(--blue); }
.protestant { border-top: 5px solid var(--green); }
.baptist { border-top: 5px solid #6c7b8d; }
.lds { border-top: 5px solid var(--rose); }
.witness { border-top: 5px solid #7d67b7; }
.adventist { border-top: 5px solid #d87b3b; }
.restoration { border-top: 5px solid #345f7f; }

.scribe-tools,
.period-grid,
.teaching-grid,
.source-grid,
.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.scribe-tools div,
.period-grid div,
.teaching-grid article,
.source-grid article {
  padding: 14px;
  border: 1px solid rgba(65, 48, 30, 0.14);
  border-radius: 8px;
  background: #fffaf3;
}

.scribe-tools b,
.period-grid b,
.teaching-grid b,
.source-grid b {
  display: block;
  margin-bottom: 6px;
  color: #8a5515;
}

.scribe-tools span,
.period-grid span,
.teaching-grid span,
.source-grid span {
  color: #303b4e;
  line-height: 1.45;
}

.period-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.teaching-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.source-grid,
.question-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.question-grid button {
  min-height: 62px;
  padding: 14px 16px;
  color: #082a45;
  font: 800 15px/1.25 Inter, system-ui, sans-serif;
  text-align: left;
  border: 1px solid rgba(65, 48, 30, 0.16);
  border-radius: 8px;
  background: #fffaf3;
  cursor: pointer;
}

.source-library ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.source-library li {
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.45;
  border: 1px solid rgba(65, 48, 30, 0.14);
  border-radius: 8px;
  background: #fffaf3;
}

.source-library a {
  color: #082a45;
  font-weight: 900;
  text-decoration: none;
}

.tradition-page-nav,
.detail-hero,
.detail-section,
.answer-bank,
.receipt-map {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.tradition-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 7px 18px rgba(40, 29, 20, 0.08);
}

.tradition-page-nav a {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: #082a45;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(65, 48, 30, 0.12);
  border-radius: 7px;
  background: #fffaf3;
}

.tradition-page-nav a.active {
  color: #fffaf3;
  background: var(--navy);
  border-color: var(--navy);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  color: #fffaf3;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 29, 53, 0.96), rgba(38, 70, 86, 0.92)),
    radial-gradient(circle at 78% 12%, rgba(241, 192, 109, 0.24), transparent 24rem);
  box-shadow: var(--shadow);
}

.detail-hero h1 {
  margin-bottom: 12px;
  font: 700 clamp(34px, 4vw, 58px)/1.02 Georgia, "Times New Roman", serif;
}

.detail-hero p {
  color: #f7ead8;
  line-height: 1.62;
}

.detail-summary {
  display: grid;
  gap: 10px;
}

.detail-summary div {
  padding: 14px;
  border: 1px solid rgba(241, 192, 109, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.08);
}

.detail-summary b {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-2);
}

.detail-summary span {
  color: #fffaf3;
  line-height: 1.45;
}

.detail-section,
.answer-bank,
.receipt-map {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 7px 18px rgba(40, 29, 20, 0.08);
}

.detail-section h2,
.answer-bank h2,
.receipt-map h2 {
  margin-bottom: 12px;
  font: 700 clamp(28px, 3vw, 42px)/1.1 Georgia, "Times New Roman", serif;
}

.detail-section p,
.answer-bank p,
.receipt-map p {
  color: #2d3849;
  line-height: 1.62;
}

.detail-grid,
.answer-grid,
.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.detail-grid article,
.answer-grid article,
.receipt-grid article {
  padding: 15px;
  border: 1px solid rgba(65, 48, 30, 0.14);
  border-radius: 8px;
  background: #fffaf3;
}

.detail-grid b,
.answer-grid b,
.receipt-grid b {
  display: block;
  margin-bottom: 6px;
  color: #8a5515;
}

.detail-grid span,
.answer-grid span,
.receipt-grid span {
  color: #303b4e;
  line-height: 1.48;
}

.ask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ask-row button {
  min-height: 40px;
  padding: 0 13px;
  color: #082a45;
  font: 900 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(196, 139, 59, 0.34);
  border-radius: 7px;
  background: #fff6e8;
  cursor: pointer;
}

.religions-footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 30px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fffaf3;
  background: var(--navy);
  border-radius: 10px;
}

.religions-footer span {
  color: #f1c06d;
}

@media (max-width: 1100px) {
  .religions-header,
  .religions-nav,
  .religions-footer {
    flex-wrap: wrap;
  }

  .religions-hero,
  .tradition-hero,
  .detail-hero,
  .purpose-band,
  .scribe-section,
  .collection-status,
  .overview-strip,
  .source-library {
    grid-template-columns: 1fr;
  }

  .history-timeline,
  .history-grid,
  .wide-timeline,
  .period-grid,
  .teaching-grid,
    .source-grid,
  .question-grid,
  .detail-grid,
  .answer-grid,
  .receipt-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .religions-header {
    position: static;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 28px;
  }

  .religions-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
  }

  .religions-nav a {
    padding: 10px 0 14px;
  }

  .religions-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tradition-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .history-timeline,
  .history-grid,
  .wide-timeline,
  .authority-grid,
  .scribe-tools,
  .period-grid,
  .teaching-grid,
  .source-grid,
  .question-grid,
  .detail-grid,
  .answer-grid,
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .religions-footer {
    display: block;
  }
}

.orthodox-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 18, 38, 0.95) 0%, rgba(7, 18, 38, 0.78) 45%, rgba(7, 18, 38, 0.24) 100%),
    radial-gradient(circle at 78% 28%, rgba(190, 145, 70, 0.38), transparent 42%),
    url("../assets/religions/ornate-cathedral-hero.png");
}


.protestant-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 18, 38, 0.95) 0%, rgba(7, 18, 38, 0.78) 45%, rgba(7, 18, 38, 0.24) 100%),
    radial-gradient(circle at 78% 28%, rgba(190, 120, 55, 0.38), transparent 42%),
    url("../assets/religions/orthodox-hero.png");
}


.baptist-hero {
  background-image:
    linear-gradient(90deg, rgba(6, 22, 40, 0.95) 0%, rgba(6, 22, 40, 0.78) 45%, rgba(6, 22, 40, 0.24) 100%),
    radial-gradient(circle at 78% 28%, rgba(40, 120, 180, 0.42), transparent 42%),
    url("../assets/religions/orthodox-hero.png");
}


.jw-hero {
  background-image:
    linear-gradient(90deg, rgba(16, 10, 34, 0.95) 0%, rgba(16, 10, 34, 0.78) 45%, rgba(16, 10, 34, 0.24) 100%),
    radial-gradient(circle at 78% 28%, rgba(130, 95, 210, 0.42), transparent 42%),
    url("../assets/religions/orthodox-hero.png");
}


.adventist-hero {
  background-image:
    linear-gradient(90deg, rgba(6, 30, 22, 0.95) 0%, rgba(6, 30, 22, 0.78) 45%, rgba(6, 30, 22, 0.24) 100%),
    radial-gradient(circle at 78% 28%, rgba(80, 180, 120, 0.42), transparent 42%),
    url("../assets/religions/orthodox-hero.png");
}


.restoration-hero {
  background-image:
    linear-gradient(90deg, rgba(34, 24, 8, 0.95) 0%, rgba(34, 24, 8, 0.78) 45%, rgba(34, 24, 8, 0.24) 100%),
    radial-gradient(circle at 78% 28%, rgba(210, 170, 90, 0.42), transparent 42%),
    url("../assets/religions/orthodox-hero.png");
}
