/* אהבת חסד - the site's one stylesheet.
   The layout follows the old site (thin top bar, round logo in the middle of the menu, gold buttons,
   gold band, grey numbers band, coloured footer). The old maroon is now the navy of the new logo. */

@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/heebo-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/heebo-latin.woff2) 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 {
  --brand: #29275f;
  --brand-dark: #1c1a45;
  --gold: #8f6b2d;
  --gold-dark: #765723;
  --accent: #e6b711;
  --text: #2b2b33;
  --muted: #5d5d69;
  --line: #e3e2ea;
  --band: #e6e5ec;
  --cream: #f5f0e7;
  --cream-line: #e8dfcf;
  --field: #f3f3f6;
  --error: #b3261e;
  --ok: #1e7b34;
  --shadow: 0 2px 10px rgba(20, 20, 50, .08);
  --container: 1180px;
  --a11y-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(100% * var(--a11y-scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Heebo, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 40px); }

.sr-only, .hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 300;
  background: var(--brand);
  color: #fff;
  padding: .6em 1.2em;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .55em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.125rem; padding: .7em 2.2em; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { height: 8px; background: var(--brand); }
.main-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--brand);
  cursor: pointer;
}
.nav-toggle .icon { width: 30px; height: 30px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav-start { grid-column: 1; justify-content: flex-start; }
.nav-end { grid-column: 3; justify-content: flex-end; }
.nav-list > li > a:not(.btn) {
  display: inline-block;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-list > li > a:not(.btn):hover { color: var(--gold); }
.nav-list > li > a[aria-current="page"]:not(.btn), .has-sub.is-current > a {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--gold);
}
.btn-donate[aria-current="page"] { background: var(--gold-dark); }

.brand { grid-column: 2; align-self: start; margin-top: -8px; padding-inline: 2.25rem; }
.brand-logo { display: block; width: auto; height: 112px; }

.has-sub { position: relative; display: flex; align-items: center; gap: .1rem; }
.sub-toggle {
  display: inline-flex;
  padding: .3rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.sub-toggle .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: -1rem;
  z-index: 60;
  display: none;
  min-width: 230px;
  margin: 0;
  padding: .5rem 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--brand);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 28px rgba(20, 20, 50, .16);
}
.has-sub:hover .sub-menu, .has-sub.is-open .sub-menu { display: block; }
.sub-menu a { display: block; padding: .45rem 1.25rem; color: var(--text); text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--cream); color: var(--brand); }

.mobile-panel { grid-column: 1 / -1; padding: .25rem 0 1rem; border-top: 1px solid var(--line); }
.mobile-panel ul { margin: 0; padding: 0; list-style: none; }
.mobile-panel a {
  display: block;
  padding: .65rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-panel a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.mobile-sub a { padding-inline-start: 1.5rem; font-size: 1rem; font-weight: 400; }
.mobile-contact { margin: .75rem 0 0; }
.mobile-contact a { border: 0; color: var(--brand); font-weight: 700; }

/* ---------- banners ---------- */
.hero { position: relative; background: var(--brand); }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide a, .hero-slide img { display: block; width: 100%; }
.hero-slide img { height: auto; }
.hero-controls {
  position: absolute;
  bottom: 12px;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  pointer-events: none;
}
.hero-controls > * { pointer-events: auto; }
html:not(.js) .hero-controls { display: none; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.hero-btn .icon { width: 22px; height: 22px; }
.hero-pause .icon-play, .hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-dots {
  display: flex;
  align-items: center;
  height: 36px;
  padding-inline: .35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-dot::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}
.hero-dot[aria-current="true"]::before { background: var(--brand); }

/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
.section-title {
  position: relative;
  margin: 0 0 1.75rem;
  padding-bottom: .55rem;
  color: var(--brand);
  font-size: 1.75rem;
  font-weight: 700;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head .section-title { margin: 0; }
.more-link { display: inline-flex; align-items: center; gap: .2rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.more-link:hover { color: var(--gold); text-decoration: underline; }
.more-link .icon { width: 1.1em; height: 1.1em; }
.block-title { margin: 0 0 1rem; color: var(--brand); font-size: 1.375rem; font-weight: 700; }
.muted { color: var(--muted); font-size: .9375rem; }

/* ---------- department cards ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.dept-card { display: flex; flex-direction: column; }
.dept-card-main { display: block; flex: 1; color: inherit; text-decoration: none; }
.dept-card-media { position: relative; overflow: hidden; aspect-ratio: 271 / 224; border-radius: 4px; background: var(--band); }
.dept-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dept-card-main:hover .dept-card-media img { transform: scale(1.04); }
.dept-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem;
  background: rgba(41, 39, 95, .9);
  color: #fff;
  font-size: .9375rem;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  transition: opacity .25s;
}
.dept-card-main:hover .dept-card-hover, .dept-card-main:focus-visible .dept-card-hover { opacity: 1; }
.dept-card-excerpt { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.pill { display: inline-block; padding: .2em 1.1em; border: 1px solid #fff; border-radius: 999px; font-size: .875rem; font-weight: 600; }
.dept-card-text {
  display: block;
  margin-top: .65rem;
  padding: .7rem .5rem .75rem;
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--brand);
  text-align: center;
}
.dept-card-name { margin: 0; color: var(--brand); font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
.dept-card-main:hover .dept-card-name { color: var(--gold); }
.dept-card-sub { display: block; margin-top: .15rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.dept-card-give {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .35rem;
  padding: .35rem;
  border-radius: 4px;
  color: var(--gold);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.dept-card-give:hover { background: var(--cream); color: var(--gold-dark); }
.dept-card-give .icon { width: 1em; height: 1em; }

/* ---------- department logos ---------- */
.logos-band { padding: 2.25rem 0; border-block: 1px solid var(--line); }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.logo-row li { flex: 0 1 132px; min-width: 0; }
.logo-row a { display: flex; justify-content: center; padding: .25rem; border-radius: 6px; transition: transform .2s; }
.logo-row a:hover { transform: translateY(-3px); }
.logo-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 84px; }

/* ---------- gold band (about the organisation) ---------- */
.gold-band { padding: 3.75rem 0; background: var(--gold); color: #fff; }
.gold-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.gold-text h2 { margin: 0 0 1rem; color: #fff; font-size: 1.75rem; font-weight: 700; }
.gold-text p { margin: 0 0 1.75rem; font-size: 1.0625rem; line-height: 1.85; }
.gold-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.link-light { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.link-light:hover { color: #fff; text-decoration-thickness: 2px; }
.gold-media img, .gold-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.gold-band :focus-visible { outline-color: #fff; }

/* ---------- news cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.news-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.news-card a:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 20, 50, .18); }
.news-card a:focus-visible { outline-color: var(--gold); }
.news-card-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--band); }
.news-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: flex; flex: 1; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; }
.news-card-title { margin: 0; color: #fff; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.news-card-excerpt { margin: 0; color: rgba(255, 255, 255, .9); font-size: .875rem; line-height: 1.6; }
.news-card-when { margin: auto 0 0; padding-top: .4rem; color: var(--accent); font-size: .8125rem; }

.news-feature { margin-bottom: 2.5rem; }
.news-feature a {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.news-feature-media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-feature-body { display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 2rem 2.25rem; }
.news-feature-title { margin: 0; color: var(--brand); font-size: 1.625rem; }
.news-feature a:hover .news-feature-title { color: var(--gold); }
.news-feature-body p { margin: 0; color: var(--muted); }
.news-when { margin: 0; color: var(--gold); font-size: .9375rem; font-weight: 600; }
.center-row { display: flex; justify-content: center; margin-top: 2.25rem; }

/* ---------- numbers ---------- */
.numbers-band { padding: 3.25rem 0; background: var(--band); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.numbers-grid li { padding: .5rem 1rem; border-inline-start: 1px solid #fff; text-align: center; }
.numbers-grid li:first-child { border-inline-start: 0; }
.num { display: block; color: var(--gold); font-size: 3.125rem; font-weight: 300; line-height: 1.24; font-variant-numeric: tabular-nums; }
.num-text { display: block; margin-top: .35rem; color: var(--text); font-size: .9375rem; line-height: 1.5; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand); color: #fff; font-size: .9375rem; line-height: 1.9; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr 1.3fr; gap: 2.5rem; padding: 3rem 0 2.5rem; }
.footer-title { position: relative; margin: 0 0 .9rem; padding-bottom: .45rem; color: #fff; font-size: 1.125rem; font-weight: 700; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 2px; background: var(--accent); }
.site-footer p { margin: 0 0 1rem; color: rgba(255, 255, 255, .9); }
.footer-links, .footer-contact { margin: 0; padding: 0; list-style: none; }
.site-footer a:not(.btn) { color: #fff; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--accent); text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: .55rem; }
.footer-contact .icon { width: 1.1em; height: 1.1em; color: var(--accent); }
.newsletter-row { display: flex; gap: .5rem; }
.newsletter-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: .9375rem;
}
.newsletter-row .btn { height: 42px; padding-block: 0; }
.site-footer :focus-visible { outline-color: var(--accent); }
.site-footer .form-status { color: #fff; }
.site-footer .form-status[data-state="error"] { color: #ffc2bd; }
.site-footer .form-status[data-state="ok"] { color: #bff3cb; }
.site-footer .form-status[data-state="info"] { color: var(--accent); }
.footer-bottom { background: var(--brand-dark); color: rgba(255, 255, 255, .85); font-size: .8125rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 0; }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* ---------- inner pages ---------- */
body:not(.page-home) main { padding-bottom: 4rem; }
.page-head { margin-bottom: 2.5rem; padding: 1.25rem 0 1.75rem; background: var(--cream); border-bottom: 1px solid var(--cream-line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .6rem; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .3rem; color: #a29db3; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.page-title { margin: 0; color: var(--brand); font-size: 2rem; font-weight: 700; line-height: 1.25; }
.page-lead { max-width: 62ch; margin: .5rem 0 0; color: var(--muted); font-size: 1.0625rem; }

.prose { font-size: 1.0625rem; line-height: 1.85; }
.prose p { margin: 0 0 1rem; }
.prose h2, .prose h3, .prose h4 { margin: 1.75rem 0 .75rem; color: var(--brand); }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.125rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-inline-start: 1.5rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--gold); }

.card { padding: 1.75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }

/* department page */
.dept-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.75rem; align-items: start; }
.dept-hero { margin: 0 0 1.75rem; }
.dept-hero img { display: block; width: 100%; height: auto; border-radius: 6px; }
.dept-tagline {
  margin-top: 1.1rem;
  padding-inline-start: 1rem;
  border-inline-start: 4px solid var(--gold);
  color: var(--brand);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.45;
}
.gallery-block, .dept-contact { margin-top: 2.5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gallery-item { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--band); }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.75rem; margin: 0; }
.contact-item { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: .65rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-item .icon { grid-row: span 2; width: 1.35em; height: 1.35em; margin-top: .2rem; color: var(--gold); }
.contact-item dt { color: var(--brand); font-size: .9375rem; font-weight: 700; }
.contact-item dd { margin: 0; overflow-wrap: anywhere; }
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--gold); }

.dept-side { position: sticky; top: 1.5rem; padding: 1.5rem 1.25rem; border-radius: 8px; background: var(--cream); }
.dept-side-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.dept-side-logo img { width: auto; max-width: 200px; max-height: 150px; height: auto; }
.side-title { margin: 0 0 .9rem; color: var(--brand); font-size: 1.25rem; font-weight: 700; text-align: center; }
.side-text { margin: 0 0 1rem; text-align: center; }
.take-part fieldset { margin: 0; padding: 0; border: 0; }
.opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .55rem;
  margin-bottom: .5rem;
  padding: .6rem .75rem;
  border: 1px solid var(--cream-line);
  border-radius: 6px;
  background: #fff;
  font-size: .9375rem;
  line-height: 1.4;
  cursor: pointer;
}
.opt input { width: 1.1em; height: 1.1em; margin: 0; accent-color: var(--gold); }
.opt-amount { color: var(--brand); font-weight: 700; white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.take-part .btn { margin-top: .5rem; }

/* about page */
.about-hero { margin: 0 0 2rem; }
.about-hero img { display: block; width: 100%; height: auto; border-radius: 6px; }
.about-section p, .manager-text p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.85; }
.about-manager { display: grid; grid-template-columns: 190px 1fr; gap: 2rem; align-items: start; margin: 3rem 0; padding: 2rem; border-radius: 8px; background: var(--cream); }
.manager-photo img { display: block; width: 100%; height: auto; border: 4px solid #fff; border-radius: 6px; }
.manager-text .section-title { margin-bottom: 1rem; }
.manager-sub { margin: 0 0 1rem; color: var(--gold); font-size: 1.125rem; font-weight: 700; }
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.doc-list a { display: flex; align-items: center; gap: .6rem; padding: .8rem .25rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.doc-list a:hover { color: var(--brand); text-decoration: underline; }
.doc-list .icon { width: 1.5em; height: 1.5em; color: var(--gold); }

/* forms */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { color: var(--brand); font-size: .9375rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid #d4d3dd;
  border-radius: 6px;
  background: var(--field);
  font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
[aria-invalid="true"] { border-color: var(--error) !important; background: #fff6f5 !important; }
.req { color: var(--error); }
.form-status { min-height: 1.5em; margin: .75rem 0 0; font-weight: 600; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="info"] { color: var(--brand); }

/* contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.contact-lines { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.contact-lines li { display: flex; align-items: center; gap: .6rem; }
.contact-lines .icon { color: var(--gold); }
.contact-lines a { color: var(--text); text-decoration: none; }
.contact-lines a:hover { color: var(--gold); text-decoration: underline; }

/* donate page */
.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.step { margin: 0 0 1.75rem; padding: 0; border: 0; }
.step-title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding: 0; color: var(--brand); font-size: 1.25rem; font-weight: 700; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1rem; }
.items { margin-top: .25rem; }
.items-title { margin: 0 0 .5rem; color: var(--brand); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: .55rem 1.15rem;
  border: 2px solid #d4d3dd;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.donate-summary { min-height: 1.6em; margin: 0 0 1rem; color: var(--brand); font-size: 1.0625rem; font-weight: 600; }
.donate-note { margin: .75rem 0 0; }
.side-card { margin-bottom: 1.25rem; }
.side-card p { margin: 0 0 .75rem; color: var(--muted); }
.big-phone { display: flex; align-items: center; gap: .5rem; font-size: 1.5rem; font-weight: 700; }
.big-phone a { color: var(--brand); text-decoration: none; }
.big-phone .icon { color: var(--gold); }

/* news article */
.news-article .news-when { margin-bottom: 1rem; }
.news-figure { margin: 0 0 1.75rem; }
.news-figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.more-news { margin-top: 3rem; background: var(--cream); }
.page-news-item main { padding-bottom: 0; }

/* departments index */
.page-depts .depts-index { padding-top: 0; }
.page-dept .logos-band { margin-top: 3.5rem; }
.page-depts main, .page-dept main { padding-bottom: 0; }

/* 404 and text pages */
.center-page { padding: 3rem 0 1rem; text-align: center; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

/* ---------- gallery viewer ---------- */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(10, 10, 25, .9); }
.lightbox-inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lightbox img { width: auto; max-width: min(90vw, 1400px); height: auto; max-height: 84vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--brand);
  cursor: pointer;
}
.lb-btn .icon { width: 28px; height: 28px; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 16px; }
.lb-next { inset-inline-end: 16px; }
.lb-count { position: absolute; bottom: 12px; inset-inline: 0; margin: 0; color: #fff; text-align: center; }
.lightbox :focus-visible { outline-color: var(--accent); }

/* ---------- accessibility menu ---------- */
.a11y { position: fixed; top: 150px; inset-inline-start: 0; z-index: 100; }
.a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-start-end-radius: 8px;
  border-end-end-radius: 8px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.a11y-toggle .icon { width: 30px; height: 30px; }
.a11y-toggle:focus-visible { outline-color: var(--accent); }
.a11y-panel {
  position: absolute;
  top: 0;
  inset-inline-start: 50px;
  width: 230px;
  padding: .8rem;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 1rem;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
.a11y-title { margin: 0 0 .5rem; color: var(--brand); font-weight: 700; }
.a11y-panel ul { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.a11y-panel button {
  width: 100%;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: .9375rem;
  text-align: start;
  cursor: pointer;
}
.a11y-panel button:hover { background: var(--cream); }
.a11y-panel button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.a11y-statement { display: block; margin-top: .6rem; font-size: .875rem; }

/* the accessibility modes, set on <html> by the menu */
html.a11y-gray .site-header, html.a11y-gray main, html.a11y-gray .site-footer { filter: grayscale(1); }
html.a11y-invert .site-header, html.a11y-invert main, html.a11y-invert .site-footer { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray.a11y-invert .site-header, html.a11y-gray.a11y-invert main, html.a11y-gray.a11y-invert .site-footer { filter: grayscale(1) invert(1); }
html.a11y-invert img, html.a11y-invert video { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast body, html.a11y-contrast body *:not(svg):not(path):not(img):not(video):not(picture):not(source) {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast .btn, html.a11y-contrast button { border: 2px solid #ffeb3b !important; }
html.a11y-light body, html.a11y-light body *:not(svg):not(path):not(img):not(video):not(picture):not(source) {
  background-color: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}
html.a11y-light a, html.a11y-light a * { color: #1a237e !important; }
html.a11y-light .btn, html.a11y-light button { border: 2px solid #111 !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; background-color: #fff59d !important; color: #000 !important; }
html.a11y-links a * { color: #000 !important; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em; }

/* ---------- smaller screens ---------- */
/* Below 1310px (scrollbar included) the margin beside the page is narrower than the accessibility
   button, so the button would cover the start of the text; it moves to the lower left corner. */
@media (max-width: 1309px) {
  .a11y { top: auto; bottom: 90px; inset-inline-start: auto; inset-inline-end: 0; }
  .a11y-toggle { border-radius: 0; border-start-start-radius: 8px; border-end-start-radius: 8px; }
  .a11y-panel {
    top: auto;
    bottom: 0;
    inset-inline-start: auto;
    inset-inline-end: 50px;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
  }
}

@media (max-width: 1100px) {
  .nav-list { gap: 1.4rem; }
  .brand { padding-inline: 1.5rem; }
}

@media (max-width: 960px) {
  .main-nav { grid-template-columns: auto 1fr auto; min-height: 72px; }
  .nav-toggle { display: inline-flex; grid-column: 1; }
  .nav-start { display: none; }
  .nav-end li:not(.donate-item) { display: none; }
  .brand { grid-column: 2; justify-self: center; padding-inline: .5rem; }
  .brand-logo { height: 78px; }
  .btn-donate { padding: .45em 1em; font-size: .9375rem; }
  .dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gold-inner { grid-template-columns: 1fr; gap: 2rem; }
  .logo-row { flex-wrap: wrap; gap: 1rem; }
  .logo-row li { flex: 0 0 calc(25% - .75rem); }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .numbers-grid li:nth-child(odd) { border-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dept-layout, .contact-layout, .donate-layout { grid-template-columns: 1fr; }
  .dept-side { position: static; }
  .news-feature a { grid-template-columns: 1fr; }
}
@media (min-width: 961px) {
  .mobile-panel { display: none !important; }
}

@media (max-width: 760px) {
  .hero-controls { position: static; padding: .5rem 0; background: var(--brand); }
  .hero-btn, .hero-dots { box-shadow: none; }
}

@media (max-width: 600px) {
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem; }
  .page-title { font-size: 1.625rem; }
  .page-head { margin-bottom: 1.75rem; }
  .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .dept-card-name { font-size: 1.0625rem; }
  .news-grid, .news-grid-3 { grid-template-columns: 1fr; }
  .logo-img { max-height: 64px; }
  .num { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .field-row, .contact-list, .doc-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-manager { grid-template-columns: 1fr; padding: 1.5rem; }
  .manager-photo { max-width: 180px; }
  .card { padding: 1.25rem; }
  .news-feature-body { padding: 1.25rem; }
  .dept-tagline { font-size: 1.1875rem; }
}

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

@media print {
  .main-nav, .topbar, .hero-controls, .a11y, .skip-link, .footer-grid, .dept-card-give, .take-part { display: none !important; }
  body { color: #000; }
  .site-footer, .footer-bottom { background: none; color: #000; }
}
