/* Interface colors belong to the shared UI. The world stage keeps its original
   --paper/--ink palette, viewport, materials and camera framing. */
.gw-world-page body{background:var(--gw-paper);color:var(--gw-ink);overflow-x:clip}
.gw-world-page .gw-masthead{position:relative;z-index:12;background:var(--gw-paper);color:var(--gw-ink)}
.gw-world-page main{padding:0;max-width:none;margin:0}
.gw-world-page .homepage-hero{position:relative;max-width:1440px;min-height:max(660px,calc(100svh - 88px));margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:24px;padding:72px var(--gw-gutter) 112px;color:var(--gw-ink)}
.home-hero-copy{position:relative;z-index:1;max-width:730px}
.home-hero-copy h1{font-size:clamp(46px,5.1vw,78px);font-weight:400;line-height:1.05;letter-spacing:-.055em;margin:0 0 28px;text-wrap:balance}
.home-hero-copy>p{max-width:43ch;margin:0;color:var(--gw-muted);font-size:clamp(18px,1.5vw,21px);line-height:1.65}
.home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px;margin-top:36px}
.home-actions a{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-height:50px;font-size:16px;font-weight:500;border-radius:4px}
.home-primary{background:var(--gw-action);color:var(--gw-action-text);padding:12px 20px}
.home-primary:hover{background:var(--gw-action-hover)}
.home-secondary{color:var(--gw-ink);padding:12px 0}
.home-secondary:hover{color:var(--gw-signal)}
.home-hero-art{min-width:0;display:grid;place-items:center}
.home-hero-art img{width:112%;max-width:none;height:auto;object-fit:contain}
.home-scene-link{position:absolute;left:var(--gw-gutter);bottom:38px;display:inline-flex;align-items:center;gap:20px;min-height:44px;color:var(--gw-muted);font-size:14px}
.home-scene-link:hover{color:var(--gw-signal)}
/* Housing-first entry points: the row-link pattern laid across the hero, so the
   searches students arrive with are one tap from the first screen. */
.homepage-hero>.home-hero-art{grid-column:2;grid-row:1}
.home-entry{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 24px;margin-top:8px}
.home-entry>a{display:grid;align-content:start;gap:6px;min-height:52px;padding:16px 0 4px;border-top:1px solid var(--gw-rule-strong);color:var(--gw-ink);text-decoration:none}
.home-entry-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:17px;font-weight:500;line-height:1.3;letter-spacing:-.01em}
.home-entry-title>span{flex:none;color:var(--gw-signal);font-weight:400}
.home-entry-note{color:var(--gw-muted);font-size:14px;line-height:1.45}
.home-entry>a:hover{border-top-color:var(--gw-signal)}
.home-entry>a:hover .home-entry-title{color:var(--gw-signal-text)}
.home-entry>a:focus-visible{outline:2px solid var(--gw-signal);outline-offset:4px}
.gw-world-page .experience{position:relative;pointer-events:auto;margin:0;background:var(--paper);color:var(--ink);isolation:isolate}
.gw-world-page .stage{position:sticky;top:0;height:100dvh;width:100%;overflow:hidden;background:var(--paper)}
.gw-world-page .masthead{position:absolute;background:none}
.gw-world-page .world-loading{position:absolute}
.gw-world-page .masthead::before{display:none}
.gw-world-page .experience:focus{outline:none}
.gw-world-page .homepage-tools,.gw-world-page .homepage-worlds{position:relative;max-width:1440px;padding:112px var(--gw-gutter);margin:0 auto;background:var(--gw-paper);color:var(--gw-ink)}
.home-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:56px}
.home-section-heading h2{font-size:clamp(32px,3.4vw,48px);font-weight:400;letter-spacing:-.045em;line-height:1.12;margin:0;max-width:19ch}
.home-section-heading>p{max-width:31ch;color:var(--gw-muted);font-size:18px;line-height:1.6;margin:0 0 3px}
/* One useful decision at a time; real section links remain the no-JS view. */
.home-task-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;border-bottom:1px solid var(--gw-rule)}
.home-task-tabs>a{display:flex;align-items:center;gap:14px;min-height:64px;padding:16px 0;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--gw-muted);font-size:17px;line-height:1.4}
.home-task-tabs>a>span{font-size:12px;color:var(--gw-muted)}
.home-task-tabs>a:hover{color:var(--gw-ink)}
.home-task-tabs>a[aria-selected=true]{border-bottom-color:var(--gw-signal);color:var(--gw-ink)}
.home-task-tabs>a[aria-selected=true]>span{color:var(--gw-signal)}
.home-task-tabs>a:focus-visible{outline:2px solid var(--gw-signal);outline-offset:5px}
.home-task-panel{display:grid;grid-template-columns:1.05fr 1fr;column-gap:64px;align-items:center;min-height:530px;padding-top:48px;scroll-margin-top:32px}
.home-task-panel[hidden]{display:none}
.home-task-copy{max-width:560px;padding:24px 0}
.home-task-copy h3{font-size:clamp(32px,3.1vw,46px);line-height:1.14;letter-spacing:-.04em;font-weight:400;margin:0 0 24px;max-width:18ch;text-wrap:balance}
.home-task-copy>p{font-size:19px;line-height:1.65;color:var(--gw-muted);max-width:40ch;margin:0 0 30px}
.home-task-copy>.home-primary{display:inline-flex;justify-content:space-between;gap:36px;align-items:center;min-height:50px;font-size:16px;font-weight:500;border-radius:var(--gw-radius);padding:12px 20px}
.home-task-art{margin:0;min-width:0;display:block;height:320px}
.home-task-art img{width:100%;height:100%;object-fit:contain}
.home-task-links{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin-top:40px}
.home-task-links>a{display:block;min-width:0;border-top:1px solid var(--gw-rule);padding:24px 0 8px}
.home-task-links>a>span{display:flex;justify-content:space-between;gap:16px;font-size:17px;line-height:1.4}
.home-task-links>a>span>span{color:var(--gw-signal)}
.home-task-links p{margin:12px 0 0;color:var(--gw-muted);font-size:15px;line-height:1.65;max-width:32ch}
.home-task-links>a:hover>span{color:var(--gw-signal)}
.home-tasks:not([data-task-ready]) .home-task-panel+.home-task-panel{margin-top:56px;border-top:1px solid var(--gw-rule)}
.gw-world-page .homepage-worlds{padding-top:48px;scroll-margin-top:32px}
.home-world-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px}
.home-world-list>a{min-width:0;display:grid;gap:24px;padding-bottom:16px;border-bottom:1px solid var(--gw-rule)}
.home-world-list img{width:100%;height:auto;aspect-ratio:1.2;object-fit:contain}
.home-world-list>a>span{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:17px;min-height:44px}
.home-world-list>a>span>span{color:var(--gw-signal)}
.home-world-list>a:hover{color:var(--gw-signal)}
.homepage-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1440px;margin:0 auto;padding:36px var(--gw-gutter) 48px;color:var(--gw-muted);font-size:14px}
.homepage-footer>a{font-size:18px;color:var(--gw-ink);font-weight:500}
.homepage-footer p{margin:0}
.homepage-footer nav{display:flex;gap:24px;flex-wrap:wrap}
.homepage-footer a{min-height:44px;display:inline-flex;align-items:center}
/* Restyled UI chrome without changing the authored canvas palette. */
.gw-world-page .world-atlas{--paper:var(--gw-paper);--ink:var(--gw-ink);--orange:var(--gw-signal);--muted:var(--gw-muted);overflow-y:auto}
.gw-world-page .atlas-content{padding:24px var(--gw-gutter) 40px;max-width:1600px}
.gw-world-page .atlas-header h2{font-size:clamp(26px,3vw,42px);font-weight:400;letter-spacing:-.04em}
.gw-world-page .plate-name{font-size:20px;font-weight:400;letter-spacing:-.03em}
.gw-world-page .atlas-footer{gap:32px}
.gw-world-page .playback-dock{background:var(--gw-paper-raised);color:var(--gw-ink);border:1px solid var(--gw-rule);border-radius:5px;backdrop-filter:none;padding:4px 8px}
.gw-world-page .guide-toggle{color:var(--gw-signal)}
.gw-world-page .world-menu-toggle{border-radius:4px;gap:10px;padding:0 12px;background:var(--gw-paper-raised);color:var(--gw-ink);border:1px solid var(--gw-rule)}
.gw-world-page .scene-tools{gap:10px}
.gw-world-page:not([data-world='city']) .home-only{display:none}
.gw-world-page.is-plate .gw-masthead,.gw-world-page.is-plate .homepage-hero,.gw-world-page.is-plate .homepage-tools,.gw-world-page.is-plate .homepage-worlds,.gw-world-page.is-plate .homepage-footer{display:none}
@media(max-width:900px){
  .gw-world-page .homepage-hero{min-height:590px;gap:0;grid-template-columns:1.15fr 1fr;padding-top:56px;padding-bottom:104px}
  .home-hero-copy h1{font-size:clamp(44px,6vw,62px)}
  .home-hero-art img{width:125%}
  .home-entry{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:32px}
  .home-task-panel{column-gap:32px}
  .home-task-tabs{gap:16px}
  .home-task-tabs>a{gap:10px;font-size:15px}
  .home-task-links{gap:24px}
  .home-world-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
  .home-section-heading{align-items:start;flex-direction:column;gap:24px}
  .homepage-footer{flex-wrap:wrap}
}
@media(max-width:600px){
  .gw-world-page .homepage-hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;gap:22px;padding:40px var(--gw-gutter) 90px}
  .home-hero-copy h1{font-size:clamp(36px,9.7vw,56px);line-height:1.06;margin-bottom:22px}
  .home-hero-copy>p{font-size:18px;line-height:1.6}
  .home-actions{gap:12px 22px;margin-top:28px}
  .home-actions a{font-size:15px;gap:14px;min-height:48px}
  .home-hero-art{height:240px;margin-top:6px}
  .home-hero-art img{width:100%;height:100%;object-fit:contain}
  .home-scene-link{bottom:22px;font-size:13px}
  .home-entry{display:block;margin-top:4px;border-bottom:1px solid var(--gw-rule)}
  .home-entry>a{display:flex;align-items:center;min-height:52px;padding:4px 0;border-top-color:var(--gw-rule)}
  .home-entry>a:first-child{border-top-color:var(--gw-rule-strong)}
  .home-entry-title{flex:1;align-items:center;font-size:17px}
  .home-entry-note{display:none}
  .gw-world-page .homepage-tools,.gw-world-page .homepage-worlds{padding:72px var(--gw-gutter)}
  .home-section-heading{margin-bottom:32px}
  .home-section-heading>p{font-size:17px}
  .home-task-tabs{grid-template-columns:1fr 1fr;gap:0 20px}
  .home-task-tabs>a{min-height:58px;font-size:15px;margin-bottom:0;padding:14px 0}
  .home-task-tabs>a>span{font-size:11px}
  .home-task-panel{grid-template-columns:1fr;gap:24px;min-height:0;padding-top:32px}
  .home-task-copy{padding:0}
  .home-task-copy h3{font-size:34px;margin-bottom:20px}
  .home-task-copy>p{font-size:18px;margin-bottom:26px}
  .home-task-art{height:200px;margin-top:4px;grid-row:3}.home-task-links{grid-row:2}
  .home-task-links{grid-template-columns:1fr;gap:0;margin-top:0}
  .home-task-links>a{padding:20px 0}
  .home-task-links p{margin-top:8px;max-width:36ch}
  .home-world-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}
  .home-world-list>a{gap:6px}
  .home-world-list>a>span{font-size:15px}
  .homepage-footer{align-items:start;flex-direction:column;gap:8px;padding-bottom:32px}
  .homepage-footer nav{gap:8px 24px}
  .gw-world-page .plate-name{font-size:18px}
  .gw-world-page .atlas-footer{flex-direction:column;align-items:stretch;gap:24px}
  .gw-world-page .scene-tools{gap:2px}
  .gw-world-page .world-menu-toggle{padding-inline:9px}
  .gw-world-page .playback-dock{bottom:calc(18px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:no-preference){.home-world-list img{transition:transform .4s ease}.home-world-list>a:hover img{transform:translateY(-5px)}}

/* First viewport stays static; loading and activity belong to the scene. */
.gw-world-page .world-load-button{display:none}
.gw-world-page.scene-dormant .world-load-button{display:flex;position:absolute;z-index:6;bottom:32px;left:50%;transform:translateX(-50%);align-items:center;gap:20px;min-height:48px;padding:12px 22px;background:var(--gw-action);color:var(--gw-action-text);border-radius:var(--gw-radius);font-size:15px}
.gw-world-page.scene-dormant .city-fallback{opacity:1}
.gw-world-page.scene-dormant .scene-tools{visibility:hidden}
@media(max-width:1180px) and (min-width:601px){.gw-world-page .homepage-hero{min-height:calc(100svh - 80px)}}
@media(max-width:600px){.gw-world-page .homepage-hero{min-height:calc(100svh - 76px)}}

.gw-world-page .homepage-figures{max-width:1440px;padding:48px var(--gw-gutter) 80px;margin:auto;color:var(--gw-ink);background:var(--gw-paper)}
.home-figure-pair{display:grid;grid-template-columns:1fr 1fr;gap:48px}.home-figure-pair a{min-width:0}.home-figure-pair img{display:block;width:100%;height:340px;object-fit:contain}.home-figure-pair a>span{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--gw-rule);padding:16px 0;font-size:22px;letter-spacing:-.025em}.home-figure-pair a>span>span{color:var(--gw-signal)}.home-building-link{display:inline-flex;gap:32px;min-height:48px;align-items:center;margin-top:28px;font-size:15px}
.gw-world-page:not([data-world="city"]) .homepage-figures,.gw-world-page.is-plate .homepage-figures{display:none}
@media(max-width:700px){.gw-world-page .homepage-figures{padding:32px var(--gw-gutter) 48px}.home-figure-pair{grid-template-columns:1fr;gap:24px}.home-figure-pair img{height:280px}.home-figure-pair a>span{font-size:21px}}

/* Original world posters sit on a consistent, intentional art field. */
.home-world-list img{background:var(--gw-paper);border-radius:var(--gw-radius)}.home-collection-link{display:block;min-height:36px;font-size:15px;color:var(--gw-ink);padding-top:8px}
/* Closest to the Tower (scripts/lib/home-places.mjs): the miniature is the index. */
.gw-world-page .home-places{position:relative;max-width:1440px;margin:0 auto;padding:var(--gw-space-8) var(--gw-gutter) 0;background:var(--gw-paper);color:var(--gw-ink)}
.home-places .gw-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-places .gw-card-title:hover{color:var(--gw-signal-text)}
.gw-world-page .home-places + .homepage-tools{padding-top:var(--gw-space-9)}
@media(max-width:900px){.home-places .gw-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .gw-world-page .home-places{padding-top:var(--gw-space-7)}
  .home-places .gw-cards{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:80%;gap:var(--gw-space-4);overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(var(--gw-gutter) * -1);padding-inline:var(--gw-gutter);scroll-padding-inline:var(--gw-gutter);scrollbar-width:none}
  .home-places .gw-cards::-webkit-scrollbar{display:none}
  .home-places .gw-card{scroll-snap-align:start}
}

/* The shared dark footer band replaces the old home footer; plate mode still hides it. */
.gw-world-page.is-plate footer.gw-site-footer{display:none}
.gw-world-page footer.gw-site-footer{margin-top:0}
