/* Halloween parent guide and its product-page invitation. */
.halloween-guide-teaser { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 32px 40px; margin-bottom: 64px; background: #fff0ad; border-radius: 48px 28px 48px 28px; }
.halloween-guide-teaser > img { width: 100%; height: auto; }
.halloween-guide-teaser h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.halloween-guide-teaser .button { white-space: normal; text-align: center; }
.halloween-guide { padding-bottom: 36px; }
.halloween-guide-header { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 28px 0; padding: 36px 40px; border-radius: 52px 28px 52px 28px; background: #ffe0b5; }
.halloween-guide-page h1 { max-width: 24ch; font-size: clamp(2.25rem, 3.6vw, 3.3rem); line-height: 1.1; }
.halloween-guide-header figure { margin: 0; }
.halloween-guide-header img { width: 100%; height: auto; }
.halloween-guide-header figcaption { text-align: center; font-size: .85rem; color: #354b5c; line-height: 1.5; }
.halloween-guide-app { display: grid; grid-template-columns: minmax(0, 1fr) 144px; gap: 28px; align-items: center; padding: 24px 28px; margin: 28px 0; border: 1px solid #6232b426; border-radius: 24px; background: #eee5f9; }
.halloween-guide-app h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 8px; }
.halloween-guide-app p { margin-top: 8px; margin-bottom: 12px; }
.halloween-guide-app > div { min-width: 0; }
.halloween-guide-app-icon { display: block; width: 144px; border-radius: 30px; }
.halloween-guide-app-icon img { display: block; width: 100%; height: auto; border-radius: inherit; box-shadow: 0 8px 20px #33205b26; }
.halloween-guide-app .kids-store-row { margin: 18px 0 12px; }
.halloween-guide-body { max-width: 780px; margin: 44px auto; font-size: 1.125rem; line-height: 1.75; }
.halloween-guide-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; }
.halloween-guide-body a { color: #51259d; text-decoration: underline; text-underline-offset: 4px; }
.halloween-guide-start, .halloween-guide-wrap { padding: 0 12px; }
.halloween-guide-contents { padding: 28px 32px; margin: 32px 0 44px; background: #e1efb7; border-radius: 28px; }
.halloween-guide-contents h2 { margin-top: 0; }
.halloween-guide-contents ol { padding-left: 26px; margin-bottom: 0; }
.halloween-guide-contents a { display: inline-block; padding: 5px 0; }
.halloween-guide-activity { padding: 32px; margin: 28px 0; border: 1px solid #6232b41f; background: #fff; border-radius: 34px 48px 34px 34px; scroll-margin-top: 24px; }
.halloween-guide-number { display: inline-grid; place-items: center; width: 64px; height: 64px; background: #ffe0b5; color: #51259d; border-radius: 22px 28px 22px 22px; font-family: "Baloo 2", sans-serif; font-size: 2rem; font-weight: 800; }
.halloween-guide-activity:nth-of-type(even) .halloween-guide-number { background: #d9c9fa; }
.halloween-guide-activity h2 { margin-top: 20px; }
.halloween-guide-adapt { padding: 6px 22px; border-left: 4px solid #bda1e8; background: #f7f2fd; border-radius: 0 18px 18px 0; }
.halloween-guide-prompt { color: #51259d; margin-bottom: 0; }
.halloween-guide-wrap { margin: 44px 0; }
.halloween-guide-page #download, .halloween-guide-contents { scroll-margin-top: 24px; }
.halloween-guide a:focus-visible, .halloween-guide-teaser a:focus-visible { outline: 3px solid #6232b4; outline-offset: 5px; }
@media (max-width: 900px) {
    .halloween-guide-header { grid-template-columns: 1fr; padding: 32px; }
    .halloween-guide-header figure { max-width: 380px; margin: 0 auto; }
    .halloween-guide-teaser { gap: 24px; padding: 28px; }
}
@media (max-width: 600px) {
    .halloween-guide-header { padding: 28px 22px; }
    .halloween-guide-teaser { grid-template-columns: 1fr; padding: 26px 22px; }
    .halloween-guide-teaser > img { max-width: 260px; margin: 0 auto; }
    .halloween-guide-body { font-size: 1.0625rem; }
    .halloween-guide-activity { padding: 24px 20px; }
    .halloween-guide-contents { padding: 24px; }
    .halloween-guide-adapt { padding: 4px 16px; }
}

/* Match the phonics guides: one app icon above the copy on small screens. */
@media (max-width: 560px) {
    .halloween-guide-app { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 18px; }
    .halloween-guide-app-icon { grid-row: 1; width: 80px; border-radius: 18px; }
}
