/* ============================
   FEATURES
   ============================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0 0 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: rgba(47,157,106,0.32);
    box-shadow: var(--shadow-pop);
    transform: translateY(-4px);
}

.feature-photo {
    aspect-ratio: 4 / 3;
    margin-bottom: 1.5rem;
    background: var(--color-accent-lt);
}

.feature-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.feature-card:hover .feature-photo img {
    transform: scale(1.04);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0 2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.85;
    padding: 0 2rem;
    flex-grow: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem 2rem 0;
    color: #237A52;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.feature-link:hover {
    color: var(--flat-blue, #226fa8);
}

/* ============================
   HOURS & PRICING
   ============================ */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hours-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hours-card:hover {
    border-color: rgba(247,183,51,0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.hours-card.highlight {
    background: #e5f8eb;
    border-color: rgba(47,157,106,0.24);
}

.hours-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.hours-card-icon {
    font-size: 2rem;
    line-height: 1;
    flex: 0 0 auto;
}

.hours-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 400;
}

.hours-table tr.closed td {
    color: var(--color-muted);
}

.hours-schedule-note {
    margin-top: 1rem;
    color: var(--color-muted);
    font-size: .78rem;
}

.hours-schedule-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .35rem;
    color: #1d6849;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.hours-schedule-link span {
    transition: transform .2s;
}

.hours-schedule-link:hover span {
    transform: translateX(4px);
}

.hours-schedule-link:focus-visible {
    outline: 3px solid #1f5f43;
    outline-offset: 3px;
    border-radius: 3px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(47,157,106,0.14);
    font-size: 0.9rem;
}

.price-value {
    font-weight: 700;
    color: #237A52;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.price-table th,
.price-table td {
    padding: 0.5rem 0.35rem;
    border-bottom: 1px solid rgba(47,157,106,0.14);
    text-align: right;
    white-space: nowrap;
}

.price-table th:first-child,
.price-table td:first-child {
    padding-left: 0;
    text-align: left;
}

.price-table th:last-child,
.price-table td:last-child {
    padding-right: 0;
}

.price-table th {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.price-table td:not(:first-child) {
    color: #237A52;
    font-weight: 700;
}

.price-note {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.8;
}

/* ============================
   EVENTS
   ============================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    gap: 1.5rem;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    border-color: var(--flat-green, #247c58);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.event-month {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--flat-green-dark, #1d6849);
    font-weight: 700;
}

.event-day {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--flat-green, #247c58);
    text-shadow: none;
}

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

.event-thumb {
    aspect-ratio: 16 / 9;
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-accent-lt);
}

.event-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    background: var(--flat-green-pale, #e4f4ec);
    color: var(--color-accent);
    padding: 0.22rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.event-tags .event-tag {
    margin-bottom: 0;
}

.event-tag-status {
    background: var(--color-accent-lt);
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.event-desc {
    font-size: 0.83rem;
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.event-time {
    font-size: 0.78rem;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================
   SPONSORS
   ============================ */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
}

.sponsor-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    flex: 0 0 auto;
    transition: none;
}

.sponsor-card:hover {
    box-shadow: none;
    transform: none;
}

.sponsor-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.sponsor-link:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
    border-radius: 8px;
}

.aomel-sponsor-clickable {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.aomel-sponsor-clickable:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
    border-radius: 8px;
}

.aomel-sponsor-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
}

.aomel-sponsor-logo-link:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
    border-radius: 50%;
}

.aomel-sponsor-visible-logo {
    display: block !important;
    width: 132px !important;
    height: 132px !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sponsor-logo-placeholder {
    color: var(--color-muted);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.sponsor-name {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* ============================
   GAME RANKING
   ============================ */
.game-ranking-lead {
    margin: 0 0 2rem;
    color: var(--color-muted);
}

.game-ranking-tab-list {
    display: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: -1.75rem 0 2rem;
    padding: 0.35rem;
    width: fit-content;
    background: var(--color-accent-lt);
    border-radius: var(--radius);
}

.game-ranking-tabs.is-enhanced .game-ranking-tab-list {
    display: flex;
}

.game-ranking-tab {
    padding: 0.65rem 1.25rem;
    color: var(--color-muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
}

.game-ranking-tab.is-active {
    color: #fff;
    background: var(--color-accent);
}

.game-ranking-tab:focus-visible {
    outline: 3px solid #1F5F43;
    outline-offset: 2px;
}

.game-ranking-panel + .game-ranking-panel {
    margin-top: 3rem;
}

.game-ranking-tabs.is-enhanced .game-ranking-panel {
    margin-top: 0;
}

.game-ranking-tabs.is-enhanced .game-ranking-panel[hidden] {
    display: none;
}

.game-ranking-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.game-ranking-card {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.game-ranking-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.game-ranking-link:focus-visible {
    outline: 3px solid #1F5F43;
    outline-offset: -3px;
}

.game-ranking-number {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    color: #fff;
    background: var(--color-accent);
    border: 2px solid #fff;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.game-ranking-position-1 .game-ranking-number { background: #B77A00; }
.game-ranking-position-2 .game-ranking-number { background: #66717A; }
.game-ranking-position-3 .game-ranking-number { background: #A6562A; }

.game-ranking-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-accent-lt);
}

.game-ranking-image img,
.game-ranking-image .board-game-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-ranking-card h3 {
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ============================
   MATCH REQUESTS
   ============================ */
.match-request-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.match-request-card {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.match-request-date {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: #237A52;
    font-weight: 700;
}

.match-request-date time {
    line-height: 1.5;
}

.match-request-details {
    display: grid;
    gap: 0.85rem;
}

.match-request-details div {
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.match-request-details dt {
    margin-bottom: 0.15rem;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.match-request-details dd {
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    font-weight: 700;
}

.match-request-reservation {
    width: 100%;
    margin-top: 1.25rem;
    text-align: center;
}

/* ============================
   NEWS
   ============================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.news-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.news-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    border-color: var(--flat-blue, #226fa8);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.news-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.news-thumb {
    aspect-ratio: 16 / 9;
    background: var(--flat-blue-pale, #e8f3fa);
}

.news-thumb img,
.news-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #f2f2f2;
    color: var(--color-muted);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.news-card-body {
    padding: 1rem;
}

.news-card-body time,
.news-detail-date {
    color: var(--flat-blue-dark, #18537f);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.news-card-body h2,
.news-card-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.news-card-body p {
    color: var(--color-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

/* ============================
   ACCESS
   ============================ */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.access-list {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
}

.access-item dt {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: var(--flat-green-dark, #1d6849);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.access-item dd {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text);
}

.access-map iframe {
    border-radius: var(--radius-lg);
    display: block;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

/* ============================
   RECENT BOARD GAMES
   ============================ */
.recent-games-section {
    overflow: hidden;
}

.recent-games-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.recent-games-heading .section-title {
    margin-bottom: 0.65rem;
}

.recent-games-lead {
    color: var(--color-muted);
}

.recent-games-controls {
    position: absolute;
    top: calc(50% - 0.5rem);
    right: 0;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.recent-games-controls button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #8a8a8a;
    cursor: pointer;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: auto;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}

.recent-games-controls button:hover:not(:disabled),
.recent-games-controls button:focus-visible {
    color: #5f5f5f;
}

.recent-games-controls button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.recent-games-controls button:disabled {
    cursor: default;
    opacity: 0.2;
    pointer-events: none;
}

.recent-games-slider {
    position: relative;
}

.recent-games-slider.is-slideshow {
    padding-inline: 34px;
}

.recent-games-slider.is-mobile-slideshow .recent-games-controls {
    display: none;
}

.recent-games-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.recent-games-slider.is-slideshow .recent-games-track {
    display: flex;
    overflow-x: auto;
    padding: 3px 3px 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.recent-games-slider.is-slideshow .recent-games-track::-webkit-scrollbar {
    display: none;
}

.recent-game-card {
    min-width: 0;
    scroll-snap-align: start;
}

.recent-games-slider.is-slideshow .recent-game-card {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.recent-games-slider.is-slideshow .recent-game-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.is-slideshow .recent-game-card {
    flex: 0 0 calc((100% - 4.5rem) / 4);
}

.recent-game-image {
    position: relative;
}

@media (max-width: 960px) {
    .recent-games-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .is-slideshow .recent-game-card {
        flex-basis: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 600px) {
    .recent-games-heading {
        align-items: start;
    }

    .recent-games-controls button {
        width: 26px;
        height: 40px;
    }

    .recent-games-controls {
        right: 0;
        left: 0;
    }

    .recent-games-slider.is-slideshow,
    .recent-games-slider.is-mobile-slideshow {
        padding-inline: 32px;
    }

    .recent-games-slider.is-mobile-slideshow .recent-games-controls {
        display: flex;
    }

    .recent-games-track {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .is-slideshow .recent-game-card,
    .is-mobile-slideshow .recent-game-card {
        flex: 0 0 100%;
    }

    .recent-games-slider.is-mobile-slideshow .recent-games-track {
        display: flex;
        overflow-x: auto;
        padding: 3px 3px 1rem;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .recent-games-slider.is-mobile-slideshow .recent-games-track::-webkit-scrollbar {
        display: none;
    }

    .recent-games-slider.is-mobile-slideshow .recent-game-card,
    .recent-games-slider.is-mobile-slideshow .recent-game-card:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .recent-games-section .recent-game-card h3 {
        padding: 0.7rem;
        font-size: 0.8rem;
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .recent-games-slider.is-slideshow .recent-games-track,
    .recent-games-slider.is-mobile-slideshow .recent-games-track {
        scroll-behavior: auto;
    }
}
