/* Static illustration, without an independent scroll container. */
.hero{overflow:clip;background:linear-gradient(115deg,#fff7fa 0%,#fff0f5 58%,#ffe6e0 100%);background-attachment:scroll}
.hero::before{display:none}
.hero-art{overflow:visible;animation:none;transform:none;pointer-events:none}
.hero-mascot{right:max(3vw,24px);top:35px;width:min(39vw,540px);height:515px;object-fit:contain;opacity:1;transform:none;filter:drop-shadow(0 18px 23px #a4315420);animation:none;transition:none}
.is-home .section-head .archive-button{margin:0;flex:none;white-space:nowrap}
.is-home .section-head>div>p{margin-top:14px;max-width:620px}
.dark-band .section-head{max-width:1240px;margin:0 auto 30px;align-items:center}
.category-hero-row{display:flex;align-items:center;justify-content:space-between;gap:42px;max-width:1240px;margin:auto}
.category-hero-row>div{min-width:0;flex:1}
.category-hero-row h1{max-width:850px}
.category-browse{flex:0 0 auto;max-width:330px;text-align:center;margin:0;line-height:1.55;padding:19px 25px;background:#fff;color:#c51656;border:1px solid #f3bed2;box-shadow:0 10px 24px #c4255810}
.category-browse:hover{border-color:#e91663;box-shadow:0 12px 28px #c4255820}
.category-more{display:flex;justify-content:center;margin-top:32px}
.category-more-button{margin:0;padding:18px 34px;font-size:16px;line-height:1.45;background:#e91663;box-shadow:0 10px 26px #e9166330;text-align:center}
.category-explainer-grid{row-gap:34px}
.nav-dropdown::after{content:'';position:absolute;left:0;right:0;top:100%;height:14px}
.nav-panel{overscroll-behavior:contain}
.guide-table-scroll{max-width:100%;overflow-x:auto;margin:22px 0 12px;border:1px solid #eadfe5;border-radius:12px}
.guide-reference-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.65;text-align:left}
.guide-reference-table caption{padding:13px 16px;text-align:left;font-weight:800;color:var(--ink);background:#fff5f9}
.guide-reference-table th,.guide-reference-table td{padding:13px 16px;vertical-align:top;min-width:140px;border-top:1px solid #eadfe5}
.guide-reference-table th{background:#faf7f9;font-weight:700;color:var(--ink)}
.guide-reference-table td{color:#53617b}
.guide-checklist{margin:18px 0 10px;padding:18px 22px 18px 40px;border:1px solid #eadfe5;border-radius:12px;background:#fff9fb;color:#53617b;font-size:15px;line-height:1.8}
.guide-checklist li+li{margin-top:8px}
.guide-checklist li::marker{color:#d91660}
@media(max-width:1100px){.hero-mascot{right:0;top:65px;width:40vw;height:455px}.category-hero-row{gap:25px}.category-browse{max-width:270px}}
@media(max-width:900px){.hero-mascot{right:-3%;top:80px;width:43vw;height:430px;opacity:.5}.category-hero-row{align-items:flex-start;flex-direction:column;gap:18px}.category-browse{max-width:none}.is-home .section-head{flex-direction:row;align-items:center}.is-home .section-head>div>p{max-width:450px}}
@media(max-width:620px){
 .guide-reference-table{table-layout:fixed}
 .guide-reference-table th,.guide-reference-table td{min-width:0;padding:11px 9px;overflow-wrap:break-word;hyphens:auto}
 .hero{display:flex;flex-direction:column;min-height:0}
 .hero-inner{order:0;width:100%;padding:28px 20px 12px}
 .hero-art{position:relative;inset:auto;order:1;height:285px;width:100%;opacity:1}
 .hero-mascot{right:50%;top:0;width:310px;height:280px;max-width:95%;opacity:1;transform:translateX(50%)}
 .hero p{max-width:100%;font-size:13px;line-height:1.55}
 .hero h1{max-width:100%;font-size:32px;line-height:1.1}
 .hero-links{gap:8px 16px}
 .is-home .section-head{align-items:center;gap:12px}
 .is-home .section-head h2{font-size:29px}
 .is-home .section-head .archive-button{padding:10px 12px;font-size:11px;gap:5px;white-space:normal;text-align:center;max-width:148px}
 .is-home .section-head>div>p{font-size:12px}
 .category-browse{width:100%;max-width:340px;padding:15px 20px}
 .category-more-button{font-size:15px;padding:16px 28px}
 .category-explainer-grid{row-gap:25px}
}

/* Phone-only navigation and first-screen proportions. Desktop rules stay intact. */
@media(max-width:620px){
 .header.mobile-nav-ready{grid-template-columns:minmax(0,1fr) 44px;min-height:58px;height:auto;padding:7px 16px;gap:0 10px}
 .header.mobile-nav-ready .logo{grid-column:1;grid-row:1}
 .mobile-menu-toggle{grid-column:2;grid-row:1;width:44px;height:44px;padding:11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer}
 .mobile-menu-toggle span{width:20px;height:2px;border-radius:2px;background:currentColor;transition:transform .16s,opacity .16s}
 .mobile-menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(7px) rotate(45deg)}
 .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
 .mobile-menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-7px) rotate(-45deg)}
 .mobile-menu-toggle:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
 .header.mobile-nav-ready .main-nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;max-height:calc(100vh - 140px);max-height:calc(100svh - 140px);overflow-y:auto;overscroll-behavior:contain;flex-direction:column;align-items:stretch;gap:2px;padding:10px 16px 16px;margin:0;border-bottom:1px solid var(--line);border-radius:0 0 16px 16px;background:#fff;box-shadow:0 14px 24px #251a2514}
 .header.mobile-nav-ready.is-mobile-menu-open .main-nav{display:flex}
 .header.mobile-nav-ready .nav-dropdown{width:100%}
 .header.mobile-nav-ready .nav-dropdown::after{display:none}
 .header.mobile-nav-ready .nav-dropdown summary{min-height:46px;justify-content:space-between;padding:12px 4px;font-size:15px}
 .header.mobile-nav-ready .nav-panel{position:static;left:auto;right:auto;top:auto;transform:none;width:100%;max-height:none;overflow:visible;padding:4px 8px;margin:0 0 8px;border:0;border-radius:10px;background:#fff7fa;box-shadow:none}
 .header.mobile-nav-ready .nav-panel a{min-height:44px;display:flex;align-items:center;font-size:14px}
 .header.mobile-nav-ready .main-nav .header-link{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:12px 14px;margin-top:8px;font-size:14px}
 .header.mobile-nav-ready .header-search{grid-column:1/-1;grid-row:2;margin:5px 0 1px}
 .header.mobile-nav-ready .header-search input,.hero-search input{font-size:16px}
 .hero-inner{padding:22px 18px 6px}
 .hero h1{max-width:100%;font-size:clamp(27px,7.5vw,32px);line-height:1.08;margin:0 0 10px}
 .hero p{font-size:14px;line-height:1.4;margin:0 0 14px}
 .hero-links{gap:6px 14px;margin-top:9px}
 .hero-links a{display:inline-flex;align-items:center;min-height:34px;padding:5px 0;font-size:12px}
 .hero-art{height:clamp(92px,calc(100vh - 510px),220px);height:clamp(92px,calc(100svh - 510px),220px)}
 .hero-mascot{top:0;right:50%;width:260px;max-width:90%;height:100%;object-fit:contain;transform:translateX(50%)}
 .intro{padding:18px 18px 22px}
 .intro .section-head{gap:10px;margin-bottom:10px}
 .intro .section-head h2{font-size:27px}
}
@media(max-width:360px){
 .hero-inner{padding:16px 16px 4px}
 .hero h1{font-size:26px}
 .hero p{font-size:13px;line-height:1.4;margin-bottom:12px}
 .hero-links{gap:4px 10px;margin-top:7px}
 .hero-links a{font-size:11.5px}
 .hero-art{height:clamp(72px,calc(100vh - 480px),155px);height:clamp(72px,calc(100svh - 480px),155px)}
 .intro{padding:16px 16px 20px}
}
@media(max-width:360px) and (max-height:600px){
 .hero-inner{padding-top:12px}
 .hero-art{height:84px}
 .intro{padding-top:12px}
}
