:root {
  --bg: #080b0f;
  --bg-2: #0d1218;
  --panel: #111821;
  --panel-2: #151d27;
  --gold: #d99521;
  --gold-light: #f0b84f;
  --gold-dark: #8f5d13;
  --red: #9d231e;
  --text: #f4f0e7;
  --muted: #b9b4aa;
  --line: rgba(217,149,33,.28);
  --line-soft: rgba(255,255,255,.09);
  --white-soft: rgba(255,255,255,.04);
  --max: 1320px;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 1000; background: var(--gold); color: #111; padding: 8px 12px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,11,15,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: grid; line-height: 1; letter-spacing: .08em; }
.brand-text strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; color: #fff; }
.brand-text small { margin-top: 6px; font-size: 10px; letter-spacing: .24em; color: var(--gold-light); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.site-nav a { color: #dcd8cf; transition: color .2s ease; }
.site-nav a:hover { color: var(--gold-light); }
.nav-cta { border: 1px solid var(--gold); padding: 11px 16px; border-radius: 999px; color: #fff !important; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: #fff; margin: 5px 0; }

.brand-banner { padding: 22px 0 6px; background: radial-gradient(circle at 50% 0%, rgba(217,149,33,.12), transparent 42%); }
.brand-banner-inner { display: flex; justify-content: center; }
.brand-banner img { width: min(1180px, 100%); filter: drop-shadow(0 18px 40px rgba(0,0,0,.42)); }

.hero { position: relative; overflow: hidden; padding: 44px 0 70px; background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.hero::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at 78% 32%, rgba(217,149,33,.11), transparent 25%), linear-gradient(120deg, transparent 45%, rgba(255,255,255,.015)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 74px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--gold-light); letter-spacing: .19em; font-size: 12px; font-weight: 900; text-transform: uppercase; }
h1,h2,h3 { margin-top: 0; line-height: 1.12; }
h1,h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin-bottom: 24px; font-size: clamp(46px, 5vw, 78px); letter-spacing: -.03em; }
h1 span { color: var(--gold-light); }
h2 { font-size: clamp(34px, 3.8vw, 56px); letter-spacing: -.025em; }
h3 { font-size: 22px; }
.hero-lead { max-width: 750px; font-size: 20px; color: #d1cdc4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px; border-radius: 8px; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #171009; box-shadow: 0 10px 30px rgba(217,149,33,.16); }
.btn-secondary { border-color: rgba(240,184,79,.62); color: #fff; background: rgba(255,255,255,.025); }
.btn-secondary:hover { border-color: var(--gold-light); background: rgba(217,149,33,.08); }
.full { width: 100%; }
.microcopy { margin-top: 18px; color: #aaa59b; font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.hero-mark { display: flex; flex-direction: column; align-items: center; position: relative; }
.emblem-shell { width: min(550px, 100%); position: relative; display: grid; place-items: center; }
.emblem-shell img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 28px 55px rgba(0,0,0,.58)); }
.emblem-halo { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(217,149,33,.23), rgba(217,149,33,.04) 45%, transparent 70%); filter: blur(16px); }
.hero-card { width: min(520px, 96%); margin-top: 22px; padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; background: rgba(14,19,25,.94); box-shadow: var(--shadow); }
.card-kicker { color: var(--gold-light); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.hero-card p { margin: 9px 0 0; color: #d8d4cc; }

.mission-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b0f14; }
.strip-grid { min-height: 112px; display: grid; grid-template-columns: repeat(4,1fr); }
.strip-grid > div { display: grid; place-content: center; gap: 4px; text-align: center; border-right: 1px solid var(--line-soft); }
.strip-grid > div:last-child { border-right: 0; }
.strip-grid strong { color: var(--gold-light); letter-spacing: .13em; }
.strip-grid span { color: #a8a399; font-size: 13px; }

.section { padding: 105px 0; }
.section-dark { background: #0b0f14; }
.section-heading { max-width: 760px; }
.section-heading.centered { max-width: 960px; margin: 0 auto 52px; text-align: center; }
.section-heading h2 { margin-bottom: 19px; }
.section-heading p:not(.eyebrow), .lead-copy { color: var(--muted); font-size: 18px; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.prose { color: #d0ccc3; font-size: 18px; }
.prose p:first-child { margin-top: 0; }

.audience-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.audience-card, .feature-card, .belief-grid article { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; }
.audience-card { min-height: 310px; }
.number, .feature-icon { color: var(--gold-light); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.audience-card h3, .feature-card h3 { margin: 42px 0 12px; }
.audience-card p, .feature-card p, .belief-grid p { margin-bottom: 0; color: #bcb7ad; }
.centered-callout { margin-top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 28px 32px; border: 1px solid var(--line); background: rgba(217,149,33,.055); border-radius: var(--radius); }
.centered-callout p { margin: 0; max-width: 900px; font-size: 18px; color: #ded9cf; }

.happens-section { background: linear-gradient(180deg, #0e141b, #0a0e13); }
.four-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.feature-card { min-height: 300px; }
.feature-icon { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.statement-band { margin-top: 36px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement-band p { margin: 0; max-width: 920px; font-size: 18px; }

.gospel-section { background: radial-gradient(circle at 50% 15%, rgba(157,35,30,.15), transparent 32%), #080b0f; border-top: 1px solid rgba(157,35,30,.24); border-bottom: 1px solid rgba(157,35,30,.2); }
.gospel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gospel-grid article { padding: 27px; border: 1px solid var(--line-soft); border-top: 3px solid var(--gold-dark); background: rgba(255,255,255,.025); }
.gospel-grid span { color: var(--gold-light); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.gospel-grid h3 { margin: 16px 0 10px; }
.gospel-grid p { margin: 0; color: #bbb6ac; }
.resurrection-quote { margin: 46px 0 0; padding: 40px; border-left: 4px solid var(--red); background: linear-gradient(90deg, rgba(157,35,30,.14), rgba(217,149,33,.045)); }
.resurrection-quote p { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px,3vw,42px); color: #fff; }
.resurrection-quote span { color: #c7c1b7; }
.gospel-security { margin: 28px auto 0; max-width: 900px; text-align: center; padding: 28px; }
.gospel-security strong { display: block; font-size: 24px; color: var(--gold-light); }
.gospel-security p { color: #c2bdb3; }
.gospel-security .btn { margin-top: 8px; }

.pathway-section { background: #0d1218; }
.pathway { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 8px 2px 20px; }
.path-step { flex: 1 0 130px; min-height: 116px; display: grid; place-content: center; text-align: center; border: 1px solid var(--line); background: rgba(217,149,33,.04); border-radius: 10px; }
.path-step strong { color: var(--gold-light); letter-spacing: .08em; }
.path-step span { margin-top: 6px; font-size: 12px; color: #a9a49b; }
.path-arrow { display: grid; place-content: center; color: var(--gold-dark); font-size: 25px; }
.path-summary { margin: 28px auto 0; max-width: 980px; text-align: center; color: #c6c0b6; font-size: 17px; }

.gatherings-section { background: linear-gradient(180deg, #0a0e13, #101720); }
.gatherings-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 80px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; color: #c8c3b9; }
.check-list li::before { content: "✓"; color: var(--gold-light); margin-right: 10px; font-weight: 900; }
.gathering-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #121a23, #0d131a); box-shadow: var(--shadow); }
.status { color: var(--gold-light); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.status span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #56a66f; margin-right: 7px; }
.gathering-card h3 { margin: 22px 0 4px; font-size: 32px; }
.when { margin: 0; color: #fff; font-weight: 800; }
.where { margin-top: 2px; color: var(--gold-light); }
.gathering-card > p:not(.when):not(.where) { color: #bdb8ae; }
.gathering-card small { display: block; margin-top: 12px; color: #88847c; }

.beliefs-section { background: #090d12; }
.belief-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.belief-grid article { min-height: 230px; }
.belief-grid h3 { color: var(--gold-light); }
.belief-footer { max-width: 980px; margin: 38px auto 0; text-align: center; padding: 32px; border-top: 1px solid var(--line); }
.belief-footer p { color: #c6c0b7; }
.belief-footer strong { display: block; margin: 18px 0 24px; color: var(--gold-light); letter-spacing: .05em; }

.help-section { background: #101720; }
.help-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 54px; align-items: start; }
.need-list { padding: 30px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(0,0,0,.15); }
.need-list h3 { color: var(--gold-light); }
.need-list ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; color: #c3beb5; }
.need-list li { margin-bottom: 9px; break-inside: avoid; }
.help-options { display: grid; gap: 14px; }
.help-options a { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.025); border-radius: 10px; transition: border-color .2s ease, transform .2s ease; }
.help-options a:hover { border-color: var(--gold); transform: translateX(4px); }
.help-options strong { font-size: 18px; }
.help-options span { color: #aaa59b; font-size: 14px; }
.disclaimer { margin-top: 34px; padding: 22px 24px; border-left: 4px solid var(--gold-dark); background: #0b1016; color: #aaa59c; font-size: 14px; }
.disclaimer strong { color: #e5dfd4; }

.serve-section { background: #0a0e13; }
.partner-callout { margin-top: 70px; padding: 38px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(217,149,33,.08), rgba(157,35,30,.045)); display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: var(--radius); }
.partner-callout h3 { max-width: 700px; margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; }

.contact-section { background: linear-gradient(180deg, #0d131a, #080b0f); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.contact-form { padding: 34px; background: #111821; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 7px; margin-bottom: 15px; color: #ddd8cf; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; color: #fff; background: #0a0f15; border: 1px solid #343a42; border-radius: 7px; padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,149,33,.10); }
textarea { resize: vertical; }
.form-note, .form-status { margin: 12px 0 0; color: #8f8b83; font-size: 12px; }
.form-status { color: var(--gold-light); font-weight: 700; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line-soft); background: #05070a; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr .7fr; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer-brand div { display: grid; }
.footer-brand strong { font-family: Georgia, "Times New Roman", serif; }
.footer-brand span, .footer-copy { color: #8f8a82; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 13px; }
.footer-copy { display: grid; justify-items: end; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .site-nav { gap: 17px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 880px; }
  .hero-mark { max-width: 650px; margin-inline: auto; }
  .audience-grid, .four-grid { grid-template-columns: repeat(2,1fr); }
  .gospel-grid, .belief-grid { grid-template-columns: repeat(2,1fr); }
  .gatherings-grid, .help-layout, .contact-grid { gap: 42px; }
}

@media (max-width: 820px) {
  .container { width: min(var(--max), calc(100% - 30px)); }
  .nav-wrap { min-height: 74px; }
  .brand img { width: 50px; height: 50px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 15px 18px; background: #080b0f; border-bottom: 1px solid var(--line-soft); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .nav-cta { border-radius: 6px; margin-top: 4px; text-align: center; }
  .brand-banner { padding-top: 14px; }
  .hero { padding-top: 34px; }
  .strip-grid { grid-template-columns: repeat(2,1fr); }
  .strip-grid > div { min-height: 92px; border-bottom: 1px solid var(--line-soft); }
  .strip-grid > div:nth-child(2) { border-right: 0; }
  .section { padding: 78px 0; }
  .two-col, .gatherings-grid, .help-layout, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .centered-callout, .statement-band, .partner-callout { flex-direction: column; align-items: flex-start; }
  .pathway { gap: 7px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy { justify-items: start; }
}

@media (max-width: 580px) {
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 9px; }
  h1 { font-size: 43px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .audience-grid, .four-grid, .gospel-grid, .belief-grid { grid-template-columns: 1fr; }
  .audience-card, .feature-card, .belief-grid article { min-height: auto; }
  .need-list ul { columns: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .resurrection-quote { padding: 28px 24px; }
  .contact-form { padding: 24px 20px; }
  .hero-card { width: 100%; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* V4: multi-page site */
.hidden-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.subpage-hero { padding: 110px 0 82px; min-height: 420px; display: flex; align-items: center; background: radial-gradient(circle at 75% 20%, rgba(217,149,33,.12), transparent 30%), linear-gradient(180deg,#101720,#080b0f); border-bottom: 1px solid var(--line-soft); }
.gospel-subhero { background: radial-gradient(circle at 75% 20%, rgba(157,35,30,.18), transparent 32%), linear-gradient(180deg,#101219,#080b0f); }
.narrow { max-width: 900px; }
.subpage-hero h1 { margin: 8px 0 22px; }
.subpage-hero p:not(.eyebrow) { max-width: 800px; color: #c8c2b8; }
.subpage-content { background: #0a0e13; }
.article-layout { max-width: 980px; display: grid; gap: 20px; }
.article-card, .doctrine-item, .detail-card, .service-grid article { padding: 32px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }
.article-card h2, .doctrine-item h2, .detail-card h2, .service-grid h2 { margin-top: 0; color: #fff; }
.article-card p, .doctrine-item p, .detail-card p, .service-grid p { color: #bdb8ae; }
.scripture-line { margin-bottom: 0 !important; color: var(--gold-light) !important; font-size: 13px; font-weight: 800; letter-spacing: .025em; }
.action-panel { margin-top: 42px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(90deg,rgba(217,149,33,.08),rgba(157,35,30,.045)); display: flex; gap: 36px; align-items: center; justify-content: space-between; }
.action-panel h2 { margin: 5px 0 9px; }
.action-panel p:not(.eyebrow) { color: #bcb6ad; max-width: 720px; }
.doctrine-section { background: #090d12; }
.doctrine-list { max-width: 1040px; display: grid; gap: 14px; }
.doctrine-item { padding: 28px 30px; }
.doctrine-item h2 { font-size: 25px; }
.foundation-box { max-width: 1040px; margin-top: 44px; padding: 40px; border: 1px solid var(--line); border-top: 4px solid var(--gold-dark); background: #0f151c; border-radius: var(--radius); }
.foundation-box h2 { margin: 6px 0 24px; }
.foundation-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 24px; }
.foundation-grid span { padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: #d6d0c6; }
.foundation-verse { margin: 30px 0 8px; color: #c0bbb1; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.foundation-box > strong { color: var(--gold-light); }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.detail-card .eyebrow { margin-bottom: 8px; }
.form-panel { max-width: 1050px; margin-top: 50px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 50px; align-items: start; }
.form-panel .section-heading { padding-top: 14px; }
.check-control { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 500 !important; line-height: 1.45; }
.check-control input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-grid article { min-height: 220px; }
.thanks-page { min-height: 70vh; }

@media (max-width: 820px) {
  .subpage-hero { padding: 80px 0 64px; min-height: 340px; }
  .detail-grid, .form-panel { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .action-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 580px) {
  .foundation-grid, .detail-grid, .service-grid { grid-template-columns: 1fr; }
  .foundation-box, .article-card, .doctrine-item, .detail-card { padding: 24px 20px; }
}


/* V7: Resources page mirrors the Rally Point app support categories */
.resources-subhero { background: radial-gradient(circle at 78% 20%, rgba(217,149,33,.16), transparent 31%), linear-gradient(180deg,#111820,#080b0f); }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 25px; min-height: 190px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg,rgba(255,255,255,.038),rgba(255,255,255,.012)); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.resource-card:hover { transform: translateY(-2px); border-color: var(--line); background: linear-gradient(180deg,rgba(217,149,33,.075),rgba(255,255,255,.014)); }
.resource-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-light); font-weight: 900; font-size: 13px; }
.resource-card h3 { margin: 1px 0 9px; color: #fff; font-size: 23px; }
.resource-card p { margin: 0 0 14px; color: #bdb8ae; }
.resource-card strong { color: var(--gold-light); font-size: 14px; }
.crisis-card { border-color: rgba(190,63,53,.62); background: linear-gradient(180deg,rgba(157,35,30,.14),rgba(255,255,255,.012)); }
.crisis-card .resource-icon { border-color: rgba(190,63,53,.78); color: #ffb3aa; }
.crisis-card strong { color: #ffb3aa; }
.resource-details-section { background: #080c11; }
.resource-detail-list { max-width: 1050px; display: grid; gap: 18px; }
.resource-detail { padding: 34px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #0f151c; scroll-margin-top: 110px; }
.resource-detail h2 { margin: 7px 0 12px; }
.resource-detail > p:not(.eyebrow):not(.resource-note) { color: #bdb8ae; max-width: 850px; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.resource-note { margin: 18px 0 0; color: #99938a; font-size: 14px; }
.crisis-detail { border-color: rgba(190,63,53,.58); background: linear-gradient(180deg,rgba(157,35,30,.10),#0f151c); }
.btn-danger { background: #9d231e; border-color: #ba4038; color: #fff; }
.btn-danger:hover { background: #b42d27; }
.teaching-resource-section { background: #0a0e13; }
@media (max-width: 760px) { .resource-grid { grid-template-columns: 1fr; } .resource-card { min-height: auto; } }
@media (max-width: 520px) { .resource-card { grid-template-columns: 1fr; } .resource-detail { padding: 26px 20px; } .resource-actions .btn { width: 100%; text-align: center; } }

/* V8: direct resource links — website mirrors app categories without forcing contact */
.resource-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.resource-link-card {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.resource-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(217,149,33,.055);
}
.resource-link-label {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.resource-link-card h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 20px;
  line-height: 1.18;
}
.resource-link-card p {
  margin: 0 0 18px;
  color: #aaa49b;
  font-size: 15px;
  line-height: 1.55;
}
.resource-link-card strong {
  margin-top: auto;
  color: var(--gold-light);
  font-size: 13px;
}
.external-resource::after {
  content: "Official website";
  margin-top: 7px;
  color: #77736d;
  font-size: 11px;
}
.crisis-link-grid .crisis-resource {
  border-color: rgba(190,63,53,.46);
  background: linear-gradient(180deg,rgba(157,35,30,.09),rgba(255,255,255,.018));
}
.crisis-link-grid .crisis-resource:hover {
  border-color: rgba(225,91,80,.8);
  background: linear-gradient(180deg,rgba(157,35,30,.16),rgba(255,255,255,.025));
}
.crisis-link-grid .crisis-resource .resource-link-label,
.crisis-link-grid .crisis-resource strong { color: #ffb3aa; }
.crisis-instructions {
  margin-top: 22px;
  padding: 22px;
  border-left: 4px solid #a53831;
  border-radius: 0 12px 12px 0;
  background: rgba(157,35,30,.09);
}
.crisis-instructions h3 { margin: 0 0 12px; color: #fff; }
.crisis-instructions p { margin: 7px 0; color: #c7c0b8; }
@media (max-width: 760px) {
  .resource-link-grid { grid-template-columns: 1fr; }
  .resource-link-card { min-height: auto; }
}


/* V11: private Leader Portal */
[hidden] { display: none !important; }
.leader-page { min-height: 100vh; background: #080b0f; }
.leader-public-nav { display: flex; align-items: center; }
.leader-public-nav a { color: #c8c3ba; font-size: 13px; font-weight: 800; }
.leader-public-nav a:hover { color: var(--gold-light); }

.leader-login-section {
  min-height: calc(100vh - 86px);
  padding: 78px 0 92px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 74% 28%, rgba(217,149,33,.14), transparent 26%),
    radial-gradient(circle at 18% 78%, rgba(157,35,30,.11), transparent 28%),
    linear-gradient(180deg,#101720,#080b0f);
}
.leader-login-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: center; }
.leader-login-copy h1 { margin: 6px 0 20px; }
.leader-login-copy > p:not(.eyebrow) { max-width: 720px; color: #c9c4bb; font-size: 19px; }
.leader-security-note {
  max-width: 760px; margin-top: 30px; padding: 20px 22px;
  display: grid; gap: 5px;
  border-left: 4px solid var(--gold);
  background: rgba(217,149,33,.055); color: #aaa59c;
}
.leader-security-note strong { color: #fff; }

.leader-login-card {
  width: 100%; max-width: 560px; margin-left: auto; padding: 34px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(19,27,36,.97), rgba(11,16,22,.98));
  box-shadow: var(--shadow);
}
.leader-login-emblem { width: 104px; height: 104px; margin: 0 auto 18px; }
.leader-login-emblem img { width: 100%; height: 100%; object-fit: contain; }
.leader-login-card h2 { margin: 0 0 6px; text-align: center; font-size: 32px; }
.leader-login-card > p { margin: 0 0 26px; text-align: center; color: #99948b; font-size: 14px; }
.leader-login-card label { display: grid; gap: 7px; margin: 0 0 16px; color: #ddd8cf; font-size: 13px; font-weight: 800; }
.leader-login-card .btn { margin-top: 5px; }
.leader-auth-message { min-height: 22px; margin: 14px 0 0; color: #aaa59b; font-size: 13px; text-align: center; }
.leader-auth-message.error { color: #ffaaa1; }
.leader-auth-message.success { color: #9cd6ac; }

.leader-command-bar {
  position: sticky; top: 86px; z-index: 85;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10,14,19,.96); backdrop-filter: blur(12px);
}
.leader-command-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.leader-command-inner > div:first-child { display: grid; }
.leader-kicker { color: var(--gold-light); font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.leader-command-inner strong { color: #fff; font-family: Georgia,"Times New Roman",serif; font-size: 21px; }
.leader-command-inner small { color: #8f8a82; }
.leader-command-actions { display: flex; gap: 10px; }
.leader-command-actions .btn { min-height: 42px; padding: 9px 15px; }

.leader-dashboard { padding-top: 64px; padding-bottom: 90px; }
.leader-dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.leader-dashboard-heading h1 { margin: 4px 0 12px; font-size: clamp(42px,5vw,68px); }
.leader-dashboard-heading p:not(.eyebrow) { margin: 0; max-width: 790px; color: #b6b1a8; }
.leader-live-badge {
  flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(86,166,111,.35);
  border-radius: 999px; color: #a7dcb7; background: rgba(86,166,111,.07);
  font-size: 12px; font-weight: 800;
}
.leader-live-badge span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #56a66f; }

.leader-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 30px; }
.leader-stat-grid article {
  min-height: 150px; padding: 24px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}
.leader-stat-grid span { color: var(--gold-light); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.leader-stat-grid strong { margin: 10px 0 4px; color: #fff; font-family: Georgia,"Times New Roman",serif; font-size: 44px; line-height: 1; }
.leader-stat-grid small { margin-top: auto; color: #8e8981; }

.leader-workspace { border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; background: #0d131a; }
.leader-tabs {
  display: flex; gap: 0; overflow-x: auto;
  border-bottom: 1px solid var(--line-soft); background: #090d12;
}
.leader-tab {
  appearance: none; border: 0; border-right: 1px solid var(--line-soft); background: transparent;
  color: #9f9a91; padding: 18px 24px; white-space: nowrap;
  font-size: 12px; font-weight: 900; letter-spacing: .04em; cursor: pointer;
}
.leader-tab:hover { color: #fff; background: rgba(255,255,255,.025); }
.leader-tab.active { color: #151009; background: var(--gold-light); }

.leader-tab-panel { padding: 34px; }
.leader-panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.leader-panel-heading h2 { margin: 5px 0 0; font-size: 38px; }
.leader-panel-heading > p { max-width: 650px; margin: 0; color: #918d85; font-size: 13px; }

.leader-record-list { display: grid; gap: 14px; margin-top: 24px; }
.leader-record-card {
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: linear-gradient(180deg,rgba(255,255,255,.026),rgba(255,255,255,.012));
  overflow: hidden;
}
.leader-record-card.priority { border-color: rgba(217,149,33,.48); }
.leader-record-top {
  min-height: 44px; padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--line-soft); background: rgba(0,0,0,.15);
}
.leader-record-meta { display: flex; align-items: center; gap: 10px; color: #858179; font-size: 11px; }
.leader-priority-pill {
  padding: 3px 7px; border: 1px solid rgba(217,149,33,.45); border-radius: 999px;
  color: var(--gold-light); font-size: 9px; letter-spacing: .11em;
}
.leader-status-pill { color: #bcb6ad; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.leader-record-body { padding: 22px; }
.leader-record-body h3 { margin: 0 0 10px; color: #fff; }
.leader-record-message { margin: 0 0 20px; color: #c1bbb2; white-space: pre-wrap; }
.leader-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.leader-detail-grid-wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
.leader-detail-item { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(0,0,0,.13); overflow-wrap: anywhere; }
.leader-detail-item span { display: block; margin-bottom: 3px; color: #78746d; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.leader-detail-item strong { color: #d7d1c8; font-size: 13px; font-weight: 700; }
.leader-notes { margin-top: 12px; padding: 14px; border-left: 3px solid var(--gold-dark); background: rgba(217,149,33,.045); }
.leader-notes span { color: var(--gold-light); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.leader-notes p { margin: 5px 0 0; color: #c4beb5; white-space: pre-wrap; }
.leader-record-controls { margin-top: 16px; display: flex; justify-content: flex-end; }
.leader-status-control { width: min(260px,100%); display: grid; gap: 6px; }
.leader-status-control span { color: #88837b; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.leader-status-control select { padding: 10px 12px; font-size: 13px; }
.leader-empty-state { padding: 50px 24px; display: grid; gap: 6px; text-align: center; border: 1px dashed var(--line-soft); border-radius: 12px; color: #88847c; }
.leader-empty-state strong { color: #ddd7ce; }

.social-agent-roadmap { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 24px; }
.social-agent-roadmap article { min-height: 230px; padding: 24px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.022); }
.social-agent-roadmap h3 { margin: 28px 0 10px; color: #fff; }
.social-agent-roadmap p { margin: 0; color: #9f9a91; }
.roadmap-status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.roadmap-status.ready { color: #a7dcb7; border: 1px solid rgba(86,166,111,.35); background: rgba(86,166,111,.07); }
.roadmap-status.next { color: var(--gold-light); border: 1px solid var(--line); background: rgba(217,149,33,.055); }

.social-agent-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 24px; }
.social-agent-summary article { min-height: 128px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,.022); }
.social-agent-summary span { color: var(--gold-light); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.social-agent-summary strong { margin: 10px 0 4px; color: #fff; font-family: Georgia,"Times New Roman",serif; font-size: 34px; line-height: 1; }
.social-agent-summary small { margin-top: auto; color: #858179; }
.social-agent-summary .social-text-status { font-family: inherit; font-size: 22px; letter-spacing: .06em; }
.social-control-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.social-control-card { padding: 22px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.022); }
.social-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.social-card-heading h3 { margin: 4px 0 0; color: #fff; font-size: 24px; }
.social-lock-pill { padding: 5px 8px; border: 1px solid rgba(217,149,33,.28); border-radius: 999px; color: var(--gold-light); background: rgba(217,149,33,.05); font-size: 9px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.social-account-list, .social-post-list, .social-log-list { display: grid; gap: 10px; margin-top: 16px; }
.social-account-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0,0,0,.12); }
.social-platform-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(217,149,33,.09); color: var(--gold-light); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.social-account-row strong { display: block; color: #ddd7ce; font-size: 13px; }
.social-account-row small { color: #807b74; }
.social-connected-pill { color: #a7dcb7; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.social-disconnected-pill { color: #ffaaa1; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.social-guardrail-list { display: grid; gap: 0; margin-top: 12px; }
.social-guardrail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); }
.social-guardrail-list span { color: #aaa59d; }
.social-guardrail-list strong { color: #d9d3ca; font-size: 12px; }
.social-helper { margin: 14px 0 0; color: #7f7a73; font-size: 11px; }
.social-compose-card { margin-top: 14px; }
.social-draft-form { display: grid; gap: 14px; margin-top: 16px; }
.social-draft-form label { display: grid; gap: 6px; color: #aaa59d; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.social-draft-form select, .social-draft-form textarea { width: 100%; padding: 12px 13px; color: #eee9df; border: 1px solid var(--line-soft); border-radius: 9px; background: #090e14; font: inherit; }
.social-draft-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.social-draft-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.social-draft-actions small { color: #8e8981; }
.social-draft-actions small.error { color: #ffaaa1; }
.social-draft-actions small.success { color: #9cd6ac; }
.social-post-row, .social-log-row { padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0,0,0,.12); }
.social-post-top, .social-log-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.social-post-platform { color: var(--gold-light); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.social-post-status { color: #aaa59d; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.social-post-row p, .social-log-row p { margin: 0; color: #c1bbb2; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-post-row small, .social-log-row small { display: block; margin-top: 8px; color: #746f68; font-size: 10px; }
.social-lists-grid { align-items: start; }

.leader-boundary-box { margin-top: 18px; padding: 22px; border-left: 4px solid var(--red); background: rgba(157,35,30,.08); }
.leader-boundary-box strong { color: #fff; }
.leader-boundary-box p { margin: 5px 0 0; color: #bdb7ae; }
.leader-footer-note { margin-top: 20px; padding: 18px 20px; color: #8f8a82; font-size: 12px; border: 1px solid var(--line-soft); border-radius: 10px; }
.leader-footer-note strong { color: #d0cbc2; }

@media (max-width: 1080px) {
  .leader-login-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .leader-stat-grid { grid-template-columns: repeat(2,1fr); }
  .leader-detail-grid-wide { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .social-agent-roadmap { grid-template-columns: 1fr; }
  .social-agent-summary { grid-template-columns: repeat(2,1fr); }
  .social-control-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .leader-login-section { min-height: auto; padding: 55px 0 70px; }
  .leader-login-grid { grid-template-columns: 1fr; }
  .leader-login-card { margin: 0; max-width: none; }
  .leader-command-bar { top: 74px; }
  .leader-command-inner, .leader-dashboard-heading, .leader-panel-heading { align-items: flex-start; flex-direction: column; }
  .leader-command-inner { padding: 14px 0; }
  .leader-command-actions { width: 100%; }
  .leader-command-actions .btn { flex: 1; }
  .leader-live-badge { align-self: flex-start; }
  .leader-tab-panel { padding: 24px 18px; }
  .leader-detail-grid, .leader-detail-grid-wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .leader-public-nav { display: none; }
  .leader-stat-grid { grid-template-columns: 1fr; }
  .leader-login-card { padding: 26px 20px; }
  .leader-tab { padding: 15px 17px; }
  .social-agent-summary { grid-template-columns: 1fr; }
  .social-draft-actions { align-items: stretch; flex-direction: column; }
  .social-draft-actions .btn { width: 100%; }
}


/* v15 leader social doctrine review controls */
.social-review-card { display: grid; gap: 10px; }
.social-review-result { padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.018); }
.social-review-result.passed { border-color: rgba(86,168,108,.34); background: rgba(86,168,108,.06); }
.social-review-result.failed { border-color: rgba(190,74,66,.34); background: rgba(190,74,66,.06); }
.social-review-result.human { border-color: rgba(217,149,33,.34); background: rgba(217,149,33,.06); }
.social-review-result-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.social-review-result-top strong { color: #e8e3da; font-size: 11px; }
.social-review-result-top span { color: #777169; font-size: 9px; white-space: nowrap; }
.social-review-result p { margin-top: 7px; }
.social-review-result small { margin-top: 6px; }
.social-review-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.social-review-button { appearance: none; border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 11px; background: #0a1016; color: #ddd8cf; font: inherit; font-size: 10px; font-weight: 900; letter-spacing: .035em; cursor: pointer; }
.social-review-button:hover:not(:disabled) { border-color: rgba(217,149,33,.42); }
.social-review-button:disabled { opacity: .48; cursor: not-allowed; }
.social-review-button.approve { border-color: rgba(86,168,108,.34); color: #a9ddb5; background: rgba(86,168,108,.06); }
.social-review-button.reject { border-color: rgba(190,74,66,.34); color: #ffaaa1; background: rgba(190,74,66,.06); }
.social-review-button.secondary { color: var(--gold-light); background: rgba(217,149,33,.045); }
.social-review-feedback { min-height: 14px; margin-top: 0 !important; color: #858078 !important; }
.social-review-feedback.success { color: #9cd6ac !important; }
.social-review-feedback.warning { color: #e1ba72 !important; }
.social-review-feedback.error { color: #ffaaa1 !important; }
@media (max-width: 640px) {
  .social-review-result-top { align-items: flex-start; flex-direction: column; gap: 4px; }
  .social-review-actions { display: grid; grid-template-columns: 1fr; }
  .social-review-button { width: 100%; }
}


/* v17 role-aware Leader Portal */
.leader-session-meta { display:flex; align-items:center; justify-content:flex-end; gap:.65rem; flex-wrap:wrap; }
.leader-role-badge { border:1px solid rgba(218,160,53,.45); background:rgba(218,160,53,.10); color:#e7b95a; border-radius:999px; padding:.45rem .75rem; font-size:.78rem; font-weight:800; letter-spacing:.04em; }
.leader-access-note { margin:0 0 1rem; color:rgba(255,255,255,.65); font-size:.86rem; }
.leader-readonly-note { display:inline-flex; align-items:center; min-height:2.2rem; padding:.45rem .7rem; border:1px solid rgba(255,255,255,.12); border-radius:10px; color:rgba(255,255,255,.62); font-size:.82rem; font-weight:700; }
[hidden] { display:none !important; }


/* V18: layered mobile-first public website */
.home-layers-section { background: linear-gradient(180deg,#0b0f14,#101720); }
.site-layer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.site-layer-card { min-width: 0; padding: 30px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); transition: transform .18s ease,border-color .18s ease,background .18s ease; }
.site-layer-card:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(217,149,33,.055); }
.site-layer-card > span { color: var(--gold-light); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.site-layer-card h3 { margin: 28px 0 10px; font-size: 24px; }
.site-layer-card p { color: var(--muted); margin: 0 0 20px; }
.site-layer-card strong { color: var(--gold-light); font-size: 13px; letter-spacing: .025em; }
.home-gospel-callout { background: #080b0f; }
.home-gospel-callout .action-panel { margin-top: 0; }
.home-gospel-callout .action-panel p:not(.eyebrow) { color: var(--muted); max-width: 760px; }
.stacked-actions { display: grid; gap: 12px; min-width: 240px; }
@media (max-width: 980px) { .site-layer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) {
  .brand-banner { padding: 10px 0 0; }
  .home-hero { padding: 28px 0 46px; }
  .home-hero .hero-grid { gap: 24px; }
  .home-hero .hero-mark { max-width: 270px; }
  .home-hero .emblem-shell { width: 230px; }
  .site-layer-grid { grid-template-columns: 1fr; gap: 12px; }
  .site-layer-card { padding: 24px 22px; }
  .site-layer-card h3 { margin-top: 18px; }
  .home-gospel-callout .action-panel { padding: 28px 22px; }
  .stacked-actions { width: 100%; min-width: 0; }
  .subpage-hero { padding: 70px 0 54px; min-height: auto; }
}

/* v19: phone and landscape-phone sizing refinements */
@media (max-width: 1024px) {
  .nav-wrap { min-height: 74px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 15px 18px;
    background: #080b0f;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .nav-cta { border-radius: 6px; margin-top: 4px; text-align: center; }

  .brand-banner { padding: 10px 0 0; }
  .brand-banner img { width: min(560px, 82vw); }

  .home-hero { padding-top: 26px; }
  .home-hero .hero-mark { max-width: 240px; }
  .home-hero .emblem-shell { width: 205px; }
}

@media (max-width: 1024px) and (orientation: landscape) {
  .brand-banner img { width: min(520px, 55vw); }
  .home-hero { padding: 22px 0 42px; }
  .home-hero .hero-grid { gap: 20px; }
  .home-hero .hero-mark { max-width: 210px; }
  .home-hero .emblem-shell { width: 180px; }
}

@media (max-width: 580px) {
  .brand-banner img { width: min(360px, 88vw); }
  .home-hero .hero-mark { max-width: 205px; }
  .home-hero .emblem-shell { width: 175px; }
}
