/* Book pages share the site buttons and campaign content components. */
.books-page { --purple-2: #5b36a3; --lav: var(--lavender); background: #fff; }
.books-page .site-header { --purple: #39206c; --line: #e8e1f1; --lav: #f6f2ff; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(57, 32, 108, .08); }
.books-page .container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.books-page .nav, .books-page .nav-links { display: flex; align-items: center; }
.books-page .nav-links { margin-left: auto; color: #4f485b; }
.books-page .button { --purple: #39206c; }
.book-collection-hero { --purple: #39206c; --muted: #6f687c; --lav: #f6f2ff; --line: #e8e1f1; }
.book-collection-hero .eyebrow { display: inline-flex; gap: 8px; margin: 0; letter-spacing: normal; line-height: normal; }
.books-page .book-collection-hero .container { width: min(1180px, calc(100% - 40px)); }
.book-collection-hero h1 { font-weight: 700; }
.book-hero-tagline { max-width: 560px; margin-bottom: 16px; color: var(--purple); font-size: 20px; line-height: 1.5; font-weight: 500; }
.book-collection-hero .hero-actions { align-items: stretch; }
.book-landing { --book-accent: #e7efd9; }
.book-landing--4 { --book-accent: #eee7f7; }
.book-landing--5 { --book-accent: #f8e6d9; }
.book-landing section { scroll-margin-top: 110px; }
.book-hero-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.book-hero-books .book-card:first-child { grid-column: 1 / -1; }
.book-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fffefc; }
.book-card picture { display: block; background: #fff9ef; }
.book-card img { display: block; width: 100%; height: auto; object-fit: contain; }
.book-card-copy { padding: 17px 18px 19px; }
.book-card h3, .book-card-title { margin: 0 0 9px; color: var(--purple); font-size: 18px; line-height: 1.4; letter-spacing: -.3px; font-weight: 650; }
.book-age { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.book-age > span { padding-inline: 3px; }
.book-card-link { display: block; height: 100%; }
.book-card-link:hover .book-card-title, .book-card-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.book-card:has(a:focus-visible) { outline: 3px solid #a5502f; outline-offset: 4px; }
.book-card--hero .book-card-copy { padding: 12px 14px; }
.book-card--hero .book-card-title { margin-bottom: 5px; font-size: 14px; }
.book-card--hero .book-age { font-size: 10px; }
.book-age-links { border-block: 1px solid var(--line); padding-block: 18px; }
.book-age-links .wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.book-age-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--purple); font-size: 13px; font-weight: 600; }
.book-age-links small { color: var(--muted); font-size: 11px; font-weight: 400; }
.book-age-links a[aria-current] { background: var(--purple); border-color: var(--purple); color: #fff; }
.book-age-links a[aria-current] small { color: #e1d7e8; }
.book-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.book-section-heading > div { max-width: 780px; }
.book-section-heading .section-description { margin-bottom: 0; }
.book-count { flex: none; margin-top: 38px; color: var(--muted); font-size: 13px; }
.book-grid, .book-age-grid, .book-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.book-age-card { padding: 30px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fffefc; }
.book-age-card h3 { margin: 22px 0 12px; font-size: 22px; line-height: 1.35; letter-spacing: -.6px; color: var(--purple); }
.book-age-number { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: var(--purple); background: #e7efd9; font-size: 30px; }
.book-age-card:nth-child(2) .book-age-number { background: #eee7f7; }
.book-age-card:nth-child(3) .book-age-number { background: #f8e6d9; }
.book-age-months { margin-left: 14px; color: var(--muted); font-size: 12px; }
.book-age-card p, .book-theme-grid p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.book-inline-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--purple); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; line-height: 1.6; }
.book-age-card .book-inline-link { text-decoration: none; }
.book-age-card:hover .book-inline-link { text-decoration: underline; }
.book-catalog { background: #f0ebf5; border-block: 1px solid var(--line); }
.book-selection-note { max-width: 850px; margin: 30px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.book-more { margin-top: 28px; }
.book-more > summary { display: flex; align-items: center; justify-content: center; gap: 20px; width: fit-content; min-height: 48px; margin-inline: auto; padding: 12px 20px; border: 1px solid var(--purple); border-radius: 10px; color: var(--purple); background: #fff; font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; }
.book-more > summary::-webkit-details-marker { display: none; }
.book-more > summary:hover { background: var(--lavender); }
.book-more-icon { font-size: 20px; }
.book-more-open { display: none; }
.book-more[open] .book-more-closed { display: none; }
.book-more[open] .book-more-open { display: inline; }
.book-more[open] .book-more-icon { transform: rotate(45deg); }
.book-more > .book-grid { margin-top: 28px; }
.book-themes h2 { max-width: 800px; margin-bottom: 36px; }
.book-theme-grid article { padding-top: 22px; border-top: 1px solid var(--line); }
.book-step { display: inline-block; padding: 9px 12px; margin-bottom: 20px; border-radius: 8px; background: var(--book-accent); color: var(--purple); font-size: 12px; }
.book-theme-grid h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.4px; margin-bottom: 12px; }
.book-reading-heading { max-width: 800px; }
.book-reading .start-steps { margin-top: 40px; }
.book-question-list { max-width: 800px; padding-top: 26px; margin-top: 30px; border-top: 1px solid var(--line); }
.book-question-list h3 { font-size: 16px; font-weight: 600; }
.book-question-list ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-left: 20px; margin: 20px 0 0; }
.book-question-list li { padding-right: 14px; color: var(--purple); font-size: 15px; line-height: 1.7; }
.book-landing--4 .book-reading { background: #f3edf8; }
.book-landing--5 .book-reading { background: #f9f1e7; }
.book-approach { padding-top: 0; }
.book-approach .wrap { max-width: 850px; padding-top: 45px; border-top: 1px solid var(--line); }
.book-approach > .wrap > p:not(.section-description) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.book-faq .faq-grid { padding-top: 0; border-top: 0; }
.book-related { padding-bottom: 30px; }
.book-related h2 { font-size: 26px; letter-spacing: -.8px; }
.book-related .book-inline-link { display: flex; width: fit-content; }
.book-closing .closing-card { grid-template-columns: minmax(0, 1.5fr) auto; padding: 48px; }
.book-closing .closing-copy h2 { font-size: 38px; line-height: 1.2; }
.book-closing .closing-copy > p { margin-bottom: 0; }
.book-closing .button { position: relative; }
@media (max-width: 1000px) {
  .book-grid, .book-age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-age-card:last-child { grid-column: 1 / -1; }
  .book-theme-grid { gap: 20px; }
  .book-closing .closing-card { grid-template-columns: 1fr; padding: 38px; }
  .book-closing .button { justify-self: start; }
}
@media (max-width: 980px) {
  .book-collection-hero .hero-actions { flex-direction: column; }
  .book-hero-books { width: min(680px, 100%); margin-inline: auto; }
  .book-hero-books .book-card:first-child { grid-column: auto; grid-row: span 2; align-self: center; }
  .book-hero-books .book-card { grid-column: 2; }
}
@media (max-width: 720px) {
  .books-page .wrap, .books-page .container { width: calc(100% - 40px); }
  .book-hero-books { grid-template-columns: 1fr; gap: 16px; }
  .book-hero-books .book-card, .book-hero-books .book-card:first-child { grid-column: auto; grid-row: auto; }
  .book-hero-books .book-card:not(:first-child) { display: none; }
  .book-hero-books .book-card-copy { padding: 16px; }
  .book-hero-books .book-card-title { font-size: 17px; }
  .book-grid, .book-age-grid, .book-theme-grid { grid-template-columns: 1fr; gap: 20px; }
  .book-age-card:last-child { grid-column: auto; }
  .book-section-heading { display: block; }
  .book-count { display: block; margin-top: 18px; }
  .book-age-links a { padding-inline: 12px; gap: 8px; }
  .book-question-list ul { grid-template-columns: 1fr; gap: 14px; }
  .book-closing .closing-card { padding: 30px 24px; }
  .book-closing .closing-copy h2 { font-size: 32px; letter-spacing: -1.3px; }
}
@media (max-width: 640px) {
  .books-page .book-collection-hero .container { width: min(1180px, calc(100% - 28px)); }
}
@media (prefers-reduced-motion: reduce) {
  .books-page .button, .books-page .site-header .site-nav-primary { transition: none; }
}
