/* Kids homepage (kids.aimeestudio.info/ only): the kids design system — warm cream, rounded
   cards, Baloo 2 + Nunito — shared with the kids product pages (kids-product.css). Every rule is
   scoped under body.kids-hub, and this file is only linked from the kids homepage head, so the
   games/feud/main sites and the kids product pages keep their own themes untouched.
   The --kp-* tokens below repeat the kids-product.css values verbatim: that file scopes its
   tokens to body.kids-pdp, so the hub declares the identical set for its own scope rather than
   forking the palette. */
body.kids-hub{
  --kp-cream:#FFF8EE; --kp-card:#FFFDF8; --kp-ink:#33261A; --kp-soft:#6B5747;
  --kp-coral:#FF6B4A; --kp-coral-dark:#E8502F; --kp-teal:#2A9D8F; --kp-sunny:#FFC53D; --kp-berry:#7C4DBD;
  --kp-radius:22px; --kp-shadow:0 6px 24px rgba(51,38,26,.10); --kp-shadow-sm:0 3px 10px rgba(51,38,26,.08);
  background:var(--kp-cream); color:var(--kp-ink);
  font:400 17px/1.55 "Nunito",system-ui,sans-serif;
  color-scheme:light;
}
body.kids-hub::before{display:none}
body.kids-hub h1, body.kids-hub h2, body.kids-hub h3{font-family:"Baloo 2","Nunito",sans-serif;font-weight:700;line-height:1.15;color:var(--kp-ink)}
body.kids-hub em{font-style:italic;color:inherit}
body.kids-hub a{color:var(--kp-teal)}
body.kids-hub :focus-visible{outline:2px solid var(--kp-coral);outline-offset:3px}
body.kids-hub .dim{color:var(--kp-soft)}
body.kids-hub .label{font-family:"Nunito",sans-serif;font-weight:800;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--kp-teal)}
body.kids-hub section[id], body.kids-hub #free-sample{scroll-margin-top:150px}

/* ---- shared shell (header / promo / footer) in the kids look — mirrors body.kids-pdp ---- */
body.kids-hub .promo{background:var(--kp-sunny);color:var(--kp-ink);font-family:"Nunito",sans-serif;font-weight:700}
body.kids-hub .promo a{color:var(--kp-ink);font-weight:800}
body.kids-hub .top{background:var(--kp-card);border-bottom:3px solid var(--kp-sunny)}
body.kids-hub .top .logo span{font-family:"Baloo 2","Nunito",sans-serif;font-weight:800;color:var(--kp-ink)}
body.kids-hub .top .logo small{color:var(--kp-coral);font-family:"Nunito",sans-serif}
body.kids-hub .top nav{font-family:"Nunito",sans-serif}
body.kids-hub .top nav a{color:var(--kp-ink);font-weight:700}
body.kids-hub .btn-line{border:2px solid var(--kp-ink);color:var(--kp-ink);background:var(--kp-cream);border-radius:999px;padding:10px 18px;font-family:"Nunito",sans-serif;font-weight:800;letter-spacing:0;text-transform:none;box-shadow:var(--kp-shadow-sm)}
body.kids-hub .foot{border-top:3px solid var(--kp-sunny);background:var(--kp-card)}
body.kids-hub .foot .label{color:var(--kp-teal);font-family:"Nunito",sans-serif}
body.kids-hub .foot-cross{border:2px dashed var(--kp-berry);border-radius:var(--kp-radius)}
body.kids-hub .foot-cross a{font-family:"Baloo 2","Nunito",sans-serif;font-weight:700;color:var(--kp-coral)}
body.kids-hub .foot .logo span{font-family:"Baloo 2","Nunito",sans-serif;font-weight:800;color:var(--kp-ink)}
body.kids-hub .foot .logo small{color:var(--kp-coral);font-family:"Nunito",sans-serif}
body.kids-hub .foot ul{font-family:"Nunito",sans-serif}
body.kids-hub .foot ul a{color:var(--kp-soft)}
body.kids-hub .foot ul a:hover{color:var(--kp-ink)}

/* ---- buttons: coral pills, same as the product pages ---- */
body.kids-hub .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--kp-coral);color:#fff;border:0;cursor:pointer;text-decoration:none;
  font-family:"Baloo 2","Nunito",sans-serif;font-weight:800;font-size:1.12rem;letter-spacing:0;text-transform:none;
  min-height:52px;padding:12px 26px;border-radius:999px;box-shadow:0 8px 20px rgba(255,107,74,.35);
  transition:background .15s ease,transform .15s ease;
}
body.kids-hub .btn:hover{background:var(--kp-coral-dark);transform:translateY(-1px)}

/* ---- hero ---- */
body.kids-hub .guide{max-width:1240px;padding-block:40px 64px;gap:44px}
body.kids-hub .guide-head{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;max-width:none;align-items:center}
body.kids-hub .guide-head>*{min-width:0}
body.kids-hub .guide-head .kicker{display:inline-block;background:#E7F4F1;color:var(--kp-teal);font-weight:800;font-size:.85rem;padding:6px 14px;border-radius:999px;letter-spacing:.06em;text-transform:none;margin-bottom:14px}
body.kids-hub .guide-head h1{font-size:clamp(2.1rem,5vw,3.2rem);font-weight:800;margin:0 0 14px}
body.kids-hub .guide-answer{font-size:1.13rem;font-weight:700;line-height:1.55;color:var(--kp-ink);max-width:34em}
body.kids-hub .guide-meta{font-size:.88rem;font-weight:600;color:var(--kp-soft);margin-top:10px}
body.kids-hub .kh-actions{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;margin-top:22px}
body.kids-hub .kh-sample-link{font-weight:800;color:var(--kp-teal);text-decoration:underline;text-underline-offset:4px}
body.kids-hub .kh-hero-visual{position:relative;margin:0}
body.kids-hub .kh-hero-visual img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:var(--kp-radius);border:4px solid #fff;box-shadow:var(--kp-shadow);background:#F3E7D3}
body.kids-hub .kh-sticker{
  position:absolute;left:16px;bottom:16px;transform:rotate(-3deg);
  background:var(--kp-sunny);color:var(--kp-ink);text-decoration:none;
  font-family:"Baloo 2","Nunito",sans-serif;font-weight:800;font-size:1.05rem;
  padding:10px 18px;border-radius:999px;box-shadow:var(--kp-shadow);min-height:44px;
  display:inline-flex;align-items:center;
}
/* slim free-sample strip under the hero */
body.kids-hub .kh-strip{background:linear-gradient(135deg,#FFE29A,var(--kp-sunny));padding-block:12px}
body.kids-hub .kh-strip p{text-align:center;font-weight:700;color:var(--kp-ink)}
body.kids-hub .kh-strip a{color:var(--kp-ink);font-weight:800;text-underline-offset:3px}

/* ---- games section + sticky age filter ---- */
body.kids-hub .games{padding-block:56px 72px;border-top:0}
body.kids-hub .section-head{text-align:left;margin-bottom:30px}
body.kids-hub .section-head h2{font-size:clamp(1.7rem,3.4vw,2.4rem);font-weight:800;margin-top:10px}
body.kids-hub .section-head .dim{font-weight:600;max-width:62ch}
body.kids-hub .filters{
  position:relative;scroll-margin-top:90px;
  background:rgba(255,248,238,.97);backdrop-filter:blur(6px);
  border-radius:var(--kp-radius);box-shadow:var(--kp-shadow-sm);
  padding:14px 16px;margin:0 0 34px;justify-items:stretch;gap:10px;
}
body.kids-hub .chips{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px}
body.kids-hub .chips-label{font-weight:800;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--kp-soft);margin-right:4px}
body.kids-hub .chips button{
  font-family:"Nunito",sans-serif;font-weight:800;font-size:.95rem;color:var(--kp-ink);
  background:var(--kp-card);border:2px solid #F1E4CE;border-radius:999px;
  padding:10px 18px;cursor:pointer;min-height:44px;box-shadow:var(--kp-shadow-sm);
}
body.kids-hub .chips button:hover{border-color:var(--kp-coral)}
body.kids-hub .chips button[aria-pressed="true"]{background:var(--kp-coral);border-color:var(--kp-coral);color:#fff}
body.kids-hub .chips button[data-v="any"][aria-pressed="true"]{background:var(--kp-sunny);border-color:var(--kp-sunny);color:var(--kp-ink)}
body.kids-hub .quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
body.kids-hub .quick a{
  font-weight:700;font-size:.92rem;color:var(--kp-teal);text-decoration:none;
  background:#E7F4F1;border-radius:999px;padding:9px 15px;min-height:44px;display:inline-flex;align-items:center;
}
body.kids-hub .count{font-weight:700;color:var(--kp-soft)}
body.kids-hub .empty{font-weight:600}
body.kids-hub .empty .reset{font:inherit;font-weight:800;color:var(--kp-teal);background:none;border:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px}

/* ---- shelves + cards ---- */
body.kids-hub .shelf{margin-top:52px}
body.kids-hub .shelf .section-head{margin-bottom:22px}
body.kids-hub #christmas .label{color:var(--kp-berry)}
body.kids-hub #birthday-and-sleepover .label{color:var(--kp-coral-dark)}
body.kids-hub #little-kids-ages-4-7 .label{color:#B97E10}
body.kids-hub .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}
body.kids-hub .game{
  display:flex;flex-direction:column;text-decoration:none;color:var(--kp-ink);
  background:var(--kp-card);border:0;border-radius:var(--kp-radius);overflow:hidden;
  box-shadow:var(--kp-shadow-sm);transition:transform .15s ease,box-shadow .15s ease;
}
body.kids-hub .game:hover{transform:translateY(-3px);box-shadow:var(--kp-shadow)}
body.kids-hub .game img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#F3E7D3}
body.kids-hub .game-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:7px;flex:1}
body.kids-hub .game .kick{font-weight:800;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--kp-berry)}
body.kids-hub .game h3{font-size:1.25rem;margin:0}
body.kids-hub .game .hook{color:var(--kp-soft);font-weight:600;font-size:.97rem}
body.kids-hub .game-specs{list-style:none;display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 0;padding:0}
body.kids-hub .game-specs li{background:var(--kp-cream);border:2px solid #F1E4CE;border-radius:999px;padding:5px 12px;font-weight:800;font-size:.85rem;display:inline-flex;align-items:center;gap:5px;min-height:36px}
body.kids-hub .game-buy{margin-top:auto;padding-top:10px;display:flex;justify-content:space-between;align-items:baseline;gap:10px}
body.kids-hub .game-buy .price .now{font-family:"Baloo 2","Nunito",sans-serif;font-weight:800;font-size:1.35rem;color:var(--kp-ink)}
body.kids-hub .game-buy .go{font-weight:800;color:var(--kp-coral);font-size:.95rem;white-space:nowrap}
body.kids-hub .pick{display:flex;flex-direction:column;gap:8px}
body.kids-hub .guide-pick-label{font-family:"Nunito",sans-serif;font-weight:800;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--kp-coral-dark)}

/* ---- free sample: the system's sunny card (markup/plumbing unchanged) ---- */
body.kids-hub #free-sample{margin-top:52px}
body.kids-hub .sample{display:block;margin:0;padding:26px 22px;background:linear-gradient(135deg,#FFE29A,var(--kp-sunny));border:0;border-radius:var(--kp-radius);box-shadow:var(--kp-shadow);color:var(--kp-ink)}
body.kids-hub .sample-copy{display:block}
body.kids-hub .sample .kicker{font-weight:800;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--kp-berry);margin-bottom:6px}
body.kids-hub .sample h2{font-family:"Baloo 2","Nunito",sans-serif;font-weight:800;font-size:1.5rem;color:var(--kp-ink);margin:0 0 8px}
body.kids-hub .sample-copy p{color:var(--kp-ink);font-weight:600;max-width:56ch}
body.kids-hub .sample .signup-form{display:flex;flex-direction:column;gap:10px;margin-top:16px;font-family:"Nunito",sans-serif}
body.kids-hub .sample .signup-form input[type=email]{min-height:52px;border-radius:999px;border:2px solid var(--kp-ink);padding:12px 20px;font:inherit;font-weight:600;background:#fff;color:var(--kp-ink)}
body.kids-hub .sample .signup-form .btn{background:var(--kp-ink);box-shadow:none}
body.kids-hub .sample .signup-form .btn:hover{background:#000}
body.kids-hub .sample .signup-msg, body.kids-hub .sample .signup-fine{color:#5C4510;font-weight:700;font-size:.85rem}
body.kids-hub .sample .signup-fine a{color:#5C4510}
/* Teddy's free panel sits inside the little-kids shelf and shares the .sample markup */
body.kids-hub .shelf .sample{margin-top:22px}
body.kids-hub .shelf .sample-form{display:flex;align-items:center}
body.kids-hub .shelf .sample .btn{background:var(--kp-coral);box-shadow:0 8px 20px rgba(255,107,74,.35)}
body.kids-hub .shelf .sample .btn:hover{background:var(--kp-coral-dark)}

/* ---- signpost + back-half sections ---- */
body.kids-hub .kh-signpost{padding-block:6px 0}
body.kids-hub .kh-signpost p{font-weight:600;color:var(--kp-soft);text-align:center}
body.kids-hub .guide-sec{display:flex;flex-direction:column;gap:16px}
body.kids-hub .guide-sec h2{font-size:clamp(1.55rem,3vw,2.1rem);font-weight:800}
body.kids-hub .guide-sec p{font-weight:600;color:var(--kp-soft)}
body.kids-hub .guide-choose{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
body.kids-hub .guide-choose div{background:var(--kp-card);border-radius:18px;box-shadow:var(--kp-shadow-sm);padding:18px 20px;border-top:0}
body.kids-hub .guide-choose dt{font-family:"Nunito",sans-serif;font-weight:800;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--kp-teal);margin-bottom:6px}
body.kids-hub .guide-choose dd{margin:0;color:var(--kp-soft);font-weight:600}
body.kids-hub .guide-faq h3{font-size:1.2rem;margin-top:10px}
body.kids-hub .guide-faq p{color:var(--kp-soft);font-weight:600}
body.kids-hub .guide-list{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:10px;font-weight:600;color:var(--kp-soft)}
body.kids-hub .guide-list a{color:var(--kp-teal)}
body.kids-hub .guide-note{font-size:.88rem;font-weight:700;color:var(--kp-soft)}
body.kids-hub .guide-browse{background:var(--kp-card);border-radius:18px;box-shadow:var(--kp-shadow-sm);padding:6px 22px}
body.kids-hub .guide-browse summary{cursor:pointer;font-family:"Baloo 2","Nunito",sans-serif;font-weight:700;font-size:1.05rem;padding:14px 0;min-height:48px;display:flex;align-items:center;list-style:none;color:var(--kp-ink)}
body.kids-hub .guide-browse summary::-webkit-details-marker{display:none}
body.kids-hub .guide-browse summary::after{content:"＋";margin-left:auto;color:var(--kp-coral);font-weight:800}
body.kids-hub .guide-browse[open] summary::after{content:"－"}
body.kids-hub .guide-browse .guide-list{padding-bottom:18px}

/* ---- comparison table: price second, stacked cards on phones ---- */
body.kids-hub .guide-table-wrap{overflow-x:auto;border:0;border-radius:var(--kp-radius);background:var(--kp-card);box-shadow:var(--kp-shadow-sm)}
body.kids-hub .guide-table{width:100%;border-collapse:collapse;font-family:"Nunito",sans-serif;font-weight:600;font-size:.92rem;min-width:720px;color:var(--kp-ink)}
body.kids-hub .guide-table th, body.kids-hub .guide-table td{text-align:left;padding:11px 14px;border-bottom:2px dotted #F1E4CE;vertical-align:top}
body.kids-hub .guide-table thead th{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--kp-teal);font-weight:800}
body.kids-hub .guide-table tbody th{font-weight:800}
body.kids-hub .guide-table tbody tr:last-child th, body.kids-hub .guide-table tbody tr:last-child td{border-bottom:0}
body.kids-hub .guide-table a{color:var(--kp-ink);text-underline-offset:3px}

@media (min-width:900px){
  body.kids-hub .guide-head{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:40px}
  body.kids-hub .sample .signup-form{flex-direction:row;flex-wrap:wrap}
  body.kids-hub .sample .signup-form input[type=email]{flex:1}
  body.kids-hub .sample .signup-msg, body.kids-hub .sample .signup-fine{flex-basis:100%}
}
@media (max-width:900px){
  body.kids-hub section[id], body.kids-hub #free-sample{scroll-margin-top:130px}
}
@media (max-width:760px){
  /* the table becomes stacked rows: game name on top, each fact labelled via data-th */
  body.kids-hub .guide-table-wrap{overflow-x:visible}
  body.kids-hub .guide-table{min-width:0}
  body.kids-hub .guide-table thead{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
  body.kids-hub .guide-table tbody tr{display:block;padding:12px 16px;border-bottom:2px dotted #F1E4CE}
  body.kids-hub .guide-table tbody tr:last-child{border-bottom:0}
  body.kids-hub .guide-table tbody th{display:block;border-bottom:0;padding:0 0 6px;font-size:1.02rem}
  body.kids-hub .guide-table td{display:flex;justify-content:space-between;gap:16px;border-bottom:0;padding:3px 0}
  body.kids-hub .guide-table td::before{content:attr(data-th);font-weight:800;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--kp-teal)}
}
@media (max-width:600px){
  body.kids-hub .filters{scroll-margin-top:74px}
  body.kids-hub .grid{grid-template-columns:1fr 1fr;gap:14px}
  body.kids-hub .game-body{padding:12px 14px 14px}
  body.kids-hub .game h3{font-size:1.08rem}
  body.kids-hub .game .hook{display:none}
  body.kids-hub .game-specs li{font-size:.78rem;padding:4px 10px}
  body.kids-hub .game-buy{flex-direction:column;align-items:flex-start;gap:2px}
  /* age chips become one scrollable row; the right-edge fade advertises the scroll */
  body.kids-hub .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;
    -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
  body.kids-hub .chips::-webkit-scrollbar{display:none}
  body.kids-hub .chips button{flex:none}
  body.kids-hub .quick{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
  body.kids-hub .quick::-webkit-scrollbar{display:none}
  body.kids-hub .quick a{flex:none}
  body.kids-hub .kh-sticker{font-size:.95rem;left:12px;bottom:12px}
}

/* header: keep logo and nav labels on one line at mid widths (600–900px); drop the extra "Free sample" link below 760px (the hub has its own sample strip) */
body.kids-hub .top .logo span, body.kids-hub .top nav a{white-space:nowrap}
@media (max-width:760px){body.kids-hub .top nav a[href="#free-sample"]{display:none}}

/* ---- sidebar filter (desktop): age + occasion in a sticky left column, games on the right ---- */
@media (min-width:1000px){
  body.kids-hub .kh-shop{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;align-items:start}
  body.kids-hub .kh-shop>.filters{position:sticky;top:96px;margin:0;display:flex;flex-direction:column;gap:18px;max-height:calc(100vh - 112px);overflow-y:auto;padding:18px}
  body.kids-hub .kh-shop>.filters .quick{flex-wrap:wrap;gap:8px}
  body.kids-hub .kh-shop>.filters .chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  body.kids-hub .kh-shop>.filters .chips-label{flex-basis:100%;grid-column:1/-1;margin:0 0 2px}
  body.kids-hub .kh-shop>.filters .chips button{padding:0;min-width:0;min-height:40px;text-align:center}
  body.kids-hub .kh-shop>.filters .chips button[data-v="any"]{grid-column:1/-1}
  body.kids-hub .kh-shop>.filters .quick a{display:block;flex-basis:100%;text-align:left}
  body.kids-hub .kh-shelf{scroll-margin-top:96px}
  body.kids-hub .kh-shelf .grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
}
