/* fxa-books (fix-all 2026-10-18) */
:root{--gold:#B13630;--gold-soft:#EEF1F5}
/* row 4: one accent; numerals white; square-ish corners */
.band{border-bottom-color:#B13630}
.stat .n{color:#fff!important}
.stat .l{color:#D9DFE9}
.card,#q,select,#more,.nav,#reader{border-radius:2px!important}
.tag,.badge,mark{border-radius:2px!important}
.badge{background:#EEF1F5;color:#0A244B;border-color:#D9DFE9}
.badge.b-review{background:#E4ECF4;color:#274B6D;border-color:#C3D4E4}
.badge.b-essay{background:#F3E2E2;color:#7C3030;border-color:#E0C4C4}
.card:hover,.card:focus-within{border-color:#0A244B;box-shadow:none}
.card h2 button:hover{text-decoration-color:#B13630}
/* row 3: badge in a fixed meta row above the title */
.card h2{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:6px}
.card h2 .badge{margin-left:0;vertical-align:0}
/* row 8: content top-aligned, tag row pinned to the foot of equal-height cards */
@media(min-width:1200px){
#list>.card:not(.has-cover){display:flex;flex-direction:column}
#list>.card:not(.has-cover)>.tags{margin-top:auto;padding-top:9px}
#list>.card.has-cover{grid-template-rows:auto auto auto 1fr;align-content:stretch}
#list>.card.has-cover>.tags{align-self:end}
}
/* row 6: MEF bar inner width = page width (host setting) */
@media(min-width:1200px){#mefs{--site-max:1320px}}
/* row 7: eyebrow breaks only at the separator */
.kicker .fxa-nw{white-space:nowrap}
/* row 1 + 5: phone controls */
.fxa-filt{display:none}
@media(max-width:640px){
header .wrap{padding-top:18px;padding-bottom:16px}
.kicker{margin-bottom:6px;letter-spacing:.14em}
h1{margin-bottom:6px}
.sub{font-size:16px;line-height:1.45}
.statline{gap:6px 18px;margin-top:12px;min-height:0}
.stat .n{font-size:19px}
.stat .l{font-size:14px;letter-spacing:.06em}
.controls{padding:10px 0 8px}
.searchrow{flex-wrap:nowrap;gap:8px}
.searchbox{flex:1 1 auto;min-width:0}
#q{padding:11px 34px 11px 36px}
#sort{flex:0 0 auto;width:146px;max-width:146px;padding-right:6px}
.filterrow{margin-top:8px;gap:8px}
.fxa-filt{display:inline-flex;align-items:center;gap:6px;font:600 16px/1.2 'IBM Plex Sans','MEF Spine Plex',system-ui,sans-serif;color:#0A244B;background:#fff;border:1.5px solid #0A244B;border-radius:2px;padding:9px 14px;cursor:pointer}
.fxa-filt::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.fxa-filt[aria-expanded="true"]::after{transform:rotate(-135deg) translateY(-1px)}
.filterrow:not(.fxa-open)>select,.filterrow:not(.fxa-open)>#reset{display:none!important}
.filterrow.fxa-open>select{flex:1 1 calc(50% - 4px);max-width:none}
}
