:root {
    --dca-navy: #06172f;
    --dca-navy-dark: #020b18;
    --dca-blue: #064bc4;
    --dca-blue-light: #2f7df6;
    --dca-gold: #d8a84f;
    --dca-white: #ffffff;
    --dca-soft: #f4f6fa;
    --dca-text: #14213d;
    --dca-muted: #64748b;
    --dca-radius: 18px;
    --dca-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--dca-soft);
    color: var(--dca-text);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */

.site-header {
    background: var(--dca-navy-dark);
    color: var(--dca-white);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dca-white);
    text-decoration: none;
}

.site-brand__badge {
    width: 48px;
    height: auto;
}

.site-brand__name {
    font-weight: 800;
    font-size: 1.15rem;
}

.site-brand__tagline {
    color: var(--dca-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--dca-navy);
    color: #fff;
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.site-brand__badge {
    width: 54px;
    height: auto;
    flex: 0 0 auto;
}

.site-brand__name {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.site-brand__tagline {
    margin-top: 5px;
    color: var(--dca-gold);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Desktop nav */

.primary-nav {
    margin-left: auto;
}

.primary-nav__menu,
.primary-nav__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.primary-nav__menu li {
    position: relative;
}

.primary-nav__menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
}

.primary-nav__menu a:hover,
.primary-nav__menu .current-menu-item > a,
.primary-nav__menu .current-menu-ancestor > a {
    color: var(--dca-gold);
}

/* Desktop dropdown */

.primary-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    display: none;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.primary-nav__menu .menu-item-has-children:hover > .sub-menu,
.primary-nav__menu .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.primary-nav__menu .sub-menu li + li {
    margin-top: 2px;
}

.primary-nav__menu .sub-menu a {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--dca-navy);
    font-size: 0.9rem;
    white-space: nowrap;
}

.primary-nav__menu .sub-menu a:hover {
    background: #f1f5f9;
    color: var(--dca-blue);
}

/* Mobile menu button */

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.menu-toggle:hover {
    border-color: var(--dca-gold);
    color: var(--dca-gold);
}

.menu-toggle__icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Mobile nav */

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 82px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        margin-left: 0;
        padding: 18px;
        background: var(--dca-navy);
        border-top: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 18px 38px rgba(0,0,0,0.22);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav__menu {
        display: grid;
        gap: 4px;
        width: min(1180px, calc(100% - 32px));
        margin: 0 auto;
    }

    .primary-nav__menu a {
        min-height: 44px;
        padding: 0 4px;
    }

    .primary-nav__menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: 0 0 8px 14px;
        padding: 0 0 0 14px;
        border-left: 2px solid rgba(255,255,255,0.14);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .primary-nav__menu .sub-menu a {
        min-height: 36px;
        padding: 0;
        color: rgba(255,255,255,0.78);
        white-space: normal;
    }

    .primary-nav__menu .sub-menu a:hover {
        background: transparent;
        color: var(--dca-gold);
    }
}

@media (max-width: 560px) {
    .site-brand__badge {
        width: 46px;
    }

    .site-brand__name {
        font-size: 1.05rem;
    }

    .site-brand__tagline {
        font-size: 0.65rem;
    }

    .menu-toggle__text {
        display: none;
    }

    .menu-toggle {
        width: 42px;
        justify-content: center;
        padding: 0;
    }
}

/* footer */

.site-footer {
    padding: 56px 0 24px;
    background:
        linear-gradient(135deg, rgba(2, 11, 24, 0.98), rgba(6, 23, 47, 0.96)),
        var(--dca-navy);
    color: #fff;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 44px;
    align-items: start;
}

.site-footer__brand {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.site-footer__badge {
    width: 82px;
    height: auto;
    flex: 0 0 auto;
}

.site-footer__brand h2 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
}

.site-footer__brand p {
    max-width: 460px;
    margin: 14px 0 0;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.site-footer__nav h3 {
    margin: 0 0 14px;
    color: var(--dca-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.site-footer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav li + li {
    margin-top: 9px;
}

.site-footer__nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: var(--dca-gold);
    text-decoration: underline;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.62);
    font-size: 0.88rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom span {
    color: var(--dca-gold);
    font-weight: 900;
}

.site-footer__credit {
    text-align: right;
}

@media (max-width: 900px) {
    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__bottom {
        flex-direction: column;
    }

    .site-footer__credit {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 42px 0 22px;
    }

    .site-footer__brand {
        display: block;
    }

    .site-footer__badge {
        width: 76px;
        margin-bottom: 18px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Hero */

.hero-archive {
    min-height: 500px;
    color: var(--dca-white);
    background:
        linear-gradient(90deg, rgba(2,11,24,0.96), rgba(2,11,24,0.78), rgba(2,11,24,0.45)),
        url("../images/hero-bg.jpg") center / cover no-repeat;
}

.hero-archive__overlay {
    padding: 90px 0;
}

.hero-archive__grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 48px;
    align-items: center;
}

.hero-archive__badge {
    max-width: 160px;
}

.hero-archive h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.95;
}

.hero-archive__years {
    margin: 20px 0 0;
    color: var(--dca-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
}

.hero-archive__subtitle {
    margin: 8px 0 0;
    color: #8fb7ff;
    font-size: 1.45rem;
    font-style: italic;
}

.hero-archive__intro {
    max-width: 560px;
    margin-top: 28px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-archive__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.button--primary {
    background: var(--dca-blue);
    color: var(--dca-white);
}

.button--outline {
    border: 1px solid var(--dca-gold);
    color: var(--dca-white);
}

.button--light {
    background: var(--dca-white);
    color: var(--dca-blue);
}

/* Stats */

.club-stats {
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

.club-stats__panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--dca-white);
    border-radius: var(--dca-radius);
    box-shadow: var(--dca-shadow);
    overflow: hidden;
}

.stat-card {
    padding: 28px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card span {
    display: block;
    text-transform: uppercase;
    color: var(--dca-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    color: var(--dca-navy);
}

/* Archive cards */

.archive-sections {
    padding: 70px 0;
}

.archive-sections h2 {
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dca-navy);
}

.archive-card-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.archive-card {
    background: var(--dca-white);
    border-radius: var(--dca-radius);
    padding: 28px;
    color: var(--dca-text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dca-shadow);
}

.archive-card h3 {
    margin: 0 0 10px;
    color: var(--dca-navy);
    font-size: 1.25rem;
}

.archive-card p {
    margin: 0;
    color: var(--dca-muted);
    line-height: 1.6;
}

@media (max-width: 700px) {
    .responsive-table .appearances-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    .responsive-table .appearances-table th,
    .responsive-table .appearances-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .responsive-table .appearances-table th:first-child,
    .responsive-table .appearances-table td:first-child {
        width: 60%;
    }

    .responsive-table .appearances-table th:nth-child(6),
    .responsive-table .appearances-table td:nth-child(6) {
        width: 22%;
        text-align: center;
    }

    .responsive-table .appearances-table th:nth-child(7),
    .responsive-table .appearances-table td:nth-child(7) {
        width: 18%;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .responsive-table .goalscorers-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    .responsive-table .goalscorers-table th,
    .responsive-table .goalscorers-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .responsive-table .goalscorers-table th:first-child,
    .responsive-table .goalscorers-table td:first-child {
        width: 75%;
    }

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

    .goalscorers-table td:first-child {
        white-space: normal;
        word-break: normal;
    }
}

/* Final season */

.final-season-highlight {
    padding: 0 0 80px;
}

.final-season-card {
    background:
        linear-gradient(135deg, rgba(6,75,196,0.95), rgba(2,11,24,0.95)),
        url("../images/final-season-bg.jpg") center / cover no-repeat;
    color: var(--dca-white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--dca-shadow);
}

.final-season-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.final-season-card p {
    max-width: 650px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Responsive */

@media (max-width: 900px) {
    .primary-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-archive__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-archive__badge-wrap {
        display: flex;
        justify-content: center;
    }

    .hero-archive__intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-archive__buttons {
        justify-content: center;
    }

    .club-stats__panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-archive__overlay {
        padding: 56px 0 90px;
    }

    .hero-archive__badge {
        max-width: 110px;
    }

    .club-stats {
        margin-top: -64px;
    }

    .club-stats__panel,
    .archive-card-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .stat-card:last-child {
        border-bottom: 0;
    }

    .final-season-card {
        padding: 30px;
    }
}

.archive-page {
    padding: 60px 0 80px;
    background: var(--dca-soft);
    min-height: 70vh;
}

.archive-page-header {
    margin-bottom: 36px;
    max-width: 800px;
}

.archive-page-header__eyebrow {
    margin: 0 0 10px;
    color: var(--dca-blue);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.archive-page-header h1 {
    margin: 0;
    color: var(--dca-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1;
}

.archive-page-header__intro {
    margin: 18px 0 0;
    color: var(--dca-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}


.responsive-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--dca-white);
    border-radius: var(--dca-radius);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}




.mobile-result-list {
    display: none;
}

@media (max-width: 700px) {
    .hide-mobile {
        display: none;
    }
}

@media (max-width: 700px) {
    .appearances-table {
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .desktop-results-table {
        display: none;
    }

    .mobile-result-list {
        display: grid;
        gap: 14px;
    }

    .mobile-result-card {
        padding: 18px;
        border-radius: var(--dca-radius);
        background: #fff;
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    }

    .mobile-result-card__date {
        color: var(--dca-muted);
        font-size: 0.85rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mobile-result-card__opponent {
        margin: 10px 0 0;
        color: var(--dca-navy);
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .mobile-result-card__opponent span {
        color: var(--dca-muted);
        font-size: 0.95rem;
        font-weight: 800;
    }

    .mobile-result-card__competition {
        margin-top: 6px;
        color: var(--dca-muted);
        font-size: 0.95rem;
        font-weight: 700;
    }

    .mobile-result-card__result {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 14px;
    }

    .mobile-result-card__result strong {
        color: var(--dca-navy);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.7rem;
        line-height: 1;
    }

    .mobile-result-card__button {
        margin-top: 16px;
        width: 100%;
    }
}

.table-muted-inline {
    color: var(--dca-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.result-with-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.result-with-score strong {
    color: var(--dca-navy);
}

.archive-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}


.archive-table th,
.archive-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.archive-table th {
    background: var(--dca-navy);
    color: var(--dca-white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.archive-table tr:last-child td {
    border-bottom: 0;
}

.archive-table tbody tr:hover {
    background: #f8fafc;
}

.table-link {
    color: var(--dca-blue);
    font-weight: 800;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--dca-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.table-button:hover {
    background: var(--dca-navy);
    color: #fff;
}

.mobile-result-card__button {
    margin-top: 14px;
}

/* Club honours and player awards */

.club-honours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.club-honour-card {
    padding: 22px;
    border-radius: var(--dca-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.club-honour-card h3 {
    margin: 0;
    color: var(--dca-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

.club-honour-card h3 a {
    color: var(--dca-navy);
    text-decoration: none;
}

.club-honour-card h3 a:hover {
    color: var(--dca-blue);
    text-decoration: underline;
}

.club-honour-card h3 span {
    display: block;
    margin-top: 6px;
    color: var(--dca-gold);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.club-honour-card__name {
    margin: 16px 0 0;
    color: var(--dca-navy);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.5;
}

.club-honour-card__meta,
.club-honour-card__position,
.club-honour-card__notes {
    margin: 8px 0 0;
    color: var(--dca-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.club-honour-card__position {
    color: var(--dca-blue);
    font-weight: 900;
}

@media (max-width: 1000px) {
    .club-honours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .club-honours-grid {
        grid-template-columns: 1fr;
    }

    .club-honour-card {
        padding: 18px;
    }
}

.award-list {
    display: grid;
    gap: 10px;
}

.award-list__item {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.award-list__item:last-child {
    border-bottom: 0;
}

.award-list__item strong {
    color: var(--dca-navy);
}

.award-list__item a {
    color: var(--dca-blue);
    font-weight: 800;
    text-decoration: none;
}

.award-list__item a:hover {
    text-decoration: underline;
}

.mobile-player-awards-list {
    display: none;
}

@media (max-width: 700px) {
    .desktop-player-awards-table {
        display: none;
    }

    .mobile-player-awards-list {
        display: grid;
        gap: 14px;
    }

    .mobile-player-awards-card {
        padding: 18px;
        border-radius: var(--dca-radius);
        background: #fff;
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    }

    .mobile-player-awards-card h3 {
        margin: 0 0 14px;
        color: var(--dca-navy);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .mobile-player-awards-card h3 a {
        color: var(--dca-navy);
        text-decoration: none;
    }

    .mobile-player-awards-card h3 a:hover {
        color: var(--dca-blue);
        text-decoration: underline;
    }

    .mobile-player-awards-card .award-list__item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .mobile-player-awards-card .award-list__item strong {
        font-size: 0.95rem;
    }

    .mobile-player-awards-card .award-list__item a {
        font-size: 1.05rem;
    }
}

/* archive summary page */

.archive-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.archive-summary-card {
    background: #fff;
    border-radius: var(--dca-radius);
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.archive-summary-card span {
    display: block;
    color: var(--dca-muted);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.archive-summary-card strong {
    display: block;
    margin-top: 8px;
    color: var(--dca-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

@media (max-width: 800px) {
    .archive-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .archive-summary-grid {
        grid-template-columns: 1fr;
    }
}

.archive-subheading {
    margin: 0 0 16px;
    color: var(--dca-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.league-table th,
.league-table td {
    text-align: center;
}

.league-table th:nth-child(2),
.league-table td:nth-child(2) {
    text-align: left;
}

.league-table .is-dca-team {
    background: #eff6ff;
    font-weight: 800;
}

.league-table .is-dca-team td {
    border-top: 2px solid var(--dca-blue);
    border-bottom: 2px solid var(--dca-blue);
}

.archive-section .league-table-wrap {
    margin-bottom: 40px;
}

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

.archive-section h2 {
    margin: 0 0 18px;
    color: var(--dca-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.archive-back-link {
    margin: -16px 0 28px;
}

.archive-back-link a {
    color: var(--dca-blue);
    font-weight: 800;
    text-decoration: none;
}

.archive-back-link a:hover {
    text-decoration: underline;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
}

.result-badge--w {
    background: #15803d;
}

.result-badge--d {
    background: #ca8a04;
}

.result-badge--l {
    background: #b91c1c;
}

/* Player archive page */

.mobile-player-list {
    display: none;
}

@media (max-width: 700px) {
    .desktop-player-table {
        display: none;
    }

    .mobile-player-list {
        display: grid;
        gap: 14px;
    }

    .mobile-player-card {
        padding: 18px;
        border-radius: var(--dca-radius);
        background: #fff;
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    }

    .mobile-player-card__name {
        margin: 0;
        color: var(--dca-navy);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .mobile-player-card__meta {
        margin-top: 6px;
        color: var(--dca-muted);
        font-size: 0.9rem;
        font-weight: 800;
    }

    .mobile-player-card__stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 16px;
    }

    .mobile-player-card__stats div {
        padding: 10px 8px;
        border-radius: 12px;
        background: #f8fafc;
        text-align: center;
    }

    .mobile-player-card__stats span {
        display: block;
        color: var(--dca-muted);
        font-size: 0.68rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mobile-player-card__stats strong {
        display: block;
        margin-top: 4px;
        color: var(--dca-navy);
        font-size: 1.1rem;
        font-weight: 900;
    }

    .mobile-player-card__button {
        width: 100%;
        margin-top: 16px;
    }
}

.mobile-sort-panel {
    display: none;
}

@media (max-width: 700px) {
    .mobile-sort-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 14px;
        padding: 12px;
        border-radius: var(--dca-radius);
        background: #fff;
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    }

    .mobile-sort-panel span {
        width: 100%;
        color: var(--dca-muted);
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mobile-sort-panel a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        background: #f1f5f9;
        color: var(--dca-navy);
        font-size: 0.82rem;
        font-weight: 900;
        text-decoration: none;
    }

    .mobile-sort-panel a:hover {
        background: var(--dca-blue);
        color: #fff;
    }
}

.archive-table td strong {
    color: var(--dca-navy);
}

.table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--dca-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.table-button:hover {
    background: var(--dca-navy);
    color: #fff;
}

/* Records page */

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

.records-grid--match {
    grid-template-columns: repeat(3, 1fr);
}

.record-panel {
    background: #fff;
    border-radius: var(--dca-radius);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.record-panel h3 {
    margin: 0 0 18px;
    color: var(--dca-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.record-list {
    margin: 0;
    padding-left: 24px;
}

.record-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.record-list li:last-child {
    border-bottom: 0;
}

.record-list li::marker {
    color: var(--dca-blue);
    font-weight: 900;
}

.record-list li {
    display: list-item;
}

.record-list a {
    color: var(--dca-navy);
    font-weight: 800;
    text-decoration: none;
}

.record-list a:hover {
    color: var(--dca-blue);
    text-decoration: underline;
}

.record-list strong {
    float: right;
    margin-left: 16px;
    color: var(--dca-blue);
    font-size: 1.05rem;
}

.record-list--wide li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.record-list--wide strong {
    float: none;
    white-space: nowrap;
}

.record-list small {
    display: block;
    margin-top: 3px;
    color: var(--dca-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

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

/* Venue page */

.table-muted {
    display: block;
    margin-top: 4px;
    color: var(--dca-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.mobile-venue-list {
    display: none;
}

@media (max-width: 700px) {
    .desktop-venues-table {
        display: none;
    }

    .mobile-venue-list {
        display: grid;
        gap: 14px;
    }

    .mobile-venue-card {
        padding: 18px;
        border-radius: var(--dca-radius);
        background: #fff;
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    }

    .mobile-venue-card__title {
        margin: 0;
        color: var(--dca-navy);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .mobile-venue-card__location {
        margin: 8px 0 0;
        color: var(--dca-muted);
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.5;
    }

    .mobile-venue-card__location span {
        display: block;
    }

    .mobile-venue-card__stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 16px;
    }

    .mobile-venue-card__stats div {
        padding: 10px 8px;
        border-radius: 12px;
        background: #f8fafc;
        text-align: center;
    }

    .mobile-venue-card__stats span {
        display: block;
        color: var(--dca-muted);
        font-size: 0.68rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mobile-venue-card__stats strong {
        display: block;
        margin-top: 4px;
        color: var(--dca-navy);
        font-size: 1.1rem;
        font-weight: 900;
    }

    .mobile-venue-card__button {
        width: 100%;
        margin-top: 16px;
    }
}

/* Final season page */

.final-season-hero {
    margin-bottom: 36px;
    padding: 48px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(2, 11, 24, 0.94), rgba(6, 75, 196, 0.9)),
        url("../images/hero-bg.jpg") center / cover no-repeat;
    color: #fff;
    box-shadow: var(--dca-shadow);
}

.final-season-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.95;
}

.final-season-hero__years {
    margin: 14px 0 0;
    color: var(--dca-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.final-season-hero__intro {
    max-width: 720px;
    margin-top: 20px;
    color: rgba(255,255,255,0.86);
    font-size: 1.15rem;
    line-height: 1.7;
}

.final-season-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button--outline-dark {
    border: 1px solid rgba(255,255,255,0.55);
    color: #fff;
}

.final-season-message {
    padding: 30px;
    border-left: 6px solid var(--dca-gold);
    border-radius: var(--dca-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.final-season-message p {
    max-width: 900px;
    color: var(--dca-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

@media (max-width: 700px) {
    .final-season-hero {
        padding: 30px;
    }

    .final-season-hero__buttons {
        display: grid;
    }
}

/* Homepage */

.club-archive-message {
    padding: 64px 0;
    background: var(--dca-soft);
}

.club-archive-message__panel {
    padding: 42px;
    border-radius: 24px;
    background: #fff;
    border-left: 6px solid var(--dca-gold);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.club-archive-message__panel h2 {
    max-width: 850px;
    margin: 0;
    color: var(--dca-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.club-archive-message__panel p {
    max-width: 950px;
    color: var(--dca-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.club-archive-message__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.button--outline-dark-alt {
    border: 1px solid var(--dca-navy);
    color: var(--dca-navy);
}

.button--outline-dark-alt:hover {
    background: var(--dca-navy);
    color: #fff;
}

@media (max-width: 700px) {
    .club-archive-message {
        padding: 40px 0;
    }

    .club-archive-message__panel {
        padding: 28px;
    }

    .club-archive-message__buttons {
        display: grid;
    }
}

/* Archive page */

.archive-card-grid--hub {
    grid-template-columns: repeat(3, 1fr);
}

.archive-hub-card {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
}

.archive-hub-card h3 {
    font-size: 1.35rem;
}

.archive-hub-card p {
    margin-bottom: 22px;
}

.archive-hub-card__link {
    margin-top: auto;
    color: var(--dca-blue);
    font-weight: 900;
    font-size: 0.92rem;
}

.archive-hub-card:hover .archive-hub-card__link {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .archive-card-grid--hub {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .archive-card-grid--hub {
        grid-template-columns: 1fr;
    }

    .archive-hub-card {
        min-height: auto;
    }
}

/* Match information page */

.match-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}

.match-detail-card {
    background: #fff;
    border-radius: var(--dca-radius);
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.match-detail-card span {
    display: block;
    color: var(--dca-muted);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.match-detail-card strong {
    display: block;
    margin-top: 8px;
    color: var(--dca-navy);
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .match-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .match-detail-grid {
        grid-template-columns: 1fr;
    }
}

.archive-table th .sort-link {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.archive-table th .sort-link:visited {
    color: #fff;
}

.archive-table th .sort-link:hover {
    color: var(--dca-gold);
    text-decoration: underline;
}

/* Season archive page */

.mobile-season-list {
    display: none;
}

@media (max-width: 700px) {
    .desktop-season-table {
        display: none;
    }

    .mobile-season-list {
        display: grid;
        gap: 14px;
    }

    .mobile-season-card {
        padding: 18px;
        border-radius: var(--dca-radius);
        background: #fff;
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    }

    .mobile-season-card__title {
        margin: 0;
        color: var(--dca-navy);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .mobile-season-card__stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 16px;
    }

    .mobile-season-card__stats div {
        padding: 10px 8px;
        border-radius: 12px;
        background: #f8fafc;
        text-align: center;
    }

    .mobile-season-card__stats span {
        display: block;
        color: var(--dca-muted);
        font-size: 0.68rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mobile-season-card__stats strong {
        display: block;
        margin-top: 4px;
        color: var(--dca-navy);
        font-size: 1.1rem;
        font-weight: 900;
    }

    .mobile-season-card__button {
        width: 100%;
        margin-top: 16px;
    }
}

.mobile-season-card__records {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.mobile-season-record-card {
    display: block;
    padding: 18px;
    border-radius: var(--dca-radius);
    background: var(--dca-navy);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.mobile-season-record-card span {
    display: block;
    color: var(--dca-gold);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mobile-season-record-card strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.mobile-season-record-card em {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 800;
}

.mobile-season-record-card:hover {
    background: var(--dca-blue);
}

.mobile-season-record-card a {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
}

.mobile-season-record-card a:hover {
    color: var(--dca-gold);
    text-decoration: underline;
}