/* Shared accessible foundation; each brand has its own visual system below. */
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,input,select{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}.shell{max-width:1200px;margin:auto;padding:0 28px}.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;background:#fff;padding:8px;z-index:20}.topbar{position:relative;z-index:5;background:var(--surface);border-bottom:1px solid var(--border)}.topbar .shell{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:82px}.logo{font-weight:900;font-size:1.38rem;letter-spacing:-.045em;display:flex;align-items:center;gap:11px}.logo-mark{width:39px;height:39px;background:var(--accent);color:white;display:grid;place-items:center;border-radius:12px;font-weight:900}.nav{display:flex;flex-wrap:wrap;gap:22px;font-size:.9rem;font-weight:700}.nav a{padding:8px 0}.nav a[aria-current=page]{color:var(--accent);border-bottom:2px solid var(--accent)}h1,h2,h3{line-height:1.08;margin:0 0 18px}h1{font-size:clamp(2.8rem,6vw,5.8rem);letter-spacing:-.065em}h2{font-size:clamp(2rem,3.4vw,3.3rem);letter-spacing:-.045em}h3{font-size:1.15rem}.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:.72rem;font-weight:900;color:var(--accent);margin:0 0 16px}.lead{font-size:1.13rem;color:var(--muted);max-width:620px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:999px;background:var(--accent);color:white;font-weight:800;border:1px solid var(--accent);box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 18%,transparent)}.btn:hover{background:var(--ink);color:white}.btn.ghost{background:transparent;color:var(--ink);border-color:var(--border);box-shadow:none}.hero{padding:74px 0 66px;position:relative;overflow:hidden}.hero .shell{display:grid;grid-template-columns:1.03fr .97fr;gap:48px;align-items:center}.hero-art{margin:0;min-height:410px;position:relative;overflow:hidden;border-radius:var(--radius);background:var(--artbg);box-shadow:var(--shadow)}.hero-art img{width:100%;height:100%;min-height:410px;object-fit:cover;position:absolute;inset:0}.hero-art:after{content:'';position:absolute;inset:16px;border:1px solid var(--artline);border-radius:calc(var(--radius) - 8px);pointer-events:none}.hero .btn{margin-top:12px}section{padding:58px 0}.section-top{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.section-top p{max-width:480px;color:var(--muted);margin:0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .22s,box-shadow .22s}.card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.cover{height:175px;display:grid;place-items:center;background:var(--coverbg);font-size:4.2rem;position:relative;overflow:hidden}.cover:after{content:'';position:absolute;inset:13px;border:1px solid var(--artline);border-radius:calc(var(--radius) - 5px);opacity:.7}.card-body{padding:19px}.meta{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-weight:850}.card h3{margin:8px 0}.card p{color:var(--muted);font-size:.91rem}.tag{display:inline-block;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--ink);padding:7px 12px;border-radius:99px;font-size:.82rem;font-weight:700;margin:0 7px 7px 0}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:30px}.article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.article-card{padding:26px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.article-card p{color:var(--muted)}.searchbar{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 30px}.searchbar input,.searchbar select{border:1px solid var(--border);border-radius:13px;padding:13px 16px;background:var(--surface);color:var(--ink)}.searchbar input{flex:1;min-width:210px}.searchbar select{min-width:185px}.pagehead{padding:62px 0 20px}.pagehead h1{font-size:clamp(2.5rem,5vw,4.4rem)}.prose{max-width:780px;font-size:1.06rem}.prose p{margin:0 0 20px}.prose h2{font-size:2rem;margin-top:36px}.detail{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:start}.detail .cover{height:370px;border-radius:var(--radius)}.detail dl{display:grid;grid-template-columns:140px 1fr;gap:10px;border-top:1px solid var(--border);padding-top:20px}.detail dt{color:var(--muted)}.detail dd{margin:0}.faq details{border-bottom:1px solid var(--border);padding:17px 0}.faq summary{font-weight:800;cursor:pointer}.faq p{color:var(--muted)}.footer{background:var(--footer);color:var(--footerink);margin-top:62px;padding:46px 0}.footer a{color:var(--footerink)}.footer a:hover{color:var(--accent2)}.footer-inner{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.footer nav{display:flex;gap:14px;flex-wrap:wrap;max-width:650px;font-size:.85rem}.footer small{opacity:.72}.note{border-left:4px solid var(--accent);padding:14px 18px;background:var(--surface);color:var(--muted)}

body.future{--bg:#061a2a;--ink:#e9fbff;--muted:#a5c5d2;--surface:#0c2a40;--border:#1b5268;--accent:#19d4e7;--accent2:#8bfff1;--footer:#03111d;--footerink:#e9fbff;--font:Arial,sans-serif;--radius:12px;--artbg:#08283c;--artline:#27e6ef;--coverbg:linear-gradient(145deg,#0d5671,#09243a);--shadow:0 0 38px #11d4e633}body.future{background-image:linear-gradient(90deg,#20d9ec0b 1px,transparent 1px),linear-gradient(#20d9ec0b 1px,transparent 1px);background-size:46px 46px}body.future .topbar{background:#041522;border-bottom:1px solid #1b5268}body.future .logo-mark{background:transparent;border:1px solid var(--accent);color:var(--accent);border-radius:8px;box-shadow:0 0 18px #19d4e766}body.future .hero{padding:82px 0;background:radial-gradient(ellipse at 78% 45%,#0b4960 0,transparent 48%)}body.future .hero .shell{grid-template-columns:1fr 1fr;gap:45px}body.future h1{font-weight:800}body.future .hero-art{border:1px solid var(--accent);box-shadow:0 0 40px #19d4e633,inset 0 0 40px #19d4e622}body.future .btn{background:#13c5d8;color:#031b29;border-color:#13c5d8;border-radius:7px}body.future .card{background:#0a2639;border:1px solid #1b6276}body.future .cover{border-bottom:1px solid var(--accent)}body.future .footer{border-top:1px solid var(--accent)}
/* Responsive behaviour */
@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero .shell{grid-template-columns:1fr;gap:30px}.hero-art,.hero-art img{min-height:300px}.nav{gap:12px}.detail{grid-template-columns:1fr}}
@media(max-width:620px){.shell{padding:0 17px}.topbar .shell{padding:15px 17px;align-items:flex-start;flex-direction:column}.nav{font-size:.8rem;gap:8px 13px}.hero{padding:44px 0}.hero-art,.hero-art img{min-height:245px}.grid,.article-grid{grid-template-columns:1fr}.section-top{display:block}.detail .cover{height:245px}section{padding:38px 0}.panel{padding:21px}h1{font-size:2.7rem}.footer-inner{display:block}.footer nav{margin-top:20px}}

.tech-specs{max-width:1140px;margin:-10px auto 12px;padding:20px 24px;border:1px solid #1b8292;background:#082337;display:flex;justify-content:space-around;gap:16px;color:#72f6f1;font-size:.76rem;font-weight:800;letter-spacing:.12em}


/* Locally bundled editorial artwork */
.hero-art { min-height: 410px; }
.hero-art img { width:100%; height:100%; min-height:410px; object-fit:cover; object-position:center; }
.cover { height:180px; padding:0; overflow:hidden; }
.cover img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.card:hover .cover img { transform:scale(1.045); }
.article-card { overflow:hidden; }
.article-thumb { width:100%; height:170px; object-fit:cover; display:block; margin-bottom:18px; }
@media(max-width:720px) { .hero-art,.hero-art img { min-height:270px; } .cover {height:155px;} }

/* ===== Layout & polish fixes (v2) ===== */
html{-webkit-text-size-adjust:100%}
body{min-height:100vh;display:flex;flex-direction:column;overflow-x:clip}
main{flex:1 0 auto}
.footer{flex-shrink:0}
img{height:auto}
.section-top p:empty{display:none}
.tag-list{display:flex;flex-wrap:wrap;gap:9px}
.tag-list .tag{margin:0}
.card{display:flex;flex-direction:column}
.card-body{display:flex;flex-direction:column;flex:1}
.card-body>.tag:last-child{margin-top:auto;align-self:flex-start}
.card p{margin:0 0 14px}
.cover:after{z-index:1}
.cover img{position:relative}
.article-card{display:flex;flex-direction:column}
.article-card>.tag:last-child{margin-top:auto;align-self:flex-start}
.article-thumb{border-radius:calc(var(--radius) * .6)}
.detail .cover{height:auto!important;aspect-ratio:8/5}
.detail .cover img{height:100%}
/* prose column aligned with the page heading instead of floating in the middle */
.shell.prose{max-width:1200px}
.shell.prose>*{max-width:760px}
/* strips under the hero: no overlap, wrap nicely */
.realm-ribbon,.editorial-strip,.signal-bar,.pixel-marquee,.tech-specs,.quick-search,.party-tags,.learning-path,.challenge-banner,.mood-pills{
  position:relative;z-index:2;box-sizing:border-box;width:calc(100% - 56px);max-width:1144px;margin:28px auto 8px!important;flex-wrap:wrap}
.editorial-strip{justify-content:space-around}
.hero-art img{max-width:none}

@media(max-width:900px){
  html body[class] .hero .shell{grid-template-columns:1fr;gap:30px}
  html body[class] .hero-art{width:100%;min-height:0;aspect-ratio:16/10;transform:none}
  html body[class] .hero-art img{min-height:0;height:100%}
  .detail{grid-template-columns:1fr}
}
@media(max-width:620px){
  html body[class] .topbar .shell{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 17px;min-height:0}
  html body[class] .nav{width:100%;flex-wrap:nowrap;overflow-x:auto;gap:20px;padding:2px 0 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body[class] .nav::-webkit-scrollbar{display:none}
  html body[class] .nav a{white-space:nowrap;flex:0 0 auto}
  html body[class] .hero{padding:34px 0 30px}
  html body[class] h1{font-size:clamp(2.1rem,9.5vw,2.7rem);letter-spacing:-.04em}
  html body[class] h2{font-size:clamp(1.6rem,7vw,2rem)}
  html body[class] .hero-art{aspect-ratio:4/3}
  .realm-ribbon,.editorial-strip,.signal-bar,.pixel-marquee,.tech-specs,.quick-search,.party-tags,.learning-path,.challenge-banner,.mood-pills{
    width:calc(100% - 34px);justify-content:center;gap:8px 16px;padding:12px 14px;text-align:center}
  .pixel-marquee span{padding:8px 10px;border-right:0}
  .challenge-banner{flex-direction:column;align-items:flex-start;text-align:left}
  .challenge-banner b{margin-left:0}
  .quick-search b{margin-left:0}
  html body[class] .grid,html body[class] .article-grid{grid-template-columns:1fr}
  .detail dl{grid-template-columns:110px 1fr}
  .searchbar select,.searchbar input{width:100%;min-width:0}
}

.page-image{width:100%;height:clamp(200px,32vw,380px);object-fit:cover;border-radius:var(--radius);margin:0 0 28px;border:1px solid var(--border)}
.pagehead.shell{padding:56px 28px 8px}
@media(max-width:620px){.pagehead.shell{padding:36px 17px 4px}}
