/* =========================================================
   MOF PAST COACHES
   ========================================================= */


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

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

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


/* =========================================================
   CONTROLS
   ========================================================= */

.mof-coaches-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;

    margin: 18px 0 28px;
    padding-bottom: 18px;

    border-bottom: 1px solid #ddd;
}

.mof-coaches-select-wrap label {
    display: block;

    margin-bottom: 5px;

    color: #111;

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

.mof-coaches-select-wrap select {
    width: 290px;
    max-width: 100%;

    padding: 8px 10px;

    border: 1px solid #999;

    background: #fff;

    font-size: 12px;
}

.mof-coaches-quick-links {
    display: flex;
    gap: 7px;
}

.mof-coaches-quick-links 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-coaches-quick-links a:hover,
.mof-coaches-quick-links a.active {
    background: #003b70;
    border-color: #003b70;

    color: #fff;
}


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

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

    border: 1px solid #ccc;

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

    box-sizing: border-box;
}

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

    color: #003b70;

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

    letter-spacing: .6px;
}

.mof-coaches-landing-subtitle {
    margin-top: 6px;
    margin-bottom: 26px;

    text-align: center;

    color: #666;

    font-size: 12px;
}

.mof-coaches-era-section {
    margin-top: 25px;
}

.mof-coaches-era-title {
    padding: 9px 12px;

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

    color: #fff;

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

.mof-coaches-season-grid {
    display: grid;

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

    gap: 9px;

    margin-top: 9px;
}

.mof-coaches-season-card {
    display: grid;

    grid-template-columns: max-content max-content;
    grid-template-rows: auto auto;

    align-content: center;
    justify-content: start;

    column-gap: 8px;
    row-gap: 7px;

    min-height: 78px;

    padding: 13px 14px;

    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-coaches-season-card:hover {
    background: #edf4fa;
    border-color: #6a93b8;

    transform: translateY(-1px);

    text-decoration: none;
}

.mof-coaches-season-card strong {
    grid-column: 1 / -1;
    grid-row: 1;

    margin: 0;

    color: #003b70;

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

    font-weight: 600;
}

.mof-coaches-season-card span {
    grid-column: 1;
    grid-row: 2;

    margin: 0;

    color: #222;

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

    font-weight: 500;
}

.mof-coaches-season-card small {
    grid-column: 2;
    grid-row: 2;

    margin: 0;

    color: #777;

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

    font-weight: 400;

    align-self: end;
}


/* =========================================================
   SEASON SUMMARY
   ========================================================= */

.mof-coaches-season-summary {
    display: grid;

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

    gap: 8px;

    margin-bottom: 20px;
}

.mof-coaches-season-summary > div {
    padding: 10px 12px;

    border: 1px solid #ddd;

    background: #f6f6f6;
}

.mof-coaches-season-summary span {
    display: block;

    color: #777;

    font-size: 9px;

    text-transform: uppercase;
}

.mof-coaches-season-summary strong {
    display: block;

    margin-top: 2px;

    color: #003b70;

    font-size: 14px;
}


/* =========================================================
   TABLE
   ========================================================= */

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

    overflow-x: auto;
}

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

    border-collapse: collapse;

    table-layout: fixed;

    background: #fff;

    font-size: 12px;
}

.mof-pastcoaches-table th {
    padding: 7px 7px;

    border: 1px solid #aaa;

    background: linear-gradient(
        to bottom,
        #245b88 0%,
        #003b70 100%
    );

    color: #fff;

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

    text-align: left;
}

.mof-pastcoaches-table td {
    padding: 5px 7px;

    border: 1px solid #aaa;

    vertical-align: middle;
}

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

.mof-pastcoaches-table tbody tr:hover td {
    background: #e4edf5;
}

.mof-pastcoaches-table .coach-col {
    width: 20%;
}

.mof-pastcoaches-table .team-col {
    width: 34%;
}

.mof-pastcoaches-table .psn-col {
    width: 20%;
}

.mof-pastcoaches-table .stream-col {
    width: 13%;
}

.mof-pastcoaches-table .timezone-col {
    width: 13%;
}


/* =========================================================
   TEAM CELL
   ========================================================= */

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

    gap: 7px !important;

    min-width: 0 !important;

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

.mof-pastcoaches-logo {
    flex: 0 0 auto !important;

    width: 46px;
    height: 32px;

    object-fit: contain;

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

    margin: 0 !important;
}

.mof-pastcoaches-team span {
    display: block !important;

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

    min-width: 0 !important;

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

    color: #111;

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

    font-weight: 600;

    white-space: nowrap !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* =========================================================
   COACH / ROOKIE
   ========================================================= */

.mof-pastcoaches-coach-link {
    display: inline !important;

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

    color: #111;

    text-decoration: none;

    line-height: 1.2;
}

.mof-pastcoaches-coach-link:hover {
    color: #003b70;

    text-decoration: underline;
}

.mof-pastcoaches-rookie {
    display: inline !important;

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

    margin-left: 3px !important;

    color: #003b70 !important;

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

    font-weight: 700 !important;
}


/* =========================================================
   STREAM LINKS
   ========================================================= */

.mof-pastcoaches-stream-link {
    color: #003b70;

    font-weight: 600;

    text-decoration: none;
}

.mof-pastcoaches-stream-link:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER LEGEND
   ========================================================= */

.mof-pastcoaches-table tfoot td {
    padding: 8px 10px;

    background: linear-gradient(
        to bottom,
        #666 0%,
        #3f3f3f 100%
    );

    color: #fff;

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

.mof-pastcoaches-table tfoot .mof-pastcoaches-rookie {
    color: #fff !important;
}


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

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

    .mof-coaches-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .mof-coaches-select-wrap select {
        width: 100%;
    }

    .mof-coaches-quick-links {
        width: 100%;
    }

    .mof-coaches-quick-links a {
        flex: 1;
        justify-content: center;
    }

    .mof-coaches-landing {
        padding: 18px;
    }

    .mof-coaches-season-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .mof-pastcoaches-table {
        min-width: 900px;
    }

}


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

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

}

.mof-pastcoaches-team-name {
    font-weight: 400 !important;
    font-size: 11px !important;
    color: #111 !important;
}

.mof-team-profile-link:hover .mof-pastcoaches-team-name {
    text-decoration: underline !important;
}