:root {
  --navy: #102d60;
  --navy-dark: #091f48;
  --teal: #138b91;
  --teal-soft: #e8f5f4;
  --sand: #e7c681;
  --coral: #f2785d;
  --ink: #16233a;
  --muted: #667085;
  --line: #e3e7ec;
  --soft: #f7f9fa;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(16, 45, 96, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Tahoma, "Segoe UI", Arial, sans-serif; line-height: 1.7; }
body[dir="ltr"] { font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.shell { width: min(1440px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; inset-block-start: 8px; inset-inline-start: 8px; transform: translateY(-160%); padding: 8px 14px; color: white; background: var(--navy); }
.skip-link:focus { transform: translateY(0); }
.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; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.header-inner { min-height: 104px; display: grid; grid-template-columns: 360px 1fr auto; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.brand-mark { width: 58px; height: 64px; flex: none; fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; }
.brand-mark path:last-child { stroke: var(--sand); }
.brand strong { display: block; font-size: 22px; line-height: 1.35; }
.brand small { display: block; margin-top: 2px; color: #404b61; font-size: 12px; }
.primary-nav { justify-self: center; display: flex; align-items: stretch; gap: 42px; min-height: 104px; }
.primary-nav a { position: relative; display: grid; place-items: center; color: var(--navy-dark); white-space: nowrap; font-size: 15px; }
.primary-nav a::after { position: absolute; content: ""; inset-inline: 0; bottom: 25px; height: 2px; transform: scaleX(0); background: var(--teal); transition: transform .18s ease; }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch, .saved-button, .menu-button { min-width: 40px; height: 40px; border: 1px solid var(--line); color: var(--navy); background: var(--white); }
.menu-button { display: none; }

.hero { padding-top: 46px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 42px; }
.hero-copy { max-width: 640px; justify-self: center; }
.hero-copy { grid-column: 2; grid-row: 1; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.hero h1 { max-width: 630px; margin: 0; color: var(--navy); font-size: clamp(42px, 4.2vw, 68px); line-height: 1.36; letter-spacing: -.035em; }
.hero-lead { max-width: 600px; margin: 20px 0 0; color: #4e596d; font-size: 18px; }
.hero-actions { display: flex; gap: 18px; margin-top: 30px; }
.button { min-height: 50px; padding: 11px 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--navy); border-radius: 5px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--navy); box-shadow: 0 7px 18px rgba(16,45,96,.14); }
.button.secondary { color: var(--navy); background: white; }
.hero-art { align-self: end; }
.hero-art { grid-column: 1; grid-row: 1; }
.hero-art img { width: 100%; max-height: 540px; object-fit: contain; object-position: center bottom; }
.hero-search { grid-column: 1 / -1; width: min(940px, 100%); margin: 0 auto 28px; height: 62px; display: flex; border: 1px solid #d9dee6; border-radius: 7px; background: white; box-shadow: 0 4px 20px rgba(16,45,96,.05); overflow: hidden; }
.hero-search input, .directory-search input { flex: 1; min-width: 0; padding: 0 25px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.hero-search input::placeholder, .directory-search input::placeholder { color: #a0a7b3; }
.hero-search button, .directory-search button { width: 64px; border: 0; color: white; background: var(--navy); }
.hero-search svg, .directory-search svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

.value-strip { min-height: 154px; padding: 28px 40px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; background: linear-gradient(90deg, #fafafa, #fff, #fafafa); border-block: 1px solid #f0f1f2; }
.value-strip article { padding-inline: 46px; display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: center; }
.value-strip article + article { border-inline-start: 1px solid var(--line); }
.value-strip h2 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.value-strip p { margin: 0; color: #5f687a; font-size: 13px; }
.feature-icon { font-family: Georgia, serif; font-size: 46px; line-height: 1; text-align: center; }
.people-icon { color: var(--teal); }
.book-icon { color: var(--navy); }
.heart-icon { color: var(--coral); }

.section { padding-top: 62px; }
.section-heading { min-height: 52px; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 29px; }
.section-heading a { color: var(--navy); font-weight: 700; font-size: 13px; }
.directory-tabs { display: flex; justify-content: center; gap: 44px; border-bottom: 1px solid var(--line); }
.directory-tabs button { position: relative; padding: 18px 7px; border: 0; color: #4c566a; background: transparent; }
.directory-tabs button::after { position: absolute; content: ""; inset-inline: 0; bottom: -1px; height: 3px; transform: scaleX(0); background: var(--teal); }
.directory-tabs button.active { color: var(--navy); font-weight: 700; }
.directory-tabs button.active::after { transform: scaleX(1); }
.home-directory-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-profile { min-height: 144px; padding: 30px 22px; display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.home-profile + .home-profile { border-inline-start: 1px solid var(--line); }
.avatar { width: 66px; height: 66px; display: grid; place-items: center; flex: none; border: 1px solid #d7dce3; border-radius: 50%; color: var(--navy); background: linear-gradient(145deg, #edf3f4, #fff 58%, #e6c988); font-weight: 800; }
.home-profile h3 { margin: 0; color: var(--navy); font-size: 17px; }
.home-profile p { margin: 3px 0; color: #5d6678; font-size: 13px; line-height: 1.55; }
.home-profile a { color: var(--teal); font-size: 12px; font-weight: 700; }

.split-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; padding-bottom: 62px; }
.events-list { padding-top: 8px; }
.event-row { min-height: 92px; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.event-date { padding: 8px; text-align: center; color: var(--navy); background: #eff8f8; }
.event-date strong, .event-date span { display: block; line-height: 1.25; }
.event-date strong { font-size: 20px; }
.event-date span { font-size: 11px; }
.event-row h3 { margin: 0; color: var(--navy); font-size: 15px; }
.event-row p { margin: 1px 0 0; color: #6d7584; font-size: 12px; }
.resource-feature { margin-top: 26px; min-height: 260px; display: grid; grid-template-columns: 45% 55%; background: linear-gradient(135deg, #edf7f7, #fff); }
.resource-photo { display: grid; place-items: center; color: var(--sand); background: linear-gradient(145deg, #7a5a3a, #142a47); font-size: 88px; }
.resource-feature > div:last-child { padding: 38px 30px; }
.resource-feature h3 { margin: 0; color: var(--navy); font-size: 20px; }
.resource-feature p { color: #5d6678; font-size: 13px; }
.resource-feature a { color: var(--teal); font-weight: 700; font-size: 13px; }
.volunteer { min-height: 158px; padding: 32px 46px; display: grid; grid-template-columns: 260px 1fr auto; gap: 42px; align-items: center; overflow: hidden; background: linear-gradient(90deg, #e9f6f5, #f7fbfb); }
.volunteer h2 { margin: 0; color: var(--navy); font-size: 28px; }
.volunteer p { margin: 4px 0 0; color: #586273; }
.hands { height: 110px; display: flex; align-items: end; justify-content: center; gap: 18px; }
.hands i { position: relative; width: 34px; height: 100px; background: var(--navy); border-radius: 18px 18px 3px 3px; transform: rotate(-5deg); }
.hands i::before { position: absolute; content: ""; width: 46px; height: 28px; left: -6px; top: -8px; border-radius: 50% 50% 40% 40%; background: inherit; }
.hands i:nth-child(2) { height: 80px; background: var(--sand); transform: rotate(5deg); }
.hands i:nth-child(3) { height: 120px; background: var(--teal); }
.hands i:nth-child(4) { height: 73px; background: var(--coral); transform: rotate(7deg); }

.site-footer { margin-top: 0; padding-top: 48px; border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 60px; padding-bottom: 44px; }
.footer-grid h2, .footer-grid h3 { margin: 0 0 12px; color: var(--navy); }
.footer-grid h2 { font-size: 19px; }
.footer-grid h3 { font-size: 15px; }
.footer-grid p, .footer-grid a { display: block; margin: 4px 0; color: #596375; font-size: 13px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--navy); }
.footer-bottom { min-height: 62px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #667085; font-size: 12px; }
.footer-bottom span:last-child { display: flex; gap: 25px; }

.directory-header .header-inner { min-height: 92px; }
.directory-header .primary-nav { min-height: 92px; }
.directory-header .primary-nav a::after { bottom: 18px; }
.directory-hero { min-height: 225px; display: flex; justify-content: center; align-items: center; gap: 52px; text-align: right; background: linear-gradient(90deg, transparent 10%, #fff 50%, #fbfdfd); }
body[dir="ltr"] .directory-hero { text-align: left; }
.directory-hero h1 { margin: 0; color: var(--navy); font-size: 46px; line-height: 1.3; }
.directory-hero p:last-child { margin: 8px 0 0; color: #5b6474; }
.directory-emblem { width: 148px; fill: none; stroke: var(--navy); stroke-width: 6; }
.directory-emblem path:nth-child(2) { stroke: var(--teal); }
.directory-emblem path:nth-child(3) { stroke: var(--sand); }
.directory-layout { padding-bottom: 64px; display: grid; grid-template-columns: 250px minmax(520px, 1fr) 390px; grid-template-areas: "tabs tabs tabs" "filters results profile"; gap: 0 20px; align-items: start; }
.directory-tabs.wide { grid-area: tabs; margin-bottom: 24px; }
.directory-tabs.wide button { flex: 1; border: 1px solid var(--line); border-inline-end: 0; }
.directory-tabs.wide button:last-child { border-inline-end: 1px solid var(--line); }
.filter-panel { grid-area: filters; border: 1px solid var(--line); }
.panel-title { min-height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-title h2 { margin: 0; color: var(--navy); font-size: 18px; }
.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filter-group label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 13px; font-weight: 700; }
.filter-group select, .directory-search select { width: 100%; height: 43px; padding: 0 10px; border: 1px solid #d6dbe2; color: #404b5f; background: white; }
.clear-filters { width: 100%; padding: 16px; border: 0; color: var(--coral); background: white; font-weight: 700; }
.results-panel { grid-area: results; min-width: 0; }
.directory-search { height: 52px; display: grid; grid-template-columns: 1fr 52px 175px; border: 1px solid #d6dbe2; }
.directory-search button { width: 52px; }
.directory-search select { height: 50px; border: 0; border-inline-start: 1px solid var(--line); }
.results-meta { min-height: 54px; display: flex; justify-content: space-between; align-items: center; color: #697386; font-size: 12px; }
.results-meta span:first-child { color: var(--navy); font-weight: 700; }
.results-table { border-top: 1px solid var(--line); }
.result-item { position: relative; min-height: 118px; padding: 20px; display: grid; grid-template-columns: 60px minmax(140px, 1.2fr) 1fr 1fr 34px; align-items: center; gap: 16px; border: 1px solid var(--line); border-top: 0; background: white; text-align: start; }
.result-item:hover { background: #fbfdfd; }
.result-item.selected { z-index: 1; border: 1px solid var(--navy); box-shadow: 0 3px 10px rgba(16,45,96,.08); }
.result-item .avatar { width: 56px; height: 56px; }
.result-item h3 { margin: 0; color: var(--navy); font-size: 15px; }
.result-item p { margin: 2px 0 0; color: #5e687a; font-size: 12px; line-height: 1.45; }
.result-field { color: #344158; font-size: 12px; }
.bookmark { width: 34px; height: 38px; border: 0; color: var(--navy); background: transparent; font-size: 24px; }
.bookmark.saved { color: var(--teal); }
.pagination { padding: 28px 0; display: flex; justify-content: center; gap: 7px; direction: ltr; }
.pagination button { width: 34px; height: 34px; border: 0; color: var(--navy); background: white; }
.pagination button.active { color: white; background: var(--navy); }
.profile-panel { grid-area: profile; position: sticky; top: 18px; border: 1px solid var(--line); background: white; }
.profile-close { display: none; }
.profile-head { padding: 27px 22px 20px; display: grid; grid-template-columns: 82px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.profile-head .avatar { width: 80px; height: 80px; }
.profile-head h2 { margin: 0; color: var(--navy); font-size: 21px; }
.profile-head p { margin: 3px 0 0; color: #5e687a; font-size: 12px; }
.verified { display: inline-flex; margin-inline-start: 4px; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; color: white; background: var(--teal); font-size: 11px; }
.profile-body { padding: 6px 22px; }
.profile-row { padding: 17px 0; display: grid; grid-template-columns: 110px 1fr; gap: 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.profile-row strong { color: var(--navy); }
.profile-row span { color: #536075; }
.profile-source { color: var(--teal); font-weight: 700; overflow-wrap: anywhere; }
.profile-actions { padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-actions .button { min-height: 46px; padding: 8px 12px; font-size: 13px; }
.compact-footer { padding-top: 0; }
.sources-hero { min-height: 260px; text-align: center; }
.sources-shell { max-width: 920px; padding-block: 12px 72px; display: grid; }
.source-entry { min-height: 82px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.source-entry:hover { background: var(--soft); }
.source-entry strong { color: var(--navy); }
.source-entry span { color: var(--teal); font-size: 13px; direction: ltr; }

@media (max-width: 1260px) {
  .shell { width: min(1160px, calc(100% - 48px)); }
  .header-inner { grid-template-columns: 300px 1fr auto; gap: 20px; }
  .primary-nav { gap: 22px; }
  .brand strong { font-size: 18px; }
  .directory-layout { grid-template-columns: 225px minmax(460px, 1fr) 330px; gap: 0 14px; }
  .result-item { grid-template-columns: 54px minmax(130px, 1.2fr) 1fr 34px; }
  .result-item .result-location { display: none; }
}

@media (max-width: 980px) {
  .shell { width: min(900px, calc(100% - 36px)); }
  .header-inner { min-height: 84px; grid-template-columns: 1fr auto; }
  .brand-mark { width: 45px; height: 52px; }
  .brand small { display: none; }
  .primary-nav { position: absolute; inset-inline: 18px; top: 84px; min-height: 0; padding: 16px; display: none; flex-direction: column; gap: 0; align-items: stretch; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .primary-nav a { min-height: 46px; place-items: center start; }
  .primary-nav a::after { display: none; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero h1 { font-size: 42px; }
  .value-strip { padding-inline: 15px; }
  .value-strip article { padding-inline: 18px; grid-template-columns: 45px 1fr; }
  .feature-icon { font-size: 34px; }
  .directory-layout { grid-template-columns: 220px 1fr; grid-template-areas: "tabs tabs" "filters results"; }
  .profile-panel { position: fixed; z-index: 50; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw); overflow-y: auto; transform: translateX(110%); transition: transform .2s ease; box-shadow: -12px 0 30px rgba(16,45,96,.15); }
  body[dir="ltr"] .profile-panel { transform: translateX(-110%); }
  .profile-panel.open { transform: translateX(0); }
  .profile-close { display: block; position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border: 0; background: white; color: var(--navy); font-size: 24px; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .brand strong { font-size: 16px; }
  .hero { padding-top: 30px; grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; grid-row: 1; text-align: center; }
  .hero h1 { font-size: 36px; line-height: 1.45; }
  .hero-lead { font-size: 15px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-art { grid-column: 1; grid-row: 2; }
  .hero-search { grid-row: 3; height: 54px; }
  .value-strip { grid-template-columns: 1fr; }
  .value-strip article { padding-block: 22px; }
  .value-strip article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .section { padding-top: 42px; }
  .section-heading h2 { font-size: 24px; }
  .directory-tabs { gap: 0; overflow-x: auto; justify-content: flex-start; }
  .directory-tabs button { min-width: 190px; }
  .home-directory-list { grid-template-columns: 1fr; }
  .home-profile + .home-profile { border-inline-start: 0; }
  .split-section { grid-template-columns: 1fr; gap: 38px; }
  .resource-feature { grid-template-columns: 1fr; }
  .resource-photo { min-height: 160px; }
  .volunteer { grid-template-columns: 1fr; text-align: center; }
  .hands { order: 3; }
  .volunteer .button { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-bottom { padding-block: 18px; flex-direction: column; gap: 8px; }
  .directory-hero { min-height: 200px; justify-content: space-between; gap: 10px; }
  .directory-hero h1 { font-size: 32px; }
  .directory-emblem { width: 90px; }
  .directory-layout { grid-template-columns: 1fr; grid-template-areas: "tabs" "filters" "results"; }
  .filter-panel { margin-bottom: 18px; }
  .directory-search { grid-template-columns: 1fr 48px; }
  .directory-search select { grid-column: 1 / -1; border: 1px solid var(--line); }
  .results-meta { padding-top: 54px; }
  .results-meta span:last-child { display: none; }
  .result-item { grid-template-columns: 52px 1fr 34px; min-height: 100px; }
  .result-item .result-field, .result-item .result-location { display: none; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 22px); }
  .header-actions { gap: 5px; }
  .lang-switch, .saved-button, .menu-button { min-width: 35px; height: 36px; }
  .brand-mark { width: 38px; }
  .brand strong { font-size: 14px; }
  .hero h1 { font-size: 31px; }
  .button { width: 100%; }
  .hero-actions { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .directory-hero .directory-emblem { display: none; }
  .directory-hero { text-align: center; }
  .source-entry { align-items: flex-start; flex-direction: column; gap: 4px; }
}
