/* Happy eBook home refresh. Keep the shared stylesheet and non-home pages intact. */
body[data-page="home"] {
  --editorial-ink: #1e352b;
  --editorial-moss: #24614b;
  --editorial-muted: #4c6055;
  --editorial-line: #dce4d8;
  --editorial-paper: #f7f8f3;
}
body[data-page="home"] .skip-home { position:absolute; z-index:100; left:1rem; top:1rem; padding:.75rem 1rem; background:#fff; color:var(--editorial-ink); transform:translateY(-180%); }
body[data-page="home"] .skip-home:focus { position:fixed; transform:none; }
body[data-page="home"] :where(a,button):focus-visible { outline:3px solid #386a56; outline-offset:4px; }
body[data-page="home"] .site-header { background:rgba(255,255,255,.97); border-bottom:1px solid var(--editorial-line); }
body[data-page="home"] .site-nav a { font-size:.875rem; }
body[data-page="home"] .brand-home-hero {
  padding-block:clamp(3rem, 6vw, 6.4rem);
  background:var(--editorial-paper);
  border-bottom:1px solid var(--editorial-line);
}
body[data-page="home"] .brand-home-hero .hero-grid {
  grid-template-columns:minmax(20rem,.9fr) minmax(0,1.1fr);
  align-items:center;
  gap:clamp(2rem,5vw,5.2rem);
}
body[data-page="home"] .hero-copy .eyebrow { background:none; padding:0; border:0; color:var(--editorial-moss); font-weight:750; font-size:.875rem; letter-spacing:.08em; }
body[data-page="home"] .brand-home-hero h1 { max-width:none; margin-block:1.15rem 1.2rem; font-size:clamp(2.8rem,5.25vw,5rem); line-height:1.15; color:var(--editorial-ink); letter-spacing:-.065em; }
body[data-page="home"] .brand-home-hero h1 strong { color:var(--editorial-moss); font-weight:inherit; }
body[data-page="home"] .hero-copy > p.hero-lead { max-width:31rem; color:var(--editorial-muted); font-size:clamp(1rem,1.5vw,1.125rem); line-height:1.85; }
body[data-page="home"] .hero-copy > p.hero-note { margin:1.3rem 0 0; font-size:.875rem; color:var(--editorial-muted); font-weight:650; }
body[data-page="home"] .hero-note span { margin-inline:.36em; }
body[data-page="home"] .route-actions { gap:.65rem; margin-top:1.55rem; }
body[data-page="home"] .route-actions .button { min-height:48px; flex:0 0 auto; justify-content:center; border-radius:10px; font-size:1rem; box-shadow:none; padding-inline:1.15rem; }
body[data-page="home"] .route-actions .primary { background:var(--editorial-moss); color:#fff; }
body[data-page="home"] .route-actions .primary:hover { background:#194935; }
body[data-page="home"] .route-actions .secondary { background:#fff; border-color:#cbd9cf; color:var(--editorial-ink); }
body[data-page="home"] .route-actions .secondary:hover { background:#e9f1eb; }
body[data-page="home"] .next-gen-showcase {
  min-height:0; min-width:0; position:relative; margin:0;
  padding:clamp(1rem,3.2vw,2rem);
  border:1px solid #d6dfd2; border-radius:20px;
  background:#e7eee3; box-shadow:none;
}
body[data-page="home"] .next-gen-showcase figcaption {
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem;
  padding-bottom:.8rem; margin-bottom:clamp(.85rem,2vw,1.45rem);
  border-bottom:1px solid #bfcfc2; color:var(--editorial-ink);
  font-size:.875rem; font-weight:720;
}
body[data-page="home"] .next-gen-showcase figcaption [lang="en"] { font-size:.75rem; letter-spacing:.1em; color:var(--editorial-muted); }
body[data-page="home"] .next-gen-showcase .cover-showcase {
  display:grid; grid-template-columns:1.23fr 1fr 1fr 1fr; align-items:end;
  min-height:0; gap:clamp(.35rem,1.3vw,.8rem);
}
body[data-page="home"] .cover-showcase img {
  display:block; position:static; inset:auto; width:100%; min-width:0; height:auto;
  aspect-ratio:2 / 3; object-fit:contain; border-radius:5px; transform:none;
  background:#244036; box-shadow:0 9px 16px rgba(26,51,39,.19);
}
body[data-page="home"] .section { padding-block:clamp(2.5rem,5vw,4.6rem); }
body[data-page="home"] .section-soft, body[data-page="home"] .path-section { background:var(--editorial-paper); }
body[data-page="home"] .section-head { margin-bottom:1.4rem; }
body[data-page="home"] .section-head h2 { letter-spacing:-.045em; }
body[data-page="home"] .section-head p { max-width:31rem; }
body[data-page="home"] .start-card {
  border:1px solid var(--editorial-line); border-top:3px solid #57836b;
  border-radius:14px; box-shadow:none; background:#fff; min-height:0;
}
body[data-page="home"] .start-card.start-ipas { border-top-color:#7771a0; }
body[data-page="home"] .start-card.start-code { border-top-color:#627994; }
body[data-page="home"] .start-card:hover, body[data-page="home"] .article-card:hover { border-color:var(--editorial-moss); box-shadow:0 6px 14px rgba(26,51,39,.08); }
body[data-page="home"] .start-card p, body[data-page="home"] .article-card p { font-size:1rem; }
body[data-page="home"] .article-grid { gap:1rem; }
body[data-page="home"] .article-card { background:#fff; border:1px solid var(--editorial-line); border-radius:14px; box-shadow:none; }
body[data-page="home"] .home-publisher .publisher-copy { border:1px solid var(--editorial-line); border-radius:18px; box-shadow:none; background:#f7f8f3; }
body[data-page="home"] #start-title { scroll-margin-top:7.5rem; }
@media (max-width: 820px) {
  body[data-page="home"] .brand-home-hero .hero-grid { grid-template-columns:minmax(0,1fr); gap:1.75rem; }
  body[data-page="home"] .next-gen-showcase { width:min(100%,37rem); }
}
@media (max-width: 760px) {
  body[data-page="home"] .brand-home-hero > .container { padding-inline:0; }
  body[data-page="home"] .brand-home-hero { padding-block:2.25rem; }
  body[data-page="home"] .brand-home-hero h1 { font-size:clamp(2.55rem,9.5vw,3.7rem); }
  body[data-page="home"] .route-actions { flex-direction:row; flex-wrap:wrap; align-items:stretch; }
  body[data-page="home"] .route-actions .button { width:auto; flex:1 1 auto; }
  body[data-page="home"] .next-gen-showcase figcaption [lang="en"] { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-page="home"] :where(.button,.start-card,.article-card) { transition:none; }
}
