/* Home Learning sign-up landing pages (scripts/build_signup_pages.py). Uses the
   /home-learning page's tokens (.fhl). */
.fhs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.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 .fhs-packet__btn { color: #FFFCFA; }
.fhs-packet__btn { width: 100%; min-height: 72px; font-size: clamp(1.1rem, 2.4vw, 1.35rem); text-align: center; padding: 20px 28px; }
.fhs-download { display: flex; gap: 14px; align-items: stretch; }
.fhs-download .fhs-packet__btn { flex: 1; width: auto; }
.fhs-students { display: grid; gap: 4px; align-content: center; padding: 8px 16px; border: 1.5px solid rgba(64,55,112,0.3); border-radius: 14px; background: #FFFCFA; }
.fhs-students[hidden] { display: none; }
.fhs-students label { font-size: .85rem; font-weight: 600; color: #403770; white-space: nowrap; }
.fhs-students select { font: inherit; font-weight: 600; min-height: 40px; padding: 6px 10px; border: 1.5px solid rgba(64,55,112,0.3); border-radius: 10px; background: #FFFCFA; color: #403770; }
.fhs-packet__count { margin-top: 10px; text-align: center; color: #403770; font-size: .95rem; }
.fhs-link { font: inherit; color: #403770; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 4px; min-height: 32px; cursor: pointer; }
.fhs-more { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(196,231,230,0.16); color: #403770; font-size: .95rem; line-height: 1.5; }
.fhs-more a { color: inherit; font-weight: 600; word-break: break-word; }
.fhs-overview { margin-top: 14px; text-align: center; }
.fhs-overview a { color: #403770; font-size: .9rem; font-weight: 500; text-underline-offset: 3px; }
/* 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 { margin-top: 14px; }
.fhs-mail__card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 60px; text-align: center;
  background: rgba(196,231,230,0.9); border: 2px solid #403770; border-radius: 16px; color: #403770; cursor: pointer; list-style: none;
  transition: background-color .15s ease; }
.fhs-mail__card::-webkit-details-marker { display: none; }
.fhs-mail__card::marker { content: ""; }
.fhs-mail__card:hover { background: #C4E7E6; }
.fhs .fhs-mail__card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 16px; }
.fhs-mail__icon { width: 30px; height: 30px; margin-bottom: 2px; }
.fhs-mail__title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.fhs-mail__action { font-weight: 500; line-height: 1.45; text-decoration: underline; text-underline-offset: 3px; }
.fhs-mail__arrow { position: absolute; right: 22px; top: 50%; font-size: 2rem; line-height: 1; transform: translateY(-50%);
  transition: transform .2s ease; }
.fhs-mail[open] .fhs-mail__arrow { transform: translateY(-50%) rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .fhs-mail__card, .fhs-mail__arrow { transition: none; } }
.fhs-mail__form { margin-top: 12px; padding: 18px; display: grid; gap: 12px; border: 1px solid rgba(64,55,112,0.18);
  border-radius: 14px; background: #FFFCFA; }
.fhs-mail__intro { color: #403770; font-size: .95rem; }
.fhs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fhs-row--3 { grid-template-columns: 1.4fr 1fr .8fr; }
.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, .fhs-row--3 { grid-template-columns: 1fr; }
  .fhs-mail__submit { justify-self: stretch; }
  .fhs-mail__card { padding: 18px 44px; }
  .fhs-mail__arrow { right: 14px; }
  .fhs-download { flex-direction: column; }
  .fhs-students { grid-template-columns: 1fr auto; align-items: center; }
}

/* 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; } }
.fhs-language-help { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(110,163,190,0.08); color: #403770; font-size: .95rem; line-height: 1.5; display: grid; gap: 8px; }
.fhs-language-help a { color: #403770; font-weight: 600; word-break: break-word; }
.fhs-list-sub { margin-top: 18px; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #403770; text-transform: uppercase; letter-spacing: .06em; }
.fhs-list-title { margin-top: 36px; font-family: var(--sans); font-size: 1.25rem; font-weight: 600; color: #403770; }
.fhs-forms, .fhs-ready { margin-top: 12px; display: grid; gap: 0; }
.fhs-forms li, .fhs-ready li { padding: 12px 0; border-bottom: 1px solid rgba(64,55,112,0.14); line-height: 1.45; }
.fhs-forms { counter-reset: form; }
.fhs-forms li { counter-increment: form; display: grid; grid-template-columns: 2em 1fr; }
.fhs-forms li::before { content: counter(form) "."; color: #403770; font-weight: 500; }
.fhs-forms li > * { grid-column: 2; }
.fhs-form__name { font-weight: 600; color: #403770; }
.fhs-form__name { display: block; }
.fhs-form__need { display: block; color: #403770; font-size: .95rem; }
.fhs-ready li { display: grid; grid-template-columns: 2em 1fr; }
.fhs-ready li::before { content: "✓"; color: #403770; font-weight: 700; }

/* 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);
  }
}
