/* Shared global search UI V01. Same component in site header, footer and search page. */
.wx-global-search{display:flex;align-items:center;gap:.35rem;min-width:230px;max-width:520px;width:clamp(230px,30vw,470px);height:46px;padding:3px 4px 3px 14px;border:1.7px solid #9a865b;border-radius:999px;background:#fffefb;box-shadow:0 2px 8px #4e3d1c13}
.wx-global-search:focus-within{outline:3px solid #d4a94e66;outline-offset:2px;border-color:#8a6827}
.wx-global-search input,.wx-global-search select{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;color:#20383a;font:600 16px/1.3 system-ui,"Noto Sans TC",sans-serif}
.wx-global-search input::placeholder{color:#687a76;opacity:1;font-weight:500}
.wx-global-search button{flex:0 0 38px;width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:#315b55;color:#fff;cursor:pointer}
.wx-global-search button img{width:20px;height:20px;filter:brightness(0) invert(1)}
.wx-global-search button:focus-visible{outline:3px solid #d46e2b;outline-offset:3px}
.wx-global-search--header{flex:1 1 310px;max-width:470px}
.wx-global-search--footer{width:min(100%,390px);max-width:390px;min-width:230px}
.wx-search-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wx-member-label{letter-spacing:1em;margin-right:-1em;white-space:nowrap;display:inline-block;text-align:center}
.wx-nav-gold[href="/member-zone.html"] .wx-nav-icon{width:25px;height:25px;border-radius:7px}
.wx-search-page{max-width:1080px;margin:0 auto;padding:clamp(1.4rem,4vw,3rem) 1rem 4rem}
.wx-search-page h1{font-size:clamp(1.8rem,4vw,2.7rem);margin:.4rem 0}
.wx-search-status{padding:1rem 1.2rem;border-left:4px solid #b68b3d;background:#fff7e5;border-radius:.4rem;color:#4f4838;margin:1.2rem 0}
.wx-search-results{display:grid;gap:.8rem;margin-top:1rem}
.wx-search-result{padding:1rem 1.2rem;background:#fff;border:1px solid #d7e3df;border-radius:14px}
.wx-search-result small{color:#58706c}
.wx-search-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.wx-search-filters label{display:grid;gap:.3rem;font-weight:700;color:#34534d}
.wx-search-filters select{min-height:44px;padding:.55rem .75rem;border:1px solid #a99a79;border-radius:10px;background:#fff;color:#20383a;font:inherit}
.wx-search-filter{color:#52665f}
.wx-hall-cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.wx-hall-cat-card{position:relative;display:flex;min-height:175px;flex-direction:column;gap:.55rem;padding:1.1rem;border:1px solid #d5c39f;border-radius:18px;background:linear-gradient(150deg,#fffdf7,#f5eddd);color:#233b39;text-decoration:none;box-shadow:0 5px 18px #314d4210}
.wx-hall-cat-card:hover,.wx-hall-cat-card:focus-visible{transform:translateY(-2px);outline:3px solid #c99e4d66;outline-offset:2px}
.wx-hall-cat-card h3{margin:0;font-size:1.12rem;line-height:1.4}
.wx-hall-cat-card p{margin:0;color:#5d6d67;font-size:.94rem}
.wx-hall-cat-number{font-size:.78rem;font-weight:800;letter-spacing:.1em;color:#9a773d}
.wx-hall-cat-shared{align-self:flex-start;padding:.16rem .52rem;border-radius:999px;background:#e7efe9;color:#315b55;font-size:.76rem;font-weight:800}
.wx-hall-cat-action{margin-top:auto;font-size:.84rem;font-weight:800;color:#8b682e}
.wx-hall-taxonomy-status{margin:.8rem 0;padding:.7rem 1rem;border-radius:10px;background:#f7f4ea;color:#5a5d50}
@media(max-width:1100px){.wx-shared-mast .shell{gap:.75rem}.wx-global-search--header{width:min(100%,430px);max-width:430px}}
@media(max-width:799px){.wx-global-search--header{width:100%;max-width:none;order:2;flex-basis:100%}.wx-shared-brand{flex-shrink:0}.wx-global-search--footer{width:100%;max-width:520px}}
@media(max-width:650px){.wx-hall-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wx-search-filters{grid-template-columns:1fr}}
@media(max-width:520px){.wx-global-search{height:44px;width:100%;min-width:0}.wx-footer-inner .wx-global-search--footer{min-width:0}.wx-member-label{letter-spacing:1em;margin-right:-1em;font-size:.86em}.wx-hall-cat-grid{grid-template-columns:1fr}.wx-hall-cat-card{min-height:150px}}
@media(prefers-reduced-motion:reduce){.wx-hall-cat-card{transition:none}.wx-hall-cat-card:hover{transform:none}}
/* Replace the textual wordmark footprint with the official mark plus full-site search. */
.wx-shared-mast .wx-shared-brand-logo{width:44px;height:44px;max-width:44px;object-fit:contain;flex:0 0 44px}
@media(max-width:520px){.wx-shared-mast .wx-shared-brand-logo{width:38px;height:38px;max-width:38px;flex-basis:38px}}

.wx-search-form{display:grid;gap:.8rem;max-width:760px;margin:1rem 0}.wx-search-form>.wx-global-search{width:100%;max-width:none}.wx-search-form .wx-search-filters{margin:0}

.wx-shared-public-link[href="/member-zone.html"] img{width:25px;height:25px;border-radius:7px}.wx-shared-public-link[href="/member-zone.html"] .wx-member-label{letter-spacing:1em;margin-right:-1em;white-space:nowrap;display:inline-block;text-align:center}

.site-header .site-brand>img{width:44px;height:44px;max-width:44px;object-fit:contain;flex:0 0 44px}.site-header .brand-row>.wx-global-search--header{flex:1 1 300px;max-width:470px}.wx-public-footer-inner .wx-global-search--footer{width:min(100%,390px);max-width:390px;margin:1rem auto}
@media(max-width:799px){.site-header .brand-row>.wx-global-search--header{width:100%;max-width:none;order:2;flex-basis:100%}}
@media(max-width:520px){.site-header .site-brand>img{width:38px;height:38px;max-width:38px;flex-basis:38px}.wx-public-footer-inner .wx-global-search--footer{width:100%;max-width:none;min-width:0}}
