/* ================= ROOT WRAPPER ================= */
.gcal-wrap{
    --gcal-gold:#fbb040;
    --gcal-dark:#070707;
    --gcal-panel:#0b0b0d;
    --gcal-border:rgba(251,176,64,.55);
    --gcal-cream:#f5e6b8;
    --gcal-days-font-color:#111111;
    --gcal-guest-pay-font-color:#000000;
    --gcal-guest-pay-font-hover-color:#000000;

     width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
}

/* ================= FORCE FULL WIDTH ================= */
.gcal-wrap{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.fc{
    width: 100% !important;
}

.fc .fc-scrollgrid{
    width: 100% !important;
}

/* REMOVE RIGHT SCROLL BAR */
.fc-scroller{
    overflow: visible !important;
}

.fc .fc-daygrid-body{
    width: 100% !important;
}

@media (max-width:768px){

    .fc .fc-daygrid-day-frame{
        min-width: 0 !important;
    }

    .fc .fc-daygrid-body-natural{
        width: 100% !important;
    }

    .fc table{
        table-layout: fixed !important;
    }

}


/* ================= TOP BAR ================= */
.gcal-topbar,
.gcal-modal-card{
    background:linear-gradient(90deg,#050505,#111318);
    border:1px solid var(--gcal-border);
    border-radius:22px;
    box-shadow:0 14px 36px rgba(0,0,0,.28);
}

.gcal-topbar{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
    padding:26px 20px;
    margin-bottom:18px;
}

.gcal-title-group h2{
    margin:0 0 4px;
    color:var(--gcal-gold);
    font-size:26px;
}

.gcal-title-group p{
    margin:0;
    color:var(--gcal-cream);
    font-size:14px;
}

/* ================= BUTTONS ================= */
.gcal-btn{
    background:linear-gradient(180deg,#f5bf4f,#d89a23);
    color:#121212;
    border:none;
    border-radius:14px;
    padding:11px 18px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 0 18px rgba(251,176,64,.25);
}

.gcal-btn-secondary{
    background:#141414;
    color:var(--gcal-cream);
    border:1px solid var(--gcal-border);
    box-shadow:none;
}

.gcal-btn-danger{
    background:#5a1212;
    color:#fff;
}

/* ================= FULLCALENDAR ================= */
.fc{
    background:#050505;
    border:1px solid var(--gcal-border);
    border-radius:22px;
    padding:12px;
}

.fc .fc-toolbar-title,
.fc .fc-button,
.fc .fc-col-header-cell-cushion{
    color:var(--gcal-gold)!important;
}

.fc .fc-button{
    background:#101113!important;
    border:1px solid var(--gcal-border)!important;
    text-transform:capitalize;
}

.fc .fc-button:hover{
    background:#1a1b1e!important;
}

.fc .fc-daygrid-day-number,
.fc .fc-daygrid-day-top a{
    color:#f2f2f2!important;
}

.fc .fc-col-header-cell-cushion{
    color:var(--gcal-days-font-color)!important;
    background:var(--gcal-gold);
    display:inline-block;
    padding:1px 4px;
    font-weight:700;
}

.fc-theme-standard td,
.fc-theme-standard th{
    border-color:rgba(255,255,255,.13)!important;
}

.fc .fc-daygrid-event{
    background:transparent!important;
    border:none!important;
    padding:0 2px;
}

.fc .fc-daygrid-event-dot{
    border-color:var(--gcal-gold)!important;
}

.fc .fc-event-title,
.fc .fc-event-time,
.fc .fc-event a,
.fc .fc-daygrid-event a,
.fc .fc-h-event .fc-event-main,
.fc .fc-event-main{
    color:#fff!important;
    text-decoration:none!important;
    font-weight:600;
}

.fc .fc-event:hover .fc-event-title,
.fc .fc-event:hover .fc-event-time{
    color:var(--gcal-gold)!important;
}

/* ================= MODAL ================= */
.gcal-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.72);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:20px;
}

.gcal-modal-card{
    position:relative;
    width:min(760px,95vw);
    max-height:90vh;
    overflow:auto;
    padding:24px;
    color:#fff;
}

.gcal-close{
    position:absolute;
    right:14px;
    top:12px;
    background:none;
    border:none;
    color:var(--gcal-gold);
    font-size:28px;
    cursor:pointer;
}

/* ================= FORM GRID ================= */
.gcal-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.gcal-field label{
    display:block;
    color:var(--gcal-gold);
    font-weight:700;
    margin-bottom:6px;
}

.gcal-field input,
.gcal-field select,
.gcal-field textarea{
    width:100%;
    background:#111;
    border:1px solid rgba(255,255,255,.14);
    color:#fff;
    padding:10px;
    border-radius:12px;
}

.gcal-full{
    grid-column:1 / -1;
}

.gcal-actions{
    display:flex;
    gap:12px;
    margin-top:18px;
}

/* ================= IMAGES ================= */
.gcal-image-row{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.gcal-image-preview img,
.gcal-hover-card img,
.gcal-detail-hero img{
    width:100%;
    height:auto;
    border-radius:16px;
    border:1px solid var(--gcal-border);
}

/* ================= HOVER CARD ================= */
.gcal-hover-card{
    position:fixed;
    z-index:99998;
    width:min(420px,calc(100vw - 30px));
    max-height:min(78vh,620px);
    overflow:auto;
    background:linear-gradient(180deg,#0a0a0c,#15161c);
    border:1px solid var(--gcal-border);
    border-radius:18px;
    box-shadow:0 16px 42px rgba(0,0,0,.45);
    padding:16px;
    color:#fff;
    pointer-events:none;
}

.gcal-hover-card h4,
.gcal-detail-card h3{
    margin:0 0 8px;
    color:var(--gcal-gold);
}

.gcal-hover-meta,
.gcal-detail-meta{
    font-size:13px;
    color:#f0ddb1;
    margin-bottom:10px;
}

.gcal-hover-summary,
.gcal-detail-summary{
    font-size:14px;
    line-height:1.5;
    color:#fff;
}

/* ================= DETAIL ================= */
.gcal-detail-card{
    width:min(820px,95vw);
}

.gcal-detail-hero{
    margin:12px 0 16px;
}

.gcal-detail-badge{
    display:inline-block;
    background:rgba(251,176,64,.16);
    border:1px solid var(--gcal-border);
    border-radius:999px;
    padding:5px 10px;
    color:var(--gcal-gold);
    font-size:12px;
    font-weight:700;
    margin-bottom:10px;
}

/* ================= ADMIN ================= */
.gcal-admin-wrap .gcal-admin-card{
    background:#fff;
    border:1px solid #e2e2e2;
    border-radius:14px;
    padding:18px;
    margin:16px 0;
}
/* ================= MOBILE ================= */
@media (max-width: 700px){

    .gcal-grid{
        grid-template-columns: 1fr;
    }

    .gcal-topbar{
        flex-direction: column;
        align-items: flex-start;
    }

    .gcal-login-card form{
        grid-template-columns: 1fr;
    }
}


/* ================= LINKS ================= */
.gcal-hover-card a,
.gcal-detail-card a{
    color: var(--gcal-gold) !important;
    text-decoration: none;
}

.gcal-hover-card a:hover,
.gcal-detail-card a:hover{
    text-decoration: underline;
}


/* ================= IMAGES ================= */
.gcal-hover-card img{
    max-height: 220px;
    object-fit: cover;
}

.gcal-detail-hero img{
    max-height: 420px;
    object-fit: cover;
}


/* ================= PAYMENT BUTTON ================= */
.gcal-pay-wrap{
    margin: 12px 0 10px;
}

.gcal-pay-btn{
    display: inline-block;
    background: linear-gradient(180deg,#f5bf4f,#d89a23);
    color: #000 !important;
    border: 1px solid rgba(251,176,64,.65);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 0 18px rgba(251,176,64,.22);
}

.gcal-pay-btn:hover,
.gcal-pay-btn:focus,
.gcal-pay-btn:active,
.gcal-pay-btn:visited{
    color: #000 !important;
    transform: none;
}

.gcal-pay-btn-detail{
    padding: 12px 18px;
}


/* ================= GUEST PAY TEXT FIX ================= */
.gcal-pay-wrap .gcal-pay-btn,
.gcal-hover-card .gcal-pay-btn,
.gcal-detail-card .gcal-pay-btn,
.gcal-hover-card a.gcal-pay-btn,
.gcal-detail-card a.gcal-pay-btn{
    color: #000000 !important;
}

.gcal-pay-wrap .gcal-pay-btn:hover,
.gcal-pay-wrap .gcal-pay-btn:focus,
.gcal-pay-wrap .gcal-pay-btn:active,
.gcal-pay-wrap .gcal-pay-btn:visited,
.gcal-hover-card .gcal-pay-btn:hover,
.gcal-hover-card .gcal-pay-btn:focus,
.gcal-hover-card .gcal-pay-btn:active,
.gcal-hover-card .gcal-pay-btn:visited,
.gcal-detail-card .gcal-pay-btn:hover,
.gcal-detail-card .gcal-pay-btn:focus,
.gcal-detail-card .gcal-pay-btn:active,
.gcal-detail-card .gcal-pay-btn:visited{
    color: #000000 !important;
    text-decoration: none !important;
}


/* ================= ANNOUNCEMENT MODAL ================= */
.gcal-announcement-modal{
    z-index: 100000;
}

.gcal-announcement-card{
    width: min(640px,94vw);
    text-align: center;
    background: radial-gradient(circle at top,#1e2027 0%,#0a0a0d 55%,#050505 100%);
    overflow: hidden;
}

.gcal-announcement-kicker{
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(251,176,64,.16);
    border: 1px solid var(--gcal-border);
    color: var(--gcal-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gcal-announcement-hero{
    margin: -24px -24px 18px;
}

.gcal-announcement-hero img{
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    border: none;
}

.gcal-announcement-body{
    color: #fff;
    line-height: 1.65;
    font-size: 15px;
    max-width: 540px;
    margin: 0 auto;
}

.gcal-announcement-body p{
    margin: 0 0 10px;
}

.gcal-announcement-card h3{
    margin: 0 0 12px;
    color: var(--gcal-gold);
    font-size: 30px;
}

.gcal-announcement-card .gcal-btn{
    margin: 0 auto;
    display: inline-block;
}


/* ================= TOPBAR ACTIONS ================= */
.gcal-topbar-actions{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gcal-manager-link{
    color: var(--gcal-cream);
    text-decoration: none;
    font-weight: 700;
}

.gcal-manager-link:hover{
    color: var(--gcal-gold);
}

.gcal-edit-toggle[aria-pressed="true"]{
    background: linear-gradient(180deg,#f5bf4f,#d89a23);
    color: #121212;
}


/* ================= LOGIN PANEL ================= */
.gcal-login-panel{
    margin: 0 0 18px;
}

.gcal-login-card{
    background: linear-gradient(180deg,#0a0a0c,#14161c);
    border: 1px solid var(--gcal-border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 14px 36px rgba(0,0,0,.24);
    color: #fff;
}

.gcal-login-card h3{
    margin: 0 0 8px;
    color: var(--gcal-gold);
}

.gcal-login-card p{
    margin: 0 0 14px;
    color: var(--gcal-cream);
}

.gcal-login-card form{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    align-items: end;
}

.gcal-login-card label{
    display: block;
    color: var(--gcal-gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.gcal-login-card input[type="text"],
.gcal-login-card input[type="password"]{
    width: 100%;
    background: #111;
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    padding: 10px;
    border-radius: 12px;
}

.gcal-login-card .login-remember{
    grid-column: 1 / -1;
    color: var(--gcal-cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcal-login-card .login-submit{
    grid-column: 1 / -1;
}

.gcal-login-card .button-primary{
    background: linear-gradient(180deg,#f5bf4f,#d89a23);
    color: #121212;
    border: none;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(251,176,64,.25);
}

.gcal-login-footer{
    margin: 14px 0 18px;
    text-align: right;
}

.gcal-btn-small{
    padding: 8px 14px;
    font-size: 15px;
    box-shadow: none;
}

.gcal-login-card > p{
    display: none;
}

/* ================= FORCE TRUE FULL WIDTH ================= */

/* ================= CLEAN CENTERED LAYOUT ================= */

.gcal-wrap,
.gcal-container,
.gcal-inner {
    width: 100% !important;
    max-width: 1400px; /* adjust if you want tighter */
    margin: 0 auto !important;
    padding: 0 10px;
}

/* Prevent page overflow */
html, body {
    overflow-x: hidden !important;
}

/* Calendar sizing */
#calendar,
.fc {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix grid alignment */
.fc-scrollgrid,
.fc-scrollgrid-sync-table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* Ensure 7 equal columns */
.fc-daygrid-body {
    width: 100% !important;
}

/* Kill any horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Calendar sizing */
#calendar,
.fc {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure full 7-day grid fits */
.fc-scrollgrid {
    width: 100% !important;
}

/* Make sure cells distribute evenly */
.fc .fc-daygrid-body,
.fc .fc-scrollgrid-sync-table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* Optional: tighten padding so Saturday fits clean */
.fc .fc-daygrid-day {
    padding: 2px !important;
}

.fc .fc-daygrid-day-number {
    font-size: 12px;
    opacity: 0.8;
}

.fc .fc-toolbar-title {
    letter-spacing: 1px;
}

/* KEEP EVENTS INSIDE CELLS WITHOUT CUTTING OFF */
.fc .fc-daygrid-day-frame{
    overflow:hidden !important;
    min-height:160px !important;
}

.fc .fc-daygrid-day-events{
    overflow:visible !important;
}

.fc .fc-daygrid-event{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:100% !important;
}

/* ================= DESKTOP MONTH VIEW FIX ================= */
@media (min-width:769px){

    /* LET ROWS AUTO EXPAND */
    .fc .fc-daygrid-body-natural .fc-daygrid-day-events{
        margin-bottom:0 !important;
    }

    /* REMOVE FIXED HEIGHTS */
    .fc-daygrid-day,
    .fc .fc-daygrid-day-frame,
    .fc .fc-daygrid-day-events{
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
    }

    /* KEEP CONTENT TOP ALIGNED */
    .fc-daygrid-day{
        vertical-align:top !important;
    }

    /* ALLOW EVENTS TO SHOW FULLY */
    .fc .fc-daygrid-day-events{
        overflow:visible !important;
    }

}

/* ================= MOBILE ONLY ================= */
@media (max-width:768px){

    /* PAGE */
    html,
    body{
        overflow-x:hidden !important;
        overflow-y:auto !important;
    }

    /* MOBILE CALENDAR WRAPPER */
    .fc{
        overflow-x:auto !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch;
    }

    /* ALLOW BOTH DIRECTIONS */
    .fc-view-harness,
    .fc-scroller{
        overflow-x:auto !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch;
    }

    /* FORCE FULL CALENDAR WIDTH */
    .fc-scrollgrid,
    .fc-scrollgrid-sync-table,
    .fc-daygrid-body,
    .fc-daygrid-body table{
        min-width:720px !important;
        width:720px !important;
    }

    /* MOBILE EVENT TEXT */
    .fc .fc-daygrid-event{
        font-size:9px !important;
        line-height:1.1 !important;
        padding:1px 2px !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    /* DAY NUMBERS */
    .fc .fc-daygrid-day-number{
        font-size:10px !important;
    }

    /* TOOLBAR */
    .fc .fc-toolbar-title{
        font-size:18px !important;
    }

    .fc .fc-button{
        font-size:10px !important;
        padding:4px 6px !important;
    }

    /* MOBILE CELL HEIGHT */
    .fc .fc-daygrid-day-frame{
        min-height:95px !important;
    }

    /* LANDSCAPE NOTE */
  .gcal-rotate-hint{
    font-size:12px !important;
    color:#ffffff !important;
    font-weight:600 !important;
}
}
/* v0.5.2: court usage shown directly on each calendar event */
.gcal-event-inner{min-width:0;line-height:1.2}.gcal-event-title{font-weight:600;white-space:normal}.gcal-event-courts{font-size:10px;opacity:.92;white-space:normal;margin-top:2px}

/* v0.5.4: keep all calendar event text white regardless of theme link styles */
.gcal-wrap .fc a.fc-event,
.gcal-wrap .fc a.fc-event:link,
.gcal-wrap .fc a.fc-event:visited,
.gcal-wrap .fc a.fc-event:hover,
.gcal-wrap .fc a.fc-event:active,
.gcal-wrap .fc .fc-daygrid-event,
.gcal-wrap .fc .fc-daygrid-event a,
.gcal-wrap .fc .fc-event-main,
.gcal-wrap .fc .fc-event-main-frame,
.gcal-wrap .fc .fc-event-title,
.gcal-wrap .fc .fc-event-title-container,
.gcal-wrap .fc .fc-event-time,
.gcal-wrap .fc .gcal-court-summary {
    color:#fff !important;
}


/* ============================================================
   v0.5.7 - PbC CLUB BRANDING INHERITANCE
   Uses PbC Club Provisioner shared theme variables when present.
   Fallbacks preserve the original G-Calendar black/gold appearance.
   ============================================================ */
.gcal-wrap{
    --gcal-gold:var(--pbc-secondary,#fbb040);
    --gcal-dark:var(--pbc-surface,#070707);
    --gcal-panel:var(--pbc-surface,#0b0b0d);
    --gcal-border:color-mix(in srgb,var(--pbc-secondary,#fbb040) 58%,transparent);
    --gcal-cream:var(--pbc-surface-text,#f5e6b8);
}

/* Main calendar surfaces */
.gcal-wrap .gcal-topbar,
.gcal-wrap .gcal-modal-card,
.gcal-wrap .gcal-event-card,
.gcal-wrap .gcal-hover-card{
    background:var(--pbc-surface,#0b0b0d) !important;
    border-color:var(--gcal-border) !important;
    color:var(--pbc-surface-text,#fff) !important;
}
.gcal-wrap .fc{
    background:var(--pbc-surface,#050505) !important;
    border-color:var(--gcal-border) !important;
}

/* Club accent/secondary color */
.gcal-wrap .gcal-title-group h2,
.gcal-wrap .fc .fc-toolbar-title,
.gcal-wrap .fc .fc-button,
.gcal-wrap .gcal-close,
.gcal-wrap .gcal-event-title,
.gcal-wrap .gcal-modal-card h2,
.gcal-wrap .gcal-modal-card h3{
    color:var(--pbc-secondary,#fbb040) !important;
}
.gcal-wrap .fc .fc-col-header-cell-cushion{
    background:var(--pbc-secondary,#fbb040) !important;
    color:var(--pbc-surface,#111) !important;
}
.gcal-wrap .fc .fc-daygrid-event-dot{
    border-color:var(--pbc-secondary,#fbb040) !important;
}

/* Buttons use the club's primary/secondary palette */
.gcal-wrap .gcal-btn:not(.gcal-btn-danger),
.gcal-wrap button.gcal-btn:not(.gcal-btn-danger){
    background:var(--pbc-secondary,#fbb040) !important;
    color:var(--pbc-surface,#111) !important;
    border-color:var(--pbc-secondary,#fbb040) !important;
    box-shadow:none !important;
}
.gcal-wrap .gcal-btn-secondary,
.gcal-wrap .fc .fc-button{
    background:var(--pbc-surface,#141414) !important;
    color:var(--pbc-secondary,#fbb040) !important;
    border-color:var(--pbc-secondary,#fbb040) !important;
}
.gcal-wrap .gcal-btn-secondary:hover,
.gcal-wrap .fc .fc-button:hover{
    background:var(--pbc-primary,#111827) !important;
    color:var(--pbc-surface-text,#fff) !important;
}

/* Text follows club surface colors while event colors remain event-specific. */
.gcal-wrap .gcal-title-group p,
.gcal-wrap .gcal-modal-card,
.gcal-wrap .gcal-modal-card p,
.gcal-wrap .gcal-modal-card label{
    color:var(--pbc-surface-text,#fff) !important;
}

/* Current-day highlight follows the club accent instead of Goldusters gold. */
.gcal-wrap .fc .fc-day-today{
    background:color-mix(in srgb,var(--pbc-accent,var(--pbc-secondary,#fbb040)) 22%,transparent) !important;
}

/* Older browsers without color-mix still get a clean branded border. */
@supports not (color: color-mix(in srgb, red 50%, blue)){
    .gcal-wrap{--gcal-border:var(--pbc-secondary,#fbb040);}
}


/* v0.5.8 — Unified multi-club navy/gold calendar presentation. */
.gcal-wrap{
 --gcal-gold:var(--pbc-accent,#f5b942);
 --gcal-border:var(--pbc-accent,#f5b942);
 --gcal-dark:var(--pbc-primary,#192954);
 --gcal-panel:var(--pbc-primary,#192954);
 font-family:inherit;
 box-sizing:border-box;
 max-width:100%;width:100%;margin-left:auto;margin-right:auto;
 padding:12px clamp(12px,2vw,28px);
 color:var(--pbc-text,#1e293b);
}
.gcal-wrap *{box-sizing:border-box}
.gcal-wrap .gcal-topbar,.gcal-wrap .gcal-modal-card{
 background:var(--pbc-primary,#192954)!important;
 color:var(--pbc-surface-text,#fff)!important;
 border:1px solid var(--gcal-border)!important;
 border-radius:16px!important;
 box-shadow:0 8px 24px rgba(15,23,42,.12)!important;
}
.gcal-wrap .gcal-topbar{padding:18px 22px;flex-wrap:wrap}
.gcal-wrap .gcal-title-group h2{color:#fff!important;letter-spacing:-.02em}
.gcal-wrap .gcal-title-group p{color:#e2e8f0!important}
.gcal-wrap .gcal-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
 background:transparent!important;
 border:2px solid var(--gcal-border)!important;
 border-radius:10px!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 font:inherit;min-height:44px;padding:10px 12px;
}
.gcal-wrap .gcal-field :is(input,select,textarea):focus-visible{
 outline:2px solid #93c5fd;outline-offset:2px;
}
.gcal-wrap .gcal-field select option{background:#192954;color:#fff}
.gcal-wrap .gcal-field input[type=date],.gcal-wrap .gcal-field input[type=time]{color-scheme:dark}
.gcal-wrap .gcal-btn:not(.gcal-btn-danger),
.gcal-wrap button.gcal-btn:not(.gcal-btn-danger){
 background:#2563eb!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border:1px solid #2563eb!important;border-radius:10px!important;
 min-height:42px;padding:10px 16px;font:inherit;font-weight:700;
 box-shadow:0 4px 12px rgba(15,23,42,.14)!important;
}
.gcal-wrap .gcal-btn:not(.gcal-btn-danger):hover,
.gcal-wrap .gcal-btn:not(.gcal-btn-danger):focus-visible{
 background:#1d4ed8!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
.gcal-wrap .gcal-btn-secondary,.gcal-wrap .fc .fc-button{
 background:var(--pbc-primary,#192954)!important;
 border:1px solid var(--gcal-border)!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;
 border-radius:10px!important;font-weight:650;
}
.gcal-wrap .fc .fc-button:hover,.gcal-wrap .fc .fc-button:focus-visible{
 background:#2563eb!important;color:#fff!important;
}
.gcal-wrap .fc .fc-toolbar-title{color:var(--pbc-text,#1e293b)!important;font-weight:750}
.gcal-wrap .fc .fc-col-header-cell-cushion{color:#fff!important;background:var(--pbc-primary,#192954)!important}
.gcal-wrap .fc{border-radius:14px;overflow:hidden;background:transparent!important}
.gcal-wrap .fc .fc-daygrid-day-number{font-weight:650}
@media(max-width:700px){
 .gcal-wrap{padding:10px 6px}
 .gcal-wrap .gcal-topbar{padding:14px;gap:12px}
 .gcal-wrap .fc .fc-toolbar{gap:10px;flex-wrap:wrap}
 .gcal-wrap .fc .fc-toolbar-title{font-size:1.15rem!important}
}

/* v0.5.9: Calendar grid matches navy/gold tournament forms. */
.gcal-wrap { --gcal-calendar-navy:var(--pbc-primary,#192954); --gcal-calendar-gold:var(--pbc-accent,#f5b942); }
.gcal-wrap .fc, .gcal-wrap .fc .fc-view-harness, .gcal-wrap .fc .fc-view,
.gcal-wrap .fc .fc-scrollgrid, .gcal-wrap .fc .fc-scrollgrid-section,
.gcal-wrap .fc .fc-scrollgrid-section > td, .gcal-wrap .fc .fc-scrollgrid-section > th,
.gcal-wrap .fc .fc-daygrid-body, .gcal-wrap .fc .fc-daygrid-body table,
.gcal-wrap .fc .fc-scrollgrid-sync-table, .gcal-wrap .fc .fc-daygrid-day,
.gcal-wrap .fc .fc-daygrid-day-frame, .gcal-wrap .fc .fc-col-header,
.gcal-wrap .fc .fc-col-header-cell, .gcal-wrap .fc .fc-timegrid-body,
.gcal-wrap .fc .fc-timegrid-slot, .gcal-wrap .fc .fc-timegrid-col {
 background:var(--gcal-calendar-navy)!important;
 color:#fff!important;
}
.gcal-wrap .fc.fc-theme-standard td, .gcal-wrap .fc.fc-theme-standard th,
.gcal-wrap .fc .fc-scrollgrid, .gcal-wrap .fc .fc-scrollgrid-section > td,
.gcal-wrap .fc .fc-scrollgrid-section > th,
.gcal-wrap .fc .fc-daygrid-day, .gcal-wrap .fc .fc-col-header-cell,
.gcal-wrap .fc .fc-timegrid-slot, .gcal-wrap .fc .fc-timegrid-col {
 border-color:var(--gcal-calendar-gold)!important;
}
.gcal-wrap .fc .fc-daygrid-day-number, .gcal-wrap .fc .fc-daygrid-day-top a,
.gcal-wrap .fc .fc-col-header-cell-cushion, .gcal-wrap .fc .fc-timegrid-axis-cushion,
.gcal-wrap .fc .fc-timegrid-slot-label-cushion {
 color:#fff!important; -webkit-text-fill-color:#fff!important; opacity:1!important;
 text-decoration:none!important;
}
.gcal-wrap .fc .fc-col-header-cell-cushion {
 background:transparent!important; padding:8px 5px!important; font-weight:700!important;
}
.gcal-wrap .fc .fc-day-today, .gcal-wrap .fc .fc-daygrid-day.fc-day-today,
.gcal-wrap .fc .fc-timegrid-col.fc-day-today {
 background:#243e74!important;
}
.gcal-wrap .fc .fc-day-other .fc-daygrid-day-number {color:#cbd5e1!important;-webkit-text-fill-color:#cbd5e1!important;opacity:1!important}
.gcal-wrap .fc .fc-daygrid-day-frame { min-height:110px!important; }
.gcal-wrap .fc .fc-toolbar-title {color:var(--gcal-calendar-navy)!important}
.gcal-wrap .fc .fc-highlight {background:rgba(245,185,66,.18)!important}
@media(max-width:700px){.gcal-wrap .fc .fc-daygrid-day-frame{min-height:75px!important}}

/* v0.5.10: Keep the full month/year title legible on navy toolbar. */
.gcal-wrap .fc .fc-toolbar-title { color:#ffffff!important; -webkit-text-fill-color:#ffffff!important; background:transparent!important; opacity:1!important; visibility:visible!important; font-size:clamp(1.35rem,2.2vw,2rem)!important; line-height:1.3!important; white-space:normal!important; width:auto!important; max-width:none!important; overflow:visible!important; }
.gcal-wrap .fc .fc-toolbar-chunk { min-width:0; }
