/* V17 R32 text-only architecture; official CI assets intentionally not embedded */
:root{color-scheme:light;--ink:#172e36;--accent:#1e6c71;--bg:#f6f8f6;--line:#d7e3df}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,"Noto Sans TC",sans-serif;line-height:1.65}a{color:inherit}a:focus-visible{outline:3px solid #d46e2b;outline-offset:4px}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;background:white;padding:.5rem;z-index:5}.shell{width:min(1100px,calc(100% - 2rem));margin:auto}.mast{background:white;border-bottom:1px solid var(--line)}.mast .shell{display:flex;gap:1.25rem;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:1rem 0}.brand{font-weight:800;font-size:1.2rem;text-decoration:none}.nav{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem}.nav a{text-underline-offset:.3em}.hero{padding:3.5rem 0 2rem}.hero h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.2;margin:.3rem 0}.eyebrow{font-size:.85rem;letter-spacing:.06em;color:var(--accent);font-weight:700}.intro{max-width:65ch}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:1rem;margin:1.5rem 0 3rem}.tile{display:block;background:white;border:1px solid var(--line);border-radius:1rem;padding:1.4rem;text-decoration:none;min-height:130px}.tile:hover{border-color:var(--accent);box-shadow:0 5px 20px #193c3614}.tile h2,.tile h3{margin:0 0 .3rem;font-size:1.25rem}.crumbs{padding-top:1.2rem;font-size:.9rem}.crumbs a{text-underline-offset:.2em}.note{border-left:4px solid var(--accent);background:#eaf2ef;padding:1rem 1.2rem;margin:1rem 0 2rem}.foot{border-top:1px solid var(--line);padding:1.5rem 0;color:#49646b}.section-title{margin-top:2rem}button{font:inherit}@media(max-width:550px){.hero{padding:2rem 0 1rem}.mast .shell{align-items:flex-start}.nav{gap:.5rem 1rem}}

/* R42 shared admin navigation and read-only seven-hall settings page. */
.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem max(1rem,calc((100% - 1100px)/2));background:#fff;border-bottom:1px solid var(--line)}
.top>a{font-weight:800;text-decoration:none}.top nav{display:flex;gap:.75rem;flex-wrap:wrap}
.wrap{width:min(1100px,calc(100% - 2rem));margin:2rem auto 3rem}
.wrap section{background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1.25rem;margin:1.25rem 0}
.wrap li{margin:.45rem 0}.wrap select{font:inherit;max-width:100%;padding:.55rem .75rem;border:1px solid var(--line);border-radius:.5rem;background:#fff;color:var(--ink)}

/* R43 UX correction — shared brand, gold nav, hall glyphs. No logo artwork is replaced here. */
.wx-shared-mast{background:linear-gradient(110deg,#fffaf0 0%,#fff 65%,#f5f1e5 100%);border-bottom:3px solid #c29a49;box-shadow:0 6px 22px #503c2112}
.wx-shared-mast>.shell{width:min(1450px,calc(100% - 2rem));padding:.85rem 0;gap:1.1rem}
.wx-shared-brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;flex-shrink:0}
.wx-shared-brand-logo{display:block;width:clamp(128px,12vw,190px);height:auto;object-fit:contain}
.wx-brand-wordmark{font-weight:900;color:#174c50;font-size:clamp(1.5rem,2.4vw,2.45rem);letter-spacing:.03em;white-space:nowrap;text-shadow:0 1px #fff}
.wx-pill-nav{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.wx-nav-gold{display:inline-flex;align-items:center;justify-content:center;gap:.43rem;padding:.6rem .82rem;text-decoration:none;border:2px solid #be9341;border-radius:14px;min-height:46px;box-shadow:0 2px 0 #b68c40,0 5px 12px #70512218;background:linear-gradient(170deg,#fff9ec 0%,#f5dfab 100%);color:#304d4d;font-weight:800;font-size:.94rem;transition:transform .16s ease,box-shadow .16s ease}
.wx-nav-gold:hover{transform:translateY(-2px);box-shadow:0 4px 0 #b68c40,0 8px 15px #70512225}
.wx-nav-gold[aria-current=page]{background:linear-gradient(170deg,#f0cd80,#fff2cf)}
.wx-nav-icon{display:block;width:24px;height:24px;object-fit:contain}
.wx-home-title{font-size:clamp(2.9rem,6vw,5rem)!important;letter-spacing:.065em;text-shadow:0 2px 3px #fffbf2}
.wx-seven-halls{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.wx-hall-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.6rem;padding:1.2rem;border:2px solid #cca456;background:linear-gradient(160deg,#fffef8 0%,#f9efda 100%);box-shadow:0 8px 25px #4d39281a;min-width:0}
.wx-hall-card:hover{border-color:#9d7431;transform:translateY(-3px)}
.wx-hall-icon{width:68px;height:68px;object-fit:contain;border-radius:20px;filter:drop-shadow(0 3px 5px #3332)}
.wx-hall-card-art{width:100%;max-height:158px;aspect-ratio:16/9;object-fit:cover;border-radius:12px;border:1px solid #d4ba81}
.wx-hall-card h3{font-size:clamp(1.25rem,1.8vw,1.7rem);font-weight:900;color:#514323;margin:0}
.wx-hall-card p{margin:0;color:#66716e;font-weight:650}
@media (min-width:800px){
  .wx-seven-halls{grid-template-columns:repeat(6,minmax(0,1fr))}
  .wx-seven-halls>.wx-hall-card{grid-column:span 2}
  .wx-seven-halls>.wx-hall-card:nth-child(n+4){grid-column:span 3}
}
.wx-footer-inner{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;justify-content:space-between}
.wx-footer-brand img{width:clamp(190px,24vw,290px);height:auto;display:block}
.wx-footer-slogan{font-weight:800;font-size:1.08rem;color:#315b55;margin:0}
.wx-footer-faq{text-decoration:underline;text-underline-offset:.25em}
@media(max-width:1100px){.wx-shared-mast>.shell{justify-content:center}.wx-pill-nav{justify-content:center}.wx-nav-gold{font-size:.89rem;padding:.52rem .7rem}.wx-shared-brand-logo{width:155px}}
@media(max-width:799px){.wx-seven-halls{grid-template-columns:repeat(2,minmax(0,1fr))}.wx-hall-kids-game,.wx-hall-family-game{grid-column:auto;grid-row:auto}}
@media(max-width:520px){.wx-seven-halls{grid-template-columns:1fr}.wx-shared-brand{width:100%;justify-content:center}.wx-brand-wordmark{font-size:1.56rem}.wx-pill-nav{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.wx-nav-gold{font-size:.86rem}.wx-hall-card-art{max-height:220px}.wx-footer-inner{flex-direction:column;text-align:center}.wx-footer-slogan{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.wx-nav-gold{transition:none}.wx-hall-card:hover,.wx-nav-gold:hover{transform:none}}

/* R43 owner visual correction: show ONLY the canonical V02 graphic mark, at usable
   size. No second synthetic wordmark or new artwork is created by this rule. */
body:has(main#main .wx-home-title) .wx-shared-brand.wx-r02-brand{max-width:none;min-width:0;flex:0 1 auto}
body:has(main#main .wx-home-title) .wx-shared-brand .wx-shared-brand-logo{
  width:clamp(265px,27vw,395px);height:auto;max-height:none;object-fit:contain
}
body:has(main#main .wx-home-title) .wx-shared-mast>.shell{
  width:min(1480px,calc(100% - 2.25rem));gap:1.35rem;padding:1.05rem 0
}
body:has(main#main .wx-home-title) .wx-pill-nav{gap:.75rem}
body:has(main#main .wx-home-title) .wx-nav-gold{
  min-height:52px;padding:.73rem 1.05rem;border-width:2px;
  background:linear-gradient(155deg,#fffefa 0%,#fff0c9 55%,#efcf83 100%);
  box-shadow:inset 0 1px #fff,0 3px 0 #ae8234,0 6px 16px #73501b22;
  color:#3b3e31;font-size:1rem
}
body:has(main#main .wx-home-title) .wx-nav-icon{width:27px;height:27px}
@media(max-width:1100px){
  body:has(main#main .wx-home-title) .wx-shared-mast>.shell{justify-content:center}
  body:has(main#main .wx-home-title) .wx-shared-brand .wx-shared-brand-logo{width:clamp(240px,40vw,355px)}
}
@media(max-width:520px){
  body:has(main#main .wx-home-title) .wx-shared-mast>.shell{width:calc(100% - 1rem);gap:.65rem}
  body:has(main#main .wx-home-title) .wx-shared-brand .wx-shared-brand-logo{width:min(86vw,320px)}
  body:has(main#main .wx-home-title) .wx-nav-gold{min-height:50px;padding:.62rem .5rem;font-size:.9rem}
  body:has(main#main .wx-home-title) .wx-nav-icon{width:25px;height:25px}
}

/* R43 owner typography and seven-hall entrance finish, no asset replacement */
body:has(main#main .wx-home-title){
  font-family:"Noto Sans TC","Microsoft JhengHei","PingFang TC",system-ui,sans-serif;
}
body:has(main#main .wx-home-title) .wx-home-title{
  color:#704522;font-weight:900;letter-spacing:.04em;
  font-size:clamp(2.5rem,5.8vw,4.7rem)!important
}
body:has(main#main .wx-home-title) .wx-halls-title{
  color:#684b27;font-size:clamp(1.8rem,3.2vw,2.55rem);
  font-weight:900;letter-spacing:.04em
}
body:has(main#main .wx-home-title) .wx-hall-card{
  border:2px solid #c49a47;border-radius:20px;
  background:linear-gradient(150deg,#fffdf5 0%,#fff2d7 54%,#f8e3b1 100%);
  box-shadow:inset 0 1px #fff,0 6px 0 #c09a53,0 10px 25px #664c2421;
  padding:1.35rem 1.4rem 1.55rem;gap:.75rem
}
body:has(main#main .wx-home-title) .wx-hall-icon{
  width:72px;height:72px;padding:8px;
  border:2px solid #e7c885;border-radius:20px;
  background:linear-gradient(145deg,#fffefa,#f2dfb3)
}
body:has(main#main .wx-home-title) .wx-hall-card-art{
  max-height:185px;border:2px solid #dec186
}
body:has(main#main .wx-home-title) .wx-hall-card h3{
  font-size:clamp(1.38rem,2vw,1.82rem);letter-spacing:.05em
}
body:has(main#main .wx-home-title) .wx-footer-brand img{
  width:clamp(235px,28vw,345px)
}
@media(max-width:799px){
  .wx-seven-halls>.wx-hall-card{grid-column:auto}
}
@media(max-width:520px){
  body:has(main#main .wx-home-title) .wx-hall-card{padding:1.2rem}
  body:has(main#main .wx-home-title) .wx-hall-card-art{max-height:235px}
}

/* R43 visual correction applies to ALL eleven portal/city/hall pages.
   Graphic mark remains candidate pending approved-image provenance verification. */
.wx-shared-mast .wx-shared-brand.wx-r02-brand{
  max-width:none;min-width:0;flex:0 1 auto;
}
.wx-shared-mast .wx-shared-brand .wx-shared-brand-logo{
  display:block;width:clamp(245px,25vw,365px);max-width:none;
  height:auto;max-height:none;object-fit:contain;
}
.wx-shared-mast .wx-pill-nav{gap:.65rem}
.wx-shared-mast .wx-nav-gold{
  font-family:"Noto Sans TC","Microsoft JhengHei","PingFang TC",system-ui,sans-serif;
  min-height:50px;padding:.67rem .95rem;font-size:.97rem;letter-spacing:.01em
}
.wx-shared-mast .wx-nav-icon{width:26px;height:26px}
@media(max-width:1100px){
  .wx-shared-mast .wx-shared-brand .wx-shared-brand-logo{width:clamp(235px,34vw,320px)}
}
@media(max-width:520px){
  .wx-shared-mast .wx-shared-brand .wx-shared-brand-logo{width:min(85vw,310px)}
  .wx-shared-mast .wx-nav-gold{font-size:.87rem;padding:.55rem .45rem}
}

/* Official owner-selected 2026-11-25 logo is 4:3, not the superseded 4:1
   candidate. Display whole artwork, never crop/flatten the logo or overprint its wordmark. */
.wx-shared-mast{background:#fcf6ef}
.wx-shared-mast .wx-shared-brand.wx-r02-brand{max-width:none}
.wx-shared-mast .wx-shared-brand .wx-shared-brand-logo{
  width:clamp(185px,18vw,250px);height:auto;max-height:none;
  object-fit:contain;object-position:center;flex-shrink:0
}
body:has(main#main .wx-home-title) .wx-shared-brand .wx-shared-brand-logo{
  width:clamp(205px,20vw,275px);height:auto;max-height:none
}
@media(max-width:1100px){
 .wx-shared-mast .wx-shared-brand .wx-shared-brand-logo{width:clamp(180px,25vw,235px)}
 body:has(main#main .wx-home-title) .wx-shared-brand .wx-shared-brand-logo{width:clamp(195px,28vw,245px)}
}
@media(max-width:520px){
 .wx-shared-mast .wx-shared-brand .wx-shared-brand-logo{width:min(60vw,215px)}
 body:has(main#main .wx-home-title) .wx-shared-brand .wx-shared-brand-logo{width:min(62vw,225px)}
}

/* Age routing for dream city: use already-existing hall artwork until
   separately approved age-category art exists. These cards are not catalog grants. */
.wx-age-hub{margin:clamp(22px,4vw,44px) 0;padding:clamp(15px,2.8vw,30px);border:2px solid #d0a35d;border-radius:24px;background:linear-gradient(145deg,#fffaf1,#fff0d4);box-shadow:0 8px 22px #67482618}
.wx-age-hub>.section-title{margin:0 0 14px;font-weight:900}
.wx-age-hub>p{line-height:1.8;color:#5b493a}
.wx-age-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2.5vw,24px)}
.wx-age-card{position:relative;isolation:isolate;min-height:230px;display:flex;flex-direction:column;gap:13px;justify-content:flex-end;overflow:hidden;padding:clamp(18px,2.4vw,30px);border:3px solid #d6a963;border-radius:22px;background:#3e575d;color:#fff;text-decoration:none;box-shadow:0 5px 0 #ad8240,0 12px 26px #382a2450;transition:transform .2s ease,box-shadow .2s ease}
.wx-age-card:before{content:"";position:absolute;inset:0;z-index:-2;background:var(--wx-age-image) center/cover no-repeat;transform:scale(1.01);transition:transform .3s ease}
.wx-age-card:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0826320b 0%,#092d3aab 48%,#071b26f5 100%)}
.wx-age-card:hover,.wx-age-card:focus-visible{transform:translateY(-4px);box-shadow:0 9px 0 #ad8240,0 16px 28px #382a2450;outline-offset:4px}
.wx-age-card:hover:before,.wx-age-card:focus-visible:before{transform:scale(1.05)}
.wx-age-card strong{font-size:clamp(1.35rem,2.8vw,1.95rem);line-height:1.3}
.wx-age-card .wx-age-range{align-self:flex-start;padding:.35em .82em;border-radius:999px;background:#fff5d8;color:#54370e;font-weight:900}
.wx-age-card .wx-age-link{font-weight:800;color:#ffe1a1}
.wx-age-early{--wx-age-image:url('/assets/halls/childhood/banner-desktop.png');background-position:40% 50%}
.wx-age-junior{--wx-age-image:url('/assets/halls/childhood/entrance-card.png')}
.wx-age-preteen{--wx-age-image:url('/assets/halls/growth/banner-desktop.png')}
.wx-age-teen{--wx-age-image:url('/assets/halls/growth/entrance-card.png')}
.wx-age-switch{padding:12px 4px 0;margin:0}
.wx-age-switch a{font-weight:900;color:#795015}
@media(max-width:650px){.wx-age-cards{grid-template-columns:1fr}.wx-age-card{min-height:195px}}
@media(prefers-reduced-motion:reduce){.wx-age-card,.wx-age-card:before{transition:none}.wx-age-card:hover,.wx-age-card:focus-visible{transform:none}.wx-age-card:hover:before{transform:none}}

/* R43 2026-11-28 A01-A07: preserve approved art and links; explicit homepage geometry. */
.wx-homepage .mast>.shell{display:grid;grid-template-columns:minmax(125px,200px) minmax(0,1fr);align-items:center;gap:clamp(10px,2vw,32px)}
.wx-homepage .wx-shared-brand{width:100%;max-width:200px;min-width:0}
.wx-homepage .wx-shared-brand-logo{width:100%;max-height:none;height:auto;object-fit:contain}
.wx-homepage .mast .wx-global-search--header{width:100%;max-width:none;min-width:0;margin:0;order:initial}
.wx-homepage .wx-home-entry-strip{padding-top:1rem}
.wx-homepage .wx-home-entry-strip .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;width:min(100%,700px);margin-inline:auto}
.wx-homepage .wx-home-entry-strip .wx-nav-gold{font-size:clamp(18px,3vw,24px);gap:.5em;min-width:0;padding:.6em .35em}
.wx-homepage .wx-home-member-label{white-space:nowrap;letter-spacing:0;margin:0}
.wx-homepage .wx-home-city-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;margin-bottom:1rem;font-size:clamp(20px,2vw,28px)}
.wx-homepage .wx-home-city-heading h2{font-size:1em;line-height:1.2;white-space:nowrap;margin:0}
.wx-homepage .wx-home-city-heading .wx-home-city-slogan{font-size:.5em;line-height:1.2;white-space:nowrap;margin:0;text-align:right}
.wx-homepage .wx-home-city-slogan span{display:block}
.wx-homepage .wx-home-hall-heading{display:grid;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);align-items:center;gap:.4rem;width:100%;min-width:0}
.wx-homepage .wx-home-hall-heading .wx-hall-icon{width:32px;height:32px;margin:0;justify-self:start}
.wx-homepage .wx-home-hall-heading h3{font-size:clamp(20px,1.8vw,26px);line-height:1.25;color:#432f18;margin:0;text-align:center;white-space:nowrap}
.wx-homepage .wx-home-hall-heading p{font-size:clamp(10px,.85vw,13px);line-height:1.2;color:#75816e;margin:0;justify-self:end;white-space:nowrap}
.wx-homepage .wx-hall-card-art{width:100%;margin:0}
@media(max-width:550px){.wx-homepage .mast>.shell{grid-template-columns:135px minmax(0,1fr);align-items:center;gap:10px}.wx-homepage .mast .wx-global-search input{font-size:14px}.wx-homepage .wx-home-entry-strip .wx-nav-icon{width:24px;height:24px}}

body.wx-homepage:has(main#main .wx-home-title) .wx-home-hall-heading .wx-hall-icon{width:32px;height:32px;padding:3px;margin:0;border-radius:9px}
body.wx-homepage:has(main#main .wx-home-title) .wx-home-hall-heading h3{font-size:clamp(20px,1.8vw,26px);letter-spacing:0;line-height:1.25}
@media(min-width:521px) and (max-width:1100px){.wx-homepage .wx-seven-halls{grid-template-columns:repeat(2,minmax(0,1fr))}.wx-homepage .wx-seven-halls>.wx-hall-card{grid-column:auto}}
