/* Unified responsive layout; loaded last to resolve legacy breakpoint conflicts. */
*,*::before,*::after{box-sizing:border-box}html,body{max-width:100%;overflow-x:clip}img{max-width:100%} .container,.site-header-inner,.footer-inner{width:min(100% - 32px,1180px)!important;max-width:1180px!important;margin-inline:auto!important} .site-header-inner{width:min(100% - 32px,1180px)!important;padding-inline:0!important}.page-wrap,.content-area{width:100%}.content-panel,.content-box,.site-form{max-width:100%;min-width:0}.content-box{overflow-wrap:anywhere}.content-box img{height:auto}.site-header .primary-navigation{min-width:0}.site-header .brand img{max-width:160px;height:auto}.profile-cards .card{max-width:100%}.profile-cards .card .d-flex{display:flex!important;min-width:0;flex-wrap:nowrap!important}.profile-cards .card .d-flex>a:first-child{flex:0 0 clamp(125px,19vw,190px)!important;width:clamp(125px,19vw,190px)!important;min-width:0!important;margin-right:16px!important}.profile-cards .card .d-flex>a:first-child .card-img{width:100%!important;height:100%!important;min-height:205px!important;max-height:300px!important;object-fit:cover!important}.profile-cards .card .d-flex>div{min-width:0!important;flex:1!important}.profile-detail .row{display:grid!important;grid-template-columns:minmax(0,35%) minmax(0,1fr)!important;gap:clamp(16px,3vw,36px)!important}.profile-detail .row>[class*="col-"]{min-width:0!important;width:auto!important;max-width:none!important;padding:0!important}.profile-detail-img{border:0!important;box-shadow:none!important;background:transparent!important;object-fit:contain!important;width:100%!important;height:auto!important;max-height:480px!important}.similar-profile-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(8px,1.5vw,18px)!important}.similar-profile-card{min-width:0!important;overflow:hidden!important}.similar-profile-card img{width:100%!important;aspect-ratio:4/5!important;height:auto!important;object-fit:cover!important}.similar-profile-card strong,.similar-profile-card span{overflow-wrap:anywhere}.site-form input,.site-form select,.site-form textarea,.site-form button{max-width:100%;min-width:0}.site-footer{overflow:hidden}
@media(max-width:767px){.container,.footer-inner{width:calc(100% - 24px)!important}.site-header-inner{width:calc(100% - 28px)!important;min-height:66px!important}.site-header .brand img{width:118px!important;max-width:118px!important;height:auto!important}.menu-toggle{display:block!important;flex-shrink:0!important}.primary-navigation{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:6000!important;width:100%!important;max-width:100vw!important;padding:12px 16px 18px!important;background:#191919!important;flex-direction:column!important}.primary-navigation.is-open{display:flex!important}.primary-navigation a{width:100%!important;min-height:44px!important;justify-content:center!important}.search-section{padding:24px 14px!important}.search-section h1{font-size:clamp(19px,5vw,26px)!important;line-height:1.3!important}.profile-cards .card{padding:11px!important;margin:10px 0!important}.profile-cards .card .d-flex{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important}.profile-cards .card .d-flex>a:first-child{width:clamp(92px,28vw,122px)!important;flex:0 0 clamp(92px,28vw,122px)!important;margin-right:10px!important}.profile-cards .card .d-flex>a:first-child .card-img{width:100%!important;min-width:0!important;height:100%!important;min-height:172px!important;max-height:none!important;margin:0!important;object-fit:cover!important}.profile-cards .card h3{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;font-size:clamp(13px,3.7vw,16px)!important}.profile-cards .card p{font-size:12px!important;line-height:1.45!important;-webkit-line-clamp:3!important}.profile-cards .card .btns{gap:5px!important}.profile-cards .card .btns .btn{font-size:11px!important;padding:7px 8px!important}.profile-detail{padding:clamp(12px,3vw,20px)!important}.profile-detail h1{font-size:clamp(18px,4.7vw,23px)!important}.profile-detail .row{display:grid!important;grid-template-columns:minmax(0,34%) minmax(0,1fr)!important;gap:clamp(12px,3.2vw,20px)!important}.profile-detail-img{max-height:260px!important}.profile-detail .row .col-md-7 p{font-size:clamp(12px,3.25vw,14px)!important;line-height:1.55!important}.profile-detail .profile-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:6px!important}.profile-detail .profile-actions .btn{font-size:11px!important;padding:7px 8px!important}.similar-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.similar-profile-card{padding:6px!important;gap:5px!important}.similar-profile-card img{height:auto!important;aspect-ratio:4/5!important}.similar-profile-card strong{font-size:clamp(10px,2.8vw,12px)!important;line-height:1.3!important}.similar-profile-card span{font-size:clamp(9px,2.45vw,11px)!important;line-height:1.35!important}.page-wrap{padding:18px 0 30px!important}.content-box{padding:16px!important}.footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}.footer-brand{grid-column:1/-1!important}}
@media(max-width:370px){.profile-cards .card .d-flex>a:first-child{width:92px!important;flex-basis:92px!important;margin-right:8px!important}.profile-cards .card .btns .btn{font-size:10px!important;padding:6px!important}.similar-profile-card{padding:4px!important}.similar-profile-card span{display:none!important}.footer-inner{grid-template-columns:1fr!important}.footer-brand{grid-column:auto!important}}
@media(min-width:768px) and (max-width:1024px){.container,.footer-inner,.site-header-inner{width:calc(100% - 40px)!important}.profile-detail .row{grid-template-columns:minmax(0,38%) minmax(0,1fr)!important}.similar-profile-card img{max-height:200px!important}.profile-cards .card .d-flex>a:first-child{flex-basis:155px!important;width:155px!important}}

/* Desktop only: reduce the width and visual footprint of the single profile detail box.
   Mobile layout remains unchanged. */
@media (min-width: 768px) {
  .profile-detail {
    width: min(100%, 900px) !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px 20px !important;
  }
  .profile-detail .row {
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr) !important;
    gap: 22px !important;
  }
  .profile-detail-img {
    max-height: 320px !important;
  }
}
