/* Layer: patterns — cross-page patterns shared by multiple pages; loaded globally. */

/*  Statistics Page */

    /* Statistieken+ teasers (see statistieken.php): dummy charts closed off
       behind a lock; the whole card links to the member area. The anchor
       flexes so the dummy fills the grid row height next to larger charts. */
    .sp-locked {
        position: relative;
        display: block;
        flex: 1 1 auto;
        width: 100%;
        min-height: 200px;
        border-radius: 8px;
        border: 1px dashed var(--border);
        background: var(--gray-100);
        overflow: hidden;
        text-decoration: none;
    }

    .sp-locked-chart {
        position: absolute;
        inset: 0;
        color: var(--text-secondary);
        opacity: 0.45;
        filter: blur(1.5px);
    }

    .sp-locked-chart svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .sp-locked-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.5rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.6);
    }

    .sp-locked-icon {
        font-size: 2rem;
        line-height: 1;
    }

    .sp-locked-label {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        color: var(--text-heading);
    }

    .sp-locked-cta {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gold-dark);
    }

    .sp-locked:hover {
        border-color: var(--gold-dark);
    }

    .sp-locked:hover .sp-locked-cta {
        text-decoration: underline;
    }

    .sp-locked:focus-visible {
        outline: 2px solid var(--gold-dark);
        outline-offset: 2px;
    }
    
    
/* Ranglijsten Page */

    .info-icon {
      display: inline-block;
      position: relative;
      margin-left: 5px;
      cursor: pointer;
      font-weight: bold;
      color: var(--text-secondary);
      border: 1px solid var(--border-input);
      border-radius: 50%;
      width: 16px;
      height: 16px;
      font-size: 12px;
      text-align: center;
      line-height: 14px;
    }
    
    .tooltip {
      display: none;
      position: absolute;
      top: 20px;
      left: -180px;
      width: 200px;
      background-color: var(--bg-dark);
      color: var(--text-white);
      padding: 8px;
      font-size: 1em;
      font-weight:400;
      border-radius: var(--radius-md);
      z-index: 10;
      box-shadow: var(--shadow-medium)
    }
    
    .info-icon:hover .tooltip,
    .info-icon:focus .tooltip {
      display: block;
    }
    
    .highlight-inactive {
        background-color: var(--gray-200); /* Very soft pink background */
        border-left: 4px solid var(--gray-500); /* Pale red border for subtle alert */
    }

    .highlight-promotion {
        background-color: var(--gold-ultralight); /* Lighter gray for a cleaner look */
        border-left: 5px solid var(--gold-light); /* Darker gray stripe to differentiate */
    }
    
    
/* Stuff for home page */
    
    /* === Map Section === */
    .map-section {
      padding: 2rem 0;
      background: var(--green-ultralight);
      text-align: center;
    }
    
    .static-map {
      display: block;
      width: 100%;
      height: 250px;
      border: 0; /* remove iframe border if any */
      object-fit: cover;  /* Cover the container, crop if needed */
      object-position: center; /* Center the image */
    }
    
    .map-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-white);
      background: var(--map-overlay-tint);
      opacity: 0;
      transition: opacity 0.3s;
      font-weight: 600;
      cursor: pointer;
    }
    
    .map-link:hover .map-overlay {
      opacity: 1;
    }
    
    
    /* === Leaderboard === */
    .leaderboard-section {
      background: var(--green-ultralight);
      padding: 3rem 0 1rem 0;
    }
    
    
    /* === Responsive === */
    @media (max-width: 600px) {
        .static-map {
            height: 150px;
        }
    }

/* Home page heading overrides */
.home-heading {
    margin: 0 0 1em 0;
}

/* Featured performance */
.featured-section {
    padding: 1.5rem 0;
    text-align: center;
    border-top: solid 5px var(--gold-light);
    margin-top: 0.5rem;
}

.featured-section h2 {
    border-top: none;
    margin: 0 0 1.5rem;
    top: 0;
    font-size: 1.8rem;
    color: var(--text-heading);
    position: relative;
    display: inline-block;
}

.featured-section h2 span,
.home-events .event-heading h2 span {
    background: none;
    position: static;
    top: auto;
    padding: 0;
}

.featured-section h2::after {
    display: none;
}

/* Home event cards */
.home-events {
    padding: 2rem 0 1rem;
    border-top: solid 5px var(--gold-light);
}

.home-events .event-heading h2 {
    border-top: none;
    margin: 0 0 0.25rem;
    top: 0;
    font-size: 1.3rem;
}


.home-events .suggestions-grid {
    gap: 0.75rem;
    margin: 0.75rem auto 2rem;
}

.home-events .suggestions-card {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--gray-300);
    border-radius: var(--radius-sm);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.home-events .suggestions-card:hover {
    border-left-color: var(--gold);
}

.home-events .suggestions-card .event-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.3;
}

.home-events .suggestions-card .event-city {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.home-events .suggestions-card .event-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 736px) {
    .home-events .suggestions-card .event-label { font-size: 0.85rem; }
    .home-events .suggestions-card .event-city { font-size: 0.79rem; }
    .home-events .suggestions-card .event-date { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .home-events .suggestions-card .event-label { font-size: 0.8rem; }
    .home-events .suggestions-card .event-city { font-size: 0.74rem; }
    .home-events .suggestions-card .event-date { font-size: 0.68rem; }
}

.featured-card {
    display: block;
    max-width: 560px;
    margin: 1rem auto 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
    text-decoration: none;
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s;
}

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

.featured-card .featured-badge {
    display: inline-block;
    padding: 0.2rem 1rem;
    background: var(--gold);
    color: var(--text-white);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.featured-card .featured-orkest {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.featured-card .featured-city {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    margin-bottom: 1rem;
}

.featured-card .featured-divider {
    width: 40px;
    height: 3px;
    background: var(--gold);
    border: none;
    margin: 0 auto 0.75rem;
    border-radius: 2px;
}

.featured-card .featured-event {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.featured-card .featured-event strong {
    color: var(--text-heading);
    font-weight: 600;
}

.featured-card .featured-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.featured-card .featured-score {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    background: var(--green);
    color: var(--text-white);
    border-radius: 999px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.featured-card .featured-cta {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.5rem 1.5rem;
    background: var(--gold);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.featured-card:hover .featured-cta {
    background: var(--gold-dark);
}

.orchestra-profile-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 0.5rem 0 1.5rem;
}

@media (max-width: 736px) {
    .orchestra-profile-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Single-card profile headers (juryleden, componisten): keep the two-card
   column width, centered horizontally. */
.profile-header-single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.profile-header-single .profile-card {
    width: calc(50% - 0.75rem); /* one column of the two-card grid */
}

@media (max-width: 736px) {
    .profile-header-single .profile-card {
        width: 100%;
    }
}

/* Profile Card (left) */
.profile-card {
    background: var(--green-ultralight);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-soft);
    text-align: left;
    border-top: 3px solid var(--green-dark);
    position: relative;
}

.profile-card::before {
    content: 'Profiel';
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--green);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 0 0 4px 4px;
}

/* Event header: one gold card with the full name, date and stats */
.event-header-card {
    position: relative;
    margin: 0.5rem 0 1.5rem;
    padding: 2rem 1.5rem 1.5rem;
    background: var(--gold-ultralight);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.event-header-card::before {
    content: 'Event';
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--gold);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 0 0 4px 4px;
}

.event-header-card.event-header-card--performance::before {
    content: 'Optreden';
}

.event-header-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    color: var(--text-heading);
}

.event-header-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Let the event name stand out on larger screens (mobile keeps the compact
   size so long full names still fit). */
@media (min-width: 737px) {
    .event-header-card h1 {
        font-size: 2.2rem;
    }

    .event-header-date {
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .event-header-card h1 {
        font-size: 2.5rem;
    }

    .event-header-date {
        font-size: 1.2rem;
    }
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gold-light);
}

@media (max-width: 736px) {
    .event-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.profile-card h1,
.profile-card h2 {
    /* The body's inherited line-height is a fixed 28px (1.75em), which makes
       wrapped 1.9rem names overlap; use a ratio and give every card the same
       gap below the name as the orchestra card's name-to-city spacing. */
    margin: 0 0 0.5rem;
    font-size: 1.9rem;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
    color: var(--text-heading);
}

.profile-card .orchestra-city {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.profile-card .info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.profile-card .info-row .info-icon {
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.profile-card .profile-website {
    color: var(--green-dark);
    text-decoration: none;
    word-break: break-all;
}

.profile-card .profile-website:hover {
    text-decoration: underline;
}

/* Status badges */
.profile-card .status-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Status/merger pills below the name + city: one flex row with equal spacing
   above and below (the old inline-block badges had a 24px gap above and 0px
   below). */
.profile-card .status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1rem;
}

.profile-card .status-badges .status-badge {
    margin-top: 0;
}

.profile-card .status-badge.defunct {
    background: var(--red-ultralight);
    color: var(--red-dark);
}

.profile-card .status-badge.merged {
    background: var(--gold);
    color: var(--text-white);
    box-shadow: var(--shadow-soft);
}

/* Social icons */
.profile-card .social-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    justify-content: space-between;
}

/* The subscribe button sits in the socials row, right-aligned. */
.profile-card .social-row .profile-subscribe-btn {
    margin-top: 0;
    white-space: nowrap;
}



.social-icon {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.85;
}

.social-icon:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Completeness block: missing fields collected into one compact block */
.profile-card .profile-completeness {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-300);
}

.profile-card .completeness-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.profile-card .completeness-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.profile-card .completeness-chip {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.profile-card .completeness-chip:hover {
    background: var(--green);
    color: var(--text-white);
}

/* Stats Card (right) */
.stats-card {
    background: var(--gold-ultralight);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--gold);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card::before {
    content: 'Statistieken';
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--gold);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 0 0 4px 4px;
}

.stats-card h3 {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    text-align: left;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Division history inside the statistics card: no white box, pills tuned for
   the gold card (white pills, solid gold for the current division). */
.stats-card .division-history {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--gold-translucent);
}

.stats-card .division-pill {
    background: var(--bg-white);
}

.stats-card .division-pill.current {
    background: var(--gold);
}

.stats-card .division-pill.current .division-pill-div,
.stats-card .division-pill.current .division-pill-range,
.stats-card .division-pill.current .division-pill-arrow.up,
.stats-card .division-pill.current .division-pill-arrow.down {
    color: var(--text-white);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.15rem;
}

.profile-subscribe-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    text-decoration: none;
    background: var(--green-dark);
    border: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.profile-subscribe-btn:hover {
    background: var(--green);
    color: var(--text-white);
}

/* Performance detail cards */
.detail-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-top: 3px solid var(--green-dark);
}

.detail-card h3 {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.detail-card .card-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}

.detail-card .card-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.detail-card .card-action {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.detail-card .card-action:hover {
    text-decoration: underline;
}

.detail-card.blue { border-top-color: var(--blue); }
.detail-card.gold { border-top-color: var(--gold); }

/* Result highlight card */
.result-card {
    background: var(--green-ultralight);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-left: 4px solid var(--green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.result-card .score-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1;
}

/* Keep the archived raw score small under the big percentage. */
.result-card .score-big .raw-score {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0.2rem;
}

/* Comment line below the detail cards (kept out of the score card). */
.perf-comment {
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.75rem 0 0;
}

.result-card .division-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--green-light);
    color: var(--text-white);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Performance piece cards */
.perf-pieces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.perf-piece-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--gray-400);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow 0.15s;
    width: 100%;
    max-width: 420px;
    justify-self: center;
}

.perf-piece-card:hover {
    box-shadow: var(--shadow-medium);
}

.perf-piece-card .piece-info {
    flex: 1;
    min-width: 0;
}

.perf-piece-card .piece-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
}

.perf-piece-card .piece-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.perf-piece-card .piece-points {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.perf-piece-card.intro {
    border-left-color: var(--blue-light);
}

.perf-piece-card.intro .piece-points {
    color: var(--blue);
}



/* Composer variant cards */
.composer-variant-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.composer-variant {
    flex: 1 1 100%;
    display: block;
    padding: 10px 14px;
    background: var(--bg-white);
    border-radius: 4px;
    border-left: 3px solid var(--gray-500);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    max-width: 420px;
}
@media (min-width: 736px) {
    .composer-variant {
        flex-basis: calc(50% - 4px);
    }
}
.composer-variant:hover {
    background: var(--gray-200);
    box-shadow: var(--shadow-medium);
}
.composer-variant .variant-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
a.composer-variant .variant-title > span:first-child {
    color: var(--green-dark);
    font-weight: 600;
}
.composer-variant .variant-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.composer-variant .variant-stats {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.composer-variant .variant-stats span {
    margin-right: 12px;
}

@media (max-width: 736px) {
    .composer-variant .variant-title { font-size: 0.85rem; }
    .composer-variant .variant-meta { font-size: 0.79rem; }
    .composer-variant .variant-stats { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .composer-variant .variant-title { font-size: 0.8rem; }
    .composer-variant .variant-meta { font-size: 0.74rem; }
    .composer-variant .variant-stats { font-size: 0.68rem; }
}

/* Small "other versions" pills inside the piece profile card, styled like the
   conductor profile orchestra tags */
.piece-variants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.piece-variant {
    display: inline-flex;
    flex-direction: column;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
    text-decoration: none;
    color: var(--text-main);
    transition: box-shadow 0.15s, transform 0.15s;
}
.piece-variant:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}
.piece-variant.type-ha .piece-variant-type {
    color: var(--blue-dark);
}
.piece-variant.type-fa .piece-variant-type {
    color: var(--green-dark);
}
.piece-variant.type-bra .piece-variant-type {
    color: var(--red-dark);
}
.piece-variant .piece-variant-meta {
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--text-secondary);
}


/* ============================================
   Uitslagen: nav between result tables + orkesten graph
   (moved from components.css — S10)
   ============================================ */
    /* Navigation to different results table */
    
.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 40px; /* default spacing */
    padding: 0 10px; /* distance from edges */
}

/* --- Responsive behavior --- */
/* When screen gets smaller, push buttons outward */
@media (max-width: 600px) {
    .nav-buttons {
        justify-content: space-between;
        gap: 10px; /* no fixed gap, they hug the sides */
        padding: 0 10px; /* distance from edges */
    }
    .nav-buttons button{
        font-size: .8rem;
        padding: 8px 3px;
    }
}

/* Buttons */
.nav-buttons button {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}
        

        
/* Orkesten graph */
.graph-container {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-input);
    box-shadow: var(--shadow-dark);
    margin-bottom: 1.5em;
}
.division-history {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-dark);
    margin: 0 0 1.5em;
    padding: 16px 20px;
    text-align: center;
}
.division-history-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}
.division-history-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}
.division-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.division-pill .division-pill-div {
    font-weight: 700;
    color: var(--text-heading);
}
.division-pill .division-pill-range {
    font-weight: 600;
    color: var(--text-secondary);
}
.division-pill.current {
    background: var(--gold-ultralight);
}
.division-pill .division-pill-arrow.up {
    color: var(--green-dark);
    font-weight: 700;
}
.division-pill .division-pill-arrow.down {
    color: var(--red-dark);
    font-weight: 700;
}

/* Mobile: give the graph card a little more plot width */
@media (max-width: 736px) {
    .graph-container {
        padding: 12px;
    }
}
#chartjs-tooltip {
    background: var(--bg-white);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 240px;
    position: absolute;
    pointer-events: none;
    box-shadow: var(--shadow-medium);
    z-index: 9999;
}

.tooltip-content strong {
    font-size: 14px;
}


/* Homepage: freshest scored event of the last week ("Nieuwste uitslagen").
   Deliberately more prominent than the regular suggestions cards. */
.latest-results-wrap {
    margin: 1.5rem auto 2rem;
}

.latest-results-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    max-width: 620px;
    margin: 0 auto;
    background: var(--gold-ultralight);
    border: 1px solid var(--gold-light);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem;
    text-align: left;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.latest-results-card + .latest-results-card {
    margin-top: 0.9rem;
}

.latest-results-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.latest-results-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-darker);
}

.latest-results-meta {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.latest-results-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Mobile: stack the card content and center it, matching the centered page
   (a wrapped left-aligned row left text and button hugging the left edge). */
@media (max-width: 736px) {
    .latest-results-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.9rem;
    }
}

/* Uitslagen landing: inline search + filter pills.
   The card reuses .filters for its shell; this block adds the inner layout. */
.event-filters {
    display: block;
    max-width: 760px;
    padding: 1.1rem 1.25rem 0.85rem;
}

.event-filters-search-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.event-search {
    position: relative;
    flex: 1 1 300px;
    max-width: 470px;
}

.event-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.event-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    border: 1px solid var(--border-input);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.event-search-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-ultralight);
}

.event-year {
    position: relative;
    flex: 0 0 auto;
    min-width: 150px;
}

.event-year-select {
    width: 100%;
    padding: 0.6rem 2.2rem 0.6rem 1rem;
    border: 1px solid var(--border-input);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.event-year-select:focus {
    outline: none;
    border-color: var(--green);
}

.event-year-caret {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.7rem;
    pointer-events: none;
}

.event-filters-toggle {
    display: none;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.event-filters-toggle:hover,
.event-filters-toggle.open {
    background: var(--blue-dark);
}

.event-filters-toggle .filter-toggle-caret {
    font-size: 0.7rem;
    transition: transform 0.15s;
}

.event-filters-toggle.open .filter-toggle-caret {
    transform: rotate(180deg);
}

.event-type-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.event-filters-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 1.9rem;
    margin-top: 0.55rem;
}

.event-filter-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-filter-reset {
    padding: 0.25rem 0.85rem;
    border: 1px solid var(--border-input);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.event-filter-reset:hover {
    border-color: var(--red-light);
    background: var(--red-ultralight);
    color: var(--red-dark);
}

@media (max-width: 736px) {
    .event-filters {
        padding: 0.9rem 0.9rem 0.7rem;
    }

    .event-search {
        flex-basis: 100%;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .event-year {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .event-filters-toggle {
        display: inline-flex;
    }

    .event-search-input {
        font-size: 16px;
    }

    /* Keep the bulky type pills collapsed until the toggle is opened. */
    .event-type-pills {
        display: none;
    }

    .event-type-pills.open {
        display: flex;
    }
}
