/* The two query entrances share the existing knowledge library and reading flow. */
.home-hero{padding-bottom:18px}.home-hero h1{font-size:40px;letter-spacing:.02em}.home-hero .searchbar{max-width:900px}.primary-portals{margin-top:16px}.portal .enter small{font-weight:400;margin-left:10px;color:var(--muted)}.more-topics .portal-list{grid-template-columns:repeat(3,1fr);margin-top:0}.more-topics h2{font-size:18px}.more-topics .zone-card{background:transparent}.list-hero .eyebrow{margin-top:20px}.list-hero h1{margin-top:4px}.list-hero .searchbar{max-width:900px}.searchbar #category{max-width:150px}.chips button[aria-pressed=true]{border-color:var(--red)}.card h3 small{display:block;margin:4px 0 0;overflow-wrap:anywhere}.card{overflow-wrap:anywhere}.card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.empty .form-actions{justify-content:center}.sidebar .back{font-size:14px;line-height:1.6;padding:12px 14px;border:1px solid #d6bcb0;border-radius:8px;background:#f7e8e5;color:var(--red);width:100%;font-weight:650}.nearby-menu{margin-top:18px;font-size:13px;max-height:65vh;overflow:auto}.nearby-menu summary{padding:10px 0;color:var(--ink)}.nearby-menu button{padding:7px 8px}.article-layout>.sidebar{min-width:0}.v2-nav button:nth-child(-n+2){display:none}.article-search .searchbar{flex-wrap:wrap}.article-search .searchbar input{flex-basis:180px}.article-search .searchbar #category{flex:1}.article-search .searchbar .primary{margin-left:auto}#query:focus-visible{outline:2px solid #99623e;outline-offset:2px}.article-search{margin-top:0}main{min-height:65vh}
@media(min-width:801px){.nearby-menu:not([open]){max-height:none}}
@media(max-width:800px){.sidebar{display:block;position:sticky;top:125px;z-index:5;background:var(--paper);padding:8px 0}.sidebar .back{width:auto;display:inline-block;margin:0}.nearby-menu{display:none}.article-layout{padding-top:12px}.article-search .searchbar input{flex-basis:150px}.searchbar{flex-wrap:wrap}.searchbar input{flex-basis:200px}.searchbar .primary{margin-left:auto}}
@media(max-width:540px){.home-hero h1{font-size:28px;line-height:1.55}.home-hero{padding-top:30px}.searchbar{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;padding:12px}.searchbar input{grid-column:2 / 4;min-width:0;font-size:14px;padding:8px 0}.searchbar #scope{grid-column:1 / 3;max-width:none;width:100%;font-size:12px;min-width:0}.searchbar #category{grid-column:1 / 3;grid-row:3;max-width:none;width:100%;font-size:12px;min-width:0}.searchbar .primary{grid-column:3;grid-row:2 / 4;align-self:stretch;min-width:58px;padding:10px}.more-topics .portal-list{grid-template-columns:1fr}.more-topics .zone-card{padding:14px 18px}.more-topics .zone-card strong{margin-bottom:3px}.hero .eyebrow{font-size:10px;letter-spacing:2px}.portal .enter small{display:block;margin:3px 0 0}.portal .mini{width:90px;right:18px;bottom:30px}.portal h2{font-size:25px}.primary-portals{margin-bottom:30px}.hero.list-hero h1{font-size:27px}.sidebar{top:116px}.header{padding-left:16px;padding-right:16px}.header nav{gap:12px;flex-shrink:0}.brand{font-size:17px;gap:6px}.logo{width:28px;height:28px}.v2-nav{padding-left:20px;padding-right:20px;gap:6px}.v2-nav button,.v2-nav a{font-size:10px;padding:3px 7px}.article h1{font-size:28px}.lead{font-size:18px;padding:16px}.article .en{overflow-wrap:anywhere}.article .form-actions{margin-bottom:20px}.article figure{max-width:100%;overscroll-behavior-x:contain}.article-search .searchbar #category{max-width:none}.report caption{white-space:normal}.section-title h2{font-size:19px}.guide-strip{font-size:12px}.back,.chip{min-height:36px}}
@media(prefers-reduced-motion:reduce){.portal:hover{transform:none;transition:none}}
@media(max-width:540px){.v2-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.v2-nav button,.v2-nav a{flex-shrink:0}.sidebar{top:94px}.chips[aria-label="內容分類"]{flex-wrap:nowrap;overflow-x:auto;padding:2px 0 9px;scrollbar-width:thin}.chips[aria-label="內容分類"] .chip{flex-shrink:0}}
@media(min-width:801px){.sidebar{top:132px}}
@media(max-width:800px){.sidebar{top:132px}}
@media(max-width:540px){.sidebar{top:104px}}
.article{min-width:0;width:100%}.article .searchbar svg{min-width:0;width:20px;height:20px}.article-layout{min-width:0}@media(max-width:800px){.article-layout{grid-template-columns:minmax(0,1fr)}}

/* Red accents and coffee surfaces retain the established layout and reading flow. */
.portal.finance h2,.portal.finance .enter{color:var(--coffee)}.portal.finance:hover{border-color:var(--coffee)}.badge,.pill{background:#efe3d7;color:var(--coffee)}
