/* Brawlers list + one brawler (Public Data). Colours / spacing come from index.css; the page head and filter bar are
   repeated here per the per-page-CSS convention of this site. */

.bw-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px var(--pad) 96px;
}

.page-head { margin-bottom: 28px; text-align: center; }
.eyebrow { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.page-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1; letter-spacing: 0.01em; text-align: center; }
.page-lead { margin: 10px auto 0; max-width: 620px; text-align: center; color: var(--text-dim); }
.muted { color: var(--text-muted); }

.notice--error {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(255, 122, 122, 0.08);
    border: 1px solid rgba(255, 122, 122, 0.35);
    border-radius: var(--radius-sm);
    color: #ff7a7a;
    font-size: 14px;
    font-weight: 600;
}

.h2h-credit { margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-muted); text-align: center; }

/* ---------- filter bar ---------- */

.bw-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 14px; margin-bottom: 20px; }
.bw-filters .fld { display: flex; flex-direction: column; gap: 4px; }
.bw-filters .fld span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.bw-filters select,
.bw-filters input {
    padding: 7px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color-scheme: dark;
    font-size: 13px;
}
.bw-filter-note { flex-basis: 100%; margin: 0; font-size: 12px; text-align: center; }
.bw-summary { margin-bottom: 14px; font-size: 12px; text-align: center; }
.bw-empty { padding: 24px 0; text-align: center; }

/* ---------- the list ---------- */

.bw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.bw-grid[hidden], .bw-filters .fld[hidden] { display: none; }

.bw-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--fast), transform var(--fast);
}
.bw-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.bw-card-top { display: flex; align-items: center; gap: 10px; }
.bw-card-name { display: flex; flex-direction: column; min-width: 0; }
.bw-card-name strong { font-size: 15px; overflow-wrap: anywhere; }
.bw-card-name .muted { font-size: 12px; }
.bw-portrait { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.bw-portrait--blank { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; color: var(--text-dim); }

.bw-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bw-num { display: flex; flex-direction: column; align-items: flex-start; }
.bw-num-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.bw-num strong { font-size: 17px; }
.bw-num small { font-size: 10px; }
.bw-num.is-hot strong, .bd-tile.is-hot strong, .is-hot { color: #7ee07a; }
.bw-num.is-cold strong, .bd-tile.is-cold strong, .is-cold { color: #ff8a80; }

.bw-change { align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--border-strong); color: var(--text-dim); }
.bw-change--up { color: #7ee07a; border-color: rgba(126, 224, 122, 0.4); background: rgba(126, 224, 122, 0.08); }
.bw-change--down { color: #ff8a80; border-color: rgba(255, 138, 128, 0.4); background: rgba(255, 138, 128, 0.08); }
.bw-change--flat { color: #ffd166; border-color: rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.08); }
.bw-change--none { color: var(--text-muted); font-weight: 500; }

/* ---------- the tier list ---------- */

.bw-tiers { display: flex; flex-direction: column; gap: 8px; }
.bw-tier { display: grid; grid-template-columns: 76px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.bw-tier-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; color: #101507; }
.bw-tier-label strong { font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; }
.bw-tier-label small { font-size: 11px; font-weight: 700; opacity: 0.7; }
/* from the best (green) down to the weakest (red) */
.bw-tier--S .bw-tier-label { background: #5fdc6e; }
.bw-tier--A .bw-tier-label { background: #b6e35a; }
.bw-tier--B .bw-tier-label { background: #ffe066; }
.bw-tier--C .bw-tier-label { background: #ffb85c; }
.bw-tier--D .bw-tier-label { background: #ff7f6e; }
.bw-tier--none .bw-tier-label { background: var(--surface-3); color: var(--text-dim); }
/* the whole card is edged in its tier's colour, so scrolling down a long tier still tells you which one you are in */
.bw-tier--S { border-color: #5fdc6e; }
.bw-tier--A { border-color: #b6e35a; }
.bw-tier--B { border-color: #ffe066; }
.bw-tier--C { border-color: #ffb85c; }
.bw-tier--D { border-color: #ff7f6e; }
.bw-tier--S, .bw-tier--A, .bw-tier--B, .bw-tier--C, .bw-tier--D { border-width: 2px; }
.bw-tier-body { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; padding: 10px 12px; min-height: 76px; }
.bw-tier-none { align-self: center; font-size: 13px; }
.bw-tchip { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; padding: 6px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); text-decoration: none; transition: border-color var(--fast), transform var(--fast); }
.bw-tchip:hover { border-color: var(--primary); transform: translateY(-2px); }
.bw-tchip-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.bw-tchip-name { max-width: 100%; font-size: 11.5px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-tchip-win { font-size: 11px; font-weight: 800; color: var(--text-dim); }
.bw-tchip-win.is-hot { color: #7ee07a; }
.bw-tchip-win.is-cold { color: #ff8a80; }
.bw-tier-how { margin: 10px 0 0; font-size: 12px; text-align: center; }
/* Phone and tablet: each tier is its own card - a coloured bar with the tier's letter on top, the brawlers in a grid of tiles under it (the
   side-by-side layout left a 54-76px strip for the letter and squeezed the brawlers into the rest). */
@media (max-width: 900px) {
    .bw-tiers { gap: 14px; }
    .bw-tier { grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-lg); }
    .bw-tier-label { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 14px 8px 18px; }
    .bw-tier-label strong { font-size: 30px; }
    .bw-tier-label small { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: rgba(16, 21, 7, 0.16); font-size: 12px; opacity: 1; }
    .bw-tier-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 12px; min-height: 0; }
    .bw-tier-none { grid-column: 1 / -1; padding: 6px 4px; }
    .bw-tchip { width: auto; min-width: 0; padding: 8px 6px 7px; border-radius: 14px; gap: 4px; }
    .bw-tchip-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 11px; }
    .bw-tchip-name { font-size: 12.5px; }
    .bw-tchip-win { font-size: 12px; }
}
@media (max-width: 600px) {
    .bw-tier-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
}

/* a tablet: the filters in three even columns (they wrapped into rows of different lengths with one date left alone) */
@media (min-width: 641px) and (max-width: 900px) {
    .bw-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
    .bw-filters .fld { min-width: 0; }
    .bw-filters select, .bw-filters input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; }
}

/* the filters: two to a row on a phone (nine full-width fields pushed the tier list a whole screen and a half down) */
@media (max-width: 640px) {
    .bw-page { padding-top: 28px; }
    .bw-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
    .bw-filters select, .bw-filters input { min-height: 44px; }
    .bw-filters .fld { min-width: 0; }
    .bw-filters select, .bw-filters input { width: 100%; min-width: 0; box-sizing: border-box; }
    .bw-filters .fld:has(#matchType), .bw-filters .fld:has(#sinceSelect), #sortField { grid-column: 1 / -1; }
}

/* ---------- one brawler ---------- */

.bw-back { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.bw-back a { color: var(--text-dim); text-decoration: none; }
.bw-back a:hover { color: var(--primary); }

.bd-head { margin-bottom: 22px; }
.bd-id { display: flex; align-items: center; gap: 18px; }
.bd-portrait { width: 96px; height: 96px; flex: none; border-radius: 18px; object-fit: cover; background: var(--surface-3); }
.bd-title { text-align: left; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bd-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-dim); }
.bd-chip--scope { color: #9ecbff; border-color: rgba(158, 203, 255, 0.35); }
.bd-about { margin-top: 14px; max-width: 760px; color: var(--text-dim); line-height: 1.55; }
.bd-about p { margin: 0 0 6px; }
.bd-about strong { color: var(--text); }

.bd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-top: 18px; }
.bd-tile { display: flex; flex-direction: column; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.bd-tile-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.bd-tile strong { font-size: 24px; font-family: var(--font-display); font-weight: 400; }
.bd-tile small { font-size: 11px; }

.bd-card { margin-top: 18px; padding: 18px 20px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.bd-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.bd-card h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.bd-sub { margin: 4px 0 0; font-size: 12.5px; }

/* kit */
.bd-pref { margin: 12px 0 0; font-size: 14px; }
.bd-combos { margin: 6px 0 0; font-size: 12px; }
.bd-gears { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.bd-gear { padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.bd-gear-top { display: flex; align-items: center; gap: 10px; }
.bd-gear-img { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: contain; background: var(--surface-3); }
.bd-gear-img--blank { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--text-muted); }
.bd-gear-top strong { display: block; font-size: 14px; }
.bd-gear-kind { font-size: 11px; }
.bd-gear-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-dim); }
.bd-buffie { margin: 6px 0 0; padding: 6px 8px; border-radius: 6px; background: rgba(255, 209, 102, 0.08); border: 1px solid rgba(255, 209, 102, 0.25); font-size: 12.5px; line-height: 1.4; }
.bd-buffie b { color: #ffd166; }
.bd-use { margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.bd-use-bar { height: 6px; margin-bottom: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bd-use-bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* chart */
.bd-chart-wrap { position: relative; }
.bd-chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.bd-grid { stroke: var(--border); stroke-width: 1; }
.bd-ref { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.bd-axis { fill: var(--text-muted); font-size: 13px; }
.bd-line { stroke: var(--primary); stroke-width: 2; }
.bd-dot { fill: var(--primary); stroke: var(--bg-2); stroke-width: 1.5; }
.bd-mark { stroke-width: 1.5; stroke-dasharray: 3 3; }
.bd-mark--buff { stroke: #7ee07a; }
.bd-mark--nerf { stroke: #ff8a80; }
.bd-mark--change, .bd-mark--rework { stroke: #b4b9c6; }
.bd-mark--buffie { stroke: #ffd166; }
.bd-line--gap { stroke-dasharray: 4 4; opacity: 0.5; }
.bd-tip-change--buffie { color: #ffd166; }
.bd-key--buffie::before { border-color: #ffd166; }
.bd-change--buffie { border-left-color: #ffd166; }
.bd-kind--buffie { color: #ffd166; }
.bd-chart-tip { position: absolute; top: 4px; transform: translateX(-50%); padding: 7px 10px; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px; font-size: 12px; line-height: 1.4; pointer-events: none; white-space: nowrap; z-index: 2; }
.bd-chart-tip[hidden] { display: none; }
.bd-tip-change--buff { color: #7ee07a; }
.bd-tip-change--nerf { color: #ff8a80; }
.bd-legend { display: flex; gap: 16px; margin: 10px 0 0; font-size: 12px; color: var(--text-dim); }
.bd-key::before { content: ''; display: inline-block; width: 14px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px dashed; }
.bd-key--buff::before { border-color: #7ee07a; }
.bd-key--nerf::before { border-color: #ff8a80; }
.bd-key--change::before { border-color: #b4b9c6; }

.bd-gran { display: inline-flex; margin-top: 12px; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.bd-gran-btn { padding: 6px 14px; background: transparent; border: 0; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.bd-gran-btn.is-on { background: var(--primary); color: var(--primary-ink); }

/* balance changes */
.bd-toggle { display: inline-block; margin: 12px 0 0; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.bd-changes { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bd-change { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--radius-sm); }
.bd-change--buff { border-left-color: #7ee07a; }
.bd-change--nerf { border-left-color: #ff8a80; }
.bd-change--change, .bd-change--rework { border-left-color: #ffd166; }
.bd-change--release { border-left-color: #9ecbff; }
.bd-change-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bd-kind { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-3); }
.bd-kind--buff { color: #7ee07a; }
.bd-kind--nerf { color: #ff8a80; }
.bd-kind--change, .bd-kind--rework { color: #ffd166; }
.bd-kind--release { color: #9ecbff; }
.bd-change ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.bd-impact { margin: 8px 0 0; font-size: 12.5px; }
.bd-delta i { font-style: normal; font-weight: 700; }
.bd-delta i.up { color: #7ee07a; }
.bd-delta i.down { color: #ff8a80; }

/* maps table */
.bd-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bd-table-wrap { margin-top: 12px; overflow-x: auto; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bd-table th { padding: 8px 10px; text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.bd-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.bd-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bd-mode { margin-left: 8px; font-size: 11px; }

.bd-more { margin-top: 12px; }

/* map cards */
.bd-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.bd-map { overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.bd-map-img { position: relative; height: 96px; background: var(--surface-3) center / cover no-repeat; }
.bd-map-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 15, 0.75)); }
.bd-map-mode { position: absolute; left: 8px; bottom: 6px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: rgba(8, 10, 15, 0.7); font-size: 11px; font-weight: 700; }
.bd-map-rank { position: absolute; right: 8px; top: 8px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 11px; font-weight: 800; }
.bd-map-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.bd-map-body > strong { font-size: 14px; }
.bd-map-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-dim); }
.bd-map-row b { text-align: right; color: var(--text); }
.bd-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bd-bar i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.bd-bar--win i { background: #b4b9c6; }
.bd-bar--win i.is-hot { background: #7ee07a; }
.bd-bar--win i.is-cold { background: #ff8a80; }
.bd-map-body small { font-size: 11px; }

/* tables (maps, players, teammates, opponents) */
.bd-table th.is-sort { cursor: pointer; user-select: none; }
.bd-table th.is-sort:hover, .bd-table th.is-on { color: var(--primary); }
.bd-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.bd-table small { font-size: 11px; }
.bd-map-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.bd-map-cell > span:last-child { display: flex; flex-direction: column; }
.bd-map-thumb { width: 68px; height: 38px; flex: none; border-radius: 6px; background: var(--surface-3) center / cover no-repeat; }
.bd-rate { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 130px; }
.bd-rate b { min-width: 44px; text-align: right; }
.bd-cell-bar { width: 72px; height: 6px; flex: none; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bd-cell-bar i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.bd-cell-bar.is-hot i { background: #7ee07a; }
.bd-cell-bar.is-cold i { background: #ff8a80; }
.bd-top { color: var(--primary); font-weight: 800; }
.bd-table--mini { font-size: 13px; }
.bd-table--mini td, .bd-table--mini th { padding: 7px 8px; }
.bd-rank-col { width: 28px; text-align: center !important; }
.bd-who { display: inline-flex; align-items: center; gap: 8px; }
.bd-table a { color: var(--text); text-decoration: none; font-weight: 600; }
.bd-table a:hover { color: var(--primary); }
.bd-two h3, .bd-four h3 { margin-top: 18px; }
.bd-two > div, .bd-four > div, .bd-card { min-width: 0; }
@media (max-width: 640px) {
    .bd-rate { min-width: 0; }
    .bd-cell-bar { width: 40px; }
    .bd-map-cell { min-width: 150px; }
    .bd-map-thumb { width: 52px; height: 30px; }
}

/* lists */
.bd-list--pics li { grid-template-columns: minmax(0, 1fr) auto auto; }
.bd-list--pics a { display: flex; align-items: center; gap: 8px; }
.bd-mini { width: 30px; height: 30px; flex: none; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.bd-mini--blank { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-muted); }
.bd-rank { width: 18px; flex: none; font-size: 12px; color: var(--text-muted); text-align: center; }
.bd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* (two by two, not four across - the four tables are too wide for that - and one under the other on a phone, see the media queries below;
   an `!important` on the two columns used to keep the phone's single column from ever applying: each table got a 135px column at 360px) */
.bd-four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bd-list { list-style: none; margin: 0; padding: 0; counter-reset: bd; }
.bd-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.bd-list a { color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.bd-list a:hover { color: var(--primary); }
.bd-list .muted { font-size: 12px; }
.bd-list b { min-width: 44px; text-align: right; }

@media (max-width: 900px) {
    .bd-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .bw-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
    .bd-two, .bd-four { grid-template-columns: minmax(0, 1fr); }
    .bd-id { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bd-portrait { width: 72px; height: 72px; }
    .bw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-card { padding: 14px; }
}

/* a phone: each filter takes the full width instead of floating centred at its own width */
@media (max-width: 560px) {
    .bw-filters .fld { flex: 1 1 100%; min-width: 0; }
    .bw-filters .fld:has(input[type="date"]) { flex-basis: calc(50% - 7px); }
    .bw-filters select, .bw-filters input { width: 100%; max-width: none; }
}
