/* Shared KUKŪ header and footer for the parents' page, articles, prices and story pages. */
:root:has(body.family-site) { --family-background: none; }
html:has(body.family-site), body.family-site { background: #F2FAFF !important; background-image: none !important; }
body.family-site::before, body.family-site::after { background-image: none !important; }
/* Articles list heading: a sky banner like the other page heroes. */
.blog-index-head { margin: 28px 0 30px; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); border-radius: 32px; background: linear-gradient(#45BDFF, #1BA6F5 55%, #0A7FE0); color: #fff; text-align: center; }
.blog-index-head h1, .blog-index-head p { color: #fff !important; }
.kuku-chrome-wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
/* Header: same sky blue as the page heroes, scrolls away with the page, menu behind a ☰ button. */
.site-header.kuku-chrome-header { position: relative !important; top: auto !important; z-index: 1000 !important; display: block; width: 100% !important; max-width: none !important; padding: 12px 0 !important; margin: 0 !important; background: #45BDFF !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.kuku-chrome-header .kuku-chrome-wrap { flex-wrap: nowrap; width: min(1120px, calc(100% - 32px)) !important; max-width: none !important; }
.kuku-chrome-brand { display: inline-flex; align-items: center; gap: 10px; font: 900 22px/1 Nunito, sans-serif; color: #17224D; text-decoration: none; }
.kuku-chrome-header .kuku-chrome-brand { color: #fff; }
.kuku-chrome-brand img { border-radius: 12px; }
.kuku-menu { position: relative; }
.kuku-menu summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 11px; border-radius: 14px; background: rgba(255,255,255,.22); }
.kuku-menu summary::-webkit-details-marker { display: none; }
.kuku-menu summary span { display: block; height: 3px; border-radius: 3px; background: #fff; transition: transform .2s, opacity .2s; }
.kuku-menu[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.kuku-menu[open] summary span:nth-child(2) { opacity: 0; }
.kuku-menu[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Desktop: menu left, logo centred, families count and LT on the right (three equal columns). */
.kuku-chrome-header .kuku-chrome-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.site-header.kuku-chrome-header { padding: 16px 0 !important; }
.kuku-chrome-header .kuku-chrome-brand { justify-self: center; font-size: 28px; }
.kuku-chrome-header .kuku-chrome-brand img { width: 52px; height: 52px; border-radius: 14px; }
.kuku-desktop-nav { display: flex; align-items: center; gap: 4px; justify-self: start; }
.kuku-desktop-nav a, .kuku-more summary { padding: 8px 12px; border-radius: 999px; font-weight: 800; color: #fff; text-decoration: none; cursor: pointer; }
.kuku-desktop-nav a:hover, .kuku-desktop-nav a[aria-current="page"], .kuku-more summary:hover { background: rgba(255,255,255,.22); }
.kuku-more { position: relative; }
.kuku-more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.kuku-more summary::-webkit-details-marker { display: none; }
.kuku-more summary::after { content: ''; width: 7px; height: 7px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) translateY(-2px); }
.kuku-more > div { position: absolute; left: 0; top: calc(100% + 8px); min-width: 190px; display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(23,34,77,.18); }
.kuku-more > div a { color: #17224D; border-radius: 12px; }
.kuku-more > div a:hover, .kuku-more > div a[aria-current="page"] { background: #EAF7FF; color: #0A7FE0; }
.kuku-chrome-side { justify-self: end; display: flex; align-items: center; gap: 16px; color: #fff; font-weight: 700; font-size: 14px; }
.kuku-chrome-rating { display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.4); }
.kuku-chrome-rating[hidden] { display: none; }
.kuku-chrome-lt { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.kuku-chrome-header .lt-flag { display: inline-flex; flex-direction: column; width: 30px; height: 20px; border-radius: 5px; overflow: hidden; border: 2px solid #fff; }
.kuku-chrome-header .lt-flag i { flex: 1; }
.kuku-chrome-header .lt-flag i:nth-child(1) { background: #FDB913; } .kuku-chrome-header .lt-flag i:nth-child(2) { background: #006A44; } .kuku-chrome-header .lt-flag i:nth-child(3) { background: #C1272D; }
/* KUKŪ pasakos pages: the stories app's evening purple. */
.site-header.kuku-chrome-header.kuku-chrome-header--pasakos { background: #5B4385 !important; }
.kuku-chrome-header--pasakos .kuku-desktop-nav a[aria-current="page"], .kuku-chrome-header--pasakos .kuku-desktop-nav a:hover { background: rgba(255,255,255,.16); }
.kuku-chrome-header--pasakos .kuku-chrome-nav a:hover, .kuku-chrome-header--pasakos .kuku-chrome-nav a[aria-current="page"],
.kuku-chrome-header--pasakos .kuku-more > div a:hover, .kuku-chrome-header--pasakos .kuku-more > div a[aria-current="page"] { background: #F2ECF9; color: #5B4385; }
.kuku-menu { display: none; }
/* Phone and small tablet: logo left, ☰ right, menu opens full width under the header. */
@media (max-width: 960px) {
  .kuku-chrome-header .kuku-chrome-wrap { display: flex; justify-content: space-between; }
  .kuku-chrome-header .kuku-chrome-brand { font-size: 22px; }
  .kuku-chrome-header .kuku-chrome-brand img { width: 44px; height: 44px; }
  .kuku-desktop-nav, .kuku-chrome-rating { display: none !important; }
  .kuku-menu { display: block; position: static; }
  /* Phone: one big flag of the page's language next to ☰; it opens the language list. */
  .kuku-chrome-header .kuku-chrome-brand { margin-right: auto; }
  .kuku-chrome-side { gap: 0; }
  .kuku-lang summary { gap: 0; padding: 6px; font-size: 0; }
  .kuku-lang summary::after { display: none; }
  .kuku-lang summary .kuku-flag { width: 42px; height: 29px; border-width: 2.5px; border-radius: 6px; }
  .kuku-lang > div { position: fixed; left: auto; right: 12px; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; }

  .kuku-chrome-header .kuku-chrome-nav { left: 12px; right: 12px; top: calc(100% + 6px); min-width: 0; }
}
.kuku-chrome-nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; display: flex; flex-direction: column; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(23,34,77,.18); }
.kuku-chrome-nav a { padding: 10px 14px; border-radius: 12px; font-weight: 800; color: #17224D; text-decoration: none; }
.kuku-chrome-nav a:hover, .kuku-chrome-nav a[aria-current="page"] { background: #EAF7FF; color: #0A7FE0; }

.site-footer.kuku-chrome-footer { display: block; margin: 0; padding: 26px 0 30px; background: #17224D; color: #C9D3F0; font-size: 14px; border: 0; }
.kuku-chrome-footer .kuku-chrome-brand { color: #fff; font-size: 20px; }
.kuku-chrome-footer nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.kuku-chrome-footer nav a { color: #fff; font-weight: 700; opacity: .9; text-decoration: none; }
.kuku-chrome-footer nav a:hover { opacity: 1; text-decoration: underline; }
.kuku-chrome-end { display: inline-flex; align-items: center; gap: 14px; }
.kuku-chrome-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #1877F2; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.25); }

/* Page heroes in the KUKŪ sky colours. */
.parents-hero { background: linear-gradient(#45BDFF, #1BA6F5 55%, #0A7FE0) !important; color: #fff; }
.parents-hero h1, .parents-hero p, .parents-hero .parents-kicker { color: #fff !important; }
.parents-hero .parents-button { background: #FFC83D !important; color: #17224D !important; border-radius: 999px; font-weight: 900; }

@media (max-width: 640px) {
  .kuku-chrome-footer .kuku-chrome-wrap { justify-content: center; text-align: center; }
  .kuku-chrome-footer nav { justify-content: center; }
}

/* ============================================================================
   Home-page look for every family page (articles, prices, documents).
   Same tokens as the KUKU home: sky blue, navy text, chunky white cards with a
   coloured border and a pressed bottom edge, yellow pill buttons.
   ========================================================================== */
body.family-site {
  --sky: #1BA6F5; --sky-deep: #0A7FE0; --navy: #17224D; --ink-soft: #4A5A7A;
  --sun: #FFC928; --sun-edge: #D99A00; --soft-line: #D7ECFA;
  --c-orange: #FF8A3D; --c-teal: #22C3A4; --c-blue: #5B7CFA; --c-rose: #F2577A; --c-green: #7BC943; --c-amber: #FFB31A;
  color: var(--navy); font-family: Nunito, sans-serif;
}
body.family-site h1, body.family-site h2, body.family-site h3 { color: var(--navy); }

/* Footer: full width navy band, exactly like the home page. */
.site-footer.kuku-chrome-footer { width: 100% !important; max-width: none !important; min-height: 0; margin: 48px 0 0 !important; background: #17224D !important; }
.kuku-chrome-footer .kuku-chrome-wrap { width: min(1120px, calc(100% - 36px)); }
.kuku-chrome-end { display: inline-flex; align-items: center; gap: 14px; color: #C9D3F0; }
.kuku-chrome-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #1877F2; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.25); }

/* Page hero (articles list): full-width sky band like the home hero. */
body.family-site .blog-index-head { margin: 0 calc(50% - 50vw) 40px; width: 100vw; border-radius: 0; padding: clamp(40px, 6vw, 72px) 20px clamp(44px, 6vw, 76px);
  background: linear-gradient(#45BDFF, var(--sky) 55%, var(--sky-deep)); }
body.family-site .blog-index-head h1 { text-shadow: 0 6px 0 rgba(0, 40, 90, .18); }
body.family-site .blog-index-head p { color: #EAF7FF !important; font-weight: 700; }

/* Article cards: white, coloured chunky border, colours rotate like the home benefit cards. */
body.family-site .blog-card { --edge: var(--c-blue); border: 4px solid var(--edge); border-radius: 28px; background: #fff; box-shadow: 0 8px 0 var(--edge);
  transition: transform .12s, box-shadow .12s; }
body.family-site .blog-card:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--edge); }
body.family-site .blog-card.blog-pasakos { background: #fff; }
body.family-site .blog-cards > .blog-card:nth-child(6n+1) { --edge: var(--c-teal); }
body.family-site .blog-cards > .blog-card:nth-child(6n+2) { --edge: var(--c-orange); }
body.family-site .blog-cards > .blog-card:nth-child(6n+3) { --edge: var(--c-blue); }
body.family-site .blog-cards > .blog-card:nth-child(6n+4) { --edge: var(--c-rose); }
body.family-site .blog-cards > .blog-card:nth-child(6n+5) { --edge: var(--c-amber); }
body.family-site .blog-cards > .blog-card:nth-child(6n+6) { --edge: var(--c-green); }
body.family-site .blog-cards { gap: 28px 22px; }
body.family-site .blog-card-image { height: 190px; background: #EAF7FF; }
body.family-site .blog-card h2 { color: var(--navy); }
body.family-site .blog-card-link:hover h2 { color: var(--sky-deep); }
body.family-site .blog-card h2 + p { color: var(--ink-soft); }
body.family-site .blog-card-date { color: var(--ink-soft); }
body.family-site .blog-topic { background: #EAF7FF; color: var(--sky-deep); }
body.family-site .blog-pasakos .blog-topic, body.family-site.blog-pasakos .blog-article-head .blog-topic { background: #F2ECF9; color: #5B4385; }

/* Article page: navy text, soft sky boxes with a pressed edge (like the home FAQ). */
body.family-site .blog-breadcrumb { color: var(--ink-soft); }
body.family-site .blog-article-head > p:not(.blog-topic, .blog-author) { color: var(--ink-soft); }
body.family-site .blog-article-copy { color: #2A3658; }
body.family-site .blog-toc, body.family-site .blog-side { background: #fff; border: 3px solid var(--soft-line); border-radius: 22px; box-shadow: 0 5px 0 var(--soft-line); }
body.family-site .blog-side { border-color: #FFE08A; box-shadow: 0 5px 0 #FFE08A; background: #FFFBEF; }
body.family-site .blog-toc a:hover { color: var(--sky-deep); }
body.family-site .blog-toc a[aria-current="location"] { color: var(--sky-deep); background: #EAF7FF; }
body.family-site.blog-pasakos .blog-toc a[aria-current="location"] { color: #5B4385; background: #F2ECF9; }
body.family-site .blog-figure { border: 5px solid #fff; border-radius: 26px; background: #fff; box-shadow: 0 8px 0 var(--soft-line); }
body.family-site .blog-figure img { border-radius: 20px; }
body.family-site .blog-figure figcaption { color: var(--ink-soft); }
body.family-site .blog-faq { background: transparent; padding: 0; }
body.family-site .blog-faq details { margin-top: 12px; padding: 4px 20px; border: 3px solid var(--soft-line); border-radius: 20px; background: #F2FAFF; box-shadow: 0 5px 0 var(--soft-line); }
body.family-site .blog-faq summary { color: var(--navy); font-weight: 900; }
body.family-site .blog-end-activities { padding: 28px 22px; border: 4px solid var(--sun); border-radius: 30px; background: #FFF4D6; box-shadow: 0 8px 0 var(--sun-edge); }
body.family-site .blog-button { border-radius: 999px; background: var(--sun); color: var(--navy); font-weight: 900; box-shadow: 0 5px 0 var(--sun-edge); text-decoration: none; }
body.family-site .blog-button:hover { text-decoration: none; transform: translateY(2px); box-shadow: 0 3px 0 var(--sun-edge); }
body.family-site .blog-activities .blog-app-button, body.family-site .blog-end-activities .blog-app-button { background: #fff; border: 3px solid var(--soft-line); box-shadow: 0 4px 0 var(--soft-line); border-radius: 18px; }
body.family-site .blog-app-stories { border-color: #E3D6F3 !important; box-shadow: 0 4px 0 #E3D6F3 !important; color: #5B4385; }

/* Prices: home colours, chunky plan cards, yellow buttons. */
body.family-site .pricing { color: var(--navy); }
body.family-site .pricing-intro h1 { color: var(--navy); }
body.family-site .pricing-intro p { color: var(--ink-soft); font-weight: 700; }
body.family-site .pricing-periods { border: 3px solid var(--soft-line) !important; background: #fff !important; box-shadow: 0 5px 0 var(--soft-line); }
body.family-site .pricing-periods span { color: var(--navy) !important; }
body.family-site .pricing-periods input:checked + span { background: var(--sky) !important; color: #fff !important; }
body.family-site .pricing-card { --plan-background: #fff; --plan-border: var(--c-blue); --plan-action: var(--sun); border-width: 4px; border-radius: 30px; box-shadow: 0 8px 0 var(--plan-border); }
body.family-site .pricing-card-bundle { --plan-background: #FFF8E1; --plan-border: var(--c-amber); }
body.family-site .pricing-card-individual:nth-child(2) { --plan-border: var(--c-teal); }
body.family-site .pricing-card-individual:nth-child(3) { --plan-border: #8B6CC7; }
body.family-site .pricing-card h2, body.family-site .pricing-card h3 { color: var(--navy); }
body.family-site .pricing-action { border-radius: 999px !important; background: var(--sun) !important; color: var(--navy) !important; font-weight: 900; box-shadow: 0 5px 0 var(--sun-edge) !important; border: 0 !important; }
body.family-site .pricing-action:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--sun-edge) !important; }
body.family-site .landing-guide-faq details { margin-top: 12px; padding: 4px 20px; border: 3px solid var(--soft-line); border-radius: 20px; background: #F2FAFF; box-shadow: 0 5px 0 var(--soft-line); }
body.family-site .landing-guide-faq { background: transparent !important; }
body.family-site .landing-guide-faq summary { color: var(--navy); font-weight: 900; }

/* Documents (terms, privacy, data deletion, contact): one white card on the sky page. */
body.doc-site .app-switcher { width: min(620px, calc(100% - 36px)); margin: 32px auto 14px; padding: 6px; border-radius: 24px; background: #fff; border: 3px solid var(--soft-line); box-shadow: 0 5px 0 var(--soft-line); }
body.doc-site .app-option { color: var(--ink-soft); font-weight: 800; }
body.doc-site .app-option[aria-current='true'] { background: #EAF7FF; color: var(--navy); box-shadow: none; }
body.doc-site .document-nav { margin-bottom: 18px; }
body.doc-site .document-nav a { border-radius: 999px; font-weight: 800; color: var(--ink-soft); }
body.doc-site .document-nav a:hover, body.doc-site .document-nav a[aria-current='page'] { background: var(--sky); color: #fff; }
body.doc-site main.doc, body.doc-site .document { width: min(860px, calc(100% - 32px)); margin: 0 auto 8px; padding: clamp(24px, 5vw, 48px); background: #fff; border: 4px solid var(--soft-line); border-radius: 32px; box-shadow: 0 8px 0 var(--soft-line); color: #2A3658; }
body.doc-site main.doc h1, body.doc-site .document h1 { margin-top: 0; font: 900 clamp(30px, 5vw, 46px)/1.1 Nunito, sans-serif; letter-spacing: -.03em; }
body.doc-site main.doc h2, body.doc-site .document h2 { font: 900 22px/1.25 Nunito, sans-serif; margin-top: 30px; }
body.doc-site main.doc p, body.doc-site main.doc li, body.doc-site .document p, body.doc-site .document li { color: #2A3658; line-height: 1.7; }
body.doc-site main.doc a { color: var(--sky-deep); font-weight: 700; }
@media (max-width: 760px) {
  body.family-site .blog-cards { gap: 24px; }
  .site-footer.kuku-chrome-footer { margin-top: 32px !important; }
}
/* The full-bleed hero uses 100vw; never let it cause a sideways scrollbar. */
html:has(body.family-site) { overflow-x: clip; }

/* Language switcher: flag + code in the header, all five languages in a small menu. */
.kuku-flag { display: inline-flex; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; border: 2px solid #fff; flex: none; }
.kuku-flag svg { width: 100%; height: 100%; display: block; }
.kuku-lang { position: relative; }
.kuku-lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; color: #fff; font-weight: 900; cursor: pointer; }
.kuku-lang summary::-webkit-details-marker { display: none; }
.kuku-lang summary::after { content: ''; width: 7px; height: 7px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) translateY(-2px); }
.kuku-lang summary:hover, .kuku-lang[open] summary { background: rgba(255,255,255,.22); }
.kuku-lang > div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1001; min-width: 180px; display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(23,34,77,.18); }
.kuku-lang > div a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: #17224D; font-weight: 800; text-decoration: none; }
.kuku-lang > div a .kuku-flag { border-color: #E3EAF3; }
.kuku-lang > div a:hover, .kuku-lang > div a[aria-current="true"] { background: #EAF7FF; color: #0A7FE0; }
.kuku-lang-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid #E3EAF3; }
.kuku-lang-row a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px !important; }
.kuku-lang-row .kuku-flag { width: 22px; height: 15px; border-color: #E3EAF3; }

/* Translated pages: the hero badge flag is the page's own country (an SVG instead of the LT stripes). */
.lt-flag.kuku-flag-in { display: inline-block; flex-direction: row; }
.lt-flag.kuku-flag-in svg { display: block; width: 100%; height: 100%; }
/* Phone: the big header flag replaces the language row in the ☰ menu. */
@media (max-width: 960px) { .kuku-lang-row { display: none; } }
