/* Page accents follow the cover, the child's art or the setting. */
[data-edition] {
  --tone-deep:#203e39; --tone-mid:#40645a; --tone-pale:#cce6dd; --tone-ink:#245446;
  --sheet:#eff5f1; --line:#bed2c7;
  --vsta-paper-top:#fbfcfa; --vsta-paper-base:var(--sheet); --vsta-surface:#fff;
  --vsta-surface-line:var(--line);
}
body:is([data-edition="collection"],[data-edition="rocco"]) {
  --tone-deep:#18364d; --tone-mid:#3b6179; --tone-pale:#c4e3ed; --tone-ink:#194e72; --sheet:#edf4f8; --line:#c2d6e2;
}
body:is([data-edition="ed-book"],[data-edition="ed-guide"]) {
  --tone-deep:#172d3d; --tone-mid:#34485a; --tone-pale:#ffbdba; --tone-ink:#872f3b; --sheet:#f2f5f7; --line:#c5d3db;
}
body:is([data-edition="response-book"],[data-edition="response-guide"]) {
  --tone-deep:#202c40; --tone-mid:#304966; --tone-pale:#a8d6fa; --tone-ink:#234f78; --sheet:#edf3f7; --line:#bed1df;
}
body:is([data-edition="layla"],[data-edition="author"],[data-edition="reviews"]) {
  --tone-deep:#433245; --tone-mid:#69475e; --tone-pale:#f4d4e6; --tone-ink:#78395b; --sheet:#f7f0f5; --line:#ddc9d8;
}
body:is([data-edition="printables"],[data-edition="worksheets"],[data-edition="favorites"]) {
  --tone-deep:#34473e; --tone-mid:#516b56; --tone-pale:#deebbc; --tone-ink:#3b5f41; --sheet:#f0f5eb; --line:#c9d7be;
}
body:is([data-edition="privacy"],[data-edition="terms"],[data-edition="wayfinding"],[data-edition="glossary"]) {
  --tone-deep:#303e49; --tone-mid:#4b5e6a; --tone-pale:#d6e1ed; --tone-ink:#3c566b; --sheet:#f0f4f6; --line:#c9d6de;
}
body:is([data-edition="handoff"],[data-edition="access"],[data-edition="support"]) {
  --tone-deep:#224548; --tone-mid:#346465; --tone-pale:#caeddf; --tone-ink:#215d61; --sheet:#eef6f4; --line:#c1d9d3;
}
/* A dark masthead holds the actual light logo. Daylight and the tabletop meet below it. */
@media screen and (forced-colors:none) {
  body[data-edition="family"] #top {
    color:#213e36; background:linear-gradient(112deg,#fbf9fc 0%,#f7f7f1 35%,#dbe9df 58%,#183c37 88%);
    overflow:hidden;
  }
  body[data-edition="family"] #top::before {
    inset:0; width:100%; height:auto;
    background:url('images/home-tabletop.webp') right 65% / cover no-repeat;
    opacity:1; mask-image:linear-gradient(90deg,transparent 30%,#0001 41%,#0008 58%,#000 80%);
  }
  #top.hero .nav[aria-label] {
    display:flex; align-items:center; justify-content:space-between; gap:clamp(1rem,3vw,3rem);
    width:100%; max-width:var(--site-width,78rem); margin:0 auto; padding-block:.4rem;
    position:relative; isolation:isolate; border:0;
  }
  #top.hero .nav[aria-label]::before {
    content:""; position:absolute; z-index:-1; inset:0 -100vw; background:#1c3d37; border-bottom:1px solid #9ac3af;
  }
  #top.hero .nav .wordmark, #top.hero .nav .wordmark img { width:5.9rem; max-width:none; height:auto; margin:0; }
  #top.hero .nav .wordmark { flex:0 0 auto; display:block; }
  #top.hero .nav .wordmark::before, #top.hero .nav .wordmark::after { display:none; }
  #top.hero .nav-actions { flex:1 1 auto; justify-content:flex-end; }
  #top.hero .nav a.nav-link { color:#f3f8f4; }
  #top.hero .nav a.nav-link:hover { color:#c8e6d7; }
  #top.hero .hero-content { padding-block:clamp(2.6rem,6vw,5.3rem); }
  #top.hero .hero-copy-block { text-align:center; }
  #top.hero .hero-copy-block::before { display:none; }
  #top.hero h1.signature-heading {
    margin-inline:auto; width:100%; color:#183b32;
    font-size:clamp(2.5rem,5.7vw,5.4rem); letter-spacing:-.045em;
  }
  #top.hero h1.signature-heading .signature-first {
    display:block; margin:0; padding:0; font:660 1em/1.07 var(--vsta-headline);
    color:#193e34; letter-spacing:-.049em; text-shadow:none;
  }
  #top.hero h1.signature-heading .signature-accent {
    display:block; margin:.08em 0 0; padding:0; color:#753652;
    font:400 .83em/1.12 var(--vsta-phrase); letter-spacing:-.032em; text-shadow:none;
  }
  #top.hero h1.signature-heading .signature-accent::after { display:none; }
  #top .hero-copy-block .hero-copy { color:#2b443b; margin:1.4rem auto 0; max-width:47ch; text-shadow:none; }
  #top .hero-copy-block .availability { color:#47594e; }
  #top.hero .hero-actions .primary-button { background:#215444; border:1px solid #215444; color:#fff; box-shadow:0 3px 10px #254d3920; }
  #top.hero .hero-actions .primary-button:hover { background:#173e32; }
  #top.hero .hero-actions .text-link { color:#4e2d46; text-decoration-color:#a57c90; }
  #top.hero .hero-actions .text-link span { color:inherit; }
  #top.hero .hero-actions a:focus-visible { outline:3px solid #763b65; outline-offset:4px; }
  #top.hero .hero-collection .collection-label {
    justify-self:center; padding:.25rem .8rem; background:#193b34ee; color:#fff; border-radius:.2rem;
    font:550 .9rem/1.5 var(--vsta-headline); letter-spacing:.045em;
  }
  #top.hero .hero-classroom-story { color:#fff; background:#193b34f5; border:1px solid #9dbab0; }
  #top.hero .hero-classroom-story :is(small,strong) { color:#f1f8f5; }
  #top.hero .setting-strip { color:#173c32; border-block:1px solid #c1d2c7; background:#f7faf6f5; }
  #top.hero .setting-strip a { color:#234d41; border-color:#bbccc1; }
  #top.hero .setting-strip a:hover { background:#dbeae1; }
  #top.hero .setting-strip a::before { color:#73516b; }
  body.home-page #books { background:linear-gradient(160deg,#eef5ef,#fff 42%,#f3edf3); border-color:#cbdacf; }
  body.home-page .principles { background:linear-gradient(118deg,#fff,#e8f2eb); border-color:#c8dacf; }
  body.home-page .principles strong { color:#2c5345; font-family:var(--vsta-headline); }
  body.home-page #understanding::after { background:linear-gradient(100deg,#1f4739f7,#254d42e8 52%,#203e33ba); }
  body.home-page #understanding .kicker,body.home-page #understanding .resource-routes a span { color:#c9e7d2; }
  body.home-page #understanding .resource-routes a { text-decoration-color:#b4d2c1; }
  body[data-edition] .hub-header.vsta-opening-photo:not(.opening-light),
  body[data-edition] .resource-header.vsta-opening-photo:not(.opening-light),
  body[data-edition]:is(.theme-school,.theme-responders,.theme-hospital) .resource-header {
    background:linear-gradient(112deg,var(--tone-deep) 15%,var(--tone-mid) 78%,var(--tone-deep));
  }
  body[data-edition] .hub-header.vsta-opening-photo .hero-inner h1 em,
  body[data-edition] .books-intro h1 em,
  body[data-edition] .hub-header.vsta-opening-photo .hero-note em,
  body[data-edition]:is(.theme-school,.theme-responders,.theme-hospital) .resource-hero h1 em { color:var(--tone-pale); text-shadow:none; font-style:normal; }
  body[data-edition] .vsta-opening-photo:not(.scene-signature):not(.opening-light)::before { opacity:.56; filter:saturate(.93); }
  body[data-edition="handoff"] .scene-support { --vsta-opening-scene:url('images/visual-communication-cards-preview.webp'); }
  body[data-edition="guides"] .scene-support { --vsta-opening-scene:url('images/school-reading-scene-1440.webp'); }
  body[data-edition="printables"] .scene-support { --vsta-opening-scene:url('images/professional-review-art-table.jpg'); }
  body[data-edition="favorites"] .find-hero { --vsta-opening-scene:url('images/setting-layla.webp'); }
  body:is([data-edition="ed-book"],[data-edition="ed-guide"]) :is(.scene-hospital,.resource-header) {
    --vsta-opening-scene:url('images/emergency-department-entry.webp'); --setting-image:url('images/emergency-department-entry.webp');
  }
  body.theme-hospital .resource-header::before,body[data-edition="ed-guide"] .scene-hospital::before {
    inset:0 0 0 auto; width:71%; background-position:69% 49%; background-repeat:no-repeat; background-size:cover;
    opacity:.92; filter:none; mask-image:linear-gradient(90deg,transparent 1%,#0008 30%,#000d 66%,#000);
  }
  body:is([data-edition="ed-book"],[data-edition="ed-guide"]) header :is(.eyebrow,.gold) { color:#ffd0cc; }
  body.theme-hospital .resource-hero .hero-lede,body[data-edition="ed-guide"] header .lede { color:#f2f6f8; }
  body[data-edition="organizations"] .organization-opening { background:#1c3936; }
  body.org-page .org-opening-layout { background:radial-gradient(at 30% 20%,#45665a,transparent 72%),#233f38; }
  body.org-page .org-opening-photo::before { background:linear-gradient(90deg,#28453b,transparent 25%),linear-gradient(0deg,#122c29ee,transparent 70%); }
  body.org-page .org-eyebrow { color:#cee6ce; }
  body.org-page .org-main { background:#f9fbfa; }
  body.org-page .org-collection { background:linear-gradient(145deg,#e3ede6,#f7f4f7 57%,#eedfe8); }
  body[data-edition] footer.site-footer { background:linear-gradient(120deg,var(--tone-deep),color-mix(in srgb,var(--tone-deep) 76%,#111)); color:#f3f7f5; }
  body[data-edition] footer.site-footer .footer-connect { border-image:none; border-color:#ffffff38; }
  body[data-edition] footer.site-footer .footer-action { color:var(--tone-deep); background:var(--tone-pale); border-color:var(--tone-pale); }
  body[data-edition] footer.site-footer .footer-action.secondary { background:transparent; color:var(--tone-pale); }
  body[data-edition] footer.site-footer :is(.footer-options>summary,.footer-ordering-options>a) { color:var(--tone-pale); }
  body[data-edition="reviews"] #main { background:linear-gradient(90deg,#e7e1e7,#faf7fa 20%,#fcf9fc 80%,#e7e1e7); }
  body[data-edition] .review-cover { background-image:linear-gradient(90deg,#3d2d43 0%,#483349ef 42%,#503b4dc9 59%,#503b4d18 88%),url('images/setting-layla.webp'); }
  body[data-edition] .review-cover .review-label,body[data-edition] .review-cover .review-pull strong,body.review-page .review-masthead .review-label { color:#f3d4e6; }
  body[data-edition] .review-cover .review-label::before,body.review-page .review-masthead .review-label::before { border-color:#ddabc7; }
  body.home-page .review-feature .review-inline { background:linear-gradient(90deg,#f0eaf0,#fff 15%,#fff 85%,#f0eaf0); }
  body.home-page .review-disclosure > summary { background:#433447; color:#f4e6ee; }
  body[data-edition] .guide-scene-hospital { --guide-scene:url('images/emergency-department-entry.webp'); }
  body.org-page :is(.org-setting-hospital,.org-book.cover-hospital) { --scene:url('images/emergency-department-entry.webp'); --stage:url('images/emergency-department-entry.webp'); }
  body[data-edition="worksheets"] main { border-top:.35rem solid #50765c; }
}
body[data-edition] nav[aria-label="Primary navigation"] a.nav-link { font-family:var(--vsta-headline); font-weight:600; }
body[data-edition] main h2:not(.cover-lettering,.review-label,.color-create-title):not(.review-inline *) {
  font-family:var(--vsta-headline); letter-spacing:-.027em;
}
body:is([data-edition="layla"],[data-edition="rocco"]) main .content-shell h2,
body[data-edition="layla"] .layla-section h2 { font-family:"Cover Nunito",Nunito,sans-serif; font-weight:900; }
body[data-edition="author"] .masthead h1 { font-family:var(--vsta-phrase); font-weight:400; letter-spacing:-.038em; }
@media screen and (max-width:1039px) and (forced-colors:none) {
  body[data-edition="family"] #top { background:linear-gradient(165deg,#fcfafc 0%,#edf4ed 51%,#c8ddd0 71%,#294e43 100%); }
  body[data-edition="family"] #top::before { inset:36% 0 0; mask-image:linear-gradient(180deg,transparent 0%,#0002 25%,#000d 74%,#000 100%); background-position:75% 76%; }
  #top.hero .hero-content { padding-block:2.4rem 1.5rem; }
}
@media screen and (max-width:700px) and (forced-colors:none) {
  #top.hero .nav[aria-label] { flex-direction:column; gap:0; padding-block:.45rem; }
  #top.hero .nav .wordmark,#top.hero .nav .wordmark img { width:4.25rem; }
  #top.hero .nav-actions { width:100%; justify-content:center; }
  #top.hero h1.signature-heading { font-size:clamp(2.6rem,9.3vw,3.95rem); }
  #top.hero .hero-copy-block .hero-copy { margin-top:1rem; }
  #top.hero .hero-collection .collection-label { margin-bottom:.55rem; }
  body.theme-hospital .resource-header::before,body[data-edition="ed-guide"] .scene-hospital::before {
    width:100%; top:24%; background-position:65% 45%; opacity:.76;
    mask-image:linear-gradient(180deg,transparent 1%,#0004 25%,#000c 65%,#0008 92%);
  }
  body[data-edition="ed-guide"] .hero-inner,body.theme-hospital .resource-hero { position:relative; }
  body[data-edition="ed-guide"] .hero-inner>div:first-child, body.theme-hospital .resource-hero>div:first-child {
    background:linear-gradient(100deg,#172d3df5,#172d3de3 74%,#172d3dbe); border-radius:.4rem; padding:.85rem;
  }
  body[data-edition] .review-cover { background-image:linear-gradient(180deg,#402e450a 0%,#412f45aa 22%,#412f45f5 48%,#412f45 78%),url('images/setting-layla.webp'); }
}
@media screen and (forced-colors:none) {
  /* Group the picture-book link above the shelf so the crayon below stays visible. */
  #top.hero .hero-collection .hero-classroom-story {
    display:inline-flex; align-items:center; justify-content:center; justify-self:center;
    width:fit-content; max-width:100%; margin:0 auto clamp(1.25rem,2.5vw,2rem);
    gap:.7rem; min-height:48px; padding:.45rem .7rem; border:1px solid #f4faf754; border-radius:.35rem;
    background:rgba(17,46,40,.16); color:white; box-shadow:none; backdrop-filter:none;
  }
  #top.hero .hero-collection .hero-classroom-story :is(small,strong) {
    color:white; text-shadow:0 1px 3px #0a2823,0 0 7px #0a2823;
  }
  #top.hero .hero-collection .hero-classroom-story:hover { background:rgba(17,46,40,.34); border-color:#fff; }
  #top.hero .hero-collection .hero-classroom-story:focus-visible { outline:3px solid white; outline-offset:3px; }
  #top.hero .hero-collection .collection-label {
    background:transparent; margin:0 auto .35rem; padding:0; color:#fff; text-shadow:0 1px 4px #0b2620,0 0 7px #0b2620;
  }
}
body[data-edition="resources"] .pathway .classroom-reading-links { margin-top:.85rem; }
body[data-edition="resources"] .pathway .classroom-reading-links a { display:inline; padding:0; color:var(--tone-ink); font-weight:650; text-decoration:underline; text-underline-offset:.16em; }
@media screen and (min-width:1040px) and (forced-colors:none) {
  #top.hero .hero-collection { translate:0 -5.8rem; }
  body[data-edition="ed-guide"] .scene-hospital::before { background-position:69% top; }
}
/* Text navigation on the page itself leaves the tabletop uninterrupted. */
body.home-page main > nav.setting-strip {
  width:min(100% - 2rem,68rem); margin:clamp(1rem,2vw,1.5rem) auto .25rem;
  display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:.3rem clamp(.75rem,3vw,2.4rem);
  background:transparent; border:0; box-shadow:none;
}
body.home-page main > .setting-strip a {
  display:inline-flex; align-items:center; justify-content:center; text-align:center; min-height:44px; padding:.25rem .1rem;
  background:transparent; border:0; color:#2a5145;
  font:600 clamp(.88rem,1.3vw,1rem)/1.35 var(--vsta-headline);
  text-decoration:underline; text-decoration-color:#8bab9b; text-underline-offset:.33em; text-decoration-thickness:1px;
}
body.home-page main > .setting-strip a::before,body.home-page main > .setting-strip a::after { display:none; }
body.home-page main > .setting-strip a:hover { color:#753652; text-decoration-color:currentColor; }
body.home-page section.principles,body.home-page section.principles > div {
  border:0; border-radius:0; box-shadow:none; background:transparent;
}
body.home-page section.principles { margin-block:.25rem clamp(1.35rem,3vw,2.4rem); }
body.home-page section.principles > div { padding:.75rem 1rem; }
@media screen and (forced-colors:none) {
  body.home-page #understanding {
    display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr);
    padding:0; isolation:isolate; overflow:hidden; border:0; border-radius:.35rem;
    background:#254939; color:white;
  }
  body.home-page #understanding::before,body.home-page #understanding::after { display:none; }
  .resource-photo-copy { position:relative; z-index:1; align-self:center; padding:clamp(1.7rem,3.1vw,3.25rem) clamp(1.1rem,2.5vw,2.5rem); }
  body.home-page #understanding .resource-photo-copy > p:not(.kicker) { color:#e3eee5; margin:.75rem auto 0; text-align:center; }
  body.home-page #understanding .resource-photo-copy h2 { font-family:var(--vsta-headline); text-wrap:balance; max-width:23ch; color:#fff; }
  body.home-page #understanding .resource-routes { width:100%; margin-top:1.15rem; }
  body.home-page #understanding .resource-routes li { padding-inline:clamp(.25rem,.9vw,.8rem); }
  .resource-photo-scene { position:relative; min-width:0; min-height:17rem; }
  .resource-photo-scene img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 45%; }
  .resource-photo-scene::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#254939,transparent 26%); }
  body.home-page .recognition { background:linear-gradient(115deg,#eff4ee,#fbf8f7 65%,#efe6ed); }
}
@media screen and (max-width:760px) and (forced-colors:none) {
  body.home-page #understanding { grid-template-columns:1fr; }
  .resource-photo-scene { grid-row:1; min-height:0; height:clamp(10rem,46vw,16rem); }
  .resource-photo-scene img { object-position:center 39%; }
  .resource-photo-scene::after { background:linear-gradient(0deg,#254939,transparent 33%); }
  .resource-photo-copy { padding:1rem 1.2rem 1.35rem; }
}
@media print, (forced-colors:active) {
  .resource-photo-scene { display:none; }
}
