/* Home Learning sign-up landing pages (scripts/build_signup_pages.py). Uses the
   /home-learning page's tokens (.fhl). */

.fhs-narrow { max-width: 860px; }

.fhs-hero { background: #403770; color: #FFFCFA; padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); text-align: center; }
.fhs-hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; }
.fhs-hero__lede { font-size: clamp(1.15rem, 2.2vw, 1.45rem); margin-top: 16px; color: #FFFCFA; }
.fhs-hero__lede a { color: #FFFCFA; font-weight: 600; text-underline-offset: 3px; }
.fhs-hero--plain { padding-bottom: clamp(64px, 9vw, 112px); }


.fhs-packet { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }





.fhs-students[hidden] { display: none; }








/* Paper-copy card: the <summary> that opens the mail form. Centered icon and two lines,
   with an arrow on the right that turns down when the form is open. */










.fhs-mail[open] .fhs-mail__arrow { transform: translateY(-50%) rotate(90deg); }



.fhs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fhs-field { display: grid; gap: 4px; }
.fhs-field label { font-size: .9rem; font-weight: 500; color: #403770; }
.fhs-optional { font-weight: 400; color: #403770; }
.fhs-field input, .fhs-field select { font: inherit; padding: 10px 12px; min-height: 44px; border: 1.5px solid rgba(64,55,112,0.3); border-radius: 10px; background: #FFFCFA; color: #403770; width: 100%; }
.fhs-mail__submit { justify-self: start; }
.fhs-mail__sent { display: none; margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: rgba(196,231,230,0.9); color: #403770; font-weight: 600; }
.fhs-mail__sent:target, .fhs-mail__sent.is-visible { display: block; }
@media (max-width: 600px) {
  .fhs-row{ grid-template-columns: 1fr; }
  .fhs-mail__submit { justify-self: stretch; }
  
  
  
  
}

/* Family needs questionnaire (/home-learning/thank-you). */
.fhs-needs { display: grid; gap: 22px; }
.fhs-needs__sent { margin: 0 0 8px; font-size: 1.1rem; }
.fhs-needs__sent:target + .fhs-needs, .is-sent .fhs-needs { display: none; }
.fhs-group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.fhs-group legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 1.05rem; color: #403770; line-height: 1.4; }
.fhs-needs > .fhs-field label { font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.fhs-hint { margin-top: -6px; color: #403770; font-size: .9rem; }
.fhs-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fhs-check, .fhs-choices label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 14px; border: 1.5px solid rgba(64,55,112,0.22); border-radius: 10px; background: #FFFCFA; cursor: pointer; line-height: 1.35; }
.fhs-check input, .fhs-choices input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.fhs-check:has(input:checked), .fhs-choices label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(64,55,112,0.12); }
.fhs-check:has(input:focus-visible), .fhs-choices label:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.fhs-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.fhs-choices label { align-items: center; font-weight: 500; }
@media (max-width: 600px) { .fhs-checks { grid-template-columns: 1fr; } }
















/* Celebration (public/assets/celebrate.js): never takes clicks or covers content for long. */
.fhs-confetti, .fhs-balloons { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; }
.fhs-balloons { overflow: hidden; }
.fhs-balloon { position: absolute; bottom: -160px; width: 64px; animation: fhs-rise var(--dur, 6s) cubic-bezier(.35,.1,.45,1) var(--delay, 0s) forwards; will-change: transform; }
.fhs-balloon svg { width: 100%; height: auto; display: block; overflow: visible; }
@keyframes fhs-rise {
  0% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(var(--drift, 20px), -60vh, 0) rotate(5deg); }
  100% { transform: translate3d(calc(var(--drift, 20px) * -0.6), calc(-100vh - 260px), 0) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fhs-confetti, .fhs-balloons { display: none !important; }
}

/* fullmind-local-fallbacks */
.menu-lottie {
  display: block;
  width: 24px;
  height: 18px;
  background: linear-gradient(to bottom, #403770 0 2px, transparent 2px 8px, #403770 8px 10px, transparent 10px 16px, #403770 16px 18px);
}

@media (max-width: 991px) {
  .nav-menu.w-nav {
    overflow: visible;
  }

  .nav-menu-links.w-nav-menu.w--nav-menu-open {
    float: none;
    position: absolute;
    z-index: 999;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 120px);
  }
}
