/* =========================================================
   MOF TEAM PROFILES
   ========================================================= */


/* =========================================================
   HISTORY LOGO
   ========================================================= */

.mof-teamprofiles-history-logo {
    margin: 18px 0 24px;
    text-align: center;
}

.mof-teamprofiles-history-logo img {
    width: 800px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   LANDING PAGE
   ========================================================= */

.mof-teamprofiles-landing {
    padding: 28px;

    border: 1px solid #ccc;

    background: linear-gradient(
        to bottom,
        #fff 0%,
        #f5f7f9 100%
    );

    box-sizing: border-box;
}

.mof-teamprofiles-landing-title {
    text-align: center;

    color: #003b70;

    font-size: 24px;
    font-weight: 700;

    letter-spacing: .6px;
}

.mof-teamprofiles-landing-subtitle {
    margin-top: 6px;
    margin-bottom: 28px;

    color: #666;

    font-size: 12px;

    text-align: center;
}

.mof-teamprofiles-conference {
    margin-top: 24px;

    padding: 8px 10px;

    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.mof-teamprofiles-conference.afc {
    background: #d50a0a;
}

.mof-teamprofiles-conference.nfc {
    background: #013369;
}

.mof-teamprofiles-division-title {
    margin-top: 5px;

    padding: 6px 8px;

    background: linear-gradient(
        to bottom,
        #999 0%,
        #777 100%
    );

    color: #fff;

    font-size: 11px;
    font-weight: 700;
}

.mof-teamprofiles-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 9px;

    margin-top: 9px;
}

.mof-teamprofiles-card {
    display: grid;

    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;

    column-gap: 10px;
    align-items: center;

    min-height: 78px;

    padding: 10px 12px;

    border: 1px solid #d4d4d4;

    background: #fff;

    color: #111;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.mof-teamprofiles-card:hover {
    background: #edf4fa;
    border-color: #6a93b8;

    transform: translateY(-1px);

    text-decoration: none;
}

.mof-teamprofiles-card img {
    grid-row: 1 / 3;

    width: 54px;
    height: 46px;

    object-fit: contain;
}

.mof-teamprofiles-card strong {
    color: #003b70;

    font-size: 12px;
    line-height: 1.2;

    font-weight: 700;
}

.mof-teamprofiles-card span {
    display: block !important;

    position: static !important;
    float: none !important;

    margin: 2px 0 0 !important;
    padding: 0 !important;

    color: #777;

    font-size: 9px;
    line-height: 1.2;
}


/* =========================================================
   HERO
   ========================================================= */

.mof-teamprofile-hero {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 250px;

    gap: 18px;

    margin-top: 18px;
    padding: 24px;

    border: 1px solid #c9d3dd;

    background:
        linear-gradient(
            135deg,
            #f7f9fb 0%,
            #fff 60%,
            #edf2f7 100%
        );

    box-sizing: border-box;
}

.mof-teamprofile-hero-left {
    display: flex;
    align-items: center;

    gap: 20px;
}

.mof-teamprofile-hero-logo {
    width: 150px;
    height: 110px;

    object-fit: contain;
}

.mof-teamprofile-hero-identity {
    display: flex;
    flex-direction: column;
}

.mof-teamprofile-franchise-label,
.mof-teamprofile-era,
.mof-teamprofile-block-label {
    display: block !important;

    position: static !important;
    float: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.mof-teamprofile-franchise-label {
    color: #777;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .8px;
}

.mof-teamprofile-team-name {
    margin-top: 5px;

    color: #003b70;

    font-size: 28px;
    line-height: 1.08;
}

.mof-teamprofile-era {
    margin-top: 8px !important;

    color: #666;

    font-size: 11px;
}

.mof-teamprofile-hero-record {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 16px 18px;

    border-left: 4px solid #003b70;

    background: #fff;

    box-sizing: border-box;
}

.mof-teamprofile-hero-record span,
.mof-teamprofile-hero-record small {
    display: block !important;

    position: static !important;
    float: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.mof-teamprofile-hero-record span {
    color: #777;

    font-size: 10px;
    font-weight: 700;
}

.mof-teamprofile-hero-record strong {
    margin: 5px 0;

    color: #003b70;

    font-size: 28px;
    line-height: 1;
}

.mof-teamprofile-hero-record small {
    color: #666;

    font-size: 9px;
}


/* =========================================================
   HERO LOWER
   ========================================================= */

.mof-teamprofile-hero-lower {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 10px;
}

.mof-teamprofile-tenured,
.mof-teamprofile-external {
    min-height: 105px;

    padding: 15px 17px;

    border: 1px solid #ddd;

    background: #f7f7f7;

    box-sizing: border-box;
}

.mof-teamprofile-block-label {
    color: #777;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .4px;
}

.mof-teamprofile-tenured-name {
    display: block;

    margin-top: 7px;

    color: #003b70;

    font-size: 17px;
    font-weight: 700;

    text-decoration: none;
}

.mof-teamprofile-tenured-name:hover {
    text-decoration: underline;
}

.mof-teamprofile-tenured-meta {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin-top: 5px;

    color: #555;

    font-size: 10px;
}

.mof-teamprofile-tenured-meta span {
    display: block !important;

    position: static !important;
    float: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.mof-teamprofile-external-links {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 12px;
}

.mof-teamprofile-external-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 88px;
    height: 54px;

    padding: 6px;

    border: 1px solid #ddd;

    background: #fff;

    box-sizing: border-box;
}

.mof-teamprofile-external-links a:hover {
    border-color: #6a93b8;

    background: #edf4fa;
}

.mof-teamprofile-external-links img {
    max-width: 76px;
    max-height: 42px;

    object-fit: contain;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.mof-teamprofile-section {
    margin-top: 22px;
}

.mof-teamprofile-section-title {
    padding: 8px 10px;

    background: linear-gradient(
        to bottom,
        #777 0%,
        #555 100%
    );

    color: #fff;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   OVERVIEW STATS
   ========================================================= */

.mof-teamprofile-stat-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 8px;
}

.mof-teamprofile-stat-grid > div {
    padding: 12px;

    border: 1px solid #ddd;

    background: #f7f7f7;
}

.mof-teamprofile-stat-grid span {
    display: block !important;

    position: static !important;
    float: none !important;

    margin: 0 0 5px !important;
    padding: 0 !important;

    color: #777;

    font-size: 9px;

    text-transform: uppercase;
}

.mof-teamprofile-stat-grid strong {
    color: #003b70;

    font-size: 17px;
    line-height: 1.2;
}


/* =========================================================
   TABLES
   ========================================================= */

.mof-teamprofile-table-wrap {
    width: 100%;

    overflow-x: auto;

    margin-top: 8px;
}

.mof-teamprofile-table {
    width: 100%;

    min-width: 1050px;

    border-collapse: collapse;

    background: #fff;

    font-size: 11px;
}

.mof-teamprofile-table th {
    padding: 7px 6px;

    border: 1px solid #003b70;

    background: #003b70;

    color: #fff;

    font-size: 10px;
    font-weight: 700;

    text-align: left;

    white-space: nowrap;
}

.mof-teamprofile-table td {
    padding: 6px;

    border: 1px solid #d2d2d2;

    vertical-align: middle;
}

.mof-teamprofile-table tbody tr:nth-child(even) td {
    background: #f1f3f5;
}

.mof-teamprofile-table tbody tr:hover td {
    background: #e7eef5;
}

.mof-teamprofile-table a {
    color: #003b70;

    font-weight: 600;

    text-decoration: none;
}

.mof-teamprofile-table a:hover {
    text-decoration: underline;
}

.mof-teamprofile-season-team {
    display: flex;
    align-items: center;

    gap: 6px;
}

.mof-teamprofile-season-team img {
    width: 36px;
    height: 26px;

    object-fit: contain;
}

.mof-teamprofile-season-team strong {
    white-space: nowrap;
}


/* =========================================================
   LOGO HISTORY
   ========================================================= */

.mof-teamprofile-logo-history {
    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 9px;

    margin-top: 9px;
}

.mof-teamprofile-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 142px;

    padding: 10px;

    border: 1px solid #ddd;

    background: #fff;

    text-align: center;

    box-sizing: border-box;
}

.mof-teamprofile-logo-card img {
    width: 80px;
    height: 64px;

    object-fit: contain;
}

.mof-teamprofile-logo-card strong {
    margin-top: 7px;

    color: #003b70;

    font-size: 11px;
}

.mof-teamprofile-logo-card span,
.mof-teamprofile-logo-card small {
    display: block !important;

    position: static !important;
    float: none !important;

    margin: 3px 0 0 !important;
    padding: 0 !important;
}

.mof-teamprofile-logo-card span {
    color: #333;

    font-size: 9px;
    line-height: 1.2;
}

.mof-teamprofile-logo-card small {
    color: #777;

    font-size: 8px;
    line-height: 1.2;
}


/* =========================================================
   BACK LINK
   ========================================================= */

.mof-teamprofile-back {
    margin-top: 22px;
}

.mof-teamprofile-back a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 8px 11px;

    border: 1px solid #ccc;

    background: #f3f3f3;

    color: #222;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.mof-teamprofile-back a:hover {
    background: #003b70;
    border-color: #003b70;

    color: #fff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 900px) {

    .mof-teamprofiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mof-teamprofile-hero {
        grid-template-columns: 1fr;
    }

    .mof-teamprofile-hero-record {
        border-left: none;
        border-top: 4px solid #003b70;
    }

    .mof-teamprofile-hero-lower {
        grid-template-columns: 1fr;
    }

    .mof-teamprofile-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mof-teamprofile-logo-history {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media screen and (max-width: 520px) {

    .mof-teamprofiles-grid {
        grid-template-columns: 1fr;
    }

    .mof-teamprofile-hero-left {
        align-items: flex-start;
        flex-direction: column;
    }

    .mof-teamprofile-hero-logo {
        width: 110px;
        height: 85px;
    }

    .mof-teamprofile-stat-grid {
        grid-template-columns: 1fr;
    }

    .mof-teamprofile-logo-history {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   V2 - TEAM PROFILE TYPOGRAPHY / LAYOUT CLEANUP
   Fixes collisions caused by older global span/strong styles.
   ========================================================= */


/* -------------------------
   HERO IDENTITY
   ------------------------- */

.mof-teamprofile-hero-identity {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    min-width: 0 !important;

    position: static !important;
    float: none !important;
}

.mof-teamprofile-franchise-label {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 6px 0 !important;
    padding: 0 !important;

    color: #777 !important;

    font-size: 10px !important;
    line-height: 1.25 !important;

    font-weight: 700 !important;

    letter-spacing: .8px !important;
}

.mof-teamprofile-team-name {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #003b70 !important;

    font-size: 29px !important;
    line-height: 1.08 !important;

    font-weight: 700 !important;

    white-space: normal !important;
}

.mof-teamprofile-era {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 9px 0 0 0 !important;
    padding: 0 !important;

    color: #666 !important;

    font-size: 11px !important;
    line-height: 1.3 !important;

    font-weight: 400 !important;
}


/* -------------------------
   ALL-TIME RECORD BLOCK
   ------------------------- */

.mof-teamprofile-hero-record {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    min-height: 120px !important;

    padding: 18px 20px !important;
}

.mof-teamprofile-hero-record span {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 7px 0 !important;
    padding: 0 !important;

    color: #777 !important;

    font-size: 10px !important;
    line-height: 1.25 !important;

    font-weight: 700 !important;
}

.mof-teamprofile-hero-record strong {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #003b70 !important;

    font-size: 29px !important;
    line-height: 1.08 !important;

    font-weight: 700 !important;

    white-space: nowrap !important;
}

.mof-teamprofile-hero-record small {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 9px 0 0 0 !important;
    padding: 0 !important;

    color: #666 !important;

    font-size: 9px !important;
    line-height: 1.25 !important;

    font-weight: 400 !important;
}


/* -------------------------
   MOST TENURED COACH BLOCK
   ------------------------- */

.mof-teamprofile-tenured,
.mof-teamprofile-external {
    min-height: 120px !important;

    padding: 17px 18px !important;
}

.mof-teamprofile-block-label {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 8px 0 !important;
    padding: 0 !important;

    color: #777 !important;

    font-size: 9px !important;
    line-height: 1.25 !important;

    font-weight: 700 !important;

    letter-spacing: .4px !important;
}

.mof-teamprofile-tenured-name {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #003b70 !important;

    font-size: 18px !important;
    line-height: 1.2 !important;

    font-weight: 700 !important;

    text-decoration: none !important;
}

.mof-teamprofile-tenured-meta {
    display: flex !important;
    flex-direction: column !important;

    gap: 5px !important;

    margin-top: 9px !important;

    color: #555 !important;

    font-size: 10px !important;
    line-height: 1.35 !important;
}

.mof-teamprofile-tenured-meta span {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #555 !important;

    font-size: 10px !important;
    line-height: 1.35 !important;

    font-weight: 400 !important;
}


/* -------------------------
   EXTERNAL TEAM PAGES
   ------------------------- */

.mof-teamprofile-external-links {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 12px !important;

    margin-top: 10px !important;
}

.mof-teamprofile-external-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 98px !important;
    height: 58px !important;

    padding: 7px !important;

    box-sizing: border-box !important;
}

.mof-teamprofile-external-links img {
    display: block !important;

    max-width: 82px !important;
    max-height: 44px !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
}


/* -------------------------
   FRANCHISE OVERVIEW
   ------------------------- */

.mof-teamprofile-stat-grid > div {
    min-height: 70px !important;

    padding: 12px 14px !important;

    box-sizing: border-box !important;
}

.mof-teamprofile-stat-grid span {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 7px 0 !important;
    padding: 0 !important;

    color: #777 !important;

    font-size: 9px !important;
    line-height: 1.25 !important;

    font-weight: 400 !important;

    text-transform: uppercase !important;
}

.mof-teamprofile-stat-grid strong {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #003b70 !important;

    font-size: 18px !important;
    line-height: 1.15 !important;

    font-weight: 700 !important;
}


/* -------------------------
   SEASON HISTORY TEAM CELL
   Remove boxy nested appearance and keep logo/name natural.
   ------------------------- */

.mof-teamprofile-season-team {
    display: flex !important;
    align-items: center !important;

    gap: 7px !important;

    min-width: 0 !important;

    padding: 6px !important;

}

.mof-teamprofile-season-team img {
    flex: 0 0 auto !important;

    width: 40px !important;
    height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
}

.mof-teamprofile-season-team strong {
    display: inline-block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #111 !important;

    font-size: 11px !important;
    line-height: 1.2 !important;

    font-weight: 600 !important;

    white-space: nowrap !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* -------------------------
   LOGO HISTORY
   ------------------------- */

.mof-teamprofile-logo-card {
    min-height: 160px !important;

    justify-content: flex-start !important;

    padding: 12px 10px !important;
}

.mof-teamprofile-logo-card img {
    flex: 0 0 auto !important;

    width: 86px !important;
    height: 68px !important;

    margin: 0 0 8px 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
}

.mof-teamprofile-logo-card strong {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 5px 0 !important;
    padding: 0 !important;

    color: #003b70 !important;

    font-size: 11px !important;
    line-height: 1.2 !important;

    font-weight: 700 !important;
}

.mof-teamprofile-logo-card span {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 4px 0 !important;
    padding: 0 !important;

    color: #333 !important;

    font-size: 9px !important;
    line-height: 1.3 !important;

    font-weight: 400 !important;

    white-space: normal !important;
}

.mof-teamprofile-logo-card small {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #777 !important;

    font-size: 8px !important;
    line-height: 1.3 !important;

    font-weight: 400 !important;

    white-space: normal !important;
}


/* -------------------------
   EXTRA MOBILE POLISH
   ------------------------- */

@media screen and (max-width: 900px) {

    .mof-teamprofile-hero {
        padding: 18px !important;
    }

    .mof-teamprofile-team-name {
        font-size: 24px !important;
    }

    .mof-teamprofile-hero-record strong {
        font-size: 24px !important;
    }

}


/* =========================================================
   SEASON HISTORY - FINAL COLUMN ALIGNMENT
   Center compact data columns while keeping descriptive
   columns left-aligned.
   ========================================================= */

.mof-teamprofile-table th:nth-child(1),
.mof-teamprofile-table td:nth-child(1),
.mof-teamprofile-table th:nth-child(2),
.mof-teamprofile-table td:nth-child(2),
.mof-teamprofile-table th:nth-child(6),
.mof-teamprofile-table td:nth-child(6),
.mof-teamprofile-table th:nth-child(7),
.mof-teamprofile-table td:nth-child(7) {
    text-align: center;
}


/* =========================================================
   V4 - CURRENT COACH + TEAM COLOR ACCENTS
   Team colors are used with opacity/transparency so text
   remains readable regardless of how dark or light the HEX is.
   ========================================================= */

.mof-teamprofile-page {
    --team-color: #003b70;
    --team-color-rgb: 0, 59, 112;
}


/* HERO ACCENTS */

.mof-teamprofile-hero {
    border-top: 6px solid var(--team-color) !important;

    background:
        linear-gradient(
            135deg,
            rgba(var(--team-color-rgb), .10) 0%,
            #ffffff 52%,
            rgba(var(--team-color-rgb), .05) 100%
        ) !important;
}

.mof-teamprofile-team-name {
    color: #003b70 !important;
}

.mof-teamprofile-hero-record {
    border-left-color: var(--team-color) !important;

    background:
        linear-gradient(
            to bottom,
            rgba(var(--team-color-rgb), .08) 0%,
            #ffffff 100%
        ) !important;
}

.mof-teamprofile-hero-record strong {
    color: #003b70 !important;
}


/* LOWER HERO - THREE COLUMN LAYOUT */

.mof-teamprofile-hero-lower {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mof-teamprofile-tenured,
.mof-teamprofile-current-coach,
.mof-teamprofile-external {
    min-height: 126px !important;

    padding: 17px 18px !important;

    border: 1px solid rgba(var(--team-color-rgb), .24) !important;

    background:
        linear-gradient(
            to bottom,
            rgba(var(--team-color-rgb), .07) 0%,
            #f8f8f8 100%
        ) !important;

    box-sizing: border-box !important;
}


/* CURRENT COACH */

.mof-teamprofile-current-coach-name {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #003b70 !important;

    font-size: 18px !important;
    line-height: 1.2 !important;

    font-weight: 700 !important;

    text-decoration: none !important;
}

.mof-teamprofile-current-coach-name:hover {
    text-decoration: underline !important;
}

.mof-teamprofile-current-coach-meta {
    display: flex !important;
    flex-direction: column !important;

    gap: 5px !important;

    margin-top: 9px !important;

    color: #555 !important;

    font-size: 10px !important;
    line-height: 1.35 !important;
}

.mof-teamprofile-current-coach-meta span {
    display: block !important;

    position: static !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #555 !important;

    font-size: 10px !important;
    line-height: 1.35 !important;

    font-weight: 400 !important;
}


/* SUBTLE TEAM COLOR ON SECTION HEADERS */

.mof-teamprofile-section-title {
    border-left: 5px solid var(--team-color) !important;
}


/* STAT CARDS */

.mof-teamprofile-stat-grid > div {
    border-top: 3px solid rgba(var(--team-color-rgb), .35) !important;
}


/* LOGO HISTORY CARDS */

.mof-teamprofile-logo-card {
    border-top: 3px solid rgba(var(--team-color-rgb), .28) !important;
}


/* MOBILE */

@media screen and (max-width: 900px) {

    .mof-teamprofile-hero-lower {
        grid-template-columns: 1fr !important;
    }

    .mof-teamprofile-hero-record {
        border-left: none !important;
        border-top: 4px solid var(--team-color) !important;
    }

}


/* =========================================================
   V5 - STRONGER TEAM IDENTITY + CLEAN 3-CARD HERO ROW
   ========================================================= */

.mof-teamprofile-hero {
    border-top: 8px solid var(--team-color) !important;
    border-left: 1px solid rgba(var(--team-color-rgb), .35) !important;
    border-right: 1px solid rgba(var(--team-color-rgb), .35) !important;
    border-bottom: 1px solid rgba(var(--team-color-rgb), .35) !important;

    background:
        linear-gradient(
            135deg,
            rgba(var(--team-color-rgb), .22) 0%,
            rgba(var(--team-color-rgb), .09) 34%,
            #ffffff 68%,
            rgba(var(--team-color-rgb), .06) 100%
        ) !important;
}

.mof-teamprofile-hero-record {
    border-left: 6px solid var(--team-color) !important;

    background:
        linear-gradient(
            to bottom,
            rgba(var(--team-color-rgb), .16) 0%,
            rgba(var(--team-color-rgb), .06) 100%
        ) !important;
}

.mof-teamprofile-hero-lower {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
}

.mof-teamprofile-current-coach,
.mof-teamprofile-tenured,
.mof-teamprofile-external {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;

    min-width: 0 !important;
    min-height: 132px !important;

    padding: 20px 18px 17px !important;

    border: 1px solid rgba(var(--team-color-rgb), .34) !important;
    border-top: 6px solid var(--team-color) !important;

    background:
        linear-gradient(
            to bottom,
            rgba(var(--team-color-rgb), .14) 0%,
            rgba(var(--team-color-rgb), .04) 100%
        ) !important;

    box-sizing: border-box !important;
}

.mof-teamprofile-block-label {
    margin-bottom: 10px !important;

    color: #555 !important;

    font-size: 9px !important;
    line-height: 1.25 !important;

    font-weight: 700 !important;
}

.mof-teamprofile-current-coach-name,
.mof-teamprofile-tenured-name {
    color: #003b70 !important;

    font-size: 19px !important;
    line-height: 1.15 !important;

    font-weight: 700 !important;
}

.mof-teamprofile-current-coach-meta,
.mof-teamprofile-tenured-meta {
    margin-top: 10px !important;
}

.mof-teamprofile-external-links {
    margin-top: 4px !important;

    gap: 10px !important;
}

.mof-teamprofile-external-links a {
    flex: 0 0 auto !important;

    width: 92px !important;
    height: 58px !important;

    border: 1px solid rgba(var(--team-color-rgb), .28) !important;

    background: rgba(255,255,255,.94) !important;
}

.mof-teamprofile-section-title {
    border-left: 7px solid var(--team-color) !important;
}

.mof-teamprofile-stat-grid > div {
    border-top: 4px solid rgba(var(--team-color-rgb), .48) !important;

    background:
        linear-gradient(
            to bottom,
            rgba(var(--team-color-rgb), .08) 0%,
            #f7f7f7 100%
        ) !important;
}

.mof-teamprofile-logo-card {
    border-top: 4px solid rgba(var(--team-color-rgb), .42) !important;
}

@media screen and (max-width: 1050px) {

    .mof-teamprofile-hero-lower {
        grid-template-columns: 1fr 1fr !important;
    }

    .mof-teamprofile-external {
        grid-column: 1 / -1 !important;
    }

}

@media screen and (max-width: 760px) {

    .mof-teamprofile-hero-lower {
        grid-template-columns: 1fr !important;
    }

    .mof-teamprofile-external {
        grid-column: auto !important;
    }

}


/* =========================================================
   V6 - FORCE DESKTOP 3-COLUMN HERO + STRONG TEAM COLOR
   ========================================================= */

.mof-teamprofile-hero {
    border-top: 9px solid var(--team-color) !important;

    background:
        linear-gradient(
            115deg,
            rgba(var(--team-color-rgb), .30) 0%,
            rgba(var(--team-color-rgb), .14) 34%,
            #ffffff 72%
        ) !important;
}

.mof-teamprofile-hero-record {
    border-left: 6px solid var(--team-color) !important;

    background:
        linear-gradient(
            135deg,
            rgba(var(--team-color-rgb), .20) 0%,
            rgba(255,255,255,.96) 78%
        ) !important;
}


/* Force these three cards to one row on desktop. */

.mof-teamprofile-hero-lower {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    width: 100% !important;

    gap: 12px !important;

    margin-top: 12px !important;
}

.mof-teamprofile-hero-lower > .mof-teamprofile-current-coach,
.mof-teamprofile-hero-lower > .mof-teamprofile-tenured,
.mof-teamprofile-hero-lower > .mof-teamprofile-external {
    display: flex !important;
    flex-direction: column !important;

    flex: 1 1 0 !important;

    width: 0 !important;
    min-width: 0 !important;
    min-height: 142px !important;

    margin: 0 !important;

    padding: 20px 18px !important;

    border: 1px solid rgba(var(--team-color-rgb), .38) !important;
    border-top: 7px solid var(--team-color) !important;

    background:
        linear-gradient(
            to bottom,
            rgba(var(--team-color-rgb), .18) 0%,
            rgba(var(--team-color-rgb), .055) 100%
        ) !important;

    box-sizing: border-box !important;

    position: relative !important;
    float: none !important;
}


/* Make team identity visible without ever putting body text on dark color. */

.mof-teamprofile-section-title {
    border-left: 8px solid var(--team-color) !important;
}

.mof-teamprofile-stat-grid > div {
    border-top: 5px solid rgba(var(--team-color-rgb), .58) !important;
}

.mof-teamprofile-logo-card {
    border-top: 5px solid rgba(var(--team-color-rgb), .50) !important;
}


/* External link logos stay contained in the third card. */

.mof-teamprofile-external-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;

    gap: 8px !important;

    width: 100% !important;

    margin-top: 6px !important;
}

.mof-teamprofile-external-links a {
    flex: 1 1 0 !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 100px !important;

    height: 62px !important;

    padding: 6px !important;

    background: #ffffff !important;
}


/* Only stack on genuinely smaller screens. */

@media screen and (max-width: 800px) {

    .mof-teamprofile-hero-lower {
        flex-direction: column !important;
    }

    .mof-teamprofile-hero-lower > .mof-teamprofile-current-coach,
    .mof-teamprofile-hero-lower > .mof-teamprofile-tenured,
    .mof-teamprofile-hero-lower > .mof-teamprofile-external {
        width: 100% !important;
        flex-basis: auto !important;
    }

}


/* =========================================================
   V7 - PHP now renders the critical three-card/color rules
   with literal team colors. These remain as fallback rules.
   ========================================================= */

@media screen and (min-width: 801px) {
    .mof-teamprofile-hero-lower {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .mof-teamprofile-hero-lower > .mof-teamprofile-current-coach,
    .mof-teamprofile-hero-lower > .mof-teamprofile-tenured,
    .mof-teamprofile-hero-lower > .mof-teamprofile-external {
        flex: 1 1 33.333% !important;
        width: auto !important;
        min-width: 0 !important;
        grid-column: auto !important;
    }
}


/* =========================================================
   V8 - TEAM PROFILE SELECTOR / QUICK NAV
   ========================================================= */

.mof-teamprofiles-controls {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;

    gap: 18px !important;

    margin: 18px 0 24px !important;
    padding-bottom: 18px !important;

    border-bottom: 1px solid #ddd !important;
}

.mof-teamprofiles-select-wrap label {
    display: block !important;

    position: static !important;
    float: none !important;

    margin: 0 0 5px 0 !important;
    padding: 0 !important;

    color: #111 !important;

    font-size: 12px !important;
    line-height: 1.2 !important;

    font-weight: 700 !important;
}

.mof-teamprofiles-select-wrap select {
    width: 310px !important;
    max-width: 100% !important;

    padding: 8px 10px !important;

    border: 1px solid #999 !important;

    background: #fff !important;

    color: #111 !important;

    font-size: 12px !important;
}

.mof-teamprofiles-quick-links {
    display: flex !important;

    gap: 7px !important;
}

.mof-teamprofiles-quick-links a {
    display: inline-flex !important;
    align-items: center !important;

    gap: 6px !important;

    padding: 8px 11px !important;

    border: 1px solid #ccc !important;

    background: #f3f3f3 !important;

    color: #222 !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    text-decoration: none !important;
}

.mof-teamprofiles-quick-links a:hover,
.mof-teamprofiles-quick-links a.active {
    background: #003b70 !important;
    border-color: #003b70 !important;

    color: #fff !important;
}

@media screen and (max-width: 800px) {

    .mof-teamprofiles-controls {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .mof-teamprofiles-select-wrap select {
        width: 100% !important;
    }

    .mof-teamprofiles-quick-links {
        width: 100% !important;
    }

    .mof-teamprofiles-quick-links a {
        flex: 1 !important;
        justify-content: center !important;
    }

}


/* =========================================================
   V9 - QUICK LINK BUTTONS + TEAM LOGO BORDER
   ========================================================= */

/* Make the links beneath the team selector look like real buttons. */
.mof-teamprofiles-controls .mof-teamprofiles-quick-links {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.mof-teamprofiles-controls .mof-teamprofiles-quick-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 34px !important;

    padding: 8px 13px !important;

    border: 1px solid #c5c5c5 !important;
    border-radius: 2px !important;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #eeeeee 100%
        ) !important;

    color: #222222 !important;

    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    box-sizing: border-box !important;

    box-shadow: 0 1px 1px rgba(0,0,0,.05) !important;
}

.mof-teamprofiles-controls .mof-teamprofiles-quick-links a:hover,
.mof-teamprofiles-controls .mof-teamprofiles-quick-links a.active {
    border-color: #003b70 !important;

    background:
        linear-gradient(
            to bottom,
            #164f7f 0%,
            #003b70 100%
        ) !important;

    color: #ffffff !important;

    text-decoration: none !important;
}


/* Tiny white outline around all team logos used in Team Profiles. */
.mof-teamprofile-hero-logo,
.mof-teamprofiles-card img,
.mof-teamprofile-season-team img,
.mof-teamprofile-logo-card img {
    border: 1px solid #ffffff !important;

    box-sizing: border-box !important;
}


/* Keep selector/buttons on one clean row where space allows. */
@media screen and (min-width: 801px) {

    .mof-teamprofiles-controls {
        align-items: flex-end !important;
    }

    .mof-teamprofiles-quick-links {
        flex-wrap: nowrap !important;
    }

}


/* =========================================================
   V10 - FINAL QUICK NAV / LOGO OUTLINE SAFEGUARD
   ========================================================= */

.mof-teamprofiles-controls .mof-teamprofiles-quick-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 36px !important;

    padding: 9px 14px !important;

    border: 1px solid #bdbdbd !important;
    border-radius: 3px !important;

    background: linear-gradient(to bottom, #ffffff 0%, #e9e9e9 100%) !important;

    box-shadow: 0 1px 2px rgba(0,0,0,.08) !important;

    color: #222 !important;

    font-weight: 700 !important;
    text-decoration: none !important;
}

.mof-teamprofiles-controls .mof-teamprofiles-quick-links a:hover,
.mof-teamprofiles-controls .mof-teamprofiles-quick-links a.active {
    background: #003b70 !important;
    border-color: #003b70 !important;

    color: #ffffff !important;
}

.mof-teamprofile-hero-logo,
.mof-teamprofiles-card img,
.mof-teamprofile-season-team img,
.mof-teamprofile-logo-card img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

filter:
    drop-shadow(0 0 2px rgba(255,255,255,.9))
    drop-shadow(0 0 4px rgba(255,255,255,.55)) !important;
}


/* =========================================================
   V11 - CLEAN LOGO EDGE + COACHING HISTORY ALIGNMENT
   ========================================================= */

/* Simple border directly on the logo image — no extra outline/cell effect. */
.mof-teamprofile-hero-logo,
.mof-teamprofiles-card img,
.mof-teamprofile-season-team img,
.mof-teamprofile-logo-card img {
    border: 1px solid #ffffff !important;
    outline: none !important;
    box-shadow: none !important;

    padding: 0 !important;

    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   COACHING HISTORY
   Seven columns, equal width.
   Coach stays left-aligned; all statistical columns centered.
   --------------------------------------------------------- */

.mof-teamprofile-coach-table {
    width: 100% !important;

    table-layout: fixed !important;

    border-collapse: collapse !important;
}

.mof-teamprofile-coach-table th,
.mof-teamprofile-coach-table td {
    width: 14.285714% !important;

    vertical-align: middle !important;

    box-sizing: border-box !important;
}

.mof-teamprofile-coach-table th:first-child,
.mof-teamprofile-coach-table td:first-child {
    text-align: left !important;
}

.mof-teamprofile-coach-table th:not(:first-child),
.mof-teamprofile-coach-table td:not(:first-child) {
    text-align: center !important;
}

/* Keep coach links/text comfortably inside the first equal-width column. */
.mof-teamprofile-coach-table td:first-child a,
.mof-teamprofile-coach-table td:first-child {
    white-space: nowrap !important;
}


/* =========================================================
   V12 - HERO LOGO CLEANUP + TENURED COACH HOVER
   ========================================================= */

/*
   Some current team logo files (including SF) have an opaque
   rectangular background baked into the image itself.
   A CSS drop-shadow follows the image's alpha/rectangle and
   therefore creates a visible white box. Keep the hero logo
   completely clean so no artificial box is drawn around it.
*/
.mof-teamprofile-hero-logo {
    display: block !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    filter: drop-shadow(0 0 3px #fff) !important;

    background: transparent !important;
    padding: 2px !important;
    margin: 0 !important;
}

.mof-teamprofile-hero,
.mof-teamprofile-hero-left,
.mof-teamprofile-hero-logo-frame,
.mof-teamprofile-hero-logo-wrap {
    overflow: visible !important;
}

/*
   Smaller logos can still use the subtle white pixel outline.
   On transparent PNGs this follows the visible logo shape.
*/
.mof-teamprofiles-card img,
.mof-teamprofile-season-team img,
.mof-teamprofile-logo-card img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    filter:
        drop-shadow(0.5px 0 0 #fff)
        drop-shadow(-0.5px 0 0 #fff)
        drop-shadow(0 0.5px 0 #fff)
        drop-shadow(0 -0.5px 0 #fff) !important;

    padding: 0 !important;
}


/* Match Current Coach hover behavior exactly. */
.mof-teamprofile-tenured-name:hover {
    text-decoration: underline !important;
}




/* =========================================================
   V13 - SEASON HISTORY TEAM CELL BORDER FIX
   Keep the TD as a real table cell so its border matches
   every other column. Flex layout now lives inside it.
   ========================================================= */

.mof-teamprofile-season-team {
    display: table-cell !important;

    padding: 6px !important;

    border: 1px solid #d2d2d2 !important;

    vertical-align: middle !important;
}

.mof-teamprofile-season-team-inner {
    display: flex !important;
    align-items: center !important;

    gap: 7px !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.mof-teamprofile-season-team-inner img {
    flex: 0 0 auto !important;

    width: 40px !important;
    height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
}

.mof-teamprofile-season-team-inner strong {
    display: inline-block !important;

    position: static !important;
    float: none !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #111 !important;

    font-size: 11px !important;
    line-height: 1.2 !important;

    font-weight: 600 !important;

    white-space: nowrap !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
