:root {
  --ink: #3a3a3a;
  --ink-soft: #4a6280;
  --navy: #123f86;
  --teal: #1f7aed;
  --teal-deep: #1458b8;
  --gold: #0c8f96;
  --paper: #f5f9ff;
  --card: #ffffff;
  --line: #d5e4f5;
  --danger: #8d2f2f;
  --ok: #1d5c45;
  --shadow: 0 16px 40px rgba(20, 35, 58, 0.08);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #1f1f1f; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.nav-inner, .wrap, .footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.45rem 0;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 46px;
  width: auto;
  max-width: 70vw;
  display: block;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--ink);
}
.menu {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.menu a, .menu button {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0.45rem;
  border-bottom: 2px solid transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: none;
  font: inherit;
  font-size: 1.0625rem;
  cursor: pointer;
}
body.member-home .menu,
body.member-home main { visibility: hidden; }
body.member-home.signed-in .menu,
body.member-home.signed-in main { visibility: visible; }
.icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 1.7rem; height: 1.7rem; }
.card-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
}
.tone-blue .card-icon { background: #e7f1ff; color: #1458b8; }
.tone-teal .card-icon { background: #e5f7f4; color: #0c7c78; }
.tone-violet .card-icon { background: #eee9ff; color: #5340b5; }
.card-art {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.8rem;
}
.menu a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.menu a:hover { color: #1f1f1f; }

.hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(248, 251, 255, 0.94) 0%, rgba(248, 251, 255, 0.82) 42%, rgba(248, 251, 255, 0.38) 100%);
}
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.6rem 0 2.8rem;
}
.hero-side { display: grid; align-content: center; }
.kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 0 0 0.8rem; color: var(--ink); }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.hero-title span { display: block; }
.hero-title span:first-child {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.12rem;
}
.hero-title span:last-child {
  font-style: italic;
  font-weight: 500;
  margin-left: 1.4rem;
}
h2 { font-size: 1.8rem; margin: 0 0 0.6rem; color: #7b2d3b; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; color: var(--ink); }
.card h2, .card h3 { color: #8f4e1a; }
.lede, .page-title p:not(.kicker), .section-head p {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 40rem;
}
.hero-panel .kicker { color: #ffd08a; }

.hero-panel {
  background: var(--navy);
  color: #f6f1e7;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.hero-panel p { margin: 0.2rem 0 0.8rem; color: #d9e3ea; }
.hero-panel ul { margin: 0; padding-left: 1.1rem; }
.hero-panel li { margin: 0.25rem 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  padding: 0.65rem 1rem;
  font: inherit;
  cursor: pointer;
}
.btn:hover { background: var(--teal-deep); color: white; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #b5b5b5; }
.btn.ghost:hover { background: #f2f2f2; color: var(--ink); }

.section { padding: 0.5rem 0 2.6rem; }
.section-head { margin-bottom: 1.1rem; max-width: 42rem; }
.grid-3, .grid-2 { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.2fr 0.8fr; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid #c5d9f0;
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.55rem;
}

.program-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.program-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem 0.28rem 0.45rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.page-title { padding: 2rem 0 0.4rem; }
.narrow { max-width: 44rem; }
form { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; }
input, select, textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #c5d4e8;
  background: white;
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.note, .form-status { font-size: 0.95rem; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }
.login-box { max-width: 28rem; }

.site-footer { background: var(--navy); color: #d6e6f7; margin-top: 1rem; }
.footer-inner { padding: 1.6rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: #9ecbff; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 1rem 0.8rem;
  }
  .menu.open { display: flex; }
  .site-header { position: sticky; }
  .nav-inner { position: relative; }
  .hero, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-band::after {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.94) 0%, rgba(248, 251, 255, 0.86) 62%, rgba(248, 251, 255, 0.45) 100%);
  }
}
