.jogec-calendar,
.jogec-submit-panel,
.jogec-form-notice {
    --jogec-navy: #000c55;
    --jogec-blue: #0626c9;
    --jogec-gold: #be9f5d;
    --jogec-gold-soft: #f4ecd9;
    --jogec-border: #d9dde7;
    --jogec-text: #121934;
    --jogec-muted: #626b7e;
    --jogec-surface: #ffffff;
    --jogec-soft: #f5f6fa;
    --jogec-social: #8054a6;
    --jogec-explore: #167f69;
    --jogec-race: #c81c0f;
    --jogec-committee: #1749b5;
    color: var(--jogec-text);
    font-family: inherit;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.jogec-calendar-heading {
    margin: 0 0 18px !important;
    color: var(--jogec-navy) !important;
    font-size: clamp(1.9rem, 4vw, 3rem) !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    letter-spacing: normal !important;
    text-align: center;
    text-transform: none !important;
}

.jogec-calendar *,
.jogec-calendar *::before,
.jogec-calendar *::after,
.jogec-submit-panel *,
.jogec-submit-panel *::before,
.jogec-submit-panel *::after {
    box-sizing: border-box;
}

.jogec-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin: 0 0 18px;
    padding: 12px 15px;
    border-left: 5px solid var(--jogec-gold);
    border-radius: 8px;
    background: var(--jogec-soft);
}

.jogec-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--jogec-text);
}

.jogec-legend-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 999px;
    background: currentColor;
}

.jogec-type-social { color: var(--jogec-social); }
.jogec-type-explore { color: var(--jogec-explore); }
.jogec-type-race { color: var(--jogec-race); }
.jogec-type-committee { color: var(--jogec-committee); }

.jogec-main-panel {
    background: var(--jogec-surface);
    border: 2px solid var(--jogec-navy);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 9px 30px rgba(0, 12, 85, 0.14);
}

.jogec-main-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 23px 26px 19px;
    background: var(--jogec-navy);
    border-bottom: 5px solid var(--jogec-gold);
}

.jogec-main-heading h2,
.jogec-upcoming-heading h3,
.jogec-submit-heading h2 {
    margin: 0;
}

.jogec-main-title {
    display: block !important;
    color: #fff !important;
    font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.jogec-main-heading-copy {
    min-width: 0;
}

.jogec-main-heading-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.jogec-main-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.jogec-current-month,
.jogec-add-event-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    border: 2px solid var(--jogec-gold);
    border-radius: 9px;
    padding: 9px 14px;
    background: transparent;
    color: #fff !important;
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
}

.jogec-add-event-link {
    background: var(--jogec-gold);
    color: var(--jogec-navy) !important;
}

.jogec-current-month:hover,
.jogec-current-month:focus-visible,
.jogec-add-event-link:hover,
.jogec-add-event-link:focus-visible {
    background: var(--jogec-gold);
    color: var(--jogec-navy) !important;
    outline: 3px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.jogec-current-month[hidden] {
    display: none !important;
}

.jogec-main-heading p,
.jogec-upcoming-heading p,
.jogec-submit-heading p {
    margin: 4px 0 0;
    font-size: 0.92rem;
}

.jogec-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
}

.jogec-weekday {
    padding: 11px 8px;
    text-align: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--jogec-navy);
    background: var(--jogec-gold-soft);
    border-right: 1px solid #d8c9a7;
    border-bottom: 1px solid #d8c9a7;
}

.jogec-weekday:nth-child(7) {
    border-right: 0;
}

.jogec-weekday-short {
    display: none;
}

.jogec-day {
    min-width: 0;
    min-height: 122px;
    padding: 8px;
    border-right: 1px solid var(--jogec-border);
    border-bottom: 1px solid var(--jogec-border);
    background: #fff;
    overflow: hidden;
}

.jogec-day:nth-child(7n) {
    border-right: 0;
}

.jogec-day.is-outside {
    background: var(--jogec-soft);
    color: #98a0b0;
}

.jogec-day.is-today {
    box-shadow: inset 0 0 0 3px var(--jogec-gold);
}

.jogec-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    margin: 0 0 5px auto;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
}

.jogec-day.is-today .jogec-day-number {
    background: var(--jogec-navy);
    color: #fff;
}

.jogec-day-events {
    min-width: 0;
}

.jogec-event {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 7px;
    padding: 5px 7px;
    margin: 0 0 5px;
    text-align: left;
    color: #fff !important;
    font: inherit;
    font-size: 0.76rem;
    line-height: 1.25;
    cursor: pointer;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.jogec-event:hover,
.jogec-event:focus-visible {
    filter: brightness(0.92);
    outline: 2px solid var(--jogec-gold);
    outline-offset: 1px;
}

.jogec-event.jogec-type-social { background: var(--jogec-social); }
.jogec-event.jogec-type-explore { background: var(--jogec-explore); }
.jogec-event.jogec-type-race { background: var(--jogec-race); }
.jogec-event.jogec-type-committee { background: var(--jogec-committee); }

.jogec-event-time {
    display: block;
    opacity: 0.86;
    font-size: 0.7rem;
    margin-bottom: 1px;
}

.jogec-mobile-agenda {
    display: none;
}

.jogec-upcoming-heading {
    margin: 30px 0 13px;
    padding-left: 13px;
    border-left: 5px solid var(--jogec-gold);
}

.jogec-upcoming-heading h3 {
    color: var(--jogec-navy);
}

.jogec-upcoming-heading p {
    color: var(--jogec-muted);
}

.jogec-mini-calendars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.jogec-mini-month {
    appearance: none;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--jogec-border);
    border-top: 5px solid var(--jogec-navy);
    border-radius: 14px;
    background: var(--jogec-surface);
    color: var(--jogec-text);
    padding: 10px 12px 12px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.jogec-mini-month:hover,
.jogec-mini-month:focus-visible,
.jogec-mini-month.is-selected {
    border-color: var(--jogec-gold);
    box-shadow: 0 7px 20px rgba(0, 12, 85, 0.13);
    transform: translateY(-2px);
    outline: none;
}

.jogec-mini-month.is-selected {
    background: var(--jogec-gold-soft);
}

.jogec-mini-title {
    display: block;
    margin-bottom: 8px;
    text-align: center;
    color: var(--jogec-navy);
    font-weight: 800;
    font-size: 0.93rem;
}

.jogec-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}

.jogec-mini-day {
    min-width: 0;
    min-height: 20px;
    padding: 2px 0;
    border-radius: 4px;
    text-align: center;
    font-size: 0.64rem;
    color: var(--jogec-muted);
    position: relative;
}

.jogec-mini-day.is-outside {
    opacity: 0.25;
}

.jogec-mini-day.has-events {
    font-weight: 800;
    color: var(--jogec-navy);
    background: var(--jogec-gold-soft);
}

.jogec-mini-dots {
    display: flex;
    justify-content: center;
    gap: 1px;
    height: 4px;
    margin-top: 1px;
}

.jogec-mini-dot {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.jogec-dialog {
    width: min(620px, calc(100% - 30px));
    max-height: 85vh;
    border: 2px solid var(--jogec-navy);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    overflow: auto;
}

.jogec-dialog::backdrop {
    background: rgba(0, 12, 85, 0.72);
}

.jogec-dialog-close {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 2;
    margin: 12px 12px 0 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--jogec-gold-soft);
    color: var(--jogec-navy);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.jogec-dialog-content {
    padding: 28px 30px 30px;
}

.jogec-dialog-type {
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 800;
}

.jogec-dialog-type.jogec-type-social { background: var(--jogec-social); }
.jogec-dialog-type.jogec-type-explore { background: var(--jogec-explore); }
.jogec-dialog-type.jogec-type-race { background: var(--jogec-race); }
.jogec-dialog-type.jogec-type-committee { background: var(--jogec-committee); }

.jogec-dialog h3 {
    margin: 0 45px 10px 0;
    color: var(--jogec-navy);
    font-size: 1.55rem;
}

.jogec-dialog-meta {
    margin: 0 0 18px;
    color: var(--jogec-muted);
}

.jogec-dialog-meta div + div {
    margin-top: 4px;
}

.jogec-dialog-details > :first-child { margin-top: 0; }
.jogec-dialog-details > :last-child { margin-bottom: 0; }

.jogec-dialog-link {
    display: inline-flex;
    margin-top: 18px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--jogec-navy);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}

.jogec-submit-panel[hidden] {
    display: none !important;
}

.jogec-submit-panel {
    margin-top: 34px;
    border: 2px solid var(--jogec-navy);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 9px 30px rgba(0, 12, 85, 0.11);
}

.jogec-submit-heading {
    padding: 21px 25px 18px;
    border-bottom: 5px solid var(--jogec-gold);
    background: var(--jogec-navy);
    color: #fff;
}

.jogec-submit-heading h2 {
    color: #fff !important;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.jogec-submit-heading p {
    color: rgba(255, 255, 255, 0.78);
}

.jogec-event-form {
    padding: 24px 25px 26px;
}

.jogec-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.jogec-event-form p {
    margin: 0;
}

.jogec-form-full {
    grid-column: 1 / -1;
}

.jogec-event-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--jogec-navy);
    font-weight: 750;
}

.jogec-event-form input,
.jogec-event-form select,
.jogec-event-form textarea {
    width: 100%;
    max-width: none;
    min-height: 44px;
    border: 1px solid #b9c0ce;
    border-radius: 8px;
    padding: 9px 11px;
    background: #fff;
    color: var(--jogec-text);
    font: inherit;
}

.jogec-event-form textarea {
    min-height: 120px;
    resize: vertical;
}

.jogec-event-form input:focus,
.jogec-event-form select:focus,
.jogec-event-form textarea:focus {
    border-color: var(--jogec-blue);
    outline: 3px solid rgba(6, 38, 201, 0.15);
}

.jogec-submit-button {
    margin-top: 20px;
    border: 0;
    border-radius: 9px;
    padding: 12px 18px;
    background: var(--jogec-gold);
    color: var(--jogec-navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.jogec-submit-button:hover,
.jogec-submit-button:focus-visible {
    filter: brightness(0.96);
    outline: 3px solid rgba(190, 159, 93, 0.35);
    outline-offset: 2px;
}

.jogec-form-message,
.jogec-form-notice {
    margin-top: 18px;
    padding: 13px 16px;
    border-left: 5px solid var(--jogec-navy);
    background: var(--jogec-soft);
    font-weight: 650;
}

.jogec-submit-panel .jogec-form-message {
    margin: 20px 25px 0;
}

.jogec-form-message.is-success {
    border-left-color: var(--jogec-explore);
    background: #edf8f4;
}

.jogec-form-message.is-error {
    border-left-color: var(--jogec-race);
    background: #fff0ee;
}

.jogec-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .jogec-mini-calendars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jogec-main-heading {
        align-items: flex-start;
    }

    .jogec-day {
        min-height: 98px;
        padding: 5px;
    }

    .jogec-event {
        padding: 4px 5px;
        font-size: 0.7rem;
    }
}

@media (max-width: 700px) {
    .jogec-calendar,
    .jogec-submit-panel {
        width: 100%;
        max-width: 100%;
    }

    .jogec-legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 11px 12px;
    }

    .jogec-legend-item {
        min-width: 0;
        font-size: 0.78rem;
    }

    .jogec-main-panel,
    .jogec-submit-panel {
        border-radius: 12px;
        overflow: hidden;
    }

    .jogec-main-heading {
        display: block;
        padding: 17px 16px 15px;
    }

    .jogec-main-actions {
        justify-content: flex-start;
        margin-top: 13px;
    }

    .jogec-current-month,
    .jogec-add-event-link {
        flex: 1 1 170px;
        padding: 8px 10px;
        font-size: 0.86rem;
    }

    .jogec-calendar-grid {
        width: 100%;
        min-width: 0;
    }

    .jogec-weekday {
        min-width: 0;
        padding: 8px 1px;
        font-size: 0.7rem;
    }

    .jogec-weekday-full {
        display: none;
    }

    .jogec-weekday-short {
        display: inline;
    }

    .jogec-day {
        min-width: 0;
        min-height: 58px;
        padding: 3px 2px 4px;
        overflow: hidden;
    }

    .jogec-day-number {
        width: 23px;
        height: 23px;
        margin: 0 auto 2px;
        font-size: 0.74rem;
    }

    .jogec-day-events {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 3px;
    }

    .jogec-event {
        display: block;
        width: 9px;
        height: 9px;
        flex: 0 0 9px;
        margin: 0;
        padding: 0;
        border-radius: 999px;
        overflow: hidden;
        text-indent: -9999px;
    }

    .jogec-event-time,
    .jogec-event-title {
        display: none;
    }

    .jogec-mobile-agenda {
        display: block;
        padding: 18px 14px 16px;
        border-top: 4px solid var(--jogec-gold);
        background: var(--jogec-soft);
    }

    .jogec-mobile-agenda h3 {
        margin: 0 0 11px;
        color: var(--jogec-navy);
        font-size: 1.1rem;
    }

    .jogec-no-events {
        margin: 0;
        color: var(--jogec-muted);
    }

    .jogec-agenda-event {
        appearance: none;
        display: block;
        width: 100%;
        margin: 0 0 9px;
        border: 1px solid var(--jogec-border);
        border-left: 7px solid currentColor;
        border-radius: 9px;
        padding: 10px 11px;
        background: #fff;
        color: var(--jogec-text);
        text-align: left;
        font: inherit;
        cursor: pointer;
    }

    .jogec-agenda-event:last-child {
        margin-bottom: 0;
    }

    .jogec-agenda-event.jogec-type-social { border-left-color: var(--jogec-social); }
    .jogec-agenda-event.jogec-type-explore { border-left-color: var(--jogec-explore); }
    .jogec-agenda-event.jogec-type-race { border-left-color: var(--jogec-race); }
    .jogec-agenda-event.jogec-type-committee { border-left-color: var(--jogec-committee); }

    .jogec-agenda-event:hover,
    .jogec-agenda-event:focus-visible {
        border-color: var(--jogec-gold);
        outline: 3px solid rgba(190, 159, 93, 0.22);
    }

    .jogec-agenda-date,
    .jogec-agenda-title,
    .jogec-agenda-meta {
        display: block;
    }

    .jogec-agenda-date {
        margin-bottom: 2px;
        color: var(--jogec-muted);
        font-size: 0.74rem;
        font-weight: 700;
    }

    .jogec-agenda-title {
        color: var(--jogec-navy);
        font-size: 0.96rem;
        font-weight: 800;
    }

    .jogec-agenda-meta {
        margin-top: 3px;
        color: var(--jogec-muted);
        font-size: 0.78rem;
    }

    .jogec-agenda-location::before {
        content: ' • ';
    }

    .jogec-upcoming-heading {
        margin-top: 24px;
    }

    .jogec-mini-calendars {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jogec-mini-month {
        padding: 10px 18px 13px;
    }

    .jogec-mini-day {
        min-height: 22px;
        font-size: 0.68rem;
    }

    .jogec-dialog {
        width: calc(100% - 20px);
        max-height: 90vh;
    }

    .jogec-dialog-content {
        padding: 24px 18px;
    }

    .jogec-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .jogec-form-full {
        grid-column: auto;
    }

    .jogec-submit-heading,
    .jogec-event-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jogec-submit-panel .jogec-form-message {
        margin-left: 16px;
        margin-right: 16px;
    }

    .jogec-submit-button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .jogec-calendar-heading {
        font-size: 1.72rem !important;
    }

    .jogec-legend {
        grid-template-columns: 1fr;
    }

    .jogec-main-title {
        font-size: 1.42rem !important;
    }

    .jogec-day {
        min-height: 54px;
    }
}
