:root {
  --ink: #25352e;
  --muted: #68766f;
  --paper: #fff8ef;
  --soft: #fff1df;
  --mint: #ffe7c2;
  --leaf: #e88912;
  --leaf-dark: #c86f00;
  --coral: #e36f3b;
  --peach: #ffe2d0;
  --sky: #dff3ff;
  --butter: #fff1bd;
  --gold: #f5a51b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(37, 53, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(232, 137, 18, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(232, 137, 18, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.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: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 248, 236, 0.94);
  border-bottom: 1px solid rgba(37, 48, 43, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(360px, 46vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--leaf-dark);
}

.site-nav a.active {
  color: var(--leaf-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  position: absolute;
  top: 100%;
  left: -12px;
  width: calc(100% + 24px);
  height: 24px;
  content: "";
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-trigger span {
  font-size: 1rem;
  line-height: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 20;
  width: 310px;
  display: grid;
  gap: 18px;
  padding: 34px 28px;
  background: #33384a;
  box-shadow: 0 22px 42px rgba(37, 53, 46, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-dropdown-menu::before {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 34px;
  height: 34px;
  content: "";
  background: #33384a;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}

.nav-dropdown-menu a:hover {
  color: var(--gold);
}

.nav-dropdown-menu-tall {
  width: 370px;
  gap: 16px;
}

.search-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(37, 48, 43, 0.18);
  border-radius: 8px;
  background: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 53, 46, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(37, 48, 43, 0.2);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 77px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-dayhome.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(64, 41, 18, 0.76), rgba(64, 41, 18, 0.28) 58%, rgba(64, 41, 18, 0.08)),
    linear-gradient(0deg, rgba(255, 250, 241, 0.96), rgba(255, 250, 241, 0) 26%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(44px, 9vw, 92px) clamp(18px, 6vw, 72px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 740px;
  font-size: clamp(2.6rem, 8vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

p {
  margin: 0;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(37, 53, 46, 0.14);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 53, 46, 0.18);
}

.button-primary {
  color: var(--white);
  background: var(--leaf);
}

.button-primary:hover {
  background: var(--leaf-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0;
}

.intro {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding-top: 28px;
}

.intro article {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.intro article:hover,
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(37, 53, 46, 0.16);
}

.intro article {
  grid-column: span 2;
}

.intro article:nth-child(4) {
  grid-column: 2 / span 2;
}

.intro article:nth-child(5) {
  grid-column: 4 / span 2;
}

.intro strong,
.intro span {
  display: block;
}

.intro strong {
  margin-bottom: 8px;
  color: var(--leaf-dark);
  font-size: 1.05rem;
}

.intro strong span {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 8px;
  font-size: 1.2rem;
}

.intro span,
.copy-block {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.copy-block {
  display: grid;
  gap: 18px;
  font-size: 1.08rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 0;
}

.program-card {
  min-height: 300px;
  padding: 24px;
  background: var(--white);
  border-top: 6px solid var(--gold);
  border-right: 1px solid rgba(37, 48, 43, 0.1);
  border-bottom: 1px solid rgba(37, 48, 43, 0.1);
  border-left: 1px solid rgba(37, 48, 43, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.program-card:nth-child(2) {
  border-top-color: var(--coral);
}

.program-card:nth-child(3) {
  border-top-color: var(--leaf);
}

.program-card:nth-child(4) {
  border-top-color: #7aa7d9;
}

.program-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  background: var(--butter);
  border-radius: 8px;
  font-size: 1.35rem;
}

.program-card:nth-child(2) .program-icon {
  background: var(--peach);
}

.program-card:nth-child(3) .program-icon {
  background: var(--mint);
}

.program-card:nth-child(4) .program-icon {
  background: var(--sky);
}

.program-card h2 {
  margin: 10px 0 16px;
  color: var(--leaf-dark);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.program-card p:not(.program-age) {
  color: var(--muted);
}

.program-age {
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0 clamp(30px, 5vw, 56px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.page-hero h1 {
  color: var(--leaf-dark);
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-subtitle a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 13px;
  color: var(--leaf-dark);
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(37, 53, 46, 0.1);
  font-weight: 800;
  text-decoration: none;
}

.detail-page > h1 {
  margin-bottom: 28px;
  color: var(--leaf-dark);
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.about-story {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.story-card,
.value-grid article {
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-card-soft {
  background: var(--soft);
}

.story-card h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.story-card p:not(.eyebrow),
.value-grid p {
  color: var(--muted);
}

.story-card p:not(.eyebrow) {
  margin-top: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.content-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-grid article span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  background: var(--soft);
  border-radius: 8px;
  font-size: 1.3rem;
}

.content-grid article:nth-child(2) span {
  background: var(--peach);
}

.content-grid article:nth-child(3) span {
  background: var(--butter);
}

.content-grid article:nth-child(4) span {
  background: var(--sky);
}

.content-grid h2 {
  margin-bottom: 12px;
  color: var(--leaf-dark);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.content-grid p {
  color: var(--muted);
}

.featured-event {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 30px;
  background: var(--soft);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-event h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.featured-event p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

.news-heading {
  margin-top: clamp(38px, 6vw, 70px);
}

.news-resource-card {
  margin-top: clamp(34px, 6vw, 64px);
}

.resource-hub-section {
  margin-top: clamp(34px, 6vw, 64px);
}

.resource-issue-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  margin-top: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.resource-issue-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.resource-issue-intro h2 {
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.resource-issue-intro p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
}

.resource-note {
  padding: 14px 16px;
  background: #fff7e9;
  border: 1px solid rgba(238, 143, 21, 0.24);
  border-radius: 8px;
}

.resource-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-gallery a {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.resource-gallery a:hover,
.resource-gallery a:focus-visible {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 12px 28px rgba(201, 106, 0, 0.12);
}

.resource-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.resource-gallery span {
  line-height: 1.25;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-list article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-list time {
  display: grid;
  min-height: 74px;
  place-items: center;
  color: var(--white);
  background: var(--leaf);
  border-radius: 8px;
  font-weight: 800;
}

.event-list h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.event-list p {
  color: var(--muted);
}

.event-poster {
  display: block;
  width: min(100%, 760px);
  margin: 18px 0 22px;
  border: 10px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-list-feature p + p {
  margin-top: 14px;
}

.event-waiver {
  margin: 20px 0;
  box-shadow: none;
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

.past-events-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.past-events-grid h2 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.past-events-grid time {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.past-events-grid a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--leaf);
  font-weight: 800;
}

.content-grid a {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--leaf-dark);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.content-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.process-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.process-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.process-list article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--leaf);
  border-radius: 8px;
  font-weight: 800;
}

.process-list h2 {
  margin-bottom: 8px;
  color: var(--leaf-dark);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.process-list p {
  color: var(--muted);
}

.callout-card {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.callout-card h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.callout-card p {
  color: var(--muted);
}

.callout-card .button {
  width: fit-content;
}

.grant-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.grant-rate-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.grant-rate-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  background: var(--soft);
  border-radius: 8px;
  font-size: 1.3rem;
}

.grant-rate-grid h2 {
  margin-bottom: 10px;
  color: var(--leaf-dark);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}

.grant-rate-grid p {
  color: var(--muted);
}

.resource-heading {
  margin-top: clamp(38px, 6vw, 70px);
}

.resource-image-grid {
  display: grid;
  gap: 20px;
}

.resource-image-grid img {
  display: block;
  width: 100%;
  background: var(--white);
  border: 10px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.handbook-accordion {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.handbook-accordion details {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.handbook-accordion summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  list-style: none;
}

.handbook-accordion summary::-webkit-details-marker {
  display: none;
}

.handbook-accordion summary::before {
  width: 24px;
  color: var(--leaf-dark);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.handbook-accordion details[open] summary::before {
  content: "-";
}

.handbook-content {
  padding: 4px 28px 28px 58px;
  border-top: 1px solid rgba(37, 48, 43, 0.1);
}

.handbook-content h2 {
  margin-bottom: 18px;
  color: var(--leaf-dark);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.handbook-content p,
.handbook-content li {
  color: var(--muted);
  font-size: 1.05rem;
}

.handbook-content p + p,
.handbook-content p + ul,
.handbook-content ul + p {
  margin-top: 16px;
}

.handbook-content ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.handbook-content li + li {
  margin-top: 10px;
}

.password-card {
  display: grid;
  gap: 18px;
  max-width: 620px;
  margin-top: 28px;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.password-card h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.password-card p {
  color: var(--muted);
}

.password-form {
  display: grid;
  gap: 10px;
}

.password-form label {
  color: var(--ink);
  font-weight: 800;
}

.password-row {
  display: flex;
  gap: 12px;
}

.password-row input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(37, 48, 43, 0.16);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

.password-row button {
  padding: 14px 22px;
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.password-error {
  color: #b3261e;
  font-weight: 800;
}

.download-actions {
  display: grid;
  justify-items: start;
  gap: 22px;
  margin-top: 34px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 18px 28px;
  background: #5dcc6d;
  border-radius: 6px;
  color: var(--white);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(49, 140, 64, 0.18);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  background: #45b957;
  transform: translateY(-2px);
}

.download-button-wide {
  padding-right: 34px;
}

.form-preview-card {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-preview-card h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.form-preview-card p {
  color: var(--muted);
}

.embedded-form {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
}

.embedded-form iframe {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
}

.dayhome-map-card {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(37, 48, 43, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dayhome-map-card .section-heading {
  margin-bottom: 0;
}

.dayhome-map-card h2 {
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.dayhome-map-card p:not(.eyebrow) {
  color: var(--muted);
}

.dayhome-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -6px;
}

.dayhome-filters button {
  min-width: 58px;
  padding: 10px 16px;
  background: #fff7e9;
  border: 1px solid rgba(238, 143, 21, 0.28);
  border-radius: 999px;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.dayhome-filters button:hover,
.dayhome-filters button:focus-visible,
.dayhome-filters button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  outline: 0;
}

.dayhome-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  align-items: stretch;
}

.dayhome-map {
  min-height: 560px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(37, 48, 43, 0.1);
  border-radius: 8px;
}

.dayhome-list {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.dayhome-list-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: #fff7e9;
  border: 1px solid rgba(238, 143, 21, 0.24);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.dayhome-list-card img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.dayhome-list-copy {
  display: grid;
  gap: 4px;
}

.dayhome-list-card:hover,
.dayhome-list-card:focus-visible {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 10px 22px rgba(201, 106, 0, 0.12);
}

.dayhome-list-card strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.dayhome-agency-name {
  color: var(--brand) !important;
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.dayhome-area {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  background: var(--brand);
  border-radius: 999px;
  color: var(--white) !important;
  font-size: 0.72rem !important;
  font-weight: 900;
}

.dayhome-list-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.dayhome-popup {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.dayhome-popup strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.dayhome-popup span {
  color: var(--muted);
}

.dayhome-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 10px rgba(201, 106, 0, 0.28));
}

.dayhome-marker img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.map-fallback {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 26px;
}

.section-heading h2 {
  color: var(--leaf-dark);
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
}

.principles-heading {
  margin: clamp(28px, 5vw, 50px) 0 22px;
  text-align: center;
}

.principles-heading h2 {
  color: var(--leaf);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-grid article span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  background: var(--butter);
  border-radius: 8px;
  font-size: 1.35rem;
}

.value-grid article:nth-child(2) span {
  background: var(--mint);
}

.value-grid article:nth-child(3) span {
  background: var(--peach);
}

.value-grid article:nth-child(4) span {
  background: var(--sky);
}

.value-grid h3 {
  margin: 0 0 10px;
  color: var(--leaf-dark);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 73px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 20px;
    background: var(--paper);
    border-bottom: 1px solid rgba(37, 48, 43, 0.12);
    box-shadow: 0 18px 40px rgba(37, 48, 43, 0.14);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(37, 48, 43, 0.1);
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin: 4px 0 10px;
    padding: 12px 18px;
    gap: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu a {
    font-size: 1rem;
    text-align: left;
  }

  .nav-dropdown-menu-tall {
    width: 100%;
  }

  .hero {
    min-height: 660px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(19, 31, 25, 0.8), rgba(19, 31, 25, 0.28) 72%, rgba(19, 31, 25, 0.12)),
      linear-gradient(0deg, rgba(255, 250, 241, 0.96), rgba(255, 250, 241, 0) 22%);
  }

  .hero-content {
    margin-inline: auto;
  }

  .intro,
  .split,
  .program-grid,
  .page-hero,
  .about-story,
  .featured-event,
  .resource-issue-card,
  .content-grid,
  .grant-rate-grid,
  .dayhome-map-layout,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .resource-issue-intro {
    position: static;
  }

  .dayhome-map,
  .dayhome-list {
    max-height: none;
  }

  .dayhome-map {
    min-height: 440px;
  }

  .event-list article {
    grid-template-columns: 1fr;
  }

  .past-events-grid {
    grid-template-columns: 1fr;
  }

  .process-list article {
    grid-template-columns: 1fr;
  }

  .intro article,
  .intro article:nth-child(4),
  .intro article:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: min(250px, 62vw);
  }

  .hero {
    min-height: 620px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .resource-gallery {
    grid-template-columns: 1fr;
  }

  .password-row {
    flex-direction: column;
  }

  .password-row button,
  .download-button {
    justify-content: center;
    width: 100%;
  }
}
