/* Public small-screen layout. Desktop records, colors and rating markup are unchanged. */
@media(max-width:700px){
 .masthead>.container{height:auto;min-height:64px;gap:8px;padding-top:8px;padding-bottom:8px}
 .masthead>.container>.brand{gap:6px;font-size:19px;letter-spacing:-.5px;flex:0 0 auto}
 .masthead .brandmark{width:32px;height:32px;font-size:18px}
 .masthead .brand small{font-size:6.5px;letter-spacing:.5px;margin-top:4px}
 .masthead .head-actions{gap:4px}
 .masthead .head-actions>.button{min-height:44px;font-size:11px;padding:8px 6px}
 .masthead .head-actions .head-link:nth-child(2){min-height:44px;align-items:center}
 .public-navigation .nav-link{min-height:44px}
 main.container .button,main.container button{min-height:44px}
 main.container input:not([type="checkbox"]):not([type="radio"]),main.container select,main.container textarea{font-size:16px;min-height:44px}
 .public-filter-toggle{display:flex;justify-content:space-between;width:100%;margin-bottom:12px}
 .public-filter-panel:not(.filters-open)>.public-filter-content{display:none}
 .directory-layout>aside,.directory-layout>div,.content-layout>div,.content-layout>article,.content-layout>aside{min-width:0}
 .directory-layout .filter-panel details[open]{grid-template-columns:repeat(2,minmax(0,1fr))}
 .directory-layout .filter-panel details[open]>label:first-of-type,.directory-layout .filter-panel details[open]>label:last-of-type{grid-column:1/-1}
 .directory-layout .filter-panel label{margin-bottom:0}
 .directory-layout .filter-panel .button{min-width:0}
 .broker-name,.broker-meta,.broker-facts,.broker-facts>span{min-width:0;overflow-wrap:anywhere}
 .profile-heading-layout .profile-hero{display:grid;grid-template-columns:148px minmax(0,1fr);gap:8px 14px;align-items:start}
 .profile-heading-layout .profile-hero>.broker-regulation-mark{grid-column:1;grid-row:1/3;align-self:start}
 .profile-heading-layout .profile-hero>.grow{display:contents}
 .profile-heading-layout .profile-hero>.grow>.actions:first-child{grid-column:2;grid-row:1;gap:6px;margin:0}
 .profile-heading-layout .profile-hero>.grow>h1{grid-column:2;grid-row:2;margin:0;overflow-wrap:anywhere}
 .profile-heading-layout .profile-hero>.grow>.profile-review-line{grid-column:1/-1;grid-row:3;margin:6px 0 0}
 .profile-heading-layout .profile-hero>.grow>.muted{grid-column:1/-1;grid-row:4;overflow-wrap:anywhere}
 .profile-heading-layout .profile-hero>.grow>.actions:last-child{grid-column:1/-1;grid-row:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
 .profile-heading-layout .profile-hero>.grow>.actions:last-child>.button{min-height:44px;width:100%;font-size:13px;padding:9px 10px}
 .profile-heading-layout .profile-hero>.grow>.actions:last-child>.button:last-child:nth-child(odd),.profile-heading-layout .profile-hero>.grow>.actions:last-child>small{grid-column:1/-1}
 .profile-heading-layout .profile-hero .broker-logo.large{width:148px;height:128px;flex-basis:148px}
 .page-head h1,.article-panel>h1,.news-card h3{overflow-wrap:anywhere}
 .reviews-section,.source-review,.legacy-review-anchor,.tabs{scroll-margin-top:96px}
 .review-section-heading{flex-wrap:wrap;gap:12px}
 .review-section-heading .button{min-height:44px;font-size:13px}
 .review-card-footer{flex-wrap:wrap}
 .home-market-home .home-broker-list{grid-template-columns:1fr;grid-auto-rows:auto}
 .home-market-home .home-broker-list>.broker-card:nth-child(n){border-right:0;border-bottom:1px solid var(--line)}
 .home-market-home .home-broker-list>.broker-card:last-child{border-bottom:0}
 .home-remediation .home-news-feed-card{grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:start}
 .home-news-feed-image{width:112px;height:80px;aspect-ratio:auto}
 .home-remediation .home-news-feed-image .cover,.home-remediation .home-news-feed-image .media-fallback{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
 .home-market-home .home-review-controls .button{min-height:44px;min-width:44px;font-size:14px}
 .home-market-home .home-review-controls{gap:8px}
 .home-review-footer{overflow-wrap:anywhere}
 .content-layout .grid-two:has(>.news-card){grid-template-columns:1fr}
 .compare-tray{max-width:calc(100% - 24px);gap:8px;padding:10px;flex-wrap:wrap;justify-content:center;white-space:normal}
 .compare-tray .button{min-height:44px;font-size:12px}
 body:has(.compare-tray) .footer{padding-bottom:96px}
}
@media(max-width:600px){
 .profile-heading-layout .profile-hero{grid-template-columns:112px minmax(0,1fr)}
 .profile-heading-layout .profile-hero .broker-logo.large{width:112px;height:100px;flex-basis:112px}
}

/* The outer mobile filter button owns disclosure; source GET fields stay intact. */
@media(max-width:700px){
 .directory-layout .public-filter-panel .filter-panel details[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0}
 .directory-layout .public-filter-panel .filter-panel details[open]::details-content{display:contents}
 .directory-layout .public-filter-panel .filter-panel details>summary{display:none}
 .directory-layout .public-filter-panel .filter-panel label{display:block;width:100%;min-width:0;margin:0}
 .directory-layout .public-filter-panel .filter-panel input,.directory-layout .public-filter-panel .filter-panel select{width:100%;max-width:100%;min-width:0}
}
@media(max-width:480px){
 .directory-layout .public-filter-panel .filter-panel details[open]{grid-template-columns:1fr}
 .directory-layout .public-filter-panel .filter-panel details[open]>label{grid-column:1/-1}
}
/* Compact mobile masthead with native disclosure navigation. */
.mobile-header-menu{display:none}
@media(max-width:700px){
.php-public .masthead{position:relative;z-index:30;background:var(--mast,#323947)}
.php-public .masthead>.container{position:relative;display:flex;flex-wrap:nowrap;justify-content:space-between;width:100%;height:56px;min-height:56px;padding:0 0 0 16px;gap:12px}
.php-public .masthead>.container>.brand{min-width:0;gap:7px;font-size:23px;line-height:1;letter-spacing:-.7px}
.php-public .masthead .brandmark{width:32px;height:32px;border-radius:5px;font-size:19px;flex-shrink:0;background:var(--nav,#ffd733)}
.php-public .masthead .brand small,.php-public .masthead .brand-tag,.php-public .masthead .search-wrap,.php-public .masthead .head-actions{display:none}
.php-public .public-navigation{display:none}
.php-public .mobile-header-menu{display:block;flex:0 0 56px;align-self:stretch;margin:0;color:#10191e}
.mobile-header-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:56px;height:56px;background:var(--nav,#ffd733);color:#10191e;border:0;border-radius:0}
.mobile-header-menu>summary::-webkit-details-marker{display:none}
.mobile-header-menu>summary::marker{content:""}
.mobile-header-menu[open]>summary{background:#ffe36d}
.mobile-header-menu>summary:focus-visible{outline:3px solid #fff;outline-offset:-5px}
.mobile-header-drawer{position:absolute;top:100%;left:0;right:0;background:#fff;color:#15202c;border-bottom:1px solid #dce3ed;box-shadow:0 8px 16px #0d17221a;padding:8px 16px 16px;max-height:calc(100dvh - 56px);overflow-y:auto}
.mobile-header-drawer>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.mobile-header-drawer>nav>a{display:flex;align-items:center;min-height:46px;padding:10px;border-bottom:1px solid #edf0f4;font-size:14px;font-weight:600;line-height:1.3;color:#15202c}
.mobile-header-drawer>nav>a.active{background:#fff9da;border-bottom-color:#ffd733}
.mobile-header-account{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.mobile-header-account>a{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;border:1px solid #d6dde6;border-radius:6px;padding:9px 6px;font-size:13px;font-weight:600;color:#15202c;white-space:nowrap}
.mobile-header-account>a:last-child{background:var(--nav,#ffd733);border-color:#ffd733}
}

@media(max-width:700px){.php-public header.masthead>.container{padding-left:16px}}
