/* Shared verified account header for athletes, guardians and Discovery users.
   Existing filename/classes retained to preserve the approved Discovery layout. */
.scv-global-header .scv-requester-header-discover { display:none; }
@media(max-width:360px) {
 .scv-global-header.scv-requester-header:is([data-scv-account-role=requester],[data-scv-account-role=scout_club]) .scv-header-search-toggle { display:none!important; }
}
@media(max-width:700px) {
 .scv-global-header .scv-requester-header-discover:not([hidden]) { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:44px; min-width:44px; height:44px; min-height:44px; flex:0 0 44px; padding:0; border:1px solid #d5e3f4; border-radius:999px; background:#fff; color:#17345c; text-decoration:none; touch-action:manipulation; }
 .scv-requester-header-discover svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
 .scv-global-header .scv-requester-header-discover[aria-current=page] { background:#edf4ff; color:#194fb7; }
 .scv-requester-header-discover:focus-visible { outline:3px solid #6494f3; outline-offset:2px; }
 .scv-global-header:has(.scv-requester-header-discover:not([hidden])) .scv-global-nav { column-gap:6px; }
 .scv-global-header:has(.scv-requester-header-discover:not([hidden])) .scv-mobile-header-actions { gap:6px; }
}
/* Legacy profile paint containment clipped the dropdown below the header. */
.scv-global-header[data-scv-account-header]{contain:layout style}
.scv-global-header.scv-account-managed .scv-global-actions:not(.scv-account-visitor){display:none!important}
/* The standalone Requests controller can move its superseded avatar into the
   mobile action row. Only the shared My Account control occupies header space. */
.scv-global-header:is(.scv-account-managed,.scv-account-pending) .requests-account-menu{display:none!important}
.scv-global-header .scv-account-visitor[hidden]{display:none!important}
.scv-account-managed .scv-mobile-context-link{display:none!important}
.scv-account-pending .scv-mobile-context-link{display:none!important}
.scv-account-managed .discovery-mobile-return,.scv-account-pending .discovery-mobile-return{display:none!important}
.scv-account-managed .scv-account-visitor{grid-area:actions;justify-self:end}
.scv-account-menu-identity{display:grid;gap:2px;padding:6px 10px 8px;border-bottom:1px solid #e0e8f2;margin-bottom:2px;overflow-wrap:anywhere;white-space:normal}
.scv-account-menu-identity strong{font-size:14px;line-height:1.35;font-weight:650;color:#17345c}
.scv-account-menu-identity>span{font-size:12px;line-height:1.4;color:#607189}
.scv-account-context-actions{width:min(1300px,calc(100% - 32px));margin:12px auto 16px;display:flex;align-items:center;gap:8px}
.scv-account-context-actions[hidden]{display:none!important}
.scv-account-context-return{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #d5e3f4;border-radius:10px;background:#fff;color:#21456f;font-family:inherit;font-size:14px;font-weight:600;line-height:1.35;text-decoration:none}
.scv-account-context-return:focus-visible{outline:3px solid #6494f3;outline-offset:2px}
/* Verified athlete-owner previews keep their return action beside the identity. */
body.public-profile-page .hero-identity-head.scv-owner-preview-card-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px 18px}
body.public-profile-page .scv-owner-preview-card-head>.hero-identity-primary{min-width:0}
body.public-profile-page .scv-owner-preview-card-head>.scv-owner-preview-card-actions{grid-column:2;grid-row:1;justify-self:end;align-self:start;width:auto;max-width:100%;margin:0}
body.public-profile-page .scv-owner-preview-card-actions>.scv-account-context-return{gap:6px;white-space:nowrap}
body.public-profile-page .scv-owner-return-label-short{display:none}
@media(max-width:700px){
 body.public-profile-page .hero-identity-head.scv-owner-preview-card-head{grid-template-columns:minmax(0,1fr);gap:10px}
 body.public-profile-page .scv-owner-preview-card-head>.scv-owner-preview-card-actions{grid-column:1;grid-row:1}
 body.public-profile-page .scv-owner-preview-card-head>.hero-identity-primary{grid-column:1;grid-row:2}
 body.public-profile-page .scv-owner-return-label-full{display:none}
 body.public-profile-page .scv-owner-return-label-short{display:inline}
}
.scv-global-header[data-scv-account-minimal] .scv-global-nav{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions"}
.scv-global-header[data-scv-account-minimal] .scv-account-visitor .scv-global-create{display:none}
.scv-global-header.scv-account-pending .scv-global-actions{visibility:hidden}
.scv-account-placeholder{grid-area:actions;justify-self:end;display:block;width:56px;height:44px;border:1px solid #d5e3f4;border-radius:999px;background:#f4f7fc;flex:0 0 56px}
.scv-account-placeholder::after{content:'';display:block;width:28px;height:28px;margin:7px;border-radius:50%;background:#e3ebf6}
.scv-global-header:not(.scv-account-pending) .scv-account-placeholder{display:none}
.scv-account-placeholder>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.scv-account-placeholder.scv-account-unavailable{min-height:var(--scv-account-target,44px);padding:0;color:#21456f;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer}
.scv-account-placeholder.scv-account-unavailable::after{display:none}
.scv-account-placeholder.scv-account-unavailable:disabled{cursor:wait}
.scv-account-placeholder.scv-account-unavailable:focus-visible{outline:3px solid #6494f3;outline-offset:2px}
.scv-account-refresh-retry[hidden]{display:none!important}
.scv-global-header.scv-requester-header .scv-global-actions,
.scv-global-header .scv-requester-account[hidden]{display:none!important}
.scv-requester-account{grid-area:actions;justify-self:end;position:relative;flex:0 0 auto;color:#17345c;font-family:inherit}
.scv-requester-account summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:var(--scv-account-target,44px);padding:3px 10px 3px 4px;border:1px solid #d5e3f4;border-radius:999px;background:#fff;list-style:none;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;line-height:1.2}
.scv-requester-account summary::-webkit-details-marker{display:none}
.scv-requester-account summary:focus-visible,.scv-requester-account-panel :is(a,button):focus-visible{outline:3px solid #6494f3;outline-offset:2px}
.scv-requester-account-avatar{position:relative;display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;overflow:hidden;background:#eef5ff;color:#21456f;font-size:13px;font-weight:700}
.scv-requester-account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:white}
.scv-requester-account-avatar[data-organization="true"] img{object-fit:contain;padding:2px}
.scv-requester-account-chevron{font-size:12px;line-height:1}
.scv-requester-account-label{white-space:nowrap;flex:0 0 auto}
.scv-requester-account[open] .scv-requester-account-chevron{transform:rotate(180deg)}
.scv-requester-account-dot{position:absolute;top:5px;left:30px;width:7px;height:7px;border:1px solid #fff;border-radius:50%;background:#dc2626}
.scv-requester-account-dot[hidden],.scv-requester-message-count[hidden],.scv-requester-account-status[hidden]{display:none!important}
.scv-requester-account-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(250px,calc(100vw - 28px));max-height:calc(100vh - var(--scv-header-height,70px) - 28px);max-height:calc(100dvh - var(--scv-header-height,70px) - 28px);overflow:auto;padding:6px;border:1px solid #d7e2ef;border-radius:14px;background:#fff;box-shadow:0 8px 24px #0718331a}
.scv-global-header .scv-requester-account-panel :is(a,button){display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:6px 10px;border:0;border-radius:8px;text-decoration:none;background:#fff;color:#21456f;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;white-space:normal;text-align:left;cursor:pointer}
.scv-global-header .scv-requester-account-panel :is(a,button):hover,
.scv-global-header .scv-requester-account-panel a[aria-current=page]{background:#edf4ff;color:#194fb7}
.scv-global-header .scv-requester-account-panel .scv-requester-edit-group{border-top:1px solid #e0e8f2;border-radius:0;margin-top:4px}
.scv-global-header .scv-requester-account-panel .scv-requester-logout{border-top:1px solid #e0e8f2;border-radius:0;color:#9f1239;margin-top:4px}
.scv-requester-message-count{min-width:22px;padding:2px 5px;border-radius:999px;background:#edf4ff;color:#17478b;font-size:12px;text-align:center}
.scv-requester-account-status{margin:6px 10px;font-size:12px;line-height:1.4;color:#9f1239;white-space:normal}
.scv-account-site,.scv-account-menu-backdrop{display:none}
.scv-account-menu-backdrop[hidden],.scv-account-site-links[hidden]{display:none!important}
@media(min-width:1101px){
 .scv-global-header.scv-account-pending .scv-global-nav{grid-template-columns:180px 300px minmax(0,1fr) 164px}
 .scv-global-header.scv-account-pending.scv-header-focused .scv-global-nav{grid-template-columns:180px minmax(0,1fr) 164px;grid-template-areas:"brand links actions"}
 .scv-global-header.scv-account-pending .scv-global-actions{display:none!important}
 .scv-global-header.scv-requester-header .scv-global-nav{grid-template-columns:180px 300px minmax(0,1fr) 164px}
 .scv-global-header.scv-requester-header.scv-header-focused .scv-global-nav{grid-template-columns:180px minmax(0,1fr) 164px;grid-template-areas:"brand links actions"}
}
@media(min-width:1101px) and (max-width:1240px){
 .scv-global-header.scv-account-pending .scv-global-nav{grid-template-columns:164px 270px minmax(0,1fr) 164px}
 .scv-global-header.scv-account-pending.scv-header-focused .scv-global-nav{grid-template-columns:164px minmax(0,1fr) 164px}
 .scv-global-header.scv-requester-header .scv-global-nav{grid-template-columns:164px 270px minmax(0,1fr) 164px}
 .scv-global-header.scv-requester-header.scv-header-focused .scv-global-nav{grid-template-columns:164px minmax(0,1fr) 164px}
}
@media(max-width:1100px){
 .scv-account-placeholder,.scv-requester-account{order:3;margin-left:0}
 .scv-global-header:is(.scv-account-pending,.scv-requester-header) .scv-mobile-header-actions{order:2;margin-left:auto}
 .scv-global-header:is(.scv-account-pending,.scv-requester-header) .scv-mobile-menu-toggle-v40{display:none!important}
 .scv-global-header[data-scv-account-minimal] :is(.scv-account-placeholder,.scv-requester-account){margin-left:auto}
 .scv-requester-account-label{display:none}
 .scv-requester-account summary{min-width:56px;padding:3px 6px;gap:4px}
 .scv-requester-account-avatar{width:28px;height:28px;flex-basis:28px}
 .scv-requester-account-panel{position:fixed;right:14px;top:calc(var(--scv-header-height,64px) + 8px);overscroll-behavior:contain}
 .scv-requester-account-dot{top:4px;left:23px}
 .scv-account-site{display:block;border-top:1px solid #e0e8f2;margin-top:4px}
 .scv-global-header .scv-account-site-toggle[aria-expanded=true]>span:last-child{transform:rotate(180deg)}
 .scv-account-site-links{padding-left:8px}
 .scv-account-menu-backdrop{display:block;position:fixed;inset:0;z-index:2147481500;background:rgb(8 25 52 / 10%)}
}
/* Guest hamburger retains its existing links/actions and matches the account menu. */
@media(max-width:1100px){
 .scv-global-header[data-scv-account-header]~.scv-mobile-menu-backdrop-v40{background:rgb(8 25 52 / 16%);backdrop-filter:none;-webkit-backdrop-filter:none}
 .scv-global-header[data-scv-account-header]~.scv-mobile-menu-panel-v40{width:min(250px,calc(100vw - 28px));padding:8px;border-radius:14px;background:#fff;border-color:#d7e2ef;box-shadow:0 12px 36px #07183326;overscroll-behavior:contain}
 .scv-global-header[data-scv-account-header]~.scv-mobile-menu-panel-v40 :is(a,button){min-height:44px;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:600;line-height:1.3;color:#21456f}
 .scv-global-header[data-scv-account-header]~.scv-mobile-menu-panel-v40 a[aria-current=page]{background:#edf4ff;color:#194fb7}
 .scv-global-header[data-scv-account-header]~.scv-mobile-menu-panel-v40 :is(a,button):focus-visible{outline:3px solid #6494f3;outline-offset:2px}
 .scv-global-header[data-scv-account-minimal] .scv-global-nav{display:flex;justify-content:space-between}
 .scv-global-header[data-scv-account-minimal] .scv-account-visitor{display:flex}
}
/* All roles use the shared logo/spacing rules, including narrow phones. */
@media(max-width:360px){
 /* Keep the shared logo and 44px controls: Search remains in the site menu. */
 .scv-global-header[data-scv-account-header] .scv-header-search-toggle{display:none!important}
 /* Removing the extra hamburger leaves room for Search beside the avatar. */
 .scv-global-header.scv-requester-header .scv-header-search-toggle,
 .scv-global-header.scv-account-pending .scv-header-search-toggle{display:inline-flex!important}
}
.scv-mobile-menu-panel-v40 .scv-narrow-menu-search{display:none!important}
@media(max-width:360px){
 .scv-mobile-menu-panel-v40 .scv-narrow-menu-search{display:flex!important}
}
/* Compact Search shares the account menu's subtle dimming, not its header size. */
@media(max-width:1100px){
 .scv-header-search-backdrop{background:rgb(8 25 52 / 16%);backdrop-filter:none;-webkit-backdrop-filter:none}
 .scv-header-search-panel{box-sizing:border-box;padding:12px;border-radius:16px;max-height:var(--scv-search-space,calc(100dvh - var(--scv-header-height,64px) - 22px));overflow:auto;overscroll-behavior:contain;box-shadow:0 12px 36px #07183326}
 .scv-header-search-panel .scv-header-search-panel-title{margin-bottom:8px;font-weight:600}
 .scv-header-search-panel .scv-header-search-close{width:44px;height:44px;min-width:44px;padding:0;border-radius:10px}
 .scv-header-search-panel .scv-header-search-panel-form{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
 .scv-header-search-panel .scv-header-search-panel-input{box-sizing:border-box;height:44px;min-height:44px;padding:0 10px;font-size:16px;font-weight:400;border-radius:10px;box-shadow:none}
 .scv-header-search-panel .scv-header-search-panel-input:focus{outline:3px solid #6494f3;outline-offset:2px;box-shadow:none}
 .scv-header-search-panel.scv-header-search-invalid .scv-header-search-panel-input:focus{outline-color:#b4233a;border-color:#b4233a}
 .scv-header-search-panel .scv-header-search-panel-submit{box-sizing:border-box;height:44px;min-height:44px;min-width:76px;font-size:14px;font-weight:600}
 .scv-header-search-panel .scv-header-search-browse{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:#215dcc;font-size:14px;font-weight:600;text-underline-offset:3px}
 .scv-header-search-panel .scv-header-search-helper{margin:8px 0 0;font-weight:400}
 .scv-header-search-panel .scv-header-search-helper[hidden]{display:none!important}
 .scv-header-search-panel :is(button,a):focus-visible{outline:3px solid #6494f3;outline-offset:2px}
}

/* Reserve the account control before session and portrait requests settle.
   The existing 164px desktop account column and compact 56px control stay fixed. */
html:has(.scv-global-header[data-scv-account-header]){scrollbar-gutter:stable}
.scv-global-header[data-scv-account-header]{--scv-account-control-width:164px}
.scv-global-header[data-scv-account-header] :is(.scv-account-placeholder,.scv-requester-account){width:var(--scv-account-control-width);min-width:var(--scv-account-control-width);max-width:var(--scv-account-control-width);flex-basis:var(--scv-account-control-width)}
.scv-global-header[data-scv-account-header] .scv-account-placeholder{height:var(--scv-account-target,44px);min-height:var(--scv-account-target,44px)}
.scv-global-header[data-scv-account-header] .scv-requester-account summary{width:100%}
.scv-global-header[data-scv-account-header] .scv-account-placeholder::after{width:34px;height:34px;margin:4px}
@media(max-width:1100px){
 .scv-global-header[data-scv-account-header]{--scv-account-control-width:56px}
 .scv-global-header[data-scv-account-header] .scv-account-placeholder::after{width:28px;height:28px;margin:7px 6px}
}

/* A neutral preview uses the exact account-control layout during a new session
   check. It contains no identity and stays non-interactive until verification. */
.scv-global-header[data-scv-account-header] .scv-account-placeholder:not(.scv-account-unavailable){background:#fff}
.scv-global-header[data-scv-account-header] .scv-account-placeholder:has(>.scv-account-pending-preview)::after{display:none}
.scv-global-header[data-scv-account-header] .scv-account-placeholder>.scv-account-pending-preview{position:static;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:100%;padding:3px 10px 3px 4px;margin:0;overflow:visible;clip:auto;white-space:normal;color:#17345c;font-family:inherit;font-size:14px;font-weight:600;line-height:1.2}
.scv-global-header[data-scv-account-header] .scv-account-pending-preview .scv-requester-account-avatar{background:#e3ebf6}
@media(max-width:1100px){
 .scv-global-header[data-scv-account-header] .scv-account-placeholder>.scv-account-pending-preview{padding:3px 6px;gap:4px}
}

/* Keep approved signup geometry; improve small white caption contrast. */
.scv-global-header .scv-account-visitor .scv-global-create{background:linear-gradient(135deg,var(--scv-header-blue,#2563eb),#087bb5)}
