/* Self-hosted, open-source reading type. Existing display and handwritten fonts stay. */
@font-face {
  font-family: 'VSTA Source Sans 3'; src: url('/assets/fonts/SourceSans3Upright.woff2') format('woff2');
  font-style: normal; font-weight: 200 900; font-display: swap;
}
@font-face {
  font-family: 'VSTA Source Sans 3'; src: url('/assets/fonts/SourceSans3Italic.woff2') format('woff2');
  font-style: italic; font-weight: 200 900; font-display: swap;
}
:root {
  --vsta-reading-font: 'VSTA Source Sans 3', Arial, Helvetica, sans-serif;
  --font-sans: var(--vsta-reading-font);
}

/* One continuous classroom scene, with no tan panels behind either story. */
body.home-page #childrens-book {
  border: 0; border-radius: 0; box-shadow: none;
  background: #f2f3ed; padding: clamp(1.25rem,3vw,2rem);
}
body.home-page #childrens-book::before {
  opacity: .68; background-position: center 58%;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
}
body.home-page #childrens-book::after {
  background: linear-gradient(180deg,#f8f8f1d6,#f8f8f18c 34%,#f8f8f18c 70%,#f8f8f1de);
}
body.home-page #childrens-book .sibling-shelf { gap: clamp(1.5rem,3vw,2.5rem); }
body.home-page #childrens-book .sibling-shelf article {
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  padding: .6rem .5rem; grid-template-columns: 7rem minmax(0,1fr); gap: 1rem;
}
body.home-page #childrens-book .sibling-cover,
body.home-page #childrens-book .sibling-cover img { width: 7rem; height: 7rem; }
body.home-page #childrens-book .sibling-cover img {
  box-shadow: .15rem .45rem .8rem #17374727; border-radius: .1rem;
}
body.home-page #childrens-book .vsta-feature-heading h2 { font-weight: 600; color: #102f40; text-shadow: none; }
body.home-page #childrens-book :is(.book-series-label,.sibling-shelf p,.classroom-recognition,.sibling-note,.collection-ordering) {
  color: #163847;
}
body.home-page #childrens-book .story-rocco a { color: #123f59; }
body.home-page #childrens-book .story-layla a { color: #71162c; }
body.home-page #childrens-book .book-ordering { border-color: #17374738; color: #163847; }
body.home-page #childrens-book .book-ordering[open] { background: transparent; }
body.home-page #childrens-book .book-ordering-body { padding-bottom: .4rem; }
body.home-page #childrens-book .classroom-recognition { margin-top: .55rem; }
body.home-page #childrens-book .collection-ordering { margin-top: .35rem; border-color: #17374738; }

@media(max-width:700px) {
  body.home-page #childrens-book .sibling-shelf { gap: .8rem; }
  body.home-page #childrens-book .sibling-shelf article { grid-template-columns: 5.5rem minmax(0,1fr); gap: .85rem; padding: .5rem 0; }
  body.home-page #childrens-book .sibling-cover,
  body.home-page #childrens-book .sibling-cover img { width: 5.5rem; height: 5.5rem; }
  body.home-page #childrens-book::before { background-position: 58% center; }
}
@media print, (forced-colors:active) {
  body.home-page #childrens-book::before { display: none; }
  body.home-page #childrens-book { background: Canvas; }
  body.home-page #childrens-book :is(h2,h3,p,a,summary) { color: CanvasText; }
}

/* A single resource gateway: editorial type, quiet photographic depth,
   and open navigation instead of a grid of pale button cards. */
body.home-page #understanding {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.65rem,3vw,2.4rem) clamp(1.25rem,4vw,3rem) 1.55rem;
  border: 0; border-radius: .35rem; box-shadow: none;
  background: #103c46; color: #fff;
}
body.home-page #understanding::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/images/organization-scene.webp') center 53% / cover no-repeat;
}
body.home-page #understanding::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,#10333fee,#103c46e8 48%,#10333fdc);
}
body.home-page #understanding .kicker {
  color: #e8cf91; font-size: .75rem; letter-spacing: .13em;
  margin: 0 auto .65rem; font-weight: 600;
}
body.home-page #understanding h2 {
  color: #fff; text-shadow: none; font-weight: 500;
  font-size: clamp(1.8rem,3vw,2.5rem); line-height: 1.2;
  letter-spacing: -.025em; margin: 0 auto .65rem; max-width: 31ch;
}
body.home-page #understanding > p:not(.kicker) {
  color: #e2eeeb; font-size: 1rem; line-height: 1.5;
  max-width: 55ch; margin: 0 auto;
}
body.home-page #understanding .resource-routes {
  gap: 0; max-width: 60rem; margin-top: 1.55rem;
  border-top: 1px solid #e8cf914d; padding-top: .6rem;
}
body.home-page #understanding .resource-routes > li {
  padding: .15rem 1.25rem; border: 0;
}
body.home-page #understanding .resource-routes > li + li {
  border-left: 1px solid #e2eeeb38;
}
body.home-page #understanding .resource-routes a {
  color: #fff; background: transparent; box-shadow: none;
  border: 0; border-radius: 0; min-height: 2.75rem;
  padding: .45rem .2rem; text-decoration: underline;
  text-decoration-color: #e8cf918c; text-underline-offset: .25em;
}
body.home-page #understanding .resource-routes .resource-route {
  font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em;
}
body.home-page #understanding .resource-routes .resource-related {
  margin: 0; font-size: .9375rem; font-weight: 400; color: #e2eeeb;
}
body.home-page #understanding .resource-routes a span { color: #e8cf91; }
body.home-page #understanding .resource-routes a:hover {
  color: #fff0c9; background: transparent; text-decoration-color: currentColor;
}
body.home-page #understanding .resource-routes a:focus-visible {
  outline: 2px solid #ffe1a1; outline-offset: 3px; border-radius: .1rem;
}
@media(max-width:640px) {
  body.home-page #understanding { padding: 1.6rem 1.1rem 1rem; }
  body.home-page #understanding h2 { max-width: 22ch; }
  body.home-page #understanding .resource-routes { gap: 0; margin-top: 1.2rem; }
  body.home-page #understanding .resource-routes > li {
    grid-template-columns: 1fr; gap: 0; padding: .4rem 0;
  }
  body.home-page #understanding .resource-routes > li + li {
    border-left: 0; border-top: 1px solid #e2eeeb38;
  }
  body.home-page #understanding .resource-routes .resource-route { font-size: 1.125rem; }
  body.home-page #understanding .resource-routes .resource-related { font-size: .9375rem; }
  body.home-page #understanding::before { background-position: 45% center; }
}
@media print, (forced-colors:active) {
  body.home-page #understanding { background: Canvas; color: CanvasText; }
  body.home-page #understanding::before, body.home-page #understanding::after { display: none; }
  body.home-page #understanding :is(h2,p,a),
  body.home-page #understanding .resource-routes :is(a,span) { color: CanvasText; }
}

/* Let the family comparison read as an editorial passage, without nested cards. */
body.home-page .diagnosis-section {
  background: radial-gradient(ellipse at 85% 75%,#e8efeb8c,transparent 65%),
              linear-gradient(180deg,#fbfaf6,#fff 45%,#f8faf7);
  padding-block: clamp(2.5rem,5vw,4rem); border: 0;
}
body.home-page .diagnosis-portrait {
  opacity: .1;
  /* Keep the original side-by-side photograph intact. A softer band at
     mouth height blends uneven light into the page while retaining the eyes. */
  filter: saturate(.3) contrast(.8);
  -webkit-mask-image: linear-gradient(90deg,#000,#000 48%,transparent),linear-gradient(180deg,#000,#000 24%,#0008 37%,#0008 48%,#000 63%,#000);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg,#000,#000 48%,transparent),linear-gradient(180deg,#000,#000 24%,#0008 37%,#0008 48%,#000 63%,#000);
  mask-composite: intersect;
}
body.home-page .diagnosis-rocco-portrait {
  position: absolute; inset: 0 0 0 auto; width: 40%; height: 100%;
  object-fit: cover; object-position: center 25%; opacity: .11;
  filter: saturate(.8) contrast(.92); pointer-events: none;
  -webkit-mask-image: linear-gradient(270deg,#000,#000 45%,transparent),linear-gradient(180deg,transparent,#000 10%,#000 80%,transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(270deg,#000,#000 45%,transparent),linear-gradient(180deg,transparent,#000 10%,#000 80%,transparent);
  mask-composite: intersect;
}
body.home-page .diagnosis-shell { max-width: 52rem; gap: 1.4rem; }
body.home-page .diagnosis-copy h2 {
  max-width: 22ch; margin: 0 auto; font-size: clamp(2rem,3.6vw,3rem);
  line-height: 1.16; font-weight: 500; text-shadow: none;
}
body.home-page .diagnosis-copy .clinical-anchor {
  max-width: 42rem; margin: 1.4rem auto 0; padding: 0;
  border: 0; border-radius: 0; background: transparent;
  box-shadow: none; backdrop-filter: none;
}
body.home-page .clinical-anchor p {
  font-family: var(--display-font); font-size: 1.125rem;
  line-height: 1.6; color: #173e51;
}
body.home-page .clinical-anchor a {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; min-height: 2.75rem; margin-top: .15rem;
  font-size: .8125rem; line-height: 1.5; font-weight: 600; color: #6a4c1e;
}
body.home-page .diagnosis-context { max-width: 65ch; margin-top: 1.1rem; color: #254652; }
body.home-page .diagnosis-bridge {
  font-family: var(--display-font); font-size: 1.125rem; margin-top: 1rem;
}
body.home-page .diagnosis-copy .diagnosis-micdrop {
  max-width: 42rem; margin: 1.5rem auto 0; padding: 1.15rem 0 0;
  border: 0; border-top: 1px solid #b29b685c; border-radius: 0;
  background: transparent; box-shadow: none; color: #37545c; gap: .35rem;
}
body.home-page .diagnosis-micdrop strong { color: #173e51; }
body.home-page .diagnosis-micdrop strong em { font-size: clamp(2rem,3.5vw,2.75rem); }
body.home-page .diagnosis-micdrop strong > span { font-size: clamp(1.25rem,2vw,1.6rem); }
body.home-page .comparison-disclosure {
  width: min(100%,42rem); margin: 0 auto; padding: 0;
  background: transparent; box-shadow: none; border: 0; border-radius: 0;
  border-top: 1px solid #173e512b;
}
body.home-page .comparison-disclosure > summary {
  min-height: 2.75rem; padding: .85rem .35rem; background: transparent;
}
@media(max-width:700px) {
  body.home-page .diagnosis-portrait {
    opacity: .075; width: 100%; height: 28rem; bottom: auto;
    object-position: center 42%;
  }
  body.home-page .diagnosis-rocco-portrait {
    inset: auto 0 0 auto; width: 65%; height: 20rem; opacity: .09;
  }
  body.home-page .diagnosis-copy h2 { max-width: 20ch; }
  body.home-page .diagnosis-copy .kicker { max-width: 35ch; }
}
@media print, (forced-colors:active) {
  body.home-page .diagnosis-rocco-portrait { display: none; }
}

/* A bookstore listing belongs with the existing recognition, without a new banner. */
.indie-recognition-note {
  display: grid; grid-template-columns: 11.25rem minmax(0,1fr);
  align-items: center; gap: 1.5rem; width: 100%; max-width: 52rem;
  margin: 1.5rem auto; padding: 1.4rem 0;
  border: 0; border-top: 1px solid #173e5129; background: transparent;
  text-align: center; box-sizing: border-box;
}
.indie-recognition-note .indie-badge-link { display: block; width: 11.25rem; margin: auto; }
.indie-recognition-note .indie-badge-link img {
  display: block; width: 100%; height: auto; object-fit: contain;
  border: 0; border-radius: 0; box-shadow: none;
}
.indie-recognition-note h3 {
  font-family: var(--display-font,Lora,Georgia,serif); color: #173e51;
  font-size: 1.4rem; font-weight: 500; line-height: 1.3;
  text-align: center; margin: .35rem auto .5rem;
}
.indie-recognition-note p {
  font-family: var(--vsta-reading-font); font-size: 1rem;
  line-height: 1.6; color: #37545c; margin: .35rem auto; max-width: 48ch;
}
.indie-recognition-note .indie-recognition-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: #775719;
}
.indie-recognition-note :is(.indie-listing-link,.indie-shelf-links a) {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem; min-height: 2.75rem; padding: .3rem .15rem;
  font-size: .9375rem; font-weight: 600; line-height: 1.5;
  color: #165966; text-decoration: underline; text-underline-offset: .22em;
}
.indie-recognition-note .indie-shelf-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem 1.1rem;
}
.indie-recognition-note .indie-hashtag {
  font-size: .8125rem; font-weight: 600; letter-spacing: 0;
  color: #52636a; overflow-wrap: anywhere;
}
.indie-recognition-note a:focus-visible { outline: 3px solid #996d25; outline-offset: 4px; }
/* Official educational artwork shares the surrounding paper and type scale. */
.author-education-grid > article {
  background: #fff; box-shadow: none;
}
.author-recognition-art {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 8.25rem; margin: .35rem auto 1rem;
}
.author-recognition-art > a { display: block; width: min(100%,19.375rem); }
.author-recognition-art img {
  display: block; width: 100%; height: auto; object-fit: contain;
  border: 0; border-radius: 0; box-shadow: none;
}
.author-recognition-art .author-curriculum-status {
  display: grid; gap: .5rem; width: min(100%,19.375rem);
  padding: 1rem .4rem; margin: 0; border-block: 1px solid #ded5e3;
  text-align: center;
}
.author-curriculum-status strong {
  font-family: var(--display-font,Lora,Georgia,serif);
  font-size: 1.2rem; line-height: 1.4; font-weight: 500; color: #35213e;
}
.author-curriculum-status span { font-size: .9375rem; line-height: 1.5; color: #63526c; }
@media(max-width:640px) {
  .indie-recognition-note { grid-template-columns: 1fr; gap: .8rem; padding-block: 1rem; }
  .indie-recognition-note .indie-badge-link { width: 10.5rem; }
  .indie-recognition-note h3 { font-size: 1.3rem; }
}
