/* Crystal Clear — Grants Assistance
   Navy #1B365D · Teal #0F6C7A · institutional, not marketing */

:root {
  --navy: #1B365D;
  --navy-ink: #152a4a;
  --teal: #0F6C7A;
  --teal-dk: #0b5560;
  --teal-lt: #E7F3F5;
  --slate: #1E293B;
  --muted: #5B6775;
  --line: #C5D0DA;
  --line-dk: #94A3B8;
  --bg: #F4F7FA;
  --white: #ffffff;
  --focus: #0F6C7A;
  --danger-bg: #F8F1E7;
  --danger-edge: #C4A574;
  --max: 52rem;
  --wide: 64rem;
  --radius: 2px;
  --font: "Liberation Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--teal);
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.75rem;
}

/* Header */

.topbar {
  height: 8px;
  background: var(--teal);
}

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--teal);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-org {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-program {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  border-bottom: 3px solid transparent;
}

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

.site-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* Page intro */

.page-intro {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 1.25rem 2rem;
}

.page-intro-inner,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.page-intro h1,
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

.lead {
  margin: 0;
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 40rem;
}

.hero .lead {
  margin-bottom: 1.35rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.05rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-ink);
  color: var(--white);
  border-color: var(--navy-ink);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--teal-lt);
  color: var(--navy);
}

/* Notice boxes — match application instruction panel */

.notice {
  background: var(--teal-lt);
  border: 1px solid #c5dde2;
  border-left: 4px solid var(--teal);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0 0;
}

.notice p {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
}

.notice strong {
  font-weight: 700;
}

.caution {
  background: var(--danger-bg);
  border: 1px solid #e6d3b3;
  border-left: 4px solid #a67c3a;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}

.caution p {
  margin: 0;
  color: var(--slate);
}

/* Main */

main {
  padding: 2rem 1.25rem 3rem;
}

main h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 700;
}

.section-rule {
  width: 3rem;
  height: 3px;
  background: var(--teal);
  border: 0;
  margin: 0 0 1rem;
}

main h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.02rem;
  color: var(--navy);
}

main p {
  margin: 0 0 1rem;
}

main ul,
main ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

main li {
  margin-bottom: 0.4rem;
}

.section {
  margin-bottom: 2.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto 2.5rem;
  max-width: var(--wide);
}

.split h2 {
  margin-top: 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Contact strip */

.contact-strip {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 1.25rem;
}

.contact-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
}

.contact-item dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.contact-item dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.45;
}

.contact-item a {
  color: var(--navy);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Purposes */

.purpose-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
}

.purpose-list li {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border-left: 3px solid var(--teal);
  color: var(--navy);
  font-weight: 600;
}

/* Documents */

.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.doc-list li strong {
  color: var(--navy);
  display: block;
  font-size: 0.98rem;
}

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

/* Forms */

form {
  margin-top: 0.5rem;
  position: relative;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  max-width: 36rem;
  font: inherit;
  font-size: 1rem;
  color: var(--slate);
  border: 1px solid #8A9AAB;
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
  min-height: 2.65rem;
  background: var(--white);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

button.btn {
  appearance: none;
}

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 36rem;
}



input[type="file"] {
  display: block;
  width: 100%;
  max-width: 36rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--slate);
  margin-top: 0.45rem;
  padding: 0.35rem 0;
}

input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.req {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.field-help {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-block {
  border: 1px solid var(--line);
  padding: 0.85rem 1.05rem 0.35rem;
  margin: 0 0 1.35rem;
  background: var(--white);
  max-width: 40rem;
}

.form-block legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 0.4rem;
  font-size: 1.02rem;
}

.form-block .doc-list {
  margin-top: 0.25rem;
}

.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="number"],
.form-block select,
.form-block textarea,
.form-block input[type="file"] {
  max-width: 100%;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 9.5rem 7rem;
  gap: 0.75rem;
  max-width: 36rem;
}

.field-row-2 {
  grid-template-columns: 1fr 1fr;
}

.field-row .field {
  max-width: none;
}

.field-row input,
.field-row select {
  max-width: none;
}

.check-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.check-legend {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  padding: 0;
}

.check-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.75rem;
  max-width: 36rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
}

.check-item input {
  margin-top: 0.2rem;
}

.certify {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 400;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.55;
  cursor: pointer;
}

.certify input {
  margin-top: 0.25rem;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

#form-error:not([hidden]) {
  margin-top: 0;
}

@media (max-width: 640px) {
  .field-row,
  .field-row-2,
  .check-group {
    grid-template-columns: 1fr;
  }

  .check-item,
  .certify {
    padding: 0.7rem 0.8rem;
  }
}

/* Apply email panel */

.email-panel {
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  margin: 1.25rem 0 1.5rem;
  background: var(--white);
}

.email-panel p {
  margin-bottom: 0.5rem;
}

.email-panel .email-address {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #d5dde6;
  padding: 2rem 1.25rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 0.85rem;
  max-width: 48rem;
}

.site-footer a {
  color: #b9e0e6;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #b7c2ce;
  font-size: 0.85rem;
}

/* Address block on contact page */

.vcard {
  margin: 0 0 1.5rem;
  font-style: normal;
}

.vcard p {
  margin: 0 0 0.65rem;
}

.vcard .label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.1rem;
}

/* Responsive */

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 8px 16px rgba(27, 54, 93, 0.08);
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.4rem 0.75rem 0.75rem;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    background: var(--teal-lt);
  }

  .contact-grid,
  .purpose-list {
    grid-template-columns: 1fr;
  }

  .page-intro,
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Print — keep the same layout; hide only UI chrome */

@media print {
  .skip-link,
  .nav-toggle {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  a[href]::after {
    content: none !important;
  }
}
