/* Kingsway Baptist Church — site styles.
   Derived from the Claude Design export (design/homepage). No inline styles
   anywhere in the site: the CSP forbids them. Add classes here instead. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/Geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/Geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/Geist-Mono-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/InterTight-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --stone-50: #FAFAF9; --stone-100: #F5F5F4; --stone-200: #E7E5E4; --stone-300: #D6D3D1;
  --stone-400: #A8A29E; --stone-500: #78716C; --stone-600: #57534E; --stone-700: #44403C;
  --stone-800: #292524; --stone-900: #1C1917; --stone-950: #0C0A09;
  --white: #FFFDF9;         /* cards: a touch warm, not stark */
  --paper: #F3EFE4;         /* page background: the ivory of the logo's disc */
  --ink: #29251D;           /* the logo wordmark: warm near-black */
  --gold: #C8A04A;          /* brand gold band */
  --gold-ink: #7A5C17;      /* text on gold tint */
  --gold-tint: #F6EEDC;     /* pill background */
  --gold-highlight: #EBD9A8;
  --gold-light: #E6CA88;    /* gold accents on dark bronze */
  /* Antique gold, the third brand color: the shades of the crown in the logo
     (light facet #BBA97C, mid facet #A8905D) run from tint to deep bronze.
     Used for "more" links, the .band--crown section and the footer. */
  --crown-100: #EFE9DA; --crown-200: #DFD4B8; --crown-400: #BBA97C; --crown-500: #A8905D;
  --crown-600: #8C7647; --crown-700: #6E5C36; --crown-800: #4E4127; --crown-900: #352C1D;
  --cream: #F6F0E3;         /* text on dark bronze */
  --border-soft: rgb(28 25 23 / 9%);
  --border-soft-strong: rgb(28 25 23 / 20%);
  --danger: #B91C1C; --danger-bg: #FEF2F2; --ok: #15803D; --ok-bg: #F0FDF4;
  --font-sans: "Geist", "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-display: "Inter Tight", "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --radius-sm: 6px; --radius-md: 8px;
  --shadow-button-sm: 0 1px 1px 0 rgb(255 255 255 / 0.02) inset, 0 1px 2px 0 rgb(0 0 0 / 0.06);
  --shadow-button-md: 0 1px 1px 0 rgb(253 253 253 / 6%) inset, 0 1px 2px 0 rgb(0 0 0 / 0.12);
  --shadow-container: 0 1px 1px 0 rgb(255 255 255 / 0.06) inset, 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--stone-900); font-family: var(--font-sans);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--stone-900); text-decoration: none; }
a:hover { color: var(--crown-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--stone-900); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -40px; background: var(--stone-900); color: var(--white); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 8px; color: var(--white); }

/* ---------- Layout ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--white); border-radius: 24px; border: 1px solid var(--border-soft); padding: var(--pad); }
.card--shadow { box-shadow: var(--shadow-container); }
.band { background: var(--gold); color: var(--stone-950); border-radius: 24px; padding: var(--pad); }
.band a { color: var(--stone-950); }
.band--crown { background: var(--crown-400); color: var(--ink); }
.band.band--crown p, .band--crown .lead { color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 48px); }
/* Always three columns, even with fewer items: one event stays card-sized on the left. */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.prose { max-width: 42em; display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--stone-700); }
.prose h2 { font-size: 26px; color: var(--stone-900); margin-top: 12px; }
.prose h3 { font-size: 20px; color: var(--stone-900); margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--stone-900); }
.muted { color: var(--stone-500); }
.small { font-size: 14px; }

/* ---------- Type ---------- */
.h-hero { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.h-page { font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.h-section { font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.h-card { font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--stone-600); max-width: 34em; text-wrap: pretty; }
.highlight { color: var(--stone-900); font-weight: 600; background: linear-gradient(transparent 62%, var(--gold-highlight) 62%); }
.pill { align-self: flex-start; font: 600 13px/1 var(--font-sans); color: var(--gold-ink); background: var(--gold-tint); padding: 7px 12px; border-radius: 999px; }
.label { font: 500 13px/1 var(--font-sans); color: var(--stone-500); }
.band .label { color: var(--stone-800); }
.big-stat { font: 600 34px/1 var(--font-display); letter-spacing: -0.03em; color: var(--stone-950); }
.link-more { font: 500 14px/1 var(--font-sans); color: var(--crown-700); }
.link-more:hover { color: var(--crown-900); }

/* ---------- Buttons & inputs (mirrors DS Button/Input) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  font: 600 14px/1 var(--font-sans); border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
  white-space: nowrap; cursor: pointer; transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1); background: transparent; color: var(--stone-600); }
.btn:hover { background: rgb(28 25 23 / 4%); color: var(--stone-900); }
.btn-primary { background: var(--ink); color: var(--cream); border: 0; box-shadow: var(--shadow-button-md); }
.btn-primary:hover { background: var(--crown-800); color: var(--cream); }
.btn-lg { height: 44px; padding: 0 18px; font-size: 15px; }
.band .btn { border-color: rgb(28 25 23 / 20%); color: var(--stone-950); }
.band .btn-primary { color: var(--cream); }
.input, .textarea, .select { width: 100%; font: 400 15px/1.4 var(--font-sans); padding: 9px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--border-soft-strong); background: var(--white); color: var(--stone-900); }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid rgb(28 25 23 / 20%); border-color: var(--stone-950); }
.textarea { min-height: 120px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; font: 500 14px/1.2 var(--font-sans); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--stone-900); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.table-opts { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-opts th, .table-opts td { text-align: left; padding: 12px 8px; border-top: 1px solid var(--border-soft); }
.table-opts th { font-weight: 500; color: var(--stone-500); font-size: 13px; }
.table-opts td.c, .table-opts th.c { text-align: center; width: 80px; }

/* ---------- Banner ---------- */
.banner { background: var(--stone-900); color: var(--stone-50); border-radius: 14px; padding: 12px 18px; font-size: 15px; text-align: center; }
.banner a { color: var(--stone-50); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; overflow: hidden; display: block; flex: none; }
.brand-mark img { height: 40px; width: auto; max-width: none; }
.brand-name { font: 600 20px/1 var(--font-display); letter-spacing: -0.025em; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font: 500 14px/1 var(--font-sans); }
.site-nav a { color: var(--stone-600); padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--stone-900); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.header-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .site-nav { order: 3; width: 100%; gap: 4px 18px; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-media { min-width: 0; aspect-ratio: 16 / 10; }
.media { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: var(--stone-200); }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-4x3 { aspect-ratio: 4 / 3; }
.r16 { border-radius: 16px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { display: flex; flex-direction: column; gap: 18px; }
.page-head .lead { max-width: 40em; }

/* ---------- Event cards ---------- */
.event-card { display: flex; flex-direction: column; gap: 14px; color: var(--stone-900); }
.event-media { position: relative; aspect-ratio: 4 / 3; min-height: 0; } /* min-height: 0 keeps 4:3 whatever the image's shape */
.event-media .media { border-radius: 16px; }
.event-media .media--empty { width: 100%; height: 100%; border-radius: 16px; background: linear-gradient(135deg, var(--gold-tint), var(--stone-200)); }
.date-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); border-radius: 12px; padding: 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow-container); }
.date-badge .mon { font: 600 11px/1 var(--font-sans); color: var(--stone-900); text-transform: uppercase; }
.date-badge .day { font: 600 22px/1 var(--font-display); }
.event-title { font: 600 19px/1.25 var(--font-display); letter-spacing: -0.01em; }
.event-when { font: 400 14px/1.3 var(--font-sans); color: var(--stone-500); }

/* ---------- Sermons ---------- */
.sermon-title { font: 600 24px/1.2 var(--font-display); letter-spacing: -0.02em; }
.sermon-meta { font: 400 15px/1.3 var(--font-sans); color: var(--stone-500); }
.list-rows { display: flex; flex-direction: column; justify-content: flex-end; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border-soft); color: var(--stone-900); }
.list-row-title { font: 600 17px/1.3 var(--font-display); }
.list-row-meta { font: 400 14px/1.3 var(--font-sans); color: var(--stone-500); }
.list-row-go { font: 500 14px/1 var(--font-sans); color: var(--stone-500); white-space: nowrap; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--stone-900); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Ministry tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgb(255 255 255 / 55%);
  border: 1px solid rgb(28 25 23 / 10%); border-radius: 14px; padding: 18px 20px; color: var(--stone-950); transition: background 150ms; }
.tile:hover { background: rgb(255 255 255 / 80%); color: var(--stone-950); }
.tile-name { font: 600 17px/1.2 var(--font-display); }
.tile-note { font: 400 14px/1.35 var(--font-sans); color: var(--stone-800); }
.card .tile { background: var(--stone-50); }
.band--crown .tile { background: rgb(255 253 249 / 42%); border-color: rgb(41 37 29 / 12%); color: var(--ink); }
.band--crown .tile:hover { background: rgb(255 253 249 / 68%); color: var(--ink); }
.band--crown .tile-note { color: var(--crown-900); }
.band--crown .tile > [aria-hidden="true"] { color: var(--crown-800); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px 32px; }
.news-item { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--gold); }
.news-title { font: 600 18px/1.25 var(--font-display); }
.news-body { font: 400 15px/1.55 var(--font-sans); color: var(--stone-600); text-wrap: pretty; display: flex; flex-direction: column; gap: 10px; }

/* ---------- People (staff) ---------- */
.person { display: flex; flex-direction: column; gap: 10px; }
.person img { aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--stone-200); }
.person-name { font: 600 19px/1.2 var(--font-display); }
.person-role { font-size: 14px; color: var(--stone-500); }

/* ---------- Footer ---------- */
.site-footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; padding: var(--pad);
  background: var(--crown-900); border-radius: 24px; font: 400 15px/1.6 var(--font-sans); color: rgb(246 240 227 / 78%); }
.site-footer a { color: rgb(246 240 227 / 88%); }
.site-footer a:hover { color: var(--gold-light); }
.footer-name { font: 600 19px/1.2 var(--font-display); color: var(--cream); }
.footer-legal { grid-column: 1 / -1; font-size: 13px; color: rgb(246 240 227 / 60%); padding-top: 20px; border-top: 1px solid rgb(246 240 227 / 14%); }
.site-footer :focus-visible { outline-color: var(--cream); }

/* ---------- Print ---------- */
@media print { .site-header nav, .header-cta, .site-footer { display: none; } body { background: #fff; } }

/* ---------- Misc ---------- */
.stack-main { display: flex; flex-direction: column; gap: 8px; }
.mono { font-family: var(--font-mono); }
.prayer-give { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 8px; }
.give-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.band .lead, .band p { color: var(--stone-800); }
.empty { color: var(--stone-500); font-size: 15px; padding: 18px 0; }

/* ---------- Service-times band ---------- */
/* Each column reads top to bottom: when (icon + small caps), the time, what it is. */
.service-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 36px); }
.sb-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sb-when { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--font-sans);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--crown-900); }
.icon { width: 18px; height: 18px; flex: none; }
.sb-time { font: 600 clamp(28px, 2.7vw, 34px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--stone-950); white-space: nowrap; }
.sb-what { font: 600 17px/1.25 var(--font-display); color: var(--stone-900); }
.sb-detail { font: 500 17px/1.45 var(--font-sans); color: var(--stone-950); font-variant-numeric: tabular-nums; }
.band .sb-detail:hover { color: var(--stone-950); text-decoration: underline; text-underline-offset: 3px; }
.service-band .sb-item:nth-child(n+3) { border-top: 1px solid rgb(28 25 23 / 16%); padding-top: 22px; }
@media (max-width: 520px) {
  .service-band { grid-template-columns: 1fr; }
  .service-band .sb-item + .sb-item { border-top: 1px solid rgb(28 25 23 / 16%); padding-top: 20px; }
}
@media (min-width: 1080px) {
  .service-band { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .service-band .sb-item { padding: 0 clamp(20px, 2.6vw, 36px); }
  .service-band .sb-item:first-child { padding-left: 0; }
  .service-band .sb-item:last-child { padding-right: 0; }
  .service-band .sb-item + .sb-item { border-top: 0; padding-top: 0; border-left: 1px solid rgb(28 25 23 / 16%); }
}

/* ---------- Pages ---------- */
/* Inner-page building blocks (visit, about, ministries, sermons, events…). */
.media-link { display: block; }
.crumb { font: 500 14px/1 var(--font-sans); color: var(--stone-500); }
.crumb:hover { color: var(--stone-900); }
.page-head .h-page { max-width: 14em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.aside { display: flex; flex-direction: column; gap: 14px; background: var(--stone-50); border: 1px solid var(--border-soft); border-radius: 18px; padding: 24px; }
.aside h3 { font-size: 19px; }
.aside p, .aside li { font-size: 15px; color: var(--stone-600); }
.aside ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* Quick facts (visit page) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 6px; background: var(--stone-50); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 18px; }
.fact-k { font: 500 13px/1 var(--font-sans); color: var(--stone-500); }
.fact-v { font: 600 18px/1.3 var(--font-display); color: var(--stone-900); }

/* Schedules */
.schedule { display: flex; flex-direction: column; }
.schedule-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-soft); }
.schedule-row:first-child { border-top: 0; padding-top: 0; }
.schedule-time { font: 600 17px/1.3 var(--font-display); color: var(--gold-ink); }
.schedule-what { display: flex; flex-direction: column; gap: 4px; }
.schedule-what strong { font: 600 17px/1.3 var(--font-display); }
.schedule-what span { font-size: 15px; color: var(--stone-600); }
@media (max-width: 520px) { .schedule-row { grid-template-columns: 1fr; gap: 4px; } }

/* Beliefs */
.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 36px; }
.belief { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--gold); }
.belief h3 { font-size: 21px; }
.belief p { font-size: 16px; color: var(--stone-700); text-wrap: pretty; }
.refs { font: 400 13px/1.5 var(--font-sans); color: var(--stone-500); }

/* Staff */
.staff { display: flex; flex-direction: column; gap: 8px; }
.staff-card { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.staff-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--stone-200); }
.staff-card .stack-sm p { color: var(--stone-700); font-size: 16px; }
@media (max-width: 680px) { .staff-card { grid-template-columns: 1fr; } .staff-card img { max-width: 280px; } }

/* Ministries */
.ministry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px 36px; }
.ministry { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--gold); }
.ministry h3 { font-size: 21px; }
.ministry p { font-size: 16px; color: var(--stone-700); }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.class-list li { display: flex; flex-direction: column; gap: 4px; background: var(--stone-50); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; }
.class-list strong { font: 600 16px/1.3 var(--font-display); }
.class-list span { font-size: 14px; color: var(--stone-500); }

/* Event list */
.event-list { display: flex; flex-direction: column; }
.event-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 260px); gap: 20px; padding: 24px 0; border-top: 1px solid var(--border-soft); align-items: start; scroll-margin-top: 16px; }
.event-row:first-child { border-top: 0; padding-top: 0; }
.event-row:target { background: linear-gradient(90deg, var(--gold-tint), transparent 70%); border-radius: 12px; }
.date-chip { background: var(--gold); border-radius: 12px; padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.date-chip .mon { font: 600 12px/1 var(--font-sans); text-transform: uppercase; }
.date-chip .day { font: 600 26px/1 var(--font-display); }
.event-row-body { display: flex; flex-direction: column; gap: 8px; }
.event-row-body .event-title { font-size: 22px; }
.event-row-body p { font-size: 16px; color: var(--stone-700); }
.event-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
@media (max-width: 760px) { .event-row { grid-template-columns: 64px minmax(0, 1fr); } .event-row img { grid-column: 1 / -1; } }

/* Sermons */
.sermon-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .sermon-feature { grid-template-columns: 1fr; } }
/* YouTube thumbnails: hqdefault is 4:3 with letterbox bars; cover-cropping to 16:9 removes them. */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--stone-800), var(--stone-950)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1); }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(12 10 9 / 12%); transition: background 150ms; }
.yt-play .yt-icon { width: clamp(48px, 12%, 68px); height: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 30%)); }
a:hover .thumb img { transform: scale(1.03); }
a:hover .yt-play { background: rgb(12 10 9 / 0%); }
.yt-icon { width: 22px; height: auto; flex: none; }
.btn .yt-icon { width: 20px; margin-right: 2px; }
.yt-go { display: inline-flex; align-items: center; gap: 8px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px 16px; }
.video-card { display: flex; flex-direction: column; gap: 12px; color: var(--stone-900); }
.video-card:hover { color: var(--stone-900); }
.video-title { font: 600 17px/1.25 var(--font-display); letter-spacing: -0.01em; }

/* Watch / give callouts */
.callout { display: flex; flex-direction: column; gap: 16px; }
.callout .big-stat { font-size: clamp(40px, 5vw, 60px); }
.note { font-size: 14px; color: var(--stone-500); border-left: 3px solid var(--gold); padding-left: 12px; }

/* Practice tracks (choir / kids) */
.tracks { display: flex; flex-direction: column; }
.track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 8px 20px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border-soft); }
.track:first-child { border-top: 0; }
.track-name { font: 600 16px/1.3 var(--font-display); }
.track audio { width: 100%; height: 36px; }
@media (max-width: 640px) { .track { grid-template-columns: 1fr; } }
.part-nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* 404 */
.lost { text-align: center; align-items: center; padding-block: clamp(40px, 8vw, 96px); }
.lost .lead { margin-inline: auto; }
.aside .tile { background: var(--white); }
.give-steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--stone-900); }
.callout .link-more { color: var(--stone-950); }
.skip-link { top: -100px; }
.skip-link:focus { top: 8px; }
.staff-card img { height: auto; }
