/* Keep every cover fully visible and completely inside its colored display box. */
.feature-cover img,
.real-cover img,
.author-memoir img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
}
.feature-cover,.real-cover{overflow:hidden!important}
.book-tile{grid-template-rows:420px auto!important}
.real-cover{
  height:420px!important;
  min-height:420px!important;
  aspect-ratio:auto!important;
  padding:2rem!important;
}
.merch-family-mobile{display:none!important}
.merch-shop-mobile{display:none!important}

@media(max-width:720px){
  .book-tile{grid-template-rows:440px auto!important}
  .real-cover{height:440px!important;min-height:440px!important;aspect-ratio:auto!important;padding:2rem!important}
  .merch-hero{min-height:950px!important;background:#061435!important}
  .merch-family-wide{display:none!important}
  .merch-hero>.merch-family-mobile{
    display:block!important;position:absolute!important;inset:0!important;
    width:100%!important;height:840px!important;bottom:auto!important;opacity:.9!important;
    object-fit:cover!important;object-position:center center!important;
    filter:saturate(1) contrast(1.03)!important;
  }
  .merch-hero:after{
    background:linear-gradient(180deg,rgba(4,15,48,.88) 0%,rgba(4,15,48,.65) 43%,rgba(4,15,48,.22) 64%,rgba(4,15,48,.08) 100%)!important;
  }
  .merch-shop-desktop{display:none!important}
  .merch-hero>.merch-shop-mobile{
    display:flex!important;
    position:absolute!important;
    z-index:4!important;
    left:1.25rem!important;
    right:1.25rem!important;
    bottom:1.25rem!important;
    width:auto!important;
    min-height:68px!important;
  }
}

/* Resource hub: practical, trusted starting points for families. */
.resources{
  background:#061435;color:#fff;padding:clamp(4.5rem,8vw,8rem) clamp(1.25rem,6vw,6rem);
  border-top:8px solid var(--yellow, #ffd322);
}
.resources-head{max-width:1240px;margin:0 auto 3rem;display:grid;grid-template-columns:1fr .58fr;gap:4rem;align-items:end}
.resources h2{font-family:Archivo Black, sans-serif;font-size:clamp(2.5rem,5vw,5.2rem);line-height:.98;letter-spacing:-.04em;margin:0}
.resources h2 em{color:#ffd322;font-style:normal}
.resources-head>p{color:#cdd8f4;font-size:1.05rem;line-height:1.7;margin:0}
.resources-grid{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.resource-card{display:flex;flex-direction:column;min-height:270px;padding:1.35rem;background:#102b74;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.16);transition:transform .2s ease,background .2s ease,border-color .2s ease}
.resource-card:hover,.resource-card:focus-visible{transform:translateY(-5px);background:#16398b;border-color:#ffd322;outline:none}
.resource-feature{background:#ffd322;color:#061435}
.resource-feature:hover,.resource-feature:focus-visible{background:#ffe36b;color:#061435}
.resource-number{font:800 .75rem/1 Manrope,sans-serif;letter-spacing:.16em;color:#ffd322}
.resource-feature .resource-number{color:#061435}
.resource-icon{align-self:flex-end;margin-top:-.75rem;font-size:1.25rem;color:#ffd322}
.resource-feature .resource-icon{color:#061435}
.resource-card h3{font-family:Archivo Black,sans-serif;font-size:1.35rem;line-height:1.08;letter-spacing:-.02em;margin:2.2rem 0 .75rem}
.resource-card p{font:500 .92rem/1.55 Manrope,sans-serif;color:#d9e2fa;margin:0 0 1.25rem}
.resource-feature p{color:#162653}
.resource-card strong{margin-top:auto;font:800 .72rem/1.3 Manrope,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#ffd322}
.resource-feature strong{color:#061435}
.resources-note{max-width:1240px;margin:1.5rem auto 0;color:#aab8db;font:500 .78rem/1.5 Manrope,sans-serif}
@media(max-width:980px){
  .resources-head{grid-template-columns:1fr .75fr;gap:2rem}
  .resources-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .resources{padding:4rem 1.25rem;border-top-width:5px}
  .resources-head{display:block;margin-bottom:2rem}
  .resources-head>p{margin-top:1.25rem;font-size:.98rem}
  .resources-grid{grid-template-columns:1fr;gap:.85rem}
  .resource-card{min-height:220px;padding:1.2rem}
  .resource-card h3{font-size:1.45rem;margin-top:1.6rem}
}
