/*
Theme Name: Fantasy Football Pro
Theme URI: https://example.com/fantasy-football-pro
Description: Bold Americana NFL stats theme. Navy, red, white. Built for Project Touchdown.
Author: Your Name
Author URI: https://example.com
Template: baseball-club
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fantasy-football-pro
Tags: sports, football, nfl, statistics, dark, americana
*/

/* ========================================
   FONTS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES — BOLD AMERICANA
   ======================================== */

:root {
    --navy:        #0a1628;
    --navy-mid:    #0d1f36;
    --navy-light:  #122342;
    --navy-border: rgba(255,255,255,0.12);
    --red:         #CC0000;
    --red-dark:    #A30000;
    --red-glow:    rgba(204,0,0,0.25);
    --white:       #FFFFFF;
    --off-white:   #F0F4F8;
    --muted:       rgba(255,255,255,0.55);
    --muted-dark:  rgba(255,255,255,0.25);

    /* Legacy aliases used in older rules */
    --ff-primary:     #0a1628;
    --ff-secondary:   #0d1f36;
    --ff-accent:      #122342;
    --ff-highlight:   #CC0000;
    --ff-success:     #FFFFFF;
    --ff-text-light:  #FFFFFF;
    --ff-text-dark:   #0a1628;
    --ff-border:      rgba(255,255,255,0.12);
}

/* ========================================
   BASE
   ======================================== */

body {
    background: var(--navy);
    color: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white) !important;
    line-height: 1.15;
}

/* ========================================
   SITE STRUCTURE
   ======================================== */

.site {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    background: var(--navy);
}

/* ========================================
   HEADER
   ======================================== */

.site-header,
header.site-header,
#masthead {
    background: var(--navy-mid) !important;
    padding: 1.25rem 2rem !important;
    border-bottom: 3px solid var(--red) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    overflow: hidden !important;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-content .site-branding {
    flex-shrink: 0;
}

.header-content .header-search {
    flex: 1;
    max-width: 600px;
    margin-top: 0;
}

@media (max-width: 640px) {
    .header-content .header-search { display: none !important; }
}

.site-header::before,
.site-header::after {
    display: none !important;
}

.site-branding {
    position: relative;
    z-index: 2;
}

.site-title {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow: none;
}

.site-title a {
    text-decoration: none;
    color: inherit !important;
}

.site-title a:hover {
    color: var(--red) !important;
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--muted) !important;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
}

/* ========================================
   HEADER SEARCH
   ======================================== */

.header-search {
    margin-top: 1.25rem;
    position: relative;
    z-index: 2;
}

.header-search .search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
}

.header-search .search-field {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border: 2px solid var(--navy-border);
    border-radius: 4px;
    color: var(--white);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.header-search .search-field::placeholder {
    color: var(--muted);
}

.header-search .search-field:focus {
    outline: none;
    border-color: var(--red);
    background: rgba(255,255,255,0.12);
}

.header-search .search-submit {
    padding: 0.75rem 1.75rem;
    background: var(--red);
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search .search-submit:hover {
    background: var(--red-dark);
}

/* ========================================
   MAIN NAV (WordPress theme nav)
   ======================================== */

.main-navigation,
nav,
#site-navigation {
    background: rgba(0,0,0,0.25) !important;
    border-top: 1px solid var(--navy-border);
    border-bottom: 1px solid var(--navy-border);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a,
nav a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--muted) !important;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 3px solid transparent;
}

.main-navigation a:hover,
nav a:hover {
    color: var(--white) !important;
    border-bottom-color: var(--red);
}

.main-navigation .current-menu-item a {
    color: var(--white) !important;
    border-bottom-color: var(--red);
}

/* ========================================
   CONTENT AREA
   ======================================== */

.site-content,
#content {
    padding: 2.5rem 2rem !important;
    background: var(--navy) !important;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
}

#page,
#content,
.content-area,
main,
.site-main,
.inner-wrap,
.container,
.row {
    background: transparent !important;
}

#page.site {
    background: var(--navy) !important;
}

/* ========================================
   POST CARDS (homepage list)
   ======================================== */

article,
.post,
.page {
    background: var(--navy-mid) !important;
    border: 1px solid var(--navy-border) !important;
    border-left: 4px solid var(--red) !important;
    border-radius: 4px !important;
    padding: 1.75rem 2rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--white) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

article:hover,
.post:hover {
    border-color: var(--navy-border) !important;
    border-left-color: var(--red) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

.entry-title,
h1.entry-title,
h2.entry-title {
    margin: 0 0 0.75rem !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    line-height: 1.2;
}

.entry-title a {
    text-decoration: none;
    color: inherit !important;
}

.entry-title a:hover {
    color: var(--red) !important;
}

.entry-meta {
    color: var(--muted) !important;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.entry-meta a {
    color: var(--muted) !important;
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--white) !important;
}

.entry-content,
.entry-summary {
    color: var(--white) !important;
}

/* Category pills on posts */
.meta-categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-categories .category-link {
    background: rgba(204,0,0,0.15) !important;
    color: var(--off-white) !important;
    padding: 0.2rem 0.75rem !important;
    border-radius: 2px !important;
    font-size: 0.75rem !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(204,0,0,0.3) !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.meta-categories .category-link:hover {
    background: var(--red) !important;
    color: var(--white) !important;
}

.meta-categories .sep {
    color: var(--muted-dark) !important;
}

/* ========================================
   GLOBAL LINKS
   ======================================== */

a {
    color: var(--off-white) !important;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red) !important;
}

/* ========================================
   GLOBAL TEXT OVERRIDES
   ======================================== */

body,
p,
div,
span,
li {
    color: var(--white) !important;
}

/* ========================================
   BUTTONS
   ======================================== */

.button,
button,
input[type="submit"],
input[type="button"],
.btn {
    background: var(--red) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.75rem 1.75rem !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--red-dark) !important;
}

/* ========================================
   SIDEBAR
   ======================================== */

.widget-area {
    background: var(--navy-mid);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--navy-border);
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white) !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--red);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--navy-border);
}

.widget a {
    color: var(--muted) !important;
    text-decoration: none;
}

.widget a:hover {
    color: var(--white) !important;
}

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

.site-footer,
footer,
#colophon {
    background: #060e1a !important;
    border-top: 3px solid var(--red) !important;
    padding: 2.5rem 2rem !important;
    color: var(--muted) !important;
    margin-top: 4rem;
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-branding { margin-bottom: 1.5rem; }

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white) !important;
    margin: 0 0 0.25rem;
}

.footer-tagline {
    color: var(--muted) !important;
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    margin: 1.5rem 0 1rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--muted) !important;
    text-decoration: none;
    padding: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--white) !important;
}

.footer-links .sep {
    color: var(--muted-dark) !important;
}

.footer-copyright,
.footer-attribution {
    color: var(--muted-dark) !important;
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

/* ========================================
   SEARCH FILTERS
   ======================================== */

.search-layout {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.search-filters {
    background: var(--navy-mid) !important;
    border-radius: 4px;
    padding: 1.5rem;
    border: 1px solid var(--navy-border);
}

.filters-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white) !important;
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--red);
}

.filter-group { margin-bottom: 1.25rem; }

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.filter-select {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: 4px;
    color: var(--white) !important;
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--red) !important;
}

.filter-select option {
    background: var(--navy-mid);
    color: var(--white);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.filter-button {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    text-decoration: none;
    text-transform: uppercase;
}

.filter-apply {
    background: var(--red);
    color: var(--white) !important;
}

.filter-apply:hover { background: var(--red-dark); }

.filter-clear {
    background: rgba(255,255,255,0.08);
    color: var(--white) !important;
    border: 1px solid var(--navy-border) !important;
}

.filter-clear:hover { background: rgba(255,255,255,0.15); }

/* ---- Search & Filter plugin overrides ---- */
.searchandfilter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.searchandfilter ul li {
    margin-bottom: 1.25rem;
}
.searchandfilter ul li label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}
.searchandfilter ul li select {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: 4px;
    color: var(--white) !important;
    font-size: 0.875rem;
    cursor: pointer;
}
.searchandfilter ul li select:focus {
    outline: none;
    border-color: var(--red) !important;
}
.searchandfilter ul li select option {
    background: var(--navy-mid);
    color: var(--white);
}
.searchandfilter ul li input[type="submit"] {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    background: var(--red);
    color: var(--white) !important;
    transition: background 0.2s ease;
}
.searchandfilter ul li input[type="submit"]:hover {
    background: var(--red-dark);
}

.active-filters {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--navy-border);
}

.active-filters-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem;
}

.filter-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(204,0,0,0.15);
    color: var(--off-white) !important;
    padding: 0.4rem 0.75rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.remove-filter {
    color: var(--red) !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.5rem;
}

.results-count {
    color: var(--muted) !important;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ----------------------------------------
   TAG / SEARCH RESULT CARDS
   ---------------------------------------- */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.result-card {
    margin: 0;
    padding: 0;
    border: none;
    list-style: none;
}

.result-card__link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    border-top: 3px solid var(--red);
    border-radius: 4px;
    padding: 1.25rem 1.25rem 1rem;
    text-decoration: none !important;
    height: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.result-card__link:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--red);
}

.result-card__title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--white) !important;
    margin: 0 !important;
    line-height: 1.2;
}

.result-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.result-card__badge {
    background: rgba(255,255,255,0.08);
    color: var(--muted) !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

.result-card__cta {
    margin-top: auto;
    padding-top: 0.75rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red) !important;
}

/* Page header (tag archive title + count) */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--navy-border);
}

.page-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--white) !important;
    margin: 0 !important;
}

.page-title span { color: var(--red) !important; }

@media (max-width: 768px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-sidebar { position: static; }
    .search-filters { margin-bottom: 1.5rem; }
    .results-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-content {
    background: var(--navy-mid);
    border-radius: 4px;
    padding: 3rem;
    border: 1px solid var(--navy-border);
}

.legal-content .page-header {
    border-bottom: 3px solid var(--red);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.legal-content .page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white) !important;
    margin: 0 0 0.5rem;
}

.legal-content .last-updated {
    color: var(--muted) !important;
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.legal-content section { margin-bottom: 2rem; }

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--white) !important;
    margin: 0 0 0.75rem;
    border-left: 3px solid var(--red);
    padding-left: 0.75rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--off-white) !important;
    margin: 1.25rem 0 0.5rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
}

.legal-content a {
    color: var(--off-white) !important;
    text-decoration: underline;
}

.legal-content strong { color: var(--white) !important; }

@media (max-width: 768px) {
    .legal-content { padding: 1.5rem; }
    .legal-content .page-title { font-size: 2rem; }
}

/* ========================================
   COOKIE CONSENT
   ======================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #060e1a;
    border-top: 3px solid var(--red);
    padding: 1.25rem 2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-banner.show { transform: translateY(0); }

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.cookie-consent-text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white) !important;
    margin: 0 0 0.35rem;
}

.cookie-consent-text p {
    font-size: 0.875rem;
    color: var(--muted) !important;
    margin: 0;
}

.cookie-consent-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-accept { background: var(--red); color: var(--white) !important; }
.cookie-accept:hover { background: var(--red-dark); }

.cookie-essential {
    background: rgba(255,255,255,0.08);
    color: var(--white) !important;
    border: 1px solid var(--navy-border) !important;
}

.cookie-essential:hover { background: rgba(255,255,255,0.15); }

.cookie-link {
    color: var(--muted) !important;
    text-decoration: none;
    font-size: 0.85rem;
}

.cookie-link:hover { color: var(--white) !important; }

@media (max-width: 768px) {
    .cookie-consent-content { flex-direction: column; gap: 1rem; }
    .cookie-consent-buttons { flex-direction: column; width: 100%; max-width: 360px; }
    .cookie-btn { width: 100%; }
}

/* ========================================
   SITE NAV COMPONENT (.td-nav)
   Theme-level nav bar (rendered in header.php)
   ======================================== */

/* Hide the duplicate in-content td-nav from old Jinja templates */
.entry-content .td-nav { display: none !important; }

/* Hide the WordPress entry-header (post title/cats) — Jinja templates have their own hero */
.entry-header { display: none !important; }

.td-nav {
    background: var(--navy-mid);
    border-bottom: 3px solid var(--red);
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 100;
}

.td-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.td-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    color: var(--white) !important;
    padding: 0.875rem 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.td-nav__brand:hover { color: var(--red) !important; }

.td-nav__brand-icon { font-size: 1.25rem; }

.td-nav__links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.td-nav__links li {
    margin: 0;
    padding: 0;
}

.td-nav__link {
    display: block;
    color: var(--muted) !important;
    text-decoration: none !important;
    padding: 0.875rem 1.25rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    white-space: nowrap;
}

.td-nav__link:hover {
    color: var(--white) !important;
    border-bottom-color: var(--red);
}

.td-nav__link--active {
    color: var(--white) !important;
    border-bottom-color: var(--red);
}

.td-nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white) !important;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .td-nav__toggle { display: block; }

    .td-nav__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-mid);
        border-top: 1px solid var(--navy-border);
        border-bottom: 3px solid var(--red);
        z-index: 101;
    }

    .td-nav__links--open { display: flex; }

    .td-nav__link {
        padding: 0.875rem 1.5rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }

    .td-nav__link:hover,
    .td-nav__link--active {
        border-left-color: var(--red);
        border-bottom-color: transparent;
    }
}

/* ========================================
   PLAYER PAGE (.player-fantasy-page)
   ======================================== */

.player-fantasy-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* In-page search bar */
.search-container {
    background: var(--navy-mid);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--navy-border);
}

.search-container:focus-within {
    border-color: var(--red);
}

.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--white) !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease;
}

.search-input::placeholder { color: var(--muted) !important; }

.search-input:focus {
    outline: none !important;
    border-color: var(--red);
}

.search-button {
    padding: 0.75rem 1.75rem;
    background: var(--red);
    color: var(--white) !important;
    border: none;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover { background: var(--red-dark); }

/* Player Hero */
.fantasy-hero {
    background: var(--navy-mid);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--navy-border);
    border-top: 4px solid var(--red);
    position: relative;
    overflow: hidden;
}

.fantasy-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(204,0,0,0.04) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.player-avatar {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white) !important;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.player-info-header { color: var(--white) !important; }

.sport-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white) !important;
    padding: 0.2rem 0.75rem;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.player-name {
    font-family: 'Oswald', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    line-height: 1.05 !important;
    margin: 0.25rem 0 !important;
    color: var(--white) !important;
    background: none !important;
    -webkit-text-fill-color: var(--white) !important;
}

.player-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(255,255,255,0.07);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--navy-border);
    border-top: 2px solid var(--red);
}

.meta-label {
    font-size: 0.65rem;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.2rem;
    font-family: 'Oswald', sans-serif;
}

.meta-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white) !important;
    text-transform: uppercase;
}

/* Stadium link */
.stadium-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--muted) !important;
    text-decoration: none !important;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--navy-border);
    font-size: 0.8rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.75rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.stadium-link-badge:hover {
    color: var(--white) !important;
    border-bottom-color: var(--red);
}

/* Power stats */
.fantasy-power-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.power-stat {
    background: var(--navy-mid);
    border-radius: 4px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--navy-border);
    border-top: 3px solid var(--navy-light);
    transition: border-top-color 0.2s ease;
}

.power-stat:hover { border-top-color: var(--red); }

.power-stat-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.power-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white) !important;
    line-height: 1;
}

.power-stat--highlight .power-stat-value { color: var(--red) !important; }

/* Sections */
.fantasy-section { margin: 2.5rem 0; }
.section-header { margin-bottom: 1.25rem; }

.section-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    background: none !important;
    margin: 0 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 3px solid var(--red) !important;
    display: inline-block !important;
}

/* Info / draft tables */
.draft-card {
    background: var(--navy-mid);
    border-radius: 4px;
    border: 1px solid var(--navy-border);
    overflow: hidden;
}

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

.draft-table th {
    background: var(--navy-light);
    color: var(--muted) !important;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--red);
}

.draft-table td {
    padding: 0.875rem 1rem;
    font-weight: 500;
    color: var(--white) !important;
    border-bottom: 1px solid var(--navy-border);
}

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

.draft-table tbody tr:hover td {
    background: rgba(255,255,255,0.03) !important;
}

/* Stats containers */
.stats-container {
    background: var(--navy-mid);
    border-radius: 4px;
    border: 1px solid var(--navy-border);
    overflow: hidden;
    margin: 1.5rem 0;
}

.stats-header {
    background: var(--navy-light);
    padding: 0.875rem 1.25rem;
    border-bottom: 2px solid var(--red);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.25rem;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.stats-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: var(--white) !important;
}

.stats-years-badge {
    display: inline-block;
    background: rgba(204,0,0,0.15);
    color: var(--off-white) !important;
    padding: 0.4rem 1rem;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(204,0,0,0.3);
}

/* Stats tables */
.stats-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.825rem;
    min-width: 600px;
}

.stats-table thead th {
    background: var(--navy-light);
    color: var(--muted) !important;
    padding: 0.6rem 0.75rem;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--navy-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-table tbody td {
    padding: 0.6rem 0.75rem;
    text-align: center;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-table tbody tr:hover td {
    background: rgba(255,255,255,0.04) !important;
}

/* Year column */
.stats-table tbody td:first-child {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--white) !important;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.03) !important;
}

/* TD column */
.stats-table tbody td:nth-child(7) {
    color: var(--red) !important;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Yards column */
.stats-table tbody td:nth-child(2) {
    color: var(--white) !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .player-name { font-size: 2.25rem !important; }
    .player-meta { justify-content: center; }
    .fantasy-power-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Header search: always stays horizontal */
.header-search .search-form {
    flex-direction: row !important;
    align-items: center;
}
.header-search .search-submit {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .search-form { flex-direction: column; }
    .search-button { width: 100%; }
    .header-search .search-form { flex-direction: column !important; }
    .header-search .search-submit { width: 100%; }
}

@media (max-width: 640px) {
    .player-avatar { width: 80px; height: 80px; font-size: 2rem; }
    .player-name { font-size: 1.75rem !important; }
    .fantasy-power-stats { grid-template-columns: repeat(2, 1fr); }
    .stats-table { font-size: 0.75rem; }
    .stats-table thead th,
    .stats-table tbody td { padding: 0.4rem 0.3rem; }
}

/* ========================================
   STADIUM PAGE (.stadium-page)
   ======================================== */

.stadium-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Hero */
.stadium-hero {
    background: var(--navy-mid);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--navy-border);
    border-top: 4px solid var(--red);
    position: relative;
    overflow: hidden;
}

.stadium-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(204,0,0,0.04) 100%);
    pointer-events: none;
}

.stadium-hero__content { position: relative; z-index: 2; }

.stadium-hero__tag {
    display: inline-block;
    background: var(--red);
    color: var(--white) !important;
    padding: 0.2rem 0.75rem;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.stadium-hero__venue {
    font-family: 'Oswald', sans-serif !important;
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    line-height: 1.05 !important;
    margin: 0.25rem 0 !important;
    color: var(--white) !important;
    background: none !important;
    -webkit-text-fill-color: var(--white) !important;
}

.stadium-hero__team {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--muted) !important;
    margin: 0.4rem 0;
    letter-spacing: 0.5px;
}

.stadium-hero__city {
    display: inline-block;
    background: rgba(255,255,255,0.07);
    padding: 0.4rem 0.875rem;
    border-radius: 2px;
    border: 1px solid var(--navy-border);
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--off-white) !important;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blurb */
.stadium-blurb {
    background: var(--navy-mid);
    border-radius: 4px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--navy-border);
    border-left: 4px solid var(--red);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8) !important;
}

/* Sections */
.stadium-section { margin: 2.5rem 0; }

.stadium-section__title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    background: none !important;
    margin: 0 0 1.25rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 3px solid var(--red) !important;
    display: inline-block !important;
}

/* Cards */
.stadium-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.stadium-card {
    background: var(--navy-mid);
    border-radius: 4px;
    padding: 1.25rem;
    border: 1px solid var(--navy-border);
    border-top: 3px solid var(--navy-light);
    display: flex;
    flex-direction: column;
    transition: border-top-color 0.2s ease, box-shadow 0.2s ease;
}

.stadium-card:hover {
    border-top-color: var(--red);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.stadium-card__name {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    background: none !important;
    margin: 0 0 0.5rem !important;
}

.stadium-card__category {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.stadium-card__category--dining {
    background: rgba(204,0,0,0.15);
    color: #ff9999 !important;
    border: 1px solid rgba(204,0,0,0.3);
}

.stadium-card__category--bars {
    background: rgba(255,255,255,0.08);
    color: var(--off-white) !important;
    border: 1px solid var(--navy-border);
}

.stadium-card__category--activities {
    background: rgba(255,255,255,0.06);
    color: var(--muted) !important;
    border: 1px solid var(--navy-border);
}

.stadium-card__description {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.875rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.stadium-card__location {
    font-size: 0.75rem;
    color: var(--muted) !important;
    border-top: 1px solid var(--navy-border);
    padding-top: 0.6rem;
    font-style: italic;
}

.stadium-card__location::before { content: '📍 '; }

/* Back link */
.stadium-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--muted) !important;
    text-decoration: none !important;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--navy-border);
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.stadium-back-link:hover {
    border-color: var(--red);
    color: var(--white) !important;
}

/* Stadium responsive */
@media (max-width: 768px) {
    .stadium-hero__venue { font-size: 2rem !important; }
    .stadium-cards { grid-template-columns: 1fr; }
    .stadium-section__title { font-size: 1.25rem !important; }
}

/* ========================================
   DATA ATTRIBUTION
   ======================================== */

.data-attribution {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--navy-border);
    font-size: 0.8rem;
    color: var(--muted) !important;
}

.data-attribution p {
    margin: 0.2rem 0;
    color: var(--muted) !important;
}

/* ========================================
   HEADER SEARCH BAR (td-search-form)
   ======================================== */

.td-search-form {
    display: flex;
    gap: 0;
    max-width: 560px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--red);
    transition: box-shadow 0.2s ease;
}

.td-search-form:focus-within {
    box-shadow: 0 0 0 2px var(--red-glow);
}

.td-search-form__input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: #0a1628 !important;
    background-color: #0a1628 !important;
    border: none !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Override browser autofill background (Chrome/Safari inject white) */
.td-search-form__input:-webkit-autofill,
.td-search-form__input:-webkit-autofill:hover,
.td-search-form__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0 1000px #0a1628 inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.td-search-form__input::placeholder {
    color: rgba(255,255,255,0.5) !important;
    opacity: 1 !important;
}

.td-search-form__button {
    padding: 0.65rem 1rem;
    background: var(--red);
    border: none;
    color: #FFFFFF;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.td-search-form__button:hover {
    background: var(--red-dark);
}

@media (max-width: 640px) {
    .header-content .header-search { display: none !important; }
}

/* ========================================
   PAGEFIND UI THEME OVERRIDES
   ======================================== */

/* CSS variables — cascade into all Pagefind child elements */
.pagefind-search-page {
    --pagefind-ui-scale:               1;
    --pagefind-ui-primary:             #CC0000;
    --pagefind-ui-text:                #FFFFFF;
    --pagefind-ui-background:          #0d1f36;
    --pagefind-ui-border:              rgba(255,255,255,0.15);
    --pagefind-ui-tag:                 #122342;
    --pagefind-ui-border-width:        2px;
    --pagefind-ui-border-radius:       4px;
    --pagefind-ui-image-border-radius: 4px;
    --pagefind-ui-font:                'Inter', sans-serif;

    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Search hero ──────────────────────────────── */
.search-hero {
    background: var(--navy-mid);
    border-top: 4px solid var(--red);
    border-bottom: 1px solid var(--navy-border);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.search-hero__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.5rem;
}
.search-hero__title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin: 0 0 0.75rem;
    line-height: 1;
}
.search-hero__sub {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

/* ── Search input ─────────────────────────────── */
.pagefind-ui__search-input {
    background: rgba(255,255,255,0.07) !important;
    border: 2px solid rgba(255,255,255,0.15) !important;
    border-radius: 4px !important;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    transition: border-color 0.2s ease !important;
}
.pagefind-ui__search-input:focus {
    border-color: var(--red) !important;
    background: rgba(255,255,255,0.10) !important;
    outline: none !important;
}
.pagefind-ui__search-input::placeholder {
    color: rgba(255,255,255,0.55) !important;
    opacity: 1 !important;
}

/* Make the search-glass icon white */
.pagefind-ui__form::before {
    background-color: var(--white) !important;
    opacity: 0.5 !important;
}

/* Clear (×) button */
.pagefind-ui__search-clear {
    background: transparent !important;
    color: var(--muted) !important;
    font-family: 'Inter', sans-serif !important;
}
.pagefind-ui__search-clear:hover { color: var(--white) !important; }

/* ── "N results for …" message ────────────────── */
.pagefind-ui__message {
    color: var(--muted) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* ── Result cards ─────────────────────────────── */
.pagefind-ui__results { padding: 0 !important; margin-top: 1.5rem !important; }

.pagefind-ui__result {
    background: var(--navy-mid) !important;
    border-top: 1px solid var(--navy-border) !important;
    border-bottom: none !important;
    border-radius: 4px !important;
    padding: 1.1rem 1.25rem !important;
    margin-bottom: 0.5rem !important;
    transition: border-color 0.2s ease !important;
}
.pagefind-ui__result:hover { border-top-color: var(--red) !important; }
.pagefind-ui__result:last-of-type { border-bottom: 1px solid var(--navy-border) !important; }

.pagefind-ui__result-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}
.pagefind-ui__result-link {
    color: var(--white) !important;
    text-decoration: none !important;
}
.pagefind-ui__result-link:hover { color: var(--red) !important; }

.pagefind-ui__result-excerpt {
    color: rgba(255,255,255,0.65) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin-top: 0.35rem !important;
}

/* Highlight matches in red */
.pagefind-ui__result-excerpt mark,
.pagefind-ui__result-title mark {
    background: transparent !important;
    color: var(--red) !important;
    font-weight: 700 !important;
}

/* Tags */
.pagefind-ui__result-tag {
    background: rgba(204,0,0,0.15) !important;
    color: rgba(255,255,255,0.75) !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
}

/* ── Load more button ─────────────────────────── */
.pagefind-ui__button {
    background: transparent !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: 4px !important;
    color: var(--white) !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}
.pagefind-ui__button:hover {
    border-color: var(--red) !important;
    background: rgba(204,0,0,0.08) !important;
    color: var(--white) !important;
}

/* ── Filter panel ─────────────────────────────── */
.pagefind-ui__filter-panel {
    background: var(--navy-mid) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: 4px !important;
    padding: 0.25rem 1.25rem 1.25rem !important;
    margin-top: 0 !important;
}
.pagefind-ui__filter-block {
    border-bottom: 1px solid var(--navy-border) !important;
}
.pagefind-ui__filter-block:last-child { border-bottom: none !important; }

.pagefind-ui__filter-name {
    font-family: 'Oswald', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--white) !important;
}
/* Chevron arrow color */
.pagefind-ui__filter-name::after { border-color: var(--muted) !important; }

.pagefind-ui__filter-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.7) !important;
}
.pagefind-ui__filter-label:hover { color: var(--white) !important; }

.pagefind-ui__filter-checkbox {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 2px !important;
}
.pagefind-ui__filter-checkbox:checked {
    background: var(--red) !important;
    border-color: var(--red) !important;
}
/* Checkmark stays white */
.pagefind-ui__filter-value--checked::before { border-color: #fff !important; }

@media (max-width: 640px) {
    .search-hero__title { font-size: 2rem; }
    .pagefind-search-page { padding: 0 1rem 3rem; }
}
