/* Default everyday edition; this entire stylesheet is disabled for the ink edition. */
:root{--bg:#f6f7f9;--paper:#fff;--ink:#202936;--muted:#606b78;--line:#e4e7ec;--accent:#d92730;--gold:#d92730;--soft:#f1f3f6}
html[data-theme=dark]{--bg:#171c24;--paper:#222933;--ink:#e9edf4;--muted:#b7c1cf;--line:#3c4654;--accent:#ff7279;--gold:#ff7279;--soft:#2c3441}
body,.book-page{background:var(--bg);background-image:none}body,h1,h2,h3,.footer-brand,.primary-nav a{font-family:TTCQ,'Segoe UI',Arial,sans-serif;letter-spacing:0}h1,h2,h3{font-weight:650;line-height:1.5}
/* The approved seal and two-line wordmark deliberately keep their old shape/type. */
header{background:var(--paper);padding-top:20px;padding-bottom:20px}.brand,.brand small{font-family:TTCQSerif,Georgia,serif}.seal{background:#a52b27;color:#fff6e6;outline:1px solid #a52b27;outline-offset:3px;transform:rotate(-3deg)}
.utility{background:var(--paper);font-size:12px}.utility>div{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.utility>div>a{margin-left:auto}.edition-toggle{font-size:11px!important;padding:4px 8px!important;white-space:nowrap}.header-search input{background:var(--paper);border-color:var(--line)}.header-search button{background:var(--accent)!important;color:#fff;border-color:var(--accent)}.shelf-button{border:1px solid var(--line);padding:8px 12px}
.nav-wrap,.book-page .nav-wrap,html[data-theme=dark] .nav-wrap{background:#263342;color:#fff;border:0;backdrop-filter:none}.primary-nav a{font-size:14px;padding:12px 19px}.primary-nav a:hover,.primary-nav a[aria-current=page]{color:#fff;background:#374757;border-color:#e63843}.primary-nav button{color:#fff;background:transparent!important;border-color:#627080}
button,.button{border-radius:3px}button:not(.secondary):not([data-close-dialog]),.button:not(.secondary){background:var(--accent);color:#fff}.pills span{border-radius:2px}.section-title{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:16px}.section-title h2{border-left:0;padding-left:0;font-family:TTCQ,'Segoe UI',sans-serif;font-size:19px}.section-title a{font-size:12px;color:var(--accent)}
.category-panel,.home-bulletin{background:var(--paper);border:1px solid var(--line);border-radius:2px}.category-panel h2{font-family:TTCQ,'Segoe UI',sans-serif;font-size:14px}.category-panel>a{border-color:var(--line)}.category-panel>a:nth-child(4n),.category-panel>a:nth-child(4n+1){background:var(--soft)}.category-panel>a:hover{background:var(--soft)}
.category-panel img.category-icon,.genre-heading img.genre-symbol{display:none!important}.standard-category-icon{display:block;width:26px;height:26px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;color:var(--ink)}.genre-heading .standard-category-icon{width:32px;height:32px}
.spotlight-area>.spotlight,html[data-theme=dark] .spotlight-area>.spotlight{background:#132538 url('/viet/art/standard-hero-v1.png') center/cover;border:0;border-radius:2px;overflow:hidden}.spotlight-slide{grid-template-columns:minmax(0,1fr) 100px;background:linear-gradient(90deg,#0c1c34b8,#0c1c3466 65%,transparent);color:#fff;min-height:270px}.spotlight-slide h1,.spotlight-slide h2{font-family:TTCQ,'Segoe UI',sans-serif;color:#fff;font-size:25px}.spotlight-slide .book-meta,.spotlight-slide .eyebrow,.spotlight-slide .summary,.spotlight-slide .book-meta span{color:#eef3ff}.spotlight-slide .eyebrow{font-size:10px}.spotlight-slide .button{background:#dc2635}.spotlight-cover img{box-shadow:4px 6px 15px #0007;transform:none}.spotlight-tabs{background:#223047}.spotlight-tabs button[aria-pressed=true]{background:#d92730!important}
.spotlight-area>.discovery-links{background:transparent;gap:8px}.discovery-links a,html[data-theme=dark] .discovery-links a{background:linear-gradient(100deg,#18365ee6,#102b5588),url('/viet/art/standard-hero-v1.png') center/cover;color:white;border:0}.discovery-links a:nth-child(2){background-position:right center}.discovery-links a:nth-child(3){background:linear-gradient(110deg,#431c36,#8c3541)}.discovery-links strong{font-family:TTCQ,'Segoe UI',sans-serif;color:white;font-size:14px}.discovery-links span{color:#f0f3f8;font-size:11px}.home-bulletin .free-note{background:var(--soft);padding:16px 10px}.free-note strong{font-family:TTCQ,'Segoe UI',sans-serif;font-size:18px;color:var(--accent)}
.recommend-grid>aside,.editor-selection,.five-rankings>div{background:var(--paper);border:1px solid var(--line);padding:14px;border-radius:2px}.recommend-grid{gap:16px}.editor-feature,html[data-theme=dark] .editor-feature{background:var(--paper);border:0;border-bottom:1px solid var(--line);padding:12px 0 20px;gap:18px}.editor-feature h3,.editor-genre-links h3{font-family:TTCQ,'Segoe UI',sans-serif}.editor-feature img{transform:none;box-shadow:2px 3px 6px #0002}.editor-feature .button{border-radius:3px}.editor-note{background:var(--soft);padding:16px 10px}.editor-promos a{background:var(--soft);color:var(--ink)}.dense-rank li{border-color:var(--line)}.dense-rank li>b{color:var(--accent)}.dense-rank .rank-lead>b{background:var(--accent);color:#fff}.rank-cover img{transform:none}.five-rankings{gap:12px}
.wide-promo,.wide-promo.ink,.wide-promo.crimson{background:linear-gradient(90deg,#081b38e6,#152b4970),url('/viet/art/standard-hero-v1.png') center 40%/cover;color:#fff;border:0;min-height:100px}.wide-promo strong{font-family:TTCQ,'Segoe UI',sans-serif;color:#fff}.wide-promo small,.wide-promo span{color:#e8efff}.wide-promo.ink{background:linear-gradient(110deg,#612332,#a5303e)}
.genre-panels>section{background:var(--paper);min-height:210px;border:1px solid var(--line)}.genre-panels>section:before,.genre-panels>section:after{display:none}.genre-panels>section .genre-heading h3{font-family:TTCQ,'Segoe UI',sans-serif;font-size:16px}.genre-panels>section .genre-book{background:none;padding:4px 0}.genre-panels>section .genre-empty{color:var(--muted)}.genre-explore{font-size:12px}.genre-heading small{font-size:12px}
.collection-grid,.free-shelf,.bottom-discovery{background:var(--paper);border:1px solid var(--line)}.selection-feature h3,.compact-book h3{font-family:TTCQ,'Segoe UI',sans-serif}.promo-triptych a,.detail-promos a,.detail-promos a:last-child{background:linear-gradient(100deg,#153357ed,#28425d70),url('/viet/art/standard-hero-v1.png') right center/cover;border:0;color:#fff}.promo-triptych a:nth-child(2){background:linear-gradient(110deg,#672230,#b52839)}.promo-triptych strong,.detail-promos strong{font-family:TTCQ,'Segoe UI',sans-serif;color:#fff}.promo-triptych small,.promo-triptych span,.detail-promos span,.detail-promos small{color:#fff}.updates-grid>div,.updates-grid>aside{background:var(--paper);padding:16px;border:1px solid var(--line)}.updates-table th{background:var(--soft)}.updates-table tr:nth-child(even){background:var(--bg)}.author-avatar{background:var(--soft);color:var(--muted)}
.portal-footer{background:var(--paper);background-image:none;border-color:var(--line)}.footer-brand{color:var(--accent)}.portal-footer p{font-size:12px}.site-dock a{background:var(--paper)}
.book-overview,.book-section,.purchase-card{background:var(--paper);border:1px solid var(--line);border-radius:4px}.book-overview h1,.purchase-card h1{font-family:TTCQ,'Segoe UI',sans-serif}.book-section h2{border:0;padding-left:0}.detail-rail a{background:var(--paper)}.book-collections a{border-color:var(--line)}.catalog-latest{background:var(--soft)}.book-stats,.book-meta{color:var(--muted)}.wallet-balance{background:#c92130;color:#fff}.wallet-balance p,.wallet-balance span{color:#fff}.purchase-card{background-image:none}.sandbox-note{background:var(--soft);color:var(--ink)}
.reading-page{background:var(--reading-bg);background-image:none}.book-frontispiece{background:var(--reading-paper);background-image:none}.reader-header{background:var(--reading-paper);border-color:var(--line)}.reader h1,.book-frontispiece h2{font-family:TTCQ,'Segoe UI',sans-serif}.reader .prose{font-family:TTCQSerif,Georgia,serif}.reader-dock button,.reader-dock a{background:var(--reading-paper)!important;color:var(--ink)}.reader-end-actions .button{background:var(--accent);color:white}.reader-brand{color:var(--accent)}
.reader-dock button,.reading-tools button{color:var(--ink)!important;background:var(--reading-paper)!important}.commerce-header{flex-wrap:wrap}.commerce-header nav{flex-wrap:wrap}
html[data-theme=dark] .wide-promo,html[data-theme=dark] .promo-triptych a,html[data-theme=dark] .detail-promos a{color:#fff}html[data-theme=dark] .wide-promo span,html[data-theme=dark] .wide-promo small,html[data-theme=dark] .promo-triptych strong{color:#fff}html[data-theme=dark] .genre-panels>section .genre-book{background:none}html[data-theme=dark] button:not(.secondary):not([data-close-dialog]),html[data-theme=dark] .button:not(.secondary){color:#171c24}html[data-theme=dark] .spotlight-slide .button{color:white}
@media(max-width:760px){.utility{font-size:10px}.utility>div{gap:6px}.edition-toggle{font-size:10px!important}.primary-nav a{font-size:12px;padding:12px}.spotlight-slide{grid-template-columns:minmax(0,1fr) 80px;padding:20px 16px;gap:12px}.spotlight-slide h1,.spotlight-slide h2{font-size:20px}.spotlight-cover img{width:80px;height:118px}.section-title h2{font-size:18px}.recommend-grid>aside,.editor-selection{padding:12px}.genre-panels>section{min-height:220px}.genre-panels>section .genre-heading h3{font-size:15px}.wide-promo strong{font-size:22px}.collection-grid{padding:14px}.reader-header{flex-wrap:wrap;gap:8px}.book-overview h1{font-size:21px}}

/* Genre icons v3: consistent optical size, restrained red detail. */
.category-panel>a{gap:9px!important;padding:12px 10px!important;min-height:65px;align-items:center!important}.category-panel>a>span{font-size:13px;line-height:1.5;min-width:0}.category-panel .standard-category-icon{width:25px!important;height:25px!important;stroke-width:1.65;color:#455064;overflow:visible}.standard-category-icon .icon-accent{stroke:#bd363e}.category-panel>a:hover .standard-category-icon{color:#b52932}.genre-heading .standard-category-icon{stroke-width:1.65}.category-panel>a:focus-visible{outline:2px solid #bd363e;outline-offset:-2px}html[data-theme=dark] .category-panel .standard-category-icon{color:#d5dbe5}html[data-theme=dark] .standard-category-icon .icon-accent{stroke:#ef9198}

@media(min-width:1101px){.portal-top{grid-template-columns:280px minmax(0,1fr) 200px!important}}
.standard-category-icon{--genre-accent:#bb3944}html[data-theme=dark] .standard-category-icon{--genre-accent:#ef9198}

/* Balanced portal proportions: avoid stretching promotional tiles to the menu height. */
@media(min-width:1101px){.portal-top{grid-template-columns:264px minmax(0,1fr) 224px!important;gap:16px}.recommend-grid{grid-template-columns:264px minmax(0,1fr) 224px;gap:16px}}
@media(min-width:761px){.category-panel>a{min-height:51px!important;padding:7px 10px!important;gap:8px!important}.category-panel .standard-category-icon{width:23px!important;height:23px!important}.category-panel h2{padding:14px 12px}.spotlight-area>.discovery-links{flex:0 0 auto;min-height:130px}.discovery-links a{padding:18px 12px;min-height:130px}.spotlight-area>.spotlight{flex:1}.spotlight-slide{min-height:260px}.spotlight-slide h1,.spotlight-slide h2{font-size:23px;line-height:1.4}.home-bulletin{padding:16px}.home-bulletin h2{font-size:16px}.home-bulletin .free-note{margin-top:20px}.home-bulletin .free-note strong{font-size:17px}}
@media(min-width:761px) and (max-width:1100px){.portal-top{grid-template-columns:250px minmax(0,1fr)!important}.home-bulletin{grid-column:1/-1}.home-bulletin .free-note{display:none}.home-bulletin>a{display:inline-block;margin-right:18px}.category-panel>a{font-size:12px}.category-panel>a>span{font-size:12px}}
