/* J. Okonkwo Foundation — site styles
   Palette sampled from the logo; see docs/SDD.md → Design system. */

:root {
  --brown: #996633;        /* logo wordmark — 4.9:1 on white */
  --brown-deep: #6b4423;   /* dark panels — white text 8.6:1 */
  --brown-ink: #4a2f18;
  --green: #4e9242;        /* leaf — large text / graphics only */
  --green-deep: #3b7132;   /* AA text on white */
  --lime: #9bc43c;         /* decorative only, dark text on top */
  --cream: #fbf7f0;
  --sand: #f3eadb;
  --ink: #1f1a14;
  --muted: #5a5046;
  --line: #e4d8c6;
  --white: #fff;
  --error: #a3261b;

  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(74 47 24 / .06), 0 8px 24px rgb(74 47 24 / .08);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brown-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--brown-deep); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brown-deep); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--brown-deep); color: var(--white); }
.btn-outline { border-color: var(--brown); color: var(--brown-deep); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-light { background: var(--white); color: var(--brown-deep); }
.btn-light:hover { background: var(--sand); color: var(--brown-ink); }
.btn-ghost-light { border-color: rgb(255 255 255 / .7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--brown-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: clamp(170px, 20vw, 210px); height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none;
}
.site-nav ul a:hover { background: var(--sand); color: var(--brown-ink); }
.site-nav ul a[aria-current="page"] { color: var(--brown-deep); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 8px 8px 0 0; }
.nav-cta { min-height: 44px; padding-block: .55em; }

/* Dropdown (Scholarships → Secondary / Tertiary). Desktop: opens on hover or
   with the toggle button; without JavaScript, on keyboard focus. Mobile: nested. */
.has-sub { position: relative; }
.nav-parent { display: flex; align-items: center; }
.site-nav .in-branch > .nav-parent > a:not([aria-current]) { color: var(--brown-deep); }
.sub-toggle {
  display: grid; place-items: center; width: 30px; height: 40px; margin-left: -6px; padding: 0;
  background: none; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer;
}
.sub-toggle::before {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 4px; }
.sub-toggle:hover { background: var(--sand); }
.site-nav .subnav {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 240px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
}
.site-nav .subnav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lime); border-radius: 0 8px 8px 0; }
.has-sub.is-open > .subnav, html:not(.js) .has-sub:focus-within > .subnav { display: flex; }
/* Open on hover only where the pointer really hovers: on touch screens a tap leaves a
   sticky :hover that would stop the toggle from closing the menu. */
@media (hover: hover) and (pointer: fine) { .has-sub:hover > .subnav { display: flex; } }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--line); color: var(--ink);
  font: 600 .95rem var(--font); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; box-shadow: var(--shadow);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1.05rem; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lime); border-radius: 0 8px 8px 0; }
  /* Sub-pages are always listed, indented under their parent. */
  .sub-toggle { display: none; }
  .site-nav .subnav, .has-sub:hover > .subnav {
    display: flex; position: static; min-width: 0; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 0 16px; margin-left: 12px; border-left: 2px solid var(--line);
  }
  .site-nav .subnav a { font-size: 1rem; padding-block: 10px; }
  /* Without JavaScript the menu simply wraps below the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }
.section-dark {
  color: var(--white);
  background:
    radial-gradient(1200px 400px at 110% -10%, rgb(155 196 60 / .16), transparent 60%),
    linear-gradient(160deg, var(--brown-deep), var(--brown-ink));
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--white); }
.section-dark .lead, .section-dark p { color: rgb(255 255 255 / .9); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--lime); border-radius: 2px; }
.section-dark .eyebrow { color: var(--lime); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  min-height: min(640px, calc(100vh - 76px)); padding-block: clamp(48px, 7vw, 88px);
}
.hero h1 { color: var(--brown-deep); }
.hero h1 .accent { color: var(--green-deep); }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; }
.hero-art .field {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime) 0 44%, var(--brown) 44% 62%, var(--green) 62% 100%);
}
.hero-art .ring { position: absolute; inset: -18px; border-radius: 50%; border: 2px solid var(--lime); }
.hero-art .ring.two { inset: -34px; border-color: var(--brown); opacity: .5; }
.hero-art .badge {
  position: absolute; inset: 18%; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.hero-art .badge img { width: 68%; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--cream);
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -40px; bottom: -40px; width: min(38vw, 420px);
  background: linear-gradient(115deg, transparent 0 30%, var(--brown) 30% 48%, var(--lime) 48% 100%);
  opacity: .9; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1, .page-hero .lead { max-width: min(720px, 62vw); }
.breadcrumb { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
@media (max-width: 720px) {
  .page-hero::after { width: 100%; top: auto; height: 10px; right: 0; bottom: 0; background: linear-gradient(90deg, var(--brown) 0 50%, var(--lime) 50%); }
  .page-hero h1, .page-hero .lead { max-width: none; }
}

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: .6em; font-weight: 600; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sand); color: var(--brown-deep); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-accent { border-top: 5px solid var(--lime); }
.card-muted { background: var(--cream); box-shadow: none; }

/* Brochure-style outlined box with rounded right side */
.goal-box {
  border: 2px solid var(--brown); border-left: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 48px);
  margin-left: calc(var(--gutter) * -1);
  padding-left: calc(var(--gutter) + clamp(8px, 2vw, 24px));
}
.goal-box h2, .goal-box h3 { color: var(--green-deep); }

/* ---------- Stats ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 8px clamp(12px, 2vw, 28px); border-left: 3px solid var(--lime); }
.stat-value { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.05; color: var(--white); }
.stat-label { display: block; margin-top: 8px; color: rgb(255 255 255 / .85); font-size: .98rem; }
.stats.on-light .stat-value { color: var(--brown-deep); }
.stats.on-light .stat-label { color: var(--muted); }

/* ---------- Lists ---------- */
.leaf-list { list-style: none; padding: 0; margin: 0; }
.leaf-list li { position: relative; padding-left: 34px; margin-bottom: .8em; }
.leaf-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px;
  background: var(--green);
  -webkit-mask: url("../img/leaf.svg") center / contain no-repeat; mask: url("../img/leaf.svg") center / contain no-repeat;
}
.section-dark .leaf-list li::before { background: var(--lime); }

.values { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.values li {
  padding: 10px 20px; border-radius: 999px; background: var(--white); border: 2px solid var(--lime);
  font-weight: 800; color: var(--brown-deep);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li {
  counter-increment: step; position: relative; padding: 20px 22px 20px 78px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brown); color: var(--white); font-weight: 800; font-size: 1.15rem;
}
.steps h3 { font-size: 1.12rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 16px; height: 9px;
  border-left: 3px solid var(--green-deep); border-bottom: 3px solid var(--green-deep); transform: rotate(-45deg);
}

/* ---------- Notice / callouts ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--sand); border-left: 5px solid var(--brown); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
}
.notice p { margin: 0; }
.notice strong { color: var(--brown-deep); }
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 44px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--brown); border-bottom: 3px solid var(--brown); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--brown-deep); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: .92rem; color: var(--muted); margin-top: -2px; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #b9a88f; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brown); outline: 3px solid rgb(153 102 51 / .25); outline-offset: 0; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-weight: 600; font-size: .95rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--brown); flex: none; }
.check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #e8f3e3; border: 2px solid var(--green); color: #24481e; }
.alert-error { background: #fbeae8; border: 2px solid var(--error); color: #6e1a12; }
.alert ul { margin: 8px 0 0; font-weight: 400; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { flex: none; width: 24px; height: 24px; color: var(--brown); margin-top: 3px; }
.contact-list strong { display: block; }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3b332b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-ink); color: rgb(255 255 255 / .86); padding-top: clamp(48px, 6vw, 72px); font-size: .98rem; }
.site-footer a { color: var(--white); text-decoration-color: rgb(255 255 255 / .4); }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: 210px; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; }
.footer-heading { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 12px 0 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { display: inline-block; padding-block: 2px; }
.footer-social { display: flex; gap: 16px; list-style: none; padding: 0; margin: 16px 0 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid rgb(255 255 255 / .16); padding-block: 20px; font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .footer-credit { margin-top: 4px; font-size: .85rem; color: rgb(255 255 255 / .7); }
.footer-credit a { color: rgb(255 255 255 / .9); text-decoration-color: rgb(255 255 255 / .35); text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--lime); text-decoration-color: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { max-width: 300px; order: -1; margin-top: 8px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Three cards in two columns: the third spans the row instead of sitting alone. */
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps > li { padding: 70px 18px 18px; }
  .steps > li::before { top: 16px; left: 18px; }
}

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

@media print {
  .site-header, .site-footer, .skip-link, .btn { display: none !important; }
  .page-hero::after { display: none; }
  body { font-size: 11pt; }
}

/* ---------- Additions: headings as h3 style, downloads, email ---------- */
.h3 { font-size: 1.3rem; }
.hint { font-size: .92rem; color: var(--muted); }
.notice svg { flex: none; width: 24px; height: 24px; color: var(--brown); margin-top: 2px; }
.notice-open { border-left-color: var(--green); background: #eaf3e2; }
.notice-open svg { color: var(--green-deep); }
.notice-warning { border-left-color: var(--brown-deep); background: var(--cream); border: 2px solid var(--brown); border-left-width: 6px; }
.section-head + .notice, .notice-block { margin-block: 28px 0; }

/* Footer disclaimer line */
.footer-disclaimer { border-top: 1px solid rgb(255 255 255 / .16); padding-block: 18px; font-size: .9rem; line-height: 1.55; }
.footer-disclaimer p { margin: 0; max-width: 110ch; color: rgb(255 255 255 / .86); overflow-wrap: anywhere; }
.footer-disclaimer .footer-fraud { white-space: nowrap; font-weight: 600; }
.footer-disclaimer strong { color: var(--lime); }

/* Scholarship level cards and category cards */
.level-card .stat-value { color: var(--brown-deep); font-size: clamp(2rem, 4vw, 2.6rem); }
.level-card .level-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: .6em; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 24px); }
/* 2 columns on tablets (a lone 7th card spans the row), 4 on desktop (4 + 3). */
@media (min-width: 601px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1041px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid > :last-child:nth-child(odd) { grid-column: auto; }
}
.category-grid .card { padding: clamp(20px, 2.4vw, 26px); }
.category-grid h3 { font-size: 1.15rem; }
.category-grid .leaf-list li { margin-bottom: .45em; }
.rule-list { margin: 0; padding-left: 1.2em; }
.rule-list li + li { margin-top: .5em; }
.card .note { font-size: .95rem; color: var(--muted); margin-top: 1em; }
.impact-cards { margin-top: clamp(32px, 4vw, 48px); }
.notice + * { margin-top: 28px; }

.download-panel { margin-bottom: 36px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download {
  display: flex; align-items: center; gap: 16px; min-height: 76px;
  padding: 16px 20px; border-radius: var(--radius); text-decoration: none;
  background: var(--white); border: 2px solid var(--brown); color: var(--brown-deep);
  transition: background-color .15s, color .15s;
}
.download svg { flex: none; width: 30px; height: 30px; }
.download:hover { background: var(--brown); color: var(--white); }
.download-primary { background: var(--brown); color: var(--white); }
.download-primary:hover { background: var(--brown-deep); color: var(--white); }
.download-text { display: flex; flex-direction: column; }
.download-label { font-weight: 800; font-size: 1.1rem; }
.download-meta { font-size: .92rem; opacity: .92; }
.badge-rec { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .8rem; letter-spacing: .02em; }

.apply-grid { align-items: start; }
.email-card .btn { margin-block: 8px 4px; }
.btn svg, .btn-row .js-email svg { width: 20px; height: 20px; flex: none; }
.btn-block { display: flex; width: 100%; }
.subject-format {
  padding: 14px 16px; border-radius: 10px; background: var(--cream); border: 1px dashed var(--brown);
  font-weight: 600; color: var(--brown-ink); overflow-wrap: anywhere;
}
.email-big { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 800; overflow-wrap: anywhere; }
/* Phone numbers never break between digit groups. */
.tel { white-space: nowrap; }
.apply-phone { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.apply-phone svg { flex: none; width: 20px; height: 20px; color: var(--brown); margin-top: 3px; }
.js-email { overflow-wrap: anywhere; }
.bank-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 1em; }
.bank-details dt { font-weight: 600; }
.bank-details dd { margin: 0; }

@media (max-width: 600px) {
  .download-grid { grid-template-columns: 1fr; }
}
.faq-group h3 { margin-top: 8px; }
.faq-more { margin-top: 28px; font-weight: 600; }

/* ---------- Demo / preview banner ---------- */
.demo-banner {
  background: repeating-linear-gradient(135deg, #1f1a14 0 14px, #2b241c 14px 28px);
  color: #fff; text-align: center; font-size: .92rem; line-height: 1.4;
  padding: 8px var(--gutter);
}
.demo-banner strong { color: var(--lime); letter-spacing: .08em; margin-right: 6px; }
