/* Three botanical silhouettes: lavender lead, peach and berry companions. */
.botanical-cast{position:relative;isolation:isolate;min-width:0;width:100%;height:470px;align-self:center}
.botanical-cast:before{content:"";position:absolute;inset:12% 3% 8%;z-index:-1;background:radial-gradient(ellipse at 51% 43%,#fffdf8b8,transparent 68%);pointer-events:none}
.botanical-cast:after{content:"";position:absolute;left:1%;right:1%;bottom:0;height:18%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#d4dec56b,transparent 70%);pointer-events:none}
.botanical-character{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;padding:0;border:0;border-radius:30px;background:transparent;min-width:0;cursor:pointer;transition:transform .2s}
.botanical-character img{display:block;width:100%;height:calc(100% - 37px);min-height:0;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 9px 7px #314b332b);pointer-events:none}
.botanical-character:hover,.botanical-character:focus-visible{transform:translateY(-7px)}
.botanical-character:focus-visible{outline:3px solid #754590;outline-offset:6px}
.botanical-lead{left:24%;bottom:17%;width:52%;height:83%;z-index:2;--petal:#b58be0}
.botanical-left{left:-1%;bottom:3%;width:28%;height:66%;z-index:3;--petal:#f3a16a}
.botanical-right{right:-1%;bottom:1%;width:28%;height:65%;z-index:3;--petal:#cf3b78}
.botanical-name{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;padding:5px 12px;min-height:30px;line-height:1.4;border:1px solid #ffffffde;border-radius:30px;background:#fffdf8ed;color:#294e40;font-size:14px;font-weight:750;white-space:nowrap;box-shadow:0 2px 7px #34513a0a;pointer-events:none}
.botanical-name{border-bottom:2px solid var(--petal)}
.botanical-greeting{position:absolute;z-index:4;top:0;left:10%;right:10%;margin:0;text-align:center;font-size:16px;font-weight:750;color:#4c4555}
.botanical-greeting span{display:inline-block;padding:9px 17px;border-radius:20px 20px 20px 3px;background:#fffdf8f2;box-shadow:0 3px 0 #d6d8c77a;transform:rotate(-3deg)}


/* Match the science welcome proportions while keeping each subject's own scene. */
.forest-welcome,.hero.subject-welcome{grid-template-columns:.94fr 1.06fr;gap:1%;min-height:630px}
.hero.subject-welcome .botanical-cast{justify-self:center}
.botanical-cast[data-subject="social"] .botanical-lead{--petal:#7caa51}
.botanical-cast[data-subject="social"] .botanical-left{--petal:#f3a16a}
.botanical-cast[data-subject="social"] .botanical-right{--petal:#65b8d0}
.botanical-cast[data-subject="chinese"] .botanical-lead{--petal:#98adcf}
.botanical-cast[data-subject="chinese"] .botanical-left{--petal:#e5b481}
.botanical-cast[data-subject="chinese"] .botanical-right{--petal:#7dba8a}
.botanical-cast[data-subject="math"] .botanical-lead{--petal:#d7a654}
.botanical-cast[data-subject="math"] .botanical-left{--petal:#be8b70}
.botanical-cast[data-subject="math"] .botanical-right{--petal:#d0a270}

@media(min-width:1500px){.forest-welcome .botanical-cast,.hero.subject-welcome .botanical-cast{height:500px}}
@media(min-width:761px) and (max-width:1100px){.forest-welcome .botanical-cast,.hero.subject-welcome .botanical-cast{height:400px}.botanical-name{font-size:14px;padding:5px 10px}.botanical-greeting{left:2%;right:2%;font-size:14px}}
@media(max-width:760px){.forest-welcome,.hero.subject-welcome{display:grid;grid-template-columns:1fr;align-items:stretch;min-height:0;gap:0}.botanical-cast,.forest-welcome .botanical-cast,.hero.subject-welcome .botanical-cast{height:350px;max-width:490px;width:100%;margin:26px auto 0}.botanical-lead{left:23%;width:54%;height:73%;bottom:25%}.botanical-left,.botanical-right{width:36%;height:58%;bottom:0}.botanical-left{left:-1%}.botanical-right{right:-1%}.botanical-name{font-size:14px;padding:5px 10px;gap:5px}.botanical-greeting{font-size:14px;top:-2px;left:0;right:0}}
@media(max-width:390px){.botanical-cast,.forest-welcome .botanical-cast,.hero.subject-welcome .botanical-cast{height:320px}.botanical-name{padding:4px 8px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.botanical-character{transition:none}.botanical-character:hover{transform:none}}

/* Wide silhouettes receive equal visual weight without stretching the artwork. */
.botanical-cast[data-subject="chinese"] .botanical-lead{left:14%;width:72%}
.botanical-cast[data-subject="chinese"] .botanical-left{width:35%}
.botanical-cast[data-subject="social"] .botanical-lead{left:16%;width:68%}
.botanical-cast[data-subject="social"] .botanical-right{width:36%}
@media(max-width:760px){.botanical-cast[data-subject="chinese"] .botanical-left{width:43%}.botanical-cast[data-subject="social"] .botanical-right{width:42%}}
