* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #1b1f24;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
}

.site-header {
    background: #252b32;
    border-bottom: 1px solid #3a424c;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 70px;
}

.brand {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a,
.dropbtn {
    color: #d6dbe1;
    text-decoration: none;
    font-size: 1rem;
}

.main-nav a:hover,
.dropbtn:hover {
    color: #ffffff;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 24px 0;
}

.arrow {
    font-size: 0.7rem;
    margin-left: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;

    min-width: 170px;

    background: #252b32;
    border: 1px solid #3a424c;
    border-radius: 6px;

    overflow: hidden;
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
}

.dropdown-content a:hover {
    background: #303740;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
}

.page-title {
    margin-top: 0;
    font-size: 2.3rem;
}

.page-description {
    color: #b7bec7;
    font-size: 1.1rem;
}

.card {
    margin-top: 25px;
    padding: 24px;

    background: #252b32;
    border: 1px solid #3a424c;
    border-radius: 8px;
}

.site-footer {
    margin-top: 70px;
    padding: 30px;

    text-align: center;
    color: #818994;

    border-top: 1px solid #303740;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

.section-link,
.read-more {
    color: #d6dbe1;
    text-decoration: none;
}

.section-link:hover,
.read-more:hover {
    color: #ffffff;
}

.featured-article {
    margin-top: 0;
}

.article-title {
    margin: 8px 0 12px;
    font-size: 2rem;
}

.article-meta {
    margin: 0;
    color: #818994;
    font-size: 0.9rem;
}

.article-excerpt {
    max-width: 850px;
    color: #b7bec7;
    line-height: 1.6;
}

.article-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-controls button {
    width: 38px;
    height: 38px;

    border: 1px solid #3a424c;
    border-radius: 6px;

    background: #1b1f24;
    color: #f5f5f5;

    cursor: pointer;
}

.article-controls button:hover {
    background: #303740;
}

#articleCounter {
    min-width: 40px;
    text-align: center;
    color: #b7bec7;
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.65fr;
    gap: 24px;
    margin-top: 25px;
}

.dashboard-grid > .card {
    margin-top: 0;
}

.transaction-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 14px 0;
    border-bottom: 1px solid #3a424c;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item span {
    color: #b7bec7;
}

.transaction-item small {
    color: #818994;
}

.matchup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;

    padding: 18px;

    background: #1b1f24;
    border: 1px solid #3a424c;
    border-radius: 7px;
}

.matchup-team {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.matchup-team span {
    color: #b7bec7;
}

.matchup-team-right {
    text-align: right;
}

.versus {
    color: #818994;
    font-size: 0.8rem;
}

.standings-table-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th,
.standings-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #3a424c;
}

.standings-table th {
    color: #818994;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.standings-table tbody tr:last-child td {
    border-bottom: none;
}


/* MATCHUP WEEK NAVIGATION */

.week-navigation {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.week-navigation h2 {
    margin: 0;
    text-align: center;
}

.week-nav-button {
    display: inline-block;
    padding: 9px 14px;

    background: #1b1f24;
    color: #d6dbe1;

    border: 1px solid #3a424c;
    border-radius: 6px;

    text-decoration: none;
    text-align: center;
}

.week-nav-button:visited {
    color: #d6dbe1;
}

.week-nav-button:hover {
    background: #303740;
    color: #ffffff;
}

.week-nav-button.disabled {
    opacity: 0.35;
    cursor: default;
}


/* TRANSACTION PAGINATION */

.pagination {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    gap: 20px;

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

    border-top: 1px solid #3a424c;
}

.pagination-button {
    display: inline-block;
    padding: 9px 14px;

    background: #1b1f24;
    color: #d6dbe1;

    border: 1px solid #3a424c;
    border-radius: 6px;

    text-decoration: none;
    text-align: center;
}

.pagination-button:visited {
    color: #d6dbe1;
}

.pagination-button:hover {
    background: #303740;
    color: #ffffff;
}

.pagination-button.disabled {
    opacity: 0.35;
    cursor: default;
}

.pagination-current {
    text-align: center;
    color: #b7bec7;
}


/* TEAMS */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.team-card {
    display: block;
    padding: 24px;

    background: #252b32;
    border: 1px solid #3a424c;
    border-radius: 8px;

    color: #f5f5f5;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.team-card:visited {
    color: #f5f5f5;
}

.team-card:hover {
    background: #303740;
    color: #ffffff;
    transform: translateY(-2px);
}

.team-card-header h2 {
    margin: 0 0 6px;
    color: #f5f5f5;
}

.team-card-header p {
    margin: 0;
    color: #818994;
}

.team-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

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

    border-top: 1px solid #3a424c;
}

.team-card-stats div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-card-stats span {
    color: #818994;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.team-card-stats strong {
    color: #f5f5f5;
    font-size: 1.1rem;
}


/* MOBILE */

@media (max-width: 800px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .matchups-card {
        order: 1;
    }

    .transactions-card {
        order: 2;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .section-header {
        align-items: flex-start;
    }
}

@media (max-width: 750px) {

    .nav-container {
        flex-direction: column;
        padding: 18px;
    }

    .main-nav {
        margin-top: 15px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dropbtn {
        padding: 0;
    }

    .dropdown-content {
        top: 25px;
    }

    .teams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .week-navigation,
    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .week-navigation h2,
    .pagination-current {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

/* TEAM DETAIL PAGE ONLY */

.team-detail-header {
    margin-top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.team-detail-label {
    margin: 0 0 6px;

    color: #818994;

    font-size: 0.8rem;
    text-transform: uppercase;
}

.team-detail-title {
    margin-bottom: 6px;
}

.team-detail-owner {
    margin: 0;
    color: #b7bec7;
}

.team-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 20px;
}

.team-detail-summary div {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 16px 20px;

    background: #1b1f24;

    border: 1px solid #3a424c;
    border-radius: 7px;
}

.team-detail-summary span {
    color: #818994;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.team-detail-summary strong {
    font-size: 1.15rem;
}

.team-detail-roster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.team-detail-roster-card {
    min-width: 0;
}

.team-detail-section-title {
    margin-top: 0;
    margin-bottom: 18px;
}

.team-detail-player-list {
    display: flex;
    flex-direction: column;
}

.team-detail-player-row {
    display: grid;
    grid-template-columns: 70px 1fr 60px;
    align-items: center;
    gap: 16px;

    padding: 12px 0;

    border-bottom: 1px solid #3a424c;
}

.team-detail-player-row:last-child {
    border-bottom: none;
}

.team-detail-slot {
    color: #818994;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.team-detail-player-name {
    color: #f5f5f5;
    font-weight: 600;
}

.team-detail-player-team {
    color: #818994;
    font-size: 0.85rem;
    text-align: right;
}

@media (max-width: 750px) {

    .team-detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .team-detail-summary {
        grid-template-columns: 1fr 1fr;
    }

    .team-detail-roster-grid {
        grid-template-columns: 1fr;
    }

}

/* ABOUT / MEMBERS */

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.member-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: center;

    padding: 22px;

    background: #252b32;
    border: 1px solid #3a424c;
    border-radius: 8px;
}

.member-photo {
    width: 150px;
    height: 150px;

    object-fit: cover;

    border-radius: 8px;
    border: 1px solid #3a424c;
}

.member-content h2 {
    margin: 0 0 5px;
}

.member-handle {
    display: inline-block;
    margin: 0 0 14px;

    color: #818994;
    font-size: 0.9rem;

    text-decoration: none;
}

.member-handle:visited {
    color: #818994;
}

.member-handle:hover {
    color: #ffffff;
}

.member-blurb {
    margin: 0;

    color: #b7bec7;
    line-height: 1.5;
}

.honorary-members-section {
    margin-top: 50px;
}

.dogs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 850px) {

    .members-grid,
    .dogs-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 550px) {

    .member-card {
        grid-template-columns: 1fr;
    }

    .member-photo {
        width: 100%;
        height: 240px;
    }

}

/* HISTORY */

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-table th,
.history-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #3a424c;
}

.history-table th {
    color: #b7bec7;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-table td {
    color: #f5f5f5;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr:hover {
    background: #2d343d;
}

.history-member-link {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 600;
}

.history-member-link:visited {
    color: #f5f5f5;
}

.history-member-link:hover {
    text-decoration: underline;
}

.table-wrapper {
    overflow-x: auto;
}

.history-table th:first-child,
.history-table td:first-child {
    width: 90px;
    font-weight: 700;
}

/* MOBILE NAVIGATION + TABLES */

@media (max-width: 850px) {

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .main-nav > a,
    .dropbtn {
        font-size: 0.95rem;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-content {
        left: 0;
        right: auto;
        min-width: 180px;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .history-table {
        min-width: 700px;
    }

    .history-table th,
    .history-table td {
        white-space: nowrap;
        padding: 12px 14px;
    }

    .history-table th {
        font-size: 0.8rem;
    }

}

.team-owner-link {
    color: #b7bec7;
    text-decoration: none;
}

.team-owner-link:visited {
    color: #b7bec7;
}

.team-owner-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* RECORDS */

.records-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.records-card {
    min-width: 0;
    margin-top: 0 !important;
}

.records-card-wide {
    grid-column: 1 / -1;
}

.records-card .section-header {
    margin-bottom: 10px;
}

.records-card .table-wrapper {
    overflow-x: auto;
}

.records-card .history-table {
    width: 100%;
    margin-top: 10px;
    table-layout: fixed;
}

/* 2-column record tables */

.records-table-2 th:first-child,
.records-table-2 td:first-child {
    width: 70%;
}

.records-table-2 th:last-child,
.records-table-2 td:last-child {
    width: 30%;
}

/* 3-column record tables */

.records-table-3 th:first-child,
.records-table-3 td:first-child {
    width: 80px;
}

.records-table-3 th:nth-child(2),
.records-table-3 td:nth-child(2) {
    width: auto;
}

.records-table-3 th:last-child,
.records-table-3 td:last-child {
    width: 120px;
}

/* 4-column record tables */

.records-table-4 th:first-child,
.records-table-4 td:first-child {
    width: 90px;
}

.records-table-4 th:nth-child(2),
.records-table-4 td:nth-child(2) {
    width: 32%;
}

.records-table-4 th:nth-child(3),
.records-table-4 td:nth-child(3) {
    width: 150px;
}

.records-table-4 th:last-child,
.records-table-4 td:last-child {
    width: 180px;
}

/* 5-column record tables */

.records-table-5 th:first-child,
.records-table-5 td:first-child {
    width: 90px;
}

.records-table-5 th:nth-child(2),
.records-table-5 td:nth-child(2),
.records-table-5 th:nth-child(3),
.records-table-5 td:nth-child(3) {
    width: 20%;
}

.records-table-5 th:nth-child(4),
.records-table-5 td:nth-child(4) {
    width: 190px;
}

.records-table-5 th:last-child,
.records-table-5 td:last-child {
    width: 120px;
}

@media (max-width: 850px) {
    .records-grid {
        grid-template-columns: 1fr;
    }

    .records-card-wide {
        grid-column: auto;
    }

    .records-card .records-table {
        min-width: 680px;
    }

    .records-table-2,
    .records-table-3 {
        min-width: 520px !important;
    }
}

/* CLICKABLE MATCHUP CARDS */

.matchup-link {
    color: inherit;
    text-decoration: none;
}

.matchup-link:visited {
    color: inherit;
}

.matchup-link:hover {
    background: #303740;
}

/* MATCHUP DETAIL */

.matchup-detail-team-name {
    margin-bottom: 4px;
}

.matchup-detail-owner {
    display: inline-block;
    margin-bottom: 10px;
    color: #818994;
    font-size: 0.9rem;
    text-decoration: none;
}

.matchup-detail-owner:visited {
    color: #818994;
}

.matchup-detail-owner:hover {
    color: #ffffff;
    text-decoration: underline;
}

.matchup-detail-team-score {
    margin-top: 0;
}

.matchup-detail-player-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 55px 70px;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #3a424c;
}

.matchup-detail-player-row:last-child {
    border-bottom: none;
}

.matchup-detail-player-points {
    color: #f5f5f5;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* STANDINGS LINKS */

.standings-team-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.standings-team-link {
    color: #f5f5f5;
    font-weight: 700;
    text-decoration: none;
}

.standings-team-link:visited {
    color: #f5f5f5;
}

.standings-team-link:hover {
    text-decoration: underline;
}

.standings-owner-link {
    color: #818994;
    font-size: 0.9rem;
    text-decoration: none;
}

.standings-owner-link:visited {
    color: #818994;
}

.standings-owner-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* MATCHUP DETAIL PLAYER ROWS */

.matchup-detail-player-row {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #3a424c;
}

.matchup-detail-player-row:last-child {
    border-bottom: none;
}

.matchup-detail-slot {
    color: #f5f5f5;
    font-weight: 700;
}

.matchup-detail-player-info {
    min-width: 0;
}

.matchup-detail-player-name {
    color: #f5f5f5;
    font-weight: 600;
}

.matchup-detail-player-meta {
    margin-top: 2px;
    color: #818994;
    font-size: 0.85rem;
}

.matchup-detail-player-points {
    color: #f5f5f5;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* MATCHUP DETAIL HEADER */

.matchup-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.matchup-detail-header-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.matchup-detail-header-team-left {
    text-align: left;
}

.matchup-detail-header-team-right {
    text-align: right;
    align-items: flex-end;
}

.matchup-detail-header-team-name {
    color: #f5f5f5;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.matchup-detail-header-team-name:visited {
    color: #f5f5f5;
}

.matchup-detail-header-team-name:hover {
    text-decoration: underline;
}

.matchup-detail-header-owner {
    color: #818994;
    font-size: 0.9rem;
}

.matchup-detail-header-meta {
    color: #b7bec7;
    font-size: 0.9rem;
}

.matchup-detail-header-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #f5f5f5;
    font-size: 1.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.matchup-detail-header-vs {
    color: #818994;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 750px) {

    .matchup-detail-header {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .matchup-detail-header-score {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: center;
    }

    .matchup-detail-header-team-left {
        grid-column: 1;
    }

    .matchup-detail-header-team-right {
        grid-column: 2;
    }
}

/* MATCHUP SUMMARY CARDS */

.matchup-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
}

.matchup-summary-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.matchup-summary-team-left {
    text-align: left;
}

.matchup-summary-team-right {
    text-align: right;
    align-items: flex-end;
}

.matchup-summary-owner {
    color: #818994;
    font-size: 0.85rem;
}

.matchup-summary-team-name {
    color: #f5f5f5;
    font-size: 1.05rem;
    font-weight: 700;
}

.matchup-summary-meta {
    color: #b7bec7;
    font-size: 0.85rem;
}

.matchup-summary-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #f5f5f5;
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.matchup-summary-vs {
    color: #818994;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 750px) {
    .matchup-summary-card {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .matchup-summary-score {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .matchup-summary-team-left {
        grid-column: 1;
    }

    .matchup-summary-team-right {
        grid-column: 2;
    }
}

/* TEAM DETAIL HEADER LAYOUT */

.team-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.team-detail-header-main {
    min-width: 0;
}

.team-detail-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 18px;
}

.team-detail-inline-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-detail-inline-stat span {
    color: #818994;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.team-detail-inline-stat strong {
    color: #f5f5f5;
    font-size: 1rem;
}

.team-detail-current-score {
    min-width: 150px;
    text-align: right;
}

.team-detail-current-score span {
    display: block;
    color: #818994;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.team-detail-current-score strong {
    display: block;
    color: #f5f5f5;
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 750px) {
    .team-detail-header {
        grid-template-columns: 1fr;
    }

    .team-detail-current-score {
        text-align: left;
        margin-top: 8px;
    }

    .team-detail-inline-stats {
        gap: 16px 24px;
    }
}

/* TEAM CARD FOUR-STAT ROW */

.team-card-stats-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 750px) {
    .team-card-stats-four {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TRANSACTION TEAM LINKS */

.transaction-team-link {
    color: #f5f5f5;
    font-weight: 700;
    text-decoration: none;
}

.transaction-team-link:visited {
    color: #f5f5f5;
}

.transaction-team-link:hover {
    text-decoration: underline;
}

.member-since {
    margin: 4px 0 10px;
    color: #818994;
    font-size: 0.85rem;
}

/* HISTORY SORTABLE HEADERS */

.history-sortable {
    cursor: pointer;
    user-select: none;
}

.history-sortable:hover {
    color: #ffffff;
}

/* SORTABLE STANDINGS */

.standings-sortable {
    cursor: pointer;
    user-select: none;
}

.standings-sortable:hover {
    color: #ffffff;
}


/* STANDINGS POINT DIFFERENTIAL */

.standings-diff-positive {
    color: #2ecc71;
    font-weight: 700;
}

.standings-diff-negative {
    color: #e74c3c;
    font-weight: 700;
}

.roster-section-divider {
    margin: 24px 0 18px;
    border-top: 1px solid #3a424c;
}

/* ARTICLES PAGE */

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 24px;
}

.article-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
    padding: 0;
}

.article-card-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.article-card-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-title {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.article-card-title:visited {
    color: #ffffff;
}

.article-card-title:hover {
    text-decoration: underline;
}

.article-card-meta {
    margin-bottom: 14px;
    color: #818994;
    font-size: 0.95rem;
}

.article-author-link {
    color: #c4c9cf;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.article-author-link:visited {
    color: #c4c9cf;
}

.article-author-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.article-card-excerpt {
    margin: 0 0 18px;
    color: #c4c9cf;
    line-height: 1.6;
}


/* ARTICLE DETAIL */

.article-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px;
}

.article-detail .page-title {
    margin-bottom: 8px;
}

.article-detail-meta {
    margin-bottom: 24px;
    color: #818994;
    font-size: 0.95rem;
}

.article-detail-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 320px;
    margin: 0 auto 28px;
    border-radius: 8px;
    object-fit: contain;
}

.article-detail-excerpt {
    margin-bottom: 28px;
    color: #c4c9cf;
    font-size: 1.1rem;
    line-height: 1.6;
}

.article-detail-body {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.article-detail-body-html {
    white-space: normal;
}

/* ARTICLE SUBMISSION */

.article-submit-card {
    max-width: 900px;
    margin: 0 auto;
}

.article-submit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-submit-form label {
    margin-top: 8px;
    font-weight: 700;
}

.article-submit-form input,
.article-submit-form textarea,
.article-submit-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #3a424c;
    border-radius: 6px;
    background: #1f252c;
    color: #ffffff;
    font: inherit;
    box-sizing: border-box;
}

.article-submit-form input:focus,
.article-submit-form textarea:focus,
.article-submit-form select:focus {
    outline: none;
    border-color: #68717c;
}

.article-submit-form textarea {
    resize: vertical;
}

.article-submit-help {
    margin-top: -6px;
    color: #818994;
    font-size: 0.85rem;
}

.article-submit-button {
    margin-top: 12px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: #e5e7eb;
    color: #1f252c;
    cursor: pointer;
    font-weight: 700;
}

.article-submit-success {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #3f684d;
    border-radius: 6px;
    background: #22352a;
    color: #d8f3df;
    font-weight: 600;
}


/* ADMIN ARTICLE ACTIONS */

.admin-article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-article-actions form {
    margin: 0;
}

.article-admin-link,
.article-admin-button,
.article-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.article-admin-link,
.article-admin-button {
    background: #e5e7eb;
    color: #1f252c;
}

.article-admin-link:visited {
    color: #1f252c;
}

.article-admin-link:hover,
.article-admin-button:hover {
    filter: brightness(0.92);
    text-decoration: none;
}

.article-delete-button {
    background: #542c2c;
    color: #ffffff;
}

.article-delete-button:hover {
    filter: brightness(1.12);
}


/* ARTICLE BACK LINK */

.article-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #c4c9cf;
    font-weight: 700;
    text-decoration: none;
}

.article-back-link:visited {
    color: #c4c9cf;
}

.article-back-link:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 750px) {

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-card-image {
        width: 100%;
        height: 150px;
        min-height: 0;
        object-fit: cover;
    }

    .article-card-content {
        padding: 20px;
    }

    .article-detail {
        padding: 24px;
    }

    .article-detail-image {
        max-height: 240px;
    }

    .admin-article-actions {
        align-items: flex-start;
    }
}

#articlePreview {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: center;
}

.featured-home-image-link {
    display: none;
    text-decoration: none;
}

.featured-home-image {
    display: block;
    width: 320px;
    height: 220px;
    border-radius: 8px;
    object-fit: contain;
    background: #1f252c;
}

.featured-home-content {
    min-width: 0;
}

@media (max-width: 750px) {

    #articlePreview {
        grid-template-columns: 1fr;
    }

    .featured-home-image {
        width: 100%;
        height: 180px;
    }
}

.article-page-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.featured-title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.featured-title-link:visited {
    color: inherit;
}

.featured-title-link:hover {
    text-decoration: underline;
}

.featured-title-not-link {
    cursor: default !important;
    text-decoration: none !important;
}

.featured-title-not-link:hover {
    cursor: default !important;
    text-decoration: none !important;
}

#featuredExcerpt {
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.headline-section {
    margin-top: 42px;
}

.headline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.headline-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items:center;
    overflow: hidden;
    padding: 0;
}

.headline-card-image {
    display: block;
    width: 220px;
    height: 170px;
    object-fit: contain;
    background: #252b33;
    border-radius: 8px 0 0 8px;
    border-right: 1px solid #3a424c;
}

.headline-card-content {
    padding: 24px;
}

.headline-card-meta {
    margin-bottom: 8px;
    color: #818994;
    font-size: .95rem;
}

.headline-card-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.25rem;
}

.headline-card-excerpt {
    margin: 0;
    color: #c4c9cf;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 750px) {

    .headline-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .headline-card-image {
        width: 100%;
        height: 190px;
        object-fit: contain;
        background: #252b33;
        border-radius: 8px 8px 0 0;
        border-right: 0;
        border-bottom: 1px solid #3a424c;
    }
}

.content-tabs {
    display: flex;
    gap: 8px;
    margin: 24px 0;
    border-bottom: 1px solid #3a424c;
}

.content-tab {
    display: inline-block;
    padding: 10px 16px;
    color: #818994;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.content-tab:visited {
    color: #818994;
}

.content-tab:hover {
    color: #fff;
}

.content-tab-active {
    color: #fff;
    border-bottom-color: #fff;
}

.content-tab-active:visited {
    color: #fff;
}

.article-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

.player-profile-link {
    color: inherit;
    text-decoration: none;
}

.player-profile-link:visited {
    color: inherit;
}

.player-profile-link:hover {
    text-decoration: underline;
}

.team-back-link {
    display: inline-block;
    margin-bottom: 16px;
}

.records-table-3 {
    width: 100%;
    table-layout: fixed;
}

/* QUILL ARTICLE EDITOR */

.ql-toolbar.ql-snow {
    border: 1px solid #9ca3af;
    border-bottom: none;
    background: #252b32;
}

.ql-container.ql-snow {
    border: 1px solid #9ca3af;
    background: #252b32;
    color: #e5e7eb;
    font-size: 1rem;
}

.ql-editor {
    min-height: 300px;
    line-height: 1.7;
}

.ql-editor p {
    margin-top: 0;
    margin-bottom: 8px;
}

.ql-snow .ql-stroke {
    stroke: #c4c9cf;
}

.ql-snow .ql-fill {
    fill: #c4c9cf;
}

.ql-snow .ql-picker {
    color: #c4c9cf;
}

.ql-snow .ql-picker-options {
    background: #252b32;
    color: #e5e7eb;
}

.records-table-3 {
    width: 100%;
    table-layout: fixed;
}

.records-table-3 {
    min-width: 0;
}

@media (max-width: 850px) {

    .records-card .records-table-3 {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

}

.matchup-summary-card {
    position: relative;
}

.matchup-summary-team {
    position: relative;
    display: block;
    min-width: 0;
}

.matchup-summary-team-left {
    padding-left: 72px;
    text-align: left;
}

.matchup-summary-team-right {
    padding-right: 72px;
    text-align: right;
}

.matchup-team-avatar {
    position: absolute;
    top: 6px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #596270;
    background: #1f252c;
}

.matchup-team-avatar-left {
    left: 0;
}

.matchup-team-avatar-right {
    right: 0;
}

.matchup-summary-team-content {
    min-width: 0;
}

@media (max-width: 700px) {

    .matchup-summary-card {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 52px 1fr;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 12px;
        padding: 18px 16px 16px;
        min-height: 135px;
    }

    .matchup-summary-score {
        grid-column: 1 / 4;
        grid-row: 1;
        justify-self: center;
        display: flex;
        align-items: center;
        gap: 14px;
        white-space: nowrap;
        margin: 0;
    }

    .matchup-summary-team {
        position: static;
        display: block;
        min-width: 0;
        padding: 0;
    }

    .matchup-summary-team-left {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }

    .matchup-summary-team-right {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
    }

    .matchup-team-avatar {
        position: absolute;
        top: 14px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #596270;
        background: #1f252c;
        margin: 0;
    }

    .matchup-team-avatar-left {
        left: 14px;
    }

    .matchup-team-avatar-right {
        right: 14px;
    }

    .matchup-summary-team-content {
        width: 100%;
        min-width: 0;
    }

    .matchup-summary-team-name {
        font-size: 1rem;
        line-height: 1.15;
        font-weight: 700;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .matchup-summary-owner {
        font-size: 0.78rem;
        line-height: 1.1;
        margin-top: 4px;
        color: #9ca3af;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .matchup-summary-meta {
        font-size: 0.78rem;
        line-height: 1.1;
        margin-top: 3px;
        white-space: nowrap;
    }
}

.matchup-detail-header {
    position: relative;
}

.matchup-detail-team-avatar {
    position: absolute;
    top: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #596270;
    background: #1f252c;
}

.matchup-detail-team-avatar-left {
    left: 14px;
}

.matchup-detail-team-avatar-right {
    right: 14px;
}

.matchup-detail-header-team-left {
    padding-left: 52px;
}

.matchup-detail-header-team-right {
    padding-right: 52px;
}

@media (max-width: 700px) {

    .matchup-detail-header {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 70px 1fr;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 18px;
        padding: 22px 16px 20px;
    }

    .matchup-detail-header-score {
        grid-column: 1 / 4;
        grid-row: 1;
        justify-self: center;
        display: flex;
        align-items: center;
        gap: 14px;
        white-space: nowrap;
        margin: 0;
    }

    .matchup-detail-header-team {
        min-width: 0;
        padding: 0;
        margin: 0;
        align-self: start;
    }

    .matchup-detail-header-team-left {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
        padding-left: 0;
    }

    .matchup-detail-header-team-right {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
        padding-right: 0;
    }

    .matchup-detail-team-avatar {
        top: 18px;
        width: 44px;
        height: 44px;
    }

    .matchup-detail-team-avatar-left {
        left: 16px;
    }

    .matchup-detail-team-avatar-right {
        right: 16px;
    }

    .matchup-detail-header-team-name {
        display: block;
        margin: 0;
        line-height: 1.15;
    }

    .matchup-detail-owner {
        display: block;
        margin-top: 6px;
    }

    .matchup-detail-header-meta {
        margin-top: 6px;
    }
}

.team-card {
    position: relative;
}

.team-card-avatar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #596270;
    background: #1f252c;
}

.team-card-header {
    padding-right: 70px;
}

.team-detail-header {
    position: relative;
}

.team-detail-avatar {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #596270;
    background: #1f252c;
}

.team-detail-header-main {
    padding-right: 82px;
}

@media (max-width: 700px) {

    .team-detail-avatar {
        top: 14px;
        right: 14px;
        width: 52px;
        height: 52px;
    }

    .team-detail-header-main {
        padding-right: 64px;
    }
}

@media (min-width: 701px) {

    .team-detail-current-score {
        position: absolute;
        right: 24px;
        bottom: 22px;
        text-align: right;
    }

    .team-detail-current-score span {
        display: block;
        margin-bottom: 4px;
    }

    .team-detail-avatar {
        top: 18px;
        right: 24px;
        width: 64px;
        height: 64px;
    }

    .team-detail-header-main {
        padding-right: 100px;
    }
}

/* HISTORY FINANCIALS */

.financials-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.financials-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.financials-table {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.financials-table th,
.financials-table td {
    text-align: center;
    vertical-align: middle;
}


/* RANK */

.financials-table th:nth-child(1),
.financials-table td:nth-child(1) {
    width: 10%;
}


/* MEMBER */

.financials-table th:nth-child(2),
.financials-table td:nth-child(2) {
    width: 25%;
    text-align: center;
}


/* LIFETIME NET */

.financials-table th:nth-child(3),
.financials-table td:nth-child(3) {
    width: 20%;
}


/* S&P 500 */

.financials-table th:nth-child(4),
.financials-table td:nth-child(4) {
    width: 22.5%;
}


/* BITCOIN */

.financials-table th:nth-child(5),
.financials-table td:nth-child(5) {
    width: 22.5%;
}


/* FINANCIAL VALUES */

.financials-table td:nth-child(3),
.financials-table td:nth-child(4),
.financials-table td:nth-child(5) {
    font-variant-numeric: tabular-nums;
}


/* POSITIVE / NEGATIVE NET */

.financials-table td.financials-net-positive {
    color: #3fb950 !important;
    font-weight: 700;
}

.financials-table td.financials-net-negative {
    color: #f85149 !important;
    font-weight: 700;
}


/* SORTABLE HEADERS */

.financials-sortable {
    cursor: pointer;
    user-select: none;
}

.financials-sortable:hover {
    color: #f5f5f5;
}

.financials-sortable::after {
    content: " ↕";
    opacity: 0.45;
    font-size: 0.75rem;
}

.financials-sortable.financials-sort-active[data-direction="desc"]::after {
    content: " ↓";
    opacity: 1;
}

.financials-sortable.financials-sort-active[data-direction="asc"]::after {
    content: " ↑";
    opacity: 1;
}


/* MOBILE */

@media (max-width: 700px) {

    .financials-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .financials-table {
        width: 700px;
        min-width: 700px !important;
        table-layout: fixed;
    }

    .financials-table th,
    .financials-table td {
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
        text-align: center;
    }

    .financials-table th:nth-child(1),
    .financials-table td:nth-child(1) {
        width: 60px;
    }

    .financials-table th:nth-child(2),
    .financials-table td:nth-child(2) {
        width: 160px;
    }

    .financials-table th:nth-child(3),
    .financials-table td:nth-child(3) {
        width: 150px;
    }

    .financials-table th:nth-child(4),
    .financials-table td:nth-child(4) {
        width: 150px;
    }

    .financials-table th:nth-child(5),
    .financials-table td:nth-child(5) {
        width: 150px;
    }
}


/* HISTORY SEASON-BY-SEASON MOBILE SCROLL */

.history-season-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 700px) {

    .history-season-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .history-season-wrapper .history-table {
        width: max-content;
        min-width: 900px;
    }
}

/* HOME ANNOUNCEMENT BANNER */

.home-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: rgba(63, 185, 80, 0.12);
    border: 1px solid #3fb950;
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.home-banner-link {
    color: #3fb950;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-banner-link:hover {
    color: #56d364;
    text-decoration: underline;
}

@media (max-width: 700px) {

    .home-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}

/* Trade transaction formatting */

.trade-details {
    margin-top: 12px;
    margin-bottom: 12px;
}

.trade-team {
    margin-bottom: 14px;
}

.trade-team-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.trade-assets {
    margin: 0;
    padding-left: 22px;
}

.trade-assets li {
    margin-bottom: 4px;
    line-height: 1.5;
}
