/* ═══════════════════════════════════════════════════════════════════════════
   別是巴聖教會官網 — page styles
   Implementation of the Claude Design file 別是巴聖教會官網.dc.html.
   Everything here builds on the Classical design system in styles.css:
   colors, spacing, radii and shadows come from its tokens. The design file's
   inline styles and `style-hover` attributes are lifted into real classes with
   proper :hover / :focus-visible states, plus the responsive rules a live
   site needs (the design canvas is desktop-only).
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  /* Local additions to the system's tokens */
  --font-display: "Cormorant Garamond", "Noto Serif TC", serif;
  --font-latin: "Cormorant Garamond", serif;
  --font-zh: "Lora", "Noto Serif TC", serif;

  /* The colophon near-black the system calls for: a shade below neutral-900 */
  --color-ink: #17130d;
  --color-on-ink: #f3f2f2;
  --color-on-ink-70: rgba(243, 242, 242, 0.72);
  --color-on-ink-60: rgba(243, 242, 242, 0.6);
  --color-on-ink-hairline: rgba(243, 242, 242, 0.16);

  --page-max: 1320px;
  --pad: 44px;
  --header-h: 78px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-zh);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-600); text-decoration: underline; }

.page { min-height: 100vh; }
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 96px var(--pad);
}
.section { border-bottom: 1px solid var(--color-divider); }
.section--tinted { background: var(--color-neutral-100); }
.section--ink {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Utilities */

/* HTML 的 hidden 屬性只靠瀏覽器預設樣式的 display:none 生效，任何作者端
   的 display 規則都會蓋掉它 —— 而這個網站到處都是 display:flex / grid
   的元件。實際踩到過兩次：
     1. 「正在直播」標記（.live-badge 是 inline-flex）沒直播時照樣出現
     2. 分頁隱藏的影片卡（.video-card 是 flex）根本沒有被藏起來，
        第 2 頁的內容一直跟第 1 頁一起顯示
   所以需要這條 !important。這是 [hidden] 少數應該用 !important 的場合。 */
[hidden] { display: none !important; }

.tnum { font-feature-settings: 'tnum'; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 100; background: var(--color-bg); color: var(--color-accent-700);
  padding: var(--space-2) var(--space-4); border: 1px solid var(--color-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.12em;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Kickers — the small letterspaced labels that open each block */
.kicker {
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.3em;
  color: var(--color-accent-700);
}
.kicker--gold { color: var(--color-accent-400); letter-spacing: 0.34em; }
.kicker--light { color: rgba(255, 255, 255, 0.74); letter-spacing: 0.44em; font-size: 11px; }

/* ── Image slots ──────────────────────────────────────────────────────────
   The design file mounts photographs through <image-slot>. Only the hero had
   an image assigned, so the rest render as labeled plates: drop a real photo
   in as <img> and the placeholder goes away.
   ──────────────────────────────────────────────────────────────────────── */
.slot {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  padding: var(--space-3); text-align: center;
  background:
    repeating-linear-gradient(135deg,
      var(--color-neutral-200) 0 9px,
      var(--color-neutral-100) 9px 18px);
  color: var(--color-accent-700);
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.28em; line-height: 1.9;
}
.plate > img,
.plate > .slot { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-5x4 { aspect-ratio: 5 / 4; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
/* For artwork that must not be cropped (posters, text-bearing graphics):
   fit it whole and let the surface show as the mat. */
.plate--contain > img { object-fit: contain; background: var(--color-surface); }

/* ── Social rail ──────────────────────────────────────────────────────── */
.social-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider); border-right: 0;
  border-radius: 6px 0 0 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.social-rail a {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 15px;
  background: var(--color-bg);
  color: var(--color-accent-700);
  text-decoration: none;
  font-family: var(--font-latin);
  font-size: 11px; letter-spacing: 0.14em;
  transition: background 0.18s ease, color 0.18s ease;
}
.social-rail a:hover,
.social-rail a:focus-visible {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  text-decoration: none;
}
.social-rail a:active { background: var(--color-accent-200); }
.social-rail svg { flex: none; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 242, 242, 0.93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 13px var(--pad);
  display: flex; align-items: center; gap: 36px;
}
.brand {
  display: flex; align-items: center; gap: 13px;
  text-decoration: none; color: inherit;
}
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark { width: 50px; height: 50px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 0.15em; font-weight: 600;
}
.brand-sub {
  font-family: var(--font-latin);
  font-size: 9px; letter-spacing: 0.3em;
  color: var(--color-neutral-600);
}

.main-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 28px;
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 0.1em;
}
.nav-link {
  color: var(--color-text); text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-link:hover,
.nav-link:focus-visible { border-bottom-color: var(--color-accent); color: var(--color-text); text-decoration: none; }
.nav-link[aria-current='page'] { border-bottom-color: var(--color-accent); }
.main-nav .btn {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; cursor: pointer;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  color: var(--color-text);
}
.nav-toggle:hover { background: rgba(32, 31, 29, 0.07); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 620px; overflow: hidden;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-neutral-200);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
/* Two layers. The linear wash is the design file's; the elliptical pool is
   added because the real photograph is a bright watercolour — white type over
   it measured 1.5:1, and large text needs 3:1. The pool darkens only the
   middle where the headline sits, so the wheat keeps its warmth at the edges. */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 66% 62% at 50% 42%,
      rgba(23, 19, 13, 0.62) 0%,
      rgba(23, 19, 13, 0.36) 56%,
      rgba(23, 19, 13, 0) 80%),
    linear-gradient(180deg,
      rgba(26, 21, 14, 0.52) 0%,
      rgba(26, 21, 14, 0.24) 42%,
      rgba(26, 21, 14, 0.70) 100%);
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad);
  pointer-events: none;
}
.hero-kicker { margin-bottom: 24px; }
.hero-title {
  margin: 0;
  font-size: 72px; font-weight: 400; line-height: 1.2;
  color: #fff; letter-spacing: 0.12em;
  text-shadow: 0 2px 26px rgba(20, 16, 10, 0.5);
}
.hero-rule {
  width: 64px; height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 34px 0 26px;
}
.hero-lines {
  margin: 0;
  font-size: 16px; line-height: 2;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
}
.hero-actions {
  display: flex; gap: 14px; margin-top: 38px;
  pointer-events: auto; flex-wrap: wrap; justify-content: center;
}
.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
  letter-spacing: 0.14em; padding: 11px 24px;
  font-family: var(--font-display);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-on-dark:hover,
.btn-on-dark:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; }
.btn-on-dark:active { background: rgba(255, 255, 255, 0.24); }
.btn-on-dark--quiet {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
}
.btn-on-dark--quiet:hover,
.btn-on-dark--quiet:focus-visible { background: rgba(255, 255, 255, 0.1); }
.btn-on-dark:focus-visible { outline-color: #fff; }

/* ── Daily verse strip ────────────────────────────────────────────────── */
.strip-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 20px var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.strip-label {
  flex: none;
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.32em;
  color: var(--color-accent-700);
  text-transform: uppercase;
}
.strip-divider { flex: none; width: 1px; height: 26px; background: var(--color-divider); }
.strip-text {
  margin: 0; flex: 1;
  font-size: 15.5px; line-height: 1.8; font-style: italic;
}
.strip-ref {
  flex: none;
  font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--color-neutral-600);
  font-feature-settings: 'tnum';
}

/* ── Core verse (dark) ────────────────────────────────────────────────── */
.core-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 104px var(--pad);
  display: grid; grid-template-columns: 1fr 300px; gap: 80px;
  align-items: end;
}
.core-inner .kicker { margin-bottom: 40px; display: block; }
.core-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 37px; font-weight: 300; line-height: 1.72; letter-spacing: 0.05em;
  text-wrap: pretty;
}
.core-cite {
  display: flex; align-items: center; gap: 18px;
  margin-top: 44px;
}
.core-cite-rule { width: 52px; height: 1px; background: var(--color-accent-400); flex: none; }
.core-cite cite {
  font-style: normal;
  font-size: 14px; letter-spacing: 0.16em;
  color: var(--color-accent-300);
  font-feature-settings: 'tnum';
}
.core-side {
  border-left: 1px solid var(--color-on-ink-hairline);
  padding-left: 40px;
  display: flex; flex-direction: column; gap: 34px;
}
.side-title {
  font-family: var(--font-display);
  font-size: 19px; letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.side-list {
  margin: 0;
  font-size: 14px; line-height: 2.05;
  color: var(--color-on-ink-70);
}

/* The core imagery, cropped free of the poster's text (the words already live
   in this section). A full-bleed band whose top fades up into the ink, so the
   wheat reads as the section's ground rather than a pasted-in picture. */
.verse-band { margin: 0; line-height: 0; }
.verse-band img {
  width: 100%;
  height: clamp(200px, 24vw, 340px);
  object-fit: cover;
  object-position: center bottom;
  filter: sepia(0.16) saturate(0.92) contrast(1.03);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 46%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 46%);
}
/* the band carries the section's lower edge, so the text block sits tighter */
.section--with-band .core-inner { padding-bottom: 68px; }

/* ── Section heads ───────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 44px;
}
.section-head h2 {
  margin: 0;
  font-size: 34px; font-weight: 600; letter-spacing: 0.12em;
}
.section-en {
  font-family: var(--font-latin);
  font-size: 10.5px; letter-spacing: 0.3em;
  color: var(--color-neutral-600);
}
.section-rule { flex: 1; height: 1px; background: var(--color-divider); }
.section-more { font-size: 13px; letter-spacing: 0.1em; }

/* ── Latest message ──────────────────────────────────────────────────── */
.media-grid {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px;
  align-items: center;
}
.video-link {
  display: block; position: relative;
  aspect-ratio: 16 / 9;
  text-decoration: none;
}
.video-link > .plate { position: absolute; inset: 0; }
.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.play-badge span {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(23, 19, 13, 0.42);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.video-link:hover .play-badge span,
.video-link:focus-visible .play-badge span {
  background: rgba(23, 19, 13, 0.62);
  border-color: #fff;
}
.media-title {
  margin: 0 0 24px;
  font-size: 33px; font-weight: 400; line-height: 1.5; letter-spacing: 0.04em;
  text-wrap: pretty;
}
.meta-dl {
  margin: 0 0 32px;
  display: grid; grid-template-columns: 64px 1fr; gap: 12px 20px;
  font-size: 14px; line-height: 1.7;
}
.meta-dl dt { color: var(--color-neutral-600); letter-spacing: 0.1em; }
.meta-dl dd { margin: 0; }
.media-cta {
  font-family: var(--font-display);
  letter-spacing: 0.14em; padding: 11px 22px;
}
.media-note {
  margin: 16px 0 0;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--color-neutral-600);
}

/* ── News ────────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card {
  background: transparent;
  display: flex; flex-direction: column; gap: 16px;
  padding: var(--space-6);
}
.news-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--color-neutral-600);
  font-feature-settings: 'tnum';
}
.news-card h3 {
  margin: 0;
  font-size: 22px; font-weight: 600; line-height: 1.55; letter-spacing: 0.04em;
}
.news-card p {
  margin: 0;
  font-size: 14px; line-height: 1.95;
  color: var(--color-neutral-700);
  text-align: justify;
}
.news-card .tag { letter-spacing: 0.12em; }

/* ── Courses ─────────────────────────────────────────────────────────── */
.course-list { border-top: 1px solid var(--color-divider); }
.course-row {
  /* three columns: number / name+description / when.
     The fourth column held a status tag, dropped per 篩選清單 Q88. */
  display: grid; grid-template-columns: 88px 1fr 210px; gap: 32px;
  align-items: center;
  padding: 30px 8px;
  border-bottom: 1px solid var(--color-divider);
  text-decoration: none; color: inherit;
  transition: background 0.18s ease;
}
.course-row:hover,
.course-row:focus-visible { background: var(--color-accent-100); text-decoration: none; color: inherit; }
.course-num {
  font-family: var(--font-latin);
  font-size: 13px; letter-spacing: 0.14em;
  color: var(--color-accent-700);
  font-feature-settings: 'tnum';
}
.course-name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.course-desc {
  display: block;
  font-size: 13.5px; line-height: 1.85;
  color: var(--color-neutral-700);
}
.course-when {
  font-size: 13.5px; line-height: 1.8;
  color: var(--color-neutral-700);
  font-feature-settings: 'tnum';
}
.course-row .tag { justify-self: end; letter-spacing: 0.12em; }

/* ── Vision ──────────────────────────────────────────────────────────── */
.vision-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.vision-figure { margin: 0; aspect-ratio: 4 / 3; }
.vision-title {
  margin: 0 0 28px;
  font-size: 42px; font-weight: 400; line-height: 1.4; letter-spacing: 0.09em;
}
.vision-text {
  margin: 0 0 32px;
  font-size: 15px; line-height: 2.05;
  color: var(--color-neutral-800);
  text-align: justify;
}
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.actions .btn {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
}

/* ── Giving ──────────────────────────────────────────────────────────── */
.give-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 104px var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.give-inner .kicker { display: block; margin-bottom: 26px; letter-spacing: 0.34em; }
.give-title {
  margin: 0 0 26px;
  font-size: 46px; font-weight: 400; line-height: 1.42; letter-spacing: 0.08em;
}
.give-text {
  margin: 0 0 34px;
  font-size: 15px; line-height: 2.05;
  color: var(--color-neutral-800);
  max-width: 460px; text-align: justify;
}
.give-inner .actions .btn { padding: 12px 26px; }
.bank-card { background: transparent; padding: var(--space-8); }
.bank-card h4 {
  margin: 0 0 24px;
  font-size: 15px; letter-spacing: 0.18em;
  color: var(--color-accent-700);
}
.bank-dl {
  margin: 0;
  display: grid; grid-template-columns: 92px 1fr; gap: 18px 24px;
  font-size: 14.5px; line-height: 1.7;
}
.bank-dl dt { color: var(--color-neutral-600); letter-spacing: 0.1em; }
.bank-dl dd { margin: 0; }
.bank-note {
  color: var(--color-neutral-700);
  font-size: 13.5px; line-height: 1.9;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-ink);
  color: rgba(243, 242, 242, 0.82);
}
.footer-grid {
  max-width: var(--page-max); margin: 0 auto;
  padding: 80px var(--pad) 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 56px;
}
.footer-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.footer-brand .brand-mark { width: 56px; height: 56px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 0.15em;
  color: var(--color-on-ink);
}
.footer-brand-sub {
  font-family: var(--font-latin);
  font-size: 9px; letter-spacing: 0.3em;
  color: var(--color-accent-300);
}
.footer-tagline {
  margin: 0 0 24px;
  font-size: 13.5px; line-height: 2;
  color: var(--color-on-ink-60);
}
.social-round-row { display: flex; gap: 10px; }
.social-round {
  width: 38px; height: 38px;
  border: 1px solid rgba(243, 242, 242, 0.26);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(243, 242, 242, 0.8);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.social-round:hover,
.social-round:focus-visible {
  border-color: var(--color-accent-400);
  color: var(--color-accent-300);
}
.footer-h {
  margin: 0 0 22px;
  font-size: 12px; letter-spacing: 0.24em;
  color: var(--color-accent-300);
}
.footer-dl {
  margin: 0;
  display: flex; flex-direction: column; gap: 16px;
  font-size: 13.5px; line-height: 1.8;
}
.footer-dl dt {
  color: rgba(243, 242, 242, 0.5);
  font-size: 11.5px; letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.footer-dl dd { margin: 0; }
.footer-dl a { color: rgba(243, 242, 242, 0.86); }
.footer-dl a:hover, .footer-dl a:focus-visible { color: var(--color-accent-300); }
.footer-nav {
  display: flex; flex-direction: column; gap: 13px;
  font-size: 13.5px;
}
.footer-nav a { color: rgba(243, 242, 242, 0.78); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--color-accent-300); }
.footer-bottom-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--pad); }
.footer-bottom {
  border-top: 1px solid rgba(243, 242, 242, 0.14);
  padding: 26px 0 40px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 11.5px; letter-spacing: 0.1em;
  color: rgba(243, 242, 242, 0.45);
  font-feature-settings: 'tnum';
}
.footer-bottom .to-top { margin-left: auto; }
.footer-bottom a { color: rgba(243, 242, 242, 0.6); }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--color-accent-300); }
.site-footer :focus-visible { outline-color: var(--color-accent-300); }
.section--ink :focus-visible { outline-color: var(--color-accent-300); }

/* ══ Responsive ═══════════════════════════════════════════════════════════
   The design canvas is a fixed 1320px desktop layout; these are the rules a
   shipped page needs. Nothing above 1080px is changed.
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1180px) {
  :root { --pad: 30px; }
  .main-nav { gap: 20px; font-size: 14px; }
  .media-grid { gap: 40px; }
  .vision-grid { gap: 44px; }
  .give-inner { gap: 52px; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-2) var(--pad) var(--space-6);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-md);
    font-size: 16px;
  }
  .site-header.is-open .main-nav { display: flex; }
  .main-nav .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-divider);
  }
  .main-nav .nav-link:hover,
  .main-nav .nav-link:focus-visible { color: var(--color-accent-700); }
  .main-nav .btn { margin-top: var(--space-4); align-self: flex-start; }
}

@media (max-width: 980px) {
  .social-rail { display: none; }
  .container { padding: 76px var(--pad); }
  .hero { height: 540px; }
  .hero-title { font-size: 52px; }
  .core-inner { grid-template-columns: 1fr; gap: 56px; align-items: start; padding: 84px var(--pad); }
  .core-quote { font-size: 30px; }
  .core-side {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--color-on-ink-hairline);
    padding-top: 34px;
    flex-direction: row; flex-wrap: wrap; gap: 48px;
  }
  .strip-inner { flex-wrap: wrap; gap: 12px 20px; }
  .strip-text { flex: 1 0 100%; order: 3; }
  .media-grid { grid-template-columns: 1fr; gap: 36px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .vision-grid { grid-template-columns: 1fr; gap: 36px; }
  .give-inner { grid-template-columns: 1fr; gap: 44px; padding: 84px var(--pad); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-row {
    grid-template-columns: 44px 1fr;
    gap: 10px 20px;
    padding: 26px 8px;
  }
  .course-when { grid-column: 2; }
  .course-row .tag { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; --header-h: 70px; }
  .container { padding: 60px var(--pad); }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 17px; letter-spacing: 0.12em; }
  .brand-sub { font-size: 8px; letter-spacing: 0.24em; }
  .hero { height: min(86vh, 560px); }
  .hero-title { font-size: 38px; letter-spacing: 0.1em; }
  .hero-kicker { margin-bottom: 18px; letter-spacing: 0.32em; }
  .hero-rule { margin: 26px 0 20px; }
  .hero-lines { font-size: 14.5px; line-height: 1.95; }
  .hero-actions { margin-top: 30px; gap: 10px; }
  .section-head { flex-wrap: wrap; gap: 8px 14px; margin-bottom: 32px; }
  .section-head h2 { font-size: 27px; }
  .section-rule { display: none; }
  .core-inner { padding: 68px var(--pad); }
  .core-quote { font-size: 24px; line-height: 1.85; }
  .core-cite { margin-top: 32px; gap: 14px; }
  .core-side { flex-direction: column; gap: 28px; }
  /* narrow screens crop the band hardest — fade less so more of it reads */
  .verse-band img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }
  .media-title { font-size: 26px; }
  .meta-dl { grid-template-columns: 56px 1fr; gap: 10px 16px; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .news-card { padding: var(--space-4); }
  .news-card h3 { font-size: 20px; }
  .course-name { font-size: 21px; }
  .vision-title { font-size: 31px; }
  .give-inner { padding: 68px var(--pad); }
  .give-title { font-size: 33px; }
  .bank-card { padding: var(--space-6); }
  .bank-dl { grid-template-columns: 76px 1fr; gap: 14px 16px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 60px var(--pad) 32px; }
  .footer-bottom { padding: 22px 0 32px; gap: 12px; }
  .footer-bottom .to-top { margin-left: 0; }
}
