/* ============================================================
   Acts 238 Life — shared stylesheet
   Design follows the style pattern of Urshan University
   (urshan.edu): white-dominant layout, primary blue #094F8D,
   deep navy #183A65, near-black ink #1D1D1F, light gray
   section bands #F4F4F4; elegant Didone-serif display type
   (Urshan uses IvyPresto) paired with a clean humanist sans
   (Urshan uses Roboto) — both approximated here with local
   system font stacks. No webfonts, frameworks, or imports.
   Pattern inspiration only: no Urshan assets or text are used.
   ============================================================ */

:root {
  --blue: #094F8D;          /* Urshan primary */
  --navy: #183A65;          /* Urshan deep navy */
  --ink: #1D1D1F;           /* Urshan near-black text */
  --ink-soft: #51545A;
  --band: #F4F4F4;          /* Urshan light section band */
  --line: #E2E5E8;
  --white: #FFFFFF;
  --blue-tint: #E9F0F7;     /* draft chip / pale accents */
  --blue-pale: #9DC3E6;     /* light blue on navy */
  --serif: "Didot", "Bodoni MT", "Cochin", Georgia, "Times New Roman", serif;
  --sans: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Header: white bar, wordmark left, nav right ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 2.5rem;
}

.brand { margin-right: auto; display: flex; align-items: center; gap: 0.7rem; }

.brand-seal { display: block; width: 40px; height: 40px; flex: none; }

.site-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}

.site-title .ref { color: var(--blue); }

.site-tagline {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.4rem;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus { color: var(--blue); }

.site-nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main .wrap { padding: 2.4rem 1.25rem 3rem; }

.narrow { max-width: 760px; }

/* Full-width light band that carries each section page's title */
.page-head { background: var(--band); }
.page-head .wrap { padding: 2.4rem 1.25rem 2rem; }
.page-head h1 { margin: 0; }

/* Full-width gray band (homepage cards section) */
.band { background: var(--band); }
.band .wrap { padding: 2.6rem 1.25rem 3rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.22;
  letter-spacing: 0.005em;
}

h1 { font-size: 2.5rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.55rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }

h2::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2px;
  background: var(--blue);
  margin-top: 0.4rem;
}

p { margin: 0 0 1rem; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lede { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Hero: full-width navy band (homepage) ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
}

.hero .wrap { padding: 3.6rem 1.25rem 3.2rem; }

.hero blockquote {
  margin: 0 auto 1.2rem;
  max-width: 50rem;
  font-family: var(--serif);
  font-size: 1.95rem;
  line-height: 1.45;
  color: var(--white);
}

.hero blockquote::before { content: "\201C"; }
.hero blockquote::after  { content: "\201D"; }

.hero .citation {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.hero .citation::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 auto 1rem;
}

/* ---------- Cards (homepage sections) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1.4rem 1.35rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover, .card:focus {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card h3 { margin-top: 0; font-size: 1.32rem; color: var(--navy); }
.card p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.card .go {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Draft marker ---------- */

.draft-note {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue-tint);
  border: 1px solid #B9CFE3;
  border-radius: 3px;
  padding: 0.3rem 0.65rem;
  margin: 0 0 1.2rem;
}

.placeholder {
  color: var(--ink-soft);
  font-style: italic;
  background: var(--band);
  border: 1px dashed #C4CED6;
  padding: 0.9rem 1.1rem;
}

/* ---------- Timeline (history) ---------- */

.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid #C9D6E2;
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 0.45rem;
  width: 0.62rem;
  height: 0.62rem;
  margin-left: -0.38rem;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}

.timeline .when {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- Scaffold table (writings) ---------- */

table.scaffold {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  margin: 1rem 0 1.6rem;
  font-size: 0.97rem;
}

table.scaffold th, table.scaffold td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

table.scaffold th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Footer: deep navy band, serif wordmark ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 2rem;
  font-size: 0.92rem;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}

.foot-brand .ref { color: var(--blue-pale); }

.site-footer p { margin: 0 0 0.4rem; }
.site-footer a { color: #CFE3F2; }
.site-footer a:hover { color: var(--white); }

.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.3rem;
  margin: 0 0 1.1rem;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

/* ---------- Collapsible sections (Doctrine) ---------- */

.collapsible-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.collapsible-action {
  appearance: none;
  background: none;
  border: none;
  padding: 0.25rem 0.1rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--blue);
  cursor: pointer;
}

.collapsible-action:hover { color: var(--navy); text-decoration: underline; }

.collapsible-section {
  border-top: 1px solid var(--line);
}

.collapsible-section:first-of-type { border-top: none; }

.collapsible-heading { margin: 0; }

.collapsible-heading::after { display: none; }

.collapsible-toggle {
  appearance: none;
  background: none;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0.2rem 0.85rem;
  margin: 0;
  font: inherit;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.collapsible-toggle:hover { color: var(--blue); }

.collapsible-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.collapsible-chevron {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-right: 0.35rem;
}

.collapsible-toggle[aria-expanded="true"] .collapsible-chevron {
  transform: rotate(225deg);
}

.collapsible-panel { padding-bottom: 0.6rem; }
.collapsible-panel[hidden] { display: none; }

.collapsible-section.is-closed .collapsible-toggle { padding-bottom: 1.1rem; }

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .site-header .wrap { gap: 0.4rem 1rem; padding: 0.85rem 1rem; }
  .site-title { font-size: 1.3rem; }
  .site-nav a { padding: 0.4rem 0.45rem; font-size: 0.74rem; }
  h1 { font-size: 1.9rem; }
  .collapsible-toggle { font-size: 1.9rem; }
  .page-head .wrap { padding: 1.7rem 1rem 1.4rem; }
  .hero .wrap { padding: 2.4rem 1rem 2.1rem; }
  .hero blockquote { font-size: 1.42rem; }
  main .wrap { padding: 1.7rem 1rem 2.4rem; }
  .band .wrap { padding: 1.9rem 1rem 2.4rem; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .hero, .page-head, .band { background: #fff; }
  .site-title, .site-tagline, .foot-brand, .site-footer p,
  .hero blockquote, .hero .citation, h1, h2, h3 { color: #000; }
  .site-title .ref, .foot-brand .ref { color: #000; }
  .hero .citation::before { background: #999; }
  .site-header { border-bottom: 1px solid #999; }
  .site-nav, .site-footer nav { display: none; }
  .hero, .card, .placeholder { border: 1px solid #999; box-shadow: none; }
  .draft-note { background: #fff; border-color: #999; color: #000; }
  .collapsible-toolbar, .collapsible-chevron { display: none; }
  .collapsible-panel[hidden] { display: block; }
  .collapsible-toggle { color: #000; }
  a { color: #000; text-decoration: none; }
  main .wrap, .hero .wrap, .band .wrap, .page-head .wrap { padding: 0; max-width: none; }
}

/* Doctrine: per-section sources + find-a-church next step (UX plan P1/P2, Doctrine chat) */
.section-sources { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.section-sources h3 { font-size: 1.05rem; color: var(--navy); margin: 0 0 0.5rem; }
.section-sources ul { margin: 0 0 0.5rem; padding-left: 1.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.section-sources li { margin-bottom: 0.25rem; }
.section-sources-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.next-step { margin-top: 1.4rem; background: var(--band); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; }
.next-step-heading { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin: 0 0 0.35rem; }
.next-step p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.next-step-link { font-weight: 700; color: var(--blue); text-decoration: none; }
.next-step-link:hover, .next-step-link:focus { text-decoration: underline; }

/* Homepage finder + doors + buttons (Sam approved Oct 26, 2026) */
  .btn { display: inline-block; background: var(--blue); color: var(--white);
         padding: 0.7rem 1.4rem; border-radius: 6px; text-decoration: none;
         font-weight: 600; border: 2px solid var(--blue); cursor: pointer; font-size: 1rem; }
  .btn:hover, .btn:focus-visible { background: var(--navy); border-color: var(--navy); }
  .btn-secondary { background: var(--white); color: var(--blue); }
  .btn-secondary:hover, .btn-secondary:focus-visible { background: var(--blue-tint); color: var(--navy); }
  .finder { background: var(--blue-tint); padding: 2rem 0; }
  .finder h2 { margin-top: 0; }
  .finder form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0 0.6rem; }
  .finder input[type="search"] { flex: 1 1 260px; padding: 0.7rem 1rem; font-size: 1rem;
         border: 1px solid #C4CED6; border-radius: 6px; min-height: 48px; }
  .finder .btn { min-height: 48px; }
  .doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
           gap: 1rem; margin: 2rem 0; }
  .door { border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; background: var(--white); }
  .door h3 { margin-top: 0; }
  .door .door-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; }
