/* =========================
   Base calendar shell
========================= */

.nbccCal {
  width: 100%;
  font-family: var(--_typography---font-family--paragraph);
  color: var(--black);
}

.nbccCalWrap {
  width: 100%;
}

/* Default behavior always */
.nbccCalHeader .nbccCalTitle {
  margin-left: 0 !important;
}

/* =========================
   Header
========================= */

.nbccCalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 3rem;
}

.nbccCalTitle {
  margin: 0;
  font-family: var(--_typography---font-family--headings);
  font-size: var(--_typography---size--h2);
  font-weight: var(--_typography---font-weight--super-bold);
  color: var(--primary--azure);
  line-height: 1;
}

.nbccCalActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nbccCalActionsLeft {
  margin-right: auto;
}

/* =========================
   Header buttons
========================= */

.nbccIcon {
  width: 60px;
  height: 60px;
  padding: 20px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nbccArrowIcon {
  width: 100%;
  height: 100%;
  display: block;
}

.nbccPrev {
  background: var(--primary--azure);
}

.nbccPrev:hover {
  background: var(--black);
}

.nbccNext {
  background: var(--black);
}

.nbccNext:hover {
  background: var(--primary--azure);
}

/* =========================
   Today button
========================= */

.nbccToday {
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--black) !important;
  background: var(--white);
  color: var(--black);

  font-family: var(--_typography---font-family--paragraph);
  font-weight: var(--_typography---font-weight--regular);
  font-size: var(--_typography---size--paragraph);

  cursor: pointer !important;
  transition: border-color 0.15s ease, color 0.15s ease;
  appearance: none;
}

.nbccToday:not(:disabled):hover {
  border-color: var(--primary--azure) !important;
  color: var(--primary--azure);
}

.nbccToday:disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
}

.nbccToday:disabled:hover {
  border-color: var(--black);
  color: var(--black);
}

/* =========================
   Calendar state helpers
========================= */

.nbccTodayHighlight {
  background: var(--primary--light-blue);
}

.nbccTodayHighlight:hover {
  background: var(--primary--hover--light-blue);
}

.nbccOutMonth {
  background: var(--light-gray);
}

.nbccPastDayEvents {
  opacity: 0.1;
}

/* =========================
   CMS item safety
========================= */

.nbccCmsItem {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.nbccCmsItem,
.nbccCmsItem * {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.nbccCmsItem img,
.nbccCmsItem video,
.nbccCmsItem svg,
.nbccCmsItem iframe,
.nbccCmsItem canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* =========================
   Tabs in calendar header
========================= */

.nbccCalTabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

.nbccCalTabs [data-events-tab] {
  padding: 8px 16px;
  border: 2px solid var(--primary--azure);
  border-radius: 999px;
  background: transparent;
  color: var(--primary--azure);
  font-family: var(--_typography---font-family--paragraph);
  font-size: var(--_typography---size--paragraph);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nbccCalTabs [data-events-tab]:hover {
  background: var(--primary--azure);
  color: var(--white);
}

.nbccCalTabs [data-events-tab][aria-pressed="true"],
.nbccCalTabs [data-events-tab].w--current {
  background: var(--primary--azure);
  color: var(--white);
}

/* Header tabs styling */
.event-view-filtering {
  justify-content: flex-start;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
}

.event-view-filtering-link {
  opacity: .5;
  border: 2px solid #0000;
  border-radius: 10px;
  padding: .5rem;
  transition: opacity .2s;
}

.event-view-filtering-link.is-active {
  border-color: var(--black);
  opacity: 1;
}

.event-view-filtering-link:hover {
  opacity: 1;
}

.event-view-filtering-icon {
  object-fit: contain;
  width: 1rem;
  height: 1rem;
  display: block;
}

@media screen and (max-width: 767px) {
  [tabs-wrapper="controls"] [data-events-tab="grid"],
  .event-view-filtering [data-events-tab="grid"],
  [data-nbcc-header-tabs="true"] [data-events-tab="grid"] {
    display: none !important;
  }
}

/* =========================
   Desktop calendar layout
========================= */

.nbccWeekdays,
.nbccGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.nbccWeekdays {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.nbccWeekday {
  text-align: center;
  padding: 14px 12px;
  font-weight: var(--_typography---font-weight--bold);
  letter-spacing: 0.8px;
  font-size: var(--_typography---size--small);
}

.nbccGrid {
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.nbccCell,
.nbccBlank {
  background: var(--white);
  padding: 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  position: relative;
}

/* Square min height */
.nbccCell::before,
.nbccBlank::before {
  content: "";
  float: left;
  padding-top: 100%;
}

.nbccCell::after,
.nbccBlank::after {
  content: "";
  display: block;
  clear: both;
}

/* Remove last column + last row borders */
.nbccGrid :is(.nbccCell, .nbccBlank):nth-child(7n) {
  border-right: 0;
}

.nbccGrid :is(.nbccCell, .nbccBlank):nth-last-child(-n + 7) {
  border-bottom: 0;
}

.nbccCell:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* Day states (desktop cells) */
.nbccOutMonth {
  background: var(--light-gray);
}

.nbccTodayHighlight {
  background: var(--primary--light-blue);
}

.nbccTodayHighlight:hover {
  background: var(--primary--hover--light-blue);
}

/* Day number */
.nbccDayNum {
  font-size: var(--_typography---size--small);
  font-weight: var(--_typography---font-weight--regular);
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.nbccDayNumOut {
  opacity: 0.35;
}

/* Events list inside day cell */
.nbccEvents {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.nbccPastDayEvents {
  opacity: 0.1;
}

/* CMS item width constraints inside desktop cells */
.nbccEventItem,
.nbccEventItem > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: block;
}

.nbccEventItem * {
  max-width: 100% !important;
  box-sizing: border-box;
}

.nbccEventItem .calendar-event-item.w-dyn-item,
.nbccSlideInner .calendar-event-item.w-dyn-item {
  height: auto !important;
  min-height: 0 !important;
  line-height: 0 !important;
}

.nbccEventItem .calendar-event-item.w-dyn-item {
  align-self: auto !important;
}

/* Today button hover only when enabled (defensive) */
.nbccToday:disabled {
  cursor: default;
}

.nbccToday:disabled:is(:hover, :focus, :active) {
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.nbccToday:not(:disabled):is(:hover, :focus-visible) {
  cursor: pointer;
}

/* =========================
   Mobile calendar header
========================= */

.nbccCalHeaderMobile {
  margin-bottom: 2rem;
}

.nbccCalActionsMobile {
  gap: 10px;
}

.nbccIconSm {
  width: 50px;
  height: 50px;
  padding: 14px;
}

.nbccTodaySm {
  height: 50px;
  padding: 0 16px;
}

/* =========================
   Mobile weekday row
========================= */

.nbccMobileWeekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.nbccMobilePill {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 15px;
  padding: 10px 0;
  text-align: center;
  font-family: var(--_typography---font-family--paragraph);
  font-weight: var(--_typography---font-weight--bold);
  font-size: var(--_typography---size--paragraph);
}

/* =========================
   Mobile calendar grid
========================= */

.nbccMobileGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.nbccMobileDay {
  height: 64px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Interaction states */
.nbccMobileHasEvents {
  cursor: pointer;
}

.nbccMobileNoEvents {
  cursor: default;
}

.nbccMobileMuted {
  opacity: 0.35;
}

/* =========================
   Day number styles
========================= */

.nbccMobileNum {
  font-family: var(--_typography---font-family--paragraph);
  font-weight: var(--_typography---font-weight--regular);
  font-size: var(--_typography---size--paragraph);
  color: var(--black);
}

.nbccMobileNumOut,
.nbccMobileOutMonth .nbccMobileNumOut {
  color: rgba(0, 0, 0, 0.35);
}

/* Selected day */
.nbccMobileSelected {
  outline: 3px solid var(--primary--azure);
  outline-offset: -3px;
}

/* =========================
   Event dots
========================= */

.nbccDots {
  margin-top: 4px;
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.nbccDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary--azure);
}

.nbccDotPast {
  background: rgba(0, 0, 0, 0.35);
}

.nbccDayHasEventsDot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  margin-top: 4px;
}

/* =========================
   Button reset (mobile cells)
========================= */

.nbccCellMobile {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

/* Desktop slider */

.nbccSlider {
  width: 100%;
}

.nbccSliderStage {
  position: relative;
  width: 100%;
  min-height: 1px;
  overflow: visible;
}

/* Base slide */
.nbccSlide {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: visible;
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;

  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);

  /* keep line-height reset on wrapper only */
  line-height: 0;
}

/* Reset text/layout inside the actual event content */
.nbccSlide .nbccEventItem {
  line-height: normal;
}

.nbccSlideInner {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Positions */
.nbccSlide.pos-active {
  transform: translateY(-50%) translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.nbccSlide.pos-prev,
.nbccSlide.pos-next {
  opacity: 1;
  z-index: 2;
  pointer-events: none;
  transform: translateY(-50%) scale(0.76);
}

.nbccSlide.pos-prev {
  transform: translateY(-50%) translateX(calc(-12.5% - 7.5px)) scale(0.76);
}

.nbccSlide.pos-next {
  transform: translateY(-50%) translateX(calc(12.5% + 7.5px)) scale(0.76);
}

/* Overlay */
.nbccSlideOverlay {
  position: absolute;
  inset: 0;
  background: var(--primary--azure);
  border-radius: 10px;
  pointer-events: none;

  opacity: 0;
  transition: opacity 120ms ease;

  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Only peek slides show overlay when idle */
.nbccSlide.pos-prev .nbccSlideOverlay,
.nbccSlide.pos-next .nbccSlideOverlay {
  opacity: 0.5;
}

/* Bring incoming slide on top early */
.nbccSlide.will-be-active {
  z-index: 5;
}

.nbccSlide.will-be-active .nbccSlideOverlay {
  opacity: 0;
}

/* During animation, fade overlay ON for outgoing active */
.nbccSliderStage.is-animating.dir-next .nbccSlide.pos-active .nbccSlideOverlay,
.nbccSliderStage.is-animating.dir-prev .nbccSlide.pos-active .nbccSlideOverlay {
  opacity: 0.5;
}

/* Disable slide transitions during reset snap */
.nbccSliderStage.is-resetting :is(.nbccSlide, .nbccSlideOverlay) {
  transition: none !important;
}

/* Real carousel motion */
.nbccSliderStage.is-animating.dir-next .nbccSlide.pos-prev {
  transform: translateY(-50%) translateX(calc(12.5% + 7.5px)) scale(0.76);
}

.nbccSliderStage.is-animating.dir-next .nbccSlide.pos-active {
  transform: translateY(-50%) translateX(calc(-12.5% - 7.5px)) scale(0.76);
}

.nbccSliderStage.is-animating.dir-next .nbccSlide.pos-next {
  transform: translateY(-50%) translateX(0) scale(1);
}

.nbccSliderStage.is-animating.dir-prev .nbccSlide.pos-next {
  transform: translateY(-50%) translateX(calc(-12.5% - 7.5px)) scale(0.76);
}

.nbccSliderStage.is-animating.dir-prev .nbccSlide.pos-active {
  transform: translateY(-50%) translateX(calc(12.5% + 7.5px)) scale(0.76);
}

.nbccSliderStage.is-animating.dir-prev .nbccSlide.pos-prev {
  transform: translateY(-50%) translateX(0) scale(1);
}

/* Controls */
.nbccSlideControls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.nbccSlideBtn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nbccSlideBtn:disabled {
  opacity: 0.4;
  cursor: default;
}

.nbccSlideBtnInner {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.nbccSlideBtn:hover .nbccSlideBtnInner {
  border-color: var(--primary--azure);
}

.nbccSlideArrow {
  width: 12px;
  height: 12px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.nbccSlideDots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nbccDotBtn {
  height: 10px;
  width: 10px;
  border-radius: 100vw;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.nbccDotBtn.is-active {
  width: 20px;
  background: var(--primary--azure);
}

@keyframes nbccSkeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nbccEventSkeleton {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.nbccEventSkeletonBar {
  width: 100%;
  border-radius: 0.4rem;
  background: linear-gradient(
    90deg,
    rgba(220, 220, 220, 0.85) 0%,
    rgba(200, 200, 200, 0.95) 50%,
    rgba(220, 220, 220, 0.85) 100%
  );
  background-size: 200% 100%;
  animation: nbccSkeletonShimmer 1.1s ease-in-out infinite;
  opacity: 0.9;
}

.nbccEventSkeletonTitle {
  height: 0.9rem;
  max-width: 78%;
}

.nbccEventSkeletonDesc {
  height: 0.75rem;
  max-width: 92%;
  opacity: 0.8;
}

/* =========================
   Grid View Styles (Tabs variant - Grid tab only)
   ========================= */

/* Only apply when:
   1. Section has tabs-calendar-grid-list variant
   2. AND calendar-list has grid variant class
*/
.calendar-list:where(.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160),
.calendar-list.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160 {
  display: grid !important;
  grid-auto-columns: 1fr;
  gap: 1.75rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: auto auto;
}

.calendar-list:where(.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160) > .w-dyn-item,
.calendar-list.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160 > .w-dyn-item {
  overflow: hidden;
  width: 100%;
}

.calendar-list:where(.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160) > .w-dyn-item .event-item-wrapper,
.calendar-list.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160 > .w-dyn-item .event-item-wrapper {
  position: relative;
  overflow: hidden;
  border-style: solid;
  border-width: 1px;
  border-top-color: var(--primary--azure);
  border-right-color: var(--primary--azure);
  border-bottom-color: var(--primary--azure);
  border-left-color: var(--primary--azure);
  border-radius: 15px;
  background-color: var(--white);
}

.calendar-list:where(.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160) > .w-dyn-item .event-item-content,
.calendar-list.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160 > .w-dyn-item .event-item-content {
  padding: 1.2rem;
}

@media screen and (max-width: 991px) {
  .calendar-list:where(.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160),
  .calendar-list.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 767px) {
  .calendar-list:where(.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160),
  .calendar-list.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160 {
    gap: 1rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  
  .calendar-list:where(.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160) > .w-dyn-item .event-item-content,
  .calendar-list.w-variant-e5456ec7-1432-1a28-2c3b-ec86f41a3160 > .w-dyn-item .event-item-content {
    padding: 1rem;
  }
}

/* =========================
   List View Styles (Tabs variant - List tab only)
   ========================= */

/* Only apply when:
   1. Section has tabs-calendar-grid-list variant
   2. AND calendar-list has list variant class
*/
.calendar-list:where(.w-variant-9244d3b9-03cd-d843-a0f0-9dad3cb22b38),
.calendar-list.w-variant-9244d3b9-03cd-d843-a0f0-9dad3cb22b38 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

.event-item-wrapper:where(.w-variant-f3ea1b65-70d0-9300-1917-211036d00648),
.event-item-wrapper.w-variant-f3ea1b65-70d0-9300-1917-211036d00648 {
  display: grid !important;
  grid-template-columns: 0.5fr 1fr !important;
  grid-template-rows: auto;
  gap: 0 !important;
  position: relative;
  overflow: hidden;
  border-style: solid;
  border-width: 1px;
  border-top-color: var(--primary--azure);
  border-right-color: var(--primary--azure);
  border-bottom-color: var(--primary--azure);
  border-left-color: var(--primary--azure);
  border-radius: 15px;
  background-color: var(--white);
}

.event-item-wrapper:where(.w-variant-f3ea1b65-70d0-9300-1917-211036d00648) .event-item-content,
.event-item-wrapper.w-variant-f3ea1b65-70d0-9300-1917-211036d00648 .event-item-content {
  padding: 1.2rem;
}

.w-dyn-item:where(.w-variant-9244d3b9-03cd-d843-a0f0-9dad3cb22b38),
.w-dyn-item.w-variant-9244d3b9-03cd-d843-a0f0-9dad3cb22b38 {
  overflow: hidden;
  width: 100%;
}

/* Image thumbnail styling for list view */
.event-image-thumbnail:where(.w-variant-f3ea1b65-70d0-9300-1917-211036d00648),
.event-image-thumbnail.w-variant-f3ea1b65-70d0-9300-1917-211036d00648 {
  overflow: hidden;
  min-height: 100%;
  height: 100%;
}

.event-image-thumbnail:where(.w-variant-f3ea1b65-70d0-9300-1917-211036d00648) img,
.event-image-thumbnail.w-variant-f3ea1b65-70d0-9300-1917-211036d00648 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  .event-item-wrapper:where(.w-variant-f3ea1b65-70d0-9300-1917-211036d00648),
  .event-item-wrapper.w-variant-f3ea1b65-70d0-9300-1917-211036d00648 {
    grid-template-columns: 1fr !important;
  }
  
  .event-item-wrapper:where(.w-variant-f3ea1b65-70d0-9300-1917-211036d00648) .event-item-content,
  .event-item-wrapper.w-variant-f3ea1b65-70d0-9300-1917-211036d00648 .event-item-content {
    padding: 1rem;
  }
}

/* =========================
   Carousel Styles
   ========================= */

/* Carousel viewport - show overflow so items aren't cut off */
[data-wf--events--section-variant="carousel"] .calendar-wrapper.w-dyn-list {
  overflow: visible !important;
}

/* Carousel track */
[data-wf--events--section-variant="carousel"] .calendar-list.w-dyn-items {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem;
}

/* Carousel items - ensure visible overflow */
[data-wf--events--section-variant="carousel"] .calendar-event-item {
  overflow: visible !important;
}

[data-wf--events--section-variant="carousel"] .w-dyn-item {
  overflow: visible !important;
}

/* Tablet: 2 items */
@media screen and (max-width: 991px) {
  [data-wf--events--section-variant="carousel"] .calendar-list.w-dyn-items {
    gap: 1.25rem;
  }
}

/* Mobile: 1 item */
@media screen and (max-width: 767px) {
  [data-wf--events--section-variant="carousel"] .calendar-list.w-dyn-items {
    gap: 1rem;
  }
}

