
.profiles-heading { display:flex; align-items:center; justify-content:space-between; gap:22px; margin:5px 0 32px; }
.profile-eyebrow { text-transform:uppercase; font-size:.65rem; font-weight:750; letter-spacing:.15em; color:#23866e; margin-bottom:12px; }
.portal-content .profiles-heading h1 { margin:0 0 12px; font-size:clamp(2rem,4vw,3rem); }
.profiles-heading h1 span { color:#19a27f; }
.profiles-heading p { color:#788982; margin:0; max-width:620px; line-height:1.7; font-size:.89rem; }
.profiles-layout { display:grid; grid-template-columns:225px minmax(0,1fr); align-items:start; gap:26px; }
.profile-team-panel { background:white; border:1px solid var(--pool-line); border-radius:18px; padding:18px 12px; position:sticky; top:20px; }
.profile-panel-label { font-size:.62rem; font-weight:750; letter-spacing:.12em; text-transform:uppercase; color:#8c9d94; margin:4px 10px 14px; }
.profile-team-link { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 10px; border-radius:10px; font-size:.78rem; color:#5d7469; margin-bottom:3px; }
.profile-team-link:hover,.profile-team-link.selected { background:#e8f4ed; color:#16644e; }
.profile-team-link.selected { font-weight:700; }
.profile-team-link small { min-width:23px; text-align:center; border-radius:6px; background:#f1f5f2; padding:2px 4px; color:#779184; font-size:.63rem; }
.profile-directory { min-width:0; }
.profile-search-form { background:none !important; border:0 !important; padding:0 !important; box-shadow:none !important; margin-bottom:25px; }
.profile-search { display:flex; align-items:center; gap:13px; background:#fff; border:1px solid var(--pool-line); border-radius:13px; padding:7px 8px 7px 17px; }
.profile-search i { color:#89a092; }
.profile-search input { flex:1; min-width:0; border:0; padding:8px; color:#305447; outline:none; background:transparent; font-size:.82rem; }
.profile-search:focus-within { outline:2px solid #9ad0b9; outline-offset:2px; }
.profile-results-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:4px 0 20px; }
.portal-content .profile-results-heading h2 { font-size:1.2rem; margin:0; }
.profile-results-heading > span { font-size:.72rem; color:#82978a; }
.profile-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.player-directory-card { background:#fff; border:1px solid var(--pool-line); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; transition:border-color .15s,box-shadow .15s; }
.player-directory-card:hover { border-color:#a7cdb9; box-shadow:0 6px 24px #1c54330b; }
.profile-card-banner { height:75px; background:linear-gradient(125deg,#dcefe5,#eef7f0); position:relative; overflow:hidden; }
.profile-card-mark { position:absolute; right:16px; top:-13px; font-size:6rem; line-height:1.2; font-weight:800; color:#376e5410; transform:rotate(20deg); }
.profile-status { position:absolute; top:13px; left:13px; border-radius:7px; background:#fffaf0; color:#947647; padding:4px 7px; font-size:.58rem; font-weight:700; }
.profile-status.published { color:#247054; background:#f1fcf5; }
.profile-card-content { padding:0 18px 18px; display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.profile-avatar { position:relative; display:grid; place-items:center; width:76px; height:76px; border-radius:22px; background:#f0f7f2; border:4px solid white; color:#40745b; overflow:hidden; margin-top:-30px; flex-shrink:0; }
.profile-avatar > span { font-size:1.25rem; font-weight:700; }
.profile-avatar img { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; }
.profile-avatar img[hidden] { display:none; }
.portal-content .player-directory-card h3 { font-size:1rem; line-height:1.4; margin:12px 0 4px; overflow-wrap:anywhere; }
.profile-nickname { font-size:.72rem; color:#819187; min-height:18px; margin:0 0 13px; }
.profile-team-badges { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:12px; }
.profile-team-badges > span,.profile-team-badges > a { background:#edf5f0; color:#5e816b; padding:5px 7px; border-radius:6px; font-size:.58rem; font-weight:600; }
.profile-team-badges > a:hover { background:#d6ecdf; }
.profile-club { font-size:.68rem; color:#89998f; margin:0 0 15px; }
.profile-card-actions { margin-top:auto; display:flex; align-items:center; gap:12px; padding-top:9px; flex-wrap:wrap; }
.profile-card-actions .btn { padding:8px 11px; font-size:.7rem; }
.profile-view-link { font-size:.75rem; font-weight:700; display:flex; gap:15px; align-items:center; }
.profile-preview-link { font-size:.67rem; color:#839587; }
.profile-empty { text-align:center; background:white; border:1px dashed #cbded1; border-radius:18px; padding:50px 20px; margin-bottom:20px; }
.profile-empty > i { font-size:1.5rem; color:#92bba3; margin-bottom:18px; }
.portal-content .profile-empty h3 { font-size:1.2rem; }
.profile-empty p { color:#86988a; font-size:.83rem; }
.profile-detail-top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 25px; font-size:.78rem; }
.profile-team-picker { padding:0 !important; border:0 !important; box-shadow:none !important; margin:0 9px 25px; }
.profile-team-picker .form-select { font-size:.75rem; }
.profile-team-picker .btn { width:100%; font-size:.72rem; padding:8px; margin-top:10px; }
.profile-teammates { max-height:430px; overflow-y:auto; }
.profile-all-players { display:block; border-top:1px solid #edf3ef; padding:17px 8px 1px; margin-top:14px; font-size:.69rem; }
.player-profile-hero { background:white; border:1px solid var(--pool-line); border-radius:20px; overflow:hidden; margin-bottom:24px; }
.profile-hero-banner { height:130px; background:linear-gradient(110deg,#214d40,#32765b); position:relative; overflow:hidden; padding:25px 30px; }
.profile-hero-banner .profile-eyebrow { color:#b4d5c0; }
.profile-hero-banner > span { position:absolute; right:40px; top:-78px; color:#b6e5ca12; font-size:18rem; line-height:1.3; font-weight:800; transform:rotate(20deg); }
.profile-hero-content { padding:0 28px 27px; display:flex; gap:23px; align-items:flex-start; }
.profile-avatar-large { width:130px; height:150px; border-radius:24px; margin-top:-42px; border-width:5px; }
.profile-avatar-large > span { font-size:2rem; }
.profile-hero-content > div:last-child { padding-top:22px; }
.portal-content .profile-hero-content h1 { font-size:clamp(1.6rem,3vw,2.3rem); margin:0 0 8px; }
.profile-hero-nickname { color:#8a9b8e; font-size:.9rem; margin:0 0 12px; }
.profile-hero-content .profile-team-badges { margin:12px 0 0; }
.profile-info-panel { background:#fff; border:1px solid var(--pool-line); border-radius:17px; padding:25px; margin-bottom:22px; min-width:0; }
.portal-content .profile-info-panel h2 { font-size:1.07rem; margin:0 0 18px; }
.profile-info-panel p { color:#73877b; font-size:.83rem; line-height:1.85; margin-bottom:0; }
.profile-preserve-lines { white-space:pre-line; overflow-wrap:anywhere; }
.profile-stat-section { margin:28px 0; }
.profile-stat-section .profile-results-heading { margin-bottom:9px; }
.profile-stats-note { color:#8b9c91; font-size:.74rem; margin-bottom:17px; line-height:1.7; }
.profile-stats-card { background:#fff; border:1px solid var(--pool-line); border-radius:16px; padding:22px; margin:14px 0; }
.profile-stats-card header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:23px; }
.portal-content .profile-stats-card h3 { font-size:.94rem; margin:0; }
.profile-stats-card header a { font-size:.66rem; }
.profile-stats-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); margin:0; gap:15px; }
.profile-stats-grid dt { font-size:.57rem; color:#8c9f91; font-weight:550; margin-bottom:7px; }
.profile-stats-grid dd { font-size:1.45rem; color:#22664c; font-weight:750; margin:0; font-variant-numeric:tabular-nums; }
.profile-stats-grid dd small { font-size:.75rem; }
.profile-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.profile-info-grid .profile-info-panel { margin:0; }
.profile-info-icon { display:grid; place-items:center; width:37px; height:37px; border-radius:11px; background:#eaf5ee; color:#5f9977; margin-bottom:18px; }
.profile-info-icon.gold { background:#fbf5e4; color:#b19b52; }
.profile-quick-facts { grid-column:1/-1; }
.profile-quick-facts dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:23px; margin:0; }
.profile-quick-facts dt { color:#93a296; font-size:.65rem; font-weight:500; margin:0 0 7px; }
.profile-quick-facts dd { color:#496b56; font-size:.85rem; font-weight:600; margin:0; overflow-wrap:anywhere; }
.profile-edit-form { padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
.profile-edit-layout { display:grid; grid-template-columns:270px minmax(0,1fr); gap:25px; align-items:start; }
.profile-edit-photo { position:sticky; top:20px; }
.profile-avatar-preview { width:160px; height:160px; margin:0 auto 25px; border:0; }
.profile-edit-photo input[type=file] { padding:9px; font-size:.69rem; }
.profile-edit-photo .profile-help { font-size:.69rem; line-height:1.7; margin:10px 0 16px; }
.profile-edit-photo .form-check-label { font-size:.75rem; }
.profile-publish-box { margin-top:25px; border-top:1px solid #e9f0eb; padding-top:20px; }
.profile-publish-box p { font-size:.69rem; margin-top:8px; }
.profile-edit-actions { display:flex; justify-content:flex-end; gap:12px; }
.profile-edit-form .validation-summary-valid { display:none; }
.profile-edit-form .validation-summary-errors { background:#fff1ef; padding:18px; border-radius:12px; margin-bottom:20px; font-size:.85rem; }
@media (max-width:1100px) { .profile-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .profile-stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; } }
@media (max-width:760px) { .profiles-layout,.profile-edit-layout { grid-template-columns:1fr; gap:20px; } .profile-team-panel,.profile-edit-photo { position:static; } .profile-team-panel nav:not(.profile-teammates) { display:flex; overflow-x:auto; gap:6px; } .profile-team-panel nav:not(.profile-teammates) .profile-team-link { flex-shrink:0; white-space:nowrap; } .profile-team-panel { padding:15px; } .profile-teammates { max-height:145px; } .profile-team-picker { display:flex; gap:8px; margin:0 0 20px; } .profile-team-picker .btn { width:auto; margin:0; white-space:nowrap; } .profile-edit-photo { margin-bottom:0; } .profiles-heading { align-items:flex-start; flex-direction:column; } .profile-avatar-preview { width:140px; height:140px; } }
@media (max-width:480px) { .profile-card-grid { gap:12px; } .profile-card-content { padding:0 12px 16px; } .portal-content .player-directory-card h3 { font-size:.86rem; } .profile-search { padding-left:10px; gap:5px; } .profile-search .btn { font-size:.7rem; padding:10px; } .profile-search input { font-size:.75rem; } .profile-hero-content { padding:0 20px 23px; gap:15px; flex-direction:column; } .profile-avatar-large { width:110px; height:120px; } .profile-hero-content > div:last-child { padding:0; } .profile-hero-banner { height:110px; padding:20px; } .profile-info-grid { grid-template-columns:1fr; } .profile-quick-facts dl { grid-template-columns:1fr; } .profile-stats-card { padding:18px; } .profile-stats-grid dd { font-size:1.25rem; } .profile-info-panel { padding:20px; } }
