/* Grouped role buttons replace the nested scrolling catalogue. */
.role-picker{width:100%;max-width:760px}
.role-tabs{display:flex;justify-content:center;gap:4px;width:fit-content;max-width:100%;margin:0 auto;padding:4px;background:#f5f0f7;border:1px solid #ece2ef;border-radius:14px}
.role-tabs button{border:0;border-radius:10px;background:transparent;color:#796780;font:inherit;font-size:13px;line-height:1.3;min-height:40px;padding:8px 18px;cursor:pointer}
.role-tabs button[aria-selected="true"]{background:#4f0058;color:#fff;box-shadow:0 2px 5px #4f00581a}
.role-tabs button:focus-visible{outline:3px solid #ac50c1;outline-offset:3px}
body[data-page="search"]:not(.has-results) .role-picker .role-panel{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:8px;max-height:none;overflow:visible;width:100%;padding:0;margin:14px auto 0;min-height:44px}
body[data-page="search"] .role-picker .role-panel[hidden]{display:none}
.role-picker .role-panel button{font-size:13px;line-height:1.35;min-height:40px;padding:8px 14px;white-space:normal;max-width:100%;border-radius:12px}
.role-picker [hidden]{display:none!important}
@media(max-width:760px){
 .role-tabs{width:100%}
 .role-tabs button{flex:1;padding:8px 5px;font-size:12px}
 body[data-page="search"]:not(.has-results) .role-picker .role-panel{gap:6px;margin-top:10px}
 .role-picker .role-panel button{font-size:12px;padding:7px 10px}
 body[data-page="search"]:not(.has-results) .home-below-prompt{overflow:visible;flex-shrink:0}
 body[data-page="search"]:not(.has-results) .role-picker .role-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .role-picker .role-panel button:only-child{grid-column:1/-1;justify-self:center;min-width:110px}
 body[data-page="search"]:not(.has-results) #question{height:44px;min-height:44px;max-height:44px}
 body[data-page="search"]:not(.has-results) .guided-welcome{min-height:26px;margin-top:8px!important}
 body[data-page="search"]:not(.has-results) .latest-report-links{flex-wrap:wrap;justify-content:center;overflow:visible;gap:6px;padding:0}
 body[data-page="search"]:not(.has-results) .latest-report-links>a{min-height:32px;padding:6px 9px;font-size:12px}
 body[data-page="search"]:not(.has-results) .welcome-fina-mark{margin-bottom:12px}
}
@media(max-height:740px){
 body[data-page="search"]:not(.has-results) .guided-welcome{min-height:26px;margin-top:8px!important}
 body[data-page="search"]:not(.has-results) .role-picker .role-panel{margin-top:8px;gap:6px}
}
@media(max-width:760px) and (max-height:740px){
 body[data-page="search"]:not(.has-results) .welcome-fina-mark{display:none}
 body[data-page="search"]:not(.has-results) .welcome-message h2{font-size:14px;line-height:1.3}
 body[data-page="search"]:not(.has-results) #main{gap:6px;padding-top:4px!important}
 body[data-page="search"]:not(.has-results) .search-stage,
 body[data-page="search"]:not(.has-results) .home-below-prompt{gap:6px}
 body[data-page="search"]:not(.has-results) #search-form{padding-block:6px}
 body[data-page="search"]:not(.has-results) .latest-reports h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-page="search"]:not(.has-results) .guided-welcome{margin-bottom:8px!important}
}
/* On phones, keep all titles legible in the page flow, without a nested scroll box. */
@media(max-width:760px){
 html:has(body[data-page="search"]:not(.has-results):not(.mobile-keyboard-open)){height:auto;overflow-y:auto}
 body[data-page="search"]:not(.has-results):not(.mobile-keyboard-open){height:auto;min-height:100dvh;max-height:none;overflow:visible}
 body[data-page="search"]:not(.has-results):not(.mobile-keyboard-open) #main{flex:1 0 auto;overflow:visible;padding:24px 14px!important;gap:16px}
 body[data-page="search"]:not(.has-results):not(.mobile-keyboard-open) .search-stage{flex:none}
 body[data-page="search"]:not(.has-results):not(.mobile-keyboard-open)>.site-legal-footer{position:static;flex-shrink:0;margin-top:auto}
 body[data-page="search"]:not(.has-results):not(.mobile-keyboard-open) .latest-reports h2{position:static;width:auto;height:auto;padding:0;margin:0 0 8px;overflow:visible;clip-path:none;white-space:normal}
}
