/* DB reference pages share the light site shell; native item artwork keeps its own colours. */
body[data-page] .dbbar{gap:12px;padding:12px 0;margin-bottom:24px}
body[data-page] .dbbar .mock{border:0;background:#edf3f5;color:#4e5968;border-radius:6px;padding:4px 8px;letter-spacing:0}
body[data-page] .dbbar nav.top{flex-wrap:wrap}
body[data-page] .dbbar .sws{gap:8px}
body[data-page] .dbbar .sw a{min-height:36px;display:inline-flex;align-items:center;padding:6px 10px}
body[data-page] .dbx{display:block;margin-top:8px}
body[data-page] .dbx-side{position:static;display:flex;flex-flow:row wrap;gap:6px;margin-bottom:20px;padding:8px;border:1px solid #e1e7ee;border-radius:12px;background:#fff}
body[data-page] .dbx-side p{display:none}
body[data-page] .dbx-side a{min-height:42px;padding:8px 12px;color:#4e5968;gap:8px}
body[data-page] .dbx-side a:hover{background:#f1f5f8;color:#191f28}
body[data-page] .dbx-side a.on{background:#e5f4ef;color:#086d60}
body[data-page] .dbx-side a.on::before{display:none}
body[data-page] .dbx-side img{width:24px;height:24px;opacity:1;box-shadow:0 1px 3px #132f3d29}
body[data-page] :is(.dbx-head,.dd-card,.dbx-filters,.ltable,.reference-grid,.catalog-grid,.location-list){background:#fff;border-color:#dfe5ed;border-radius:12px}
body[data-page] .dbx-head{padding:24px 28px;margin-bottom:20px}
body[data-page] .dbx-head::before{opacity:.12;filter:saturate(.6);background-size:38% auto}
body[data-page] .dbx-head::after{height:3px;background:linear-gradient(90deg,#148a79,transparent 75%)}
body[data-page] .dbx-head h1{color:#191f28;font-size:30px;line-height:1.35}
body[data-page] :is(.reference-eyebrow,.reference-origin,.reference-count,.dbx-head .cnt,.dbx-head span:not(.reference-eyebrow),.dbx-chips-l,.dbx-chips-grp em,.dd-spec dt,.mhead.dbx-head dt){color:#596879;letter-spacing:0}
body[data-page] :is(.dbx-head .lede,.reference-section p,.reference-card small,.catalog-card small,.dbx-head p,.how,.empty){color:#596879;font-size:13px;line-height:1.7}
body[data-page] :is(.reference-grid,.catalog-grid){background:#fff;gap:0}
body[data-page] :is(.reference-card,.catalog-card){background:#fff;color:#191f28;border-color:#e5eaf0;min-height:78px;padding:14px 18px}
body[data-page] :is(.reference-card,.catalog-card):hover{background:#f0f7f5;color:#191f28}
body[data-page] :is(.reference-card b,.catalog-card b,.location-list b,.dd-spec dd,.reference-section h2,.sh h2){color:#191f28}
body[data-page] :is(.reference-card em,.reference-card small,.location-list span,.location-list small,.catalog-card p){color:#596879}
body[data-page] .reference-stat-link{background:#edf7f4;border-color:#c8e4db;border-radius:12px;color:#087462;padding:18px 22px}
body[data-page] .reference-stat-link span{color:#4e675e}
body[data-page] .reference-stat-link:hover{background:#e1f1eb;border-color:#94c9b9;color:#075c50}
body[data-page] .dbx-chips{padding:12px 16px;border-color:#e5eaf0}
body[data-page] .dbx-chips button{min-height:36px;height:auto;padding:7px 12px;color:#4e5968;border-color:#dfe5ed;background:#fff;font-size:13px}
body[data-page] .dbx-chips button:hover{color:#191f28;background:#f1f5f8;border-color:#bfcbd7}
body[data-page] .dbx-chips button.on{background:#e4f3ed;border-color:#94c9b9;color:#086d60}
body[data-page] .dbx-chips button small{color:#657183}
body[data-page] .dbx-chips button[data-v=Rare]{color:#16703a}
body[data-page] .dbx-chips button[data-v=Special]{color:#08786e}
body[data-page] .dbx-chips button[data-v=Legend]{color:#1764a5}
body[data-page] .dbx-chips button[data-v=Unique]{color:#906207}
body[data-page] .dbx-chips button[data-v=Epic]{color:#ae4b13}
body[data-page] .dbx-chips button[data-v=Common]{color:#4e5968}
body[data-page] .reference-search{gap:12px;padding:4px 0}
body[data-page] :is(.reference-search,.fbar) input{min-height:44px}
body[data-page] :is(.lhead,.dd-desc){background:#f6f8fa;border-color:#dfe5ed;color:#596879}
body[data-page] :is(.lr,.dd-spec div,.dbx-detail .location-list>*){border-color:#e5eaf0}
body[data-page] :is(.lr:hover,.dbx-detail .location-list>a:hover){background:#f0f7f5}
body[data-page] :is(.dd-desc p,.dd-desc h2){color:#4e5968!important}
body[data-page] .dbres{background:#fff;border-color:#dfe5ed;box-shadow:0 12px 32px #2037471a}
body[data-page] .dbres a{color:#191f28;border-color:#e5eaf0}
body[data-page] :is(.dbres a:hover,.dbres a.on){background:#edf7f4}
body[data-page] .dbres i{background:#edf1f5;color:#4e5968}
body[data-page] .dbres :is(p,small){color:#596879}
body[data-page] .category-card.cc>b{color:#202b36}
body[data-page] .category-card.cc>span{color:#526072}
body[data-page] .category-card.cc:hover{border-color:#89b8aa}
body[data-page] .category-card:not(:has(.cc-bg)){background:#fff;border:1px solid #dfe5ed;justify-content:center;color:#191f28;gap:8px}
body[data-page] .category-card:not(:has(.cc-bg))::after{display:none}
body[data-page] .category-card:not(:has(.cc-bg)) b{color:#191f28;text-shadow:none}
body[data-page] .category-card:not(:has(.cc-bg)) span{color:#596879}
body[data-page] .category-card:not(:has(.cc-bg)):hover{background:#edf7f4;color:#191f28}
body[data-page] .db-load-error{margin:28px 0;padding:32px;border:1px solid #dfe5ed;border-radius:14px;background:#fff;max-width:760px}
body[data-page] .db-load-error h1{font-size:24px;line-height:1.4;margin:0 0 8px}
body[data-page] .db-load-error p{color:#596879;margin:0 0 24px}
body[data-page] .db-load-error button{border:1px solid #087f70;border-radius:9px;padding:10px 18px;background:#087f70;color:#fff;font:inherit;font-weight:650;cursor:pointer;min-height:44px}
body[data-page] .db-load-error button:hover{background:#06695d;color:#fff}
body[data-page] .db-load-error button:disabled{opacity:.6;cursor:wait}
@media(max-width:700px){
 body[data-page] .dbbar .sws{width:100%;margin-left:0;justify-content:space-between}
 body[data-page] .dbbar nav.top{gap:4px}
 body[data-page] .dbx-side{gap:4px;padding:6px}
 body[data-page] .dbx-side a{flex:1 0 calc(33.33% - 4px);justify-content:center;font-size:12px;padding:8px 6px;gap:6px}
 body[data-page] .dbx-side img{width:20px;height:20px}
 body[data-page] .dbx-head{padding:20px}
 body[data-page] .dbx-head h1{font-size:26px}
 body[data-page] .dbx .reference-grid,body[data-page] .dbx .catalog-grid{grid-template-columns:1fr}
 body[data-page] .reference-card{padding:14px}
 body[data-page] .dbx-chips{padding:12px}
 body[data-page] .db-load-error{padding:24px 20px}
}
@media(prefers-reduced-motion:reduce){body[data-page] :is(.category-card,.cc-bg,.dbx-side a,.dbx-chips button){transition:none;transform:none}}
body[data-page]:has(nav.jm-site-nav) .dbbar .sws{display:none}
body[data-page] .dbx :is(.reference-card,.catalog-card):nth-child(odd){border-right-color:#e5eaf0}
/* Reference rows must not inherit the legacy white-on-dark hover title. */
body[data-page] .dbx :is(.reference-card,.catalog-card):is(:hover,:focus-visible) b{color:#191f28}
body[data-page] .dbx :is(.reference-card,.catalog-card):is(:hover,:focus-visible) :is(small,em){color:#596879}
body[data-page] .category-card.cc:has(.cc-bg):is(:hover,:focus-visible){background:#edf3f0!important}
body[data-page] .category-card.cc:has(.cc-bg):is(:hover,:focus-visible)>b{color:#086653}
body[data-page] .category-card.cc:has(.cc-bg):is(:hover,:focus-visible)>.cc-n{color:#526072}
/* Native list, catalog and paging states share readable light-theme ink. */
body[data-page] .crumb i{color:#526072}
body[data-page] :is(input,textarea)::placeholder{color:#526072;opacity:1}
body[data-page] .pager a{color:#087462;border-color:#b9d2c8;background:#f4f9f6}
body[data-page] .pager a:is(:hover,:focus-visible){color:#086653;background:#e1f0e8}
body[data-page] .dbx-chips button small{color:#526072}
body[data-page] .lr:is(:hover,:focus-visible) .n b{color:#191f28}
body[data-page] :is(.i-Rare,.lr .n b.i-Rare){color:#16703a}
body[data-page] :is(.i-Legend,.lr .n b.i-Legend){color:#1764a5}
body[data-page] :is(.i-Unique,.lr .n b.i-Unique){color:#906207}
body[data-page] :is(.i-Epic,.lr .n b.i-Epic){color:#ae4b13}
body[data-page] :is(.i-Special,.lr .n b.i-Special){color:#7552b6}
body[data-page] :is(.g-EliteMonster,.vars .g-EliteMonster){color:#1764a5}
body[data-page] :is(.g-HeroMonster,.vars .g-HeroMonster){color:#906207}
body[data-page] :is(.g-RvRHeroMonster,.vars .g-RvRHeroMonster){color:#b72d40}
body[data-page] :is(.g-LegendMonster,.vars .g-LegendMonster){color:#906207}
body[data-page] #tools .chip span{opacity:1!important;color:#526072}
body[data-page] .stop.fin i{background:#e3f3eb;color:#086653}
body[data-page] .jump{background:#f6f8fa;margin-inline:0;padding-inline:0;max-width:100%}
html body[data-page] :is(input,textarea)::placeholder{color:#526072!important;opacity:1}
body[data-page] .dbx-detail .dbx-head.graded h1{color:#191f28}
body[data-page] .dbx-detail .mhead.dbx-head .gr.g-HeroMonster{color:#906207}
body[data-page] .dbx-detail .mhead.dbx-head .gr.g-EliteMonster{color:#1764a5}
body[data-page] .dbx-detail .mhead.dbx-head .gr.g-RvRHeroMonster{color:#b72d40}
body[data-page] .dbx-detail .mhead.dbx-head .gr.g-LegendMonster{color:#906207}
body[data-page] .sh h2 small{color:#526072}
