.md-filter{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}.md-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.md-fields label{display:grid;gap:4px;font-weight:600}.md-fields input,.md-fields select{width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit}.md-checks{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0}.md-filter small{display:block;margin-top:8px}.md-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.md-card{--card:#344c63;--fg:#fff;--link:#ffeb3b;background:var(--card);color:var(--fg);border-radius:12px;overflow:hidden;overflow-wrap:anywhere;box-shadow:0 4px 12px #0002}.md-card a{color:var(--link)}.md-heading{text-align:center;padding:12px}.md-heading h2{font-size:21px}.md-heading small,.md-body small{display:block}.md-flag{height:18px;vertical-align:middle}.md-photo{display:flex;align-items:center;justify-content:center;height:220px;background:#0002}.md-photo img{width:100%;height:100%;object-fit:contain}.md-status{text-align:center;padding:6px;font-weight:bold}.md-body{padding:14px;display:grid;gap:8px}.md-body dl{display:grid;grid-template-columns:1fr 1.4fr;gap:4px 8px;margin:0}.md-body dd{margin:0}.md-body dt{opacity:.9}.md-body progress{width:100%;accent-color:#83ce96}.md-body h3{font-size:16px;margin:10px 0 0}.md-history{display:flex;justify-content:space-between;gap:6px;padding:6px 8px;border-radius:5px;font-size:13px}.md-card .good{background:#286b40;color:white}.md-card .warn{background:#985016;color:white}.md-card .bad{background:#a82e36;color:white}.md-card .neutral{background:#ffeb9b;color:#302a12}.md-profile{display:block;text-align:center;border:1px solid currentColor;border-radius:6px;padding:8px}.md-report{font-size:12px;text-align:center}.md-stars{color:var(--link)}body[data-theme=dark] .md-card{--card:#242731;--link:#a9c8ff}body[data-theme=minimal] .md-card{--card:#eee;--fg:#252525;--link:#175a9c}body[data-theme=country] .md-card{--card:#465c42;--link:#f5dfa1}body[data-theme=vintage] .md-card{--card:#634c38;--fg:#fff5e5;--link:#ffda94}body[data-theme=coastal] .md-card{--card:#286773;--link:#c4f4ed}@media(max-width:850px){.md-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.md-grid{grid-template-columns:1fr}.md-photo{height:240px}}

/* Restore the original MegaShoot member-card colours and depth. */
.md-grid{gap:28px 22px;padding-bottom:24px;align-items:start}
.md-card{--card:#f9f7b8;--fg:#25394c;--link:#234e78;box-shadow:rgb(38,57,77) 0px 20px 30px -10px;border:1px solid #0002}
.md-card:has(> .md-status.neutral){--card:#d6efc8}
.md-card:has(> .md-status.warn){--card:#f5c28e}
.md-card .md-heading{background:#ffffffa6;margin:8px;border-radius:7px}
.md-card .md-photo{background:transparent;padding:10px 12px 20px}
.md-card .md-photo img{width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;box-shadow:rgb(38,57,77) 0px 20px 30px -10px;border-radius:4px}
.md-card .md-stars{color:#805600}
.md-card .md-profile{background:#344c63;color:#ffeb3b;border-color:#344c63}
.md-card .md-body progress{accent-color:#286b40}
/* Keep the alternative themes legible and preserve their existing palettes. */
body[data-theme=dark] .md-card .md-heading{background:#ffffff0d}
body[data-theme=dark] .md-card .md-stars{color:#ffdb45}
body[data-theme=country] .md-card .md-heading,body[data-theme=vintage] .md-card .md-heading,body[data-theme=coastal] .md-card .md-heading{background:#ffffff12}
body[data-theme=country] .md-card .md-stars,body[data-theme=vintage] .md-card .md-stars,body[data-theme=coastal] .md-card .md-stars{color:#ffdb45}
body[data-theme=dark] .md-card:has(> .md-status.neutral){--card:#294437}
body[data-theme=dark] .md-card:has(> .md-status.warn){--card:#553b2b}
body[data-theme=country] .md-card:has(> .md-status.neutral){--card:#355a3b}
body[data-theme=vintage] .md-card:has(> .md-status.neutral){--card:#405a3c}
body[data-theme=coastal] .md-card:has(> .md-status.neutral){--card:#285b48}
body[data-theme=country] .md-card:has(> .md-status.warn),body[data-theme=vintage] .md-card:has(> .md-status.warn),body[data-theme=coastal] .md-card:has(> .md-status.warn){--card:#754521}
body[data-theme=minimal] .md-card:has(> .md-status.neutral){--card:#e5f3df}
body[data-theme=minimal] .md-card:has(> .md-status.warn){--card:#f9e3ce}

/* Put the ten-star rating on its own line, above the score and review count. */
.md-heading .md-stars { display: block; margin: 0 0 .25rem; white-space: nowrap; line-height: 1.4; }

/* Separate the directory search panel from member cards. */
.md-filter{background:#e5e5e5;color:#344c63;border:1px solid #c8cdd2;box-shadow:0 6px 16px #26394d20;margin-bottom:24px}
.md-filter .md-fields input,.md-filter .md-fields select{background:#fff;color:#344c63;border-color:#aab4bd}
.md-filter label,.md-filter small{color:#344c63}
.md-filter a{color:#234e78}
.md-filter input::placeholder{color:#667582;opacity:1}
.md-filter input:focus-visible,.md-filter select:focus-visible{outline:2px solid #1d74b6;outline-offset:2px}
