/* start-signup.css — page-specific composition for /start.html and its launch mirrors.
   Loaded last. Scoped to the start page only: the shared chrome, the shared header
   and footer, the shared stylesheets and the parent-access behaviour are untouched. */

/* The shared parent-access rules draw a bordered card. This page is a plain white
   column layout, so the card surface is removed here instead of in shared CSS. */
body.parent-life.start-page #parent-access.parent-access {
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  padding: clamp(16px, 2.4vw, 32px) 0 clamp(6px, 1.2vw, 14px);
  margin-block: clamp(8px, 1.4vw, 16px) clamp(4px, 1vw, 10px);
}

/* .parent-access form sets display, which outranks the browser's [hidden] rule.
   Remembered access hides the form, so that has to win here. */
body.parent-life.start-page #parent-access [hidden] { display: none !important; }

body.parent-life.start-page #parent-access .sa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

body.parent-life.start-page #parent-access .sa-col-form,
body.parent-life.start-page #parent-access .sa-col-covers { min-width: 0; }

body.parent-life.start-page #parent-access .sa-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -.032em;
  line-height: 1.04;
  font-size: clamp(34px, 4.1vw, 52px);
  color: #174A7E;
  margin: 0 0 10px;
  max-width: 24ch;
  text-wrap: balance;
}

body.parent-life.start-page #parent-access .sa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

body.parent-life.start-page #parent-access .sa-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  margin: 0 0 14px;
  max-width: 46ch;
  color: #174A7E;
}

body.parent-life.start-page #parent-access .sa-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0;
}

body.parent-life.start-page #parent-access .sa-form > label { font-size: 15px; font-weight: 650; }

body.parent-life.start-page #parent-access #parent-email {
  width: 100%;
  max-width: 520px;
  margin: 0;
  min-height: 50px;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;
  color: #17324D;
  background: #FFFFFF;
  border: 2px solid #174A7E;
  border-radius: 12px;
}

body.parent-life.start-page #parent-access #parent-email:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 2px;
}

body.parent-life.start-page #parent-access .parent-access-check { font-size: 15px; line-height: 1.5; }

body.parent-life.start-page #parent-access .parent-access-check input:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 2px;
}

body.parent-life.start-page #parent-access .sa-form-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 52ch;
  color: #174A7E;
}

body.parent-life.start-page #parent-access .sa-form-note a { color: #174A7E; }

body.parent-life.start-page #parent-access #parent-access-form .button {
  justify-self: stretch;
  width: 100%;
  max-width: 520px;
  min-height: 52px;
  margin: 0;
  border-radius: 14px;
}

body.parent-life.start-page #parent-access #parent-access-form .button:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 3px;
}

body.parent-life.start-page #parent-access #parent-access-status {
  min-height: 24px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #174A7E;
}

body.parent-life.start-page #parent-access .sa-how {
  max-width: 520px;
  margin: 6px 0 0;
  border-top: 1px solid rgba(23, 74, 126, .3);
  padding-top: 8px;
}

body.parent-life.start-page #parent-access .sa-how > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: #174A7E;
}

body.parent-life.start-page #parent-access .sa-how > summary:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 2px;
  border-radius: 8px;
}

body.parent-life.start-page #parent-access .sa-how p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 58ch;
  color: #174A7E;
}

body.parent-life.start-page #parent-access .sa-open-note {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 54ch;
  color: #174A7E;
}

/* Parent e-book covers: the real artwork, untouched, at its true 9:16 ratio. */
body.parent-life.start-page #parent-access .sa-covers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}

body.parent-life.start-page #parent-access .sa-covers a {
  display: grid;
  gap: 7px;
  color: #174A7E;
  text-decoration: none;
  border-radius: 16px;
}

body.parent-life.start-page #parent-access .sa-covers img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(23, 74, 126, .35);
  border-radius: 16px;
  background: #FFFFFF;
}

body.parent-life.start-page #parent-access .sa-covers a:hover img { border-color: #174A7E; }

body.parent-life.start-page #parent-access .sa-covers a:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 3px;
}

body.parent-life.start-page #parent-access .sa-covers strong {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 15px;
  line-height: 1.2;
}

body.parent-life.start-page #parent-access .sa-covers small {
  font-size: 13px;
  line-height: 1.4;
  color: #174A7E;
  opacity: .82;
}

/* Secondary: what to play next. The shared illustration stays whole, never a crop. */
body.parent-life.start-page .sa-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(16px, 2.2vw, 28px);
  margin-bottom: clamp(20px, 3vw, 44px);
  border-top: 1px solid rgba(23, 74, 126, .28);
}

body.parent-life.start-page .sa-play h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }

body.parent-life.start-page .sa-play h2 a {
  color: #174A7E;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

body.parent-life.start-page .sa-play h2 a:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 3px;
  border-radius: 6px;
}

body.parent-life.start-page .sa-play p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
  color: #174A7E;
}

body.parent-life.start-page .sa-play img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Parent navigation: native details instead of a scrolling row of pills. */
body.parent-life.start-page .pl-band .sa-nav-details { flex: 1 1 260px; min-width: 0; text-align: right; }

body.parent-life.start-page .sa-nav-details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid #174A7E;
  border-radius: 999px;
  background: #FFFFFF;
  color: #174A7E;
  font: 650 13.5px/1.3 system-ui, sans-serif;
  cursor: pointer;
}

body.parent-life.start-page .sa-nav-details > summary::-webkit-details-marker { display: none; }
body.parent-life.start-page .sa-nav-details > summary::after { content: "▾"; font-size: 11px; line-height: 1; }
body.parent-life.start-page .sa-nav-details[open] > summary::after { content: "▴"; }

body.parent-life.start-page .sa-nav-details > summary:hover,
body.parent-life.start-page .sa-nav-details[open] > summary {
  background: #174A7E;
  color: #FFFFFF !important;
}

body.parent-life.start-page .sa-nav-details > summary:hover::after,
body.parent-life.start-page .sa-nav-details[open] > summary::after {
  color: #FFFFFF !important;
}

body.parent-life.start-page .sa-nav-details > summary:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 2px;
}

body.parent-life.start-page .sa-nav-details > nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  max-width: 100%;
}

body.parent-life.start-page .sa-nav-details > nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid #174A7E;
  border-radius: 999px;
  background: #FFFFFF;
  color: #174A7E;
  font: 650 13.5px/1.3 system-ui, sans-serif;
  text-decoration: none;
  white-space: normal;
}

body.parent-life.start-page .sa-nav-details > nav a:hover,
body.parent-life.start-page .sa-nav-details > nav a[aria-current="page"] {
  background: #174A7E;
  color: #FFFFFF;
}

body.parent-life.start-page .sa-nav-details > nav a:focus-visible {
  outline: 3px solid #174A7E;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  body.parent-life.start-page #parent-access .sa-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.parent-life.start-page #parent-access .sa-title { max-width: none; }
  body.parent-life.start-page #parent-access .sa-covers { max-width: 520px; }
  body.parent-life.start-page .sa-play { grid-template-columns: minmax(0, 1fr); }
  body.parent-life.start-page .sa-play img { max-width: 560px; }
}

@media (max-width: 760px) {
  body.parent-life.start-page .pl-band .sa-nav-details { flex: 1 1 100%; text-align: left; }
  body.parent-life.start-page .sa-nav-details > nav { justify-content: flex-start; }
  body.parent-life.start-page #parent-access .sa-covers { gap: 10px; }
  body.parent-life.start-page #parent-access .sa-covers strong { font-size: 13.5px; }
  body.parent-life.start-page #parent-access .sa-covers small { font-size: 12px; }
}

@media print {
  body.parent-life.start-page .sa-nav-details { display: none; }
}

/* Emergency fallback link rendered by assets/parent-access.js when the access
   service is unavailable. Kept in this external stylesheet because the start-page
   CSP is style-src 'self' (an injected <style> would be blocked). Adds only a
   comfortable 44 px touch target around the inline link; no layout change. */
body.parent-life.start-page #parent-access #parent-access-status .parent-access-emergency-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  margin-left: 4px;
  font-weight: 700;
  color: #174A7E;
  text-decoration: underline;
}
/* The selected material takes priority when a download brought a parent here. */
body.parent-life.start-page #parent-access[data-requested-file] .sa-grid{grid-template-columns:minmax(0,1fr);max-width:48rem;margin-inline:auto}
body.parent-life.start-page #parent-access[data-requested-file] .sa-title{max-width:none}
.sa-selected-material{font-size:clamp(1.1rem,2vw,1.4rem);line-height:1.45;font-weight:600;color:#174A7E;overflow-wrap:anywhere}
