/* ==========================================================================
   Tumsifu SACCO — shared stylesheet
   One file for every page. Sections:
   1. Tokens  2. Base  3. Layout  4. Header & nav  5. Buttons
   6. Heroes  7. Sections & type  8. Cards & components
   9. Forms & calculator  10. Footer  11. Responsive
   ========================================================================== */

/* Self-hosted fonts (no Google Fonts request: faster, and no visitor data sent to third parties) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Argentum Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/argentum-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Argentum Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/argentum-sans-latin-600-normal.woff2") format("woff2"); }

/* 1. Tokens -------------------------------------------------------------- */
:root {
  /* Brand colours, taken from the Tumsifu SACCO logo */
  --primary: #124A96;        /* royal blue: "TUMSIFU" */
  --primary-deep: #0B2F63;   /* deep navy: top bar, footer, dark bands */
  --primary-mid: #1C5BB0;    /* mid blue: borders and fills on dark bands */
  --gold: #FFD21C;           /* flame yellow: key buttons */
  --gold-hover: #F2C200;
  --accent: #22ABE3;         /* sky blue: "SACCO", cross and Bible */
  --accent-light: #8AD3F2;   /* sky blue for small text on dark blue */
  --flame-red: #E81F26;
  --blue: #22ABE3;
  --tint: #EEF6FC;
  --tint-strong: #DCEAF8;     /* richer blue for section bands and panels */
  --shadow: 0 1px 2px rgba(11, 47, 99, .06), 0 10px 28px rgba(11, 47, 99, .08);
  --line: #D6E6F5;
  --line-soft: #E8F1FA;
  --field: #B5CDE8;
  --ink: #141C2B;
  --ink-2: #2E3A4D;
  --muted: #4A5668;
  --on-primary: #D3E3F7;
  --white: #FFFFFF;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-script: "Argentum Sans", "Nunito Sans", sans-serif;   /* the "Tunawiri pamoja" slogan */

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --pill: 999px;
  --container: 1200px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-deep); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; color: var(--primary-deep); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.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: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--primary-deep); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 3. Layout -------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--tint { background: var(--tint-strong); }
.section--primary { background: var(--primary); color: var(--white); }
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr));
}
.grid--200 { --min: 200px; } .grid--220 { --min: 220px; } .grid--240 { --min: 240px; }
.grid--250 { --min: 250px; } .grid--280 { --min: 280px; } .grid--300 { --min: 300px; }
.grid--320 { --min: 320px; } .grid--340 { --min: 340px; }
.gap-sm { gap: 14px; } .gap-md { gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split--top { align-items: flex-start; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split > .split__narrow { flex-basis: 360px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.row--between { justify-content: space-between; }
.mt-sm { margin-top: 24px; } .mt-md { margin-top: 32px; }

/* 4. Header & nav -------------------------------------------------------- */
.topbar { background: var(--primary-deep); color: var(--on-primary); font-size: 14px; }
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px;
}
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 20px; }
.topbar a { color: var(--on-primary); text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 16px 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--primary); }
.brand__tag { font-family: var(--font-script); font-size: 15px; color: var(--muted); }

.nav { flex: 1 1 auto; }
.nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 6px 18px; justify-content: center; }
.nav li { white-space: nowrap; }
.nav a {
  display: inline-block; padding: 6px 0; font-weight: 600; font-size: 15px;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }
.header-actions { display: flex; flex-wrap: nowrap; gap: 10px; flex: none; }
.brand { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  border: 2px solid var(--primary); border-radius: var(--radius-sm);
  background: var(--white); color: var(--primary); cursor: pointer;
  align-items: center; justify-content: center;
}

/* 5. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--pill);
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.btn--lg { font-size: 17px; padding: 13px 28px; }
.btn--gold { background: var(--gold); color: var(--primary-deep); }
.btn--gold:hover { background: var(--gold-hover); color: var(--primary-deep); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-deep); color: var(--white); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--outline-light { border-color: var(--accent); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--primary-deep); color: var(--white); }

/* 6. Heroes -------------------------------------------------------------- */
.hero { background: var(--primary); color: var(--white); }
.hero .container { padding-top: 80px; padding-bottom: 80px; }
.hero__kicker { font-family: var(--font-script); font-weight: 500; font-size: 22px; letter-spacing: .2px; color: var(--accent-light); margin-bottom: 12px; }
.hero h1 { color: var(--white); font-size: clamp(38px, 6vw, 56px); line-height: 1.1; margin-bottom: 20px; }
.hero__lead { font-size: 19px; color: var(--on-primary); max-width: 520px; margin-bottom: 32px; }
.hero__media { display: flex; flex-direction: column; gap: 16px; }

.page-hero { background: var(--primary); color: var(--white); }
.page-hero .container { padding-top: 56px; padding-bottom: 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 50px); line-height: 1.1; margin-bottom: 14px; }
.page-hero__lead { font-size: 19px; color: var(--on-primary); max-width: 640px; }
.breadcrumb { font-size: 14px; color: var(--on-primary); margin-bottom: 16px; }
.breadcrumb a { color: var(--on-primary); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--accent); border-radius: var(--pill);
  font-weight: 700; font-size: 14px; color: var(--white); text-decoration: none;
}
.chip:hover { background: var(--primary-deep); color: var(--white); }

/* 7. Sections & type ----------------------------------------------------- */
.eyebrow {
  font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.section-title { font-size: clamp(30px, 4vw, 38px); margin-bottom: 40px; }
.section-title--sm { font-size: 32px; margin-bottom: 28px; }
.section-title + .lead { margin-top: -28px; }
.lead { color: var(--muted); max-width: 680px; margin-bottom: 40px; }
.prose p { color: var(--ink-2); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head .section-title { margin-bottom: 0; }
.section-head__link { font-weight: 700; }
.script { font-family: var(--font-script); font-size: 20px; color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.note { font-size: 15px; color: var(--muted); margin-top: 24px; }

/* 8. Cards & components -------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.section--tint .card { border-color: transparent; }
.card--lg { border-radius: var(--radius-lg); padding: 32px; }
.card--tint { background: var(--tint-strong); border-color: transparent; box-shadow: none; }
.section--tint .card--tint, .section--tint .callout { background: var(--white); }
.card--featured { border: 2px solid var(--primary); }
.card--dark { background: var(--primary-deep); border-color: transparent; color: var(--white); }
.card.card--dark h3 { color: var(--white); }
.card.card--dark p { color: var(--on-primary); }
.card.card--dark .accent-line { color: var(--gold); }
.card--primary { background: var(--primary); border-color: transparent; color: var(--white); }
.card--stack { display: flex; flex-direction: column; gap: 12px; }
.card--stack .grow { flex: 1; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card--stack h3 { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 16px; }
.card-title-lg { font-size: 22px !important; }
.card-title-xl { font-size: 24px !important; }

.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--tint); border: 2px solid var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon-circle--sm { width: 48px; height: 48px; margin-bottom: 12px; }
.icon-square {
  width: 48px; height: 48px; flex: none; border-radius: var(--radius-sm);
  background: var(--tint); color: var(--primary); display: flex; align-items: center; justify-content: center;
}

.badge {
  display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700;
  border-radius: var(--pill); padding: 4px 12px; margin-bottom: 14px;
}
.card--stack .badge, .badge--inline { margin-bottom: 0; }
.badge--accent { background: var(--accent); color: var(--primary-deep); }
.badge--gold { background: var(--gold); color: var(--primary-deep); }
.badge--amber { background: #FFF1C4; color: #7A4A00; }
.badge--blue { background: #E3EFFA; color: #1D4F7A; }

.placeholder {
  border-radius: var(--radius-xl); background: var(--tint); border: 2px dashed var(--accent);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: var(--muted); font-size: 16px; min-height: 220px;
}
.placeholder--dark { background: var(--primary-mid); color: var(--on-primary); }
.placeholder--hero { min-height: 340px; }
.placeholder--tall { min-height: 360px; }
.placeholder--sm { min-height: 200px; border-radius: 14px; font-size: 15px; }
.photo { border-radius: var(--radius-xl); width: 100%; height: 100%; object-fit: cover; }
/* A placeholder slot holding an illustration or photo: the image fills the slot. */
.placeholder--filled { position: relative; overflow: hidden; border: 0; padding: 0; background: var(--tint); }
.placeholder--filled > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.highlight {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 18px 22px; display: flex; gap: 16px; align-items: center;
}
.highlight .icon-circle { width: 48px; height: 48px; margin: 0; }
.highlight__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--primary); }
.highlight__text { font-size: 15px; color: var(--muted); }

.highlight--link { text-decoration: none; transition: transform .15s; }
.highlight--link:hover { transform: translateY(-2px); }
.highlight__arrow { margin-left: auto; font-size: 22px; font-weight: 700; color: var(--primary); }
.icon-circle--gold { background: var(--gold); border-color: var(--gold); color: var(--primary-deep); }

.mobile-feature { background: var(--primary-deep); color: var(--white); }
.mobile-feature .container { padding-top: 88px; padding-bottom: 88px; }
.placeholder--mobile { min-height: 420px; }
.mobile-feature__title { color: var(--white); font-size: clamp(32px, 4.5vw, 44px); margin: 6px 0 14px; }
.mobile-feature__lead { color: var(--on-primary); font-size: 19px; max-width: 520px; margin-bottom: 28px; }
.mobile-feature__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.mobile-feature__facts div { background: var(--primary); border-radius: var(--radius-sm); padding: 14px 16px; }
.mobile-feature__facts dt { font-size: 13px; color: var(--on-primary); }
.mobile-feature__facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--gold); }
.mobile-feature__steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.mobile-feature__steps li { display: flex; gap: 14px; align-items: center; color: var(--white); }
.mobile-feature__steps span {
  width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 15px;
}

.notice { display: flex; gap: 16px; align-items: flex-start; background: var(--tint); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin: -12px 0 32px; }
.notice .icon-circle { margin: 0; }
.notice p { color: var(--ink-2); }
.card--feature { border: 3px solid var(--gold) !important; }

.callout { background: var(--tint-strong); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.callout__big { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--primary); white-space: nowrap; }

.facts { display: flex; flex-direction: column; }
.facts__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { color: var(--muted); }
.facts__row dd { margin: 0; font-weight: 700; text-align: right; }
.facts-title { font-size: 20px !important; color: var(--primary) !important; margin-bottom: 16px !important; }

.mini-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-facts div { background: var(--tint); border-radius: var(--radius-sm); padding: 12px 14px; }
.mini-facts dt { font-size: 13px; color: var(--muted); }
.mini-facts dd { margin: 0; font-weight: 700; color: var(--primary); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--primary); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--white); }
.stat__label { font-size: 15px; color: var(--on-primary); margin-top: 4px; }

.statement { border-radius: var(--radius-lg); padding: 32px; }
.statement__label { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.statement__text { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.35; }
.statement--primary { background: var(--primary); color: var(--white); }
.statement--primary .statement__label { color: var(--gold); }
.statement--light { background: var(--white); border: 1px solid var(--line); }
.statement--light .statement__label { color: var(--primary); }
.statement--light .statement__text { color: var(--primary-deep); }

.person { text-align: center; }
.person__photo {
  width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--tint); border: 3px solid var(--accent); color: var(--muted); font-size: 13px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--primary-deep); }
.person__role { font-size: 15px; color: var(--muted); margin-top: 2px; }
.roster { list-style: none; display: flex; flex-direction: column; }
.roster li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.roster li:last-child { border-bottom: 0; }
.roster span:last-child { color: var(--muted); }
.subhead { font-size: 22px; font-weight: 600; color: var(--primary); margin-bottom: 20px; }

.steps { list-style: none; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 16px;
}
.step-num--gold { background: var(--gold); color: var(--primary-deep); }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .tick {
  width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
}

.fees { background: var(--primary); color: var(--white); border-radius: var(--radius-xl); padding: 36px; align-self: flex-start; }
.fees h3 { color: var(--white); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.fees__intro { color: var(--on-primary); font-size: 16px; margin-bottom: 24px; }
.fees .facts__row { border-bottom-color: var(--primary-mid); padding: 14px 0; }
.fees .facts__row dt { color: var(--white); }
.fees .facts__row dd { color: var(--gold); }
.fees__note { margin-top: 20px; font-size: 14px; color: var(--on-primary); }

.faq { max-width: 880px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--primary-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 16px; }

.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.table-wrap thead tr { background: var(--primary); color: var(--white); text-align: left; }
.table-wrap th, .table-wrap td { padding: 14px 20px; }
.table-wrap thead th { padding: 16px 20px; }
.table-wrap tbody tr { border-bottom: 1px solid var(--line-soft); }
.table-wrap tbody tr:last-child { border-bottom: 0; }
.table-wrap tbody th { text-align: left; color: var(--muted); font-weight: 600; }

.ordered { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.accent-line { font-size: 14px; font-weight: 700; color: var(--primary); }
.card--dark .accent-line { color: var(--gold); }

.feature-story { display: flex; flex-wrap: wrap; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); }
.feature-story > * { flex: 1 1 440px; }
.feature-story .placeholder { border-radius: 0; border: 0; min-height: 320px; }
.feature-story__body { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-story__body h2 { font-size: 34px; }

.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post .placeholder { border-radius: 0; border: 0; min-height: 180px; }
.post__body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post__body h3 { margin-bottom: 0; }
.post__body p.grow { flex: 1; font-size: 15px; }
.post__meta { font-size: 14px; font-weight: 700; color: var(--primary) !important; }
.post[hidden] { display: none; }
.post { position: relative; scroll-margin-top: 110px; }
.post__link { color: inherit; text-decoration: none; }
.post__link::after { content: ""; position: absolute; inset: 0; }
.post:hover .post__link, .post__link:focus-visible { color: var(--primary); text-decoration: underline; }
.post__more { font-weight: 700; color: var(--primary); }
.post__body .post__more { position: relative; z-index: 1; }
.code-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 15px; }
.code-list dt { font-weight: 800; color: var(--primary); font-family: var(--font-head); }
.code-list dd { margin: 0; }
.map-embed { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 320px; background: var(--tint); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: inherit; font-weight: 700; font-size: 14px; min-height: 40px; padding: 8px 16px;
  border-radius: var(--pill); border: 1px solid var(--field); background: var(--white); color: var(--primary); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }

.events { display: flex; flex-direction: column; gap: 14px; }
.event { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.event__date { width: 76px; flex: none; text-align: center; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); padding: 8px 0; }
.event__month { font-size: 13px; font-weight: 700; color: var(--accent-light); }
.event__day { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.1; }
.event__day--word { font-size: 20px; line-height: 1.4; }
.event__info { flex: 1 1 300px; }
.event__info h3 { font-size: 19px; font-weight: 600; }
.event__info p { font-size: 15px; color: var(--muted); }

.downloads { list-style: none; display: flex; flex-direction: column; }
.downloads a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink);
}
.downloads__item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.downloads__item .downloads__type { color: var(--muted); font-weight: 600; }
.downloads li:last-child a, .downloads li:last-child .downloads__item { border-bottom: 0; }
.downloads a:hover span:first-child { color: var(--primary); text-decoration: underline; }
.downloads__type { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.doc-link { display: flex; gap: 16px; align-items: center; text-decoration: none; }
.doc-link__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--primary-deep); }
.doc-link__meta { display: block; font-size: 14px; color: var(--muted); }

.cta-band .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.cta-band__text { flex: 1 1 480px; }
.cta-band h2 { color: var(--white); font-size: 32px; margin-bottom: 8px; }
.cta-band p { color: var(--on-primary); }
.cta-band--light { background: var(--tint-strong); }
.cta-band--light h2 { color: var(--primary-deep); font-size: 26px; margin-bottom: 6px; }
.cta-band--light p { color: var(--muted); }
.cta-band--light .container { padding-top: 56px; padding-bottom: 56px; }

.contact-list { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.contact-card__title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }

.stats-band { background: var(--tint-strong); color: var(--ink); border-bottom: 1px solid var(--line); }
.stats-band__grid {
  margin: 0; padding: 28px 0; display: grid; gap: 16px 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}
.stats-band__grid div { border-left: 3px solid var(--accent); padding-left: 16px; }
.stats-band__grid dt { font-size: 14px; color: var(--ink-2); }
.stats-band__grid dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--primary); }

.card .fee-amount { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--primary) !important; margin-bottom: 4px; }

.motto { text-align: center; }
.card .motto__text { font-family: var(--font-script); font-weight: 600; font-size: 40px; line-height: 1.2; color: var(--primary); margin: 4px 0; }

.bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.bullets li { padding-left: 22px; position: relative; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.card--dark .bullets li { color: var(--on-primary); }
.card--dark .bullets strong { color: var(--white); }
.bullets strong { color: var(--primary-deep); }

/* 9. Forms & calculator -------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form--panel { background: var(--tint-strong); border-radius: var(--radius-xl); padding: 36px; }
.form h2 { font-size: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; color: var(--primary-deep); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 17px; color: var(--ink);
  padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--field); border-radius: var(--radius-sm); background: var(--white);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 171, 227, .4); }
.field--error input, .field--error textarea { border-color: #B3261E; }
.field__error { font-size: 14px; font-weight: 600; color: #B3261E; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.form__status { font-weight: 700; border-radius: var(--radius-sm); padding: 12px 14px; }
.form__status--ok { background: var(--tint); color: var(--primary-deep); border: 1px solid var(--accent); }
.form__status--error { background: #FCEBEB; color: #8A1F1A; }

.calc { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.calc > * { flex: 1 1 380px; min-width: 0; }
.calc__inputs { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.calc__inputs input[type="number"] { font-weight: 600; font-size: 18px; }
.calc__inputs input[type="range"] { width: 100%; accent-color: var(--primary); min-height: 32px; padding: 0; border: 0; }
.calc__results { background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.calc__label { font-size: 15px; color: var(--on-primary); }
.calc__big { font-family: var(--font-head); font-weight: 700; font-size: 36px; color: var(--white); }
.calc__big--gold { color: var(--gold); }
.calc__sub { font-size: 14px; color: var(--on-primary); }
.calc__divider { border-top: 1px solid var(--primary-mid); padding-top: 18px; }
.calc__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc__pair div { background: var(--primary-deep); border-radius: var(--radius-sm); padding: 12px 14px; }
.calc__pair dt { font-size: 13px; color: var(--on-primary); }
.calc__pair dd { margin: 0; font-weight: 700; }
.calc__warning { background: #FFF1C4; color: #7A4A00; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-weight: 600; }
.calc__note { font-size: 13px; color: var(--on-primary); }

/* 10. Footer ------------------------------------------------------------- */
.site-footer { background: var(--primary-deep); color: var(--on-primary); font-size: 15px; }
.site-footer a { color: var(--on-primary); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); text-decoration: underline; }
.footer-grid { padding-top: 56px; padding-bottom: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-size: 16px; font-weight: 600; color: var(--white); }
.footer-brand img { width: 230px; height: auto; }

.footer-bottom {
  border-top: 1px solid var(--primary-mid); padding-top: 18px; padding-bottom: 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 24px; font-size: 14px;
}
.footer-bottom__credit { text-align: center; white-space: nowrap; }
.footer-bottom__credit a { color: var(--gold); font-weight: 700; text-decoration: none; }
.footer-bottom__credit a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom ul { list-style: none; display: flex; gap: 20px; justify-content: flex-end; }

/* 11. Responsive --------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .site-header .container { flex-wrap: wrap; }
  .nav, .header-actions { display: none; flex-basis: 100%; }
  .site-header.is-open .nav, .site-header.is-open .header-actions { display: flex; }
  .nav ul { flex-direction: column; flex-wrap: wrap; gap: 0; width: 100%; }
  .nav a { display: block; padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .header-actions { padding-bottom: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .topbar__hours { display: none; }
  .brand img { height: 42px; width: auto; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .card, .card--lg, .fees, .form--panel, .calc__inputs, .calc__results { padding: 22px; }
  .feature-story__body { padding: 26px; }
  .calc__big { font-size: 30px; }
  .stats, .mini-facts { gap: 10px; }
  .stat { padding: 18px; }
  .stat__value { font-size: 24px; overflow-wrap: anywhere; }
  .header-actions .btn { flex: 1 1 auto; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom ul { justify-content: center; }
  .footer-bottom__credit { order: 3; }
  .mobile-feature .container { padding-top: 64px; padding-bottom: 64px; }
  .mobile-feature__facts dd { font-size: 17px; }
  .placeholder--mobile { min-height: 300px; }
}

/* Guiding verse (Deuteronomy 8:18): home page band and About page card */
.verse-band { background: var(--primary); color: var(--white); }
.verse-band .container { padding-top: 64px; padding-bottom: 64px; }
.verse { margin: 0 auto; max-width: 820px; text-align: center; }
.verse__mark { display: block; height: 40px; font-family: var(--font-head); font-weight: 800; font-size: 80px; line-height: 1; color: var(--gold); }
.verse blockquote { margin: 0; }
.verse blockquote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; color: var(--white); }
.verse figcaption { margin-top: 18px; font-weight: 700; font-size: 16px; color: var(--gold); letter-spacing: .3px; }
.verse figcaption span { color: var(--on-primary); font-weight: 600; }
.card.verse-card { background: var(--primary); border-color: transparent; padding-top: 40px; padding-bottom: 40px; }
