/* =====================================================
   Strong. Brave. Courageous. — strongbravecourageous.com
   Wildflower palette (Oct 2026), tuned to the logo:
   mountain blue opens the page, clay rose frames the logo and marks the actions,
   and the brown of the wooden cross carries the words.
   Rules: mountain blue is the only full color field at the top of a page; the one other band is cross-brown.
   Rose stays small (buttons on paper, tags, links, active nav item). Every text pairing passes WCAG 2.2 AA.
   ===================================================== */

/* Fonts, self-hosted (src/fonts/, Latin subset, woff2). These six rules repeat the ones Google Fonts served for
   Literata (italic and upright, optical size 7 to 72, weight 400 to 700) and Atkinson Hyperlegible Next
   (400, 500, 700, and 400 italic), so the type renders the same. Keep the weights as written: the files are
   variable fonts and hold more weights than the site uses. build.js adds a ?v= stamp to each file address.
   Both families are under the SIL Open Font License; the license files sit beside the fonts. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2?v=b46d80e9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2?v=b46d80e9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2?v=b46d80e9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2?v=b46d80e9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/literata-latin-opsz-italic.woff2?v=b46d80e9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/literata-latin-opsz-normal.woff2?v=b46d80e9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --field: #4A7590;        /* mountain-blue-deep: opening section field. Paper text on it 4.9:1 */
  --ridge: #3D6474;        /* back ridge layer, from the logo's treeline. Decoration only */
  --blue: #648FA8;         /* mountain-blue: chip edges and decoration only, never text (3.4:1 on paper) */
  --rose: #B4505B;         /* clay-rose: logo ring, ridge line, primary buttons on paper, active nav. Paper on it 4.9:1 */
  --rose-deep: #93404A;    /* button text on paper buttons, hover states. 6.7:1 on paper */
  --link: #A9454F;         /* links and small rose text. 5.7:1 on paper, 5.0:1 on blush */
  --brown: #5A3D2B;        /* cross-brown: celebration bar, header text, headings, the one band. 9.7:1 on paper */
  --ink: #3A2A20;          /* body text. 13.5:1 on paper */
  --muted: #6E5A4E;        /* dates, excerpts, meta. 6.4:1 on paper */
  --paper: #FFFDFA;        /* page background */
  --blush: #F7EDEC;        /* quiet panels. Ink 11.9:1 on it */
  --tag-bg: #F7E1E2;       /* category tags */
  --tag-text: #8E3540;     /* 6.2:1 on tag-bg */
  --chip-bg: #E3ECF2;      /* Scripture chips */
  --chip-text: #21444E;    /* the logo's lettering navy. 8.8:1 on chip-bg */
  --wood: #3A281D;         /* deep-wood: footer */
  --footer-text: #F1E7E1;  /* 11.5:1 on wood */
  --footer-muted: #C2B0A5; /* 6.7:1 on wood */
  --footer-btn: #E99AA1;   /* footer "Sign up" button, with footer-btn-text. 7.9:1 */
  --footer-btn-text: #1F1A17;
  --rule: #E8DAD6;         /* hairlines and dividers */
  --line: #8C7A6E;         /* form field and control borders. 4.0:1 on paper (WCAG 1.4.11 needs 3:1) */
  --white: #FFFFFF;        /* form field fill */

  /* Literata: headings and reading text (built for long reading on screens; its optical sizes serve both).
     Atkinson Hyperlegible Next: nav, buttons, forms, dates, and other small text (letterforms that are hard to confuse). */
  --font-heading: "Literata", Georgia, "Times New Roman", serif;
  --font-read: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 var(--rule);
  --max: 1120px;
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--brown); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brown);
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: 0;
}
/* Type scale (ratio about 1.25): body 17/18, h3 22/24, h2 28/32, h1 32/40. */
h1 { font-size: clamp(32px, 4.4vw, 40px); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 32px); font-weight: 600; }
h3 { font-size: clamp(22px, 2.4vw, 24px); font-weight: 600; line-height: 1.3; }
.lead { font-family: var(--font-read); font-size: clamp(18px, 2vw, 20px); line-height: 1.6; }
h4 { font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
p { margin: 0 0 1.1em; }
small, .small { font-size: 14px; line-height: 1.5; }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 10px;
}
.eyebrow.brown, .eyebrow.blue { color: var(--brown); }

.highlight { color: var(--link); font-weight: 600; }

.pullquote {
  font-family: var(--font-read);
  font-style: italic;
  font-size: 21px;
  color: var(--brown);
  border-left: 3px solid var(--brown);
  padding: 4px 0 4px 18px;
  margin: 28px 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 20px; }

.divider {
  border: 0; height: 1px; background: var(--rule);
  margin: 8px auto; width: 100%;
}
.divider.short { width: 72px; height: 2px; background: var(--brown); margin: 18px auto; }

.grid-2 { display: grid; gap: 28px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Celebration line (top of every page) ---------- */
.celebration {
  background: var(--brown);
  font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: 15px; letter-spacing: 0;
  color: var(--paper); text-align: center; padding: 8px 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--brown); }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text { line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--brown); display: block; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; color: var(--brown);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; display: flex; flex-direction: column; gap: 4px; }
.site-nav a {
  display: block; padding: 12px 10px; font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  color: var(--brown); border-radius: 8px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { text-decoration: none; background: var(--blush); }
.site-nav a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--rose); }

@media (min-width: 768px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; gap: 2px; padding: 0; }
  .site-nav a { padding: 8px 12px; border-radius: 8px 8px 0 0; }
  .site-nav a:hover { background: transparent; border-bottom-color: currentColor; }
}
.header-inner { flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px; letter-spacing: 0;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease; text-decoration: none;
}
.btn:hover, .btn:focus-visible { text-decoration: none; transform: translateY(-1px); }
/* Primary action on paper: clay rose with paper text. */
.btn-primary { background: var(--rose); color: var(--paper); border-color: var(--rose); }
.btn-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-outline:hover { background: var(--blush); }
/* The button on the blue opening: paper with clay-rose-deep text (a rose button on blue has no contrast with the field). */
.btn-field { background: var(--paper); color: var(--rose-deep); border-color: var(--paper); }
.btn-field:hover { background: var(--blush); border-color: var(--blush); }
/* The button on the cross-brown band. */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Opening section (Home) ----------
   The one full color field. All text on it is paper. It ends in a three-layer ridge traced from the
   logo's own mountains: treeline teal at the back, a clay-rose line, then paper. Flat color, no gradients. */
.opening { background: var(--field); color: var(--paper); position: relative; padding: 40px 0 116px; }
.opening :focus-visible { outline-color: var(--paper); }
/* Asymmetric on wide screens: logo on the left, words on the right. Stacked on phones. */
.opening-grid { display: grid; gap: 36px; align-items: center; }
/* Logo frame: a 5px paper ring directly around the logo, then a 7px clay-rose ring. The logo itself is untouched. */
.hero-logo { width: min(280px, 64vw); margin: 12px auto 0; border-radius: 50%; box-shadow: 0 0 0 5px var(--paper), 0 0 0 12px var(--rose); }
.opening .tagline { font-family: var(--font-heading); font-weight: 600; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -0.01em; color: var(--paper); margin: 0 0 26px; }
.opening .hero-cta { margin: 0 0 36px; }
.btn-lg { min-height: 54px; padding: 14px 32px; font-size: 16px; }
.scripture-block { margin: 0; max-width: 34em; padding: 0 0 0 20px; border-left: 2px solid var(--paper); text-align: left; }
.scripture-block p { font-family: var(--font-read); font-style: italic; font-weight: 500; font-size: clamp(17px, 2vw, 19px); color: var(--paper); margin: 0 0 10px; line-height: 1.55; }
.scripture-block .sc { font-variant: small-caps; letter-spacing: 0.04em; }
.scripture-block cite { font-style: normal; font-family: var(--font-ui); font-weight: 500; font-size: 14px; }
.scripture-block cite a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 84px; display: block; max-width: none; }
@media (min-width: 860px) {
  .opening { padding: 64px 0 190px; }
  .opening-grid { grid-template-columns: minmax(260px, 380px) 1fr; gap: 72px; }
  .hero-logo { width: 100%; max-width: 300px; margin: 0 auto; }
  .opening .tagline { max-width: 11ch; }
  .ridge { height: 140px; }
}

/* ---------- Title band (inner pages) ----------
   A short band of the home page's mountain-blue-deep behind each inner page's title, ending in a thin clay-rose ridge.
   Title in paper (4.9:1 on the field). Story pages keep the letter layout and have no band. */
.title-band { background: var(--field); color: var(--paper); position: relative; padding: 36px 0 52px; }
.title-band h1 { color: var(--paper); margin: 0; }
.title-band a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.title-band :focus-visible { outline-color: var(--paper); }
.title-band .back { font-family: var(--font-ui); font-weight: 700; font-size: 14px; margin: 0 0 14px; }
.band-letter { max-width: 760px; padding: 0 clamp(22px, 6vw, 72px); }
.band-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 20px; display: block; max-width: none; }
.band-rose { fill: var(--rose); }
.band-ground { fill: var(--paper); }
.title-band.on-blush .band-ground { fill: var(--blush); }
/* The single blossom (the favicon flower) beside the About and Memorial wall titles: about the height of the capitals. */
.title-blossom { display: inline-block; height: 0.74em; width: auto; vertical-align: -0.04em; margin-left: 0.12em; }
.after-band { padding-top: 36px; }
@media (min-width: 860px) {
  .title-band { padding: 48px 0 64px; }
  .band-ridge { height: 28px; }
}

/* ---------- Intro (Home): Becky's sentence beside "My why" ---------- */
.intro-section { padding: 56px 0 48px; }
.intro-grid { display: grid; gap: 32px; align-items: start; }
.intro-greeting { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; }
.intro-greeting .home-photo { margin: 0; }
.intro-greeting .home-photo img { display: block; width: 100%; height: auto; border-radius: 4px 22px 4px 22px; }
@media (min-width: 860px) { .intro-greeting { grid-template-columns: 150px 1fr; gap: 28px; } }
.intro-section h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; color: var(--brown); max-width: 22ch; margin: 0; }
.why-panel { background: var(--blush); padding: 28px 30px; border-radius: 4px 28px 4px 28px; }
.why-panel h2 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.why-panel .why { margin: 0 0 14px; }
.why-panel .word-strip { justify-content: flex-start; }
@media (min-width: 860px) { .intro-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; } }

/* ---------- Story lists (Home and Stories): dated rows, not cards ---------- */
.home-stories { border-top: 1px solid var(--rule); padding: 56px 0 64px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin: 0 0 4px; }
.list-head h2 { margin: 0; }
.list-head a { font-family: var(--font-ui); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.story-list + .list-head { margin-top: 48px; }
.story-list { display: block; }

.mission-box { background: var(--blush); border-radius: 4px 28px 4px 28px; padding: 32px 26px; text-align: center; }
.mission-box .why { max-width: 620px; margin: 0 auto; font-size: 17px; }

.word-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-family: var(--font-ui); font-weight: 700; letter-spacing: 0.22em; font-size: 13px; color: var(--brown);
}
.word-strip span + span::before { content: "\2665"; color: var(--brown); margin-right: 22px; letter-spacing: 0; }


.quiet-panel {
  background: var(--blush);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
}

/* ---------- Story rows and Fingerprint cards ---------- */
.card { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.card > time { font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: var(--muted); }
.card h2, .card h3 { font-size: clamp(22px, 2.4vw, 24px); line-height: 1.3; margin: 0 0 8px; }
.card h2 a, .card h3 a { color: var(--ink); }
.card h2 a:hover, .card h3 a:hover { text-decoration-color: var(--link); }
.card .excerpt { margin: 0 0 14px; color: var(--muted); max-width: 62ch; }
.row-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 768px) { .card { grid-template-columns: 150px 1fr; gap: 28px; } .card > time { padding-top: 6px; } }
.card.fingerprint { display: block; background: var(--blush); border: 0; border-radius: 4px 28px 4px 28px; padding: 24px 26px; }
.card.fingerprint .from { font-family: var(--font-heading); font-style: italic; font-weight: 600; color: var(--brown); }

.tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; line-height: 1.2;
  background: var(--tag-bg); color: var(--tag-text);
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0 32px; }
.filter-btn {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 2px solid var(--line); color: var(--brown);
  font-family: var(--font-ui); font-weight: 700; font-size: 14px; transition: all .15s;
}
.filter-btn:hover { background: var(--blush); border-color: var(--brown); }
.filter-btn[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--paper); }
.empty-note { text-align: center; color: var(--muted); padding: 24px; display: none; }

/* ---------- Search (Algolia InstantSearch) ---------- */
.search-panel { max-width: 760px; margin: 22px auto 28px; }
.search-box { position: relative; }
.search-box input[type="search"] {
  width: 100%; min-height: 54px; padding: 14px 52px 14px 50px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.search-box input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box .search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--brown); pointer-events: none; }
.search-box .search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1;
}
.search-box .search-clear:hover { background: var(--blush); color: var(--brown); }
.search-box .search-clear[hidden] { display: none; }
.search-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; align-items: center; margin-top: 18px; }
.search-dates { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; align-items: center; margin-top: 14px; font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
.search-dates label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.search-dates input[type="date"] {
  font: inherit; font-size: 14px; min-height: 40px; padding: 6px 10px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.search-dates .link-btn { background: none; border: 0; color: var(--link); font: inherit; font-weight: 700; cursor: pointer; padding: 6px; }
.search-stats { text-align: center; font-family: var(--font-ui); font-size: 14px; color: var(--muted); margin: 0 0 18px; min-height: 20px; }
.search-stats mark { background: none; color: var(--brown); font-weight: 700; }
.hit-highlight, .ais-Highlight-highlighted, .ais-Snippet-highlighted { background: var(--tag-bg); color: var(--ink); font-style: normal; border-radius: 3px; padding: 0 2px; }
.search-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 20px;
  background: var(--white); border: 1px dashed var(--rule); border-radius: var(--radius);
}
.search-empty h3 { margin-bottom: 6px; }
.search-empty p { margin: 0; color: var(--muted); }
.search-more { text-align: center; margin-top: 28px; }
.search-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.search-note a { color: var(--muted); }

/* ---------- Story page: a dated letter ----------
   Blush surround, paper sheet, one column. Body: Literata 18/19px, line height 1.75, about 64 characters per line. */
.reading { background: var(--blush); padding: 40px 0 72px; }
.letter { background: var(--paper); max-width: 760px; margin: 0 auto; padding: 40px clamp(22px, 6vw, 72px) 56px; border-radius: 2px; box-shadow: 0 1px 0 var(--rule); }
.story-header { margin-bottom: 30px; }
.story-header .back { font-family: var(--font-ui); font-weight: 700; font-size: 14px; margin: 0 0 28px; }
.story-header .dateline { font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.story-header h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.18; margin: 0 0 16px; }
.story-header .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.story-body { font-family: var(--font-read); font-size: 18px; line-height: 1.75; max-width: var(--measure); color: var(--ink); }
@media (min-width: 768px) { .story-body { font-size: 19px; } }
.story-body p { margin: 0 0 1.15em; }
.story-body > p:first-of-type::first-letter { font-family: var(--font-heading); font-weight: 600; font-size: 3.3em; line-height: 0.85; float: left; margin: 7px 10px 0 0; color: var(--brown); }
.story-body h2, .story-body h3 { margin-top: 1.6em; }
.story-body img { border-radius: 2px; margin: 24px 0; }
.story-body blockquote { font-family: var(--font-read); font-style: italic; color: var(--brown); border-left: 3px solid var(--blue); margin: 1.6em 0; padding: 4px 0 4px 22px; font-size: 1.05em; line-height: 1.6; }
.story-body .video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; border-radius: 2px; overflow: hidden; background: var(--wood); }
.story-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.after-letter { max-width: 760px; margin: 0 auto; }
.story-nav { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 32px 0 0; }
.story-nav a { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); }
.story-nav a span { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--link); margin-bottom: 4px; }
@media (min-width: 600px) { .story-nav { grid-template-columns: 1fr 1fr; } .story-nav .newer { text-align: right; } }
.after-note { margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.after-note h2 { font-size: 22px; margin: 0; }
.after-note p { margin: 0; }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.comments > h2 { font-size: 24px; }
.comment-list { display: grid; gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; }
.comment {
  font-family: var(--font-body); font-size: 15px;
  background: var(--blush); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.comment .who { font-family: var(--font-ui); font-weight: 700; color: var(--brown); font-size: 14px; }
.comment .when { color: var(--muted); font-size: 13px; margin-left: 8px; }
.comment p:last-child { margin-bottom: 0; }
.comment-note { font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-box {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.form-box.gold, .form-box.blue { background: var(--blush); border-color: var(--rule); box-shadow: none; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-ui); font-weight: 700; margin-bottom: 6px; font-size: 15px; color: var(--brown); }
.field .hint { font-size: 13px; color: var(--muted); margin: -2px 0 6px; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.search-box input[type="search"]:focus-visible, .search-dates input[type="date"]:focus-visible, .res-filter input[type="search"]:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.field input[type="file"] { display: block; font: inherit; padding: 10px 0; max-width: 100%; }
/* "Choose File" drawn like the site's outline button (the file name stays beside it). */
.field input[type="file"]::file-selector-button {
  min-height: 44px; padding: 9px 22px; margin: 0 14px 0 0; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  background: var(--white); color: var(--brown); border: 2px solid var(--brown); cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--blush); }
.field input[type="file"] { font-size: 15px; color: var(--muted); }
.field input[type="file"]:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: var(--radius-sm); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 600px) { .inline-form { flex-direction: row; } .inline-form .field { flex: 1; margin: 0; } }

/* ---------- Flowers from the logo (decoration; one per screen, never behind text, none inside a story body) ---------- */
.flower { display: block; height: auto; }
.flower-rule { display: flex; justify-content: center; padding: 8px 0 28px; }
.flower-rule.tight { padding: 4px 0 20px; }
.flower-sprig { width: 190px; }
.flower-sprig.small { width: 120px; }
.flower-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.flower-head h1 { margin-bottom: 0; }
.flower-cluster { width: 92px; flex: none; }
.end-mark { margin: 44px 0 0; display: flex; justify-content: center; }
.flower-blossom { width: 34px; }
@media (max-width: 600px) {
  .flower-sprig { width: 150px; }
  .flower-cluster { width: 64px; }
}

/* ---------- Memorial wall ---------- */
.wall-top { padding-bottom: 8px; }
.wall-intro { margin: 18px 0 22px; }
.wall-list { display: grid; gap: 28px; }
.wall-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.wall-search input[type="search"] {
  flex: 1 1 220px; min-height: 48px; padding: 10px 16px; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
}
.wall-search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.wall-search input[type="search"]:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.wall-search .btn { padding: 10px 22px; }
.wall-name { font-family: var(--font-heading); font-size: 24px; line-height: 1.25; color: var(--brown); margin: 0 0 4px; overflow-wrap: anywhere; }
.wall-shared { font-family: var(--font-ui); font-size: 15px; color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.wa-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--brown); margin: 0 0 12px; overflow-wrap: anywhere; }
.wa-name-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; }
.wa-name-edit label { width: 100%; font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--brown); }
.wa-name-edit input { flex: 1 1 200px; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wa-name-edit input:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.wa-saved { margin-left: 4px; }
.wall-result { margin: 0 0 16px; overflow-wrap: anywhere; }
.wall-more { margin: 28px 0 0; text-align: center; }
.wall-card:focus { outline: none; }
.wall-card { background: var(--blush); border-radius: 4px 28px 4px 28px; padding: 24px 26px; }
.wall-photo { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: var(--paper); border-radius: 2px 20px 2px 2px; margin: 0 0 18px; }
/* Visitor text: plain text only. pre-line keeps the writer's line breaks. */
.wall-text { font-family: var(--font-read); font-size: 18px; line-height: 1.7; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 14px; }
.wall-card .video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: 2px; overflow: hidden; background: var(--wood); }
.wall-card .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wall-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wall-by { margin: 0; overflow-wrap: anywhere; }
.wall-by .from { font-family: var(--font-heading); font-style: italic; font-weight: 600; color: var(--brown); margin-right: 10px; }
.wall-by time { font-size: 14px; color: var(--muted); }
.wall-heart {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--brown);
  font-family: var(--font-ui); font-weight: 700; font-size: 15px; cursor: pointer;
}
.wall-heart:hover { background: var(--paper); }
.wall-heart:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.wall-heart-icon { color: var(--link); font-size: 18px; line-height: 1; }
.wall-heart[aria-pressed="true"] { background: var(--tag-bg); border-color: var(--rose-deep); color: var(--tag-text); cursor: default; }
.wall-comments { margin: 20px 0 0; }
.wall-comments .comment { background: var(--paper); }
.wall-comments .wall-text { font-size: 16px; margin: 6px 0 0; }
.wall-comment-form { margin-top: 16px; }
.wall-comment-form summary { cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--link); padding: 10px 0; }
.wall-comment-form summary:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.wall-comment-form form { margin-top: 10px; }
.wall-comment-form textarea { min-height: 110px; }
.wall-comment-form /* "Choose File" drawn like the site's outline button (the file name stays beside it). */
.field input[type="file"]::file-selector-button {
  min-height: 44px; padding: 9px 22px; margin: 0 14px 0 0; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  background: var(--white); color: var(--brown); border: 2px solid var(--brown); cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--blush); }
.field input[type="file"] { font-size: 15px; color: var(--muted); }
.field input[type="file"]:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: var(--radius-sm); }
.hp { position: absolute; left: -9999px; }
.wall-msg { background: var(--white); border: 1px solid var(--rose-deep); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); font-size: 15px; }
.wall-thanks:focus { outline: none; }
#share .radio { margin-bottom: 18px; }

/* ---------- Memorial wall approval screen ---------- */
.wa-gap { margin-top: 16px; }
.wa-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.wa-link:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.field input[type="password"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: inherit; color: var(--ink); }
.wa-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wa-bar .muted { margin-right: auto; }
#wa-main h3 { margin: 24px 0 12px; }
#wa-main .count { font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--muted); margin-left: 6px; }
.wa-group { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 6px; }
.wa-group summary { cursor: pointer; font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--brown); padding: 12px 0; }
.wa-group summary:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.wa-fact { margin: 6px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.wa-actions { margin-top: 16px; justify-content: flex-start; }
.wa-files { padding-left: 20px; font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Page intro text (Fingerprints definition, Contact note) ---------- */
.page-intro { max-width: 38em; margin: 14px auto 0; text-align: left; }
.contact-note p { font-size: 18px; margin: 0 0 12px; }

/* ---------- About: photo, handwritten note, obituary, videos ---------- */
.about-figure { margin: 0; position: relative; }
.about-photo { display: block; width: 100%; border-radius: 4px 28px 4px 28px; }
.about-top img { border-radius: 4px 28px 4px 28px; }
.about-note { display: block; width: min(60%, 220px); margin: 10px 0 0 auto; transform: rotate(-3deg); }
.soon {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; border: 1px solid var(--rule); background: var(--blush);
  border-radius: 4px 28px 4px 28px; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rule); margin: 7px;
}
.soon span { font-family: var(--font-read); font-style: italic; font-size: 17px; color: var(--muted); }
.photo.fingerprints-photo { max-width: 420px; margin: 32px auto 0; text-align: left; }
.fp-jump { margin: 18px 0 8px; }
.divine-name { font-variant-caps: small-caps; }
.cross-link { margin: 20px 0 0; text-align: center; font-family: var(--font-ui); }
#share { scroll-margin-top: 72px; }
.contact-email { text-align: center; margin: 24px 0 0; overflow-wrap: anywhere; }
.about-links { margin-top: 32px; justify-content: flex-start; }
/* About collage: a scrapbook of printed snapshots (aboutCollage() in build.js). White print border, Becky's caption on the
   border in the serif italic, soft shadow, small tilt (--tilt). Neighbours overlap only at their side borders. No animation. */
.collage { margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; align-items: start; }
.sb-row { display: contents; }
.collage .print { margin: 0; background: var(--white); padding: 7px 7px 0; box-shadow: 0 1px 2px rgba(58, 42, 32, 0.18), 0 6px 14px rgba(58, 42, 32, 0.14); transform: rotate(calc(var(--tilt, 0deg) * 0.4)); }
.collage .print img { border-radius: 0; background: var(--blush); }
.collage .print figcaption { margin: 0; padding: 7px 2px 9px; border: 0; font-family: var(--font-read); font-style: italic; font-size: 13px; line-height: 1.4; color: var(--ink); text-align: center; text-wrap: balance; }
@media (min-width: 600px) {
  .collage { display: block; }
  .sb-row { display: flex; justify-content: center; align-items: flex-start; position: relative; }
  .sb-row:first-child { z-index: 2; }
  .sb-row + .sb-row { margin-top: 4px; }
  .collage .print { flex: none; width: var(--w, 25%); margin-top: var(--drop, 0); padding: 12px 14px 0; transform: rotate(var(--tilt, 0deg)); position: relative; }
  .collage .print + .print { margin-left: -5px; }
  .collage .print figcaption { padding: 9px 4px 13px; font-size: 15px; }
}
@media (min-width: 768px) {
  .collage { width: min(1000px, calc(100vw - 40px)); margin-left: calc(50% - min(500px, 50vw - 20px)); }
}
}
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 4px 18px 4px 18px; background: var(--blush); }
.photo figcaption { margin: 8px 0 0; font-family: var(--font-ui); font-size: 14px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.video-caption { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.about-slot { padding: 0; margin: 48px 0 0; }
.about-slot h2 { margin: 0 0 14px; }
.about-slot .video { position: relative; aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden; background: var(--wood); }
.about-slot .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Placeholders (Becky fills these in) ---------- */
.ph {
  border: 1px solid var(--rule);
  background: var(--blush);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-read);
  font-style: italic;
}
.ph strong { font-style: normal; font-family: var(--font-ui); }

/* ---------- Crisis note ---------- */
.crisis {
  border: 1px solid var(--rule); background: var(--blush);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15px;
}
.crisis strong { color: var(--brown); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood); color: var(--footer-text); padding: 48px 0 32px; }
.site-footer a { color: var(--footer-text); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; background: var(--white); }
.footer-brand .brand-name { color: var(--footer-text); }
.site-footer h2 { font-family: var(--font-ui); color: var(--footer-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { font-family: var(--font-ui); font-weight: 500; }
.site-footer .field input[type="email"] { border-color: var(--footer-muted); }
.site-footer .btn-primary { background: var(--footer-btn); border-color: var(--footer-btn); color: var(--footer-btn-text); }
.site-footer .btn-primary:hover { background: #F2B4B9; border-color: #F2B4B9; }
.site-footer :focus-visible, .band :focus-visible { outline-color: var(--paper); }
.footer-crisis { margin: 18px 0 0; font-size: 15px; max-width: 30em; }
.footer-crisis a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.signup-note { font-size: 14px; margin: 10px 0 0; }
.site-footer .signup-note { color: var(--footer-muted); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(241, 231, 225, .18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--footer-muted);
}
.footer-disclaimers { font-family: var(--font-ui); font-weight: 600; }

.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 10px; color: var(--brown); }
.social a:hover { background: var(--blush); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Scripture chips (cards, story pages, scripture index) ---------- */
.verse-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 4px;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; line-height: 1.2;
  color: var(--chip-text); background: var(--chip-bg);
}
.verse-chip svg { width: 13px; height: 13px; }
.verse-chip:hover, .verse-chip:focus-visible { text-decoration: underline; }
.story-body .verse-link { color: var(--chip-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Stories: year groups ---------- */
.story-years { display: grid; gap: 8px; max-width: 920px; margin: 0 auto; }
#story-grid { max-width: 920px; margin: 0 auto; }
.year-group { border-top: 2px solid var(--brown); }
.year-group summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 16px 0 12px;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(24px, 3vw, 28px); color: var(--brown);
}
.year-group summary::-webkit-details-marker { display: none; }
.year-group summary::before { content: "\25B8"; font-size: 18px; color: var(--brown); transition: transform .15s; flex: 0 0 auto; }
.year-group[open] summary::before { transform: rotate(90deg); }
.year-group summary .count { font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: var(--muted); }
.year-group .year-grid .card:last-child { border-bottom: 0; }
.filters-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); margin-right: 4px; }
.filters-label svg { width: 15px; height: 15px; }
.scripture-filters { margin-top: 4px; }
.scripture-filters .filter-btn { min-height: 38px; padding: 6px 14px; font-size: 13px; }

/* ---------- Scripture index page ---------- */
.book-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 8px; }
.book-nav a { font-family: var(--font-ui); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--brown); }
.book-nav a:hover { background: var(--blush); text-decoration: none; }
.scripture-index { margin-top: 24px; display: grid; gap: 28px; }
.scripture-book { padding: 0; }
.scripture-book h2 { font-size: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--rule); margin-bottom: 14px; scroll-margin-top: 90px; }
.passage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.passage { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 14px 16px; }
.passage-stories { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.passage-stories li a { font-family: var(--font-heading); font-weight: 600; color: var(--brown); }
.passage-stories li small { color: var(--muted); font-family: var(--font-ui); margin-left: 8px; }

/* ---------- Resources: tabs, lists, filter, disclaimers ---------- */
.crisis-line { margin-top: 4px; }
.crisis-line a { font-weight: 700; }
.res-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.res-tabs .tab {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 2px solid var(--line); color: var(--brown);
  font-family: var(--font-ui); font-weight: 700; font-size: 14px; transition: all .15s;
}
.res-tabs .tab:hover { background: var(--blush); border-color: var(--brown); }
.res-tabs .tab[aria-selected="true"] { background: var(--brown); border-color: var(--brown); color: var(--paper); }
.res-tabs .tab .count { font-weight: 600; opacity: .75; margin-left: 2px; }
.res-panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.res-panel[hidden] { display: none; }
.res-filter { margin-bottom: 16px; }
.res-filter input[type="search"] {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; -webkit-appearance: none; appearance: none;
}
.res-list { list-style: none; padding: 0; margin: 0; }
.res-item { padding: 9px 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.res-item:last-child { border-bottom: 0; }
.res-item[hidden] { display: none; }
.res-title { font-family: var(--font-ui); font-weight: 700; color: var(--brown); }
.res-title a { color: var(--brown); }
.res-by { display: block; color: var(--muted); font-size: 14px; }
.res-note { display: block; font-size: 14px; color: var(--ink); margin-top: 2px; }
.res-group { padding: 0; margin: 0 0 18px; }
.res-group:last-child { margin-bottom: 0; }
.res-group h3 { font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--rule); }
.res-group[hidden], .res-older[hidden] { display: none; }
.res-older { margin-top: 18px; border-top: 1px dashed var(--rule); padding-top: 10px; }
.res-older summary { cursor: pointer; font-family: var(--font-ui); font-weight: 700; color: var(--brown); list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
.res-older summary::-webkit-details-marker { display: none; }
.res-older summary::before { content: "\25B8"; color: var(--brown); }
.res-older[open] summary::before { content: "\25BE"; }
.res-older summary .count { font-weight: 500; font-size: 13px; color: var(--muted); }
.res-empty { text-align: center; }
.res-nomatch { text-align: center; padding: 12px 0 0; }
.help-988 { padding: 22px 24px; text-align: center; scroll-margin-top: 90px; }
.help-988 p { font-size: 15px; max-width: 600px; margin: 0 auto 16px; }
.help-row { display: flex; justify-content: center; }
.res-suggest { text-align: center; font-size: 15px; margin-top: 18px; }
.disclaimers { background: var(--blush); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; font-size: 13.5px; color: var(--muted); scroll-margin-top: 90px; }
.disclaimers h2 { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown); margin-bottom: 8px; }
.disclaimers p:last-child { margin-bottom: 0; }

/* ---------- Fingerprints form additions ---------- */
.form-first { font-size: 15px; margin-bottom: 8px; color: var(--ink); }
fieldset.choice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px 6px; margin: 0 0 18px; background: var(--white); }
fieldset.choice legend { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--brown); padding: 0 6px; }
.radio { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; margin: 6px 0 10px; cursor: pointer; }
.radio input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brown); flex: 0 0 auto; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }

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

/* ---------- Small-screen refinements ---------- */
@media (max-width: 767px) {
  .header-inner > .brand { flex: 1; min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 16px; }
  .site-nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .word-strip { gap: 6px 14px; letter-spacing: 0.16em; font-size: 12px; }
  .word-strip span + span::before { margin-right: 14px; }
  .pullquote { font-size: 18px; }
}

/* ---------- The one band (cross-brown) ---------- */
.band { background: var(--brown); color: var(--paper); padding: 56px 0; }
.band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 40px; }
.band h2 { margin: 0 0 8px; }
.band .pullquote { margin: 14px 0; }
.band p:last-child { margin-bottom: 0; }
.band h2, .band .eyebrow, .band .lead, .band .pullquote { color: var(--paper); }
.band .pullquote { border-left-color: var(--paper); }

/* ---------- Accessibility details ---------- */
/* Links inside sentences are underlined, so they don't rely on color alone (WCAG 1.4.1). */
main p:not(.eyebrow) a:not(.btn):not(.verse-chip), .story-body a:not(.verse-chip),
.quiet-panel a:not(.btn), .crisis a:not(.btn), .form-box a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.req { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 4px; letter-spacing: 0; text-transform: none; }
.signoff { font-family: var(--font-heading); font-style: italic; color: var(--brown); }
main > section:last-child:not(.band) { padding-bottom: 88px; }
