:root {
  color-scheme: light;
  --navy: #12344d;
  --navy-deep: #08273d;
  --navy-soft: #e9f0f5;
  --green: #176b57;
  --green-dark: #0d5545;
  --green-soft: #e8f5f0;
  --orange: #b55432;
  --orange-dark: #904025;
  --orange-soft: #fff0e8;
  --gold: #f0b429;
  --gold-soft: #fff6d9;
  --sky: #dff3fb;
  --coral: #df684e;
  --ink: #172632;
  --muted: #5a6b77;
  --line: #cdd9e1;
  --surface: #ffffff;
  --canvas: #f4f8fa;
  --focus: #f0b429;
  --success: #167052;
  --review: #8b5f04;
  --review-soft: #fff5d8;
  --shadow: 0 18px 54px rgba(8, 39, 61, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(240, 180, 41, .18), transparent 24rem),
    radial-gradient(circle at 95% 24%, rgba(23, 107, 87, .11), transparent 26rem),
    linear-gradient(180deg, #fbfdff 0%, var(--canvas) 56%, #fffaf0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #9dafbb;
  border-radius: 10px;
}

input[type="checkbox"], input[type="radio"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-deep);
  border-radius: 8px;
  transform: translateY(-150%);
}

.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;
}

[hidden] { display: none !important; }

.site-header {
  color: #fff;
  background: var(--navy-deep);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 8px 26px rgba(8, 39, 61, .16);
}

.header-row {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 50%;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand strong { display: block; font-size: 1.08rem; }
.brand small { display: block; color: rgba(255,255,255,.72); font-size: .8rem; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.demo-label { color: rgba(255,255,255,.72); font-size: .82rem; }

.header-button {
  min-height: 44px;
  padding: 9px 16px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  font-weight: 800;
}

.header-button:hover { background: rgba(255,255,255,.1); }

.department-nav {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.department-tab {
  min-height: 58px;
  padding: 13px 20px;
  color: #fff;
  background: transparent;
  border: 0;
  border-top: 4px solid transparent;
  font-weight: 850;
  letter-spacing: .005em;
}

.department-tab:hover { background: rgba(255,255,255,.08); }
.department-tab[aria-current="page"] { color: var(--navy-deep); background: #fff; }
.nutrition-tab[aria-current="page"] { border-top-color: var(--green); }
.youth-tab[aria-current="page"] { border-top-color: var(--orange); }

.demo-notice {
  padding: 9px 20px;
  color: #5b4302;
  background: #fff4c9;
  border-bottom: 1px solid #e3cb68;
  text-align: center;
  font-size: .9rem;
}

main {
  width: min(1180px, calc(100% - 40px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 34px 0 76px;
}

.view { animation: reveal .22s ease-out; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.youth-text { color: var(--orange); }

h1, h2, h3 { color: var(--navy-deep); line-height: 1.13; }
h1 { margin: 0 0 16px; font-size: clamp(2.35rem, 5.7vw, 4.9rem); letter-spacing: -.045em; }
h2 { margin: 0 0 10px; font-size: 1.48rem; letter-spacing: -.02em; }
p { margin-top: 0; }
.lead { max-width: 720px; color: var(--muted); font-size: 1.08rem; }

.community-hero {
  min-height: 520px;
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 24px 68px rgba(8, 39, 61, .16);
}

.community-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 14% 8%, rgba(240, 180, 41, .18), transparent 12rem),
    linear-gradient(145deg, #fff 0%, #f7fbfd 100%);
}

.community-hero-copy::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: 32px;
  width: 74px;
  height: 74px;
  border: 14px solid rgba(240, 180, 41, .34);
  border-radius: 50%;
  pointer-events: none;
}

.community-hero h1 {
  max-width: 660px;
  font-size: clamp(2.65rem, 5vw, 4.55rem);
}

.community-hero .lead { max-width: 620px; font-size: 1.12rem; }

.location-pill {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 7px 13px;
  color: var(--navy-deep);
  background: var(--gold-soft);
  border: 1px solid #e8c65c;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 900;
}

.community-hero-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.community-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 39, 61, .74) 100%);
  pointer-events: none;
}

.community-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  object-position: 57% center;
}

.community-hero-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 23px;
  left: 24px;
  color: #fff;
}

.community-hero-photo figcaption strong,
.community-hero-photo figcaption span { display: block; }
.community-hero-photo figcaption strong { font-size: 1.2rem; }
.community-hero-photo figcaption span { margin-top: 2px; color: rgba(255,255,255,.8); font-size: .9rem; }

.section-intro {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr);
  gap: 28px;
  align-items: end;
}

.section-intro h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.65rem); }
.section-intro > p { max-width: 620px; margin: 0; color: var(--muted); }

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 30px;
}

.help-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.help-panel h2 { color: #fff; }
.help-panel p { margin: 0; color: rgba(255,255,255,.8); }
.help-number { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; font-weight: 900; }

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

.program-card,
.content-card,
.form-card,
.dashboard-main,
.dashboard-side,
.application-status-card,
.staff-workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.program-card { position: relative; padding: 32px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.program-card:hover { transform: translateY(-3px); box-shadow: 0 24px 62px rgba(8, 39, 61, .16); }
.nutrition-card { background: linear-gradient(145deg, #fff 55%, var(--green-soft)); border-top: 8px solid var(--green); }
.youth-card { background: linear-gradient(145deg, #fff 55%, var(--orange-soft)); border-top: 8px solid var(--orange); }
.program-card h2 { font-size: 1.75rem; }
.program-card > p:not(.eyebrow) { color: var(--muted); }

.program-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 900;
}

.nutrition-icon { color: var(--green-dark); background: var(--green-soft); }
.youth-icon { color: var(--orange-dark); background: var(--orange-soft); }

.feature-list, .check-list { margin: 19px 0 0; padding: 0; list-style: none; }
.feature-list li, .check-list li { position: relative; margin: 10px 0; padding-left: 25px; }
.feature-list li::before, .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.button {
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--navy); border: 2px solid var(--navy); }
.button-green { color: #fff; background: var(--green); border: 2px solid var(--green); }
.button-orange { color: #fff; background: var(--orange); border: 2px solid var(--orange); }
.button-quiet { color: var(--navy); background: transparent; border: 2px solid var(--line); }
.button-light { color: var(--navy-deep); background: #fff; border: 2px solid #fff; }
.full-button { width: 100%; }

.text-button {
  min-height: 34px;
  padding: 3px 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shared-process {
  margin-top: 22px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 24px;
  align-items: center;
  color: #fff;
  background: var(--navy-deep);
  border-radius: var(--radius);
}

.shared-process h2 { margin: 0; color: #fff; }
.shared-process .eyebrow { color: #8cd5c3; }
.process-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.process-list li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.process-list span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--navy-deep); background: var(--gold); border-radius: 50%; font-weight: 900; }
.process-list strong { font-size: .9rem; line-height: 1.25; }

.breadcrumb { margin: -10px 0 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; }
.breadcrumb button { min-height: 34px; padding: 0; color: var(--navy); background: transparent; border: 0; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.department-hero { position: relative; padding: 38px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 38px; align-items: center; color: #fff; border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.department-hero::after { content: ""; position: absolute; width: 230px; height: 230px; right: -70px; bottom: -95px; border: 34px solid rgba(255,255,255,.1); border-radius: 50%; }
.nutrition-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.youth-hero { background: linear-gradient(135deg, var(--orange-dark), var(--orange)); }
.department-hero h1, .department-hero h2 { color: #fff; }
.department-hero .eyebrow, .department-hero .lead { color: rgba(255,255,255,.86); }
.department-hero .button-row { position: relative; z-index: 1; }
.department-copy { position: relative; z-index: 1; }
.department-visual { position: relative; z-index: 1; display: grid; gap: 12px; }
.department-visual img { width: 100%; aspect-ratio: 3 / 2; display: block; object-fit: cover; border: 6px solid rgba(255,255,255,.18); border-radius: 20px; box-shadow: 0 18px 36px rgba(0,0,0,.19); }
.nutrition-hero .department-visual img { object-position: 45% center; }
.youth-hero .department-visual img { object-position: center 54%; }
.hero-detail { position: relative; z-index: 1; padding: 20px 22px; color: var(--ink); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.55); border-radius: 16px; box-shadow: 0 12px 26px rgba(0,0,0,.1); }
.detail-label { margin-bottom: 12px; font-weight: 900; }
.hero-detail .check-list { margin: 0; }
.hero-detail .check-list li { margin-block: 7px; }
.hero-detail .check-list li::before { color: var(--green); }
.youth-hero .hero-detail .check-list li::before { color: var(--orange); }

.content-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.content-card { padding: 26px; }
.content-card p { margin-bottom: 0; color: var(--muted); }
.step-kicker { display: inline-block; margin-bottom: 18px; color: var(--green); font-size: 1.7rem; font-weight: 900; }
.youth-step { color: var(--orange); }

.narrow-view { width: min(920px, 100%); margin: 0 auto; }
.login-layout { display: grid; grid-template-columns: 1fr .8fr; align-items: stretch; }
.login-layout .form-card { padding: 38px; border-radius: 20px 0 0 20px; }
.login-layout h1 { font-size: clamp(2.25rem, 5vw, 3.7rem); }
.form-intro { color: var(--muted); }
.form-card label:not(.checkbox-label):not(.choice-card) { display: block; margin: 17px 0 7px; font-weight: 800; }
.form-card form { margin-top: 24px; }
.form-options { margin: 16px 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.checkbox-label { display: inline-flex; align-items: flex-start; gap: 9px; }
.login-aside { padding: 38px; color: #fff; border-radius: 0 20px 20px 0; }
.nutrition-aside { background: var(--green-dark); }
.login-aside h2 { color: #fff; font-size: 2rem; }
.login-aside .eyebrow, .login-aside p { color: rgba(255,255,255,.82); }
.account-prompt { margin: 20px 0 0; color: var(--muted); text-align: center; }

.portal-heading { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.portal-heading h1 { margin-bottom: 8px; font-size: clamp(2.2rem, 5vw, 4rem); }
.portal-heading .lead { margin-bottom: 0; }

.status-strip {
  margin-bottom: 20px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--green-soft);
  border: 1px solid #a8d3c6;
  border-radius: 14px;
}

.status-strip div span { display: block; color: var(--muted); font-size: .88rem; }
.status-dot { width: 12px; height: 12px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 5px rgba(22,112,82,.12); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr); gap: 20px; align-items: start; }
.dashboard-main, .dashboard-side, .application-status-card { padding: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 0; }
.section-spacer { margin-top: 36px; }

.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.action-card { min-height: 164px; padding: 19px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.action-card:hover { border-color: var(--green); background: var(--green-soft); }
.action-card strong { margin: 10px 0 6px; color: var(--navy-deep); }
.action-card small { color: var(--muted); line-height: 1.4; }
.action-number { color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }

.dashboard-side h2 { font-size: 1.65rem; }
.detail-list { margin: 22px 0; }
.detail-list div { padding: 12px 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.detail-list dd { margin: 4px 0 0; font-weight: 750; overflow-wrap: anywhere; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .055em; }
td { min-width: 120px; }

.status-badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.status-badge.review { color: #6c4800; background: var(--review-soft); }
.status-badge.approved { color: var(--green-dark); background: var(--green-soft); }
.status-badge.new { color: var(--navy-deep); background: var(--navy-soft); }

.form-view { width: min(900px, 100%); margin: 0 auto; }
.form-heading { margin-bottom: 26px; }
.form-heading h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.wide-form { padding: 34px; }
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
legend { margin-bottom: 16px; color: var(--navy-deep); font-size: 1.25rem; font-weight: 900; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.full-field { grid-column: 1 / -1; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-card { min-height: 84px; padding: 17px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.choice-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 3px; color: var(--muted); }
.certification { margin: 3px 0 24px; padding: 16px; background: var(--navy-soft); border-radius: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.upload-field input { padding: 16px; border-style: dashed; }
.upload-field small { display: block; margin-top: 8px; color: var(--muted); }

.application-progress { margin-bottom: 18px; }
.progress-copy { margin-bottom: 9px; display: flex; justify-content: space-between; gap: 18px; }
.progress-copy span { color: var(--muted); }
.progress-track { height: 10px; overflow: hidden; background: #dae3e9; border-radius: 999px; }
.progress-track span { display: block; width: 33.333%; height: 100%; background: var(--orange); transition: width .2s ease; }
.review-panel { padding: 22px; background: var(--orange-soft); border-radius: 14px; }
.compact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }

.applicant-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 20px; align-items: start; }
.application-status-card h2 { margin-top: 26px; font-size: 1.9rem; }
.status-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); }
.timeline { margin-top: 30px; }
.timeline-item { position: relative; min-height: 68px; display: grid; grid-template-columns: 28px 1fr; gap: 13px; }
.timeline-item::before { content: ""; position: absolute; left: 8px; top: 19px; bottom: -5px; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item > span { position: relative; z-index: 1; width: 18px; height: 18px; margin-top: 3px; background: #fff; border: 3px solid var(--line); border-radius: 50%; }
.timeline-item.complete > span, .timeline-item.current > span { border-color: var(--orange); background: var(--orange); }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small { margin-top: 2px; color: var(--muted); }
.youth-side { border-top: 6px solid var(--orange); }

.staff-program-switch { margin-bottom: 20px; padding: 5px; display: inline-grid; grid-template-columns: repeat(2, 1fr); background: var(--navy-soft); border-radius: 12px; }
.staff-program-switch button { min-height: 44px; padding: 9px 16px; color: var(--navy); background: transparent; border: 0; border-radius: 9px; font-weight: 850; }
.staff-program-switch button[aria-selected="true"] { color: #fff; background: var(--navy); }

.metric-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-grid article { padding: 18px; color: #fff; background: var(--navy-deep); border-radius: 14px; }
.metric-grid span, .metric-grid strong { display: block; }
.metric-grid span { color: rgba(255,255,255,.72); font-size: .82rem; }
.metric-grid strong { margin-top: 5px; font-size: 2rem; }

.staff-workspace { padding: 26px; }
.staff-toolbar { display: grid; grid-template-columns: 1fr minmax(170px, .7fr) minmax(150px, .55fr) auto; gap: 14px; align-items: end; }
.staff-title h2 { margin: 0; }
.filter-group label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 850; }
.staff-alert { margin: 22px 0 12px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: var(--navy-soft); border-radius: 12px; }
.staff-alert span:not(.alert-icon) { display: block; color: var(--muted); font-size: .86rem; }
.alert-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; font-weight: 900; }
.staff-table-wrap { min-height: 250px; }
.empty-state { padding: 38px; color: var(--muted); text-align: center; }

.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 390px; padding: 16px 18px; color: #fff; background: var(--navy-deep); border-left: 6px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); font-weight: 750; }

.site-footer { padding: 24px max(24px, calc((100% - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #fff; background: var(--navy-deep); }
.site-footer strong, .site-footer span { display: block; }
.site-footer span { margin-top: 3px; color: rgba(255,255,255,.7); font-size: .82rem; }
.footer-button { color: #fff; }

@media (max-width: 940px) {
  .community-hero, .home-intro, .department-hero, .dashboard-grid, .applicant-layout { grid-template-columns: 1fr; }
  .community-hero { min-height: 0; }
  .community-hero-photo, .community-hero-photo img { min-height: 410px; }
  .section-intro { grid-template-columns: .9fr 1.1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: repeat(3, 1fr); }
  .staff-toolbar { grid-template-columns: repeat(2, 1fr); }
  .staff-title { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header-row { align-items: flex-start; padding-block: 15px; }
  .header-actions { flex-direction: column; align-items: flex-end; }
  .section-intro, .program-grid, .shared-process, .process-list, .login-layout, .field-grid, .choice-grid { grid-template-columns: 1fr; }
  .login-layout .form-card, .login-aside { border-radius: 20px; }
  .login-aside { margin-top: 14px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 124px; }
  .compact-list { grid-template-columns: 1fr; }
  .portal-heading { align-items: flex-start; flex-direction: column; }
  .staff-toolbar { grid-template-columns: 1fr; }
  .staff-title { grid-column: auto; }
}

@media (max-width: 540px) {
  .header-row, main { width: calc(100% - 28px); }
  .header-row { flex-direction: column; }
  .header-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .demo-label { display: none; }
  .header-button { flex: 1; }
  .department-tab { padding-inline: 9px; font-size: .9rem; }
  main { padding-top: 34px; }
  h1 { font-size: 2.55rem; }
  .community-hero { border-radius: 20px; }
  .community-hero-copy { padding: 27px 23px 31px; }
  .community-hero-copy::after { display: none; }
  .community-hero h1 { font-size: 2.65rem; }
  .community-hero-photo, .community-hero-photo img { min-height: 310px; }
  .community-hero-photo figcaption { right: 18px; bottom: 17px; left: 18px; }
  .program-card, .department-hero, .form-card, .dashboard-main, .dashboard-side, .application-status-card, .staff-workspace { padding: 22px; }
  .department-hero { border-radius: 18px; }
  .program-icon { position: static; margin-bottom: 16px; }
  .button-row, .form-actions { flex-direction: column; }
  .button-row .button, .form-actions .button { width: 100%; }
  .status-strip { grid-template-columns: auto 1fr; }
  .status-strip .text-button { grid-column: 1 / -1; justify-self: start; }
  .form-options { align-items: flex-start; flex-direction: column; }
  .staff-program-switch { width: 100%; grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .status-card-top { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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

/* -------------------------------------------------------------
   Modern civic design direction — September 2026 concept refresh
   ------------------------------------------------------------- */
:root {
  --midnight: #061d38;
  --midnight-2: #092947;
  --navy: #083f78;
  --navy-deep: #061d38;
  --navy-soft: #e9f4ff;
  --cobalt: #0758a5;
  --green: #0a4936;
  --green-dark: #07372a;
  --green-soft: #e8f7ef;
  --orange: #ff716e;
  --orange-dark: #bd4642;
  --orange-soft: #fff0ef;
  --gold: #ddff3f;
  --gold-soft: #f1ffc2;
  --lime: #ddff3f;
  --sun: #ffc73a;
  --coral: #ff716e;
  --ice: #e9f4ff;
  --ink: #102438;
  --muted: #5d6d7c;
  --line: #d6e0e8;
  --canvas: #f3f7fa;
  --surface: #fff;
  --focus: #ffbf24;
  --shadow: 0 22px 60px rgba(6,29,56,.13);
  --radius: 12px;
  --display: Georgia, "Times New Roman", serif;
}

body {
  color: var(--ink);
  background: radial-gradient(circle at 4% 30%, rgba(221,255,63,.09), transparent 24rem), linear-gradient(180deg, #fff 0%, var(--canvas) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input, select, textarea { min-height: 50px; padding: 12px 14px; border-radius: 8px; }
h1 { font-family: var(--display); }

.site-header {
  position: relative;
  z-index: 30;
  color: #fff;
  background: linear-gradient(110deg, #04182f 0%, #0a2b4d 62%, #173c63 100%);
  border-bottom: 1px solid rgba(255,255,255,.13);
  box-shadow: none;
}

.header-row {
  width: min(1540px, calc(100% - 72px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 34px;
}

.brand { justify-self: start; padding: 5px 0; gap: 0; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: clamp(1rem, 1.5vw, 1.28rem); font-weight: 900; letter-spacing: .045em; line-height: 1.08; text-transform: uppercase; }
.brand-copy small { margin-top: 4px; color: #c8ddf2; font-size: .82rem; letter-spacing: .02em; }

.department-nav {
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 38px);
}

.department-tab {
  position: relative;
  min-height: 48px;
  padding: 8px 2px;
  color: rgba(255,255,255,.88);
  background: transparent;
  border: 0;
  font-size: .89rem;
  font-weight: 800;
  white-space: nowrap;
}

.department-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.department-tab:hover { background: transparent; }
.department-tab:hover::after, .department-tab[aria-current="page"]::after { transform: scaleX(1); }
.department-tab[aria-current="page"] { color: #fff; background: transparent; }
.nutrition-tab[aria-current="page"], .youth-tab[aria-current="page"] { border-top-color: transparent; }

.header-button {
  justify-self: end;
  min-height: 48px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--midnight);
  background: var(--lime);
  border: 2px solid var(--lime);
  border-radius: 7px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-button:hover { background: var(--lime); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(221,255,63,.2); }

.demo-notice {
  position: relative;
  z-index: 25;
  padding: 7px 20px;
  color: #102438;
  background: #f1ffc2;
  border-bottom: 1px solid #d4e989;
  text-align: center;
  font-size: .82rem;
}

main { width: 100%; min-height: 70vh; margin: 0; padding: 0; }
.view:not([data-view="home"]) { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 82px; }
.eyebrow { color: var(--cobalt); font-size: .74rem; letter-spacing: .18em; }
.youth-text { color: #ba443f; }

.home-hero {
  position: relative;
  min-height: clamp(610px, 49vw, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--midnight);
  isolation: isolate;
}

.home-hero-image, .home-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero-image { z-index: -3; display: block; object-fit: cover; object-position: 57% center; }
.home-hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(3,22,43,.96) 0%, rgba(3,25,48,.88) 29%, rgba(3,27,50,.38) 62%, rgba(3,27,50,.12) 100%), linear-gradient(0deg, rgba(3,20,38,.46), transparent 46%);
}

.home-hero-inner { width: min(1540px, calc(100% - 96px)); margin: 0 auto; padding: 68px 0 84px; }
.hero-kicker {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.hero-kicker > span { width: 42px; height: 4px; background: var(--lime); }

.home-hero h1 {
  max-width: 900px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(5rem, 9.1vw, 9.4rem);
  line-height: .83;
  letter-spacing: -.068em;
  text-wrap: balance;
}
.home-hero h1 > span { display: block; }
.home-hero h1 em { color: var(--lime); font-style: normal; }
.home-hero-inner > p:not(.hero-kicker) { max-width: 670px; margin-bottom: 0; color: rgba(255,255,255,.92); font-family: var(--display); font-size: clamp(1.08rem,1.55vw,1.42rem); line-height: 1.45; }

.hero-route-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-route-row button {
  min-height: 48px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
  transition: background .18s ease, transform .18s ease;
}
.hero-route-row button:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.hero-handnote {
  position: absolute;
  right: clamp(30px,5.5vw,96px);
  bottom: 60px;
  margin: 0;
  color: #fff;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1.15rem,1.7vw,1.65rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  transform: rotate(-6deg);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.hero-handnote span { width: 112px; height: 9px; margin-top: 8px; display: block; background: var(--lime); border-radius: 50%; transform: rotate(-5deg) skewX(-18deg); }

.program-band { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); background: var(--midnight); }
.program-feature {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #0c2842;
  border-top: 1px solid rgba(255,255,255,.42);
  border-bottom: 1px solid rgba(255,255,255,.42);
}
.program-feature + .program-feature { border-left: 1px solid rgba(255,255,255,.35); }
.program-feature > img { position: absolute; inset: 0 auto 0 0; width: 58%; height: 100%; display: block; object-fit: cover; filter: saturate(.96) contrast(1.02); }
.nutrition-feature > img { object-position: 47% center; }
.youth-feature > img { object-position: 42% center; }

.program-feature-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: 66%;
  padding: 50px 7% 42px 13%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  clip-path: polygon(13% 0,100% 0,100% 100%,0 100%);
}
.nutrition-feature .program-feature-panel { background: linear-gradient(140deg,#064f98 0%,#06376e 73%,#051f43 100%); }
.youth-feature .program-feature-panel { background: linear-gradient(140deg,#0d5c3f 0%,#083e30 76%,#052c23 100%); }
.program-kicker { margin: 0 0 10px; color: rgba(255,255,255,.83); font-size: .64rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.program-feature h2 { max-width: 470px; margin-bottom: 11px; color: #fff; font-size: clamp(2.35rem,3.35vw,4.4rem); font-weight: 950; letter-spacing: -.055em; line-height: .86; text-transform: uppercase; }
.program-feature h2 span { display: block; }
.youth-feature h2 { color: var(--lime); }
.youth-feature h2 span { color: #fff; }
.program-feature-panel > p:not(.program-kicker) { margin-bottom: 17px; color: rgba(255,255,255,.87); font-size: 1rem; line-height: 1.42; }

.program-symbol { position: absolute; top: 45px; right: 7%; width: 56px; color: #9fdcff; }
.program-symbol svg, .community-values svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sun-symbol { color: var(--lime); }

.program-cta {
  width: min(100%,300px);
  min-height: 54px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--midnight);
  border: 0;
  border-radius: 7px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transform-origin: center bottom;
}
.nutrition-cta { background: var(--sun); }
.youth-cta { background: var(--coral); }
.program-cta span:last-child { font-size: 1.35rem; transition: transform .28s ease; }
.program-cta:hover, .program-cta:focus-visible { animation: program-bounce .52s cubic-bezier(.22,.9,.3,1) both; box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.program-cta:hover span:last-child, .program-cta:focus-visible span:last-child { transform: translateX(6px); }

@keyframes program-bounce {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-8px) scale(1.015); }
  62% { transform: translateY(-2px) scale(1); }
  80% { transform: translateY(-5px) scale(1.008); }
  100% { transform: translateY(-3px) scale(1); }
}

.program-subroute { align-self: flex-start; min-height: 40px; margin-top: 8px; padding: 6px 0; color: rgba(255,255,255,.86); background: transparent; border: 0; font-size: .82rem; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.program-subroute:hover { color: #fff; text-decoration-color: var(--lime); }

.community-values {
  min-height: 142px;
  padding: 26px max(36px,calc((100% - 1540px)/2));
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: center;
  color: #d8efff;
  background: linear-gradient(90deg,rgba(5,31,58,.98),rgba(5,39,72,.94));
}
.community-values article { min-height: 68px; padding: 0 34px; display: flex; align-items: center; gap: 22px; border-right: 1px solid rgba(216,239,255,.36); }
.community-values article:first-child { padding-left: 0; }
.community-values article:last-child { padding-right: 0; border-right: 0; }
.community-values svg { width: 54px; flex: 0 0 54px; color: #a9dcff; }
.community-values strong { max-width: 155px; font-size: .78rem; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }

/* Department landing pages */
.breadcrumb { margin: 0 0 24px; }
.department-hero {
  position: relative;
  min-height: 570px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.nutrition-hero { background: linear-gradient(145deg,#064f98,#062f61); }
.youth-hero { background: linear-gradient(145deg,#0c5a40,#062f27); }
.department-copy { position: relative; z-index: 2; padding: clamp(38px,5vw,70px); display: flex; flex-direction: column; justify-content: center; }
.department-copy::before { content: ""; width: 46px; height: 5px; margin-bottom: 22px; background: var(--lime); }
.department-hero h1 { max-width: 650px; color: #fff; font-size: clamp(3.5rem,6vw,6rem); line-height: .91; }
.department-hero .eyebrow { color: rgba(255,255,255,.78); }
.department-hero .lead { max-width: 610px; color: rgba(255,255,255,.84); }
.department-visual { position: relative; z-index: 1; min-height: 570px; display: block; }
.department-visual > img { width: 100%; height: 100%; min-height: 570px; display: block; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.nutrition-hero .department-visual > img, .youth-hero .department-visual > img { object-position: 48% center; }
.hero-detail { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; padding: 20px 22px; color: var(--ink); background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.6); border-radius: 11px; box-shadow: 0 16px 38px rgba(2,20,38,.22); backdrop-filter: blur(12px); }
.detail-label { margin-bottom: 10px; }
.hero-detail .check-list { margin: 0; }

.content-grid { margin-top: 22px; gap: 16px; }
.content-card { position: relative; padding: 30px; overflow: hidden; border-radius: 12px; box-shadow: 0 12px 34px rgba(6,29,56,.09); }
.content-card::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--cobalt); }
.youth-hero + .content-grid .content-card::after { background: var(--coral); }
.step-kicker { color: var(--cobalt); font-family: var(--display); font-size: 2rem; font-weight: 700; }
.youth-step { color: #c84d48; }

/* Portals, forms, and reporting */
.button { min-height: 48px; padding: 11px 18px; border-radius: 7px; font-weight: 900; }
.button-primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.button-green { color: var(--midnight); background: var(--lime); border-color: var(--lime); }
.button-orange { color: var(--midnight); background: var(--coral); border-color: var(--coral); }
.button-quiet { color: var(--navy); background: transparent; border-color: #b7c6d2; }
.button-light { color: var(--midnight); }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(6,29,56,.13); }

.program-card, .content-card, .form-card, .dashboard-main, .dashboard-side, .application-status-card, .staff-workspace { border-radius: 12px; box-shadow: 0 12px 34px rgba(6,29,56,.09); }
.narrow-view { width: min(980px,calc(100% - 48px)) !important; }
.form-view { width: min(940px,calc(100% - 48px)) !important; }
.login-layout { grid-template-columns: 1.05fr .8fr; }
.login-layout .form-card { padding: clamp(30px,5vw,52px); border-radius: 12px 0 0 12px; }
.login-layout h1, .portal-heading h1, .form-heading h1 { font-size: clamp(3rem,5.7vw,5rem); }
.login-aside { position: relative; overflow: hidden; padding: clamp(32px,5vw,52px); border-radius: 0 12px 12px 0; }
.login-aside::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 210px; height: 210px; border: 34px solid rgba(221,255,63,.16); border-radius: 50%; }
.nutrition-aside { background: linear-gradient(150deg,#064f98,#062c59); }
.login-aside h2 { font-family: var(--display); font-size: clamp(2rem,4vw,3.25rem); }

.status-strip { border-left: 6px solid var(--success); border-radius: 9px; }
.dashboard-grid { grid-template-columns: minmax(0,1.65fr) minmax(280px,.7fr); }
.dashboard-main, .dashboard-side, .application-status-card { padding: 30px; }
.dashboard-side { border-top: 6px solid var(--cobalt); }
.youth-side { border-top-color: var(--coral); }
.action-grid { gap: 12px; }
.action-card { min-height: 168px; padding: 20px; background: linear-gradient(145deg,#fff,#f6faff); border-radius: 10px; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.action-card:hover { transform: translateY(-3px); border-color: var(--cobalt); background: linear-gradient(145deg,#fff,#f0f7ff); box-shadow: 0 12px 26px rgba(6,29,56,.1); }
.action-number { color: var(--cobalt); }

.choice-card { border-radius: 10px; }
.choice-card:has(input:checked) { border-color: var(--cobalt); background: var(--ice); }
.certification { background: var(--ice); border-radius: 9px; }
.review-panel { background: #fff0ef; border-radius: 10px; }
.progress-track span { background: var(--coral); }
.timeline-item.complete > span, .timeline-item.current > span { border-color: var(--coral); background: var(--coral); }

.staff-program-switch { border-radius: 9px; }
.staff-program-switch button { border-radius: 6px; }
.staff-program-switch button[aria-selected="true"] { background: var(--navy); }
.metric-grid article { padding: 20px; background: linear-gradient(145deg,var(--midnight),var(--navy)); border-radius: 10px; }
.metric-grid strong { color: var(--lime); font-family: var(--display); font-size: 2.25rem; }
.staff-workspace { padding: 28px; }
.staff-alert { background: var(--ice); border-left: 5px solid var(--cobalt); border-radius: 8px; }
.alert-icon { color: var(--midnight); background: var(--lime); }
.toast { background: var(--midnight); border-left-color: var(--lime); border-radius: 8px; }

.site-footer { padding: 28px max(32px,calc((100% - 1540px)/2)); background: #03162b; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer strong { letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 1160px) {
  .header-row { width: min(100% - 42px,1200px); min-height: 78px; grid-template-columns: 1fr auto; gap: 0 18px; }
  .department-nav { width: 100%; min-height: 50px; grid-column: 1 / -1; grid-row: 2; justify-content: center; border-top: 1px solid rgba(255,255,255,.12); }
  .header-button { grid-column: 2; grid-row: 1; }
  .program-band { grid-template-columns: 1fr; }
  .program-feature { min-height: 440px; }
  .program-feature + .program-feature { border-left: 0; border-top: 0; }
  .program-feature > img { width: 55%; }
  .program-feature-panel { width: 60%; padding-left: 12%; }
  .program-feature h2 { font-size: clamp(3rem,6vw,5.2rem); }
  .community-values { grid-template-columns: repeat(2,1fr); }
  .community-values article { border-bottom: 1px solid rgba(216,239,255,.24); }
  .community-values article:nth-child(2) { border-right: 0; }
  .community-values article:nth-child(3), .community-values article:nth-child(4) { border-bottom: 0; }
  .department-hero, .dashboard-grid, .applicant-layout { grid-template-columns: 1fr; }
  .department-visual, .department-visual > img { min-height: 480px; }
  .content-grid { grid-template-columns: 1fr; }
  .staff-toolbar { grid-template-columns: repeat(2,1fr); }
  .staff-title { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .home-hero { min-height: 650px; }
  .home-hero-inner { width: calc(100% - 42px); padding: 66px 0 92px; }
  .home-hero h1 { font-size: clamp(4rem,17vw,7rem); }
  .home-hero-shade { background: linear-gradient(90deg,rgba(3,22,43,.95),rgba(3,25,48,.62)),linear-gradient(0deg,rgba(3,20,38,.56),transparent 50%); }
  .hero-handnote { right: 24px; bottom: 30px; }
  .program-feature { min-height: 700px; padding-top: 285px; }
  .program-feature > img { inset: 0 0 auto; width: 100%; height: 285px; }
  .program-feature-panel { position: relative; inset: auto; width: 100%; min-height: 415px; padding: 40px 28px; clip-path: none; }
  .program-symbol { top: 38px; right: 28px; }
  .program-feature h2 { font-size: clamp(3.1rem,13vw,5rem); }
  .community-values { grid-template-columns: 1fr 1fr; padding: 22px; }
  .community-values article { min-height: 100px; padding: 18px; }
  .community-values article:first-child { padding-left: 18px; }
  .community-values article:nth-child(odd) { border-right: 1px solid rgba(216,239,255,.24); }
  .community-values article:nth-child(even) { border-right: 0; }
  .community-values svg { width: 44px; flex-basis: 44px; }
  .department-hero { min-height: 0; }
  .department-visual, .department-visual > img { min-height: 420px; }
  .login-layout, .field-grid, .choice-grid { grid-template-columns: 1fr; }
  .login-layout .form-card, .login-aside { border-radius: 12px; }
  .login-aside { margin-top: 14px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 128px; }
  .compact-list { grid-template-columns: 1fr; }
  .portal-heading { align-items: flex-start; flex-direction: column; }
  .staff-toolbar { grid-template-columns: 1fr; }
  .staff-title { grid-column: auto; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .header-row { width: calc(100% - 28px); grid-template-columns: 1fr auto; }
  .brand-copy strong { font-size: .91rem; }
  .brand-copy small { font-size: .73rem; }
  .header-button { min-width: 48px; padding: 10px 13px; }
  .header-button span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .header-button span:last-child { font-size: 1.25rem; }
  .department-nav { width: 100%; gap: 22px; overflow-x: auto; justify-content: flex-start; }
  .department-tab { font-size: .82rem; }
  .demo-notice { padding-inline: 14px; font-size: .74rem; }
  .view:not([data-view="home"]) { width: calc(100% - 28px); padding-top: 30px; }
  .home-hero { min-height: 620px; }
  .home-hero-image { object-position: 61% center; }
  .hero-kicker { gap: 11px; font-size: .62rem; letter-spacing: .16em; }
  .hero-kicker > span { width: 28px; }
  .home-hero h1 { font-size: clamp(3.55rem,18vw,5.4rem); }
  .home-hero-inner > p:not(.hero-kicker) { font-size: 1.04rem; }
  .hero-route-row { flex-direction: column; align-items: stretch; }
  .hero-route-row button { justify-content: space-between; }
  .hero-handnote { display: none; }
  .program-feature { min-height: 675px; padding-top: 250px; }
  .program-feature > img { height: 250px; }
  .program-feature-panel { min-height: 425px; padding: 34px 22px 30px; }
  .program-symbol { width: 46px; top: 32px; right: 22px; }
  .program-kicker { max-width: 220px; }
  .program-feature h2 { font-size: clamp(2.85rem,14.5vw,4.2rem); }
  .program-cta { width: 100%; }
  .community-values { grid-template-columns: 1fr; }
  .community-values article, .community-values article:first-child, .community-values article:nth-child(3) { padding: 18px 5px; border-right: 0; border-bottom: 1px solid rgba(216,239,255,.24); }
  .community-values article:last-child { border-bottom: 0; }
  .department-copy { padding: 34px 24px 40px; }
  .department-hero h1 { font-size: clamp(3.25rem,16vw,4.6rem); }
  .department-visual, .department-visual > img { min-height: 350px; }
  .hero-detail { right: 14px; bottom: 14px; left: 14px; padding: 17px; }
  .program-card, .form-card, .dashboard-main, .dashboard-side, .application-status-card, .staff-workspace { padding: 22px; }
  .button-row, .form-actions { flex-direction: column; }
  .button-row .button, .form-actions .button { width: 100%; }
  .status-strip { grid-template-columns: auto 1fr; }
  .status-strip .text-button { grid-column: 1 / -1; justify-self: start; }
  .form-options, .status-card-top { align-items: flex-start; flex-direction: column; }
  .staff-program-switch { width: 100%; grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 26px 22px; align-items: flex-start; flex-direction: column; }
}

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