/* ============================================================
   Shared styles for /programs and every /programs/<name> page.
   Pairs with nav.css. Same palette and type as the home page.
   ============================================================ */

:root {
  --navy: #15384a; --orange: #e08a3c; --green: #4f9d63; --teal: #2c8aa0;
  --cream: #fff8ef; --ink: #1d2b33; --muted: #5b6b73;
  --radius: 20px; --shadow: 0 10px 30px rgba(21, 56, 74, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); line-height: 1.6; background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -.5px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }

.eyebrow {
  font-size: .76rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
}
.lead { font-size: 1.06rem; color: var(--muted); }

.btn {
  display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: 1.02rem; padding: 13px 28px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer; background: var(--orange); color: #fff;
  box-shadow: 0 5px 0 #b96f2b; transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #b96f2b; }
.btn.navy { background: var(--navy); box-shadow: 0 5px 0 #0b222e; }
.btn.navy:hover { box-shadow: 0 3px 0 #0b222e; }

/* ---------- crumb ---------- */
.crumb { padding: 22px 0 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
.crumb a { color: var(--teal); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- program hero ---------- */
.phero { padding: 26px 0 46px; }
.phero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); color: var(--navy); margin-top: 10px; }
.phero .lead { margin-top: 16px; max-width: 62ch; font-size: 1.15rem; }
.phero .runby {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
  background: #fff; border-radius: 999px; padding: 8px 18px 8px 10px;
  box-shadow: var(--shadow); font-weight: 700; color: var(--navy); font-size: .95rem;
}
.phero .runby b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: .9rem;
}
.phero figure { margin-top: 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.phero figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e9eef0; }

/* Plain-spoken separation between one neighbor's work and the association's. */
.phero .disclaim {
  margin-top: 22px; max-width: 68ch; font-size: .95rem; color: #6b4b22;
  background: #fff5e6; border-left: 5px solid var(--orange);
  padding: 14px 18px; border-radius: 0 12px 12px 0;
}
.phero .disclaim a { color: var(--teal); font-weight: 800; }

/* ---------- body + details ---------- */
.pbody { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; padding-bottom: 56px; }
@media (max-width: 880px) { .pbody { grid-template-columns: 1fr; gap: 30px; } }
.pbody h2 { font-size: 1.7rem; color: var(--navy); margin-bottom: 12px; }
.pbody p + p { margin-top: 14px; }
.pbody .prose p { color: var(--muted); font-size: 1.03rem; }

.details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 28px; border-bottom: 6px solid var(--teal); }
.details h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.details dl { margin-top: 16px; }
.details dt { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-top: 14px; }
.details dt:first-child { margin-top: 0; }
.details dd { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.details dd.tba { font-weight: 600; color: var(--muted); font-style: italic; }
.details .note {
  margin-top: 20px; background: var(--cream); border-left: 5px solid var(--orange);
  padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: .93rem; color: #6b4b22;
}

/* ---------- interest form ---------- */
.signup { background: var(--navy); color: #fff; padding: 54px 0 60px; }
.signup h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
.signup .lead { color: #b9d3dd; margin-top: 12px; max-width: 52ch; }
.signup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .signup-grid { grid-template-columns: 1fr; gap: 28px; } }
.signup .call { margin-top: 22px; color: #b9d3dd; font-size: .95rem; }
.signup .call a { color: #7fd0e0; font-weight: 800; }
.signup form { background: #fff; border-radius: var(--radius); padding: 26px; }
.signup label { display: block; font-weight: 800; font-size: .82rem; color: var(--navy); margin: 15px 0 6px; }
.signup label:first-of-type { margin-top: 0; }
.signup input, .signup textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 2px solid #d9e3e7; border-radius: 12px; background: #fff;
}
.signup input:focus, .signup textarea:focus { outline: 0; border-color: var(--teal); }
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .signup .row { grid-template-columns: 1fr; gap: 0; } }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .btn { margin-top: 22px; }
.signup .fine { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.signup .msg { margin-top: 16px; font-weight: 700; border-radius: 12px; padding: 12px 16px; display: none; }
.signup .msg.ok { display: block; background: #e7f5ec; color: #1f6b3a; }
.signup .msg.bad { display: block; background: #fdecec; color: #9a2c2c; }

/* ---------- programs index ---------- */
.plist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; padding-bottom: 60px; }
@media (max-width: 900px) { .plist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plist { grid-template-columns: 1fr; } }
.pcard {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-bottom: 6px solid var(--teal); text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21, 56, 74, .16); }
.pcard:nth-child(2) { border-bottom-color: var(--green); }
.pcard:nth-child(3) { border-bottom-color: var(--orange); }
.pcard:nth-child(4) { border-bottom-color: var(--navy); }
.pcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e9eef0; }
.pcard .ic { font-size: 2.1rem; padding: 22px 22px 0; line-height: 1; }
.pcard .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.pcard h3 { font-size: 1.24rem; color: var(--navy); margin-bottom: 7px; }
.pcard p { color: var(--muted); font-size: .97rem; flex: 1; }
.pcard .go { margin-top: 14px; font-weight: 800; color: var(--teal); font-size: .93rem; }
/* Crisis / duty-of-care line. Must stay legible — never shrink below .82rem. */
.pcard .safety {
  margin-top: 12px; font-size: .84rem; line-height: 1.5; color: #6b4b22;
  background: #fff5e6; border-left: 4px solid var(--orange);
  padding: 9px 12px; border-radius: 0 8px 8px 0; flex: 0 0 auto;
}

/* ---------- footer ---------- */
footer { background: var(--navy); color: #cfe2ea; text-align: center; padding: 40px 0 46px; }
/* The wordmark art is navy — invert it so it reads on the navy footer. */
footer .logo { width: 120px; height: auto; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: .92; }
footer p { font-size: .95rem; }
footer a { color: #7fd0e0; }
footer .fine { margin-top: 12px; font-size: .84rem; color: #8fb0bd; }
