/*
Theme Name:  AwayDay
Theme URI:   https://awaydays.net
Description: App-first AwayDay interface, preserving the existing AwayDay Planner WordPress plugin and its functions.
Version: 2.3.7
Author:      AwayDay
Text Domain: awayday-theme
*/

/* ═══════════════════════════════════════════════════════════════════
   DESIGN SYSTEM
═══════════════════════════════════════════════════════════════════ */
/* Font styling is owned by the AwayDay app layer; system fallback is always available. */

:root {
    --navy:        #0a1628;
    --navy2:       #0f2040;
    --navy3:       #1a3a5c;
    --green:       #00c851;
    --green2:      #00a040;
    --white:       #ffffff;
    --text:        #c8daf0;
    --text-dim:    #6a8aaa;
    --accent:      #ffb800;
    --radius:      10px;
    --radius-lg:   16px;
    --max-width:   1200px;
    --transition:  .25s ease;

    /* Plugin-compatible aliases */
    --ad-navy:      var(--navy);
    --ad-card:      #1a2332;
    --ad-white:     var(--white);
    --ad-text-dim:  var(--text-dim);
    --ad-green:     var(--green);
    --ad-blue:      #003da5;

    /* These four have been in constant use across the plugin's inline
       styles from the start (dozens of files), but were never actually
       promoted to real variables — meaning light mode has silently never
       covered them. Formalising them here, matching the exact values
       already in use, rather than introducing new colours. */
    --ad-card2:     #0f1729;  /* secondary/deeper background tone */
    --ad-border:    #1a2d45;  /* the de-facto standard card/input border */
    --ad-cyan:      #00d4ff;  /* secondary bright accent (stats, links) */
    --ad-gold:      #f0c040;  /* premium/featured accent */
}

/* ── Light Mode ─────────────────────────────────────────────────── */
body.light-mode {
    /* Override the CSS variables so everything using them automatically adapts */
    --navy:        #f0f4f8;
    --navy2:       #e8eef5;
    --navy3:       #d0dcec;
    --white:       #1a2332;
    --text:        #1a2332;
    --text-dim:    #4a6080;
    --accent:      #ffb800;

    /* Plugin CSS variable overrides */
    --ad-navy:     #f0f4f8;
    --ad-navy2:    #e8eef5;
    --ad-navy3:    #d0dcec;
    --ad-card:     #ffffff;
    --ad-white:    #1a2332;
    --ad-text-dim: #4a6080;
    --ad-blue:     #0055cc;

    /* Light-mode equivalents for the newly-formalised secondary tones —
       darkened/adjusted where needed for contrast against a light background. */
    --ad-card2:    #f7f9fc;
    --ad-border:   #d0dcec;
    --ad-cyan:     #0090b3;
    --ad-gold:     #b8860b;

    background: #f0f4f8;
    color: #1a2332;
}

body.light-mode .site-header {
    background: rgba(240,244,248,.96) !important;
    border-bottom-color: #d0dcec;
}

body.light-mode .site-header a,
body.light-mode .site-logo,
body.light-mode .nav-links a { color: #1a2332 !important; }
body.light-mode .nav-links a:hover { color: #006633 !important; }

/* Logo swaps to a light-background variant in light mode.
   Light logo is also inline display:none so it can never show in dark mode
   even if this stylesheet fails to load. */
.logo-light { display: none; }
body.light-mode .logo-dark  { display: none !important; }
body.light-mode .logo-light { display: block !important; }

body.light-mode .site-footer {
    background: #e2eaf2;
    border-top-color: #d0dcec;
}

/* Stat card values — use dark blue for contrast on light bg */
body.light-mode .ad-club-stat-val { color: #003da5 !important; }
body.light-mode .ad-club-stat-lbl { color: #4a6080 !important; }

/* All text headings */
body.light-mode h1, body.light-mode h2,
body.light-mode h3, body.light-mode h4,
body.light-mode .ad-club-name,
body.light-mode strong { color: #1a2332; }

body.light-mode p,
body.light-mode .ad-club-desc { color: #3a5070; }

/* Hardcoded inline background overrides */
body.light-mode [style*="background:#1a2332"],
body.light-mode [style*="background:#0f1729"],
body.light-mode [style*="background:#0a1628"],
body.light-mode [style*="background: #1a2332"],
body.light-mode [style*="background: #0f1729"],
body.light-mode [style*="background: #0a1628"] {
    background: #ffffff !important;
    border-color: #d0dcec !important;
}

/* Text on those dark-bg elements */
body.light-mode [style*="background:#1a2332"] *,
body.light-mode [style*="background:#0f1729"] *,
body.light-mode [style*="background: #1a2332"] *,
body.light-mode [style*="background: #0f1729"] * {
    color: #1a2332 !important;
}

/* Inputs and forms */
body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background: #f8fafc !important;
    border-color: #b0c4d8 !important;
    color: #1a2332 !important;
}

/* Buttons */
body.light-mode .ad-btn-outline {
    border-color: #b0c4d8;
    color: #1a2332;
}

/* Tabs */
body.light-mode .ad-stadium-tab { color: #4a6080; }
body.light-mode .ad-stadium-tab.active { color: #006633; border-bottom-color: #006633; }
body.light-mode .ad-stadium-tabs { border-bottom-color: #d0dcec; }

/* Nav toggle button */
body.light-mode .ad-theme-toggle { border-color: #b0c4d8; color: #3a5070; }

/* Green text should stay readable */
body.light-mode .ad-green-text,
body.light-mode [style*="color:#00c851"],
body.light-mode [style*="color: #00c851"] { color: #007a30 !important; }

/* Nearby cards */
body.light-mode .ad-nearby-card {
    background: #f0f4f8 !important;
    border-color: #d0dcec !important;
    color: #1a2332 !important;
}

/* Progress bar track */
body.light-mode .ad-progress-bar { background: #d0dcec; }

/* Links */
body.light-mode a { color: #003da5; }
body.light-mode a:hover { color: #00a040; }

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Barlow', sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a   { color: var(--green); transition: color var(--transition); }
a:hover { color: var(--green2); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1; }
.container    { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background var(--transition);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding: 0 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-main {
    display: block;
    height: 72px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .logo-main { height: 56px; }
}
@media (max-width: 480px) {
    .logo-main { height: 46px; }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.main-nav a {
    display: block;
    padding: 8px 16px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.main-nav a:hover { background: rgba(255,255,255,.05); color: var(--white); }
.main-nav .nav-cta a {
    background: var(--green);
    color: var(--navy) !important;
    padding: 8px 20px;
}
.main-nav .nav-cta a:hover { background: var(--green2); }

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 88px; left: 0; right: 0;
        background: var(--navy2);
        border-bottom: 1px solid var(--navy3);
        padding: 12px 24px 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 12px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 88px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,200,81,.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,80,200,.1) 0%, transparent 60%),
        linear-gradient(160deg, #0a1628 0%, #071020 100%);
}

/* Light mode hero — flip to light background */
body.light-mode .hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,200,81,.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,80,200,.06) 0%, transparent 60%),
        linear-gradient(160deg, #e8eef5 0%, #dde6f0 100%);
}
body.light-mode .hero-headline { color: #1a2332; }
body.light-mode .hero-sub      { color: #3a5070; }
body.light-mode .hero-tag      { color: #3a5070; background: rgba(0,0,0,.06); }
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.5) 30%, rgba(0,0,0,.5) 70%, transparent);
}
.hero-pitch-lines {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background:
        linear-gradient(to top, rgba(0,200,81,.04) 0%, transparent 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
    width: 100%;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,200,81,.1);
    border: 1px solid rgba(0,200,81,.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--green);
    margin-bottom: 24px;
}
.hero-tag::before { content: '⚽'; font-size: .9rem; }
.hero-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--white);
    margin-bottom: 12px;
    max-width: 750px;
}
.hero-headline .line-green { color: var(--green); }
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--navy) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: var(--radius);
    transition: all var(--transition);
    box-shadow: 0 0 30px rgba(0,200,81,.25);
}
.btn-hero-primary:hover {
    background: var(--green2);
    transform: translateY(-2px);
    box-shadow: 0 4px 40px rgba(0,200,81,.35);
}
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 28px;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,.2);
    transition: all var(--transition);
}
.btn-hero-outline:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.05);
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.hero-stat { }
.hero-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}
.hero-stat-num span { color: var(--green); }
.hero-stat-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════════════ */
section { padding: 90px 0; }

.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--green);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--white);
}
.section-sub {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 540px;
    line-height: 1.7;
}
.section-title-center, .section-sub-center {
    text-align: center;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ── The 92 section ─────────────────────────────────────────────── */
.the-92 {
    background: var(--navy2);
    border-top: 1px solid var(--navy3);
    border-bottom: 1px solid var(--navy3);
}
.the-92-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) { .the-92-inner { grid-template-columns: 1fr; } }

.the-92-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.the-92-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.step-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: rgba(0,200,81,.12);
    border: 1px solid rgba(0,200,81,.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: .95rem;
    color: var(--green);
}
.step-content strong { display: block; color: var(--white); font-weight: 700; margin-bottom: 3px; }
.step-content span   { font-size: .88rem; color: var(--text-dim); }

.the-92-visual {
    background: var(--navy);
    border: 1px solid var(--navy3);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.league-preview { display: flex; flex-direction: column; gap: 16px; }
.lp-row {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    align-items: center;
    gap: 12px;
}
.lp-name { font-size: .82rem; font-weight: 700; color: var(--text); }
.lp-bar-wrap { background: var(--navy3); border-radius: 50px; height: 8px; overflow: hidden; }
.lp-bar      { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--green2), var(--green)); }
.lp-count    { font-size: .78rem; color: var(--text-dim); text-align: right; }

/* ── Features ───────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 50px;
}
.feature-card {
    background: var(--navy2);
    border: 1px solid var(--navy3);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform var(--transition), border-color var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,200,81,.3);
}
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(0,200,81,.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}
.feature-card p {
    font-size: .88rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ── CTA ────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--navy2), rgba(0,200,81,.06) 100%);
    border-top: 1px solid var(--navy3);
    text-align: center;
}
.cta-section .section-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.cta-section .section-sub {
    text-align: center;
    margin: 0 auto 36px;
}
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   INNER PAGES
═══════════════════════════════════════════════════════════════════ */
.page-hero {
    background: var(--navy2);
    border-bottom: 1px solid var(--navy3);
    padding: 120px 0 50px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 10px;
}
.page-hero p { color: var(--text-dim); font-size: 1.05rem; }
.page-content { padding: 50px 0 80px; }

/* WordPress content */
.entry-content h2, .entry-content h3 { margin: 28px 0 12px; }
.entry-content p  { margin-bottom: 16px; color: var(--text); }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; color: var(--text); }
.entry-content a  { color: var(--green); }

/* ── Login / Register ────────────────────────────────────────────── */
.login-page, .register-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
}
.auth-card {
    background: var(--navy2);
    border: 1px solid var(--navy3);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
}
.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.auth-card .auth-sub {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: 28px;
}

/* WP default form overrides */
#loginform, #registerform {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
#loginform p > label, #registerform p > label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .06em;
}
#loginform input[type="text"],
#loginform input[type="password"],
#registerform input[type="text"],
#registerform input[type="email"],
#registerform input[type="password"] {
    background: var(--navy) !important;
    border: 1px solid var(--navy3) !important;
    border-radius: var(--radius) !important;
    color: var(--white) !important;
    padding: 10px 14px !important;
    font-size: .95rem !important;
}
#wp-submit, #registersubmit {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    border-radius: var(--radius) !important;
    padding: 10px 24px !important;
    font-size: .95rem !important;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy2);
    border-top: 1px solid var(--navy3);
    padding: 50px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .88rem; color: var(--text-dim); margin-top: 14px; max-width: 280px; }
.footer-col h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
    font-size: .88rem;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
    border-top: 1px solid var(--navy3);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
}

/* ── Custom logo (uploaded via Customizer) ──────────────────────────────── */
.site-logo .custom-logo-link,
.site-logo .custom-logo-link img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
/* Hide mobile-only icon variant when custom logo is active */
.site-logo:has(.custom-logo-link) .logo-icon-only { display: none; }
@media (max-width: 480px) {
    .site-logo .custom-logo-link img { max-width: 160px; }
}

.nav-has-dropdown { position: relative; }
.nav-dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ad-navy, #0f1729);
    border: 1px solid var(--ad-blue, #003da5);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 210px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    list-style: none;
    margin: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
}
.nav-dropdown li { display: block; }
.nav-dropdown li a {
    display: block;
    padding: 10px 16px;
    color: #e0e0e0;
    font-size: .9rem;
    white-space: nowrap;
    transition: background .15s;
    text-decoration: none;
}
.nav-dropdown li a:hover { background: var(--ad-blue, #003da5); color: #fff; }
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { display: flex !important; }

@media (max-width: 768px) {
    .nav-dropdown {
        position: static !important;
        border: none;
        box-shadow: none;
        background: rgba(0,0,0,.2);
        border-radius: 0;
        padding-left: 16px;
        display: flex !important;
    }
}


/* v1.2.8 — scoped plugin readability corrections.
 * Dark Mode is unchanged. This deliberately retains the passport's dark
 * presentation in light mode until the plugin CSS itself can be updated. */
body.light-mode.ad-match-passport-page .entry-content {
    --ad-navy:#091a30; --ad-navy2:#11253d; --ad-navy3:#263f5d;
    --ad-card:#1a2d45; --ad-card2:#10223b;
    --ad-border:#344b68; --ad-white:#f8fbff;
    --ad-text-dim:#c4d5e7; --ad-cyan:#54e4ff;
    color:#f8fbff;
}
/* Existing theme's broad light-mode inline-background override made some
   app panels white while keeping their dark gradients. Restore dark panels
   on this page only and ensure their text has adequate contrast. */
body.light-mode.ad-match-passport-page .entry-content [style*="background:#1a2332"],
body.light-mode.ad-match-passport-page .entry-content [style*="background: #1a2332"],
body.light-mode.ad-match-passport-page .entry-content [style*="background:#0f1729"],
body.light-mode.ad-match-passport-page .entry-content [style*="background: #0f1729"],
body.light-mode.ad-match-passport-page .entry-content [style*="background:#0a1628"],
body.light-mode.ad-match-passport-page .entry-content [style*="background: #0a1628"] {
    background:#142840 !important;
    border-color:#34506c !important;
}
body.light-mode.ad-match-passport-page .entry-content :is(h1,h2,h3,h4,h5,h6,strong,b) {
    color:#f6faff !important;
}
body.light-mode.ad-match-passport-page .entry-content :is(p,small,time,label,li) {
    color:#d4e3f4 !important;
}
body.light-mode.ad-match-passport-page .entry-content :is(span,div)[style*="color:#6a8aaa"],
body.light-mode.ad-match-passport-page .entry-content :is(span,div)[style*="color: #6a8aaa"],
body.light-mode.ad-match-passport-page .entry-content :is(span,div)[style*="color:#9ab"] {
    color:#cbddef !important;
}
body.light-mode.ad-match-passport-page .entry-content [style*="color:#fff"],
body.light-mode.ad-match-passport-page .entry-content [style*="color: #fff"] {
    color:#fff !important;
}
body.light-mode.ad-match-passport-page .entry-content input,
body.light-mode.ad-match-passport-page .entry-content select,
body.light-mode.ad-match-passport-page .entry-content textarea {
    background:#f8fafc !important; color:#14263a !important;
    border-color:#a6bacd !important;
}
body.light-mode.ad-match-passport-page .entry-content a {color:#66dfff;}
body.light-mode.ad-match-passport-page .entry-content a:hover {color:#a4edff;}

/* Notifications page: keep the plugin's surfaces readable without forcing
   all plugin-generated panels to change layout. */
body.light-mode.ad-notifications-page .entry-content {
    --ad-text-dim:#44566e; --ad-card:#fff; --ad-card2:#f2f6fb;
    --ad-border:#c8d5e5; color:#18283a;
}
body.light-mode.ad-notifications-page .entry-content :is(h1,h2,h3,h4,strong,b) {color:#18283a !important;}
body.light-mode.ad-notifications-page .entry-content :is(p,small,time,label) {color:#40566e !important;}
body.light-mode.ad-notifications-page .entry-content :is(a) {color:#004ba8 !important;}

/* Floating notification bell / onboarding notifications can occur on any
   page. Match existing dark widget surfaces with clearly legible light text.
   Restrict to named notification widgets; avoid global 'span' overrides. */
body.light-mode :is([id*="notification"],[class*="notification"],[id*="notif-"],[class*="notif-"]):is([role="dialog"],[role="status"],[role="alert"],[class*="popup"],[class*="panel"],[class*="popover"],[class*="toast"],[class*="dropdown"],[class*="widget"]) {
    color:#eef6ff;
}
body.light-mode :is([id*="notification"],[class*="notification"],[id*="notif-"],[class*="notif-"]):is([role="dialog"],[role="status"],[role="alert"],[class*="popup"],[class*="panel"],[class*="popover"],[class*="toast"],[class*="dropdown"],[class*="widget"]) :is(p,small,time,label,span) {
    color:#dce8f6;
}
/* Do not invert input field text when the widget contains white inputs. */
body.light-mode :is([id*="notification"],[class*="notification"],[id*="notif-"],[class*="notif-"]) :is(input,textarea,select) {
    color:#17283b !important;
    background:#fff !important;
}

/* 1.2.10-beta: keyboard/touch-friendly Discover & Community navigation. */
.main-nav .nav-drop-toggle{display:block;color:var(--white);background:transparent;border:0;padding:10px 12px;font-size:.85rem;font-weight:600;cursor:pointer;white-space:nowrap}
.main-nav .nav-drop-toggle:hover,.main-nav .nav-drop-toggle:focus-visible{background:rgba(255,255,255,.08);color:var(--white)}
.main-nav .nav-has-dropdown.ad-open .nav-dropdown{display:flex!important}
@media(max-width:900px){.main-nav .nav-drop-toggle{width:100%;text-align:left;padding:12px 16px}}

/* Responsive header + new homepage feature cards (beta 1.2.11). */
@media(max-width:1150px){
  .nav-toggle{display:flex!important}
  .main-nav{display:none;position:absolute;top:88px;left:0;right:0;background:var(--navy2);border-bottom:1px solid var(--navy3);padding:12px 24px 20px;max-height:calc(100dvh - 88px);overflow-y:auto}
  .main-nav.open{display:block}
  .main-nav>ul{flex-direction:column;align-items:stretch;gap:2px}
  .main-nav>ul>li>a{padding:12px 16px}
  .main-nav .nav-has-dropdown .nav-dropdown{position:static!important;box-shadow:none!important;width:100%;max-width:100%}
}
.ad-home .ah-step .ah-pill{margin-top:16px}


/* Stadium experience 2.3 — visual language built around existing page functionality */
.ad-stadium-reimagined{width:100%;max-width:1160px;margin:0 auto;color:var(--ad-white,#f7fbff);font-size:15px}
.ad-stadium-reimagined .ad-editorial-breadcrumbs{margin:12px 0 24px!important;font-size:12px!important}
.ad-stadium-reimagined .ad-stadium-overline{font-size:11px;font-weight:750;letter-spacing:.18em;display:flex;gap:9px;align-items:center;margin:0 0 11px;color:var(--ad-text-dim,#a0b6ca)}
.ad-stadium-reimagined .ad-stadium-orbit{width:7px;height:7px;border-radius:50%;background:#a9e77b;box-shadow:0 0 0 5px rgba(169,231,123,.10)}
.ad-stadium-reimagined .ad-club-header{border-radius:26px;position:relative;overflow:hidden;display:flex;align-items:center;gap:24px;padding:clamp(24px,4vw,46px);border:1px solid rgba(181,205,241,.14);background:radial-gradient(ellipse at 96% 4%,rgba(68,108,191,.20),transparent 50%),linear-gradient(120deg,rgba(20,41,76,.98),rgba(12,24,46,.99));box-shadow:0 18px 54px rgba(2,9,22,.24);margin:0 0 14px}
.ad-stadium-reimagined .ad-club-header:before{content:"";height:5px;position:absolute;inset:auto 0 0;background:linear-gradient(90deg,#a8e875,#5fa9ff,transparent)}
.ad-stadium-reimagined .ad-club-badge{width:98px;height:98px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:27px;box-shadow:inset 0 1px rgba(255,255,255,.1)}
.ad-stadium-reimagined .ad-club-badge img{max-width:76px;max-height:76px}
.ad-stadium-reimagined .ad-club-meta{min-width:0;gap:8px}
.ad-stadium-reimagined .ad-club-league-tag{border:none;background:rgba(167,231,124,.13);color:#b9f091;padding:6px 12px;font-size:10px;letter-spacing:.11em}
.ad-stadium-reimagined .ad-club-name{font-family:inherit!important;font-size:clamp(28px,3.5vw,46px)!important;line-height:1.07;letter-spacing:-.045em;font-weight:800}
.ad-stadium-reimagined .ad-club-stadium-name{font-weight:550;color:#c1d0e8}
.ad-stadium-reimagined .ad-club-city{color:#9aaec9}
.ad-stadium-reimagined .ad-club-actions{min-width:190px;max-width:230px;border-radius:18px;padding:14px;background:rgba(6,15,31,.44);border:1px solid rgba(197,218,244,.13)}
.ad-stadium-reimagined .ad-btn-visit{width:100%;min-height:42px}
.ad-stadium-reimagined .ad-stadium-shortcuts{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:10px;margin:0 0 16px}
.ad-stadium-reimagined .ad-stadium-shortcuts button{border:1px solid rgba(158,184,223,.18);background:linear-gradient(130deg,rgba(31,52,87,.77),rgba(17,35,65,.88));color:#f0f6ff;border-radius:16px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;font-size:13px;font-weight:700;cursor:pointer;transition:transform .2s,border .2s}
.ad-stadium-reimagined .ad-stadium-shortcuts button:first-child{background:linear-gradient(128deg,rgba(176,237,123,.18),rgba(20,49,63,.82));border-color:rgba(175,234,121,.26)}
.ad-stadium-reimagined .ad-stadium-shortcuts button:hover{transform:translateY(-2px);border-color:rgba(174,236,120,.6)}
.ad-stadium-reimagined .ad-stadium-shortcuts button span{font-size:20px;color:#a8ec83}
.ad-stadium-reimagined .ad-club-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px}
.ad-stadium-reimagined .ad-club-stat{padding:19px 15px;text-align:left;border-radius:17px;background:rgba(22,42,77,.75);border:1px solid rgba(168,194,228,.12)}
.ad-stadium-reimagined .ad-club-stat-val{font-family:inherit;font-size:clamp(18px,2.3vw,25px);letter-spacing:-.035em;font-weight:800;color:#eef7ff;margin-bottom:8px}
.ad-stadium-reimagined .ad-club-stat-lbl{color:#93a9c6;font-size:10px;letter-spacing:.11em}
.ad-stadium-reimagined .ad-stadium-tabs{position:sticky;top:10px;z-index:12;padding:7px;border:1px solid rgba(152,183,222,.17);border-radius:17px;background:rgba(13,27,50,.91);box-shadow:0 14px 40px rgba(0,0,0,.16);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);margin:0 0 18px;display:flex;gap:4px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;scroll-margin-top:14px}
.ad-stadium-reimagined .ad-stadium-tab{color:#9bb0c9;border:0;border-radius:11px;margin:0;min-height:42px;padding:10px 15px;font-size:12px;font-weight:700;flex:0 0 auto;white-space:nowrap}
.ad-stadium-reimagined .ad-stadium-tab:hover{background:rgba(151,182,226,.10);color:#f8fbff}
.ad-stadium-reimagined .ad-stadium-tab.active{background:rgba(163,231,122,.17);color:#c5f49e;box-shadow:inset 0 0 0 1px rgba(163,231,122,.23)}
.ad-stadium-reimagined .ad-tab-panel{padding:4px 0 0}
.ad-stadium-reimagined .ad-club-section,.ad-stadium-reimagined .ad-club-desc{border:1px solid rgba(164,191,229,.12);border-radius:20px;background:linear-gradient(130deg,rgba(21,40,72,.75),rgba(14,30,58,.84));padding:clamp(19px,2.8vw,30px);margin-bottom:14px;box-shadow:0 9px 25px rgba(0,0,0,.07)}
.ad-stadium-reimagined .ad-club-desc{font-size:14px;line-height:1.85;color:#c5d6ec;margin-bottom:0}
.ad-stadium-reimagined .ad-club-section h2{color:#f4f9ff;font-size:17px;text-transform:none;letter-spacing:-.02em;margin:0 0 15px;font-weight:750}
.ad-stadium-reimagined .ad-stadium-section-intro{margin:8px 0 19px;padding:0 3px}
.ad-stadium-reimagined .ad-stadium-eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#b5e78f}
.ad-stadium-reimagined .ad-stadium-section-intro h2{margin:8px 0 5px;font-size:clamp(24px,3vw,32px);letter-spacing:-.045em}
.ad-stadium-reimagined .ad-stadium-section-intro p{margin:0;color:#a4b9d3;font-size:14px}
.ad-stadium-reimagined .ad-stadium-overview-cta{display:flex;justify-content:space-between;gap:24px;align-items:center;border-radius:22px;border:1px solid rgba(183,238,139,.21);background:linear-gradient(112deg,rgba(99,149,87,.22),rgba(19,41,68,.83));padding:clamp(22px,3vw,32px);margin-bottom:14px}
.ad-stadium-reimagined .ad-stadium-overview-cta h2{font-size:clamp(20px,2.5vw,29px);font-weight:750;letter-spacing:-.045em;line-height:1.2;margin:7px 0}
.ad-stadium-reimagined .ad-stadium-overview-cta p{color:#b0c5d8;font-size:13px;margin:0}
.ad-stadium-reimagined .ad-stadium-overview-cta button{min-width:165px;border:0;border-radius:12px;background:#b8ec87;color:#10233b;font-weight:800;padding:14px 18px;cursor:pointer}
.ad-stadium-reimagined #tab-guide h3{font-size:15px;letter-spacing:-.01em;color:#e9f2fe}
.ad-stadium-reimagined #tab-guide p,.ad-stadium-reimagined #tab-guide li{line-height:1.8}
.ad-stadium-reimagined #tab-guide iframe{border-radius:14px!important}
.ad-stadium-reimagined .ad-scrapbook-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.ad-stadium-reimagined .ad-scrap-card{max-width:none}
.ad-stadium-reimagined a:focus-visible,.ad-stadium-reimagined button:focus-visible{outline:3px solid #b7ee8c;outline-offset:3px}
body.light-mode .ad-stadium-reimagined .ad-club-header,body.light-mode .ad-stadium-reimagined .ad-club-section,body.light-mode .ad-stadium-reimagined .ad-club-desc{background:linear-gradient(135deg,#fff,#eef4fb);border-color:#cfdae8;box-shadow:0 12px 32px rgba(20,51,88,.05)}
body.light-mode .ad-stadium-reimagined .ad-club-name,body.light-mode .ad-stadium-reimagined .ad-club-section h2,body.light-mode .ad-stadium-reimagined .ad-stadium-section-intro h2,body.light-mode .ad-stadium-reimagined .ad-stadium-overview-cta h2{color:#153054}
body.light-mode .ad-stadium-reimagined .ad-club-stadium-name,body.light-mode .ad-stadium-reimagined .ad-club-desc,body.light-mode .ad-stadium-reimagined #tab-guide p,body.light-mode .ad-stadium-reimagined .ad-stadium-section-intro p{color:#4a607e}
body.light-mode .ad-stadium-reimagined .ad-club-stats .ad-club-stat,body.light-mode .ad-stadium-reimagined .ad-stadium-shortcuts button{background:#f4f8fd;border-color:#d8e2ee;color:#183354}
body.light-mode .ad-stadium-reimagined .ad-club-stat-val{color:#1e4266}
body.light-mode .ad-stadium-reimagined .ad-stadium-tabs{background:rgba(255,255,255,.90);border-color:#cfdae8}
body.light-mode .ad-stadium-reimagined .ad-stadium-tab{color:#4d6581}
body.light-mode .ad-stadium-reimagined .ad-stadium-tab.active{color:#245e37;background:#e3f5db}
body.light-mode .ad-stadium-reimagined .ad-stadium-overview-cta{background:linear-gradient(110deg,#f0fbe9,#eaf3fa);border-color:#d0eac4}
body.light-mode .ad-stadium-reimagined .ad-stadium-overview-cta p{color:#526c81}
body.light-mode .ad-stadium-reimagined .ad-stadium-shortcuts button span{color:#377650}
@media(max-width:840px){.ad-stadium-reimagined .ad-club-header{flex-wrap:wrap}.ad-stadium-reimagined .ad-club-actions{max-width:none;width:100%;flex-basis:100%}.ad-stadium-reimagined .ad-stadium-shortcuts{grid-template-columns:1fr 1fr}.ad-stadium-reimagined .ad-stadium-shortcuts button:first-child{grid-column:1/-1}}
@media(max-width:590px){.ad-stadium-reimagined .ad-club-header{padding:22px;gap:17px}.ad-stadium-reimagined .ad-club-badge{width:70px;height:70px;border-radius:20px}.ad-stadium-reimagined .ad-club-badge img{max-width:55px;max-height:55px}.ad-stadium-reimagined .ad-club-name{font-size:29px!important}.ad-stadium-reimagined .ad-club-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-stadium-reimagined .ad-stadium-shortcuts{grid-template-columns:1fr}.ad-stadium-reimagined .ad-stadium-shortcuts button:first-child{grid-column:auto}.ad-stadium-reimagined .ad-stadium-overview-cta{flex-direction:column;align-items:stretch}.ad-stadium-reimagined .ad-stadium-overview-cta button{width:100%}.ad-stadium-reimagined .ad-stadium-tabs{top:5px}.ad-stadium-reimagined .ad-club-section{padding:18px}.ad-stadium-reimagined .ad-stadium-overline{font-size:9px}}
/* Sign-in styling */
.awayday-social-signin{margin-top:24px}.awayday-social-separator{display:flex;align-items:center;gap:14px;color:var(--ad-text-dim,#94a8c2);margin-bottom:16px;font-size:13px}.awayday-social-separator:before,.awayday-social-separator:after{content:"";height:1px;background:rgba(134,166,207,.22);flex:1}
.awayday-google-action{text-align:center}.awayday-google-button{display:flex!important;align-items:center;justify-content:center;gap:12px;background:#fff!important;color:#253246!important;border:1px solid #d6dfe9!important;border-radius:14px!important;padding:14px 22px!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;transition:box-shadow .2s,transform .2s}.awayday-google-button:hover{box-shadow:0 8px 24px rgba(0,0,0,.14);transform:translateY(-1px)}.awayday-google-link{margin:18px 0;padding:22px;border:1px solid rgba(161,190,222,.2);border-radius:16px}.awayday-google-link h3{margin:0 0 8px}.awayday-google-link p{margin:0 0 14px}.awayday-google-error{background:rgba(220,58,58,.13);border:1px solid rgba(220,58,58,.3);padding:12px 16px;border-radius:10px;color:#ff9d9d;margin:14px 0}

/* Sign-in and account linking */
.awayday-social-signin{margin-top:24px}.awayday-social-separator{display:flex;align-items:center;gap:14px;color:var(--ad-text-dim,#94a8c2);margin-bottom:16px;font-size:13px}.awayday-social-separator:before,.awayday-social-separator:after{content:"";height:1px;background:rgba(134,166,207,.22);flex:1}
.awayday-google-action{text-align:center}.awayday-google-button{display:flex!important;align-items:center;justify-content:center;gap:12px;background:#fff!important;color:#253246!important;border:1px solid #d6dfe9!important;border-radius:14px!important;padding:14px 22px!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;transition:box-shadow .2s,transform .2s}.awayday-google-button:hover{box-shadow:0 8px 24px rgba(0,0,0,.14);transform:translateY(-1px)}.awayday-google-link{margin:18px 0;padding:22px;border:1px solid rgba(161,190,222,.2);border-radius:16px}.awayday-google-link h3{margin:0 0 8px}.awayday-google-link p{margin:0 0 14px}.awayday-google-error{background:rgba(220,58,58,.13);border:1px solid rgba(220,58,58,.3);padding:12px 16px;border-radius:10px;color:#ff9d9d;margin:14px 0}

/* Stadium editorial guide — compact expandable matchday knowledge */
.ad-stadium-reimagined .ad-editorial-guide{padding:clamp(20px,3vw,32px)}.ad-stadium-reimagined .ad-editorial-guide>h2{font-size:clamp(20px,2.2vw,27px);letter-spacing:-.04em}.ad-stadium-reimagined .ad-guide-lead{font-size:14px;color:#bfcfe3;line-height:1.8;margin:14px 0 22px}.ad-stadium-reimagined .ad-guide-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;margin:20px 0}.ad-stadium-reimagined .ad-guide-topic{border-radius:15px;border:1px solid rgba(141,179,219,.19);background:rgba(5,17,35,.38);overflow:hidden;min-width:0}.ad-stadium-reimagined .ad-guide-topic[open]{border-color:rgba(165,219,139,.30)}.ad-stadium-reimagined .ad-guide-topic summary{cursor:pointer;display:flex;align-items:center;gap:11px;padding:16px 17px;list-style:none;user-select:none}.ad-stadium-reimagined .ad-guide-topic summary::-webkit-details-marker{display:none}.ad-stadium-reimagined .ad-guide-topic summary strong{font-size:13px;font-weight:750;flex:1;color:#f1f7ff}.ad-stadium-reimagined .ad-guide-topic-icon{width:34px;height:34px;display:grid;place-items:center;background:rgba(152,184,220,.13);border-radius:10px;font-size:17px}.ad-stadium-reimagined .ad-guide-topic-chevron{color:#b0c8df;font-size:20px;transition:transform .2s}.ad-stadium-reimagined .ad-guide-topic[open] .ad-guide-topic-chevron{transform:rotate(180deg)}.ad-stadium-reimagined .ad-guide-topic-copy{padding:0 17px 17px 62px;color:#b9cbe1}.ad-stadium-reimagined .ad-guide-topic-copy p{font-size:13px;line-height:1.8;margin:0 0 10px}.ad-stadium-reimagined .ad-editorial-sources,.ad-stadium-reimagined .ad-editorial-checked{color:#a3b9d3!important}.ad-stadium-reimagined .ad-editorial-actions a{background:rgba(77,123,186,.23);border:1px solid rgba(154,187,220,.2);border-radius:10px}.ad-stadium-reimagined .ad-editorial-home-source{background:rgba(35,79,89,.30);border:1px solid rgba(116,184,168,.29);border-radius:14px}.ad-stadium-reimagined .ad-editorial-home-source a{color:#b6f28b}
body.light-mode .ad-stadium-reimagined .ad-guide-lead,body.light-mode .ad-stadium-reimagined .ad-guide-topic-copy{color:#4b6681}body.light-mode .ad-stadium-reimagined .ad-guide-topic{background:#f6f9fc;border-color:#d9e2ed}body.light-mode .ad-stadium-reimagined .ad-guide-topic summary strong{color:#1c3856}body.light-mode .ad-stadium-reimagined .ad-guide-topic-icon{background:#e5edf5}body.light-mode .ad-stadium-reimagined .ad-editorial-home-source{background:#f1f9f3}
@media(max-width:680px){.ad-stadium-reimagined .ad-guide-topic-grid{grid-template-columns:1fr}.ad-stadium-reimagined .ad-guide-topic-copy{padding-left:17px}}

.awayday-social-signin-first{margin:4px 0 24px}.awayday-social-signin-first .awayday-social-separator{margin:17px 0 0}
