/* Shared CharityPortal palette, typography and navigation. */
:root {
  color-scheme: light;
  --ink: #19392e;
  --muted: #546b61;
  --green: #175c46;
  --green-hover: #0e4735;
  --lime: #d8f36a;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --soft: #f0f4ea;
  --line: #dce6dc;
  --focus: #176bac;
  --radius: 14px;
  --shadow: 0 14px 36px -18px #29442d33;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:where(.portal-page, .marketing-page), :where(.portal-page, .marketing-page) * { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.portal-page, body.marketing-page { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a, summary, button { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; background: white; color: var(--ink); padding: 12px 18px; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 750; letter-spacing: -.9px; flex-shrink: 0; line-height: 1.3; }
.brand:hover { color: var(--green); }
.brand img { display: block; }
.brand-light { font-weight: 450; }
.section-links, .nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-actions form { margin: 0; }
.section-links a, .text-link { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; }
.section-links a:hover, .text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.text-link[aria-current="page"] { background: #eaf2e6; color: var(--green); }
:where(.portal-page, .marketing-page) .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 23px; min-height: 52px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; line-height: 1.4; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
:where(.portal-page, .marketing-page) .button:hover { transform: translateY(-2px); }
:where(.portal-page, .marketing-page) .button-small { padding: 11px 17px; min-height: 44px; font-size: 13px; }
:where(.portal-page, .marketing-page) .button-dark { background: var(--ink); color: white; }
:where(.portal-page, .marketing-page) .button-green { background: var(--green); color: white; box-shadow: 0 5px 9px #175c4614; }
:where(.portal-page, .marketing-page) .button-green:hover, :where(.portal-page, .marketing-page) .button-dark:hover { background: var(--green-hover); color: white; }
:where(.portal-page, .marketing-page) .button-lime { background: var(--lime); color: var(--ink); }
:where(.portal-page, .marketing-page) .button-lime:hover { background: #e5fc95; }
.footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 26px 36px; }
.footer .brand { font-size: 18px; letter-spacing: -.7px; gap: 8px; }
.footer .brand img { width: 30px; height: 30px; }
.footer p { font-size: 12px; color: var(--muted); margin: 0; }
.footer > div { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 12px; flex-wrap: wrap; }
.footer > div a { color: var(--ink); text-decoration: none; }
.footer > div a:hover { text-decoration: underline; }
.footer > div span { color: var(--muted); }
@media (max-width: 1100px) { .wrap { width: calc(100% - 48px); } .navigation { gap: 16px; } .section-links { gap: 16px; } }
@media (max-width: 900px) { .section-links { display: none; } .navigation { flex-wrap: wrap; padding-block: 18px; } .nav-actions { gap: 6px; } }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .navigation { min-height: 78px; gap: 12px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav-actions { width: 100%; justify-content: flex-start; }
  .text-link { font-size: 13px; padding-inline: 9px; }
  :where(.portal-page, .marketing-page) .button-small { padding: 10px 14px; gap: 8px; }
  .footer { gap: 14px; }
  .footer > div { margin-left: 0; width: 100%; gap: 16px; }
  .footer p { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :where(.portal-page, .marketing-page) .button { transition: none; }
  :where(.portal-page, .marketing-page) .button:hover { transform: none; }
}
