/* All selectors belong to search; existing gallery and print rules are unchanged. */
.mbs-header-search { box-sizing:border-box; width:100%; margin:0!important; padding:14px max(20px,calc((100vw - 1340px)/2)); background:#fff8fc; border-bottom:1px solid #eadde7; color:#35142f; }
.mbs-form { width:100%; margin:0; box-sizing:border-box; }
.mbs-form label { display:block; font-weight:700; font-size:16px; margin:0 0 7px; }
.mbs-input-row { display:flex; gap:8px; align-items:stretch; min-width:0; }
.mbs-form input[type=search] { box-sizing:border-box; flex:1 1 auto; min-width:0; width:100%; min-height:48px; padding:11px 14px; border:1px solid #94738b; border-radius:12px; background:#fff; color:#35142f; font:inherit; font-size:16px; appearance:auto; }
.mbs-form button { box-sizing:border-box; flex:0 0 auto; min-height:48px; padding:11px 22px; border:2px solid #a80050; border-radius:12px; background:#a80050; color:#fff; font:inherit; font-size:16px; font-weight:750; cursor:pointer; }
.mbs-form button:hover { background:#85003f; border-color:#85003f; }
.mbs-form :is(input,button):focus-visible, .mbs-mobile-search summary:focus-visible, .mbs-results a:focus-visible { outline:3px solid #35142f; outline-offset:3px; }
.mbs-desktop-search { max-width:780px; margin:0 auto; }
.mbs-desktop-search .mbs-form { display:flex; align-items:center; gap:16px; }
.mbs-desktop-search label { white-space:nowrap; margin:0; }
.mbs-desktop-search .mbs-input-row { flex:1; }
.mbs-mobile-search { display:none; }
.mbs-main { max-width:1400px; margin:30px auto; padding:0 20px; box-sizing:border-box; }
.mbs-results { color:#35142f; min-width:0; }
.mbs-results h1 { font-size:clamp(28px,4vw,42px); line-height:1.15; margin:0 0 24px; }
.mbs-results > .mbs-form { max-width:780px; }
.mbs-results .mbs-status { margin:22px 0 14px; }
.mbs-topic-links { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 24px; }
.mbs-topic-links a, .mbs-pagination a { display:inline-flex; align-items:center; box-sizing:border-box; min-height:44px; padding:8px 15px; border:1px solid #cdb8c8; border-radius:999px; background:#fff8fc; color:#63204d; text-decoration:none; font-weight:650; }
.mbs-topic-links a:hover, .mbs-pagination a:hover { background:#f7dce9; }
.mbs-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.mbs-card { min-width:0; background:white; border:1px solid #eadde7; border-radius:20px; overflow:hidden; box-shadow:0 4px 12px #35142f08; }
.mbs-preview { display:flex; justify-content:center; align-items:center; background:#fff; padding:18px; height:260px; box-sizing:border-box; border-bottom:1px solid #f0e7ed; }
.mbs-preview picture { display:contents; }
.mbs-preview img { display:block; width:100%; height:100%; object-fit:contain; }
.mbs-card-content { padding:18px; }
.mbs-card h2 { font-size:20px; line-height:1.3; margin:0 0 10px; overflow-wrap:anywhere; }
.mbs-card h2 a { color:#35142f; text-decoration:none; }
.mbs-card h2 a:hover { text-decoration:underline; }
.mbs-card .mbg-actions { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.mbs-card .mbg-actions a { box-sizing:border-box; min-height:44px; display:flex; justify-content:center; align-items:center; border-radius:10px; border:1px solid #cdb8c8; padding:9px; color:#63204d; text-decoration:none; font-size:14px; text-align:center; }
.mbs-card .mbg-actions a:hover { background:#fff0f7; }
.mbs-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:18px; margin:28px 0; }
.mbs-empty { background:#fff8fc; border:1px solid #eadde7; border-radius:18px; padding:22px; margin:24px 0; overflow-wrap:anywhere; }
.mbs-empty h2, .mbs-discover h2 { font-size:23px; margin:0 0 12px; }
.mbs-empty p { margin:0; }
.mbs-discover { margin-top:28px; }
@media (max-width:1050px) { .mbs-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
 .mbs-header-search { padding:10px 16px; }
 .mbs-desktop-search { display:none; }
 .mbs-mobile-search { display:block; }
 .mbs-mobile-search summary { display:flex; gap:9px; align-items:center; width:fit-content; min-height:44px; box-sizing:border-box; padding:8px 16px; border:1px solid #cdb8c8; border-radius:12px; font-weight:700; cursor:pointer; list-style:none; }
 .mbs-mobile-search summary::-webkit-details-marker { display:none; }
 .mbs-mobile-search[open] summary { margin-bottom:14px; }
 .mbs-mobile-search summary::after { content:'+'; margin-left:10px; }
 .mbs-mobile-search[open] summary::after { content:'−'; }
 .mbs-main { padding:0 16px; margin:22px auto; }
 .mbs-form button { padding:10px 14px; }
 .mbs-results h1 { margin-bottom:20px; }
}
@media (max-width:460px) {
 .mbs-grid { grid-template-columns:minmax(0,1fr); }
 .mbs-preview { height:280px; }
}
@media print { .mbs-header-search, .mbs-form { display:none!important; } }
