/* =========================
   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;
}

/* =========================
   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;
}

/* =========================
   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;
}

