/* ============================================================
   NSCAF Grant & Sponsorship Application — shared styles
   Brand: Beach #f0e9dc · Blue #23323e · Yellow #fbb906
   ============================================================ */

:root {
  --beach: #f0e9dc;
  --blue: #23323e;
  --yellow: #fbb906;
  --white: #ffffff;
  --ink-soft: #55636f;
  --line: #e2d9c8;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Source Sans 3", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  background: var(--beach);
  color: var(--blue);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Branded header (no navigation) ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
  padding: 18px 24px;
}

.site-header .header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-header img {
  height: 56px;
  width: auto;
  display: block;
}

/* ---------- Layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

h1 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 60ch;
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(35, 50, 62, 0.06);
}

/* ---------- Forms ---------- */
label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

select, input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

select:focus, input[type="text"]:focus, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: -12px;
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: var(--blue);
  background: var(--yellow);
  border: none;
  border-radius: 6px;
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.btn:hover { filter: brightness(0.95); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Status messages ---------- */
.notice {
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.notice.success { border-left: 6px solid #2e7d4f; }
.notice.warn    { border-left: 6px solid var(--yellow); }
.notice.error   { border-left: 6px solid #b3402a; }

.notice h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.notice .btn { margin-top: 16px; }

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -4px;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .btn { transition: none; }
}

/* ---------- Form embed pages ---------- */
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: var(--beach);
  text-align: center;
  font-size: 0.85rem;
  padding: 18px 24px;
}

.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 540px) {
  .card { padding: 22px 18px; }
  main { padding: 32px 16px 48px; }
  .site-header img { height: 44px; }
}
