/* Open Source USA. Loads after css/bootstrap.min.css (5.3.8); overrides only. */
@font-face { font-family: "Google Sans"; src: url("../fonts/google-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("../fonts/google-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("../fonts/google-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #035ba5; --blue-dark: #023f73; --red: #d22c2c;
  --ground: #eaf1f8; --tint: #f4f7fb;
  --radius: 0.375rem;
  --sidebar-w: 20rem;
  --display: "Google Sans", system-ui, sans-serif;
  --bs-body-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: #10202f; --bs-body-color-rgb: 16, 32, 47;
  --bs-heading-color: #0b1724;
  --bs-body-bg: var(--ground);
  --bs-secondary-color: #4f5d6b; --bs-secondary-color-rgb: 79, 93, 107;
  --bs-primary: #035ba5; --bs-primary-rgb: 3, 91, 165;
  --bs-link-color: #035ba5; --bs-link-color-rgb: 3, 91, 165;
  --bs-link-hover-color: #023f73; --bs-link-hover-color-rgb: 2, 63, 115;
  --bs-border-radius: 0.25rem; --bs-border-radius-lg: var(--radius); --bs-border-radius-sm: 0.25rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn:focus-visible, .btn-close:focus-visible { /* taste-skill-ignore: removes Bootstrap focus shadow */ box-shadow: none; outline: 3px solid var(--blue); outline-offset: 3px; }
.sidebar :focus-visible { outline-color: #ffffff; }
.sidebar .btn-primary { --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #000; --bs-btn-hover-border-color: #fff; }
#main:focus { outline: none; }

a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

/* buttons: flat, small radius, with a small lift on hover */
.btn { --bs-btn-padding-y: 0.7rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-weight: 700; --bs-btn-font-size: 0.9375rem; --bs-btn-border-radius: 0.125rem; --bs-btn-box-shadow: none; letter-spacing: 0.01em; text-decoration: none; } /* taste-skill-ignore: removes Bootstrap shadow */
.btn-lg { --bs-btn-padding-y: 0.85rem; --bs-btn-padding-x: 1.75rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 0.125rem; }
.btn-sm { --bs-btn-padding-y: 0.4rem; --bs-btn-padding-x: 1.1rem; --bs-btn-font-size: 0.875rem; --bs-btn-border-radius: 0.125rem; }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: #000; --bs-btn-border-color: #000;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #2a2f36; --bs-btn-hover-border-color: #2a2f36;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #3a414a; --bs-btn-active-border-color: #3a414a;
}
.btn-outline-primary {
  --bs-btn-color: #000; --bs-btn-border-color: #000; --bs-btn-border-width: 2px;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #2a2f36; --bs-btn-active-border-color: #2a2f36;
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
}

.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 2000; padding: 1rem 1.5rem; background: #000; color: #fff; font-weight: 700; border-radius: 0.375rem; }

/* phone top bar */
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; background: #fff; border-top: 5px solid var(--red); }

/* layout: brand sidebar + content (WordPress Foundation) */
.layout { display: block; }
@media (min-width: 62rem) {
  .layout { display: flex; align-items: flex-start; }
  .sidebar { position: sticky; top: 0; flex: 0 0 var(--sidebar-w); width: var(--sidebar-w); height: 100svh; overflow-y: auto; }
  .sidebar .sidebar-inner { min-height: 100svh; }
}
.sidebar { --bs-offcanvas-bg: var(--blue); --bs-offcanvas-color: #fff; --bs-offcanvas-width: 20rem; }
.sidebar .offcanvas-header { background: var(--blue); }
.sidebar-inner { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 1.75rem; background: var(--blue); color: #fff; }
@media (min-width: 62rem) { .sidebar-inner { border-top: 6px solid var(--red); } }
@media (max-width: 61.98rem) { .sidebar { border-top: 6px solid var(--red) !important; } }
.sidebar-logo { display: block; padding: 0.9rem 1.1rem; background: #fff; border-radius: var(--radius); }
.sidebar-logo img { display: block; width: 100%; height: auto; }
.sidebar-name { margin: 0.25rem 0 0; font-size: 1.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.sidebar-tagline { margin: -0.75rem 0 0; color: #cfe0f1; font-size: 0.9375rem; line-height: 1.45; }
.sidebar-nav { margin: 0.25rem 0; display: grid; gap: 0.2rem; }
.sidebar-nav .nav-link { position: relative; display: flex; align-items: center; padding: 0.6rem 0.9rem 0.6rem 1.1rem; margin-inline: -0.9rem; color: #e6eff8; font-weight: 500; font-size: 0.9375rem; text-decoration: none; border-radius: 0.25rem; }
.sidebar-nav .nav-link::before { content: ""; position: absolute; left: 0.35rem; top: 50%; width: 4px; height: 0; border-radius: 0; background: var(--red); transform: translateY(-50%); }
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.10); }
.sidebar-nav .nav-link.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.16); }
.sidebar-nav .nav-link.active::before { height: 1.25rem; }
@media (prefers-reduced-motion: no-preference) { .sidebar-nav .nav-link, .sidebar-nav .nav-link::before { transition: background-color .15s ease, color .15s ease, height .2s ease; } }
.sidebar-ein { margin: 0; padding: 0.9rem 1rem; color: #cfe0f1; font-size: 0.875rem; line-height: 1.5; background: rgba(0,0,0,.14); border-radius: 0.25rem; }

.content { flex: 1 1 auto; min-width: 0; padding: 1rem; }
@media (min-width: 48rem) { .content { padding: 1.5rem; } }
@media (min-width: 62rem) { .content { padding: 2rem 2.5rem; } }
.content > * { max-width: 72rem; margin-inline: auto; }
.content > section, .content > header { scroll-margin-top: 5rem; }
@media (min-width: 62rem) { .content > section, .content > header { scroll-margin-top: 1.5rem; } }

h1, h2, h3, .sidebar-name { font-family: var(--display); }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 0.4rem; }
p { max-width: 68ch; }

/* panels */
.panel, .profile { background: #fff; border-radius: var(--radius); margin-bottom: 1.5rem; }
.panel { padding: 1.75rem 1.25rem; }
@media (min-width: 48rem) { .panel { padding: 2.5rem; } }

/* profile header (Open Collective): photo cover with a curved lower edge, logo tile overlapping it */
.profile { overflow: hidden; }
.profile-cover { background: #fff; }
.profile-cover img { display: block; width: 100%; height: clamp(15rem, 34vw, 28rem); object-fit: cover; object-position: center 38%; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.profile-body { position: relative; padding: 0 1.25rem 2.25rem; }
@media (min-width: 48rem) { .profile-body { padding: 0 2.5rem 2.5rem; } }
.profile-logo { position: relative; width: min(15rem, 60%); margin-top: -4.5rem; margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: #fff; border-radius: var(--radius); border: 6px solid #fff; }
.profile-logo img { display: block; width: 100%; height: auto; }
.profile h1 { margin-bottom: 0.75rem; }
.profile-statement { font-size: 1.125rem; font-weight: 500; line-height: 1.4; font-weight: 600; color: #22313f; margin-bottom: 1.75rem; }

/* giving cards */
.give-card { height: 100%; display: flex; flex-direction: column; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.give-cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.give-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.75rem; }
.give-body p { flex: 1; }
.give-body .btn { align-self: flex-start; }
.give-check { margin: 2rem 0 0; }
.tax-note { max-width: 42rem; margin: 1.25rem 0 0; padding: 1.1rem 1.4rem; background: var(--blue); color: #fff; border-radius: 0.25rem; font-size: 0.9375rem; line-height: 1.6; }

/* about facts */
.about-text { font-size: 1.125rem; line-height: 1.65; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; padding: 1.5rem; background: var(--tint); border-radius: 0.25rem; }
.facts dt { font-weight: 500; font-size: 0.875rem; line-height: 1.4; color: #4f5d6b; }
.facts dd { margin: 0; font-weight: 700; }
@media (max-width: 29.98rem) { .facts { grid-template-columns: 1fr; } }

/* programs */
.program-card { height: 100%; padding: 1.5rem; background: var(--tint); border-radius: var(--radius); }
.program-card p:last-child { margin-bottom: 0; }

/* events */
.event-card { margin: 0; height: 100%; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.event-card img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.event-card figcaption { padding: 0.9rem 1.25rem 1.1rem; color: #4f5d6b; font-size: 0.9375rem; }
.event-year { display: block; color: #0b1724; font-family: var(--display); font-size: 1.125rem; font-weight: 700; }

/* board */
.board-photo { display: block; width: 8rem; height: 8rem; margin-bottom: 1rem; border-radius: var(--radius); object-fit: cover; background: var(--tint); outline: 4px solid var(--tint); }
.board-list .role { margin: 0; color: #4f5d6b; font-weight: 500; font-size: 0.9375rem; }

/* table */
.table { --bs-table-color: #10202f; --bs-table-striped-color: #10202f; --bs-table-striped-bg: var(--tint); --bs-table-bg: transparent; font-size: 0.9375rem; }
.table > :not(caption) > * > * { padding: 0.875rem 1rem; }
.table caption { caption-side: top; color: #0b1724; font-weight: 700; }
.table-responsive { border-radius: 0.25rem; }
.table-responsive table { min-width: 36rem; }

/* contact */
.contact-cols p, .contact-cols address { margin: 0; font-size: 1rem; font-style: normal; overflow-wrap: anywhere; }

/* footer */
.site-footer { padding: 1.5rem 0.25rem 2rem; color: #4f5d6b; font-size: 0.875rem; line-height: 1.5rem; }
.site-footer .disclaimer { max-width: 75ch; }

/* privacy modal */
.privacy-modal { --bs-modal-border-width: 0; --bs-modal-border-radius: var(--radius); }
.btn-close { --bs-btn-close-opacity: 1; --bs-btn-close-hover-opacity: 1; --bs-btn-close-focus-opacity: 1; --bs-btn-close-focus-shadow: none; }
.privacy-modal .modal-title { margin: 0; }
.privacy-modal:target:not(.show) { display: block; position: static; height: auto; overflow: visible; }
.privacy-modal:target:not(.show) .modal-dialog { width: auto; max-width: 72rem; height: auto; margin: 2rem auto; }
.privacy-modal:target:not(.show) .modal-content { max-height: none; overflow: visible; }
.privacy-modal:target:not(.show) .btn-close,
.privacy-modal:target:not(.show) .modal-footer { display: none; }
@media print {
  .sidebar, .topbar { display: none !important; }
  .privacy-modal { display: block !important; position: static; height: auto; }
  .privacy-modal .modal-dialog { width: auto; max-width: none; height: auto; margin: 2rem 0 0; }
  .privacy-modal .modal-content { max-height: none; overflow: visible; }
  .privacy-modal .btn-close, .privacy-modal .modal-footer, .modal-backdrop { display: none; }
}
@media (min-width: 62rem) { .profile-body { padding-top: 2rem; } }
