/* Shared 3iEducation children's landing page. Edit _shared/landing.css,
   then run _shared/sync-landing.py to update the standalone activities. */
#welcome{display:grid;grid-template-columns:60% 40%;min-height:100dvh;background:#fbfdff}
#welcome .cover{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-start;padding:28px 5%;gap:14px;min-width:0;min-height:0;height:auto;overflow:hidden;background:radial-gradient(ellipse at 70% 75%,#84dcfb,#3da6ef 75%)}
#welcome .cover-top{display:flex;align-items:center;justify-content:flex-start;flex:none}
#welcome .cover-top .eyebrow{display:inline-block;max-width:none;text-align:left;font-size:10px;line-height:1.3;letter-spacing:1.7px;font-weight:700;color:#fff;background:#125a9470;border:1px solid #ffffff60;border-radius:30px;padding:8px 13px}
#welcome .cover h1{font-family:Nunito,Arial,sans-serif;font-size:clamp(38px,4.8vw,72px);font-weight:700;line-height:1.02;letter-spacing:-2px;margin:0;color:#fff;text-shadow:0 4px 0 #2468a4,0 8px 20px #13467b30;transform:rotate(-2deg);flex:none;z-index:1}
#welcome .cover h1 em{display:inline-block;font-style:normal;color:#fff2a7;margin-left:23px;margin-top:5px}
#welcome #cover-art{position:relative;inset:auto;display:grid;place-items:center;width:100%;height:auto;flex:1;min-height:0;max-width:none;max-height:none;aspect-ratio:auto;margin:0;border:0;border-radius:22px;transform:none;box-shadow:none;overflow:hidden;container-type:size;align-self:stretch}
#welcome #cover-art>svg{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
#welcome #cover-art>img:not(.weather-story-art){position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
#welcome .cover-foot,#welcome .cover-caption{flex:none;margin:0;padding:0;font-size:14px;line-height:1.4;font-weight:700;color:#fff;text-shadow:0 2px 5px #154065;letter-spacing:.2px}
#welcome .cover-caption .spark{color:#ffe49a}
#welcome .welcome-copy{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0;padding:20px 8%;border-left:4px solid #ffffff99;background:linear-gradient(155deg,#fffdf4,#f5fcff);overflow:visible}
#welcome .welcome-copy .toolbar{display:flex;justify-content:flex-end;gap:4px;margin:0 0 auto;flex:none}
#welcome .welcome-copy .toolbar button{min-height:36px;min-width:30px;font-size:21px;padding:3px 5px}
#welcome .welcome-copy>.eyebrow{font-size:11px;color:#a4732b;letter-spacing:1.3px;line-height:1.4;margin:0}
#welcome .welcome-copy h2{font-size:clamp(28px,2.9vw,42px);font-weight:700;line-height:1.12;letter-spacing:-.8px;color:#185781;margin:0}
#welcome #intro,#welcome #intro-copy{margin:0}
#welcome #intro p,#welcome #intro-copy p{font-size:16px;line-height:1.45;color:#527184;margin:0}
#welcome #intro p+p,#welcome #intro-copy p+p{margin-top:8px}
#welcome .grade-select{display:block;padding:0;margin:0;border:0;min-width:0}
#welcome .grade-select legend{font-size:14px;color:#36576b;padding:0;margin-bottom:6px;font-weight:700}
#welcome .grade-select button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:100%;min-height:54px;padding:8px 12px;margin:6px 0;border:2px solid #d8e7ec;border-radius:13px;color:#345c75;background:#fff;text-align:left;transition:transform .15s,border-color .15s}
#welcome .grade-select button b{font-size:15px;line-height:1.25}
#welcome .grade-select button span{display:block;width:auto;height:auto;padding:0;margin:0;background:transparent;border-radius:0;font-size:12px;line-height:1.35;font-weight:400;color:#557486}
#welcome .grade-select button[aria-pressed=true]{border-color:#39a6ca;background:#e8f8ff;box-shadow:0 3px 0 #acdce9}
#welcome .grade-select button:hover{transform:translateY(-1px);border-color:#4bb5df}
#welcome .explore-entry{display:flex;align-items:center;gap:14px;width:100%;margin-top:auto;flex:none}
#welcome .explore-logo{display:block;width:clamp(100px,9vw,128px);height:auto;flex:none}
#welcome .explore-entry #start{display:flex;align-items:center;justify-content:space-between;flex:none;width:auto;min-width:0;min-height:36px;margin:0 0 0 auto;padding:8px 12px;gap:14px;border:1px solid #158b3d;border-radius:12px;background:#158b3d;color:#fff;font-size:12px;font-weight:700;letter-spacing:0;box-shadow:0 4px 0 #0b622a}
#welcome .explore-entry #start:hover{background:#107432;transform:translateY(-1px)}
#welcome .welcome-copy>.welcome-foot,#welcome .welcome-copy>small{font-size:11px;font-weight:400;line-height:1.3;text-align:left;color:#728087;margin:0}
/* Fit the existing topic artwork into the same illustration area. */
#welcome #cover-art .cover-picture{width:min(100cqw,calc(100cqh * 437 / 300));height:auto;aspect-ratio:437/300;max-height:100%;border:5px solid #fff;border-radius:18px;transform:none;overflow:hidden}
#welcome #cover-art .body-cover{height:100%;max-height:100%;width:100%;gap:10px}
#welcome #cover-art .body-cover>div{height:100%;max-width:30%}
#welcome #cover-art .cover-magnets,#welcome #cover-art .matter-hero{width:100%;height:100%;max-height:100%;min-height:0;transform:none;margin:0;aspect-ratio:auto}
#welcome #cover-art .cover-magnets img,#welcome #cover-art .matter-hero img{width:100%;height:100%;object-fit:contain;max-height:100%}
#welcome #cover-art .solar-cover{width:100%;height:100%;max-height:100%;min-height:0}
/* The Weather cover is a full scene, with its title over the sky. */
#welcome .cover:has(.weather-story-art){background:#3d9ff5}
#welcome .cover:has(.weather-story-art) #cover-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;border-radius:0;background:linear-gradient(#3d9ff5,#49adfa)}
#welcome .weather-story-art{display:block;position:absolute;bottom:0;width:100%;height:auto;max-height:100%;object-fit:cover;object-position:center bottom;mask-image:linear-gradient(to bottom,transparent,#000 12%)}
#welcome .cover:has(.weather-story-art) .cover-foot{margin-top:auto;z-index:1}
@media(min-width:801px){body:has(#welcome:not([hidden])){height:100dvh;overflow:hidden}#welcome{height:100dvh;min-height:0;overflow:hidden}}
@media(min-width:801px) and (max-height:680px){#welcome .cover{padding:20px 5%;gap:10px}#welcome .cover h1{font-size:clamp(36px,4.6vw,62px)}#welcome .welcome-copy{padding:14px 8%;gap:10px}#welcome .welcome-copy h2{font-size:30px}#welcome #intro p,#welcome #intro-copy p{font-size:14px}#welcome .grade-select button{min-height:46px;padding:6px 10px}#welcome .cover-foot,#welcome .cover-caption{font-size:12px}}
@media(max-width:1050px) and (min-width:801px){#welcome .welcome-copy{padding-left:7%;padding-right:7%}#welcome .cover h1{font-size:clamp(35px,4.5vw,48px)}}
@media(max-width:800px){#welcome{grid-template-columns:1fr;height:auto;overflow:visible}#welcome .cover{height:560px;min-height:0;padding:24px 7%;gap:13px}#welcome .cover h1{font-size:clamp(33px,8vw,54px)}#welcome .welcome-copy{padding:24px 7%;gap:18px;border-left:0}#welcome .welcome-copy h2{font-size:32px}#welcome .explore-entry{margin-top:10px}#welcome #cover-art .body-cover{height:100%}}
@media(prefers-reduced-motion:reduce){#welcome button{transition:none}}

#welcome #cover-art .body-cover>div{transform:none;height:96%;max-width:29%;flex:0 1 29%;min-width:0}
#welcome #cover-art .cover-magnets .cover-badge{right:10px;top:auto;bottom:10px;transform:none;max-width:85%}
#welcome .welcome-copy .toolbar button[data-action=read]{background:transparent;color:#67597f}

#welcome #cover-art .cover-badge{display:none}
.large-text #welcome #intro p,.large-text #welcome #intro-copy p{font-size:18px}
@media(min-width:801px) and (max-height:680px){.large-text #welcome #intro p,.large-text #welcome #intro-copy p{font-size:16px}}
