/* One disclosure contains the ordering information. Formats sit below the mark. */
.vsta-tonal-depth .book-ordering {
  width: min(100%, 32rem); margin: .3rem auto; padding: 0;
  background: transparent; border: 0; border-top: 1px solid #b2b8b84d;
  border-radius: 0; box-shadow: none; text-align: center; min-width: 0;
}
.vsta-tonal-depth .book-ordering > summary,
.vsta-tonal-depth .book-facts > summary {
  display: list-item; list-style-position: inside; min-height: 44px;
  padding: .7rem .4rem; text-align: center; cursor: pointer;
  font: 600 .875rem/1.5 var(--vsta-reading-font); color: inherit;
}
.vsta-tonal-depth .book-ordering > summary:focus-visible,
.vsta-tonal-depth .book-facts > summary:focus-visible {
  outline: 3px solid currentColor; outline-offset: 2px;
}
.book-ordering-body { padding: .35rem .25rem .8rem; }
.vsta-tonal-depth .book-ordering .book-edition-group {
  display: flex; flex-direction: column; flex-wrap: nowrap;
  align-items: center; justify-content: center; gap: .1rem;
  margin: 0 auto; width: 100%;
}
.vsta-tonal-depth .book-ordering .retailer-mark {
  flex: 0 0 auto; width: 164px; padding: .3rem .75rem;
}
.vsta-tonal-depth .book-ordering .book-editions {
  display: flex; justify-content: center; gap: 0 .2rem; flex-wrap: wrap;
  width: auto; max-width: 100%; margin: 0 auto !important; padding: 0;
}
.vsta-tonal-depth .book-ordering .book-editions a {
  font: 500 .8125rem/1.5 var(--vsta-reading-font)!important;
  min-height: 44px; padding: .35rem .25rem; width: auto;
}
.vsta-tonal-depth .book-ordering .book-editions li + li::before { margin-right: .2rem; }
.book-ordering-body .book-trade-note,
.book-ordering-body .ordering-isbn {
  font: 400 .8125rem/1.6 var(--vsta-reading-font);
  max-width: 42ch; margin: .4rem auto; color: inherit;
}
.book-ordering-body .ordering-isbn { margin-top: .25rem; }
.book-ordering-body .ordering-other-retailer { margin: .35rem auto; }
.vsta-tonal-depth .book-ordering .walmart-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .35rem .5rem; border: 0;
  background: none; color: inherit; box-shadow: none;
  font: 500 .8125rem/1.5 var(--vsta-reading-font);
  text-decoration: underline; text-underline-offset: .2em;
}
.book-ordering .retailer-spark { width: 20px; height: 20px; flex-basis: 20px; }
.vsta-tonal-depth .collection-ordering {
  margin-top: .6rem; padding: 0; max-width: 44rem;
  border-color: #b2b8b84d;
}
.collection-ordering details { margin: 0 auto; }
.collection-ordering summary { font-size: .875rem; font-weight: 500; }
.collection-ordering p { font: 400 .875rem/1.6 var(--vsta-reading-font); }
.vsta-tonal-depth .compact-book-facts {
  width: min(100%, 48rem); margin: .75rem auto 0; padding: 0;
  background: transparent; color: var(--ink, #163847); box-shadow: none;
  border: 0; border-block: 1px solid #c6cccb; border-radius: 0;
}
.vsta-tonal-depth .compact-book-facts .details-list { padding: .75rem 1rem 1rem; margin: 0; }
.vsta-tonal-depth .compact-book-facts .details-list dt { color: var(--ink, #163847); }
.vsta-tonal-depth .compact-book-facts .details-list dd { font-size: .9375rem; color: inherit; }

/* Compact cover proportions and two quiet disclosure controls per resource. */
.home-page .principles {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 0; gap: 0; width: min(calc(100% - 2.5rem),64rem);
  margin-block: 1.2rem;
}
body.vsta-tonal-depth.home-page :is(.principles,.family-panel) { box-shadow: none; }
body.vsta-tonal-depth.home-page .principles { background: transparent; }
.home-page .principles > div {
  padding: .55rem 1.25rem; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; text-align: center;
}
.home-page .principles strong { display: block; text-align: center; font-size: 1rem; }
.home-page .principles p { max-width: 29ch; margin: .2rem auto 0; font-size: .875rem; line-height: 1.55; }
.home-page .family-panel { border: 0; border-radius: 0; box-shadow: none; }
.home-page .recognition .quote-card { border: 0; border-radius: 0; background: transparent; color: #173747; box-shadow: none; }
.home-page #books .book-image-wrap { height: 10rem; padding: .7rem; }
.home-page #books img.book-image { width: 6rem; height: 8.6rem; max-height: 8.6rem; }
.home-page #books .book-content { padding: .9rem 1rem .75rem; }
.home-page #books .book-list { align-items: start; }
.home-page #books .book-eyebrow {
  min-height: 0; margin: 0 auto .5rem; font-size: .75rem;
  font-weight: 600; letter-spacing: .025em; line-height: 1.5; text-transform: none;
}
.home-page #books .book-eyebrow .book-series-label {
  display: inline; margin: 0; font: inherit; letter-spacing: inherit;
}
.home-page #books .book-content h3 {
  font-size: 1.3rem; min-height: 2.5em; margin: 0 auto .4rem;
}
.home-page #books .book-content > p:not(.book-eyebrow) {
  margin: .35rem auto; font-size: 1rem; line-height: 1.55;
}
.home-page #books .book-content .book-actions { margin-top: .5rem !important; gap: 0; }
.home-page #books .book-actions > .detail-link { font-size: .875rem; min-height: 44px; }
.home-page #books .book-disclosures {
  width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 .5rem; align-items: start; border-top: 1px solid #d1d8d4;
}
.home-page #books .book-disclosures > details {
  width: 100%; margin: 0 !important; padding: 0; border: 0;
  background: transparent; box-shadow: none;
}
.home-page #books .book-disclosures > details[open] { grid-column: 1 / -1; }
.home-page #books .book-disclosures:has(details[open]) > details { grid-column: 1 / -1; }
.home-page #books .book-disclosures > details > summary {
  padding: .7rem .15rem; min-height: 44px;
  font: 500 .8125rem/1.5 var(--vsta-reading-font); text-align: center;
}
.home-page .sibling-shelf article { padding: .9rem; gap: .85rem; grid-template-columns: 6rem minmax(0,1fr); }
.home-page .sibling-cover, .home-page .sibling-cover img { width: 6rem; height: 6rem; }
.home-page #childrens-book .book-ordering { margin-top: .45rem; }
.home-page #childrens-book .book-series-label { font-size: .75rem; margin: 0 auto .4rem; }
.home-page #childrens-book .sibling-shelf p { margin-top: .45rem; }
.home-page .sibling-shelf article > div { display: flex; flex-direction: column; align-self: stretch; }
.home-page #childrens-book .sibling-shelf .book-ordering { margin-top: auto; }
.home-page .classroom-recognition { text-align: center; margin: .6rem auto 0; }
.home-page .classroom-recognition .sibling-note { font-size: .8125rem; margin-top: 0; }
.home-page .family-panel-rocco {
  background-image: linear-gradient(180deg,#ffffffb8,transparent 18%,transparent 82%,#ffffffb8),linear-gradient(90deg,#ffffffc9,#fffffff0 36%,#fffffff5 68%,#ffffffd1),url("/assets/images/setting-rocco.webp");
}
.home-page .family-panel-layla {
  background-image: linear-gradient(180deg,#ffffffb8,transparent 18%,transparent 82%,#ffffffb8),linear-gradient(90deg,#ffffffc9,#fffffff0 36%,#fffffff5 68%,#ffffffd1),url("/assets/images/setting-layla.webp");
}

/* Frame the original photograph inside the paper edges, without altering the art. */
.original-artwork-window {
  position: relative; overflow: hidden; width: min(100%,18rem);
  aspect-ratio: 930 / 1070; margin: 0 auto; border-radius: .3rem;
}
.vsta-child-artwork .original-artwork-window img {
  position: absolute; top: -33.645%; left: -15.592%;
  display: block; width: 123.871%; max-width: none; height: auto;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
}
.vsta-child-artwork figure:has(.original-artwork-window) { background: #fff; padding: .9rem; }
.vsta-child-artwork figure:has(.original-artwork-window) figcaption { font-size: 1.1rem; line-height: 1.4; }

/* A faint setting at the close carries the opening's atmosphere through the page. */
.home-page .launch-discover {
  background: linear-gradient(90deg,#ffffffed,#ffffffe6 40%,#ffffffc7),url("/assets/images/setting-rocco.webp") center 65% / cover no-repeat;
  border-top: 1px solid #d8e0d7;
}
.home-page .connect-section { padding-block: .75rem; border-block: 1px solid #d7dfd9; }
.home-page .connect-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 0; }
.home-page .connect-card {
  padding: .8rem 1.4rem; min-height: 0; background: transparent;
  border: 0; border-radius: 0; box-shadow: none;
}
.home-page .connect-card + .connect-card { border-left: 1px solid #d7dfd9; }
.home-page .connect-card h2 { font-size: 1.8rem; margin-bottom: .7rem; }
.home-page main .connect-card > p:not(.kicker):not(.connect-note) { font-size: 1rem; margin-bottom: .75rem; }
.home-page main .connect-card .connect-actions { gap: .35rem; margin-block: .2rem .65rem; }
.home-page .connect-card > p.connect-note { margin: .5rem auto 0; padding-top: .6rem; font-size: .8125rem; }
.home-page .connect-card .store-ordering { margin-block: .25rem 0; }
.sponsorship-qr-figure { margin: .8rem auto .25rem; text-align: center; }
.sponsorship-qr-figure img { display: block; width: 9rem; height: auto; margin: auto; }
.sponsorship-qr-figure figcaption { font: .8125rem/1.6 var(--vsta-reading-font); margin-top: .5rem; }
.theme-books .books-close {
  background: linear-gradient(90deg,#ffffffed,#ffffffe6 50%,#ffffffcd),url("/assets/images/setting-layla.webp") center / cover no-repeat;
}
.theme-layla .layla-editions {
  background: linear-gradient(90deg,#ffffffeb,#fffffff0 45%,#ffffffd0),url("/assets/images/setting-layla.webp") center / cover no-repeat;
}
.vsta-tonal-depth .site-footer {
  --closing-scene: url("/assets/images/setting-rocco.webp");
  position: relative; isolation: isolate;
}
.vsta-tonal-depth .site-footer[data-closing-scene="school"] { --closing-scene: url("/assets/images/setting-school.webp"); }

.vsta-tonal-depth .site-footer[data-closing-scene="hospital"] { --closing-scene: url("/assets/images/setting-hospital.webp"); }
.vsta-tonal-depth .site-footer[data-closing-scene="response"] { --closing-scene: url("/assets/images/setting-responders.webp"); }
.vsta-tonal-depth .site-footer[data-closing-scene="support"] { --closing-scene: url("/assets/images/organization-scene.webp"); }
.vsta-tonal-depth .site-footer[data-closing-scene="layla"] { --closing-scene: url("/assets/images/setting-layla.webp"); }
.vsta-tonal-depth .site-footer[data-closing-scene="author"] { --closing-scene: url("/assets/images/school-reading-scene-1440.webp"); }
.vsta-tonal-depth .site-footer[data-closing-scene="signature"] { --closing-scene: url("/assets/images/rocco-original-handprint-680.png"); }
.vsta-tonal-depth .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--closing-scene) center 60% / cover no-repeat;
  opacity: .12; filter: saturate(.45);
  -webkit-mask-image: linear-gradient(90deg,transparent,#0002 35%,#000 100%);
  mask-image: linear-gradient(90deg,transparent,#0002 35%,#000 100%);
}
.vsta-tonal-depth .site-footer[data-closing-scene="signature"]::before {
  background-size: auto 75%; background-position: 92% center; opacity: .09;
}
.vsta-tonal-depth .site-footer .gear-qr { width: min(100%,30rem); margin: .25rem auto; }
.vsta-tonal-depth .site-footer .gear-qr > summary {
  min-height: 44px; text-align: center; justify-content: center;
}

/* These labels are strong text rather than headings, so center them explicitly. */
.vsta-tonal-depth .explore-ending { padding-block: 1.35rem 1.6rem; }
.vsta-tonal-depth .explore-title { margin: 0 auto .8rem; text-align: center; }
.vsta-tonal-depth .explore-title h2,
.vsta-tonal-depth.theme-rocco main .related h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem); line-height: 1.3;
  margin: .35rem auto .8rem; text-align: center;
}
.vsta-tonal-depth .explore-title img { width: 1.75rem; height: auto; }
.vsta-tonal-depth .explore-grid,
.vsta-tonal-depth .related-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: .65rem; width: 100%; margin: 0 auto; padding: 0;
}
.vsta-tonal-depth .explore-grid > a,
.vsta-tonal-depth.theme-rocco .related-links > a {
  display: flex; flex: 1 1 10rem; flex-direction: column;
  align-items: center; justify-content: flex-start;
  min-width: 0; max-width: 18rem; min-height: 44px;
  gap: .3rem; margin: 0; padding: .8rem .75rem;
  border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: #173c49;
  text-align: center; text-decoration: none;
  font: 600 1rem/1.4 var(--vsta-reading-font);
}
.vsta-tonal-depth .explore-grid > a strong {
  display: block; width: 100%; margin: 0; text-align: center;
  font: 600 1rem/1.4 var(--vsta-reading-font); text-shadow: none; text-wrap: balance;
  text-decoration: underline; text-underline-offset: .2em;
}
.vsta-tonal-depth .explore-grid > a span,
.vsta-tonal-depth.theme-rocco .related-links > a small {
  display: block; width: 100%; margin: 0; text-align: center;
  font: 400 .875rem/1.5 var(--vsta-reading-font); color: #4b6269;
}
.vsta-tonal-depth .explore-grid > a:hover,
.vsta-tonal-depth.theme-rocco .related-links > a:hover { color: #235f61; background: #f1f6f144; }
.vsta-tonal-depth.theme-rocco .related-links > a { text-decoration: none; }
.vsta-tonal-depth.theme-rocco .related-links .related-link-title { text-decoration: underline; text-underline-offset: .2em; }
.vsta-tonal-depth.theme-rocco .related-links > a small { text-decoration: none; }
.vsta-tonal-depth .related-shell { padding-block: 1.4rem; }
:is(.theme-school,.theme-hospital,.theme-responders) .content-shell {
  grid-template-columns: minmax(0,1fr); width: min(100%,60rem);
  margin-inline: auto; gap: 1rem;
}
:is(.theme-school,.theme-hospital,.theme-responders) .content-shell > div > .intro {
  max-width: 68ch; margin-inline: auto;
}

/* Tighten navigation and catalogue cards while preserving readable body copy. */
.theme-books .professional-cover { padding: 1rem; }
.theme-books .professional-grid { align-items: start; }
.theme-books .professional-card:nth-child(1) .professional-cover {
  background: linear-gradient(#ffffff78,#ffffffa6),url("/assets/images/setting-school.webp") center / cover no-repeat;
}
.theme-books .professional-card:nth-child(2) .professional-cover {
  background: linear-gradient(#ffffff78,#ffffffa6),url("/assets/images/setting-hospital.webp") center / cover no-repeat;
}
.theme-books .professional-card:nth-child(3) .professional-cover {
  background: linear-gradient(#ffffff78,#ffffffa6),url("/assets/images/setting-responders.webp") center / cover no-repeat;
}
.theme-books .professional-cover img { height: 10rem; max-height: 10rem; }
.theme-books .professional-copy { padding: 1rem; }
.theme-books .professional-copy .book-label {
  min-height: 0; font-size: .75rem; line-height: 1.5;
  letter-spacing: .025em; text-transform: none; margin: 0 auto .4rem;
}
.theme-books .professional-copy .book-series-label { display: inline; font: inherit; margin: 0; letter-spacing: inherit; }
.theme-books .professional-copy h3 { font-size: 1.3rem; min-height: 2.6em; line-height: 1.3; margin-block: .4rem; }
.theme-books .professional-copy > p:not(.book-label) { font-size: 1rem; min-height: 4.8em; line-height: 1.6; margin: .3rem auto .5rem; }
.theme-books .professional-copy .book-actions { gap: 0; }
.theme-books .professional-copy .book-ordering { margin-block: 0; }
.theme-books .children-feature { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 1.5rem; padding: 1.25rem; }
.theme-books .children-cover { width: min(100%,17rem); }
.theme-books .children-copy h3 { font-size: 1.85rem; }
.vsta-tonal-depth .launch-card { padding: 1.1rem; border-radius: .65rem; }
.vsta-tonal-depth .launch-card :is(h2,h3) { font-size: 1.3rem; line-height: 1.3; min-height: 0; margin-bottom: .6rem; }
.vsta-tonal-depth .launch-card p { margin-bottom: .75rem; }
.vsta-tonal-depth .resource-card { padding: 1.1rem; }
.vsta-tonal-depth .resource-card h3 { font-size: 1.25rem; line-height: 1.35; }
.vsta-tonal-depth .support-card { padding: 1.15rem; }
.vsta-tonal-depth .support-card h3 { font-size: 1.3rem; line-height: 1.35; }
.vsta-tonal-depth .term-card { padding: 1rem; }
.vsta-tonal-depth .term-card h3 { font-size: 1.25rem; line-height: 1.35; }

@media (max-width:1000px) and (min-width:551px) {
  .home-page #books .book-card { grid-template-columns: 10rem minmax(0,1fr); }
  .home-page #books .book-image-wrap { height: 100%; min-height: 13rem; display: flex; align-items: center; }
  .home-page #books .book-eyebrow, .home-page #books .book-content h3 { min-height: 0; }
}
@media (max-width:760px) {
  .home-page .connect-grid { grid-template-columns: minmax(0,1fr); }
  .home-page .connect-card { padding: 1rem .6rem; }
  .home-page .connect-card + .connect-card { border-left: 0; border-top: 1px solid #d7dfd9; }
}
@media (max-width:640px) {
  .theme-books .children-feature { grid-template-columns: minmax(0,1fr); }
  .home-page #books .book-image-wrap { height: 9.5rem; }
  .home-page #books img.book-image { width: 5.65rem; height: 8.1rem; max-height: 8.1rem; }
  .home-page .sibling-shelf article { grid-template-columns: 5rem minmax(0,1fr); }
  .home-page .sibling-cover, .home-page .sibling-cover img { width: 5rem; height: 5rem; }
  .vsta-tonal-depth .explore-grid > a,
  .vsta-tonal-depth.theme-rocco .related-links > a { flex-basis: calc(50% - .65rem); max-width: none; padding: .75rem .6rem; }
  .vsta-tonal-depth .explore-grid > a strong,
  .vsta-tonal-depth.theme-rocco .related-links > a { font-size: .9375rem; }
  .vsta-tonal-depth .explore-grid > a span,
  .vsta-tonal-depth.theme-rocco .related-links > a small { font-size: .8125rem; }
}
@media(max-width:380px) {
  .vsta-tonal-depth .explore-grid > a,
  .vsta-tonal-depth.theme-rocco .related-links > a { flex-basis: 100%; }
}
@media print {
  .book-ordering > :not(summary), .book-facts > :not(summary) { display: block !important; }
  .vsta-tonal-depth .site-footer::before { display: none; }
}
@media(forced-colors:active) { .vsta-tonal-depth .site-footer::before { display:none; } }
