/* =========================
   NDYFL 2026 Base Styles
========================= */

:root {
    --bg: #f4f7fb;
    --card-bg: #ffffff;

    --text: #061735;
    --muted: #475569;

    --navy: #001f5f;
    --navy-dark: #001540;
    --yellow: #ffe735;

    --border: #dbe3f0;

    --link: #003b8f;
    --link-hover: #001f5f;

    --notice-bg: #eef5ff;
    --notice-border: #4d8dff;
    --notice-title: #003b8f;
}

/* =========================
   Base
========================= */

html {
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================
   Header
========================= */

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo {
    width: 74px;
    height: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    color: var(--navy);
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.site-subtitle {
    margin-top: 2px;
    color: var(--navy);
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.affiliation-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 24px;
}

.affiliation-block {
    text-align: right;
    font-size: 12px;
    line-height: 1.2;
    color: var(--muted);
}

.affiliation-block span {
    display: block;
}

.affiliation-block strong {
    display: block;
    color: var(--navy);
}

.fa-logo {
    width: 38px;
    height: auto;
    display: block;
}

.login-button,
.results-button {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.login-button {
    background: var(--navy);
    color: #ffffff;
}

.results-button {
    background: var(--yellow);
    color: var(--navy);
}

.theme-toggle {
    background: #eef3fb;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    cursor: pointer;
}


/* =========================
   Navigation
========================= */

.nav-container {
    padding-top: 0;
    padding-bottom: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 16px 15px;
    color: var(--navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.main-nav a:hover {
    background: #f7f9fd;
    box-shadow: inset 0 -4px 0 var(--yellow);
}

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

.mobile-menu-toggle {
    display: none;
}

/* Light mode nav divider */
body:not(.theme-dark) .nav-container {
    border-top: 1px solid #d6dde8;
}

/* =========================
   Header contained layout
========================= */

.site-header {
    background: transparent;
    border-top: none;
    border-bottom: none;
}

.header-container {
    background: #ffffff;
    border-top: 3px solid var(--navy);
}

.main-nav {
    background: transparent;
    border-bottom: none;
}

.nav-container {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

/* Remove full-width white strip behind contained header/nav */
.site-header,
.main-nav {
    background: transparent !important;
}

body:not(.theme-dark) .site-header,
body:not(.theme-dark) .main-nav {
    background: transparent !important;
}

/* Final cleanup of stray header lines */
.site-header,
.main-nav,
.header-container,
.nav-container {
    box-shadow: none !important;
}

.site-header::before,
.site-header::after,
.main-nav::before,
.main-nav::after,
.header-container::before,
.header-container::after,
.nav-container::before,
.nav-container::after {
    display: none !important;
    border: 0 !important;
    content: none !important;
}

.nav-container {
    margin-bottom: -1px;
}


/* =========================
   Cards
========================= */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* =========================
   Forms
========================= */

select,
button {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 15px;
}

select {
    background: #ffffff;
    color: #0f172a;
}

/* =========================
   FA Overrides
========================= */

.card table[width="100%"] {
    width: 100% !important;
    border-collapse: collapse !important;
}

.card td,
.card th {
    padding: 10px !important;
    font-size: 15px !important;
}

.card a {
    text-decoration: none !important;
    color: var(--link) !important;
    font-weight: 600;
}

.card a:hover {
    color: var(--link-hover) !important;
    text-decoration: none !important;
}

.card table td {
    padding-left: 10px !important;
}

/* =========================
   Notice
========================= */

.notice-box {
    background: var(--notice-bg);
    border: 1px solid #c9dcff;
    border-left: 5px solid var(--notice-border);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.notice-box h3 {
    margin-top: 0;
    color: var(--notice-title);
}

/* =========================
   Homepage Hero
========================= */

.hero-slider {
    margin-top: 0;
    margin-bottom: 30px;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    background: var(--navy);
}

.hero-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.88) 0%,
        rgba(255,255,255,0.55) 38%,
        rgba(255,255,255,0.0) 72%
    );
}

.hero-content {
    max-width: 500px;
    margin-left: 70px;
    padding: 42px;
    border-radius: 18px;
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(3px);
}

.hero-content h1 {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 800;
    color: var(--navy);
}

.hero-content p {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.7;
}

.hero-button {
    display: inline-block;
    background: var(--navy);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-button:hover {
    background: var(--navy-dark);
}

/* =========================
   Homepage Quick Links
========================= */

.quick-links{

    display:grid;

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

    gap:0;

    margin-top:0;

    border:1px solid #d9dee8;
    border-radius:10px;

    overflow:hidden;

    background:#ffffff;
}

.quick-link{

    background:#ffffff;

    text-decoration:none;

    color:#001b5e;

    padding:26px 18px 22px;

    text-align:center;

    border-right:1px solid #e5e9f2;

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

.quick-link:last-child{
    border-right:none;
}

.quick-link:hover{

    background:#f8fbff;
}

.quick-link i{

    font-size:38px;

    margin-bottom:16px;

    color:#001b5e;

    display:block;
}

.quick-link-title{

    font-size:15px;
    font-weight:800;

    letter-spacing:0.3px;

    margin-bottom:10px;

    text-transform:uppercase;
}

.quick-link-text{

    font-size:14px;

    line-height:1.5;

    color:#4b5563;
}

/* =========================
   Mobile
========================= */

@media(max-width:768px){

    .quick-links{

        grid-template-columns:repeat(3, 1fr);

        border-radius:12px;

        margin-top:18px;
    }

    .quick-link{

        padding:18px 10px;

        border-bottom:1px solid #e5e9f2;
    }

    .quick-link:nth-child(3n){

        border-right:none;
    }

.quick-link i {
    font-size: 36px !important;
    margin-bottom: 14px !important;
    color: #001b5e !important;
    display: block !important;
    font-weight: normal !important;
}

.quick-link-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
}

    .quick-link-text{

        display:none;
    }
}
/* =========================
   Mobile
========================= */

@media(max-width: 768px) {

    .container {
        padding: 14px;
    }

    .site-header {
        border-bottom: 3px solid var(--yellow);
    }

    .header-container {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 86px;
        padding: 14px 16px;
        gap: 10px;
    }

    .brand-block {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .site-logo {
        width: 60px;
        flex: 0 0 auto;
    }

    .brand-text {
        min-width: 0;
    }

@media(max-width: 768px) {

    .site-title {
        font-size: 22px;
        line-height: 0.95;
        font-weight: 900;
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .site-subtitle {
        font-size: 16.5px;
        line-height: 0.95;
        font-weight: 900;
        letter-spacing: -0.01em;
        white-space: nowrap;
        margin-top: 2px;
    }

}

    .header-actions,
    .affiliation-wrap,
    .results-button,
    .theme-toggle {
        display: none !important;
    }

    .main-nav {
        position: absolute;
        top: 26px;
        right: 16px;
        border: none;
        background: transparent;
        z-index: 100;
    }

    .nav-container {
        padding: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--navy);
        font-size: 36px;
        line-height: 1;
        cursor: pointer;
    }

    .main-nav ul {
        position: absolute;
        top: 48px;
        right: 0;
        width: 240px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    }

    .main-nav ul.open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 16px;
        font-size: 13px;
        border-bottom: 1px solid #edf2f7;
        box-shadow: none;
    }

    .main-nav a:hover {
        box-shadow: none;
    }

    .nav-search {
        margin-left: 0;
    }

    .hero-slide {
        border-radius: 0 0 16px 16px;
    }

    .hero-slide img {
        height: 520px;
    }

    .hero-overlay {
        align-items: flex-start;
        padding-top: 54px;
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.78) 0%,
            rgba(255,255,255,0.35) 45%,
            rgba(255,255,255,0.0) 80%
        );
    }

    .hero-content {
        margin: 0 22px;
        max-width: 78%;
        padding: 24px;
        border-radius: 16px;
        background: rgba(255,255,255,0.88);
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 22px;
    }

    .hero-button {
        padding: 12px 18px;
        font-size: 12px;
    }

    .card {
        padding: 16px;
    }
	
	.home-lower-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.news-item {
		grid-template-columns: 72px 1fr;
	}

	.news-date {
		grid-column: 2;
	}

	.news-item img {
		width: 72px;
		height: 58px;
	}

	.date-item {
		grid-template-columns: 58px 1fr;
	}

	.date-box strong {
		font-size: 28px;
	}
	
	/* Mobile lower homepage panels */

@media(max-width: 768px) {

    .home-lower-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 18px;
        margin-top: 24px;
    }

    .panel-header {
        padding: 16px;
    }

    .panel-header h2 {
        font-size: 18px;
        line-height: 1.1;
    }

    .panel-header a {
        font-size: 13px;
        white-space: nowrap;
    }

    .news-item {
        display: grid;
        grid-template-columns: 82px 1fr;
        gap: 14px;
        align-items: start;
        padding: 16px;
    }

    .news-item img {
        width: 82px;
        height: 64px;
        border-radius: 8px;
    }

    .news-content h3 {
        font-size: 15px;
        line-height: 1.25;
    }

    .news-content p {
        font-size: 13px;
        line-height: 1.45;
    }

    .news-date {
        grid-column: 2;
        font-size: 12px;
        margin-top: 4px;
    }

    .date-item {
        grid-template-columns: 58px 1fr;
        gap: 14px;
        padding: 16px;
    }

    .date-box strong {
        font-size: 30px;
    }

    .date-item h3 {
        font-size: 15px;
    }

    .date-item p {
        font-size: 13px;
        line-height: 1.45;
    }
}
}

/* =========================
   Mobile Theme Toggle
========================= */

.mobile-theme-toggle {
    display: none !important;
}

@media(max-width:768px) {

    .mobile-theme-toggle {
        display: block !important;
        padding: 14px 18px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-theme-toggle button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;

        background: transparent;
        border: none;

        color: #ffffff;
        font-size: 15px;
        font-weight: 600;

        cursor: pointer;
    }

    .mobile-theme-toggle button i {
        font-size: 16px;
    }
}
	
/* =========================
   Homepage Lower Grid
========================= */

.home-lower-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.home-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-header a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.news-item {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

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

.news-item img {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #edf2f7;
}

.news-content h3,
.date-item h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.news-content p,
.date-item p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.news-date {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.date-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

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

.date-box {
    text-align: center;
    color: var(--navy);
}

.date-box strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.date-box span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-item:hover {
    background: #f8fbff;
}

.date-box strong {
    font-size: 38px;
}

/* =========================
   FOOTBALL LINKS STRIP
========================= */

.football-links-strip {
    background: #ffffff;
    border: 1px solid #cfd7e3;
    border-radius: 14px;
    margin-top: 24px;
    overflow: hidden;

    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Mobile affiliation only */

.mobile-affiliation {
    display: none;
    padding: 16px 22px;
    border-bottom: 1px solid #e5e9f1;
    text-align: center;
    font-size: 14px;
    color: #475569;
}

.mobile-affiliation a {
    color: #001b5e;
    font-weight: 800;
    text-decoration: none;
}

/* Links title */

.football-links-title {
    padding: 16px 22px;
    border-bottom: 1px solid #e5e9f1;
    font-size: 15px;
    font-weight: 800;
    color: #001b5e;
    letter-spacing: 0.4px;
}

/* Logo row */

.football-links-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    padding: 26px 22px;
    flex-wrap: wrap;
}

.football-links-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.football-links-logos img {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
    transition: all 0.25s ease;
}

.football-links-logos img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

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

@media(max-width:768px) {

    .football-links-strip {
        margin-top: 18px;
    }

    .mobile-affiliation {
        display: block;
    }

    .football-links-title {
        text-align: center;
        font-size: 14px;
    }

    .football-links-logos {
        gap: 20px;
        padding: 20px 16px;
    }

    .football-links-logos img {
        height: 40px;
    }
}

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

.site-footer {
    margin-top: 34px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    align-items: start;
    padding-top: 34px;
    padding-bottom: 34px;
}

/* Brand */

.footer-brand {
    text-align: center;
}

.footer-brand img {
    width: 78px;
    height: auto;
    margin: 0 auto 14px;
    display: block;
}

.footer-brand h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.15;
    font-weight: 850;
}

.footer-brand p {
    max-width: 300px;
    margin: 0 auto 14px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

/* Socials */

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    border-radius: 50%;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    background: var(--navy);
    color: #ffffff;
}

/* Desktop accordion behaves like columns */

.footer-accordion {
    display: contents;
}

.footer-accordion-item {
    display: block;
}

.footer-accordion-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
    cursor: default;
}

.footer-accordion-symbol {
    display: none;
}

.footer-accordion-label {
    display: block;
}

.footer-accordion-content {
    display: block;
}

.footer-accordion-content a {
    display: block;
    margin-bottom: 4px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.9;
}

.footer-accordion-content a:hover {
    color: var(--navy) !important;
    text-decoration: none !important;
}

/* Contact */

.footer-contact .footer-email {
    margin: 0 0 10px;
}

.footer-contact .footer-email a {
    color: var(--navy) !important;
    text-decoration: none !important;
    font-weight: 800;
}

.footer-address {
    background: #f3f6fb;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    max-width: 280px;
}

.visitors-note {
    margin-top: 18px !important;
    font-weight: 700;
    color: var(--navy);
}

/* Bottom bar */

.footer-bottom {
    background: var(--navy);
    color: #ffffff;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    font-size: 13px;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.footer-bottom a:hover {
    color: #ffe100;
}

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

@media(max-width:768px) {

    .site-footer {
        margin-top: 28px;
    }

    .footer-main {
        display: block;
        text-align: center;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .footer-brand {
        padding-bottom: 24px;
    }

    .footer-brand img {
        width: 72px;
    }

    .footer-brand p {
        max-width: 320px;
        font-size: 16px;
    }

/* Accordion layout */

.footer-accordion {
    display: block;
    margin-top: 16px;
}

.footer-accordion-item {
    margin-bottom: 14px;
}

.footer-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 60px;

    padding: 5px 22px 5px 22px;

    background: #f3f6fb;
    border: none;
    border-radius: 14px;

    color: var(--navy);
    cursor: pointer;

    transition: all 0.25s ease;
}

.footer-accordion-toggle h4 {
    margin: 0;

    color: inherit !important;

    font-size: 17px;
    line-height: 1;

    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.footer-accordion-label {
    display: flex;
    align-items: center;

    color: inherit !important;

    font-size: 17px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.footer-accordion-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    color: inherit !important;

    font-size: 34px;
    font-weight: 400;
    line-height: 1;
}

/* OPEN STATE */

.footer-accordion-item.open .footer-accordion-toggle {
    background: var(--navy);
    color: #ffffff !important;
}

/* Accordion content */

.footer-accordion-content {
    display: none;
    padding: 18px 0 6px;
}

.footer-accordion-item.open .footer-accordion-content {
    display: block;
}

.footer-accordion-content a {
    display: block;

    color: var(--navy) !important;
    text-decoration: none !important;

    font-size: 20px;
    line-height: 1.45;

    padding: 5px 0;
}

    /* Contact */

    .footer-contact .footer-email {
        margin-bottom: 18px;
    }

    .footer-contact .footer-email a {
        color: var(--navy) !important;
        text-decoration: none !important;

        font-size: 22px;
        font-weight: 800;
    }

    .footer-contact .footer-address {
        width: 100%;
        max-width: 560px;

        margin: 18px auto 0;
        padding: 22px 18px;

        background: #f3f6fb;
        border: 1px solid #dbe3f0;
        border-radius: 16px;

        font-size: 14px;
        line-height: 1.5;
    }

    .visitors-note {
        margin-top: 22px !important;

        font-size: 20px;
        font-weight: 800;
    }

    /* Bottom bar */

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;

        gap: 8px;

        text-align: center;
        line-height: 1.5;

        padding: 14px 0;
    }
	
}


/* =========================
   FINAL FOOTER ACCORDION FIXES
========================= */

/* Desktop heading underline only */
@media(min-width:769px) {

    .footer-accordion-toggle {
    border-bottom: 1px solid #dbe3f0;
    border-radius: 0 !important;
    padding-bottom: 10px;
    margin-bottom: 16px;
    width: 100%;
    background: transparent;
	}

    .footer-accordion-label {
    display: block;
    color: var(--navy) !important;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
	}

    .footer-accordion-symbol {
        display: none;
    }
	
}

/* Mobile accordion label/symbol */
@media(max-width:768px) {

    .footer-accordion-label {
        display: flex !important;
        align-items: center !important;
        transform: translateY(2px);

        color: inherit !important;

        font-size: 17px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
    }

    .footer-accordion-symbol {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: inherit !important;

        font-size: 34px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
    }

    .footer-accordion-item.open .footer-accordion-toggle {
        background: var(--navy);
        color: #ffffff !important;
    }
	
}

	.site-footer {
        border-radius: 12px;
        overflow: hidden;
    }
	
/* =========================================================
   DARK THEME
========================================================= */

body.theme-dark {
    --bg: #06122d;
    --card-bg: #0b1d44;

    --text: #f3f7ff;
    --muted: #c2cde3;

    --navy: #001f5f;
    --navy-dark: #001540;

    --border: rgba(255,255,255,0.10);

    --link: #ffffff;
    --link-hover: #f4d40a;

    background: #d8dde7;
    color: #f3f7ff;
}

/* =========================
   Header
========================= */

body.theme-dark .site-header {
    background: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Navy logo/title header */
body.theme-dark .header-container {
    background: #08245a !important;
    border-top: 3px solid #f4d40a !important;
    border-radius: 0 !important;
}

/* Keep nav wrapper transparent so yellow is site-width only */
body.theme-dark .main-nav {
    background: transparent !important;
    border-bottom: none !important;
}

/* Yellow menu bar, restricted to container width */
body.theme-dark .nav-container {
    background: #f4d40a !important;
    border-radius: 0 0 14px 14px !important;
    overflow: hidden;
}

/* Do NOT colour the ul full-width */
body.theme-dark .main-nav ul {
    background: transparent !important;
}

/* Menu text */
body.theme-dark .main-nav a,
body.theme-dark .main-nav ul a,
body.theme-dark .main-nav li a {
    color: #061735 !important;
}

body.theme-dark .main-nav a:hover {
    background: rgba(0,31,95,0.12) !important;
    color: #061735 !important;
    box-shadow: none !important;
}

/* =========================
   Main Site Body
========================= */

body.theme-dark main {
    background-color: #041633;
}

/* =========================
   Text
========================= */

body.theme-dark .site-title,
body.theme-dark .site-subtitle,
body.theme-dark .brand-text,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4 {
    color: #ffffff;
}

body.theme-dark p,
body.theme-dark .news-content p,
body.theme-dark .date-item p,
body.theme-dark .footer-brand p {
    color: #c7d2e5;
}

/* =========================
   Cards / Panels
========================= */

body.theme-dark .card,
body.theme-dark .home-panel,
body.theme-dark .quick-links,
body.theme-dark .football-links-strip,
body.theme-dark .site-footer {
    background: #0b1d44;
    border-color: rgba(255,255,255,0.08);
}

/* =========================
   Hero
========================= */

body.theme-dark .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(3,10,28,0.88) 0%,
        rgba(3,10,28,0.58) 40%,
        rgba(3,10,28,0.10) 72%
    );
}

body.theme-dark .hero-content {
    background: rgba(6,18,45,0.72);
}

body.theme-dark .hero-button {
    background: #f4d40a;
    color: #001b5e !important;
}

body.theme-dark .hero-button:hover {
    background: #ffffff;
}

/* =========================
   Quick Links
========================= */

body.theme-dark .quick-link {
    background: #082052;
    border-color: rgba(255,255,255,0.08);
}

body.theme-dark .quick-link:hover {
    background: #0d2d73;
}

body.theme-dark .quick-link-title,
body.theme-dark .quick-link i {
    color: #ffffff;
}

body.theme-dark .quick-link-text {
    color: #d5def0;
}

/* =========================
   Footer
========================= */

body.theme-dark .footer-bottom {
    background: #001540;
}

body.theme-dark .footer-bottom a:hover {
    color: #f4d40a;
}

body.theme-dark .footer-accordion-toggle {
    background: rgba(255,255,255,0.04);
}

body.theme-dark .footer-address {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

/* =========================
   Mobile Menu
========================= */

@media(max-width:768px) {

    body.theme-dark .main-nav ul {
        background: #0b1d44 !important;
        border-color: rgba(255,255,255,0.08);
    }

    body.theme-dark .main-nav ul a {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

}

/* =========================
   News + Dates Panels
========================= */

/* Main content areas */
body.theme-dark .news-panel,
body.theme-dark .dates-panel,
body.theme-dark .panel-card,
body.theme-dark .latest-news,
body.theme-dark .upcoming-dates {
    background: #d9dee7;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Header strips stay navy */
body.theme-dark .news-panel-header,
body.theme-dark .dates-panel-header,
body.theme-dark .panel-header,
body.theme-dark .latest-news h2,
body.theme-dark .upcoming-dates h2 {
    background: #08245a;
    color: #ffffff;
}

/* Main content text */
body.theme-dark .news-item,
body.theme-dark .date-item {
    color: #1d2f52 !important;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Article/Event titles */
body.theme-dark .news-item h3,
body.theme-dark .date-item h3,
body.theme-dark .news-item strong,
body.theme-dark .date-item strong,
body.theme-dark .news-item a,
body.theme-dark .date-item a {
    color: #08245a !important;
}

/* Secondary/meta text */
body.theme-dark .news-item p,
body.theme-dark .date-item p,
body.theme-dark .news-date,
body.theme-dark .event-time {
    color: #4e5f7f !important;
}

/* Individual article/date rows */
body.theme-dark .news-item,
body.theme-dark .date-item {
    background: #f4f6fa;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* Hover */
body.theme-dark .news-item:hover,
body.theme-dark .date-item:hover {
    background: #eceff5;
}

/* =========================
   Useful Football Links
========================= */

/* Main panel */
body.theme-dark .football-links-strip,
body.theme-dark .useful-links-panel {
    background: #f4f6fa;
    border: 1px solid #08245a !important;
    border-radius: 14px;
}

/* Navy header */
body.theme-dark .football-links-title,
body.theme-dark .football-links-strip h2,
body.theme-dark .football-links-strip h3 {
    background: #08245a;
    color: #ffffff !important;
    padding: 18px 22px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logos area */
body.theme-dark .football-links-logos {
    background: #f4f6fa;
}

/* Optional subtle hover on logos */
body.theme-dark .football-links-logos img {
    transition: transform 0.2s ease;
}

body.theme-dark .football-links-logos img:hover {
    transform: translateY(-2px);
}

/* Dark theme panel base behind rows */
body.theme-dark .home-lower-grid .home-panel {
    background: #08245a !important;
}

/* Keep the actual article/date rows light grey */
body.theme-dark .home-lower-grid .news-item,
body.theme-dark .home-lower-grid .date-item {
    background: #f4f6fa !important;
}

/* =========================
   Footer Refinements
========================= */

/* Main footer background */
body.theme-dark .site-footer {
    background: #08245a;
}

/* Footer columns area */
body.theme-dark .footer-main {
    background: #08245a;
}

/* Footer headings */
body.theme-dark .footer-column h3,
body.theme-dark .footer-title,
body.theme-dark .footer-links-title,
body.theme-dark .footer-column-title {
    color: #ffffff !important;
}

/* Footer links */
body.theme-dark .footer-column a,
body.theme-dark .footer-links a,
body.theme-dark .footer-contact a {
    color: #dfe6f2 !important;
}

body.theme-dark .footer-column a:hover,
body.theme-dark .footer-links a:hover,
body.theme-dark .footer-contact a:hover {
    color: #ffffff !important;
}

/* Address box */
body.theme-dark .footer-address {
    background: #f4f6fa;
    color: #1d2f52;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Visitors note */
body.theme-dark .visitors-note {
    color: #ffffff;
}

/* ========================================
   FINAL FOOTER TEXT FIXES
======================================== */

/* Footer titles */
body.theme-dark .site-footer h3,
body.theme-dark .site-footer h4,
body.theme-dark .site-footer .footer-title,
body.theme-dark .site-footer .footer-column-title,
body.theme-dark .site-footer .footer-links-title {
    color: #ffffff !important;
}

/* Footer links */
body.theme-dark .site-footer a {
    color: #dfe6f2 !important;
}

body.theme-dark .site-footer a:hover {
    color: #ffffff !important;
}

/* Email link */
body.theme-dark .footer-email a {
    color: #ffffff !important;
    font-weight: 700;
}

/* Social icons */
body.theme-dark .footer-socials a {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.22);
}

body.theme-dark .footer-socials a:hover {
    background: rgba(255,255,255,0.08);
}

/* Footer accordion/button titles */
body.theme-dark .footer-accordion-toggle,
body.theme-dark .footer-accordion-toggle span,
body.theme-dark .footer-accordion-label {
    color: #ffffff !important;
}

/* Footer column headings */
body.theme-dark .footer-accordion-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.65) !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.theme-dark .footer-accordion-toggle,
body.theme-dark .footer-accordion-toggle span,
body.theme-dark .footer-accordion-label {
    color: #ffffff !important;
}

	@media (max-width: 768px) {
    .theme-toggle {
        display: flex !important;
    }
}


/* =========================
   Final Mobile Dark Fixes
========================= */

@media(max-width: 768px) {

    /* =====================
       Hamburger Button
    ===================== */

    body.theme-dark .mobile-menu-toggle,
    body.theme-dark .navbar-toggler,
    body.theme-dark .menu-toggle {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Yellow hamburger lines only */
    body.theme-dark .mobile-menu-toggle i,
    body.theme-dark .navbar-toggler i,
    body.theme-dark .menu-toggle i,
    body.theme-dark .navbar-toggler-icon {
        color: #f4d40a !important;
        background-image: none !important;
    }

    /* Bootstrap hamburger lines */
    body.theme-dark .navbar-toggler-icon {
        width: 30px;
        height: 22px;
        background: none !important;
        position: relative;
    }

    body.theme-dark .navbar-toggler-icon::before,
    body.theme-dark .navbar-toggler-icon::after,
    body.theme-dark .navbar-toggler-icon span {
        content: "";
        display: block;
        height: 3px;

        border-radius: 2px;
        margin: 5px 0;
    }


    /* =====================
       Dark / Light Toggle
    ===================== */

    /* Dark mode */
    body.theme-dark .mobile-theme-toggle,
    body.theme-dark .mobile-theme-toggle button,
    body.theme-dark .mobile-theme-toggle a {
        color: #ffffff !important;
    }

    /* Light mode */
    body:not(.theme-dark) .mobile-theme-toggle,
    body:not(.theme-dark) .mobile-theme-toggle button,
    body:not(.theme-dark) .mobile-theme-toggle a {
        color: #08245a !important;
    }


    /* =====================
       Useful Football Links
    ===================== */

    body.theme-dark .football-links-strip,
    body.theme-dark .useful-links-panel,
    body.theme-dark .links-panel {
        border: 1px solid rgba(8,36,90,0.22) !important;
    }


    /* =====================
       Quick Link Tiles
    ===================== */

    body.theme-dark .quick-link,
    body.theme-dark .quick-link i,
    body.theme-dark .quick-link svg,
    body.theme-dark .quick-link-title,
    body.theme-dark .quick-link-text {
        color: #ffffff !important;
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }
} 

/* =========================
   Mobile dark hamburger - remove yellow button
========================= */

@media(max-width: 768px) {

    body.theme-dark #mobileMenuToggle,
    body.theme-dark .mobile-menu-toggle {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        color: #f4d40a !important;
    }

    body.theme-dark #mobileMenuToggle i,
    body.theme-dark #mobileMenuToggle .bi,
    body.theme-dark .mobile-menu-toggle i,
    body.theme-dark .mobile-menu-toggle .bi {
        color: #f4d40a !important;
        background: transparent !important;
    }
}

/* =========================
   Mobile dark useful links card border
========================= */

@media(max-width: 768px) {

    body.theme-dark .football-links-strip {
        border: 1px solid #08245a !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        background: #f4f6fa !important;
    }

    body.theme-dark .mobile-affiliation {
        background: #f4f6fa !important;
        color: #4e5f7f !important;
    }

    body.theme-dark .mobile-affiliation a {
        color: #08245a !important;
    }
}

@media(max-width: 768px) {

    body.theme-dark #mobileMenuToggle {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #f4d40a !important;

        padding: 0 !important;
        width: auto !important;
        height: auto !important;

        font-size: 34px;
        line-height: 1;
        border-radius: 0 !important;
    }

}

/* =========================
   FINAL mobile dark nav fixes
========================= */

@media(max-width: 768px) {

    body.theme-dark .main-nav,
    body.theme-dark .nav-container {
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    body.theme-dark #mobileMenuToggle.mobile-menu-toggle {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #f4d40a !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    body.theme-dark .football-links-strip {
        border: 1px solid #08245a !important;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35) !important;
    }

}

/* Dark Theme login button */
body.theme-dark .login-button {
    background: #f4d40a !important;
    color: #061735 !important;
    border-color: #f4d40a !important;
}

body.theme-dark .login-button:hover {
    background: #ffd633 !important;
    color: #061735 !important;
    border-color: #ffd633 !important;
}

/* =========================
   Age Group Hero
========================= */

.age-hero {
    position: relative;
    margin: 24px auto 28px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #08245a 0%, #0d2f73 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.age-hero-content {
    padding: 44px 56px;
}

.age-season {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.age-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
}

.age-hero p {
    max-width: 760px;
    margin: 0;
	color: #ffd84d;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================
   Age Group Hero - Mobile
========================= */

@media(max-width: 768px) {

    .age-hero {
        margin: 18px auto 24px;
        border-radius: 18px;
    }

    .age-hero-content {
        padding: 34px 24px;
    }

    .age-season {
        font-size: 11px;
        padding: 7px 13px;
        margin-bottom: 16px;
    }

    .age-hero h1 {
        font-size: 28px;
        line-height: 1.05;
        margin-bottom: 14px;
        letter-spacing: -0.5px;
    }

    .age-hero p {
        font-size: 15px;
        line-height: 1.55;
    }
}

@media(max-width: 768px) {

    #mobileMenuToggle,
    .mobile-menu-toggle {
        appearance: none !important;
        -webkit-appearance: none !important;

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

        border-radius: 0 !important;
        padding: 0 !important;

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

        color: var(--navy) !important;
    }

}

@media(max-width: 768px) {

    .mobile-menu-toggle,
    #mobileMenuToggle {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        border-radius: 0 !important;
    }

    .mobile-menu-toggle::before,
    .mobile-menu-toggle::after,
    #mobileMenuToggle::before,
    #mobileMenuToggle::after {
        display: none !important;
        content: none !important;
    }

}

@media(max-width: 768px) {

    .main-nav,
    .nav-container {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        margin: 0 !important;
    }

    body:not(.theme-dark) .nav-container {
        border-top: 0 !important;
    }

}

/* =========================
   Search + Theme Button Cleanup
========================= */

/* Desktop theme icon button */
.theme-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Search buttons */
.nav-search-form button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 6px !important;
}

/* Mobile menu search layout */
@media(max-width: 768px) {

    .nav-search {
        padding: 10px 16px 14px !important;
    }

    .nav-search-form {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .nav-search-form input {
        flex: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .nav-search-form button {
        flex: 0 0 auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        font-size: 24px !important;
    }
}

	/* Affiliation text */

	.theme-dark .affiliation-block span,
	.theme-dark .affiliation-block strong {
		color: #ffffff;
	}

	/* Theme toggle icon */

	.theme-dark .theme-toggle {
		color: #ffffff !important;
	}

	.theme-dark .theme-toggle:hover {
		color: #f2cf1d !important;
	}
	
/* =========================
   Navigation Search
========================= */

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search-form input {
    width: 180px;
    height: 34px;
	
    caret-color: #000000;

    padding: 0 14px;

    border: 1px solid #d5dbe6;
    border-radius: 12px;

    background: #ffffff;

    font-size: 14px;
    color: var(--navy);

    transition: all 0.2s ease;
}

.nav-search-form input:focus {
    outline: none;
    border-color: rgba(0,32,96,0.25);
    box-shadow: 0 0 0 3px rgba(0,32,96,0.06);
}

.nav-search-form input::placeholder {
    color: #6f7785;
}

.nav-search-form button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    padding: 0 !important;

    font-size: 22px;
    cursor: pointer;

    color: #9aa3af !important;
    filter: grayscale(1) brightness(1.15) !important;

    transition: transform 0.2s ease;
}

.nav-search-form button:hover {
    transform: scale(1.08);
}

/* =========================
   Dark Theme Search
========================= */

.theme-dark .nav-search-form input {
    background: rgba(255,255,255,0.42);
    border-color: rgba(255,255,255,0.28);
	caret-color: #000000;
    color: #ffffff;
}

.theme-dark .nav-search-form input::placeholder {
    color: rgba(80,80,80,0.8);
}

.theme-dark .nav-search-form button {
    color: #9aa3af !important;
    filter: grayscale(1) brightness(1.15) !important;
}

/* =========================
   Mobile Search
========================= */

@media(max-width: 768px) {

    .nav-search {
        padding: 10px 16px 14px !important;
    }

    .nav-search-form {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .nav-search-form input {
        flex: 1 !important;
        width: 100% !important;
        min-width: 0 !important;

        height: 40px !important;

        padding: 8px 14px !important;

        font-size: 15px !important;
    }

    .nav-search-form button {
        flex: 0 0 auto !important;

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

        padding: 0 !important;

        font-size: 28px !important;
    }
}

/* =========================
   Login / Register Forms
========================= */

.admin-login-form .form-group,
.register-card .form-group {
    margin-bottom: 16px;
}

.admin-login-form label,
.register-card label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.admin-login-form input[type="email"],
.admin-login-form input[type="password"],
.modern-input {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #d5dbe6;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.admin-login-form input:focus,
.modern-input:focus {
    outline: none;
    border-color: rgba(0,32,96,0.25);
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(0,32,96,0.06),
        0 2px 8px rgba(0,0,0,0.04);
}

.admin-login-form input::placeholder,
.modern-input::placeholder {
    color: #6f7785;
}

.login-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.login-helper-links {
    font-size: 13px;
    line-height: 1;
}

.login-helper-links a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-helper-links a:hover {
    color: #facc15;
    text-decoration: none;
}

.login-helper-links span {
    margin: 0 6px;
    color: #94a3b8;
}

.register-card {
    max-width: 620px;
    margin: 24px auto;
    padding: 34px 38px;
}

.register-card h1 {
    margin-bottom: 24px;
}

select.modern-input {
    cursor: pointer;
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%2300125f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 10 12 14 8'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.login-btn,
.register-btn {
    min-width: 120px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 18px 20px;
    border-radius: 12px;
    line-height: 1.6;
}

/* =========================
   Admin Tables / Buttons
========================= */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.admin-table th {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 2px solid #dbe3ef;
    color: #001b5e;
    font-weight: 700;
    font-size: 14px;
}

.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e8edf5;
    font-size: 14px;
}

.admin-table tr:hover {
    background: #f7faff;
}

.btn-success,
.btn-danger {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
}

.btn-success {
    background: #198754;
    margin-right: 6px;
}

.btn-success:hover {
    background: #146c43;
    color: #ffffff !important;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #bb2d3b;
    color: #ffffff !important;
}

/* =========================
   Admin Workspace / Tabs
========================= */

.admin-card {
    padding: 0 !important;
    overflow: hidden;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

.admin-card-content {
    padding: 28px 34px;
}

.admin-card .admin-nav {
    margin: 0;
    padding: 0 24px;
    display: flex;
    gap: 0;
    background: #f8fafc;
    border-bottom: 1px solid #d7deea;
}

.admin-card .admin-nav a {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    margin-top: 12px;
    margin-bottom: -1px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-card .admin-nav a:hover,
.admin-card .admin-nav a.active {
    background: #ffffff;
    border-color: #d7deea;
    color: var(--navy);
}

.admin-page-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.admin-card {
    padding: 0 !important;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.admin-card-content {
    padding: 28px 34px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.admin-card-content {
    overflow-x: auto;
}

.btn.btn-success,
.btn.btn-success:visited,
.btn.btn-success:hover,
.btn.btn-success:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn.btn-danger,
.btn.btn-danger:visited,
.btn.btn-danger:hover,
.btn.btn-danger:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-primary,
.btn-primary:visited,
.btn-primary:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 140px;
    padding: 6px 14px;

    background: #00205b;
    color: #ffffff !important;

    border: none;
    border-radius: 10px;

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

    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:hover:visited,
.btn-primary:hover:active,
a.btn-primary:hover {
    background: #003087;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =========================
   Club Directory
========================= */

.directory-intro {
    margin: 0 0 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.directory-filter {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
}

.directory-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.directory-letters a {
    min-width: 34px;
    padding: 8px 10px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    color: var(--navy) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.directory-letters a:hover,
.directory-letters .directory-all {
    background: var(--navy);
    color: #ffffff !important;
}

.directory-search {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.directory-search label {
    width: 100%;
    color: var(--navy);
    font-weight: 700;
}

.directory-search input {
    min-width: 280px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d5dbe6;
    border-radius: 12px;
    font-size: 15px;
}

.club-directory {
    display: grid;
    gap: 18px;
}

.club-directory-card {
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.club-directory-header {
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3f0;
}

.club-directory-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
}

.club-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    padding: 20px;
}

.club-contact-grid div {
    display: grid;
    gap: 4px;
}

.club-contact-grid strong {
    color: var(--navy);
    font-size: 13px;
    text-transform: uppercase;
}

.club-contact-grid span {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.club-address {
    grid-column: 1 / -1;
}

.directory-private-note {
    margin: 0;
    padding: 18px 20px;
    color: #64748b;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.club-teams {
    padding: 18px 20px 20px;
    border-top: 1px solid #edf2f7;
}

.club-teams h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 15px;
    text-transform: uppercase;
}

.club-team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.club-team-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #dbe3f0;
    border-radius: 999px;
    color: var(--navy) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.club-team-list a:hover {
    background: var(--navy);
    color: #ffffff !important;
}

.club-team-list span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.club-team-list a:hover span {
    color: #ffffff;
}

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

    .directory-search input {
        width: 100%;
        min-width: 0;
    }

    .directory-search .btn-primary {
        width: 100%;
    }
}

/* =========================
   Desktop Dropdown Menus
========================= */

@media(min-width: 769px) {

    .main-nav,
    .nav-container {
        overflow: visible !important;
    }

    .main-nav {
        position: relative;
        z-index: 5000;
    }

    .main-nav li.has-dropdown {
        position: relative;
    }

    .main-nav li.has-dropdown > .dropdown-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 220px;
        min-width: 220px;
        background: #ffffff;
        border: 1px solid #dbe3f0;
        border-radius: 0 0 10px 10px;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
        z-index: 99999;
    }

    .main-nav li.has-dropdown:hover > .dropdown-menu {
        display: block !important;
    }

    .main-nav li.has-dropdown > .dropdown-menu li {
        display: block;
        width: 100%;
    }

    .main-nav li.has-dropdown > .dropdown-menu a {
        display: block;
        padding: 11px 16px;
        white-space: nowrap;
        color: var(--navy) !important;
        background: #ffffff !important;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        box-shadow: none !important;
    }

    .main-nav li.has-dropdown > .dropdown-menu a:hover {
        background: #f8fafc !important;
        color: var(--navy) !important;
    }
}

@media(max-width: 768px) {

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .directory-filter {
        padding: 14px;
    }

    .directory-letters {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 7px;
    }

    .directory-letters a {
        min-width: 0;
        padding: 8px 0;
        font-size: 13px;
        border-radius: 7px;
    }

    .directory-letters .directory-all {
        grid-column: span 2;
    }

    .club-directory-header h2 {
        font-size: 18px;
    }
}

@media(max-width: 768px) {

    .main-nav li.has-dropdown > .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        background: #f8fafc;
        box-shadow: none;
    }

    .main-nav li.has-dropdown.open > .dropdown-menu {
        display: block;
    }

    .main-nav li.has-dropdown > .dropdown-menu a {
        padding-left: 28px;
        text-transform: none;
        font-size: 13px;
        background: #f8fafc;
    }
}

@media(max-width: 768px) {

    .container:has(.club-directory),
    .container:has(.directory-filter) {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .container:has(.club-directory) > .card,
    .container:has(.directory-filter) > .card {
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

/* =========================
   Team Directory
========================= */

.directory-age-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.directory-age-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 13px;

    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 999px;

    color: var(--navy) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.directory-age-links a:hover,
.directory-age-links a.active {
    background: var(--navy);
    color: #ffffff !important;
}

.team-directory {
    display: grid;
    gap: 26px;
}

.team-age-section {
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.team-age-section h2 {
    margin: 0;
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3f0;
    color: var(--navy);
    font-size: 21px;
}

.team-division-section {
    padding: 18px 20px 20px;
    border-bottom: 1px solid #edf2f7;
}

.team-division-section:last-child {
    border-bottom: none;
}

.team-division-section h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 15px;
    text-transform: uppercase;
}

.team-list {
    display: grid;
    gap: 12px;
}

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

    padding: 14px 16px;

    background: #f8fafc;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
}

.team-list-main h4 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 16px;
}

.team-list-main p {
    margin: 0 0 4px;
    color: #334155;
    font-size: 14px;
}

.team-list-main small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.team-list-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.team-list-meta span {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.team-list-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    background: var(--navy);
    color: #ffffff !important;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.team-list-meta a:hover {
    background: var(--navy-dark);
    color: #ffffff !important;
}

.team-detail-card {
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

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

.team-detail-grid > div {
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
    border-right: 1px solid #edf2f7;
}

.team-detail-grid > div:nth-child(2n) {
    border-right: none;
}

.team-detail-grid strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 13px;
    text-transform: uppercase;
}

.team-detail-grid span {
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
}

.team-private-note {
    grid-column: 1 / -1;
    background: #f8fafc;
}

@media(max-width: 768px) {

    .directory-age-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .directory-age-links a {
        padding: 9px 8px;
        font-size: 13px;
        border-radius: 8px;
    }

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

    .team-list-meta {
        justify-items: start;
        text-align: left;
    }

    .team-list-meta a {
        width: 100%;
    }

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

    .team-detail-grid > div {
        border-right: none;
    }
}

.team-detail-card .btn-primary,
.team-detail-card .btn-primary:visited {
    color: var(--yellow) !important;
    text-decoration: none !important;
}

.team-detail-card .btn-primary:hover,
.team-detail-card .btn-primary:focus,
.team-detail-card .btn-primary:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.admin-card .btn-primary,
.admin-card .btn-primary:visited,
.admin-card .btn-primary:hover,
.admin-card .btn-primary:focus,
.admin-card .btn-primary:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =========================
   Admin Filter Bar
========================= */

.admin-filter-bar {
    display: grid;
    grid-template-columns: 160px 220px 1fr 180px auto;
    gap: 12px;
    align-items: end;
    margin: 20px 0 26px;
}

.admin-filter-bar label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--navy);
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
}

.admin-filter-actions .btn-primary,
.admin-filter-actions .btn-secondary {
    min-width: auto;
    height: 42px;
    padding: 0 18px;
}

@media(max-width: 900px) {
    .admin-filter-bar {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        flex-direction: column;
    }

    .admin-filter-actions .btn-primary,
    .admin-filter-actions .btn {
        width: 100%;
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 42px;
    padding: 0 16px;

    background: #198754;
    color: #fff !important;

    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 0;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:visited {
    color: #fff !important;
    text-decoration: none;
    background: #146c43;
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 42px;
    padding: 0 16px;

    background: #198754;
    color: #ffffff !important;

    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background: #146c43;
    color: #ffffff !important;
    text-decoration: none !important;
}

.admin-card .btn-secondary,
.admin-card .btn-secondary:link,
.admin-card .btn-secondary:visited,
.admin-card .btn-secondary:hover,
.admin-card .btn-secondary:focus,
.admin-card .btn-secondary:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =========================
   Admin Pagination
========================= */

.admin-card .admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

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

    border-top: 1px solid #e8edf5;
}

.admin-card .admin-pagination a,
.admin-card .admin-pagination a:visited,
.admin-card .admin-pagination a:hover,
.admin-card .admin-pagination a:focus,
.admin-card .admin-pagination a:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 100px;
    height: 38px;

    background: var(--navy);
    color: #ffffff !important;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.admin-card .admin-pagination a:hover {
    background: var(--navy-dark);
}

.admin-card .admin-pagination span {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

/* =========================
   Bulk Allocation Mode
========================= */

.admin-bulk-panel {
    margin: 20px 0 24px;
    padding: 18px 24px;

    background: var(--notice-bg);
    border: 2px solid var(--notice-border);
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-bulk-panel h3 {
    margin: 0 0 8px;

    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

.admin-bulk-panel p {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
}

/* Team table widths */

/* Bulk mode checkbox column */
.admin-table th:first-child:has(#select-all-teams),
.admin-table td:first-child:has(.team-checkbox) {
    width: 40px;
}

/* Team column when checkbox column exists */
.admin-table th:first-child:has(#select-all-teams) + th,
.admin-table td:first-child:has(.team-checkbox) + td {
    min-width: 280px;
    width: 280px;
}

/* Team column in normal list mode */
.admin-table th:first-child:not(:has(#select-all-teams)),
.admin-table td:first-child:not(:has(.team-checkbox)) {
    min-width: 280px;
    width: 280px;
}

/* Bulk action controls */

.bulk-tools-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.bulk-tools-inline select {
    width: 260px;
}

.bulk-tools-inline .btn-primary {
    white-space: nowrap;
	height: 32px;
}

@media (max-width: 768px) {

    .bulk-tools-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-tools-inline select,
    .bulk-tools-inline .btn-primary {
        width: 100%;
    }
}

/* Registration Status Badges */

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-draft {
    background: #f1f3f5;
    color: #495057;
}

.status-submitted {
    background: #eef5ff;
    color: #0d6efd;
}

.status-approved {
    background: #d1e7dd;
    color: #146c43;
}

.status-withdrawn {
    background: #f8d7da;
    color: #842029;
}

/* FreeAgent invoice-only Draft status.
   Deliberately separate from .status-draft, which is reused elsewhere. */
.status-invoice-ready {
    background: #fff3cd;
    color: #856404;
}

.status-invoice-draft {
    background: #ffe0b2;
    color: #8a4b00;
}

/* Pending Team Approval buttons */

.admin-table td form {
    display: inline-block;
    margin-right: 6px;
}

.admin-table td .btn-success,
.admin-table td .btn-secondary,
.admin-table td .btn-danger {
    width: 100px;
    min-width: 100px;
    text-align: center;
}

.btn-draft {
    background: #bcd0f0;
    color: #001b5e;
    border: 1px solid #7fa4e6;
}

.btn-draft:hover {
    background: #a9c1ea;
    color: #001540;
}

/* Pending approvals action buttons */

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

.pending-actions form {
    margin: 0;
}

.pending-actions button {
    width: 80px !important;
    min-width: 80px !important;
    height: 30px !important;
    padding: 0 8px !important;
	font-weight: 600;
	font-size : 12px;
}

.pending-teams-table th:first-child,
.pending-teams-table td:first-child {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* Dashboard Statistics */

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin: 24px 0 28px;
}

.dashboard-welcome,
.dashboard-stat-card {
    background: #f4f6f9;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 22px;
}

.dashboard-welcome h2,
.dashboard-stat-card .stat-label {
    display: block;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #9aa8bd;

    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-welcome p {
    margin: 0 0 12px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 185px;
}

.dashboard-stat-card .stat-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--navy);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

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

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

.dashboard-welcome {
    min-height: 185px;
}

/* Approvals Dashboard */

.approval-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.approval-card {
    background: #f4f6f9;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    text-align: center;

    min-height: 185px;
}

.approval-card h2 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #9aa8bd;

    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;

    text-align: center;
}

.approval-card span {
    flex: 1;

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

    color: var(--navy);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.approval-card .btn-primary {
    align-self: center;
    min-width: 140px;
	height: 32px;
}

@media (max-width: 992px) {
    .approval-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.approval-card .disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* New Season Registration */

.registration-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.registration-step-card {
    background: #f4f6f9;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 22px;
}

.registration-step-card h2 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #9aa8bd;

    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
}

.registration-step-card p {
    min-height: 62px;
    margin: 0 0 18px;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .registration-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .registration-steps {
        grid-template-columns: 1fr;
    }

    .registration-step-card .btn-primary {
        width: 100%;
    }
}

.registration-step-card {
    position: relative;
}

.step-status {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 16px;
    height: 16px;

    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.15);
}

.step-status.red {
    background: #dc3545;
}

.step-status.orange {
    background: #fd7e14;
}

.step-status.green {
    background: #198754;
}

.step-status.grey {
    background: #adb5bd;
}

.step-status.blue {
    background: #0d6efd;
}

.registration-step-card .btn-primary {
    height: 32px !important;
}

.registration-step-card .btn-disabled {
    background: #adb5bd !important;
    border-color: #adb5bd !important;
    color: #ffffff !important;

    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Season Registration - Club Details */

.season-club-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.season-club-form-group {
    display: flex;
    flex-direction: column;
}

.season-club-form-group label {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy);
}

.season-club-form-group input {
    width: 100%;
}

@media (max-width: 768px) {
    .season-club-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Season Registration Forms */

.season-club-form-group input,
.season-club-form-group select,
.season-club-form-group textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.season-club-form-group input:focus,
.season-club-form-group select:focus,
.season-club-form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

/* Season Registration Buttons */

.registration-step-card .btn-primary {
    min-height: 42px;
    padding: 10px 20px;
}

.season-registration-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.season-registration-actions .btn-primary,
.season-registration-actions button.btn-primary {
    margin: 0;
}

.admin-logout-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.admin-logout-link:hover {
    text-decoration: underline;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.officials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.registration-step-card h3 {
    margin: 25px 0 12px;
    color: var(--navy);
    font-size: 20px;
}

.registration-step-card h3:first-of-type {
    margin-top: 0;
}

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

.rollover-choice-options {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rollover-choice-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
}

.rollover-table td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

.rollover-table textarea {
    min-height: 34px;
    height: 34px;
    resize: vertical;
    padding: 6px 8px;
}

.new-teams-options input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.new-teams-autosave-message {
    display: none;
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.new-teams-autosave-message.is-saved {
    display: block;
    color: #146c43;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.new-teams-autosave-message.is-error {
    display: block;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.registration-step-card {
    position: relative;
}

.registration-step-card .new-teams-autosave-message {
    position: absolute;
    top: 22px;
    right: 24px;
    margin: 0;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 2;
}

.new-teams-added-title {
    margin: 26px 0 12px;
    color: var(--navy);
    font-size: 22px;
}

.new-teams-options {
    margin-bottom: 18px;
}

.season-registration-actions {
    margin-top: 16px;
    margin-bottom: 20px;
}

.registration-step-card .admin-table {
    margin-top: 8px;
}

.final-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.final-review-grid h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .final-review-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .final-review-grid > div + div {
        margin-top: 12px;
    }
}

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

.admin-dashboard-header h1 {
    margin: 0;
    flex: 0 0 auto;
}

.emulation-inline-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
    margin-left: auto;
}

.emulation-inline-form select.modern-input {
    width: auto;
    min-width: 170px;
    max-width: 230px;
}

.emulation-inline-form button {
    min-width: 80px;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .admin-dashboard-header {
        display: block;
    }

    .admin-dashboard-header h1 {
        margin-bottom: 16px;
    }

    .emulation-inline-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .emulation-inline-form select.modern-input,
    .emulation-inline-form button {
        width: 100%;
        max-width: none;
    }
}
/* =========================================================
   Modern Admin Dashboard Tiles
========================================================= */

.dashboard-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0 26px;
}

.dashboard-hero-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--navy);
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 12px 26px rgba(0, 31, 95, 0.18);
}

.dashboard-hero h2 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 26px;
    line-height: 1.05;
    font-weight: 900;
}

.dashboard-hero p {
    margin: 0;
    color: #334155;
    font-size: 15px;
}

.dashboard-modern-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:18px;
    margin:24px 0 26px;
}

.dashboard-welcome-modern,
.dashboard-tile,
.dashboard-quick-actions {
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-welcome-modern {
    padding: 20px;
    min-height: 205px;
}

.dashboard-welcome-modern h3,
.dashboard-quick-actions h2,
.dashboard-section-title {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe3f0;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
}

.dashboard-welcome-modern p {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-emulation {
    color: #c2410c !important;
    font-weight: 800;
}

.dashboard-mini-icon,
.dashboard-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.dashboard-mini-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    font-size: 17px;
}

.dashboard-tile {
    position: relative;
    min-height: 220px;
    padding: 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-tile-icon {
    width: 54px;
    height: 54px;
    margin: 20px 0 14px;
    font-size: 27px;
}

.dashboard-tile h3 {
    order: -1;
    width: 100%;
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
    min-height: 34px;
}

.dashboard-tile-value {
    color: var(--navy);
    font-size: 38px;
    line-height: 1.05;
    font-weight: 950;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dashboard-tile p {
    margin: 8px 0 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-tile-link {
    margin-top: auto;
    color: var(--navy) !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

.dashboard-tile-link:hover {
    text-decoration: underline !important;
}

.dashboard-tile-blue .dashboard-tile-icon,
.dashboard-tile-blue.dashboard-mini-icon {
    background: #dbeafe;
    color: #2563eb;
}

.dashboard-tile-green .dashboard-tile-icon,
.dashboard-tile-green.dashboard-mini-icon {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-tile-orange .dashboard-tile-icon,
.dashboard-tile-orange.dashboard-mini-icon {
    background: #ffedd5;
    color: #ea580c;
}

.dashboard-tile-purple .dashboard-tile-icon,
.dashboard-tile-purple.dashboard-mini-icon {
    background: #f3e8ff;
    color: #7e22ce;
}

.dashboard-tile-red .dashboard-tile-icon,
.dashboard-tile-red.dashboard-mini-icon {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-section-title {
    margin-top: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 14px 0 26px;
}

.dashboard-status-grid .dashboard-tile {
    min-height: 120px;
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto auto;
    gap: 2px 14px;
    align-items: center;
    text-align: left;
}

.dashboard-status-grid .dashboard-tile h3 {
    order: initial;
    grid-column: 2;
    min-height: 0;
    margin: 0;
}

.dashboard-status-grid .dashboard-tile-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0;
}

.dashboard-status-grid .dashboard-tile-value {
    grid-column: 2;
    font-size: 30px;
}

.dashboard-status-grid .dashboard-tile p {
    grid-column: 2;
    margin: 0;
    font-weight: 700;
}

.dashboard-quick-actions {
    margin-top: 20px;
    padding: 18px;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

.dashboard-action-blue { color: #2563eb !important; }
.dashboard-action-green { color: #15803d !important; }
.dashboard-action-orange { color: #ea580c !important; }
.dashboard-action-purple { color: #7e22ce !important; }

.dashboard-action:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

@media (max-width: 1200px) {
    .dashboard-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-welcome-modern {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dashboard-status-grid,
    .dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        align-items: flex-start;
    }

    .dashboard-hero h2 {
        font-size: 22px;
    }

    .dashboard-modern-grid,
    .dashboard-status-grid,
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-tile,
    .dashboard-welcome-modern {
        min-height: auto;
    }
}

/* Dashboard Welcome Tile Refinement */

.dashboard-welcome-modern {
    display: flex;
    flex-direction: column;
}

.dashboard-welcome-modern .dashboard-mini-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    margin-bottom: 14px;
}

.dashboard-welcome-modern h3 {
    font-size: 19px;
}

.dashboard-welcome-modern p {
    margin-bottom: 9px;
}

.dashboard-welcome-modern p strong {
    color: var(--navy);
}

.dashboard-emulation {
    margin-top: 4px !important;
    padding: 8px 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
}

.dashboard-welcome-modern .admin-logout-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    font-weight: 900;
}

.dashboard-tile,
.dashboard-welcome-modern {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-tile:hover,
.dashboard-welcome-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.dashboard-tile-icon {
    width: 62px;
    height: 62px;
    font-size: 30px;
}

.dashboard-tile-value {
    font-size: 50px;
    font-weight: 950;
}

.dashboard-status-grid .dashboard-tile-icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
}

.dashboard-status-grid .dashboard-tile-value {
    font-size: 34px;
}

.emulation-inline-form {
    display: grid;
    grid-template-columns:
        minmax(140px, 170px)
        minmax(140px, 170px)
        minmax(180px, 230px)
        minmax(180px, 230px)
        auto
        auto;
    gap: 8px;
    align-items: center;
}

.emulation-inline-form select.modern-input {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.emulation-inline-form button {
    min-width: 74px;
}

.dashboard-action.disabled {
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
}
.admin-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.admin-action-buttons form {
    margin: 0;
}

.admin-delete-disabled {
    opacity: .45;
    cursor: not-allowed;
}
.admin-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.admin-action-buttons form {
    margin: 0;
}

.admin-delete-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.inactive-toggle {
    display: inline-block;
    margin: 12px 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #001b5e;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}

.inactive-toggle:hover {
    color: #0b5ed7;
    text-decoration: underline;
}
/* Admin dashboard season context for non-emulated roles */
.admin-season-context {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 9px 14px;
    border: 1px solid #d5dbe6;
    border-radius: 12px;
    background: #ffffff;
    color: var(--navy);
    font-size: 14px;
}

.admin-season-context span {
    color: #475569;
    font-weight: 700;
}

.admin-season-context strong {
    font-weight: 900;
}

/* Registration button states */

.btn-submit {
    background: #198754 !important;
    color: #fff !important;
}

.btn-submit:hover {
    background: #157347 !important;
}

.btn-submitted {
    background: #fd7e14 !important;
    color: #fff !important;
    cursor: default;
}

.btn-submitted:hover {
    background: #fd7e14 !important;
}

.btn-approved {
    background: #001f5f !important;
    color: #fff !important;
    cursor: default;
}

.btn-approved:hover {
    background: #001f5f !important;
}

.registration-context{
    margin:0 0 24px;
    padding:12px 16px;
    background:#f5f8fc;
    border:1px solid #d8e2f0;
    border-left:5px solid #001f5f;
    border-radius:10px;
    color:#334155;
    font-size:14px;
}

.registration-context strong{
    color:#001f5f;
}

.emulation-badge{
    display:inline-block;
    padding:3px 10px;
    border-radius:999px;
    background:#fff7e6;
    color:#b45309;
    font-weight:700;
}

/* =========================================================
   Final Admin Emulation Toolbar
========================================================= */

.admin-dashboard-header {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.admin-dashboard-header h1 {
    margin: 0;
    white-space: nowrap;
}

.admin-dashboard-header .emulation-inline-form {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: flex-end !important;

    min-width: 0;
    margin-left: 0 !important;
    gap: 8px;
}

/* Season */
.admin-dashboard-header #adminSelectedSeason {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* Role */
.admin-dashboard-header #emulationRole {
    width: 165px;
    min-width: 165px;
    max-width: 165px;
}

/* Club */
.admin-dashboard-header #emulationClub {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

/* Team */
.admin-dashboard-header #emulationTeam {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

.admin-dashboard-header .emulation-inline-form select.modern-input {
    height: 42px;
    flex: 0 0 auto;
}

/* Apply and Reset */
.admin-dashboard-header .emulation-inline-form button {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;

    height: 42px !important;
    min-height: 42px !important;

    padding: 0 14px !important;
    flex: 0 0 auto;
}

/*
 * Place the controls below the title on narrower desktop screens.
 * This prevents Team Admin controls overlapping the heading.
 */
@media (max-width: 1350px) {

    .admin-dashboard-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-dashboard-header .emulation-inline-form {
        width: 100%;
        justify-content: flex-end !important;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .admin-dashboard-header {
        display: block;
    }

    .admin-dashboard-header h1 {
        margin-bottom: 16px;
        white-space: normal;
    }

    .admin-dashboard-header .emulation-inline-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .admin-dashboard-header #adminSelectedSeason,
    .admin-dashboard-header #emulationRole,
    .admin-dashboard-header #emulationClub,
    .admin-dashboard-header #emulationTeam,
    .admin-dashboard-header .emulation-inline-form button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* =========================================================
   FINAL ADMIN DARK THEME
   Authoritative launch version — keep this section last.
========================================================= */

/* Admin workspace */
body.theme-dark .admin-card,
body.theme-dark .admin-card-content {
    background: #0b1d44 !important;
    color: #ffffff;
}

/* Main headings and ordinary copy on the navy workspace */
body.theme-dark .admin-card-content > h1,
body.theme-dark .admin-card-content > h2,
body.theme-dark .admin-card-content > h3,
body.theme-dark .admin-card-content > p,
body.theme-dark .admin-card-content > p strong,
body.theme-dark .directory-intro,
body.theme-dark .dashboard-section-title,
body.theme-dark .inactive-toggle,
body.theme-dark .new-teams-added-title {
    color: #ffffff !important;
}

/* Admin tabs */
body.theme-dark .admin-card .admin-nav {
    background: #08245a !important;
    border-bottom-color: rgba(255,255,255,0.18) !important;
}

body.theme-dark .admin-card .admin-nav a {
    color: #ffffff !important;
}

body.theme-dark .admin-card .admin-nav a:hover,
body.theme-dark .admin-card .admin-nav a.active {
    background: #ffffff !important;
    color: #001f5f !important;
    border-color: rgba(255,255,255,0.24) !important;
}

body.theme-dark .admin-card .admin-nav a:hover *,
body.theme-dark .admin-card .admin-nav a.active * {
    color: #001f5f !important;
}

/* Dashboard heading area */
body.theme-dark .dashboard-hero h2 {
    color: #ffffff !important;
}

body.theme-dark .dashboard-hero p {
    color: #d7e3ff !important;
}

/* All deliberately light admin cards */
body.theme-dark .dashboard-welcome-modern,
body.theme-dark .dashboard-tile,
body.theme-dark .dashboard-stat-card,
body.theme-dark .dashboard-welcome,
body.theme-dark .approval-card,
body.theme-dark .registration-step-card,
body.theme-dark .dashboard-quick-actions {
    background: #ffffff !important;
    color: #061735 !important;
    border-color: #dbe3f0 !important;
}

/* Headings in light cards */
body.theme-dark .dashboard-welcome-modern h2,
body.theme-dark .dashboard-welcome-modern h3,
body.theme-dark .dashboard-tile h2,
body.theme-dark .dashboard-tile h3,
body.theme-dark .dashboard-stat-card h2,
body.theme-dark .dashboard-stat-card h3,
body.theme-dark .dashboard-welcome h2,
body.theme-dark .dashboard-welcome h3,
body.theme-dark .approval-card h2,
body.theme-dark .approval-card h3,
body.theme-dark .registration-step-card h2,
body.theme-dark .registration-step-card h3,
body.theme-dark .dashboard-quick-actions h2 {
    color: #001f5f !important;
}

/* Copy and values in light cards */
body.theme-dark .dashboard-welcome-modern p,
body.theme-dark .dashboard-tile p,
body.theme-dark .dashboard-stat-card p,
body.theme-dark .dashboard-welcome p,
body.theme-dark .approval-card p,
body.theme-dark .registration-step-card p,
body.theme-dark .dashboard-quick-actions p {
    color: #334155 !important;
}

body.theme-dark .dashboard-welcome-modern p strong,
body.theme-dark .dashboard-tile-value,
body.theme-dark .dashboard-stat-card .stat-value,
body.theme-dark .approval-card span {
    color: #001f5f !important;
}

body.theme-dark .dashboard-welcome-modern .admin-logout-link,
body.theme-dark .dashboard-tile-link {
    color: #003b8f !important;
}

body.theme-dark .dashboard-welcome-modern .admin-logout-link:hover,
body.theme-dark .dashboard-tile-link:hover {
    color: #001f5f !important;
}

/* Dashboard action tiles */
body.theme-dark .dashboard-action {
    background: #ffffff !important;
    border-color: #dbe3f0 !important;
}

/* General tables placed directly on the navy workspace */
body.theme-dark .admin-card-content > .admin-table th,
body.theme-dark .admin-card-content > form > .admin-table th,
body.theme-dark .admin-card-content > form .admin-table th {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,0.78) !important;
}

body.theme-dark .admin-card-content > .admin-table td,
body.theme-dark .admin-card-content > form > .admin-table td,
body.theme-dark .admin-card-content > form .admin-table td {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,0.55) !important;
}

body.theme-dark .admin-card-content > .admin-table tr:hover,
body.theme-dark .admin-card-content > form .admin-table tr:hover {
    background: rgba(255,255,255,0.05) !important;
}

body.theme-dark .admin-card-content > .admin-table strong,
body.theme-dark .admin-card-content > form .admin-table strong {
    color: #ffffff !important;
}

/*
 * Tables inside registration-step-card are light tables.
 * This covers Season Management's Outstanding Clubs panel.
 */
body.theme-dark .registration-step-card .admin-table th {
    color: #001f5f !important;
    border-bottom-color: #cbd5e1 !important;
}

body.theme-dark .registration-step-card .admin-table td,
body.theme-dark .registration-step-card .admin-table td strong {
    color: #334155 !important;
    border-bottom-color: #dbe3f0 !important;
}

body.theme-dark .registration-step-card .admin-table tr:hover {
    background: #f8fafc !important;
}

/* Admin filter labels */
body.theme-dark .admin-filter-bar label,
body.theme-dark .bulk-tools-inline label {
    color: #ffffff !important;
}

/* Season-management and registration form labels on navy */
body.theme-dark .admin-card-content > form .season-club-form-group > label {
    color: #ffffff !important;
}

/* Helper copy beneath fields */
body.theme-dark .admin-card-content > form .season-club-form-group > small {
    color: #c7d2e5 !important;
}

/* Bulk panel intentionally remains light */
body.theme-dark .admin-bulk-panel,
body.theme-dark .notice-box,
body.theme-dark .registration-context {
    color: #061735 !important;
}

body.theme-dark .admin-bulk-panel h3,
body.theme-dark .admin-bulk-panel p,
body.theme-dark .admin-bulk-panel strong,
body.theme-dark .notice-box h3,
body.theme-dark .registration-context strong {
    color: #001f5f !important;
}

/* Pagination copy on navy workspace */
body.theme-dark .admin-pagination {
    border-top-color: rgba(255,255,255,0.30) !important;
}

body.theme-dark .admin-pagination span {
    color: #ffffff !important;
}

/* Inline navy colours used by Users page headings/toggle */
body.theme-dark .admin-card-content h2[style*="color:#001f5f"],
body.theme-dark .admin-card-content h2[style*="color: #001f5f"],
body.theme-dark .admin-card-content a[style*="color:#001f5f"],
body.theme-dark .admin-card-content a[style*="color: #001f5f"] {
    color: #ffffff !important;
}

/* Restricted/muted text on navy */
body.theme-dark .admin-card-content span[style*="color:#6b7280"],
body.theme-dark .admin-card-content span[style*="color: #6b7280"] {
    color: #c7d2e5 !important;
}

/* Keep status badges readable */
body.theme-dark .status-draft {
    background: #f1f3f5;
    color: #495057 !important;
}

body.theme-dark .status-submitted {
    background: #eef5ff;
    color: #0d6efd !important;
}

body.theme-dark .status-approved {
    background: #d1e7dd;
    color: #146c43 !important;
}

body.theme-dark .status-withdrawn {
    background: #f8d7da;
    color: #842029 !important;
}

body.theme-dark .status-invoice-ready {
    background: #fff3cd;
    color: #856404 !important;
}

body.theme-dark .status-invoice-draft {
    background: #ffe0b2;
    color: #8a4b00 !important;
}

/* Form controls remain light for clarity */
body.theme-dark .admin-card-content .modern-input,
body.theme-dark .admin-card-content select,
body.theme-dark .admin-card-content input,
body.theme-dark .admin-card-content textarea {
    background-color: #ffffff;
    color: #001f5f;
}

/* Emulation/season context */
body.theme-dark .admin-season-context {
    background: #ffffff;
    color: #001f5f;
    border-color: #d5dbe6;
}

body.theme-dark .admin-season-context span {
    color: #475569;
}

/* Alerts keep their semantic light backgrounds */
body.theme-dark .alert-success {
    color: #065f46 !important;
}

body.theme-dark .alert-error {
    color: #991b1b !important;
}

/* Dark mode login/register form labels */
body.theme-dark .admin-login-form label,
body.theme-dark .register-card label {
    color: #ffffff !important;
}

/* =========================================================
   GLOBAL TYPOGRAPHY REFINEMENT
   Softer heading weights
========================================================= */

/* General page headings */
h1 {
    font-weight: 700;
}

h2 {
    font-weight: 700;
}

h3,
h4 {
    font-weight: 600;
}


/* Homepage quick links */
.quick-link-title {
    font-weight: 700;
}


/* Homepage panels */
.panel-header h2 {
    font-weight: 700;
}

.news-content h3,
.date-item h3 {
    font-weight: 700;
}

.football-links-title {
    font-weight: 700;
}


/* Footer headings */
.footer-brand h3,
.footer-accordion-toggle,
.footer-accordion-label {
    font-weight: 700;
}


/* Age group hero */
.age-hero h1 {
    font-weight: 700;
}

.age-season {
    font-weight: 700;
}


/* Admin dashboard */
.dashboard-hero h2 {
    font-weight: 700;
}

.dashboard-welcome-modern h3,
.dashboard-quick-actions h2,
.dashboard-section-title {
    font-weight: 700;
}

.dashboard-tile h3 {
    font-weight: 700;
}

.dashboard-tile-link {
    font-weight: 700;
}


/* Keep the important dashboard figures prominent */
.dashboard-tile-value {
    font-weight: 800;
}

.dashboard-status-grid .dashboard-tile-value {
    font-weight: 800;
}


/* Other admin headings */
.approval-card h2,
.registration-step-card h2 {
    font-weight: 700;
}

.admin-bulk-panel h3 {
    font-weight: 700;
}


/* Directory headings */
.club-directory-header h2,
.team-age-section h2 {
    font-weight: 700;
}

.club-teams h3,
.team-division-section h3 {
    font-weight: 700;
}

.team-list-main h4 {
    font-weight: 600;
}


/* =========================
   Age Group FA Feed Links
   Keep FA-generated links lighter than general card links
========================= */

.age-group-feed-card a {
    font-weight: 400 !important;
    text-decoration: none !important;
}

.age-group-feed-card a:hover {
    text-decoration: none !important;
}

/* =========================
   Age Group FA Feed
   More compact presentation on larger screens only
========================= */

@media (min-width: 900px) {

    .age-group-feed-card {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .age-group-feed-card > div[id^="lrep"] {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

}

/* =========================
   Club Directory Accordion
========================= */

.club-directory-collapsible {
    overflow: hidden;
}

.club-directory-toggle-button {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

.club-directory-toggle-button h2 {
    margin: 0;
}

.club-directory-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--navy);
    font-size: 18px;
    transition: transform 0.18s ease;
}

.club-directory-collapsible.is-open .club-directory-toggle-icon {
    transform: rotate(180deg);
}

.club-directory-body {
    border-top: 1px solid #dbe3f0;
}

.club-directory-body[hidden] {
    display: none !important;
}

@media(max-width:768px) {
    .club-directory-toggle-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Dark theme */
body.theme-dark .club-directory-toggle-button {
    background: #f8fafc !important;
}

body.theme-dark .club-directory-toggle-button h2,
body.theme-dark .club-directory-toggle-icon {
    color: #001f5f !important;
}

body.theme-dark .club-directory-body {
    border-top-color: #dbe3f0;
}

/* =========================
   Club Directory - Two Column Desktop Layout
========================= */

@media (min-width: 900px) {

    .club-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .club-directory-card {
        margin: 0;
    }

}

@media (max-width: 899px) {

    .club-directory {
        grid-template-columns: 1fr;
    }

}

/* =========================
   Team Directory - Collapsible Age Groups / Divisions
   Two-column age-group layout on wider screens
========================= */

.team-directory {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.team-age-section {
    margin: 0;
}

.team-age-toggle,
.team-division-toggle {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.team-age-toggle {
    padding: 18px 20px;
    background: #f8fafc;
    color: var(--navy);
}

.team-age-toggle h2 {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 21px;
}

.team-age-body[hidden],
.team-division-body[hidden] {
    display: none !important;
}

.team-age-body {
    border-top: 1px solid #dbe3f0;
}

.team-division-section {
    padding: 0;
    border-bottom: 1px solid #edf2f7;
}

.team-division-section:last-child {
    border-bottom: 0;
}

.team-division-toggle {
    padding: 15px 20px;
    background: #ffffff;
    color: var(--navy);
}

.team-division-toggle h3 {
    margin: 0;
    padding: 0;
    color: var(--navy);
    font-size: 15px;
    text-transform: uppercase;
}

.team-division-body {
    padding: 0 20px 20px;
}

.team-directory-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--navy);
    font-size: 18px;
    transition: transform 0.18s ease;
}

.team-age-collapsible.is-open > .team-age-toggle .team-directory-toggle-icon,
.team-division-collapsible.is-open > .team-division-toggle .team-directory-toggle-icon {
    transform: rotate(180deg);
}

@media (min-width: 900px) {
    .team-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .team-directory {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-age-toggle {
        padding: 16px 16px;
    }

    .team-age-toggle h2 {
        font-size: 19px;
    }

    .team-division-toggle {
        padding: 14px 16px;
    }

    .team-division-body {
        padding: 0 16px 16px;
    }

    .team-directory-toggle-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Dark theme - retain the light directory-card treatment used elsewhere */
body.theme-dark .team-age-toggle,
body.theme-dark .team-division-toggle {
    background: #f8fafc !important;
}

body.theme-dark .team-age-toggle h2,
body.theme-dark .team-division-toggle h3,
body.theme-dark .team-directory-toggle-icon {
    color: #001f5f !important;
}

/* =========================
   Team Details - Back Button
   Normal: NDYFL navy + yellow text
   Hover: navy + white text
========================= */

.directory-page-container .card > p > a.btn-primary,
.directory-page-container .card > p > a.btn-primary:link,
.directory-page-container .card > p > a.btn-primary:visited {
    background: var(--navy) !important;
    color: var(--yellow) !important;
    text-decoration: none !important;
}

.directory-page-container .card > p > a.btn-primary:hover,
.directory-page-container .card > p > a.btn-primary:focus,
.directory-page-container .card > p > a.btn-primary:active {
    background: var(--navy-dark) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}


/* =========================================================
   PUBLIC FOOTBALL PAGES
   Age Groups / Fixtures / Results / Tables
========================================================= */

.public-football-page {
    margin-top: 24px;
}

.public-football-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 26px;
}

.public-football-kicker {
    color: var(--navy);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 5px;
}

.public-football-heading h1 {
    margin: 0 0 8px;
}

.public-football-heading p {
    margin: 0;
}

.public-football-season {
    flex: 0 0 auto;
    background: var(--navy);
    color: var(--yellow);
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 800;
}

.public-age-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.public-age-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 130px;
    padding: 20px;
    border: 1px solid var(--border-color, #d7e0ec);
    border-radius: 14px;
    background: var(--card-bg, #fff);
    color: var(--navy);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.public-age-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 27, 94, .09);
    text-decoration: none;
}

.public-age-card strong {
    font-size: 1.15rem;
}

.public-age-short {
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.public-football-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 18px;
    max-width: 760px;
    margin-bottom: 26px;
}

.public-football-filters label span {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-weight: 800;
}

.public-football-filters select {
    width: 100%;
}

.public-football-feed {
    padding-top: 6px;
}

.public-football-feed h2 {
    margin-bottom: 20px;
}

.public-fulltime-link {
    margin: 24px 0 4px;
}

.public-fulltime-link .btn-primary,
.public-fulltime-link .btn-primary:link,
.public-fulltime-link .btn-primary:visited {
    color: var(--yellow) !important;
    text-decoration: none !important;
}

.public-fulltime-link .btn-primary:hover,
.public-fulltime-link .btn-primary:focus {
    color: #fff !important;
}

[data-theme="dark"] .public-football-kicker,
[data-theme="dark"] .public-football-filters label span,
[data-theme="dark"] .public-age-card {
    color: var(--yellow);
}

@media (max-width: 900px) {
    .public-age-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .public-football-heading {
        display: block;
    }

    .public-football-season {
        display: inline-block;
        margin-top: 14px;
    }

    .public-age-grid,
    .public-football-filters {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FINAL PUBLIC AGE GROUP CARD COLOURS
   Same pale blue-grey tint in both light and dark themes
   Keep this section last so it overrides earlier rules.
========================================================= */

.public-age-card,
body.theme-dark .public-age-card,
[data-theme="dark"] .public-age-card {
    background: #eef3f8 !important;
    border-color: #d7e0ec !important;
    color: #001f5f !important;
}

.public-age-card strong,
body.theme-dark .public-age-card strong,
[data-theme="dark"] .public-age-card strong {
    color: #001f5f !important;
}

.public-age-card .public-age-short,
body.theme-dark .public-age-card .public-age-short,
[data-theme="dark"] .public-age-card .public-age-short {
    color: #64748b !important;
}

.public-age-card:hover,
body.theme-dark .public-age-card:hover,
[data-theme="dark"] .public-age-card:hover {
    background: #e6edf5 !important;
}

/* =========================================================
   FINAL PUBLIC FOOTBALL REFINEMENTS
   - Dark-mode kicker uses NDYFL yellow
   - Fixtures / Results / Tables feeds are more compact on desktop
========================================================= */

/* Small section kicker in dark mode */
body.theme-dark .public-football-kicker,
[data-theme="dark"] .public-football-kicker {
    color: var(--yellow) !important;
}

/* Match the compact desktop treatment already used on age-group.php */
@media (min-width: 900px) {

    .public-football-feed {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .public-football-feed > div[id^="lrep"] {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

}

/* =========================================================
   FINAL PUBLIC FOOTBALL FEED + DESKTOP DROPDOWN POLISH
   Keep this section last so it overrides earlier theme rules.
========================================================= */

/* FA Full-Time generated blocks: rounded light panel in both themes */
.public-football-feed > div[id^="lrep"] {
    background: #ffffff !important;
    border: 1px solid #d7e0ec !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* Keep FA-generated team / competition links readable on the light feed */
.public-football-feed > div[id^="lrep"] a,
.public-football-feed > div[id^="lrep"] a:link,
.public-football-feed > div[id^="lrep"] a:visited,
body.theme-dark .public-football-feed > div[id^="lrep"] a,
body.theme-dark .public-football-feed > div[id^="lrep"] a:link,
body.theme-dark .public-football-feed > div[id^="lrep"] a:visited {
    color: #003b8f !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.public-football-feed > div[id^="lrep"] a:hover,
.public-football-feed > div[id^="lrep"] a:focus,
body.theme-dark .public-football-feed > div[id^="lrep"] a:hover,
body.theme-dark .public-football-feed > div[id^="lrep"] a:focus {
    color: #001f5f !important;
    text-decoration: none !important;
}

/* FA-generated ordinary text should stay dark because the feed itself is light */
body.theme-dark .public-football-feed > div[id^="lrep"],
body.theme-dark .public-football-feed > div[id^="lrep"] td,
body.theme-dark .public-football-feed > div[id^="lrep"] th,
body.theme-dark .public-football-feed > div[id^="lrep"] span,
body.theme-dark .public-football-feed > div[id^="lrep"] strong {
    color: #1f2937 !important;
}

/* Preserve white text only where Full-Time has deliberately used a dark cell */
body.theme-dark .public-football-feed > div[id^="lrep"] [bgcolor="#000000"],
body.theme-dark .public-football-feed > div[id^="lrep"] [bgcolor="#001f5f"],
body.theme-dark .public-football-feed > div[id^="lrep"] [style*="background-color: rgb(0"],
body.theme-dark .public-football-feed > div[id^="lrep"] [style*="background:#0"] {
    color: #ffffff !important;
}

/* Desktop dropdowns use the same pale blue-grey treatment as the public age-group tiles */
@media (min-width: 769px) {

    .main-nav li.has-dropdown > .dropdown-menu,
    body.theme-dark .main-nav li.has-dropdown > .dropdown-menu {
        background: #eef3f8 !important;
        border-color: #d7e0ec !important;
    }

    .main-nav li.has-dropdown > .dropdown-menu a,
    body.theme-dark .main-nav li.has-dropdown > .dropdown-menu a {
        background: #eef3f8 !important;
        color: #001f5f !important;
    }

    .main-nav li.has-dropdown > .dropdown-menu a:hover,
    .main-nav li.has-dropdown > .dropdown-menu a:focus,
    body.theme-dark .main-nav li.has-dropdown > .dropdown-menu a:hover,
    body.theme-dark .main-nav li.has-dropdown > .dropdown-menu a:focus {
        background: #e6edf5 !important;
        color: #001f5f !important;
    }

    /* Keep the dark-mode parent tab clean while its dropdown is open */
    body.theme-dark .main-nav li.has-dropdown:hover > a {
        background: rgba(0,31,95,0.12) !important;
        color: #061735 !important;
    }
}

/* =========================================================
   PUBLIC FOOTBALL FILTER LABELS - DARK MODE
   Keep Age Group / Division labels visible on navy background
========================================================= */

body.theme-dark .public-football-filters label span,
[data-theme="dark"] .public-football-filters label span {
    color: var(--yellow) !important;
}

/* =========================================================
   AGE GROUP NOTICE TEXT - DARK MODE
   Keep pale notice boxes readable on navy pages
========================================================= */

body.theme-dark .age-group-feed-card .notice-box,
[data-theme="dark"] .age-group-feed-card .notice-box {
    color: #001f5f !important;
}

body.theme-dark .age-group-feed-card .notice-box h3,
body.theme-dark .age-group-feed-card .notice-box p,
[data-theme="dark"] .age-group-feed-card .notice-box h3,
[data-theme="dark"] .age-group-feed-card .notice-box p {
    color: #001f5f !important;
}

/* =========================================================
   FA FULL-TIME FEEDS - INTERNAL SIDE PADDING
========================================================= */

.age-group-feed-card > div[id^="lrep"],
.public-football-feed > div[id^="lrep"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
}

.age-division-selector label {
    margin-right: 12px;
}

/* =========================================================
   PUBLIC FOOTBALL PAGES - LIGHT MODE PANEL TINT
   Fixtures / Results / League Tables only
   Keep FA Full-Time feed itself white for contrast.
========================================================= */

body:not(.theme-dark) .public-football-page {
    background: #e3eaf3 !important;
    border-color: #d7e0ec !important;
}

body:not(.theme-dark) .public-football-page .public-football-feed > div[id^="lrep"] {
    background: #ffffff !important;
}

body:not(.theme-dark) .public-football-page .public-football-filters select {
    background: #ffffff !important;
}

/* =========================================================
   ADMIN SUPER ADMIN DROPDOWNS - DARK MODE TEXT FIX
   Keep light dropdown panels readable on the dark admin nav.
========================================================= */

body.theme-dark .admin-nav-sa .admin-nav-dropdown {
    background: #ffffff !important;
    border-color: rgba(0, 27, 94, 0.10) !important;
}

body.theme-dark .admin-nav-sa .admin-nav-dropdown a,
body.theme-dark .admin-nav-sa .admin-nav-dropdown a:link,
body.theme-dark .admin-nav-sa .admin-nav-dropdown a:visited {
    color: #001f5f !important;
    background: transparent !important;
    text-decoration: none !important;
}

body.theme-dark .admin-nav-sa .admin-nav-dropdown a:hover,
body.theme-dark .admin-nav-sa .admin-nav-dropdown a:focus,
body.theme-dark .admin-nav-sa .admin-nav-dropdown a:active {
    color: #001f5f !important;
    background: #eef3f8 !important;
    text-decoration: none !important;
}

body.theme-dark .admin-nav-sa .admin-nav-dropdown .admin-nav-disabled {
    color: #7b8497 !important;
}

body.theme-dark .admin-nav-sa .admin-nav-dropdown-separator {
    background: rgba(0, 27, 94, 0.12) !important;
}




/* =========================================================
   MOBILE LOGIN / DASHBOARD NAV ITEM
   Hidden on desktop because the header already contains it.
========================================================= */

.mobile-login-link {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-login-link {
        display: block !important;
    }
}


/* =========================================================
   FINAL MOBILE PUBLIC NAV DROPDOWN FIX
   Keep parent and child links readable in both themes.
========================================================= */

@media (max-width: 768px) {

    /* Main flyout */
    .main-nav #mainMenu,
    body.theme-dark .main-nav #mainMenu {
        background: #0b1d44 !important;
        border-color: rgba(255,255,255,0.10) !important;
    }

    /* Every top-level link, including an open dropdown parent */
    .main-nav #mainMenu > li > a,
    .main-nav #mainMenu > li.has-dropdown > a,
    .main-nav #mainMenu > li.has-dropdown.open > a,
    body.theme-dark .main-nav #mainMenu > li > a,
    body.theme-dark .main-nav #mainMenu > li.has-dropdown > a,
    body.theme-dark .main-nav #mainMenu > li.has-dropdown.open > a {
        background: #0b1d44 !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255,255,255,0.10) !important;
        box-shadow: none !important;
    }

    .main-nav #mainMenu > li > a:hover,
    .main-nav #mainMenu > li > a:focus,
    .main-nav #mainMenu > li.has-dropdown.open > a:hover,
    .main-nav #mainMenu > li.has-dropdown.open > a:focus,
    body.theme-dark .main-nav #mainMenu > li > a:hover,
    body.theme-dark .main-nav #mainMenu > li > a:focus {
        background: #102a5d !important;
        color: #ffffff !important;
    }

    /* Expanded submenu */
    .main-nav #mainMenu li.has-dropdown > .dropdown-menu,
    .main-nav #mainMenu li.has-dropdown.open > .dropdown-menu,
    body.theme-dark .main-nav #mainMenu li.has-dropdown > .dropdown-menu,
    body.theme-dark .main-nav #mainMenu li.has-dropdown.open > .dropdown-menu {
        background: #102a5d !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Submenu links */
    .main-nav #mainMenu li.has-dropdown > .dropdown-menu a,
    .main-nav #mainMenu li.has-dropdown.open > .dropdown-menu a,
    body.theme-dark .main-nav #mainMenu li.has-dropdown > .dropdown-menu a,
    body.theme-dark .main-nav #mainMenu li.has-dropdown.open > .dropdown-menu a {
        background: #102a5d !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .main-nav #mainMenu li.has-dropdown > .dropdown-menu a:hover,
    .main-nav #mainMenu li.has-dropdown > .dropdown-menu a:focus,
    body.theme-dark .main-nav #mainMenu li.has-dropdown > .dropdown-menu a:hover,
    body.theme-dark .main-nav #mainMenu li.has-dropdown > .dropdown-menu a:focus {
        background: #17366f !important;
        color: #ffffff !important;
    }

    /* Mobile Dashboard/Login and theme-control text */
    .main-nav #mainMenu .mobile-login-link > a {
        color: #ffffff !important;
        background: #0b1d44 !important;
    }

    .main-nav #mainMenu .mobile-theme-toggle,
    .main-nav #mainMenu .mobile-theme-toggle button,
    body:not(.theme-dark) .main-nav #mainMenu .mobile-theme-toggle,
    body:not(.theme-dark) .main-nav #mainMenu .mobile-theme-toggle button {
        color: #ffffff !important;
        background: #0b1d44 !important;
    }
}

/* =========================================================
   TEAM DIRECTORY - DARK MODE MOBILE READABILITY
   Keep team cards light with dark readable text
========================================================= */

body.theme-dark .team-list-card,
[data-theme="dark"] .team-list-card {
    background: #f8fafc !important;
    border-color: #dbe3f0 !important;
}

body.theme-dark .team-list-card .team-list-main h4,
[data-theme="dark"] .team-list-card .team-list-main h4 {
    color: #001f5f !important;
}

body.theme-dark .team-list-card .team-list-main p,
[data-theme="dark"] .team-list-card .team-list-main p {
    color: #475569 !important;
}

body.theme-dark .team-list-card .team-list-main small,
[data-theme="dark"] .team-list-card .team-list-main small {
    color: #64748b !important;
}

body.theme-dark .team-list-card .team-list-meta span,
[data-theme="dark"] .team-list-card .team-list-meta span {
    color: #334155 !important;
}

body.theme-dark .team-list-card .team-list-meta a,
[data-theme="dark"] .team-list-card .team-list-meta a {
    background: #001f5f !important;
    color: #ffffff !important;
}


/* Mobile - reinforce colours against later responsive rules */
@media (max-width: 768px) {

    body.theme-dark .team-list-card .team-list-main h4,
    [data-theme="dark"] .team-list-card .team-list-main h4 {
        color: #001f5f !important;
    }

    body.theme-dark .team-list-card .team-list-main p,
    [data-theme="dark"] .team-list-card .team-list-main p {
        color: #475569 !important;
    }

    body.theme-dark .team-list-card .team-list-main small,
    [data-theme="dark"] .team-list-card .team-list-main small {
        color: #64748b !important;
    }
}


/* =========================================================
   ABOUT US - MINI SOCCER GOOGLE MAPS LINKS
   Force dark text on the deliberately white venue cards,
   including iOS/Safari dark-theme rendering.
========================================================= */

body.theme-dark .card .about-venue-card .about-venue-copy > a.about-map-link,
body.theme-dark .card .about-venue-card .about-venue-copy > a.about-map-link:link,
body.theme-dark .card .about-venue-card .about-venue-copy > a.about-map-link:visited,
[data-theme="dark"] .card .about-venue-card .about-venue-copy > a.about-map-link,
[data-theme="dark"] .card .about-venue-card .about-venue-copy > a.about-map-link:link,
[data-theme="dark"] .card .about-venue-card .about-venue-copy > a.about-map-link:visited {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #003b8f !important;
    -webkit-text-fill-color: #003b8f !important;
}

body.theme-dark .card .about-venue-card .about-venue-copy > a.about-map-link:hover,
body.theme-dark .card .about-venue-card .about-venue-copy > a.about-map-link:focus,
[data-theme="dark"] .card .about-venue-card .about-venue-copy > a.about-map-link:hover,
[data-theme="dark"] .card .about-venue-card .about-venue-copy > a.about-map-link:focus {
    color: #001f5f !important;
    -webkit-text-fill-color: #001f5f !important;
}

body.theme-dark .card .about-venue-card .about-map-link i,
[data-theme="dark"] .card .about-venue-card .about-map-link i {
    color: #003b8f !important;
    -webkit-text-fill-color: #003b8f !important;
}


/* =========================================================
   ABOUT US - SECRETARY EMAIL LINK
   Keep the email visible on the deliberately white company
   information card in dark mode, including iOS/Safari.
========================================================= */

body.theme-dark a[href="mailto:secretary@ndyfl.co.uk"],
body.theme-dark a[href="mailto:secretary@ndyfl.co.uk"]:link,
body.theme-dark a[href="mailto:secretary@ndyfl.co.uk"]:visited,
[data-theme="dark"] a[href="mailto:secretary@ndyfl.co.uk"],
[data-theme="dark"] a[href="mailto:secretary@ndyfl.co.uk"]:link,
[data-theme="dark"] a[href="mailto:secretary@ndyfl.co.uk"]:visited {
    color: #003b8f !important;
    -webkit-text-fill-color: #003b8f !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.theme-dark a[href="mailto:secretary@ndyfl.co.uk"]:hover,
body.theme-dark a[href="mailto:secretary@ndyfl.co.uk"]:focus,
[data-theme="dark"] a[href="mailto:secretary@ndyfl.co.uk"]:hover,
[data-theme="dark"] a[href="mailto:secretary@ndyfl.co.uk"]:focus {
    color: #001f5f !important;
    -webkit-text-fill-color: #001f5f !important;
}


/* =========================================================
   FOOTER SOCIAL ICONS - FINAL COLOUR FIX
   The About Us secretary mail-link rule also matches the
   footer email link. Force all footer social glyphs to use
   the intended footer colour, including Safari text fill.
========================================================= */

body.theme-dark .footer-socials a,
body.theme-dark .footer-socials a:link,
body.theme-dark .footer-socials a:visited,
body.theme-dark .footer-socials a i,
body.theme-dark .footer-socials a i::before,
[data-theme="dark"] .footer-socials a,
[data-theme="dark"] .footer-socials a:link,
[data-theme="dark"] .footer-socials a:visited,
[data-theme="dark"] .footer-socials a i,
[data-theme="dark"] .footer-socials a i::before {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.theme-dark .footer-socials a:hover,
body.theme-dark .footer-socials a:focus,
body.theme-dark .footer-socials a:hover i,
body.theme-dark .footer-socials a:focus i,
[data-theme="dark"] .footer-socials a:hover,
[data-theme="dark"] .footer-socials a:focus,
[data-theme="dark"] .footer-socials a:hover i,
[data-theme="dark"] .footer-socials a:focus i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* =========================================================
   CLUB DIRECTORY - DARK MODE READABILITY
   Keep the deliberately light club cards readable in dark mode.
========================================================= */

body.theme-dark .directory-filter,
[data-theme="dark"] .directory-filter,
body.theme-dark .club-directory-card,
[data-theme="dark"] .club-directory-card,
body.theme-dark .club-directory-body,
[data-theme="dark"] .club-directory-body,
body.theme-dark .club-contact-grid,
[data-theme="dark"] .club-contact-grid,
body.theme-dark .club-teams,
[data-theme="dark"] .club-teams,
body.theme-dark .directory-private-note,
[data-theme="dark"] .directory-private-note {
    background: #ffffff !important;
    color: #334155 !important;
}

body.theme-dark .directory-search label,
[data-theme="dark"] .directory-search label,
body.theme-dark .club-contact-grid strong,
[data-theme="dark"] .club-contact-grid strong,
body.theme-dark .club-teams h3,
[data-theme="dark"] .club-teams h3 {
    color: #001f5f !important;
}

body.theme-dark .club-contact-grid span,
[data-theme="dark"] .club-contact-grid span,
body.theme-dark .directory-private-note,
[data-theme="dark"] .directory-private-note {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

body.theme-dark .club-contact-grid a,
body.theme-dark .club-contact-grid a:link,
body.theme-dark .club-contact-grid a:visited,
[data-theme="dark"] .club-contact-grid a,
[data-theme="dark"] .club-contact-grid a:link,
[data-theme="dark"] .club-contact-grid a:visited {
    color: #003b8f !important;
    -webkit-text-fill-color: #003b8f !important;
}

body.theme-dark .club-contact-grid a:hover,
body.theme-dark .club-contact-grid a:focus,
[data-theme="dark"] .club-contact-grid a:hover,
[data-theme="dark"] .club-contact-grid a:focus {
    color: #001f5f !important;
    -webkit-text-fill-color: #001f5f !important;
}

body.theme-dark .club-team-list a,
body.theme-dark .club-team-list a:link,
body.theme-dark .club-team-list a:visited,
[data-theme="dark"] .club-team-list a,
[data-theme="dark"] .club-team-list a:link,
[data-theme="dark"] .club-team-list a:visited {
    background: #f8fafc !important;
    border-color: #dbe3f0 !important;
    color: #001f5f !important;
    -webkit-text-fill-color: #001f5f !important;
}

body.theme-dark .club-team-list a span,
[data-theme="dark"] .club-team-list a span {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}

body.theme-dark .club-team-list a:hover,
body.theme-dark .club-team-list a:focus,
[data-theme="dark"] .club-team-list a:hover,
[data-theme="dark"] .club-team-list a:focus {
    background: #001f5f !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.theme-dark .club-team-list a:hover span,
body.theme-dark .club-team-list a:focus span,
[data-theme="dark"] .club-team-list a:hover span,
[data-theme="dark"] .club-team-list a:focus span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Search box remains light/readable in dark mode */
body.theme-dark .directory-search input,
[data-theme="dark"] .directory-search input {
    background: #ffffff !important;
    color: #001f5f !important;
    -webkit-text-fill-color: #001f5f !important;
}

body.theme-dark .directory-search input::placeholder,
[data-theme="dark"] .directory-search input::placeholder {
    color: #7b8497 !important;
    -webkit-text-fill-color: #7b8497 !important;
}


/* =========================================================
   AGE GROUP DIVISION SELECTOR - AUTHORITATIVE FINAL WIDTH
   Keep this section last.
========================================================= */

/* Desktop */
@media (min-width: 769px) {
    .age-division-selector form {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .age-division-selector label {
        margin-right: 0 !important;
        white-space: nowrap !important;
    }

    .age-division-selector select {
        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
        flex: 0 0 210px !important;
    }
}

/* Mobile: same row, dropdown fills remaining space */
@media (max-width: 768px) {
    .age-division-selector form {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .age-division-selector label {
        flex: 0 0 auto !important;
        margin-right: 0 !important;
        white-space: nowrap !important;
    }

    .age-division-selector select {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

