/* Sarana: Mobile Search – Bride/Groom illustrated selector.
   Add AFTER existing wedding-theme and mobile-nav-search CSS.
   Only targets the Browse quick-search area, never registration/profile/admin.
   SVG images are local files; native radio & form submission remain unchanged. */
@media screen and (max-width:767px) {
  main.browse-page.container.section {
    padding-top: 11px !important;
    padding-inline: 14px !important;
    padding-bottom: 86px !important;
  }
  main.browse-page > .eyebrow {
    display: inline-block !important;
    padding: 4px 9px !important;
    margin: 0 0 4px !important;
    border-radius: 999px !important;
    background: #f9e5ed !important;
    color: #8b2752 !important;
    font-size: 9px !important;
    letter-spacing: 1.1px !important;
    font-weight: 800 !important;
  }
  main.browse-page > h1 {
    font: 650 clamp(25px, 6.9vw, 32px)/1.13 Georgia,'Times New Roman',serif !important;
    letter-spacing: -.55px !important;
    color: #56213e !important;
    margin: 5px 0 5px !important;
  }
  main.browse-page > p.muted {
    font-size: 12px !important;
    line-height: 1.36 !important;
    color: #76586a !important;
    margin: 0 0 7px !important;
    max-width: 40ch;
  }
  main.browse-page .browse-match-search {
    width: 100% !important;
    max-width: 510px !important;
    margin: 8px auto 14px !important;
  }
  main.browse-page .match-search-card {
    position: relative !important;
    isolation: isolate;
    background: linear-gradient(148deg,#fffdfa 3%,#fff4f9 61%,#fef5e4 100%) !important;
    border: 1px solid #e8d4dd !important;
    border-top: 3px solid #cda45d !important;
    border-radius: 19px !important;
    padding: 13px 13px 14px !important;
    box-shadow: 0 12px 25px rgba(102,33,72,.13),0 3px 0 rgba(204,164,103,.08),inset 0 1px #fff !important;
    overflow: hidden;
  }
  main.browse-page .match-search-card::before {
    content: '♡';
    position: absolute;
    right: 10px;
    top: 6px;
    font: 34px/1 Georgia,serif;
    color: rgba(180,98,133,.10);
    pointer-events: none;
    z-index: -1;
  }
  main.browse-page .match-search-heading {
    gap: 9px !important;
    margin-bottom: 9px !important;
  }
  main.browse-page .match-search-emblem {
    flex:0 0 37px !important;
    width:37px !important;
    height:37px !important;
    border:1px solid #e5c99f !important;
    border-radius: 50% !important;
    background:#fff6e9 !important;
    box-shadow: 0 2px 7px rgba(108,35,74,.12);
  }
  main.browse-page .match-search-emblem img { width:34px !important; height:34px !important; object-fit:contain !important; }
  main.browse-page .match-search-brand {
    color:#a27241 !important;
    font-size: 8.5px !important;
    letter-spacing: 1.5px !important;
  }
  main.browse-page .match-search-title {
    color:#602343 !important;
    font-size: 21px !important;
    line-height:1.07 !important;
  }
  main.browse-page .match-search-fields {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    align-items:stretch !important;
    gap: 10px !important;
  }
  main.browse-page .match-search-group legend {
    margin: 0 0 5px !important;
    color:#572c42 !important;
    font-size: 12px !important;
    font-weight:800 !important;
  }
  main.browse-page .match-search-options {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    align-items:stretch !important;
    gap:9px !important;
  }
  main.browse-page .match-search-choice { position:relative !important; min-width:0; }
  main.browse-page .match-search-choice input[type="radio"] {
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    opacity:0 !important;
    cursor:pointer;
    z-index:2;
  }
  main.browse-page .match-search-choice-face {
    position:relative;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    min-height:94px !important;
    width:100% !important;
    padding:7px 6px 9px !important;
    border:1.5px solid #e2cfda !important;
    border-radius:14px !important;
    background:linear-gradient(135deg,#fffefb,#fff1f7) !important;
    color:#65304e !important;
    box-shadow:0 3px 0 rgba(112,41,78,.08),inset 0 1px 1px #fff !important;
    font-size:15px !important;
    font-weight:800 !important;
    line-height:1.1 !important;
    transition:background .15s,border-color .15s,box-shadow .15s,transform .15s;
    cursor:pointer;
  }
  /* Replace missing font-dependent ♀/♂ with locally bundled SVG artwork. */
  main.browse-page .match-search-choice-face > span[aria-hidden="true"] { display:none !important; }
  main.browse-page .match-search-choice-face::before {
    content:'';
    display:block;
    flex:none;
    width:51px;
    height:51px;
    border-radius:50%;
    background-position:center;
    background-size:contain;
    background-repeat:no-repeat;
    filter:drop-shadow(0 2px 3px rgba(89,37,62,.15));
  }
  main.browse-page .match-search-choice input[value="woman"] + .match-search-choice-face::before { background-image:url('ml-bride-icon.svg'); }
  main.browse-page .match-search-choice input[value="man"] + .match-search-choice-face::before { background-image:url('ml-groom-icon.svg'); }
  main.browse-page .match-search-choice input:checked + .match-search-choice-face {
    border-color:#9d3765 !important;
    color:#6b1847 !important;
    background:linear-gradient(135deg,#ffe9f2,#fff2d7) !important;
    box-shadow:0 3px 0 rgba(126,38,81,.18),0 0 0 2px #d9a96d,inset 0 1px #fff !important;
    transform:translateY(-1px);
  }
  main.browse-page .match-search-choice input:checked + .match-search-choice-face::after {
    content:'✓';
    display:grid;place-items:center;
    width:19px;height:19px;
    position:absolute;right:7px;top:7px;
    font:800 11px/1 system-ui,sans-serif;
    color:white;background:#84234d;border:2px solid white;border-radius:100%;
    box-shadow:0 1px 5px #862a4b3b;
  }
  main.browse-page .match-search-choice input:focus-visible + .match-search-choice-face { outline:3px solid #b5783f !important;outline-offset:3px !important; }
  main.browse-page .match-search-group:nth-child(2) .match-search-options { gap:10px !important; }
  main.browse-page .match-search-options label:not(.match-search-choice) {
    font-size:12px !important;
    font-weight:750 !important;
    gap:4px !important;
  }
  main.browse-page .match-search-options select,
  main.browse-page .match-search-options button[aria-label="Minimum age"],
  main.browse-page .match-search-options button[aria-label="Maximum age"] {
    min-height:45px !important;
    height:45px !important;
    background:linear-gradient(145deg,#fffdf8,#fff0f7) !important;
    border:1px solid #dcbbca !important;
    border-radius:11px !important;
    padding:8px 11px !important;
    font-size:16px !important;
    font-weight:800 !important;
    box-shadow:0 2px 3px #a8586c13 !important;
  }
  main.browse-page .match-search-submit {
    min-height:49px !important;
    margin:2px 0 0 !important;
    border-radius:12px !important;
    font-size:16px !important;
    font-weight:800 !important;
    background:linear-gradient(115deg,#b6346d,#7c1f52 72%,#651b49) !important;
    box-shadow:0 4px 0 #62193e,0 7px 14px #821b4a35,inset 0 1px #fff6 !important;
  }
  main.browse-page .match-search-submit svg { color:#f6ce7b !important; }
  main.browse-page .more-filters {
    margin-top:9px !important;
    border-radius:13px !important;
    border:1px solid #ead3df !important;
    background:linear-gradient(130deg,#fffefa,#fff4fa) !important;
    box-shadow:0 4px 10px #742b5c12 !important;
  }
  main.browse-page .more-filters summary {
    min-height:45px !important;
    padding:9px 13px !important;
    font-size:14px !important;
    color:#6b2850 !important;
  }
}
@media screen and (max-width:767px) and (max-height:710px) {
 main.browse-page > .eyebrow { display:none !important; }
 main.browse-page > p.muted { display:none !important; }
 main.browse-page > h1 { margin-bottom:5px !important; }
 main.browse-page .match-search-choice-face { min-height:80px !important; }
 main.browse-page .match-search-choice-face::before { width:43px;height:43px; }
 main.browse-page .match-search-card { padding:9px 11px 11px !important; }
 main.browse-page .match-search-fields {gap:7px !important;}
}
@media (prefers-reduced-motion:reduce){
 main.browse-page .match-search-choice-face{transition:none!important;transform:none!important}
}
