.home-page {
  --home-ink: #153a2b;
  --home-accent: #165a3f;
  --home-muted: #52645b;
  --home-line: #dbe1d8;
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding: 32px 0 64px;
  color: var(--home-ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page [hidden] { display: none !important; }
.home-page :is(a, button, input):focus-visible { outline: 3px solid #19774e; outline-offset: 3px; }
.home-page button, .home-page input { font: inherit; }
.home-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  min-height: 338px;
  overflow: hidden;
  isolation: isolate;
  background-color: #e6f1e3;
  background-image: linear-gradient(106deg, #e9f2e5 0%, #e4f0e1 55%, #dbead7 100%);
  border-radius: 26px;
}
.home-hero-copy {
  position: relative; z-index: 1;
  padding: clamp(32px, 4.2vw, 62px) 0 clamp(34px, 4.2vw, 60px) clamp(32px, 4.8vw, 70px);
}
.home-hero h1 {
  margin: 0; font-size: clamp(2.55rem, 4vw, 3.9rem); font-weight: 790;
  line-height: 1.08; letter-spacing: -.065em; color: #183e2b;
}
.home-hero-copy > p {
  margin: 18px 0 25px;
  color: #3e5848; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.55; letter-spacing: -.025em;
}
.home-search {
  display: flex; align-items: center; gap: 13px; width: min(100%, 440px); min-width: 0;
  min-height: 55px; margin: 0; padding: 5px 5px 5px 19px;
  border: 1px solid #819a83; border-radius: 13px; background: #fff;
}
.home-search:focus-within { border-color: var(--home-accent); outline: 2px solid #39775a; outline-offset: 2px; }
.home-search-icon {
  position: relative; width: 16px; height: 16px; border: 2px solid #456253; border-radius: 50%; flex: 0 0 auto;
}
.home-search-icon::after { content: ""; position: absolute; right: -5px; bottom: -2px; width: 6px; height: 2px; background: #456253; transform: rotate(45deg); }
.home-search input {
  flex: 1; min-width: 0; width: 100%; padding: 8px 0; border: 0; border-radius: 4px;
  background: transparent; color: #263a2e; font-size: 1rem;
}
.home-search input::placeholder { color: #6b766e; opacity: 1; }
.home-search input:focus-visible { outline: none; }
.home-search button {
  min-width: 64px; min-height: 42px; padding: 7px 16px;
  border: 0; border-radius: 9px; background: var(--home-accent);
  color: #fff; font-size: .98rem; font-weight: 680; cursor: pointer;
}
.home-search button:hover { background: #0f442e; }
.home-hero-art {
  display: grid; place-items: center; align-self: stretch; position: relative;
  min-width: 0; margin-left: -4%; padding-right: clamp(18px, 4vw, 62px); pointer-events: none;
}
.home-hero-art::before {
  content: ""; position: absolute; z-index: -1; width: 145%; height: 170%; top: -1%; right: -31%;
  background: repeating-radial-gradient(ellipse at 55% 57%, transparent 0 30px, rgba(63, 113, 70, .095) 30.5px 31.5px, transparent 32px 50px);
  transform: rotate(-15deg); border-radius: 50%;
}
.home-hero-art img {
  display: block; width: min(83%, 335px); height: auto; transform: rotate(-5deg);
  filter: drop-shadow(0 12px 10px rgba(29, 67, 28, .09));
}

.home-tools {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; padding: 12px 0;
  border: 1px solid var(--home-line); border-radius: 18px; background: #fff;
}
.home-deadline, .home-calculator-link {
  display: flex; position: relative; align-items: center; gap: 15px;
  min-height: 70px; min-width: 0; padding: 6px clamp(18px, 3vw, 42px);
}
.home-deadline { border-right: 1px solid var(--home-line); }
.home-deadline:not(:has(.deadline-link)) { display: none; }
.home-tools:not(:has(.deadline-link)) { grid-template-columns: 1fr; }
.home-calculator-link { text-decoration: none; color: inherit; }
.tool-icon { display: grid; position: relative; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 13px; }
.calendar-icon { color: #9b6112; background: #fbefcb; }
.calculator-icon { color: #28684e; background: #e3f1e8; }
.calendar-icon i { display: block; width: 20px; height: 18px; position: relative; border: 1.8px solid; border-radius: 3px; background: linear-gradient(currentColor,currentColor) center 4px/100% 1.8px no-repeat; }
.calendar-icon i::before, .calendar-icon i::after { content: ""; position: absolute; top: -4px; width: 2px; height: 5px; border-radius: 2px; background: currentColor; }
.calendar-icon i::before { left: 3px; }
.calendar-icon i::after { right: 3px; }
.calculator-icon i { position: relative; width: 15px; height: 21px; border: 1.8px solid; border-radius: 3px; }
.calculator-icon i::before { content: ""; position: absolute; width: 7px; height: 2px; left: 2px; top: 3px; background: currentColor; }
.calculator-icon i::after { content: ""; position: absolute; width: 2px; height: 2px; top: 8px; left: 2px; border-radius: 1px; background: currentColor; box-shadow: 5px 0 currentColor, 0 4px currentColor, 5px 4px currentColor; }
.tool-content { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; min-width: 0; }
.tool-label, .deadline-link span { color: var(--home-muted); font-size: .9rem; line-height: 1.5; }
.home-deadline .tool-label { color: #84520d; font-weight: 650; }
.tool-content strong { color: var(--home-ink); font-size: 1.12rem; font-weight: 720; letter-spacing: -.035em; line-height: 1.5; }
.deadline-link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 1px 9px; color: inherit; text-decoration: none; }
.deadline-link::after { content: ""; position: absolute; inset: 0; }
.home-calculator-link:hover strong, .home-deadline:hover .deadline-link strong { text-decoration: underline; text-underline-offset: .22em; }

.home-catalog { margin-top: clamp(44px, 5vw, 72px); scroll-margin-top: 20px; }
.home-catalog-heading, .home-catalog-controls, .home-filter-message { display: flex; align-items: center; gap: 12px; }
.home-catalog-heading, .home-catalog-controls { justify-content: space-between; }
.home-catalog-heading { align-items: baseline; }
.home-catalog-heading h2 { margin: 0; color: var(--home-ink); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.2; }
.home-archive-link, #clear-filters { color: var(--home-muted); text-decoration: underline; text-underline-offset: .23em; font-size: .9rem; }
.home-archive-link:hover, #clear-filters:hover { color: var(--home-accent); }
.home-catalog-controls { margin: 23px 0 26px; flex-wrap: wrap; }
.home-catalog-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.home-catalog-filters [data-group] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 17px;
  border: 1px solid #ccd6cc; border-radius: 100px; background: transparent; color: #344b3d;
  font-size: .97rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.home-catalog-filters [data-group]:hover { border-color: #619176; background: #e9f2e9; }
.home-catalog-filters [data-group][aria-pressed="true"] { background: #1b5139; border-color: #1b5139; color: #fff; }
.home-filter-message { margin: 0; flex-wrap: wrap; color: var(--home-muted); font-size: .9rem; }
#clear-filters { border: none; padding: 6px 2px; background: transparent; cursor: pointer; }
.year-section { margin: 0 0 40px; scroll-margin-top: 24px; }
.year-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px;
  padding: 0 0 13px; margin: 0; border-bottom: 2px solid #345443;
  color: var(--home-ink); font-size: 1.3rem; font-weight: 700; letter-spacing: -.035em;
}
.year-head :is(h2,h3,p) { margin: 0; }
.year-head :is(h2,h3) { font-size: inherit; }
.year-head :is(small,span,p) { color: var(--home-muted); font-size: .92rem; font-weight: 500; }
.program-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(85px, auto);
  column-gap: clamp(16px, 4vw, 52px); align-items: center;
  padding: 20px clamp(5px, 1.5vw, 20px); margin: 0; min-height: 90px;
  border-bottom: 1px solid var(--home-line); color: inherit; text-decoration: none;
}
.program-row:hover, .program-row:focus-within { background: #f0f5ed; }
.program-main { min-width: 0; }
.program-category { display: block; color: var(--home-muted); font-size: .85rem; font-weight: 620; line-height: 1.5; }
.program-title { display: block; margin: 2px 0; color: var(--home-ink); font-size: 1.28rem; font-weight: 710; line-height: 1.4; letter-spacing: -.035em; }
.program-title a { color: inherit; text-decoration: none; }
.program-title a::after { content: ""; position: absolute; inset: 0; }
.program-row:hover .program-title { color: var(--home-accent); text-decoration: underline; text-underline-offset: .19em; }
.program-summary { display: block; margin: 3px 0 0; color: var(--home-muted); font-size: 1rem; line-height: 1.55; }
.program-amount { color: var(--home-ink); font-size: 1rem; font-weight: 650; text-align: right; line-height: 1.45; }
.program-status { justify-self: end; padding: 4px 10px; border-radius: 5px; color: #365940; background: #e8f1e4; font-size: .86rem; font-weight: 620; line-height: 1.4; text-align: center; }
.program-status[data-state="closed"] { color: #565c56; background: #e9ebe6; }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1.25fr .75fr; min-height: 300px; }
  .home-hero-art { padding-right: 12px; }
  .home-hero-art img { width: min(93%, 285px); }
  .tool-content { display: grid; justify-items: start; gap: 1px; }
  .home-catalog-controls { gap: 12px; }
  .program-row { column-gap: 20px; }
}
@media (max-width: 620px) {
  .home-page { width: calc(100% - 36px); padding-top: 17px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 18px; }
  .home-hero-copy { padding: 28px 20px 20px; }
  .home-hero h1 { width: 75%; font-size: clamp(2rem, 6.9vw, 2.7rem); line-height: 1.16; letter-spacing: -.06em; }
  .home-hero-copy > p { max-width: 75%; margin: 12px 0 22px; font-size: 1rem; line-height: 1.55; }
  .home-hero-art { position: absolute; right: 0; top: 19px; width: 32%; height: 112px; margin: 0; padding: 0; }
  .home-hero-art img { width: 93%; }
  .home-hero-art::before { width: 160%; height: 150%; top: -18%; right: -50%; }
  .home-tools { margin-top: 12px; padding: 3px 14px; border-radius: 14px; grid-template-columns: 1fr; }
  .home-deadline, .home-calculator-link { min-height: 61px; gap: 12px; padding: 9px 2px; }
  .home-deadline { border-right: 0; border-bottom: 1px solid var(--home-line); }
  .tool-icon { flex-basis: 33px; width: 33px; height: 33px; border-radius: 9px; }
  .tool-content { display: flex; gap: 2px 9px; }
  .tool-content strong { font-size: 1rem; }
  .tool-label, .deadline-link span { font-size: .85rem; }
  .home-catalog { margin-top: 36px; }
  .home-catalog-heading { align-items: baseline; }
  .home-archive-link { font-size: .85rem; }
  .home-catalog-controls { margin: 17px 0; gap: 7px; }
  .home-catalog-filters { gap: 5px; }
  .home-catalog-filters [data-group] { padding: 7px 12px; min-height: 38px; font-size: .9rem; }
  .program-row { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 17px 2px; }
  .program-main { grid-column: 1 / -1; }
  .program-amount { justify-self: start; text-align: left; }
  .program-title { font-size: 1.18rem; }
  .program-summary { font-size: .96rem; }
}
@media (max-width: 360px) {
  .home-page { width: calc(100% - 24px); }
  .home-hero-copy { padding-inline: 15px; }
  .home-hero-art { width: 25%; }
  .home-search { gap: 10px; padding-left: 13px; }
  .home-search button { min-width: 51px; padding-inline: 11px; }
  .home-catalog-heading, .home-catalog-filters { flex-wrap: wrap; }
}
