:root {
  --imm-cal-bg: #ffffff;
  --imm-cal-card: #ffffff;
  --imm-cal-navy: #253d6f;
    --imm-cal-text: #0f2b5b;
    --imm-cal-muted: #95a0b2;
    --imm-cal-border: #dfe4ec;
  --imm-cal-accent: #efb243;
}

.imm-event-detail-header {
  margin: 0 0 16px;
  background: #253d6f;
}

.imm-event-detail-header__inner,
.imm-event-detail-meta__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.imm-event-detail-header__inner {
  padding: 22px 0;
}

.imm-event-detail-header__title {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.imm-event-detail-meta {
  margin: 0 0 18px;
}

.imm-event-detail-meta__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px;
}

.imm-event-detail-meta__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f7f9a;
  font-size: 14px;
  text-decoration: none;
}

.imm-event-detail-meta__back:hover {
  text-decoration: underline;
}

.imm-event-detail-meta__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e7ebf1;
  color: #253d6f;
  font-size: 15px;
  font-weight: 600;
}

.imm-event-detail-meta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.imm-event-detail-content,
.event-attachments {
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 0 32px;
}

.imm-event-detail-content__card,
.imm-event-detail-meeting__card,
.event-attachments__inner {
  border: 1px solid #d9deea;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 52, 96, 0.06);
}

.imm-event-detail-content__body {
  padding: 30px 34px;
  color: #1d2d47;
  font-size: 22px;
  line-height: 1.55;
}

.imm-event-detail-content__body p {
  margin: 0 0 1.1em;
}

.imm-event-detail-content__body p:last-child {
  margin-bottom: 0;
}

.imm-event-detail-content__body a {
  color: #1d5cab;
}

.imm-event-private-meeting {
  margin: 0;
  color: #a22b2b;
  font-weight: 600;
}

.imm-event-detail-meeting__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid #e0e6f1;
  background: #f6f8fc;
  border-radius: 16px 16px 0 0;
}

.imm-event-detail-meeting__header h2 {
  margin: 0;
  color: #243d70;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.imm-event-detail-meeting__icon {
  color: #5e7091;
  font-size: 18px;
}

.imm-event-detail-meeting__body {
  padding: 22px;
}

.imm-event-detail-meeting__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #253d6f;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.imm-event-detail-meeting__button:hover {
  background: #1f335f;
  color: #ffffff;
  text-decoration: none;
}

.imm-event-detail-meeting__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 0;
  color: #5a6880;
  font-size: 17px;
}

.imm-event-detail-meeting__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.imm-event-detail-meeting__meta-item i {
  color: #6f7f9a;
  font-size: 14px;
}

.event-attachments__inner {
  padding: 22px;
}

.event-attachments h3 {
  margin: 0 0 12px;
  color: #243d70;
  font-size: 26px;
  font-weight: 700;
}

.event-attachments ul {
  margin: 0;
  padding-left: 20px;
}

.event-attachments li {
  margin: 0 0 8px;
}

/* Hide theme-native title/meta on single event detail pages */
body.single-imm_event_pages h1.entry-title,
body.single-imm_event_pages .entry-header,
body.single-imm_event_pages .entry-meta,
body.single-imm_event_pages .posted-on,
body.single-imm_event_pages .byline,
body.single-imm_event_pages .author,
body.single-imm_event_pages .wp-block-post-title,
body.single-imm_event_pages .wp-block-post-title + .is-layout-flex,
body.single-imm_event_pages .wp-block-post-author {
  display: none !important;
}

body.single-imm_event_pages main {
    margin-top: 0 !important;
}

.fc-toolbar-container {
    width: var(--wp--style--global--content-size);
    margin-left: 1%;
}

.toolbar.fc {
    display: flex !important;
    align-items: center;
    flex-direction: row !important;
    gap: 6px;
    margin: 0 0 16px;
    border: 1px solid #cfd7e3;
    background: var(--imm-cal-bg);
    border-radius: 16px;
    padding: 5px;
    width: fit-content;
}

.toolbar.fc #listBtn,
.toolbar.fc #gridBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    min-width: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 9px 16px;
    background: transparent;
    color: #647089;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.toolbar.fc #listBtn:hover,
.toolbar.fc #gridBtn:hover {
    /* border-color: #d3d9e4; */
    color: #3a4967;
}

.toolbar.fc #listBtn.fc-button-active,
.toolbar.fc #gridBtn.fc-button-active {
    background: #1f3f76 !important;
    /* border-color: #1f3f76 !important; */
    color: #ffffff !important;
}

.toolbar.fc #listBtn i,
.toolbar.fc #gridBtn i {
    font-size: 14px;
    opacity: 0.75;
}

.toolbar.fc #listBtn span,
.toolbar.fc #gridBtn span {
    font-size: 16px;
    font-weight: 600;
}

.toolbar.fc #listBtn.fc-button-active i,
.toolbar.fc #gridBtn.fc-button-active i {
    opacity: 1;
}

.toolbar.fc .fc-button-primary {
    background: var(--imm-cal-navy);
    border-color: var(--imm-cal-navy);
    color: #ffffff;
    box-shadow: none;
}

.toolbar.fc .fc-button-primary:hover {
    background: #1f345f;
    border-color: #1f345f;
}


div[id^="wpgc_fc_"] {
    background: var(--imm-cal-bg);
    border-radius: 16px;
    padding: 20px;
}

.imm-calendar-shell {
    position: relative;
    min-height: 220px;
}

.imm-calendar-loader {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.imm-calendar-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.imm-calendar-loader__spinner {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid #cfd7e3;
    border-top-color: #1f3f76;
    animation: imm-calendar-spin 0.75s linear infinite;
}

.imm-calendar-loader__label {
    color: #253d6f;
    font-size: 14px;
    font-weight: 600;
}

@keyframes imm-calendar-spin {
    to {
        transform: rotate(360deg);
    }
}

.toolbar.fc+div .fc .fc-toolbar-title {
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--imm-cal-accent);
    color: #0d2550;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.06;
    font-family: Georgia, "Times New Roman", serif;
}


.toolbar.fc+div .fc .fc-view-harness {
    background: var(--imm-cal-card);
    border: 1px solid var(--imm-cal-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 34, 67, 0.1);
    overflow: hidden;
}

.fc-button {
    border-radius: 12px;
}

.fc .fc-toolbar {
    justify-content: flex-start;
}

.fc-toolbar-chunk:first-child {
    margin-right: 20px;
}

.fc-toolbar-chunk .fc-button-group {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.fc-toolbar-chunk .fc-button-group>.fc-button {
    margin: 0 !important;
    border-radius: 12px !important;
}

.fc-prev-button,
.fc-next-button {
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 12px !important;
    margin: 0 5px;
    background-color: var(--imm-cal-navy) !important;
}

.fc .fc-view-harness {
    background: var(--imm-cal-card);
    border: 1px solid var(--imm-cal-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 34, 67, 0.1);
    overflow: hidden;
}

.fc .fc-scrollgrid {
    border-radius: 14px;
    overflow: hidden;
}

.toolbar.fc+div .fc .fc-col-header,
.toolbar.fc+div .fc .fc-daygrid-body {
    width: 100% !important;
}

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

.toolbar.fc+div .fc .fc-col-header-cell {
    background: var(--imm-cal-navy);
    border-color: var(--imm-cal-navy);
}

.fc .fc-scrollgrid-section-header th,
.fc .fc-col-header-cell {
    background: var(--imm-cal-navy) !important;
    border-color: var(--imm-cal-navy) !important;
}

.toolbar.fc+div .fc .fc-col-header-cell-cushion {
    padding: 14px 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fc .fc-col-header-cell-cushion {
    padding: 14px 8px;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.toolbar.fc+div .fc .fc-daygrid-day {
    background: #ffffff;
    border-color: var(--imm-cal-border);
}

.toolbar.fc+div .fc .fc-day-other {
    background: #f8f9fb;
}

.toolbar.fc+div .fc .fc-daygrid-day-number {
    padding: 10px 12px;
    color: var(--imm-cal-text);
    font-size: 14px;
    font-weight: 400;
}

.fc .fc-daygrid-day {
    background: #ffffff;
    border-color: var(--imm-cal-border);
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(246, 165, 10, 0.15);
}

.fc .fc-day-other {
    background: #f8f9fb;
}

.fc .fc-daygrid-day-number {
    padding: 10px 12px;
    color: var(--imm-cal-text);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

.toolbar.fc+div .fc .fc-daygrid-day.fc-day-today {
    background: #f4f7fb;
}

.toolbar.fc+div .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    font-weight: 700;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 6px 8px 0 0;
    border-radius: 999px;
    background: rgba(246, 165, 10, 1);
    font-weight: 700;
    line-height: 1;
}

.fc-list-table td,
.fc-list-table th,
.fc-list {
    border: 0 !important;
}

.fc .fc-list {
    background: transparent;
}

.fc .fc-list-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.fc .fc-list-day>th {
    padding: 0 !important;
}

.fc .fc-list-day-cushion {
    display: block;
    padding: 0 !important;
    border: 1px solid #ccd4e1;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #263f6f;
}

.imm-list-day-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.imm-list-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #3b5586;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.imm-list-day-meta {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    color: #ffffff;
}

.imm-list-day-month {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.imm-list-day-weekday {
    opacity: 0.9;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.imm-list-day-count {
    margin-left: auto;
    padding: 6px 15px;
    border-radius: 999px;
    background: #3b5586;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.fc .fc-list-event {
    background: transparent;
    position: relative;
    cursor: pointer;
}

.fc .fc-list-event td {
    padding: 14px 12px;
    border-bottom: 1px solid #e4e8ef !important;
    background: transparent;
}

.fc .fc-list-event-graphic {
    width: 0;
    padding: 0 !important;
}

.fc .fc-list-event-dot {
    display: none !important;
}

.fc .fc-list-event-time {
    display: none;
    /* width: 90px;
  color: #6e7d97;
  font-size: 12px;
  font-weight: 500; */
}

.fc .fc-list-event-title {
    position: relative;
    padding-left: 30px !important;
    padding-right: 170px !important;
    vertical-align: middle;
}

.fc .fc-list-event-title::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 3px;
    height: 32px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: #edaf34;
}

.fc .fc-list-event.fc-event-past .fc-list-event-title::before {
    background: #c5ccd7;
}

.fc .fc-list-event-title a {
    color: #0b1f45;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.fc-event-past .fc-list-event-title a {
    color: #95a0b2;
    background: transparent;
}

.fc .fc-list-event-title a:hover {
    text-decoration: none;
}

.imm-list-event-meta {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    width: fit-content;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.imm-list-event-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

.imm-list-event-status.is-future {
    background: #f9f1e3;
    color: #e3a622;
}

.imm-list-event-status.is-past {
    background: #edf1f5;
    color: #8896ad;
}

.imm-list-event-chevron {
    color: #c4ccd9;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.imm-list-event-time-inline {
    display: block;
    margin-top: 4px;
    color: #78859b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.fc-event-description {
    margin-top: 2px;
    color: #555555;
    font-size: 0.85em;
    line-height: 1.3;
}

.fc-event-main img {
    width: 40px;
    height: auto;
    margin-right: 6px;
    vertical-align: middle;
}

.fc-event,
.fc-h-even {
    margin: 0 !important;
}

.fc-daygrid-event-dot,
.fc-event-time {
    display: none;
}

.fc-h-event {
    border: none;
    background: transparent;
}

.fc-h-event:hover,
.fc-daygrid-dot-event.fc-event-mirror,
.fc-daygrid-dot-event:hover {
    background: transparent !important;
}

.fc-event-title {
    display: inline-block;
    margin: 2px 6px;
    border-radius: 999px;
    padding: 2px 9px !important;
    font-size: 12px;
    line-height: 1.35;
    color: #3c547b;
    background: #edf1f6;
    font-family: var(--wp--preset--font-family--manrope);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.fc-event-past .fc-event-title {
    color: #95a0b2;
    background: #f3f5f8;
}

.fc-event-future .fc-event-title,
.fc-event-today .fc-event-title {
    color: #4d6388;
    background: #e9eef5;
}

.fc-event-title:hover {
    box-shadow: 0 5px 12px rgba(24, 45, 79, 0.18);
    transform: translateY(-1px);
}

.tippy-box[data-theme~="calendar-tooltip"] {
    min-width: 200px;
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #ffffff;
    color: #333333;
    font-size: 0.85em;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .imm-event-detail-header__inner,
    .imm-event-detail-meta__inner,
    .imm-event-detail-content,
    .event-attachments {
        padding-left: 20px;
        padding-right: 20px;
    }

    .imm-event-detail-header__title {
        font-size: 25px;
    }

    .imm-event-detail-content__body {
        font-size: 20px;
        padding: 24px;
    }

    .imm-event-detail-meeting__header h2,
    .event-attachments h3 {
        font-size: 30px;
    }

    .imm-event-detail-meeting__button {
        font-size: 20px;
    }

    /* .toolbar.fc+div {
        padding: 14px;
        border-radius: 12px;
    }

    .toolbar.fc+div .fc .fc-toolbar-title {
        font-size: 40px;
    }

    .fc .fc-toolbar-title {
        font-size: 40px;
    }

    .toolbar.fc+div .fc .fc-col-header-cell-cushion {
        font-size: 14px;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 14px;
    }

    .toolbar.fc+div .fc .fc-daygrid-day-number {
        font-size: 13px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 13px;
    }

    .imm-list-day-month {
        font-size: 24px;
    }

    .imm-list-day-weekday {
        font-size: 20px;
    }

    .imm-list-day-count {
        font-size: 20px;
    } */
}

@media (max-width: 768px) {
    .imm-event-detail-header {
        margin-bottom: 18px;
    }

    .imm-event-detail-header__inner,
    .imm-event-detail-meta__inner,
    .imm-event-detail-content,
    .event-attachments {
        padding-left: 14px;
        padding-right: 14px;
    }

    .imm-event-detail-header__inner {
        padding: 22px 16px;
    }

    .imm-event-detail-header__title {
        font-size: 20px;
    }

    .imm-event-detail-meta__date {
        font-size: 13px;
        padding: 6px 12px;
    }

    .imm-event-detail-content__body {
        padding: 18px;
        font-size: 17px;
        line-height: 1.5;
    }

    .imm-event-detail-meeting__header h2,
    .event-attachments h3 {
        font-size: 22px;
    }

    .imm-event-detail-meeting__button {
        width: 100%;
        justify-content: center;
        font-size: 18px;
    }

    .imm-event-detail-meeting__meta {
        flex-direction: column;
        gap: 8px;
        font-size: 15px;
    }

    .fc-toolbar-container,
    .toolbar.fc {
        display: none !important;
    }

    .toolbar.fc #gridBtn,
    .toolbar.fc+div .fc .fc-dayGridMonth-button {
        display: none !important;
    }

    .fc .fc-dayGridMonth-button {
        display: none !important;
    }

    .toolbar.fc+div .fc .fc-toolbar {
        margin-bottom: 12px;
    }

    .toolbar.fc+div .fc .fc-toolbar-title {
        font-size: 34px;
    }

    .fc .fc-toolbar-title {
        font-size: 34px;
    }

}
