/* =========================================================
   N.E.C. ARCHIEF — Gedeeld design system
   ========================================================= */

:root {
    --nec-red: #ba0c2f;
    --nec-green: #00843d;
    --nec-black: #111417;
    --nec-bg: #f1f5f9;
    --nec-card-bg: #ffffff;
    --nec-border: #e2e8f0;
    --nec-border-dark: #cbd5e1;
    --nec-text-main: #0f172a;
    --nec-text-muted: #64748b;
}

body {
    background-color: var(--nec-bg);
    color: var(--nec-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Topbar */
.nec-topbar {
    background-color: var(--nec-black);
    color: #ffffff;
    border-bottom: 3px solid var(--nec-red);
}

.nec-brand {
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
    font-weight: 700;
}

.nec-tricolor-badge {
    display: inline-flex;
    width: 14px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nec-tricolor-badge .bar-red {
    background-color: var(--nec-red);
    width: 33.33%;
}

.nec-tricolor-badge .bar-green {
    background-color: var(--nec-green);
    width: 33.33%;
}

.nec-tricolor-badge .bar-black {
    background-color: #000000;
    width: 33.33%;
}

.nec-nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.nec-nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nec-nav-link.active {
    color: #ffffff;
}

/* Offcanvas */
.offcanvas-nec {
    background-color: var(--nec-black);
    color: #ffffff;
    border-left: 2px solid var(--nec-red);
    max-width: 310px;
}

.offcanvas-nec .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-nec .nav-link-mobile {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s;
}

.offcanvas-nec .nav-link-mobile:hover,
.offcanvas-nec .nav-link-mobile.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Subnavigatie */
.nec-subnav {
    background-color: #ffffff;
    border-bottom: 1px solid var(--nec-border);
    padding: 0.55rem 0;
}

.nec-subnav-scroll {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nec-subnav-scroll::-webkit-scrollbar {
    display: none;
}

.nec-subtab-link {
    color: var(--nec-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.nec-subtab-link:hover {
    color: var(--nec-text-main);
    background-color: #f1f5f9;
}

.nec-subtab-link.active {
    background-color: var(--nec-green);
    color: #ffffff;
    font-weight: 600;
}

.nec-subtab-link.active .badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--nec-green);
    margin-right: 6px;
}

/* Cards */
.nec-card {
    background-color: var(--nec-card-bg);
    border: 1px solid var(--nec-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* Stat-boxen */
.nec-stat-box {
    background: #ffffff;
    border: 1px solid var(--nec-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 0.85rem 1.1rem;
    position: relative;
}

.nec-stat-box .stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--nec-text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nec-stat-box .stat-val {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.25rem;
    color: var(--nec-text-main);
    font-family: 'Inter', sans-serif;
}

.nec-stat-box .stat-sub {
    font-size: 0.72rem;
    color: var(--nec-text-muted);
}

.nec-tricolor-topline {
    height: 4px;
    width: 100%;
    display: flex;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.nec-tricolor-topline .c-red {
    width: 33.33%;
    background-color: var(--nec-red);
}

.nec-tricolor-topline .c-green {
    width: 33.33%;
    background-color: var(--nec-green);
}

.nec-tricolor-topline .c-black {
    width: 33.34%;
    background-color: var(--nec-black);
}

/* Filters */
.nec-filter-card {
    background-color: #ffffff;
    border: 1px solid var(--nec-border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nec-select-gray {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--nec-text-main);
    font-size: 0.815rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
}

.nec-select-gray:focus {
    background-color: #ffffff;
    border-color: var(--nec-red);
    box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.1);
}

/* Tabellen */
.table-nec {
    margin-bottom: 0;
    font-size: 0.835rem;
}

.table-nec thead th {
    background-color: #f8fafc;
    color: var(--nec-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    border-bottom: 2px solid var(--nec-border);
    white-space: nowrap;
}

.table-nec tbody td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--nec-border);
    vertical-align: middle;
    color: var(--nec-text-main);
}

.table-nec tbody tr:hover {
    background-color: #f8fafc;
}

.table-nec tfoot td {
    background-color: #f8fafc;
    font-weight: 700;
    padding: 0.75rem 0.85rem;
    border-top: 2px solid var(--nec-border-dark);
    border-bottom: none;
}

/* Getallen en badges */
.num-pos {
    color: var(--nec-green);
    font-weight: 600;
}

.num-neg {
    color: var(--nec-red);
    font-weight: 600;
}

.num-winst {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
}

.badge-winst-high {
    background-color: #ecfdf5;
    color: var(--nec-green);
}

.badge-winst-mid {
    background-color: #f1f5f9;
    color: var(--nec-text-main);
}

.badge-winst-low {
    background-color: #fef2f2;
    color: var(--nec-red);
}

/* Knoppen */
.btn-nec-red {
    background-color: var(--nec-red);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 0.815rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.btn-nec-red:hover,
.btn-nec-red:focus {
    background-color: #980a26;
    color: #ffffff;
}

.btn-nec-neutral {
    background-color: #ffffff;
    border: 1px solid var(--nec-border-dark);
    color: var(--nec-text-main);
    font-weight: 500;
    font-size: 0.815rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
}

.btn-nec-neutral:hover {
    background-color: #f8fafc;
    color: var(--nec-text-main);
}

.btn-nec-neutral.disabled,
.btn-nec-neutral.disabled:hover,
.btn-nec-neutral[aria-disabled="true"],
.btn-nec-neutral[aria-disabled="true"]:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    border-style: dashed;
    color: #94a3b8;
    opacity: 1;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: auto;
}

/* Footer */
.nec-footer {
    background-color: var(--nec-black);
    color: #94a3b8;
    padding: 3rem 0 2rem;
    margin-top: 3.5rem;
    border-top: 3px solid var(--nec-red);
    font-size: 0.815rem;
}

.nec-footer h6 {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.nec-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.nec-footer a:hover {
    color: #ffffff;
}

/* Sheet-3: uitslagen en resultaatbadges */
.badge-uitslag {
    display: inline-block;
    min-width: 52px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: #f8fafc;
    border: 1px solid var(--nec-border);
    color: var(--nec-text-main);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s;
}

.badge-uitslag:hover {
    background-color: var(--nec-black);
    color: #ffffff;
    border-color: var(--nec-black);
}

.badge-wgv {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-w {
    background-color: #ecfdf5;
    color: var(--nec-green);
    border: 1px solid #a7f3d0;
}

.badge-g {
    background-color: #f1f5f9;
    color: var(--nec-text-muted);
    border: 1px solid var(--nec-border);
}

.badge-v {
    background-color: #fef2f2;
    color: var(--nec-red);
    border: 1px solid #fecaca;
}

/* NEC-markering in de eindstand */
.tr-nec-highlight {
    background-color: #fef2f2 !important;
    font-weight: 600;
}

.tr-nec-highlight td {
    color: var(--nec-red) !important;
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
}

/* Wedstrijdpagina */
.match-hero-card {
    background-color: #ffffff;
    border: 1px solid var(--nec-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.score-big {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--nec-text-main);
}

.team-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--nec-text-main);
}

.club-emblem-box {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #f8fafc;
    border: 1px solid var(--nec-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--nec-text-main);
}

.pos-badge {
    display: inline-block;
    min-width: 28px;
    padding: 2px 6px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: #f1f5f9;
    color: var(--nec-text-muted);
    border: 1px solid var(--nec-border);
}

.badge-card-yellowred {
    display: inline-block;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(135deg, #ffc107 50%, #dc3545 50%);
}

.badge-card-yellow {
    display: inline-block;
    width: 10px;
    height: 14px;
    background-color: #eab308;
    border-radius: 2px;
    border: 1px solid #ca8a04;
    vertical-align: middle;
}

.badge-card-red {
    display: inline-block;
    width: 10px;
    height: 14px;
    background-color: var(--nec-red);
    border-radius: 2px;
    border: 1px solid #980a26;
    vertical-align: middle;
}

.badge-sub-in {
    font-size: 0.7rem;
    background-color: #ecfdf5;
    color: var(--nec-green);
    border: 1px solid #a7f3d0;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge-sub-out {
    font-size: 0.7rem;
    background-color: #fef2f2;
    color: var(--nec-red);
    border: 1px solid #fecaca;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Kaarten */
.card-icon-geelrood {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #eab308 50%, #dc2626 50%);
    border-radius: 2px;
    vertical-align: -0.125em;
}

/* Badge pos */
.badge-pos {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
}

.badge-pos-k {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-pos-v {
    background-color: #e2e8f0;
    color: #334155;
}

.badge-pos-m {
    background-color: #ecfdf5;
    color: #065f46;
}

.badge-pos-a {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-pos-overig {
    background-color: #f1f5f9;
    color: #475569;
}

/* Topscorers */

.topscorer-seizoen-grens td {
       border-top: 2px solid rgba(0, 0, 0, 0.12) !important;
   }

   /* Homepage */

   /* =========================================================
      HOMEPAGE - COMPLETE STIJLEN
      ========================================================= */

   /* =========================================================
      HERO - Volledige paginabreedte, direct onder de topbar
      ========================================================= */

    .home-hero {
       position: relative;
       display: block;
       width: 100%;
       max-width: none;
       margin: 0;
       padding: 3rem 0 2.5rem;
       background-color: #ffffff;
       border-bottom: 1px solid var(--nec-border);
       z-index: 5;          /* nieuw: hero ligt boven de blokken eronder */
       overflow: visible;   /* was: hidden */
   }

   .home-hero-bg {
       position: absolute;
       inset: 0;
       background-image: url('/assets/images/hero-bg.png?d=2611');
       background-position: center 38%;
       background-size: cover;
       background-repeat: no-repeat;
       opacity: 0.15;
       z-index: 1;
       pointer-events: none;
   }

   .home-hero-inner {
       position: relative;
       z-index: 2;
       max-width: 1360px;
       margin: 0 auto;
       padding: 0 1.25rem;
   }

   .home-hero-content {
       max-width: 860px;
       margin: 0 auto;
   }

   .home-hero-badge {
       display: inline-flex;
       align-items: center;
       gap: 8px;
       padding: 5px 14px;
       border: 1px solid var(--nec-border);
       border-radius: 999px;
       background: #ffffff;
       color: var(--nec-text-muted);
       font-size: 0.775rem;
       font-weight: 600;
       letter-spacing: 0.4px;
       text-transform: uppercase;
   }

   .home-hero-dot {
       width: 7px;
       height: 7px;
       border-radius: 50%;
       background-color: var(--nec-green);
   }

   .home-hero-title {
       margin: 0.75rem 0 0.5rem;
       font-family: 'Barlow Condensed', sans-serif;
       font-size: 2.25rem;
       line-height: 1.1;
       font-weight: 800;
       color: var(--nec-text-main);
   }

   .home-hero-title-accent {
       color: var(--nec-red);
   }

   .home-hero-intro {
       max-width: 680px;
       margin: 0 auto 1.5rem;
       color: var(--nec-text-muted);
       font-size: 0.95rem;
   }

   .home-search-form {
       margin-bottom: 0.75rem;
   }

   .home-search-box {
       display: flex;
       align-items: center;
       max-width: 760px;
       margin: 0 auto;
       padding: 6px;
       background: #ffffff;
       border: 2px solid var(--nec-border-dark);
       border-radius: 8px;
       box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
       transition: border-color 0.15s ease-in-out;
   }

   .home-search-box:focus-within {
       border-color: var(--nec-red);
       box-shadow: 0 4px 16px rgba(186, 12, 47, 0.12);
   }

   .home-search-icon {
       padding: 0 10px;
       color: var(--nec-text-muted);
       font-size: 1.05rem;
   }

   .home-search-input {
       width: 100%;
       border: none;
       outline: none;
       box-shadow: none;
       padding: 0.6rem 0.5rem;
       font-size: 0.975rem;
       color: var(--nec-text-main);
       background: transparent;
   }

   .home-search-input::placeholder {
       color: #94a3b8;
   }

   .home-search-button {
       padding: 0.6rem 1.35rem;
       border: none;
       border-radius: 6px;
       background-color: var(--nec-red);
       color: #ffffff;
       font-weight: 600;
       white-space: nowrap;
   }

   .home-search-button:hover,
   .home-search-button:focus {
       background-color: #980a26;
       color: #ffffff;
   }

   .home-search-suggestions {
       display: flex;
       flex-wrap: wrap;
       align-items: center;
       justify-content: center;
       gap: 8px;
       margin-bottom: 1.25rem;
       color: var(--nec-text-muted);
       font-size: 0.8rem;
   }

   .home-search-suggestion {
       padding: 3px 10px;
       border: 1px solid var(--nec-border);
       border-radius: 999px;
       background: #ffffff;
       color: var(--nec-text-main);
       text-decoration: none;
       font-size: 0.775rem;
   }

   .home-search-suggestion:hover,
   .home-search-suggestion:focus {
       background: var(--nec-red);
       border-color: var(--nec-red);
       color: #ffffff;
   }

   .home-hero-stats {
       display: flex;
       flex-wrap: wrap;
       align-items: center;
       justify-content: center;
       gap: 10px;
   }

   .home-hero-stat {
       display: inline-flex;
       align-items: center;
       gap: 5px;
       padding: 5px 12px;
       border: 1px solid var(--nec-border);
       border-radius: 6px;
       background: #ffffff;
       color: var(--nec-text-muted);
       font-size: 0.785rem;
   }

   .home-hero-stat strong {
       color: var(--nec-text-main);
       font-weight: 700;
   }

   .home-hero-stat-accent {
       color: var(--nec-red);
   }

   /* =========================================================
      HOOFDINHOUD
      ========================================================= */

   .home-main {
       padding-top: 1.75rem;
       padding-bottom: 1rem;
   }

   .home-section {
       margin-bottom: 2.25rem;
   }

   .home-section-head {
       display: flex;
       align-items: flex-end;
       justify-content: space-between;
       gap: 1rem;
       margin-bottom: 0.9rem;
   }

   .home-section-title {
        margin: 0;
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        color: var(--nec-text-main);
    }

   .home-section-subtitle {
       margin: 2px 0 0;
       font-size: 0.8rem;
       color: var(--nec-text-muted);
   }

   .home-action-link {
       display: inline-flex;
       align-items: center;
       gap: 5px;
       color: var(--nec-red);
       font-size: 0.825rem;
       font-weight: 600;
       text-decoration: none;
       white-space: nowrap;
   }

   /* =========================================================
      HOOFDPIJLERS
      ========================================================= */

   .home-pillar {
       display: flex;
       flex-direction: column;
       justify-content: space-between;
       height: 100%;
       padding: 1.1rem;
       border: 1px solid var(--nec-border);
       border-radius: 8px;
       background: #ffffff;
       color: inherit;
       text-decoration: none;
       box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
       transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
   }

   .home-pillar-icon {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       width: 36px;
       height: 36px;
       margin-bottom: 0.75rem;
       border-radius: 6px;
       background: #f1f5f9;
       color: var(--nec-red);
       font-size: 1.1rem;
   }

   .home-pillar-title {
       margin-bottom: 0.35rem;
       font-size: 0.95rem;
       font-weight: 700;
       color: var(--nec-text-main);
   }

   .home-pillar-text {
       margin-bottom: 0;
       color: var(--nec-text-muted);
       font-size: 0.825rem;
   }

   .home-pillar-footer {
       display: flex;
       align-items: center;
       justify-content: space-between;
       padding-top: 0.8rem;
       margin-top: 1rem;
       border-top: 1px solid var(--nec-border);
       color: var(--nec-red);
       font-size: 0.8rem;
       font-weight: 700;
   }

   /* =========================================================
      KAARTEN EN SUBKOPPEN
      ========================================================= */

   .home-card-header {
       display: flex;
       align-items: center;
       justify-content: space-between;
       gap: 1rem;
       padding: 0.9rem 1.15rem;
       border-bottom: 1px solid var(--nec-border);
       background: #ffffff;
   }

   .home-card-title {
       display: flex;
       align-items: center;
       gap: 8px;
       font-size: 0.95rem;
       font-weight: 700;
       color: var(--nec-text-main);
   }

   .home-card-body {
       padding: 1.15rem;
   }

   .home-subhead {
       display: flex;
       align-items: center;
       justify-content: space-between;
       gap: 0.75rem;
       margin-bottom: 0.75rem;
       font-size: 0.85rem;
       font-weight: 700;
       text-transform: uppercase;
       letter-spacing: 0.35px;
       color: var(--nec-text-muted);
   }

   .home-count-badge {
       padding: 2px 8px;
       border: 1px solid var(--nec-border);
       border-radius: 999px;
       background: #f8fafc;
       color: var(--nec-text-muted);
       font-size: 0.72rem;
       font-weight: 700;
   }

   .home-empty {
       padding: 0.75rem;
       border-radius: 6px;
       background: #f8fafc;
       color: var(--nec-text-muted);
       font-size: 0.825rem;
       text-align: center;
   }

   /* =========================================================
      WEDSTRIJDEN VANDAAG
      ========================================================= */

   .home-table-wrap {
       border: 1px solid var(--nec-border);
       border-radius: 8px;
       background: #ffffff;
       overflow: hidden;
   }

   .home-table {
       width: 100%;
       margin-bottom: 0;
       font-size: 0.85rem;
   }

   .home-table thead th {
       padding: 0.65rem 0.85rem;
       border-bottom: 1px solid var(--nec-border);
       background: #f8fafc;
       color: var(--nec-text-muted);
       font-size: 0.72rem;
       font-weight: 700;
       text-transform: uppercase;
       letter-spacing: 0.35px;
       white-space: nowrap;
   }

   .home-table tbody td {
       padding: 0.7rem 0.85rem;
       border-bottom: 1px solid #f1f5f9;
       vertical-align: middle;
   }

   .home-table tbody tr:last-child td {
       border-bottom: none;
   }

   .home-table tbody tr:hover {
       background: #f8fafc;
   }

   .home-col-year {
       width: 64px;
   }

   .home-col-small {
       width: 78px;
   }

   .home-col-score {
       width: 110px;
   }

   .home-year {
       color: var(--nec-text-main);
       font-weight: 700;
       font-variant-numeric: tabular-nums;
   }

   .home-match-link {
       color: var(--nec-text-main);
       font-weight: 600;
       text-decoration: none;
   }

   .home-match-separator {
       color: var(--nec-text-muted);
       font-weight: 400;
   }

   .home-match-score {
       display: inline-block;
       min-width: 58px;
       padding: 3px 7px;
       border-radius: 5px;
       background: #f1f5f9;
       color: var(--nec-text-main);
       font-weight: 700;
       font-size: 0.8rem;
       text-align: center;
   }

   .home-match-rust {
       color: var(--nec-text-muted);
       font-weight: 500;
       font-size: 0.75rem;
       white-space: nowrap;
   }

   .home-match-score-win {
       background: #dcfce7;
       color: #166534;
   }

   .home-match-score-loss {
       background: #fee2e2;
       color: #991b1b;
   }

   .home-match-text {
        color: var(--nec-text-main);
        font-weight: 600;
    }

    .home-birthday-text {
        color: var(--nec-text-main);
        font-weight: 600;
    }

   .home-table-footer {
       display: flex;
       align-items: center;
       justify-content: space-between;
       flex-wrap: wrap;
       gap: 0.5rem;
       margin-top: 0.75rem;
       color: var(--nec-text-muted);
       font-size: 0.8rem;
   }

   /* =========================================================
      JARIGEN ALS COMPACTE TABEL
      ========================================================= */

   .home-birthday-table tbody td {
       padding: 0.55rem 0.85rem;
   }

   .home-birthday-link {
       color: var(--nec-text-main);
       font-weight: 600;
       text-decoration: none;
   }

   .home-table-number {
       color: var(--nec-text-main);
       font-variant-numeric: tabular-nums;
   }

   /* =========================================================
      WIST JE DAT
      ========================================================= */

   .home-fact-box {
       margin-top: 1rem;
       padding: 0.85rem 1rem;
       border: 1px solid var(--nec-border);
       border-left: 3px solid var(--nec-red);
       border-radius: 8px;
       background: #f8fafc;
   }

   .home-fact-title {
       display: flex;
       align-items: center;
       gap: 7px;
       margin-bottom: 0.35rem;
       color: var(--nec-red);
       font-size: 0.8rem;
       font-weight: 700;
   }

   .home-fact-text {
       margin-bottom: 0.5rem;
       color: var(--nec-text-muted);
       font-size: 0.825rem;
   }

   /* =========================================================
      RECORDS EN TOPSCORERS
      ========================================================= */

   .home-record-list {
       display: flex;
       flex-direction: column;
   }

   .home-record-row {
       display: flex;
       align-items: flex-start;
       justify-content: space-between;
       gap: 1rem;
       padding: 0.65rem 0;
       border-bottom: 1px solid #f1f5f9;
       color: var(--nec-text-main);
       text-decoration: none;
   }

   .home-record-row:last-of-type {
       border-bottom: none;
   }

   .home-record-name {
       display: block;
       color: var(--nec-text-main);
       font-weight: 700;
       font-size: 0.875rem;
   }

   .home-record-meta {
       display: block;
       margin-top: 2px;
       color: var(--nec-text-muted);
       font-size: 0.775rem;
       font-weight: 400;
   }

   .home-record-value {
       flex-shrink: 0;
       padding: 3px 9px;
       border-radius: 999px;
       background: #f1f5f9;
       color: var(--nec-text-main);
       font-size: 0.775rem;
       font-weight: 700;
       white-space: nowrap;
   }

   .home-record-value-danger {
       background: #fee2e2;
       color: #980a26;
   }

   .home-record-value-success {
       background: #dcfce7;
       color: #166534;
   }

   .home-record-footer {
       padding-top: 0.85rem;
       margin-top: 0.5rem;
       border-top: 1px solid var(--nec-border);
   }

   /* =========================================================
      HISTORISCHE MOMENTEN
      ========================================================= */

   .home-moment {
       display: flex;
       flex-direction: column;
       height: 100%;
       border: 1px solid var(--nec-border);
       border-radius: 8px;
       background: #ffffff;
       overflow: hidden;
       box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
       text-decoration: none;
       color: inherit;
       transition: transform 0.15s ease, box-shadow 0.15s ease;
   }

   .home-moment-image {
       display: block;
       width: 100%;
       height: 180px;
       object-fit: cover;
       background: var(--nec-border);
   }

   .home-moment-body {
       display: flex;
       flex-direction: column;
       flex-grow: 1;
       padding: 1rem;
   }

   .home-moment-title {
       margin-bottom: 0.35rem;
       font-size: 0.925rem;
       font-weight: 700;
       color: var(--nec-text-main);
   }

   .home-moment-text {
       margin-bottom: 0.75rem;
       color: var(--nec-text-muted);
       font-size: 0.825rem;
   }

   .home-moment-footer {
       display: flex;
       align-items: center;
       justify-content: space-between;
       margin-top: auto;
       padding-top: 0.7rem;
       border-top: 1px solid #f1f5f9;
       color: var(--nec-red);
       font-size: 0.8rem;
       font-weight: 700;
   }

   /* =========================================================
      SNELLE LINKS
      ========================================================= */

   .home-quick-links {
       display: grid;
       grid-template-columns: repeat(4, 1fr);
       gap: 1.5rem;
   }

   .home-quick-link-group-title {
       display: flex;
       align-items: center;
       gap: 7px;
       margin-bottom: 0.65rem;
       font-size: 0.8rem;
       font-weight: 700;
       text-transform: uppercase;
       letter-spacing: 0.35px;
       color: var(--nec-text-muted);
   }

   .home-quick-link {
       display: flex;
       align-items: center;
       justify-content: space-between;
       gap: 0.75rem;
       padding: 0.5rem 0.65rem;
       border-radius: 6px;
       color: var(--nec-text-main);
       font-size: 0.85rem;
       text-decoration: none;
       transition: background-color 0.12s ease, color 0.12s ease;
   }

   .home-quick-link i {
       color: #94a3b8;
       font-size: 0.75rem;
       transition: transform 0.12s ease, color 0.12s ease;
   }

   .home-quick-link:hover i,
   .home-quick-link:focus i {
       color: var(--nec-red);
       transform: translateX(3px);
   }

   /* =========================================================
      DONATIEBANNER
      ========================================================= */

   .home-donation {
       margin-bottom: 2rem;
       padding: 1.25rem 1.5rem;
       border: 1px solid var(--nec-border);
       border-left: 4px solid var(--nec-red);
       border-radius: 8px;
       background: #ffffff;
       box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
   }

   .home-donation-icon {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       width: 48px;
       height: 48px;
       border-radius: 50%;
       background-color: #fee2e2;
       color: var(--nec-red);
       font-size: 1.35rem;
       flex-shrink: 0;
   }

   .home-donation-title {
       margin-bottom: 0.25rem;
       font-size: 0.95rem;
       font-weight: 700;
       color: var(--nec-text-main);
   }

   .home-donation-text {
       margin-bottom: 0;
       max-width: 780px;
       color: var(--nec-text-muted);
       font-size: 0.825rem;
   }

   /* =========================================================
      RESPONSIVE
      ========================================================= */

   @media (max-width: 991.98px) {
       .home-hero-title {
           font-size: 2rem;
       }

       .home-quick-links {
           grid-template-columns: repeat(2, 1fr);
       }
   }

   @media (max-width: 575.98px) {
       .home-hero {
           padding: 2.5rem 0 2rem;
       }

       .home-hero-inner {
           padding: 0 1rem;
       }

       .home-hero-title {
           font-size: 1.75rem;
       }

       .home-search-box {
           flex-wrap: nowrap;
       }

       .home-search-button {
           padding: 0.55rem 0.9rem;
       }

       .home-quick-links {
           grid-template-columns: 1fr;
       }
   }

.home-day-columns {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 0.75rem;
}

.home-day-column {
   display: flex;
   flex-direction: column;
   gap: 0.35rem;
}

.home-day-match {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 0.5rem;
   padding: 0.45rem 0.55rem;
   border: 1px solid var(--nec-border);
   border-radius: 6px;
   background: #ffffff;
   color: inherit;
   text-decoration: none;
   font-size: 0.8rem;
}

.home-day-match-year {
   flex-shrink: 0;
   min-width: 44px;
   color: var(--nec-text-main);
   font-weight: 700;
}

.home-day-match-teams {
   flex-grow: 1;
   color: var(--nec-text-main);
   font-weight: 600;
}

@media (max-width: 991.98px) {
   .home-day-columns {
       grid-template-columns: 1fr;
   }
}

/* Zoekbalk */
/* Header search */
.header-search {
    width: 220px;
}

.header-search-input {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

/* Hero search */
.hero-search {
    max-width: 640px;
    margin: 1.5rem auto 0.9rem;
}

.hero-search-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-search-icon {
    color: #6c757d;
    font-size: 1.1rem;
}

.hero-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
    padding: 0.65rem 0;
    color: #212529;
}

.hero-search-input::placeholder {
    color: #6c757d;
}

.hero-search-button {
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    white-space: nowrap;
}

.hero-search-button:hover {
    background: #212529;
}

/* Live suggestions */
.hero-search-results {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffffff;
    border: 1px solid var(--nec-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
    text-align: left;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    color: var(--nec-text-main);
    font-size: 0.9rem;
    text-decoration: none;
}

.search-result + .search-result {
    border-top: 1px solid #f1f5f9;
}

.search-result:hover,
.search-result:focus {
    background: #f8fafc;
    color: var(--nec-text-main);
}

.search-icon {
    flex: 0 0 auto;
    width: 1.1rem;
    text-align: center;
    color: #94a3b8;
}

.search-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.search-meta {
    flex: 0 0 auto;
    color: var(--nec-text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.search-empty {
    padding: 0.85rem 1rem;
    color: var(--nec-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .hero-search-inner {
        border-radius: 0.75rem;
    }

    .hero-search-button {
        display: none;
    }
}

/* Photo cards on homepage */
/* Historisch beeldmateriaal */
.home-photo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--nec-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.home-photo-img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--nec-border);
}

.home-photo-caption {
    flex-grow: 1;
    padding: 0.75rem 0.95rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
    color: var(--nec-text-muted);
    font-size: 0.8rem;
}

/* Top search */
.nec-topsearch {
    display: flex;
    align-items: center;
    width: 220px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nec-topsearch:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--nec-red);
}

.nec-topsearch-input {
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.65rem;
    background: transparent;
    border: 0;
    outline: 0;
    color: #ffffff;
    font-size: 0.8rem;
}

.nec-topsearch-input::placeholder { color: #94a3b8; }
.nec-topsearch-input::-webkit-search-cancel-button { display: none; }

.nec-topsearch-btn {
    padding: 0.4rem 0.65rem;
    background: transparent;
    border: 0;
    color: #94a3b8;
}

.nec-topsearch-btn:hover { color: #ffffff; }

/* Tricolor */
.nec-tricolor-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--nec-red) 33.33%, var(--nec-green) 33.33% 66.66%, var(--nec-black) 66.66%);
}

/* Nav active */
.nec-nav-link.active {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* Subnav */
.nec-subnav-divider {
    flex-shrink: 0;
    width: 1px;
    height: 18px;
    margin: 0 0.35rem;
    background: var(--nec-border-dark);
}

/* Text pages */
/* Tekstpagina's (Historie, Onze club) */
.tekst-kaart {
    max-width: 960px;
}

.tekst-pagina {
    padding: 1.75rem 2rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--nec-text-main);
}

.tekst-pagina::after {
    content: '';
    display: block;
    clear: both;
}

.tekst-pagina h2 {
    margin: 1.75rem 0 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.tekst-pagina h2:first-child { margin-top: 0; }
.tekst-pagina p { margin-bottom: 1rem; }

.tekst-tabel { clear: both; margin-bottom: 1rem; }

.tekst-foto { margin: 0.25rem 0 1rem; }

.tekst-foto img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--nec-border);
    border-radius: 6px;
}

.tekst-foto figcaption {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--nec-text-muted);
}

@media (min-width: 768px) {
    .tekst-foto-rechts { float: right; width: 320px; margin-left: 1.5rem; }
    .tekst-foto-links  { float: left;  width: 320px; margin-right: 1.5rem; }
}

/* Club logos */
.club-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .club-logo { width: 64px; height: 64px; }
}

/* Mobiel menu */
.offcanvas-nec .nav-link-mobile.active {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 500;
}

/* Binnenin */
.binnenin-submenu {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: .75rem;
}

.binnenin-submenu a {
    display: inline-block;
    padding: .25rem 0;
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
}

.binnenin-submenu a:hover {
    color: #555;
}

.binnenin-submenu a.actief {
    font-weight: 600;
}

.binnenin-inhoud {
    max-width: none;
    width: 100%;
}

.binnenin-inhoud .nec-card,
.binnenin-inhoud .tekst-kaart {
    width: 100%;
    max-width: none;
}

.speler-suggesties {
    position: fixed;
    z-index: 2000;
    min-width: 270px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.15);
}
