/* Homepage (home.html, index.html) in the Gravitas site system (site-system.css).
   The page already has raised step shells; this adapter puts every block on the shared
   --gx-frame, moves the reading type to Cormorant / Montserrat labels, turns the opening
   into the hero card with its sub-navigation, and the "Watch" band into a raised night panel. */
body.gx-home { --gold: var(--gx-gold); --raise: var(--gx-raise); --small: var(--gx-raise-sm); --inset: var(--gx-inset); --border: var(--gx-border);
  --editorial-label: .8125rem; --editorial-gold: var(--gx-gold); --editorial-copy: var(--gx-small); --editorial-body: var(--gx-slate); --editorial-muted: var(--gx-slate); }
html:has(body.gx-home) { scroll-padding-top: 110px; }

/* ---------- hero card ---------- */
body.gx-home .chaplain-hero.gx-hero {
  --art-h: clamp(380px, 32vw, 540px);
  height: auto; display: flex; flex-direction: column; padding: 0 !important; background: var(--gx-ground);
}
body.gx-home .chaplain-hero.gx-hero .chaplain-hero-art,
body.gx-home .chaplain-hero.gx-hero::after { inset: 0 0 auto 0; height: var(--art-h); }
body.gx-home .chaplain-hero.gx-hero::after { background: linear-gradient(90deg, rgba(240,238,232,.97) 0%, rgba(240,238,232,.94) 34%, rgba(240,238,232,.8) 46%, rgba(240,238,232,.3) 57%, transparent 68%); }
body.gx-home .chaplain-hero.gx-hero .hero-content { box-sizing: border-box; width: auto; margin: 0; height: var(--art-h); padding: 0 var(--gx-hero-pad); }
body.gx-home .chaplain-hero .hero-content h1 {
  max-width: 50%; font: 500 clamp(2.5rem, 4.4vw, 4.125rem)/1.06 var(--gx-serif); letter-spacing: -.02em; color: var(--gx-ink);
}
body.gx-home .chaplain-hero-open { color: var(--gx-gold-deep); }
body.gx-home .chaplain-hero-open:hover { color: var(--gx-ink); }
body.gx-home .hero-new-here { background: var(--gx-ground); border: 1px solid var(--gx-border); box-shadow: var(--gx-raise-sm); padding: 16px 26px; letter-spacing: 0; }
body.gx-home .hero-new-here:hover, body.gx-home .hero-new-here:focus-visible, body.gx-home .hero-new-here:active { box-shadow: var(--gx-inset); transform: none; }
body.gx-home .hero-new-here-lead { font: 700 .75rem/1.5 var(--gx-sans); letter-spacing: .14em; color: var(--gx-gold); }
body.gx-home .hero-new-here-cta { font: 600 1rem/1.3 var(--gx-sans); letter-spacing: .08em; color: var(--gx-ink); }
body.gx-home .chaplain-hero.gx-hero .gx-subnav { margin: 0; position: relative; }

/* ---------- one frame for every block ---------- */
body.gx-home :is(.mission-story, .step-shell, .watch-section, .crisis-strip, .hub-jump, .resource-section, .community-section, .hub-footer) {
  box-sizing: border-box; width: var(--gx-frame); margin-inline: auto;
}
body.gx-home :is(.mission-story, .step-shell) { margin-block: 28px; padding: clamp(28px, 4vw, 52px); border-radius: var(--gx-r); box-shadow: var(--gx-raise); }
body.gx-home .project-section.step-shell { padding: clamp(28px, 4vw, 52px); }
body.gx-home .mission-row + .step-shell, body.gx-home .mission-story { margin-top: 28px; }

/* ---------- why chaplains (the folded message) ---------- */
body.gx-home .mission-story h2 { font: 500 var(--gx-h2)/1.08 var(--gx-serif); letter-spacing: -.02em; }
body.gx-home .mission-story h2 span { font: italic 500 var(--gx-h3)/1.2 var(--gx-serif); color: var(--gx-gold); letter-spacing: 0; }
body.gx-home .mission-toggle { font: 600 .8125rem/1.4 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; background: var(--gx-ground); border-color: var(--gx-border); box-shadow: var(--gx-raise-sm); }
body.gx-home .mission-intro:hover .mission-toggle, body.gx-home .mission-intro:active .mission-toggle { box-shadow: var(--gx-inset); }
body.gx-home .mission-collection-link { font: 600 .8125rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; }
body.gx-home .mission-prose p { font-size: var(--gx-body); line-height: 1.6; color: var(--gx-ink); }
body.gx-home .mission-prose .mission-lead { font-size: var(--gx-lead); line-height: 1.45; }
body.gx-home .mission-prose .mission-statement { font: 500 var(--gx-h3)/1.25 var(--gx-serif); letter-spacing: -.01em; color: var(--gx-gold); }
body.gx-home .mission-prose .mission-emphasis { font-size: 1.375rem; line-height: 1.55; padding: 22px 26px; border: 0; border-radius: var(--gx-r); box-shadow: var(--gx-inset); }
body.gx-home .mission-closing p { font: italic 500 var(--gx-lead)/1.45 var(--gx-serif); color: var(--gx-gold); }
body.gx-home .mission-coffee { box-shadow: var(--gx-raise); }
body.gx-home .mission-actions a, body.gx-home .mission-collapse { font: 600 .8125rem/1.4 var(--gx-sans); letter-spacing: .06em; text-transform: uppercase; background: var(--gx-ground); color: var(--gx-ink); border: 1px solid var(--gx-border); border-radius: var(--gx-r); box-shadow: var(--gx-raise-sm); }
body.gx-home .mission-actions a:last-child { background: var(--gx-ground); color: var(--gx-gold-deep); border-color: var(--gx-border); }
body.gx-home .mission-actions a:hover, body.gx-home .mission-collapse:hover { color: var(--gx-gold-deep); }
body.gx-home .mission-actions a:active, body.gx-home .mission-collapse:active { box-shadow: var(--gx-inset); }

/* ---------- the three steps ---------- */
body.gx-home .step-shell .step-eyebrow { font: 700 .75rem/1 var(--gx-sans) !important; letter-spacing: .14em !important; color: #f3ecdd !important; background: var(--gx-ink); }
body.gx-home .step-shell-1 .featured-conversation { border: 0; border-radius: 0; box-shadow: none; overflow: visible; gap: clamp(24px, 4vw, 48px); }
body.gx-home .step-shell .feature-copy h2, body.gx-home .step-shell .section-heading h2 { font: 500 var(--gx-h2)/1.08 var(--gx-serif); letter-spacing: -.02em; color: var(--gx-ink); }
body.gx-home .step-shell.step-shell .feature-copy > p:not(.eyebrow), body.gx-home .step-shell.step-shell .section-heading-copy > p:not(.eyebrow) { font-size: var(--gx-body); line-height: 1.55; color: var(--gx-slate); }
body.gx-home .step-shell .step-shell .feature-photo-solo, body.gx-home .feature-photo-solo { border-radius: var(--gx-r); box-shadow: var(--gx-inset); }
body.gx-home .hub-button { font: 600 .8125rem/1.4 var(--gx-sans); letter-spacing: .06em; text-transform: uppercase; border-radius: var(--gx-r); }
body.gx-home .hub-button:not(.primary) { background: var(--gx-ground); color: var(--gx-ink); border-color: var(--gx-border); box-shadow: var(--gx-raise-sm); }
body.gx-home .hub-button:not(.primary):active { box-shadow: var(--gx-inset); }
body.gx-home .hub-button.primary { background: var(--gx-ink); }

/* step 2: programs */
body.gx-home .step-shell-2 .door-finder span { font: 700 .75rem/1.5 var(--gx-sans); letter-spacing: .14em; color: var(--gx-slate); }
body.gx-home .step-shell-2 .door-finder a { font: 600 .8125rem/1.4 var(--gx-sans); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--gx-border); border-radius: var(--gx-r); box-shadow: var(--gx-raise-sm); padding: 11px 18px; }
body.gx-home .step-shell-2 .door-finder a:active { box-shadow: var(--gx-inset); }
body.gx-home .project-swipe-hint { font: 600 .75rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gx-slate); }
body.gx-home .project-grid-wrap { padding: 16px; border-radius: var(--gx-r); box-shadow: var(--gx-inset); }
body.gx-home #programs .project-card { background: var(--gx-ground); border: 0; box-shadow: var(--gx-raise-sm); }
body.gx-home #programs .project-copy h3 { font: 500 1.5rem/1.15 var(--gx-serif); letter-spacing: -.01em; }
body.gx-home #programs .project-copy h3 a { text-decoration: none; color: var(--gx-ink); }
body.gx-home .step-shell-2 .role-tag { font: 700 .6875rem/1.5 var(--gx-sans); letter-spacing: .12em; color: var(--gx-gold); }
body.gx-home #programs .project-copy > p { font-size: var(--gx-small); line-height: 1.45; color: var(--gx-slate); }
body.gx-home #programs .project-links { font: 600 .6875rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; }
body.gx-home .project-arrow { background: var(--gx-ground); border: 1px solid var(--gx-border); box-shadow: var(--gx-raise-sm); }

/* step 3: the collection */
body.gx-home .bs-eyebrow { font: 700 .625rem/1.4 var(--gx-sans); letter-spacing: .12em; color: var(--gx-gold); }
body.gx-home .bs-title { font: 500 1.0625rem/1.25 var(--gx-serif); color: var(--gx-ink); }
body.gx-home .collection-section .search-box { background: var(--gx-ground); box-shadow: var(--gx-inset); }
body.gx-home .search-box input { font: 400 1.125rem var(--gx-serif); color: var(--gx-ink); }
body.gx-home .collection-section .source-select select { font: 600 .8125rem/1.4 var(--gx-sans); letter-spacing: .04em; background-color: var(--gx-ground); box-shadow: var(--gx-raise-sm); color: var(--gx-ink); }
body.gx-home .collection-section .format-filters button { font: 600 .75rem/1.4 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; background: var(--gx-ground); color: var(--gx-ink); box-shadow: var(--gx-raise-sm); }
body.gx-home .collection-section .format-filters button[aria-pressed=true] { background: var(--gx-ground); color: var(--gx-gold-deep); box-shadow: var(--gx-inset); }
body.gx-home #result-count { font: 600 .75rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gx-slate); }
body.gx-home .small-link { font: 600 .75rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gx-ink); }
body.gx-home #collection .reading-copy .small-link { font-size: .75rem; }
body.gx-home #collection { --card-surface: var(--gx-ground); }
body.gx-home #collection .reading-grid > .reading-card:nth-child(n) { border: 0; box-shadow: var(--gx-raise); }
body.gx-home .reading-copy .eyebrow { font: 700 .6875rem/1.5 var(--gx-sans) !important; letter-spacing: .12em !important; }
body.gx-home .reading-copy h3 { font: 500 1.625rem/1.15 var(--gx-serif) !important; letter-spacing: -.01em; }
body.gx-home .reading-copy h3 a { color: var(--gx-ink); text-decoration: none; }
body.gx-home .featured-layout > .reading-card:nth-child(-n+2) .reading-copy h3 { font-size: var(--gx-h3) !important; }
body.gx-home .reading-copy > p:not(.eyebrow) { font-size: var(--gx-small) !important; line-height: 1.5; color: var(--gx-slate); }
body.gx-home .featured-layout > .reading-card:nth-child(n+4):nth-child(-n+7) h3 { font-size: 1.375rem !important; }
body.gx-home .featured-layout > .reading-card:nth-child(n+4):nth-child(-n+7) .reading-copy > p:not(.eyebrow) { font-size: 1rem !important; }
body.gx-home #collection .legend-card .legend-caption h3 { font: 500 1.625rem/1.15 var(--gx-serif); }
body.gx-home #collection .legend-caption p { font-size: 1rem; line-height: 1.45; }

/* ---------- watch: a raised night panel ---------- */
body.gx-home .watch-section { margin-block: 28px; padding: clamp(32px, 4.5vw, 60px) 0; border-radius: var(--gx-r); background: var(--gx-ink); box-shadow: var(--gx-raise); }
body.gx-home .watch-section > .hub-width { width: auto; margin: 0; padding-inline: clamp(24px, 4vw, 52px); }
body.gx-home .watch-section .eyebrow { color: #d2b575 !important; }
body.gx-home .watch-section h2 { color: #f3ecdd; }
body.gx-home .light-link { font: 600 .8125rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; color: #e5cf9d; border-bottom: 1px solid #d2b575; padding-bottom: 3px; }
body.gx-home .watch-card { background: #15324a; box-shadow: 5px 5px 12px #08182a, -3px -3px 9px #ffffff0d; border-radius: var(--gx-r); }
body.gx-home .watch-card:active { box-shadow: inset 3px 3px 8px #08182a, inset -2px -2px 6px #ffffff0d; }
body.gx-home .watch-card > .eyebrow { font: 700 .6875rem/1.5 var(--gx-sans) !important; letter-spacing: .12em !important; color: #d2b575 !important; }
body.gx-home .watch-title { font: 500 1.375rem/1.2 var(--gx-serif); color: #f3ecdd; }

/* ---------- crisis watch ticker: a slim inset strip on the frame ---------- */
body.gx-home .crisis-strip { margin-block: 28px; padding: 14px clamp(18px, 3vw, 32px); border-radius: var(--gx-r); background: var(--gx-ink); box-shadow: var(--gx-raise); font-family: var(--gx-sans); }
body.gx-home .crisis-strip-status { font-size: .6875rem; }

/* ---------- jump links: raised pills in an inset well ---------- */
body.gx-home .hub-jump { justify-content: center; flex-wrap: wrap; gap: 12px 18px; padding: 18px 22px; border: 0; border-radius: var(--gx-r); box-shadow: var(--gx-inset); overflow: visible; white-space: normal; }
body.gx-home .hub-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; font: 600 .8125rem/1.4 var(--gx-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gx-ink); background: var(--gx-ground); border: 1px solid var(--gx-border); border-radius: var(--gx-r); box-shadow: var(--gx-raise-sm); }
body.gx-home .hub-jump a:last-child { margin-left: 0; color: var(--gx-gold-deep); }
body.gx-home .hub-jump a:hover, body.gx-home .hub-jump a:active { color: var(--gx-gold-deep); box-shadow: var(--gx-inset); }

/* ---------- practical tools: a raised panel ---------- */
body.gx-home .resource-section { margin-block: 28px; padding: clamp(32px, 4.5vw, 56px); border-radius: var(--gx-r); box-shadow: var(--gx-raise); }
body.gx-home .resource-section h2, body.gx-home .community-section h2, body.gx-home .watch-section h2 { font: 500 var(--gx-h2)/1.08 var(--gx-serif); letter-spacing: -.02em; }
body.gx-home .resource-card { background: var(--gx-ground); border: 0; box-shadow: var(--gx-raise-sm); color: var(--gx-ink); }
body.gx-home .resource-card:hover, body.gx-home .resource-card:active { box-shadow: var(--gx-inset); }
body.gx-home .resource-card h3 { font: 500 1.625rem/1.15 var(--gx-serif); }
body.gx-home .resource-card p { font-size: var(--gx-small); line-height: 1.5; }
body.gx-home .additional-links { font: 600 .75rem/1.6 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; border-top-color: var(--gx-border); }
body.gx-home .additional-links a { color: var(--gx-ink); }
body.gx-home .additional-links a:hover { color: var(--gx-gold-deep); }

/* ---------- stay connected: the closing card, inset with the star ---------- */
body.gx-home .community-section { margin-block: 28px 56px; padding: clamp(40px, 5.5vw, 72px) clamp(28px, 5vw, 64px); border: 0; border-radius: var(--gx-r); box-shadow: var(--gx-inset); position: relative; }
body.gx-home .community-section::before { content: "✦"; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; line-height: 1; color: var(--gx-gold); }
body.gx-home .community-section p:not(.eyebrow) { font-size: var(--gx-body); line-height: 1.5; color: var(--gx-slate); }
body.gx-home .community-links > a { background: var(--gx-ground); border: 1px solid var(--gx-border); box-shadow: var(--gx-raise-sm); color: var(--gx-ink); }
body.gx-home .community-links > a:hover, body.gx-home .community-links > a:active { box-shadow: var(--gx-inset); }
body.gx-home .community-links strong { font: 500 1.375rem/1.2 var(--gx-serif); }
body.gx-home .community-links small { font: 600 .6875rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gx-slate); }

/* ---------- message dialog ---------- */
body.gx-home .chaplain-message { background: var(--gx-ground); font-family: var(--gx-serif); }
body.gx-home .chaplain-message-copy > p:not(.eyebrow) { font-size: var(--gx-body); line-height: 1.6; }
body.gx-home .chaplain-message-copy > p.chaplain-message-lead { font-size: var(--gx-lead); line-height: 1.45; font-weight: 500; }
body.gx-home .chaplain-message-emphasis { font-weight: 600; color: var(--gx-gold-deep); }

/* ---------- footer ---------- */
body.gx-home .hub-footer { border-top-color: var(--gx-border); }
body.gx-home .hub-footer :is(p, nav) { font: 600 .75rem/1.5 var(--gx-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gx-slate); }

/* ---------- small screens ---------- */
@media (max-width: 650px) {
  body.gx-home .chaplain-hero.gx-hero { --art-h: 220px; }
  body.gx-home .chaplain-hero.gx-hero .hero-content { height: auto; margin-top: var(--art-h); padding: 22px 22px 30px; }
  body.gx-home .chaplain-hero .hero-content h1 { max-width: 100%; font-size: 2.5rem; }
  body.gx-home .chaplain-hero-open { padding-top: 0; }
}
@media (max-width: 600px) {
  body.gx-home :is(.mission-story, .step-shell), body.gx-home .project-section.step-shell { padding: 26px 18px 30px; }
  body.gx-home .resource-section { padding: 30px 18px; }
  body.gx-home .project-grid-wrap { padding: 10px; }
}
@media (max-width: 760px) {
  body.gx-home .watch-title { font-size: 1.125rem; }
  body.gx-home .community-section { padding-top: 60px; }
  body.gx-home .reading-copy h3, body.gx-home .featured-layout > .reading-card:nth-child(-n+2) .reading-copy h3 { font-size: 1.5rem !important; }
}

/* correction (Oct 16): the hero sub-navigation replaces the mid-page "Explore the homepage" jump links */
body.gx-home .hub-jump { display: none !important; }
