@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "STIX Editorial";
  src: url("fonts/stix-general.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f4f5ee;
  --white: #fffefa;
  --ink: #162b23;
  --muted: #4c6055;
  --line: #dce3d7;
  --green: #245e48;
  --dark: #173b30;
  --soft: #e8f0e6;
  --radius: 16px;
  --side: 238px;
  --shadow: 0 3px 10px #16352906;
  --editorial: "STIX Editorial", "STIX Two Text", Georgia, serif;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
body { line-height: 1.45; }
#sidebar {
  background: #16352b;
  border-color: #25483a;
  color: #ecf3ea;
  padding: 22px 13px 14px;
}
.brand { color: #f6f7ea; padding: 0 8px 19px; gap: 10px; }
.brand-mark {
  background: #dce89e;
  color: #193d2f;
  border-radius: 11px;
  width: 39px;
  height: 39px;
  flex: none;
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-title { font: 400 24px/1 var(--editorial); letter-spacing: -.037em; }
.brand-sub { color: #c0cfc0; font-size: 9px; letter-spacing: .115em; font-weight: 650; }
.village {
  background: #ffffff0b;
  border-color: #ffffff19;
  padding: 9px 10px;
  margin-bottom: 17px;
}
.village .icon { color: #dbe79f; }
.village small, .group-title, .nav-group:nth-child(2) .group-title { color: #b4c8b8; }
.side-scroll { scrollbar-color: #688274 transparent; }
.nav-group { margin-bottom: 13px; }
.group-title { margin-bottom: 6px; font-size: 9px; }
.nav-link {
  color: #e3ece2;
  font-size: 11.5px;
  min-height: 35px;
  letter-spacing: -.01em;
  border-radius: 7px;
  padding-block: 7px;
}
.nav-link .icon { color: #adc6b4; }
.nav-link:hover, .nav-link[aria-current="page"] {
  background: #32594a;
  color: #fcfff1;
  box-shadow: none;
}
.nav-link[aria-current="page"] { box-shadow: inset 3px 0 #deeb9d; }
.nav-link[aria-current="page"] .icon { color: #e6eead; }
.side-bottom { border-color: #ffffff22; }
.side-bottom .nav-link { color: #e6eead; }
#topbar {
  height: 64px;
  padding-inline: 28px;
  border-color: #dfe6da;
  background: #fffefa;
}
.crumb { font-size: 12px; }
.header-right { gap: 10px; }
.public-mode .year-chip { display: none; }
.mode-chip { background: #eef2e7; border: 0; color: #3c5847; }
.portal-search {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: #3c5b4b;
  background: #f7f8f2;
  font-size: 11px;
}
.portal-search .icon { width: 15px; height: 15px; }
.portal-search:hover { background: #ecf2e8; }
.user-btn { background: transparent; min-height: 38px; }
.avatar { background: #e5eddd; }
#main { max-width: 1510px; padding: 25px 28px 35px; }
.portal-feature {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.08fr);
  border: 1px solid #d7ddcb;
  border-radius: 19px;
  min-height: 350px;
  overflow: hidden;
  background: #eaf0df;
}
.portal-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 27px clamp(22px, 3.35vw, 52px);
  container-type: inline-size;
}
.portal-feature .eyebrow { color: #355d4b; margin-bottom: 13px; }
.portal-feature h1, .youth-hero h1 {
  font: 400 clamp(51px, 6.5vw, 104px)/.83 var(--editorial);
  letter-spacing: -.055em;
  color: #17372b;
}
.portal-feature h1 { font-size: clamp(39px, 19.5cqw, 100px); }
.portal-feature h1 span { color: #538263; }
.portal-feature p {
  margin: 18px 0 20px;
  color: #3c5345;
  font-size: 14px;
  line-height: 1.6;
  max-width: 390px;
}
.portal-feature .actions { flex-wrap: wrap; }
.portal-feature .btn, .youth-hero .btn { min-height: 42px; padding-inline: 13px; }
.portal-feature .btn.outline { background: #ffffff63; border-color: #bdcbb8; }
.portal-feature-image { margin: 0; position: relative; min-height: 100%; background: #879b75; }
.portal-feature-image img { position: absolute; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 49% 52%; }
.portal-feature-image figcaption {
  position: absolute;
  bottom: 12px;
  right: 13px;
  color: #fffef6;
  background: #17352bdd;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.village-section { margin-block: 23px 16px; }
.section-title h2, .community-feature h2 {
  font: 400 clamp(26px, 3.1vw, 42px)/1 var(--editorial);
  letter-spacing: -.037em;
}
.section-title .profile-copy { font-size: 12px; }
.portal-shortcuts { margin-top: 23px; }
.portal-shortcuts .section-title h2 { font-size: 33px; }
.portal-shortcuts .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.feature-link { border-radius: 12px; background: #fffefa; padding: 12px; }
.feature-link > span:nth-child(2) strong { font-size: 12.5px; }
.feature-link > span:nth-child(2) small { font-size: 10.5px; }
.feature-icon.lime { background: #e5edd8; color: #355b38; }
.feature-icon.sky { background: #e2ecef; color: #385f66; }
.feature-icon.clay { background: #f1e3d7; color: #744c38; }
.village-dashboard { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 13px; align-items: stretch; }
.village-dashboard .card { padding: 16px 17px; }
.village-dashboard .card-head h2 { font-size: 18px; }
.community-feature {
  min-width: 0;
  background: #244d3d;
  color: #f5f6e8;
  padding: 17px 19px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.community-feature .eyebrow { color: #e0eaa5; margin-bottom: 8px; }
.community-feature h2 { font-size: clamp(23px, 2.5vw, 35px); overflow-wrap: anywhere; }
.community-feature p { margin: 8px 0 13px; color: #e3ece0; font-size: 12px; line-height: 1.55; }
.community-feature .btn { margin-top: auto; background: #fff9; border-color: #fff9; color: #162f23; }
.agenda-row { padding-block: 7px; }
.agenda-row strong { font-size: 12.5px; }
.agenda-row small { font-size: 11px; }
.card, .stat, .course-card { background: #fffefa; }
.card-head h2 { letter-spacing: -.025em; }
.card-head p { font-size: 12px; }
.page-head h1, .staff-masthead h1 { font: 400 clamp(36px, 4.8vw, 64px)/.98 var(--editorial); letter-spacing: -.04em; }
.page-head p { font-size: 14px; }
.page-head .eyebrow { letter-spacing: .11em; }
.staff-masthead {
  background: #eaf0e3;
  border: 1px solid #d9e3d1;
  border-radius: 17px;
  padding: 21px 23px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px;
}
.staff-masthead .eyebrow { color: #315c4a; margin-bottom: 8px; }
.staff-masthead h1 { font-size: clamp(34px, 4.25vw, 59px); }
.staff-masthead p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.staff-masthead .actions { flex-wrap: wrap; }
.stat { padding: 14px 15px; }
.stat strong { font-variant-numeric: tabular-nums; }
.service-masthead {
  background: #eaf0e3;
  border: 1px solid #d9e3d1;
  border-radius: 17px;
  padding: 21px 23px 17px;
  margin-bottom: 13px;
}
.service-masthead .page-head { margin-top: 0; }
.service-masthead .toolbar { margin: 0; }
.service-masthead .field:first-child { flex: 1 1 240px; max-width: 480px; }
.service-masthead .field input, .service-masthead .field select { min-height: 42px; background: #fffefa; }
#main[data-page="services"] .tile { gap: 9px; padding: 16px; }
#main[data-page="services"] .tile .stat-icon { background: #e8efdf; }
#main[data-page="services"] .tile p { margin-bottom: 3px; }
.btn { border-radius: 8px; }
.btn.outline { background: #fffefa; }
.youth-hero { border-radius: 18px; min-height: 343px; }
.youth-hero h1 { color: #fffdf0; font-size: clamp(50px, 6.1vw, 94px); }
.youth-hero .eyebrow { color: #e1ebad; }
.youth-hero h1 span { color: #e1ebad; }
.youth-hero::after { background: linear-gradient(90deg,#0d2e24 0%,#102f25ec 32%,#112d2178 60%,#14322418 100%); }
.youth-hero p { margin-top: 15px; }
.course-art { min-height: 88px; }
.course-art.clay { background: #eee0d4; }
.course-art.sky { background: #dfe9ed; }
.course-art.lime { background: #e9edd4; }
.course-body { padding: 15px; }
.course-body h3 { font-size: 17px; }
.footer { margin-top: 22px; font-size: 11px; }
.mobile-nav { display: none; }
@media (max-width: 1120px) {
  :root { --side: 212px; }
  #main, #topbar { padding-inline: 20px; }
  .portal-feature-copy { padding-inline: 23px; }
  .portal-shortcuts .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 810px) {
  :root { --side: 237px; }
  #sidebar { transition: none; }
  #sidebar .nav-link { min-height: 42px; }
  #sidebar:not(.open) { visibility: hidden; }
  #sidebar.open { visibility: visible; }
  #main { padding-top: 14px; }
  #topbar { height: 58px; }
  .public-mode #main { padding-bottom: 85px; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 3;
    padding: 4px 7px calc(4px + env(safe-area-inset-bottom, 0px));
    background: #fffefa;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px #18362b12;
  }
  .mobile-nav button {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 46px;
    background: none;
    border: 0;
    color: #456256;
    gap: 3px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 650;
  }
  .mobile-nav button[aria-current="page"] { background: #e9f0e3; color: #214f3b; }
  .mobile-nav .icon { width: 17px; height: 17px; }
  .public-mode #toast { bottom: 65px; }
}
@media (max-width: 660px) {
  #main, #topbar { padding-inline: 12px; }
  .portal-feature { grid-template-columns: 1fr; min-height: auto; border-radius: 15px; }
  .portal-feature-copy { padding: 20px 17px 17px; }
  .portal-feature .eyebrow { margin-bottom: 10px; font-size: 9px; }
  .portal-feature h1 { font-size: clamp(47px, 10vw, 66px); line-height: .9; }
  .portal-feature h1 br { display: none; }
  .portal-feature p { font-size: 13px; margin-block: 11px 13px; }
  .portal-feature-image { height: 156px; }
  .portal-feature-image img { object-position: center 58%; }
  .village-dashboard { grid-template-columns: 1fr; }
  .service-masthead, .staff-masthead { padding: 16px; }
  .service-masthead .field:first-child { flex: 1 1 180px; }
  .portal-search span { display: none; }
  .portal-search { min-width: 36px; justify-content: center; }
  .youth-hero { min-height: 285px; }
  .youth-hero h1 { font-size: clamp(45px, 9vw, 68px); }
  .youth-hero::after { background: linear-gradient(90deg,#102f25f5,#102f25d9 44%,#112d2170 100%); }
}
@media (max-width: 365px) {
  .portal-shortcuts .feature-grid { grid-template-columns: 1fr; }
  .portal-feature h1 { font-size: 43px; }
}

.field-optional { color: var(--muted); font-size: .85em; font-weight: 500; }
.field-error {
  margin: 1px 0 0;
  color: #902c25;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}
.field [aria-invalid="true"] { border-color: #aa3b31; }
.field small { color: #40584d; }
.form-step {
  color: #235841;
  background: #ebf2e7;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 680;
}
#dialogTitle:focus { outline: none; }
.modal-body .field label { font-size: 14px; }
.modal-body .field input, .modal-body .field select { min-height: 44px; }
.modal-body .field textarea { min-height: 84px; }
.modal-head .icon-btn { min-width: 44px; min-height: 44px; }
.modal-actions .btn, .tracking-form .btn, .tracking-shortcuts .btn { min-height: 44px; }
.service-help { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.service-help summary { cursor: pointer; color: var(--green); font-weight: 650; min-height: 30px; }
.service-help p { margin: 5px 0 0; }
.service-steps { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 0 0 15px; }
.service-steps span { display: flex; gap: 6px; align-items: center; font-weight: 670; font-size: 12px; color: #315543; }
.service-steps b { background: #d7e6d3; color: #24543e; border-radius: 50%; min-width: 22px; min-height: 22px; display: grid; place-items: center; font-size: 11px; }
.service-assistance { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 13px; }
.service-assistance p { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.service-assistance p .icon { width: 16px; height: 16px; }
.service-assistance .actions { flex-wrap: wrap; }
.service-empty { padding: 13px 0; color: var(--muted); }
.service-empty .btn { margin-top: 8px; }
.tracking-form { display: flex; align-items: flex-start; gap: 8px; }
.tracking-form .field { flex: 1; margin: 0; }
.tracking-form input { min-height: 44px; }
.tracking-form .btn { margin-top: 23px; }
.tracking-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.receipt-box { display: flex; gap: 11px; align-items: flex-start; background: #eef4e9; padding: 13px; border-radius: 12px; }
.receipt-box > div { flex: 1; min-width: 0; }
.receipt-box p { color: #345447; font-size: 13px; margin-bottom: 8px; }
.receipt-box label { display: block; color: #345447; font-size: 13px; font-weight: 660; }
.receipt-box input { display: block; width: 100%; margin-top: 2px; background: transparent; border: 0; padding: 0 2px; color: #1c4d35; font-size: 25px; font-weight: 790; }
.receipt-icon { display: grid; place-items: center; background: #d5e7d0; color: #245b40; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.receipt-note { margin-top: 11px; }
.receipt-status:not(:empty) { color: #295740; margin: 8px 0 0; font-weight: 650; }
@media (max-width: 660px) {
  .public-mode .btn, .service-assistance .btn, .portal-search, .menu-toggle { min-height: 44px; }
  .public-mode .field label, .modal-body .field label { font-size: 14px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .modal-body .btn, .service-assistance .btn { font-size: 13px; }
  .tracking-form { flex-direction: column; }
  .tracking-form .field, .tracking-form .btn { width: 100%; }
  .tracking-form .btn { margin-top: 0; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .btn { flex: 1 1 auto; }
  .service-masthead .toolbar .field { flex: 1 1 100%; max-width: none; }
}

dialog[open] { display: flex; flex-direction: column; max-height: min(90dvh, 760px); }
.modal-head { flex: none; }
.modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal-body > .form-step { color: #235841; }
@media (max-width: 660px) {
  .modal-head, .modal-body { padding: 12px 14px; }
  .modal-body > p { font-size: 14px; }
  #main[data-page="services"] .tile h2 { font-size: 17px; }
  #main[data-page="services"] .tile p { font-size: 13px; }
}

.portal-error {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f9e9e4;
  color: #862e26 !important;
  font-weight: 600;
}
.btn:disabled, .link-button:disabled { cursor: wait; opacity: .62; }
.user-info { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#receiptCode { font-size: clamp(14px, 4.5vw, 22px); font-variant-numeric: tabular-nums; }
