@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("../fonts/LINESeedKR-Rg.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("../fonts/LINESeedKR-Bd.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ivory: #fffaf2;
  --sand: #f4eee4;
  --ink: #243c38;
  --forest: #1c6258;
  --terra: #a94d36;
  --peach: #ffd8c6;
  --sage: #dbe8b3;
  --line: #d8d0c3;
  --paper: #fffefb;
  --page-gutter: 18px;
  --content-rail: min(calc(100% - (var(--page-gutter) * 2)), 1320px);
  --motion-duration: 400ms;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "LINE Seed Sans KR", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
}
body.filter-modal-open { overflow: hidden; }
body.assistant-modal-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button,
input { font: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

.assistant-shell { width: var(--content-rail); margin: 2rem auto; }
.assistant-panel { min-width: 0; background: var(--paper); overflow-wrap: anywhere; }
.assistant-panel__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--line);
}
.assistant-panel__header > div { min-width: 0; }
.assistant-panel__header h1, .assistant-panel__header h2 { font-size: 1.4rem; margin: 0; }
.assistant-panel__header .eyebrow { margin: 0 0 .5rem; }
.assistant-panel__body { min-width: 0; padding: 0 1.25rem 1.5rem; }
.assistant-panel a, .assistant-panel button {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center;
  justify-content: center; padding: .6rem .75rem; border-radius: 0;
}
.assistant-panel button {
  border: 1px solid var(--forest); background: var(--forest); color: var(--paper);
  cursor: pointer; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
}
.assistant-panel button:disabled { opacity: .6; cursor: wait; }
.assistant-panel__close { flex: 0 0 auto; }
.assistant-privacy-notice { color: var(--terra); font-size: .875rem; }
.assistant-conditions ul { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.assistant-conditions li, .assistant-panel form { min-width: 0; max-width: 100%; }
.assistant-conditions button { background: var(--sand); color: var(--ink); }
.assistant-question, .assistant-error { background: var(--sand); padding: 1rem; margin: 1rem 0; }
.assistant-error { border-left: 3px solid var(--terra); }
.assistant-results { min-width: 0; margin: 1.5rem 0; }
.assistant-program-card, .assistant-resource-card { min-width: 0; border-top: 1px solid var(--line); padding: 1rem 0; }
.assistant-panel .assistant-program-card__link,
.assistant-panel .assistant-resource-card__link {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start;
  gap: .75rem; padding: 0; text-decoration: none;
}
.assistant-program-card__link > *, .assistant-resource-card__link > * { min-width: 0; }
.assistant-program-card__link img, .assistant-resource-card__link img { width: 80px; aspect-ratio: 1; object-fit: cover; }
.assistant-program-card h4, .assistant-resource-card h4 { margin: 0; }
.assistant-panel ul { padding-left: 1.25rem; }
.assistant-panel .assistant-conditions ul { padding-left: 0; }
.assistant-message-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin-top: 1.5rem; }
.assistant-message-form label { grid-column: 1 / -1; font-weight: 700; }
.assistant-message-form input:not([type="hidden"]) {
  width: 100%; min-width: 0; min-height: 44px; padding: .5rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.assistant-reset-form { margin-top: .75rem; }
.assistant-panel .assistant-reset-form button { background: transparent; color: var(--forest); }
#assistant-pending { padding: 0 1.25rem; margin: 0; }
#assistant-pending:empty { display: none; }
.motion-ready .assistant-shell--open {
  position: fixed; inset: 0; z-index: 110; width: 100%; margin: 0;
  display: flex; justify-content: flex-end; background: rgb(36 60 56 / .35);
}
.motion-ready .assistant-shell--open .assistant-panel {
  width: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1200px) {
  .motion-ready .assistant-shell--open .assistant-panel { width: min(480px, 42vw); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .assistant-shell--open > .assistant-panel { animation: assistant-enter 180ms ease-out; }
  @keyframes assistant-enter { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-panel { animation: none; transition: none; }
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem max(var(--page-gutter), calc((100vw - 1320px) / 2));
  background: var(--ink);
  color: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
}
.brand__wordmark {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand__mark { width: 2rem; height: 2rem; flex: 0 0 auto; }
.brand__tile--forest { fill: var(--sage); }
.brand__tile--terra { fill: var(--peach); }
.brand__center { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem clamp(0.7rem, 2vw, 1.25rem);
}
.site-header nav a,
.site-footer nav a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: clamp(0.72rem, 2.7vw, 1rem);
  text-underline-offset: 0.3em;
  white-space: nowrap;
}
.global-message:empty { display: none; }

.hero,
.section,
.discovery__inner {
  width: var(--content-rail);
  margin-inline: auto;
}
.content-rail {
  width: var(--content-rail);
  margin-inline: auto;
}
.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3.25rem, 8vw, 7rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}
.hero h1 {
  margin: 0.25rem 0 1.25rem;
  font-size: clamp(2.05rem, 8.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero__support > p { max-width: 38rem; font-size: clamp(0.96rem, 2.5vw, 1.08rem); }
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--terra);
  font-size: clamp(0.65rem, 2.25vw, 0.78rem);
  font-weight: 700;
  letter-spacing: clamp(0.08em, 0.8vw, 0.16em);
  white-space: nowrap;
}
.hero__actions,
.search-panel__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
  padding: 0.7rem clamp(0.85rem, 3vw, 1.15rem);
  font-size: clamp(0.84rem, 3vw, 1rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.button--primary { background: var(--forest); color: white; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-underline-offset: 0.35em; white-space: nowrap; }
.hero__visual {
  position: relative;
  isolation: isolate;
  min-height: clamp(22rem, 92vw, 30rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
  padding: clamp(1.1rem, 5vw, 2.5rem);
}
.hero__label {
  position: absolute;
  z-index: 2;
  top: clamp(0.65rem, 2vw, 1rem);
  left: clamp(0.75rem, 2.5vw, 1.25rem);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.hero-decoration { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-decoration__orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--forest) 22%, transparent);
  border-radius: 50%;
}
.hero-decoration__orbit--outer { width: 85%; aspect-ratio: 1; top: -25%; right: -21%; }
.hero-decoration__orbit--inner { width: 54%; aspect-ratio: 1; bottom: -21%; left: -12%; }
.hero-decoration__dot {
  position: absolute;
  width: 0.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--terra) 52%, transparent);
}
.hero-decoration__dot--one { top: 18%; right: 10%; }
.hero-decoration__dot--two { right: 43%; bottom: 9%; }
.hero-decoration__dot--three { top: 32%; left: 5%; background: color-mix(in srgb, var(--forest) 45%, transparent); }
.hero-note-cluster {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.2vw, 20px);
  padding-top: 1.5rem;
}
.hero-note {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.3rem;
  border: 1px solid var(--ink);
  padding: clamp(0.75rem, 3vw, 1.2rem);
  box-shadow: clamp(0.35rem, 1.5vw, 0.55rem) clamp(0.35rem, 1.5vw, 0.55rem) 0 var(--ink);
}
.hero-note span,
.hero-note strong,
.hero-note small { white-space: nowrap; }
.hero-note span { font-size: clamp(0.48rem, 1.8vw, 0.7rem); font-weight: 700; letter-spacing: clamp(0.04em, 0.5vw, 0.12em); }
.hero-note strong { font-size: clamp(1rem, 4.5vw, 2.15rem); line-height: 1.05; }
.hero-note small { font-size: clamp(0.64rem, 2vw, 0.82rem); }
.hero-note--programs { grid-column: 1 / -1; min-height: 10rem; background: var(--paper); }
.hero-note--science { min-height: 8rem; background: var(--sage); }
.hero-note--path { min-height: 8rem; background: var(--peach); }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.categories { padding-top: clamp(2rem, 3vw, 3rem); }
.section h2,
.information-note h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.3rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.category-grid {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
}
.category-tile {
  position: relative;
  min-width: 0;
  min-height: 11rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  border-bottom: 1px solid var(--ink);
  padding: 1rem;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.category-tile:nth-child(2n) { background: var(--sand); }
.category-tile__copy { min-width: 0; display: grid; align-content: start; }
.category-tile__sequence { color: var(--terra); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.category-tile__label { margin-top: 0.35rem; font-size: clamp(1rem, 2vw, 1.25rem); white-space: nowrap; }
.category-tile__descriptor { margin-top: 0.25rem; font-size: clamp(0.68rem, 1.25vw, 0.82rem); white-space: nowrap; }
.category-tile__symbol { width: clamp(3.25rem, 6vw, 4.5rem); aspect-ratio: 1; display: grid; place-items: center; background: var(--sage); border: 1px solid var(--ink); }
.category-tile:nth-child(2) .category-tile__symbol,
.category-tile:nth-child(4) .category-tile__symbol { background: var(--peach); }
.category-tile__symbol svg { width: 78%; height: 78%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.category-symbol__ink { fill: currentColor; }
.category-symbol__paper { fill: var(--paper); }
.category-symbol__sage { fill: var(--sage); }
.category-tile__arrow { grid-column: 2; align-self: end; font-size: 1.25rem; line-height: 1; }
.category-tile:focus-visible { z-index: 1; background: var(--sage); }

.resource-exploration { border-top: 1px solid var(--ink); }
.resource-exploration__intro {
  display: grid;
  gap: 0.8rem;
}
.resource-exploration__intro > p { max-width: 44rem; margin: 0; }
.resource-entry-grid {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
}
.resource-entry {
  min-width: 44px;
  min-height: 7.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.resource-entry:nth-child(2n) { background: var(--sand); }
.resource-entry__copy { min-width: 0; display: grid; gap: 0.35rem; }
.resource-entry__copy strong {
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1.2;
}
.resource-entry__descriptor { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.resource-entry__arrow { align-self: center; font-size: 1.35rem; line-height: 1; }

.discovery {
  width: 100%;
  padding: 0;
}
.discovery__inner { display: grid; }
.search-panel,
.ai-panel { padding: clamp(2.75rem, 8vw, 5rem) max(var(--page-gutter), calc((100vw - 1320px) / 2)); }
.search-panel { background: var(--sand); }
.ai-panel { background: var(--peach); }
.search-panel h2,
.ai-panel h2 { font-size: clamp(1.18rem, 4.4vw, 3rem); }
.search-panel form { margin-top: 1.5rem; }
.search-panel label { display: block; font-weight: 700; }
.search-panel input {
  min-width: 0;
  min-height: 48px;
  flex: 1 1 15rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 0.7rem 0.85rem;
}
.ai-panel button {
  min-height: 44px;
  margin-top: 1rem;
  border: 1px solid var(--ink);
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: not-allowed;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.program-grid,
.resource-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.program-card,
.resource-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.program-card__link,
.resource-card__link {
  min-width: 44px;
  min-height: 44px;
  display: block;
  height: 100%;
  text-decoration: none;
}
.program-card__image,
.resource-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sand);
}
.program-card__status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.55rem;
  background: var(--terra);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}
.program-card__body,
.resource-card__body { padding: 1.25rem; }
.program-card__body h3,
.resource-card__body h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.program-card__body p { margin: 0.5rem 0 0; }
.program-card__meta,
.resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.program-card__meta li,
.resource-card__meta li {
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 0.2rem 0.45rem;
  font-size: 0.82rem;
}

.service-guide { border-top: 1px solid var(--line); }
.service-steps { display: grid; gap: 1.5rem; margin-top: 2rem; }
.service-steps article { border-top: 4px solid var(--forest); padding-top: 1rem; }
.service-steps h3 { margin: 0; font-size: 1.25rem; white-space: nowrap; }

.service-guide-page { width: var(--content-rail); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 6rem); }
.service-guide-hero { max-width: none; padding-bottom: clamp(3rem, 7vw, 6rem); }
.service-guide-hero h1 {
  margin: 0;
  font-size: clamp(1rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.service-guide-hero > p:not(.eyebrow) { max-width: 42rem; }
.service-guide-section { border-top: 1px solid var(--ink); padding-block: clamp(2.5rem, 6vw, 5rem); }
.service-guide-section h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.1; }
.service-guide-steps { display: grid; gap: 1rem; margin-top: 2rem; }
.service-guide-step { min-height: 13rem; border: 1px solid var(--ink); padding: 1.25rem; background: var(--paper); }
.service-guide-step span { color: var(--terra); font-weight: 700; }
.service-guide-step h3 { margin: 2rem 0 0.5rem; }
.service-guide-facts { display: grid; gap: 0; margin: 2rem 0 0; }
.service-guide-facts > div { border-top: 1px solid var(--line); padding-block: 1rem; }
.service-guide-facts dt { font-weight: 700; }
.service-guide-facts dd { margin: 0.25rem 0 0; }
.service-guide-section--notice { background: var(--sand); padding-inline: clamp(1rem, 4vw, 2rem); }
.service-guide-section--ai {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: var(--peach);
}

.information-note {
  padding: clamp(3rem, 8vw, 6rem) max(var(--page-gutter), calc((100vw - 1320px) / 2));
  background: var(--ink);
  color: var(--paper);
}
.information-note h2 { font-size: clamp(1rem, 4.7vw, 3.5rem); }
.information-note .eyebrow { color: var(--peach); }
.information-note p:last-child { max-width: 48rem; }
.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 3.5rem 1rem;
  background: #142925;
  color: var(--paper);
  text-align: center;
}
.site-footer > * { max-width: 52rem; margin: 0; }
.site-footer > strong { font-size: 1.5rem; letter-spacing: 0.08em; }
.error-page { width: min(var(--content-rail), 760px); min-height: 50vh; margin: auto; padding-block: 6rem; }
.error-page a,
.detail-breadcrumb a,
.search-error-summary a {
  min-width: 44px;
}
.error-page a,
.detail-breadcrumb a,
.detail-breadcrumb__separator,
.search-error-summary a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.detail-page { width: var(--content-rail); margin-inline: auto; padding-block: clamp(2rem, 5vw, 5rem); }
.detail-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 700; }
.detail-breadcrumb a { text-underline-offset: 0.3em; }
.detail-breadcrumb__separator { line-height: 1; }
.detail-layout { display: grid; gap: 1.5rem; }
.detail-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); }
.detail-heading { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.detail-heading h1 { margin: 0.4rem 0 1rem; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.04em; }
.detail-heading p { margin: 0.25rem 0; }
.detail-heading__status { display: inline-block; margin: 0 !important; padding: 0.3rem 0.55rem; background: var(--terra); color: var(--paper); font-size: 0.82rem; font-weight: 700; }
.detail-summary { border: 1px solid var(--line); background: var(--paper); padding: 1.25rem; }
.detail-summary h2,
.detail-section h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.8rem); }
.detail-summary dl,
.detail-facts { margin: 1rem 0 0; }
.detail-summary dl > div,
.detail-facts > div { display: grid; gap: 0.3rem; border-top: 1px solid var(--line); padding-block: 0.8rem; }
.detail-summary dt,
.detail-facts dt { font-weight: 700; }
.detail-summary dd,
.detail-facts dd { margin: 0; }
.detail-summary__official { width: 100%; margin-top: 0.2rem; }
.detail-content { display: grid; gap: 2.5rem; }
.detail-section { display: grid; gap: 1rem; }
.detail-description { margin: 0; white-space: pre-line; }
.detail-confirmation { margin: 0; border-left: 4px solid var(--terra); background: var(--sand); padding: 1rem; font-weight: 700; }
.program-place a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--ink);
  padding: 1rem;
  background: var(--paper);
  text-decoration: none;
}
.program-place strong { font-size: 1.15rem; }
.program-place span { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.resource-detail-page { overflow-wrap: break-word; }
.resource-detail-layout { min-width: 0; }
.resource-detail-heading h1 { white-space: normal; overflow-wrap: anywhere; }
.resource-detail-summary { border-top: 4px solid var(--forest); }
.resource-detail-content { min-width: 0; }
.resource-information-notice { max-width: 52rem; }
.resource-related-programs {
  border-top: 1px solid var(--ink);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.related-programs-state {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  border-left: 4px solid var(--forest);
  padding: 0.8rem 1rem;
  background: var(--sand);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.search-page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.search-page__heading { margin-bottom: 2rem; }
.search-page__heading h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -0.05em; }
.search-page__heading p:last-child { max-width: 42rem; }
.search-layout { display: grid; gap: 1.5rem; }
.search-filter-panel { position: relative; border: 1px solid var(--line); background: var(--paper); }
.search-filter-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.search-filter-trigger {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 700;
}
.search-filter-toggle:focus-visible + .search-filter-trigger { outline: 3px solid var(--terra); outline-offset: -3px; }
.search-filter-sidebar {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  align-items: end;
  background: rgb(20 41 37 / 55%);
}
.search-filter-toggle:checked ~ .search-filter-sidebar { display: grid; }
.filter-panel {
  width: 100%;
  max-height: calc(100dvh - 1.5rem);
  display: grid;
  gap: 1.25rem;
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 1rem;
}
.filter-panel__header {
  position: sticky;
  z-index: 1;
  top: -1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding-block: 0.35rem 0.75rem;
}
.filter-panel__header h2 { margin: 0; font-size: 1.25rem; }
.filter-panel__close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.no-js .search-filter-trigger,
.no-js .filter-panel__close { display: none; }
.no-js .search-filter-sidebar {
  position: static;
  display: block;
  background: transparent;
}
.no-js .filter-panel { max-height: none; }
.filter-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-field legend,
.filter-field > label { display: block; margin-bottom: 0.45rem; font-weight: 700; }
.filter-field > label + select,
.filter-field > label + input { margin-bottom: 0.75rem; }
.filter-field input[type="search"],
.filter-field input[type="text"],
.filter-field input[type="date"],
.filter-field select,
.search-results__toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.7rem;
}
.check-control { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; }
.check-control input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--forest); }
.field-error { margin: 0.4rem 0 0; color: #9d241b; font-size: 0.9rem; font-weight: 700; }
.search-results { min-width: 0; }
.search-error-summary { margin-bottom: 1rem; border: 2px solid #9d241b; padding: 1rem; background: #fff1ed; color: #68170f; }
.search-error-summary h2 { margin: 0; font-size: 1.1rem; }
.search-error-summary ul { margin: 0.6rem 0 0; padding-left: 1.25rem; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.filter-chips ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.filter-chips a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--ink); padding: 0.35rem 0.6rem; color: inherit; font-weight: 700; text-decoration: none; }
.filter-chips__clear { border-color: transparent !important; text-decoration: underline !important; }
.search-results__toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.8rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.search-results__toolbar h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 2rem); }
.search-results__toolbar label { display: grid; gap: 0.35rem; font-weight: 700; }
.search-results__toolbar select { min-width: 10rem; }
.search-results__sort-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}
.search-results__sort { display: grid; gap: 0.35rem; }
.button--compact { min-height: 44px; }
.resource-sort-caution {
  margin: 0.75rem 0 0;
  border-left: 3px solid var(--terra);
  padding-left: 0.75rem;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: 0.9rem;
}
.search-results__grid { grid-template-columns: 1fr; }
.search-empty-state { margin-top: 1.5rem; border: 1px solid var(--line); padding: clamp(1.5rem, 5vw, 3rem); background: var(--sand); text-align: center; }
.search-empty-state h3 { margin-top: 0; font-size: 1.4rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.pagination a { display: inline-grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--ink); padding: 0.35rem; color: inherit; text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--forest); color: var(--paper); }

@keyframes kinetic-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-motion] {
    animation: kinetic-enter var(--motion-duration) cubic-bezier(.2, .75, .25, 1) both;
    animation-delay: var(--motion-delay, 0ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  [data-motion], .hero-note { animation: none !important; transform: none !important; }
  .category-tile:hover,
  .category-tile:focus-visible,
  .category-tile:hover .category-tile__arrow,
  .category-tile:focus-visible .category-tile__arrow { transform: none !important; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .program-card,
  .resource-card { transition: transform 180ms ease, box-shadow 180ms ease; }
  .program-card:hover,
  .resource-card:hover { transform: translateY(-3px); box-shadow: 0 0.7rem 1.4rem rgb(36 60 56 / 12%); }
  .program-card:focus-within,
  .resource-card:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--terra); }
  .category-tile,
  .category-tile__arrow,
  .resource-entry,
  .resource-entry__arrow { transition: transform 180ms ease, background-color 180ms ease; }
  .category-tile:hover { transform: translateY(-3px); background: var(--sage); }
  .category-tile:hover .category-tile__arrow,
  .category-tile:focus-visible .category-tile__arrow { transform: translateX(4px); }
  .resource-entry:hover,
  .resource-entry:focus-visible { background: var(--sage); }
  .resource-entry:hover .resource-entry__arrow,
  .resource-entry:focus-visible .resource-entry__arrow { transform: translateX(4px); }
}

@media (min-width: 768px) {
  :root { --page-gutter: 34px; }
  .site-header { flex-wrap: nowrap; }
  .category-grid,
  .resource-entry-grid { border-left: 1px solid var(--ink); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-tile { border-right: 1px solid var(--ink); padding-inline: 1rem; }
  .resource-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-entry { border-right: 1px solid var(--ink); }
  .discovery { background: linear-gradient(to right, var(--sand) 0 50%, var(--peach) 50%); }
  .discovery__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-panel,
  .ai-panel { background: transparent; }
  .search-panel { padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem) 0; }
  .ai-panel {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
  }
  .search-panel h2,
  .ai-panel h2 { font-size: clamp(1rem, 2.4vw, 3rem); }
  .program-grid,
  .service-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-guide-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-guide-facts > div { display: grid; grid-template-columns: minmax(8rem, 0.35fr) 1fr; gap: 1rem; }
  .search-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(26rem, 0.95fr); align-items: center; }
  .hero__visual { min-height: clamp(25rem, 43vw, 32rem); }
  .hero-note-cluster { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .hero-note--programs { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
  .hero-note--science { grid-column: 2; grid-row: 1; min-height: 0; }
  .hero-note--path { grid-column: 2; grid-row: 2; min-height: 0; }
  .hero-note--science span,
  .hero-note--path span { font-size: clamp(0.42rem, 0.62vw, 0.68rem); }
  .hero-note--science strong,
  .hero-note--path strong { font-size: clamp(0.82rem, 1.45vw, 1.35rem); }
}

@media (min-width: 1200px) {
  :root { --page-gutter: 40px; }
  .category-grid { grid-template-columns: repeat(5, 1fr); }
  .category-tile { min-height: 13rem; }
  .resource-entry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-layout { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); align-items: start; }
  .search-filter-panel { display: block; border: 0; background: transparent; }
  .search-filter-toggle,
  .search-filter-trigger { display: none; }
  .search-filter-panel .search-filter-sidebar { display: block; position: sticky; top: 1rem; background: transparent; }
  .search-filter-panel .filter-panel { max-height: calc(100vh - 2rem); border-color: var(--line); }
  .filter-panel__header { display: none; }
  .search-results__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; }
  .detail-image,
  .detail-heading,
  .detail-content { grid-column: 1; }
  .detail-summary { position: sticky; top: 96px; grid-column: 2; grid-row: 1 / span 3; }
}

@media (max-width: 767px) {
  .discovery__inner { width: 100%; }
}

@media (max-width: 420px) {
  .site-header { justify-content: center; }
  .site-header nav { width: 100%; }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  .hero-note-cluster { padding-right: 0.4rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 220px) {
  :root { --content-rail: min(calc(100% - 1rem), 1320px); }
  .site-header { padding-inline: 0.5rem; }
  .site-header nav { gap: 0.25rem 0.5rem; }
  .brand { gap: 0.4rem; }
  .brand__wordmark { font-size: 1rem; }
  .brand__mark { width: 1.5rem; height: 1.5rem; }
  .hero { gap: 1.25rem; padding-block: 2rem; }
  .hero h1 { font-size: clamp(1.15rem, 11vw, 1.45rem); }
  .hero__visual { min-height: 30rem; padding: 0.75rem; }
  .hero-note-cluster { grid-template-columns: 1fr; padding-right: 0.3rem; }
  .search-panel,
  .ai-panel { min-width: 0; }
  .hero-note--programs,
  .hero-note--science,
  .hero-note--path { grid-column: 1; min-height: 6rem; }
  .hero-note--programs { min-height: 8rem; }
  .section h2,
  .information-note h2,
  .search-panel h2,
  .ai-panel h2 { font-size: clamp(1rem, 8vw, 1.25rem); }
  .site-header nav a,
  .site-footer nav a,
  .eyebrow,
  .button,
  .text-link,
  .hero-note span,
  .hero-note strong,
  .hero-note small,
  .section h2,
  .information-note h2,
  .discovery h2,
  .service-steps h3,
  .ai-panel button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero h1 span { white-space: nowrap; }
}

/* Newsletter forms and plain-text posts. */
.newsletter-shell { width: min(100% - 2rem, 56rem); margin: 3rem auto; }
.newsletter-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.newsletter-list { list-style: none; padding: 0; }
.newsletter-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border, #d8dfd9); }
.newsletter-list a { overflow-wrap: anywhere; }
.newsletter-list time { white-space: nowrap; }
.newsletter-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; margin: 2rem 0; }
.newsletter-image { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; }
.newsletter-form { display: grid; gap: .75rem; margin: 1.5rem 0; }
.newsletter-form input, .newsletter-form textarea { max-width: 100%; min-width: 0; padding: .75rem; font: inherit; }
.newsletter-form textarea { resize: vertical; }
.newsletter-form button { justify-self: start; }
@media (max-width: 480px) { .newsletter-list li { flex-direction: column; gap: .25rem; } }
