/* Parent hub — faithful rebuild from the approved prototype, 27 September 2026.
   Scope: body.parents-prototype on parents.html only. Loaded after parent-life.css.
   Hero, guide and reminder now use their own separate corrected images (URLs
   below); the shared prototype sprite still feeds only the audio and play
   tiles. Every piece of interface text stays real HTML.
   Every rule is theme-scoped so it outranks the shared portal theme's own
   ":root[data-portal-theme] body .wrap / .portal-parent-link" rules. */

:root[data-portal-theme] body.parents-prototype { background: #fff; }

:root[data-portal-theme] body.parents-prototype .wrap {
  width: 100% !important; max-width: 1536px !important; margin-inline: auto; box-sizing: border-box;
  padding-inline: clamp(18px, 4.42vw, 68px);
}

/* ---------- header ---------- */

:root[data-portal-theme] body.parents-prototype .portal-header > .wrap {
  min-height: 76px; padding-block: 8px;
}
:root[data-portal-theme] body.parents-prototype .portal-header nav { gap: 26px; }
:root[data-portal-theme] body.parents-prototype .portal-header nav a {
  font: 600 16px/1.4 Fredoka, system-ui, sans-serif; color: #174A7E !important; min-height: 44px;
}
:root[data-portal-theme] body.parents-prototype .portal-header nav a:hover,
:root[data-portal-theme] body.parents-prototype .portal-header nav a[aria-current="page"]:not(.portal-parent-link) {
  color: #174A7E !important; text-decoration: underline; text-underline-offset: 6px;
}
:root[data-portal-theme] body.parents-prototype .portal-header .portal-parent-link {
  background: #174A7E !important; color: #FFFFFF !important; --brand-ink: #FFFFFF !important;
  padding: 11px 22px; border-radius: 999px; min-height: 44px; text-decoration: none;
}
:root[data-portal-theme] body.parents-prototype .portal-header .portal-mobile-menu > summary {
  font: 600 15px/1.4 Fredoka, system-ui, sans-serif; color: #174A7E;
}

/* ---------- artwork: three corrected images + shared sprite for audio/play ---------- */

:root[data-portal-theme] body.parents-prototype .pl-art {
  display: block; width: 100%;
  background-image: url("/assets/parent-life/prototype-art.webp");
  background-repeat: no-repeat; background-color: #fff;
  aspect-ratio: var(--aw) / var(--ah);
  background-size: calc(1536 / var(--aw) * 100%) auto;
  background-position:
    calc(var(--ax) / (1536 - var(--aw)) * 100%)
    calc(var(--ay) / (1024 - var(--ah)) * 100%);
}
:root[data-portal-theme] body.parents-prototype .pl-art-hero {
  --ax: 440; --ay: 65; --aw: 1096; --ah: 430;
  /* Hero uses the separate corrected image (1096x430) instead of the shared
     sprite: background-size 100% 100% fills the element exactly, so the crop
     and the 1096/430 aspect ratio are unchanged. The clip-path from the
     approved prototype is kept for the same hero silhouette at every width. */
  background-image: url("/assets/parent-life/parents-hero-american.webp");
  background-size: 100% 100%; background-position: center;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 0 76%, 11% 76%, 11% 60%, 16% 60%);
}
:root[data-portal-theme] body.parents-prototype .pl-art-guide {
  /* Guide tile uses the separate corrected image (321x214); the exact 321/214
     crop and 3:2 aspect ratio are unchanged. */
  --ax: 70; --ay: 518; --aw: 321; --ah: 214; border-radius: 16px;
  background-image: url("/assets/parent-life/math-in-real-life.webp");
  background-size: 100% 100%; background-position: center;
}
:root[data-portal-theme] body.parents-prototype .pl-art-reminder {
  /* Reminder tile uses the separate corrected image (321x214); the exact 321/214
     crop and 3:2 aspect ratio are unchanged. */
  --ax: 786; --ay: 518; --aw: 321; --ah: 214; border-radius: 16px;
  background-image: url("/assets/parent-life/calmer-math-moment.webp");
  background-size: 100% 100%; background-position: center;
}
:root[data-portal-theme] body.parents-prototype .pl-art-audio { --ax: 67; --ay: 763; --aw: 327; --ah: 218; border-radius: 16px; }
:root[data-portal-theme] body.parents-prototype .pl-art-play { --ax: 783; --ay: 763; --aw: 328; --ah: 219; border-radius: 16px; }

/* ---------- hero ---------- */

:root[data-portal-theme] body.parents-prototype .pl-hero {
  position: relative; display: block; padding-block: 34px 12px; min-height: 420px;
}
:root[data-portal-theme] body.parents-prototype .pl-hero-copy { position: relative; z-index: 2; max-width: 540px; }
:root[data-portal-theme] body.parents-prototype .pl-hero h1 {
  font-size: clamp(42px, 5.73vw, 88px); line-height: 1.0; letter-spacing: -.035em;
  color: #174A7E; margin: 0 0 20px; text-wrap: initial;
}
/* The shared sheet hides every h1 <br> below 760px; the prototype heading reads
   "A place" / "for you, too." at every width. */
:root[data-portal-theme] body.parents-prototype .pl-hero h1 br,
:root[data-portal-theme] body.parents-prototype .pl-door h2 br { display: inline; }
:root[data-portal-theme] body.parents-prototype .pl-lead {
  font-size: clamp(18px, 1.56vw, 24px); line-height: 1.4; color: #174A7E; max-width: 480px; margin: 0;
}
:root[data-portal-theme] body.parents-prototype .pl-actions { margin: 26px 0 0; }
:root[data-portal-theme] body.parents-prototype .pl-actions .pl-button {
  font-size: 19px; min-height: 56px; padding: 14px 26px; border-radius: 14px;
}
@media (min-width: 1024px) and (max-width: 1423px) {
  :root[data-portal-theme] body.parents-prototype .pl-hero-art {
    position: absolute; top: 0; right: 0; width: min(calc(100% - 552px), 1040px); margin: 0;
  }
}
@media (min-width: 1424px) {
  :root[data-portal-theme] body.parents-prototype .pl-hero-art {
    position: absolute; top: 0; right: 0; width: min(74%, 1040px); margin: 0;
  }
}
@media (max-width: 1023px) {
  :root[data-portal-theme] body.parents-prototype .pl-hero { padding-block: 22px 8px; min-height: 0; }
  :root[data-portal-theme] body.parents-prototype .pl-hero-copy { max-width: 100%; }
  :root[data-portal-theme] body.parents-prototype .pl-hero-art {
    position: static; width: 100%; max-width: 100%; margin: 20px 0 0;
  }
}

/* ---------- the four doors ---------- */

:root[data-portal-theme] body.parents-prototype .pl-doors {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 30px 24px; padding-block: 24px 8px;
}
@media (min-width: 1240px) {
  :root[data-portal-theme] body.parents-prototype .pl-doors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
:root[data-portal-theme] body.parents-prototype .pl-door {
  display: grid; grid-template-columns: 324px minmax(0, 1fr); gap: 24px;
  align-content: center; align-items: start; min-width: 0;
}
:root[data-portal-theme] body.parents-prototype .pl-door-art { display: block; border-radius: 16px; }
:root[data-portal-theme] body.parents-prototype .pl-door-art .pl-art { aspect-ratio: 3 / 2; }
:root[data-portal-theme] body.parents-prototype .pl-door-copy { display: flex; flex-direction: column; min-width: 0; }
:root[data-portal-theme] body.parents-prototype .pl-door h2 {
  font-size: clamp(24px, 2.08vw, 32px); line-height: 1.12; letter-spacing: -.03em;
  color: #174A7E; margin: 0 0 8px; text-wrap: initial;
}
:root[data-portal-theme] body.parents-prototype .pl-door p {
  font-size: clamp(16px, 1.17vw, 18px); line-height: 1.5; color: #174A7E; margin: 0 0 10px; max-width: 42ch;
}
:root[data-portal-theme] body.parents-prototype .pl-door .pl-link {
  margin-top: auto; font-size: clamp(16px, 1.17vw, 18px); font-weight: 700; min-height: 44px; padding: 6px 0;
}
@media (max-width: 640px) {
  :root[data-portal-theme] body.parents-prototype .pl-door { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- remaining utility links: illustrated nav ---------- */

:root[data-portal-theme] body.parents-prototype .pl-help { border-top: 1px solid #174A7E; padding-block: 22px 24px; }
:root[data-portal-theme] body.parents-prototype .pl-help h2 {
  font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 12px;
}
:root[data-portal-theme] body.parents-prototype .pl-help nav {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 28px; margin: 2px 0 0;
}
:root[data-portal-theme] body.parents-prototype .pl-help nav a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  column-gap: 16px; min-height: 44px;
  font: 600 16px/1.4 system-ui, sans-serif; color: #174A7E !important; text-decoration: none;
}
:root[data-portal-theme] body.parents-prototype .pl-help nav a .pp-fig { float: none; margin: 0; }
:root[data-portal-theme] body.parents-prototype .pl-help nav a:hover,
:root[data-portal-theme] body.parents-prototype .pl-help nav a:focus-visible {
  text-decoration: underline; text-decoration-thickness: 2px;
}
:root[data-portal-theme] body.parents-prototype .pl-help > p { font-size: 15px; max-width: 74ch; margin: 8px 0 0; }
@media (min-width: 640px) {
  :root[data-portal-theme] body.parents-prototype .pl-help nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  :root[data-portal-theme] body.parents-prototype .pl-help nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- point illustrations: one uniform 96x96 frame (72 on phones),
   left of the text, never a tiny icon, never a link of its own. ---------- */

:root[data-portal-theme] body.parents-prototype .pp-fig {
  float: left; display: block; min-height: 0; margin: 0 18px 8px 0;
}
:root[data-portal-theme] body.parents-prototype .pp-fig img {
  display: block; width: 96px; height: 96px; object-fit: contain;
}
/* the float must not bleed into the next point */
:root[data-portal-theme] body.parents-prototype :is(.pp-item, .pp-moment, .pp-step, .pp-note-row)::after {
  content: ""; display: block; clear: both;
}
:root[data-portal-theme] body.parents-prototype .pp-note-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px;
  align-items: start; margin-top: 24px;
}
:root[data-portal-theme] body.parents-prototype .pp-note-row .pp-fig { float: none; margin: 0; }
:root[data-portal-theme] body.parents-prototype .pp-note-row .pp-note { margin-top: 0; }
@media (max-width: 560px) {
  :root[data-portal-theme] body.parents-prototype .pp-fig { margin-right: 14px; }
  :root[data-portal-theme] body.parents-prototype .pp-fig img { width: 72px; height: 72px; }
}

/* ---------- approved full-bleed footer, white on navy #174A7E ----------
   Structure and labels copied from the approved explore.html footer; scoped
   under .pp-footer so the page's own white/navy theme still wins. */

:root[data-portal-theme] body.parents-prototype .pp-footer {
  display: block !important; background: #174A7E !important; color: #FFFFFF !important;
  margin: 0 !important; border: 0 !important; text-align: left !important;
  padding: clamp(30px, 3.6vw, 54px) 0 clamp(20px, 2.2vw, 26px) !important;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-inner {
  display: flex !important; flex-direction: column !important;
  align-items: stretch !important; gap: 0 !important; max-width: 1536px !important;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-intro {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  justify-content: space-between !important; align-items: flex-start !important;
  gap: 14px 40px; padding: 0 0 clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid #45617A;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .portal-logo {
  color: #FFFFFF !important; font-size: clamp(20px, 2.1vw, 30px); min-height: 44px;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .portal-logo span { color: #FFFFFF !important; }
:root[data-portal-theme] body.parents-prototype .pp-footer .portal-logo .portal-rune { background: #FFFFFF !important; }
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-tagline {
  margin: 0 !important; font-size: 16px; line-height: 1.6; color: #FFFFFF !important; max-width: 48ch;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-links {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
  gap: 26px 24px; padding: clamp(24px, 2.8vw, 34px) 0;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-links nav {
  display: flex !important; flex-direction: column !important; align-items: flex-start !important;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-links h2 {
  margin: 0 0 12px !important; font-size: 18px !important; font-weight: 600; line-height: 1.4;
  letter-spacing: 0; color: #FFFFFF !important; overflow-wrap: break-word; max-width: none !important;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0;
  font-size: 16px; line-height: 1.4; color: #FFFFFF !important; text-decoration: none;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-links a:hover,
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-links a:focus-visible {
  text-decoration: underline; text-underline-offset: 3px;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-bottom {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  justify-content: space-between !important; align-items: flex-start !important;
  gap: 14px 32px; border-top: 1px solid #45617A; padding-top: clamp(18px, 2.2vw, 26px);
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-bottom-copy {
  display: flex; flex-direction: column; gap: 4px;
}
:root[data-portal-theme] body.parents-prototype .pp-footer :is(.copyright, .footer-note) {
  margin: 0 !important; font-size: 15px !important; line-height: 1.5; color: #FFFFFF !important;
  max-width: none !important;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-email {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.5;
  color: #FFFFFF !important; text-decoration: none;
}
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-email:hover,
:root[data-portal-theme] body.parents-prototype .pp-footer .footer-email:focus-visible {
  text-decoration: underline; text-underline-offset: 3px;
}
@media (min-width: 560px) {
  :root[data-portal-theme] body.parents-prototype .pp-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 900px) {
  :root[data-portal-theme] body.parents-prototype .pp-footer .footer-links {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ---------- focus, motion ---------- */

:root[data-portal-theme] body.parents-prototype :is(a, summary, button):focus-visible {
  outline: 3px solid #174A7E; outline-offset: 3px; border-radius: 8px;
}
/* the parent interface is white and navy only: on the navy footer the ring goes white */
:root[data-portal-theme] body.parents-prototype .pp-footer :is(a, .portal-logo):focus-visible {
  outline-color: #FFFFFF !important;
}
@media (prefers-reduced-motion: reduce) {
  :root[data-portal-theme] body.parents-prototype .pl-enter { animation: none !important; }
}

/* ---------- restored parent-zone editorial sections (v2) ----------
   Scoped, unboxed editorial content that gives the parent zone its original
   purpose back: what the child gains, what the grown-up gains, what to do in a
   real moment, and a first small step. White ground, navy #174A7E only, thin
   navy separators, restrained numbering. No media, fonts, JS or dependencies. */

:root[data-portal-theme] body.parents-prototype .pp-section {
  border-top: 1px solid #174A7E; padding-block: clamp(26px, 2.6vw, 40px);
}
:root[data-portal-theme] body.parents-prototype .pp-section > h2 {
  font-family: var(--brand-heading-font, 'Poppins', system-ui, sans-serif);
  font-size: clamp(30px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.03em;
  color: #174A7E; margin: 0 0 14px; max-width: 30ch; text-wrap: balance;
}
:root[data-portal-theme] body.parents-prototype .pp-lead {
  font-size: clamp(17px, 1.19vw, 18px); line-height: 1.55; color: #174A7E;
  max-width: 68ch; margin: 0; text-wrap: pretty;
}

/* equal child / parent columns */

:root[data-portal-theme] body.parents-prototype .pp-cols {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 30px 48px; margin-top: 26px; align-items: start;
}
:root[data-portal-theme] body.parents-prototype .pp-col { min-width: 0; }
:root[data-portal-theme] body.parents-prototype .pp-col-title {
  font-family: var(--brand-heading-font, 'Poppins', system-ui, sans-serif);
  font-size: clamp(28px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -.025em;
  color: #174A7E; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #174A7E;
}
:root[data-portal-theme] body.parents-prototype .pp-item { max-width: 60ch; }
:root[data-portal-theme] body.parents-prototype .pp-item + .pp-item { margin-top: 18px; }
:root[data-portal-theme] body.parents-prototype .pp-title {
  font-family: var(--brand-heading-font, 'Poppins', system-ui, sans-serif);
  font-weight: 600; font-size: clamp(17px, 1.17vw, 18px); line-height: 1.3;
  letter-spacing: -.01em; color: #174A7E; margin: 0 0 4px;
}
:root[data-portal-theme] body.parents-prototype :is(.pp-item, .pp-moment, .pp-step) p:not(.pp-title),
:root[data-portal-theme] body.parents-prototype .pp-note {
  font-size: clamp(17px, 1.17vw, 18px); line-height: 1.55; color: #174A7E; margin: 0;
}
:root[data-portal-theme] body.parents-prototype .pp-more { margin: 22px 0 0; }

/* shared link styling */

:root[data-portal-theme] body.parents-prototype .pp-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0;
  font: 700 clamp(17px, 1.17vw, 18px)/1.4 var(--brand-heading-font, 'Poppins', system-ui, sans-serif);
  color: #174A7E !important; text-decoration: none;
}
:root[data-portal-theme] body.parents-prototype .pp-link:hover,
:root[data-portal-theme] body.parents-prototype .pp-link:focus-visible {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}

/* “what would help today” — six compact moments, three per column */

:root[data-portal-theme] body.parents-prototype .pp-moments {
  counter-reset: pp-moment; display: grid; gap: 0 48px; margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto); grid-auto-flow: column; align-items: stretch;
}
:root[data-portal-theme] body.parents-prototype .pp-moment {
  counter-increment: pp-moment; min-width: 0;
  border-top: 1px solid #174A7E; padding: 14px 0 18px;
}
:root[data-portal-theme] body.parents-prototype .pp-moment::before {
  content: counter(pp-moment, decimal-leading-zero); display: block;
  font-family: var(--brand-heading-font, 'Poppins', system-ui, sans-serif);
  font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: .16em;
  color: #174A7E; opacity: .7; margin-bottom: 10px;
}
:root[data-portal-theme] body.parents-prototype .pp-moment .pp-title { margin-bottom: 5px; }
:root[data-portal-theme] body.parents-prototype .pp-moment-link,
:root[data-portal-theme] body.parents-prototype .pp-step-link { margin: 6px 0 0; }

/* “one small adventure” — three native ordered steps */

:root[data-portal-theme] body.parents-prototype .pp-steps {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px;
  margin: 26px 0 0; padding: 0; list-style: none; counter-reset: pp-step;
}
:root[data-portal-theme] body.parents-prototype .pp-step {
  counter-increment: pp-step; position: relative; min-width: 0; max-width: 60ch;
  border-top: 1px solid #174A7E; padding: 14px 0 4px;
}
:root[data-portal-theme] body.parents-prototype .pp-step::before {
  content: counter(pp-step) "."; display: block;
  font-family: var(--brand-heading-font, 'Poppins', system-ui, sans-serif);
  font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: .16em;
  color: #174A7E; opacity: .7; margin-bottom: 10px;
}
:root[data-portal-theme] body.parents-prototype .pp-note { margin-top: 24px; max-width: 78ch; }

@media (min-width: 760px) {
  :root[data-portal-theme] body.parents-prototype .pp-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  :root[data-portal-theme] body.parents-prototype .pp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  :root[data-portal-theme] body.parents-prototype .pp-moments {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row;
  }
}

/* Skip link: style.css only shifts it to top:-100px, which a tall section
   screenshot can still reveal. Same 1px clip pattern as home.css; revealed at
   top:12px once focused. Keyboard access unchanged. */
:root[data-portal-theme] body.parents-prototype .skip-link:not(:focus) {
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0;
}
:root[data-portal-theme] body.parents-prototype .skip-link:focus { top: 12px; }
