/* Stylesheet entry point. Section styles are split into styles/*.css. */
@import url("styles/foundation.css");
@import url("styles/club-sections.css?event-watermark=1");
@import url("styles/membership-footer.css");
@import url("styles/timelines.css");
@import url("styles/modals.css");
@import url("styles/competition-draws.css");
@import url("styles/fixtures-page.css?fixture-card=25");

dialog.news-modal,
dialog.events-detail-dialog,
dialog.gallery-lightbox {
    isolation: isolate;
}

dialog.news-modal::before,
dialog.events-detail-dialog::before,
dialog.gallery-lightbox::before {
    position: absolute;
    z-index: 0;
    inset: -18%;
    background: url("logo.jpeg") center / cover no-repeat;
    content: "";
    opacity: 0.07;
    pointer-events: none;
    transform: rotate(-12deg);
}

dialog.news-modal > .modal-content {
    z-index: 1;
    background: rgba(255, 255, 255, 0.64);
}

dialog.events-detail-dialog > .events-detail-content,
dialog.gallery-lightbox > .gallery-lightbox-inner {
    position: relative;
    z-index: 1;
}

dialog:has(.fixture-popup-card) .fixture-card.fixture-popup-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto minmax(100px, 1fr);
    min-height: 190px;
    padding: 10px !important;
    overflow: hidden;
    background-color: transparent;
}

dialog:has(.fixture-popup-card) .fixture-date {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    width: 48px;
    height: 48px;
    min-width: 0;
    flex: none;
    padding: 2px;
    border: 1px solid #ffcc00;
    border-radius: 6px;
    background: #173b32;
    color: #ffcc00;
    z-index: 3;
}

dialog:has(.fixture-popup-card) .fixture-date-month {
    color: #ffcc00;
    font-size: 0.55rem;
    line-height: 1;
}

dialog:has(.fixture-popup-card) .fixture-date-day {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

dialog:has(.fixture-popup-card) .fixture-date-weekday {
    display: none;
}

dialog.events-detail-dialog:has(.fixture-popup-card) {
    padding: 8px !important;
    overflow-x: hidden !important;
}

dialog.events-detail-dialog:has(.fixture-popup-card) .events-detail-content {
    padding: 16px 4px !important;
}

dialog.events-detail-dialog:has(.fixture-popup-card) #events-detail-date {
    display: none !important;
}

dialog:has(.fixture-popup-card) .fixture-details {
    grid-column: 2;
    grid-row: 1;
    display: block;
    align-self: start;
    padding: 0;
    z-index: 3;
}

dialog:has(.fixture-popup-card) .fixture-info {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 0 7px rgba(255, 255, 255, 0.8);
}

dialog:has(.fixture-popup-card) .fixture-card-heading {
    display: block;
}

dialog:has(.fixture-popup-card) .fixture-card-heading h3 {
    min-width: 0;
    flex: none;
    font-size: 1rem;
}

dialog:has(.fixture-popup-card) .fixture-info .fixture-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

dialog:has(.fixture-popup-card) .fixture-time,
dialog:has(.fixture-popup-card) .fixture-location {
    white-space: nowrap;
}

dialog:has(.fixture-popup-card) .fixture-card.fixture-popup-card::before,
dialog:has(.fixture-popup-card) .fixture-card.fixture-popup-card.has-opponent-watermark::after {
    top: 62px;
    right: auto;
    bottom: -24%;
    height: auto;
}

dialog:has(.fixture-popup-card) .fixture-card.fixture-popup-card::before {
    left: auto;
    right: 20%;
    width: 95%;
}

dialog:has(.fixture-popup-card) .fixture-card.fixture-popup-card.has-opponent-watermark::after {
    right: -20%;
    width: 95%;
    opacity: 0.38;
}

dialog:has(.fixture-popup-card) .fixture-opponent {
    display: none;
}

@media (max-width: 600px) {
    dialog#events-detail-dialog:has(.fixture-popup-card) {
        width: 96vw !important;
        padding: 6px !important;
        overflow-x: clip !important;
    }

    dialog#events-detail-dialog:has(.fixture-popup-card) .events-detail-content {
        padding: 14px 2px !important;
    }
}

/* 3-Column Layout */
.timeline-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Vertical divider lines between 1st & 2nd and 2nd & 3rd columns */
@media (min-width: 769px) {
    .timeline-grid-3col > .timeline-block:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.12);
        padding-right: 30px;
    }
}

/* Horizontal dividers for mobile view */
@media (max-width: 768px) {
    .timeline-grid-3col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .timeline-grid-3col > .timeline-block:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
        padding-bottom: 20px;
    }
}

.draw-sheet-frame {
    width: 100%;
    height: 600px;
    border: none;
}

/* ============================================================================
   FIXTURE MATCH POPUP SYSTEM HOOK STYLES (HOME VS AWAY)
   ============================================================================ */

.fixture-popup-card {
    text-align: center;
    padding: 16px 0 !important;
}

.fixture-team-badge-header {
    display: inline-block;
    background: #173b32;
    color: #ffcc00;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid #ffcc00;
}

.fixture-badge-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 460px;
    margin: 4px auto 20px auto;
}

.fixture-team-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

/* Rounded Vector Style Placeholder Circle Badges */
.club-badge-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: #173b32; /* Goldenacre Primary Corporate Green */
    color: #ffcc00;            /* Goldenacre Yellow Accent Trim */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(23, 59, 50, 0.08);
    border: 3px solid #ffcc00;
    margin-bottom: 10px;
}

/* Shift Away club badge options to distinct structural blue colors */
.fixture-team-col.away-team .club-badge-placeholder {
    background-color: #0369a1; /* Association Sport Blue */
    color: #ffffff;
    border-color: #e2e8f0;
}

.fixture-team-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #173b32;
    margin-bottom: 6px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.fixture-vs-divider {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    background: #eef3ee;
    padding: 6px 10px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}

/* Home / Away Venue Label Tags */
.venue-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.tag-home {
    background-color: #fff8df;
    color: #b45309;
    border: 1px solid #ffcc00;
}
.tag-away {
    background-color: #f1f4f1;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.fixture-meta-info {
    margin: 12px 0;
    padding: 0 10px;
}
.fixture-description {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-top: 4px;
}

/* Push Notification Activation Display Area */
.reminder-action-panel {
    margin-top: 22px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.btn-set-reminder {
    background: #173b32;
    color: #ffffff;
    border: 1px solid #173b32;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-set-reminder:hover {
    background: #245747;
    transform: translateY(-1px);
}
.btn-set-reminder:disabled {
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

.reminder-status-text {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #334155;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive constraints for narrow mobile screens */
@media (max-width: 480px) {
    .fixture-badge-grid { gap: 10px; }
    .club-badge-placeholder { width: 64px; height: 64px; font-size: 1.1rem; }
    .fixture-team-name { font-size: 1rem; }
}

/* ============================================================================
   CALENDAR DAY CELL & INDIVIDUAL EVENT HOVER STYLES
   ============================================================================ */

/* Disable whole-day box dark border on hover */
.calendar-day:hover,
.calendar-day-has-events:hover {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
    background-color: transparent !important;
    cursor: default !important;
}

/* Default border accent color for generic match entries */
.calendar-event.fixture-event-tag {
    border-left: 3px solid #0369a1 !important;
    background: #f0f7ff !important;
    font-weight: 600;
}

/* Team Color Coding: 1st 16 (Blue Accent) */
.calendar-event.fixture-team-1st {
    border-left: 4px solid #0369a1 !important;
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 600;
}

/* Team Color Coding: 2nd 16 (Purple Accent) */
.calendar-event.fixture-team-2nd {
    border-left: 4px solid #7c3aed !important;
    background: #f3e8ff !important;
    color: #6b21a8 !important;
    font-weight: 600;
}

/* Individual Event Tag Hover Animations */
.calendar-day .calendar-event {
    cursor: pointer !important;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.calendar-day .calendar-event:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-event.fixture-team-1st:hover {
    background: #bae6fd !important;
}

.calendar-event.fixture-team-2nd:hover {
    background: #e9d5ff !important;
}

/* ============================================================================
   EVENTS DIALOG MODAL SIZING & PERFECT CENTERING RESET
   ============================================================================ */

/* Backdrop Overlay */
dialog.events-detail-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Centered fixed positioning for desktop and mobile */
dialog#events-detail-dialog,
dialog.events-detail-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: min(88vw, 440px) !important;
    max-width: 440px !important;
    height: auto !important;
    max-height: 85vh !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

/* Force mobile vertical view to size precisely to the inner content */
@media (max-width: 600px) {
    dialog#events-detail-dialog,
    dialog.events-detail-dialog {
        width: 92vw !important;
        height: auto !important;
        max-height: 80vh !important;
    }
}

/* Force inner container to wrap tightly without flex stretching */
dialog.events-detail-dialog .events-detail-content {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

dialog.events-detail-dialog #events-detail-list {
    display: table !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Clean up spacing inside popup items */
.events-detail-item {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.events-detail-item h3 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
}

.events-detail-item p {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.events-detail-item p:last-child {
    margin-bottom: 0 !important;
}

/* Horizontal / Short height mobile screen handling */
@media (max-height: 500px) {
    dialog#events-detail-dialog,
    dialog.events-detail-dialog {
        max-height: 90vh !important;
        padding: 0.75rem 1rem !important;
    }
}

/* ============================================================================
   UPCOMING EVENTS HOMEPAGE WIDGET STYLING
   ============================================================================ */

.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px 20px;
    box-shadow: 0 2px 6px rgba(23, 59, 50, 0.03);
}

.event-badge-card {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    padding: 14px 0;
    box-shadow: none;
    transition: none;
}

.event-badge-card:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
}

.event-badge-card:last-child {
    border-bottom: none;
}

/* Date Badge Container (Goldenacre Green & Yellow Theme) */
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background-color: #173b32;
    color: #ffcc00;
    border-radius: 6px;
    padding: 2px;
    margin-right: 16px;
    text-align: center;
    border: 1px solid #ffcc00;
    flex-shrink: 0;
}

.badge-month {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.badge-day {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: Georgia, serif;
}

/* Event Details Body */
.event-info-body {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-info-body h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    color: #173b32;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.event-time-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0369a1;
    margin: 0 0 2px 0;
}

.event-desc {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
    line-height: 1.35;
}

/* Internal divider when 2+ events fall on the same day */
.event-entry-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 10px 0;
}

/* Colored Team Badge Tags */
.fixture-team-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.tag-fixture-1st {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.tag-fixture-2nd {
    background-color: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.tag-fixture-default {
    background-color: #f0f7ff;
    color: #0369a1;
    border: 1px solid #cbd5e1;
}

.events-empty {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 15px 0;
}

@media (max-width: 480px) {
    .upcoming-events-list {
        padding: 4px 14px;
    }
    .event-date-badge {
        min-width: 42px;
        height: 42px;
        margin-right: 12px;
    }
    .badge-day {
        font-size: 1.1rem;
    }
    .event-info-body h3 {
        font-size: 0.98rem;
    }
}

/* ============================================================================
   INSTALL / BOOKMARK BANNER STYLING
   ============================================================================ */
.pwa-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff8df;
    color: #173b32 !important;
    padding: 10px 14px;
    margin: 0 auto 20px auto;
    max-width: 700px;
    border-radius: 10px;
    border: 1.5px solid #ffcc00;
    box-shadow: 0 3px 8px rgba(23, 59, 50, 0.08);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.pwa-menu-item:hover,
.pwa-menu-item:active {
    background-color: #fef08a;
    transform: scale(0.99);
}

.pwa-item-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(23, 59, 50, 0.2);
    background: #ffffff;
    flex-shrink: 0;
}

.pwa-item-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.pwa-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.pwa-item-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #173b32;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.pwa-item-subtitle {
    font-size: 0.7rem;
    color: #475569;
    font-weight: 400;
    line-height: 1.2;
}

.pwa-arrow {
    font-size: 0.95rem;
    color: #173b32;
    font-weight: 700;
    padding-left: 2px;
}

@media (max-width: 768px) {
    .pwa-menu-item {
        max-width: 92%;
    }
}

/* Auto-hide when opened inside an installed PWA */
@media (display-mode: standalone) {
    #pwa-install-trigger {
        display: none !important;
    }
}
/* Static App & Bookmark Instruction Card Styling */
.pwa-instruction-card {
    background-color: #fff8df;
    color: #173b32;
    padding: 12px 16px;
    margin: 0 auto 20px auto;
    max-width: 700px;
    border-radius: 10px;
    border: 1.5px solid #ffcc00;
    box-shadow: 0 3px 8px rgba(23, 59, 50, 0.08);
}

.pwa-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(23, 59, 50, 0.18);
    padding-bottom: 8px;
}

.pwa-card-title-group {
    display: flex;
    flex-direction: column;
}

.pwa-instruction-card h3.pwa-item-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #173b32;
    margin: 0;
    line-height: 1.2;
}

.pwa-instruction-card .pwa-item-subtitle {
    font-size: 0.75rem;
    color: #475569;
    margin: 2px 0 0 0;
}

.pwa-card-body {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #173b32;
}

.pwa-steps {
    margin: 0;
    padding-left: 20px;
}

.pwa-steps li {
    margin-bottom: 4px;
}

.pwa-steps li:last-child {
    margin-bottom: 0;
}

.pwa-desktop-text {
    margin: 0;
}

kbd {
    background-color: #173b32;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

@media (max-width: 768px) {
    .pwa-instruction-card {
        max-width: 92%;
        padding: 12px 14px;
    }
}
.pwa-instruction-card {
    position: relative;
}
.pwa-dismiss-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #173b32;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.pwa-dismiss-btn:hover {
    opacity: 1;
}
/* Upcoming Events Modern Grid Layout */
#upcoming-events-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-watermark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.event-card-watermark::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url("logo.jpeg") center / min(55%, 220px) auto no-repeat;
    content: "";
    opacity: 0.05;
    pointer-events: none;
}

.event-card-watermark > * {
    position: relative;
    z-index: 1;
}

dialog#global-modal.event-popup-watermark {
    position: fixed;
    isolation: isolate;
    background: #ffffff;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: 85vh !important;
    padding: 0 !important;
    overflow-y: auto;
}

dialog#global-modal.event-popup-watermark::before {
    position: absolute;
    z-index: 0;
    inset: -18%;
    background: url("logo.jpeg") center / cover no-repeat;
    content: "";
    opacity: 0.07;
    pointer-events: none;
    transform: rotate(-12deg);
}

dialog#global-modal.event-popup-watermark .modal-content {
    z-index: 1;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent;
}

dialog#global-modal.event-popup-watermark .event-popup-date {
    background: rgba(246, 248, 246, 0.72);
    color: #102a24;
}

.event-popup-meta {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
    color: #111827;
    font-size: 0.9rem;
}

dialog#global-modal.event-popup-watermark .modal-body p {
    color: #0b1220;
}

.event-popup-description {
    color: #0b1220;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

.event-popup-description p {
    color: inherit !important;
}

.event-popup-image {
    max-height: 220px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.event-popup-image img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.event-popup-date {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-left: 4px solid #d2b24c;
    border-radius: 4px;
    background: #f6f8f6;
    color: #173b32;
    font-weight: 700;
}

.event-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #173b32;
}

/* Calendar Badge Block */
.event-date-badge {
    background-color: #fff8df;
    border: 1px solid #ffcc00;
    border-radius: 8px;
    min-width: 55px;
    text-align: center;
    padding: 8px 6px;
    flex-shrink: 0;
}

.event-date-badge .event-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #996600;
    letter-spacing: 0.5px;
}

.event-date-badge .event-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #173b32;
    line-height: 1.1;
    margin-top: 2px;
}

/* Event Content Details */
.event-details {
    flex-grow: 1;
}

.event-details h4 {
    margin: 0 0 6px 0;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: #173b32;
}

.event-meta {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.event-details p {
    margin: 0;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.4;
}
/* ============================================================================
   UPCOMING EVENTS 2-COLUMN GRID & FILTER STYLING
   ============================================================================ */

#upcoming-events-widget.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 15px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 768px) {
    #upcoming-events-widget.upcoming-events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #173b32;
}

/* Smaller Date Badge Block */
.event-date-badge {
    background-color: #fff8df;
    border: 1px solid #ffcc00;
    border-radius: 6px;
    min-width: 45px;
    text-align: center;
    padding: 6px 4px;
    flex-shrink: 0;
}

.event-date-badge .event-month {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #996600;
    letter-spacing: 0.5px;
}

.event-date-badge .event-day {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #173b32;
    line-height: 1.1;
    margin-top: 1px;
}

/* Event Content Details */
.event-details {
    flex-grow: 1;
    min-width: 0;
}

.event-details h4 {
    margin: 0 0 4px 0;
    font-family: Georgia, serif;
    font-size: 0.98rem;
    color: #173b32;
}

.event-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.event-details p {
    margin: 0;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.35;
}

/* Filter Button Active States */
.event-filter-btn.active {
    background: #173b32 !important;
    color: #ffffff !important;
    border-color: #173b32 !important;
}
/* Ensure the event card acts as an absolute positioning anchor */
.event-card-item {
    position: relative; /* Anchor for top-right pill badge */
}

/* Gold Pill Tag (Matches contact page badge style) */
.event-pill-tag {
    position: absolute;
    top: -10px;
    right: 12px;
    background-color: #ffcc00;
    color: #0a192f;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    z-index: 2;
    white-space: nowrap;
}
/* ============================================================================
   MOBILE MODAL AUTO-HEIGHT FIX (Hugs content strictly on vertical mobile)
   ============================================================================ */
@media (max-width: 600px) {
    dialog#global-modal,
    dialog#events-detail-dialog,
    dialog.news-modal {
        width: 92vw !important;
        height: fit-content !important;
        max-height: 80vh !important;
        min-height: 0 !important;
        inset: 50% auto auto 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    dialog#global-modal .modal-content,
    dialog.news-modal .modal-content {
        height: fit-content !important;
        max-height: 80vh !important;
    }

    dialog#global-modal.event-popup-watermark .modal-content {
        max-height: none !important;
    }
}
/* Modern, Table-Free Honours Grid Layout */
    .honours-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 24px;
      width: 100%;
      max-width: 1200px;
      margin: 30px auto;
      box-sizing: border-box;
    }

    /* Individual Modern Panel Cards */
    .honours-card {
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      border: 1px solid #334155;
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .card-heading {
      color: #d4af37;
      font-size: 1.1rem;
      font-weight: 600;
      text-align: center;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(212, 175, 55, 0.3);
      padding-bottom: 12px;
      margin-bottom: 16px;
      letter-spacing: 1px;
    }

    /* Clean Flexbox Rows instead of Tables */
    .honours-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 4px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .honours-row:last-child {
      border-bottom: none;
    }

    .item-year {
      color: #94a3b8;
      font-weight: 600;
      flex: 0 0 60px;
    }

    .item-name {
      color: #f1f5f9;
      text-align: right;
      flex: 1;
      font-weight: 400;
    }

    /* Elegant muted style for missing slots */
    .tbd {
      color: #64748b;
      font-style: italic;
      font-size: 0.9rem;
    }
    /* Bracket Tree Grid Layout Styles */
.draws-bracket-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-top: 15px;
}

.bracket-grid {
  display: grid;
  gap: 20px;
  align-items: start;
  min-width: max-content;
}

.bracket-column {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.bracket-col-header {
  border-bottom: 2px solid var(--brand-gold-soft, #fff8df);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.bracket-col-header h3 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: var(--brand-green, #173b32);
  font-family: Georgia, serif;
}

.bracket-match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bracket-match-box {
  background: var(--bg-light, #f8fafc);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.85rem;
}

.bracket-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #ffffff;
}

.bracket-player-row:first-child {
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.bracket-player-row.winner {
  background-color: var(--brand-gold-soft, #fff8df);
  font-weight: 700;
}

.bracket-score {
  font-weight: 700;
  padding-left: 8px;
  color: var(--text-dark, #1e293b);
}

.handicap-value {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  font-weight: normal;
}
/* Dedicated contact page */
.contact-page {
    background: #f6f8f7;
}

.contact-hero {
    padding: clamp(3.5rem, 8vw, 6rem) 1.25rem 3.5rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #173b32, #245947);
}

.contact-hero h1 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #fff;
}

.contact-hero > p:last-child {
    max-width: 42rem;
    margin: 0 auto;
    color: #e5eee9;
    font-size: 1.05rem;
    line-height: 1.65;
}

.contact-eyebrow {
    margin: 0;
    color: #d6ac28;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-page-content {
    width: min(1100px, calc(100% - 2rem));
    margin: -1.5rem auto 4rem;
    position: relative;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    background: #fff;
    border: 1px solid #e2e8e4;
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(20, 47, 38, 0.11);
}

.contact-form-intro h2 {
    margin: 0.45rem 0 0.8rem;
    color: #173b32;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.contact-form-intro > p:not(.contact-eyebrow) {
    color: #59665f;
    line-height: 1.7;
}

.contact-detail-list {
    display: grid;
    gap: 1.4rem;
    margin-top: 2rem;
}

.contact-detail {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.contact-detail > span {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 10px;
    background: #edf5f1;
    font-size: 1.2rem;
}

.contact-detail h3 {
    margin: 0 0 0.25rem;
    color: #173b32;
    font-size: 0.95rem;
}

.contact-detail a {
    color: #56645d;
    font-size: 0.92rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.contact-page-form {
    display: grid;
    gap: 0.65rem;
    align-content: start;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: #f7f9f8;
    border: 1px solid #e4eae6;
    border-radius: 12px;
}

.contact-page-form label {
    margin-top: 0.35rem;
    color: #23382f;
    font-size: 0.86rem;
    font-weight: 700;
}

.contact-page-form input,
.contact-page-form select,
.contact-page-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem;
    border: 1px solid #cbd6cf;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    font: inherit;
}

.contact-page-form textarea {
    resize: vertical;
}

.contact-page-form input:focus,
.contact-page-form select:focus,
.contact-page-form textarea:focus {
    outline: 3px solid rgba(112, 193, 237, 0.35);
    border-color: #3687ad;
}

.contact-page-form button {
    margin-top: 0.65rem;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 8px;
    background: #173b32;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.contact-page-form button:hover {
    background: #245947;
}

.contact-form-privacy {
    margin: 0.2rem 0 0;
    color: #65736b;
    font-size: 0.76rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .contact-panel {
        grid-template-columns: 1fr;
    }
}
