/*
 * Chinmaya Mission UK — Class schedule and events
 * Values come from the Figma frames "Regular Classes" (desktop 1525px, mobile 370px); the events list reuses them.
 * Mobile-first; the desktop layout starts at 1024px.
 * Selectors are scoped to .cmuk-cs / dialogs inside it, with :hover/:focus variants written out,
 * so the theme's and Elementor kit's global button and link styles don't leak in.
 */

.cmuk-cs {
  --cmuk-brand: #ba324f;
  --cmuk-ink: #1a1a2e;
  --cmuk-heading: #101828;
  --cmuk-text: #4a5565;
  --cmuk-body: #364153;
  --cmuk-muted: #6a7282;
  --cmuk-faint: #9ca3af;
  --cmuk-line: #f3f4f6;
  --cmuk-border: #e5e7eb;
  --cmuk-peach: #fff4eb;
  --cmuk-orange: #f4a261;
  --cmuk-chip-border: #ffd6a7;
  --cmuk-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --cmuk-serif: 'Philosopher', Georgia, serif;

  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 16px 24px;
  background: var(--cmuk-peach);
  color: var(--cmuk-text);
  font-family: var(--cmuk-font);
  font-size: 14px;
  line-height: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.cmuk-cs *,
.cmuk-cs *::before,
.cmuk-cs *::after {
  box-sizing: border-box;
}

.cmuk-cs [hidden],
.cmuk-cs[hidden] {
  display: none !important;
}

.cmuk-cs p,
.cmuk-cs h2 {
  margin: 0;
  padding: 0;
}

.cmuk-cs img {
  display: block;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Hello Elementor's reset gives buttons nowrap, centred text and a magenta hover; undo that here.
   The Elementor kit also sets `button:hover, button:focus { color: #fff !important }`, which turned button text white on
   hover and after a click (a clicked button keeps focus). So the text colour of each button below is !important too. */
.cmuk-cs button {
  margin: 0;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  user-select: auto;
  transition: none;
  min-height: 0;
  cursor: pointer;
}

.cmuk-cs a {
  text-decoration: none;
}

.cmuk-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

html.cmuk-noscroll,
html.cmuk-noscroll body {
  overflow: hidden;
}

.cmuk-only-desktop {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Top controls: Events | Classes tabs, list / calendar view           */
/* ------------------------------------------------------------------ */

.cmuk-cs__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cmuk-cs .cmuk-tabs {
  display: inline-flex;
  align-items: flex-start;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--cmuk-border);
  border-radius: 14px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.06));
}

.cmuk-cs .cmuk-tab,
.cmuk-cs .cmuk-tab:hover,
.cmuk-cs .cmuk-tab:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 26px 9px 22px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--cmuk-muted) !important; /* tabs are buttons when both lists are shown; see the button note above */
  font-family: var(--cmuk-font);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.cmuk-cs .cmuk-tab img {
  width: 15px;
  height: 15px;
}

.cmuk-cs .cmuk-tab.is-active {
  background: var(--cmuk-brand);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cmuk-views {
  display: flex;
  gap: 8px;
}

.cmuk-cs .cmuk-view,
.cmuk-cs .cmuk-view:hover,
.cmuk-cs .cmuk-view:focus {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: #fff;
  border: 1px solid var(--cmuk-border);
  border-radius: 10px;
  color: var(--cmuk-muted);
  font-family: var(--cmuk-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.cmuk-cs .cmuk-view.is-active {
  border-color: var(--cmuk-orange);
  color: var(--cmuk-brand);
  font-weight: 500;
}

.cmuk-cs .cmuk-view img {
  width: 16px;
  height: 16px;
}

.cmuk-cs__left {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Filter chips (mobile)                                               */
/* ------------------------------------------------------------------ */

.cmuk-chips {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -4px -16px;
  padding: 4px 16px;
}

.cmuk-chips::-webkit-scrollbar {
  display: none;
}

.cmuk-cs .cmuk-chip,
.cmuk-cs .cmuk-chip:hover,
.cmuk-cs .cmuk-chip:focus {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 1px 17px;
  background: #fff;
  border: 1px solid var(--cmuk-chip-border);
  border-radius: 999px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
  color: #364153 !important;
  font-family: var(--cmuk-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.cmuk-cs .cmuk-chip img {
  width: 16px;
  height: 16px;
}

.cmuk-cs .cmuk-chip.is-active {
  border-color: var(--cmuk-brand);
  color: var(--cmuk-brand) !important;
}

.cmuk-chip__count:empty {
  display: none;
}

.cmuk-chip__count {
  margin-left: -4px;
}

/* ------------------------------------------------------------------ */
/* Class list                                                          */
/* ------------------------------------------------------------------ */

.cmuk-cs__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cmuk-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.cmuk-day__divider {
  height: 2px;
  background: var(--day-divider);
}

.cmuk-row__divider {
  height: 1px;
  background: var(--cmuk-line);
}

.cmuk-cs .cmuk-row,
.cmuk-cs .cmuk-row:hover,
.cmuk-cs .cmuk-row:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit !important;
  font-family: var(--cmuk-font);
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}

.cmuk-cs .cmuk-row:focus-visible {
  outline: 2px solid var(--cmuk-brand);
  outline-offset: -2px;
}

/* Hover-only changes are limited to devices with a mouse: on touch screens :hover sticks to the last thing tapped. */
@media (hover: hover) {
  .cmuk-cs .cmuk-row:hover .cmuk-row__name {
    color: var(--cmuk-brand);
  }
}

.cmuk-row__day {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 80px;
  white-space: nowrap;
}

.cmuk-row__dayname {
  color: var(--day-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.cmuk-row__date {
  color: var(--cmuk-faint);
  font-size: 12px;
  line-height: normal;
}

.cmuk-row__accent {
  flex: none;
  width: 2px;
  height: 40px;
  background: var(--day-line);
}

.cmuk-row__time {
  display: none;
}

.cmuk-row__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-left: 8px;
}

.cmuk-row__title {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--cmuk-ink);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.3px;
}

.cmuk-cs .cmuk-row__dot {
  flex: none;
  width: 7px;
  height: 7px;
}

.cmuk-row__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cmuk-row__sub {
  color: var(--cmuk-text);
  font-size: 12px;
  line-height: normal;
}

.cmuk-msg {
  padding: 32px 16px;
  color: var(--cmuk-muted);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.cmuk-cs .cmuk-link,
.cmuk-cs .cmuk-link:hover,
.cmuk-cs .cmuk-link:focus {
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--cmuk-brand);
  font-family: var(--cmuk-font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
}

.cmuk-more {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cmuk-cs .cmuk-more__btn,
.cmuk-cs .cmuk-more__btn:hover,
.cmuk-cs .cmuk-more__btn:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 19px 13px 23px;
  background: #fff;
  border: 1px solid var(--cmuk-brand);
  border-radius: 14px;
  color: var(--cmuk-brand) !important;
  font-family: var(--cmuk-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

@media (hover: hover) {
  .cmuk-cs .cmuk-more__btn:hover {
    background: #fff9f5;
  }
}

.cmuk-cs .cmuk-more__btn img {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ */
/* Filter panel (desktop sidebar and mobile sheet)                     */
/* ------------------------------------------------------------------ */

.cmuk-cs__side {
  display: none;
}

.cmuk-filters {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--cmuk-orange);
  border-radius: 16px;
}

.cmuk-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cmuk-cs .cmuk-filters__title {
  margin: 0;
  color: var(--cmuk-brand);
  font-family: var(--cmuk-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
}

.cmuk-filters__divider {
  height: 1px;
  background: var(--cmuk-line);
}

.cmuk-fgroup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmuk-cs .cmuk-fgroup__head,
.cmuk-cs .cmuk-fgroup__head:hover,
.cmuk-cs .cmuk-fgroup__head:focus {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--cmuk-brand) !important;
  font-family: var(--cmuk-font);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-align: left;
}

.cmuk-fgroup__options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmuk-fgroup__options--cols {
  flex-direction: row;
  flex-wrap: wrap;
}

.cmuk-fgroup__options--cols .cmuk-check {
  width: calc(50% - 8px);
}

.cmuk-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--cmuk-text);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.cmuk-cs .cmuk-check__input {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cmuk-check__box {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cmuk-faint);
  border-radius: 4px;
  background: #fff;
}

.cmuk-check__input:checked + .cmuk-check__box {
  background: var(--cmuk-brand);
  border-color: var(--cmuk-brand);
}

.cmuk-check__input:checked + .cmuk-check__box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cmuk-check__input:focus-visible + .cmuk-check__box {
  outline: 2px solid var(--cmuk-brand);
  outline-offset: 2px;
}

.cmuk-check__label {
  min-width: 0;
}

.cmuk-cs .cmuk-iconbtn,
.cmuk-cs .cmuk-iconbtn:hover,
.cmuk-cs .cmuk-iconbtn:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.cmuk-cs .cmuk-iconbtn img {
  width: 24px;
  height: 24px;
}

/* Mobile filter sheet: the title stays put and the options scroll. */

.cmuk-filters--sheet {
  max-height: calc(100dvh - 48px);
}

.cmuk-filters__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  margin: 0 -19px -19px;
  padding: 0 19px 19px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cmuk-cs .cmuk-sheet {
  width: min(360px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 16px;
  color: var(--cmuk-text);
  font-family: var(--cmuk-font);
}

.cmuk-cs .cmuk-sheet::backdrop,
.cmuk-cs .cmuk-modal::backdrop {
  background: rgba(16, 24, 40, 0.4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ------------------------------------------------------------------ */
/* Class preview pop-up                                                */
/* ------------------------------------------------------------------ */

.cmuk-cs .cmuk-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  background: #fff9f5;
  border: 0;
  border-radius: 8px;
  color: var(--cmuk-body);
  font-family: var(--cmuk-font);
  overscroll-behavior: contain;
}

.cmuk-modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.cmuk-modal__left,
.cmuk-modal__right {
  display: contents;
}

.cmuk-cs .cmuk-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.cmuk-modal__deco {
  display: none;
}

.cmuk-modal__head {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 20px;
}

.cmuk-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  margin-right: 40px;
}

.cmuk-modal__chip {
  padding: 5px 11px;
  background: #fff;
  border: 1px solid rgba(186, 50, 79, 0.2);
  border-radius: 999px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
  color: var(--cmuk-brand);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cmuk-cs .cmuk-modal__title {
  margin: 0;
  padding: 0;
  color: var(--cmuk-heading);
  font-family: var(--cmuk-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: normal;
  text-transform: none;
}

/* No wing chips: keep the title clear of the close button. */
.cmuk-cs .cmuk-modal__title:first-child {
  padding-right: 36px;
}

.cmuk-modal__audience {
  color: var(--cmuk-muted);
  font-size: 13px;
  font-style: italic;
  line-height: 20px;
}

.cmuk-modal__media {
  order: 2;
  padding-bottom: 20px;
}

.cmuk-cs .cmuk-modal__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.cmuk-modal__desc {
  order: 3;
  padding-bottom: 32px;
  color: var(--cmuk-body);
  font-size: 15px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.cmuk-cs .cmuk-modal__desc > * {
  margin: 0 0 12px;
}

.cmuk-cs .cmuk-modal__desc > *:last-child {
  margin-bottom: 0;
}

.cmuk-cs .cmuk-modal__desc ul,
.cmuk-cs .cmuk-modal__desc ol {
  padding-left: 20px;
}

.cmuk-cs .cmuk-modal__desc a {
  color: var(--cmuk-brand);
  text-decoration: underline;
}

.cmuk-modal__details {
  order: 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}

.cmuk-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cmuk-detail__icon {
  flex: none;
}

.cmuk-cs .cmuk-detail__icon img {
  width: 20px;
  height: 20px;
}

.cmuk-detail__text {
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
}

.cmuk-detail__main {
  color: var(--cmuk-heading);
  font-weight: 500;
}

.cmuk-detail__sub {
  color: var(--cmuk-muted);
}

/* Facilitator / textbook / contact rows are desktop-only in the design. */
.cmuk-modal__meta {
  order: 5;
  display: none;
}

.cmuk-modal__actions {
  order: 6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmuk-cs .cmuk-btn,
.cmuk-cs .cmuk-btn:hover,
.cmuk-cs .cmuk-btn:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  font-family: var(--cmuk-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  text-transform: none;
}

.cmuk-cs .cmuk-btn--primary,
.cmuk-cs .cmuk-btn--primary:hover,
.cmuk-cs .cmuk-btn--primary:focus {
  background: var(--cmuk-brand);
  border: 0;
  color: #fff;
}

.cmuk-cs .cmuk-btn--outline,
.cmuk-cs .cmuk-btn--outline:hover,
.cmuk-cs .cmuk-btn--outline:focus {
  background: transparent;
  border: 2px solid var(--cmuk-brand);
  border-radius: 10px;
  color: var(--cmuk-brand) !important;
}

@media (hover: hover) {
  .cmuk-cs .cmuk-btn--primary:hover {
    background: #a42b45;
  }

  .cmuk-cs .cmuk-btn--outline:hover {
    background: #fff;
  }
}

.cmuk-cs .cmuk-btn img {
  width: 20px;
  height: 20px;
}

.cmuk-cs .cmuk-btn:focus-visible,
.cmuk-cs .cmuk-chip:focus-visible,
.cmuk-cs .cmuk-more__btn:focus-visible,
.cmuk-cs .cmuk-iconbtn:focus-visible,
.cmuk-cs .cmuk-fgroup__head:focus-visible,
.cmuk-cs .cmuk-tab:focus-visible,
.cmuk-cs .cmuk-view:focus-visible {
  outline: 2px solid var(--cmuk-brand);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Desktop (1024px and up)                                             */
/* ------------------------------------------------------------------ */

@media (min-width: 1024px) {
  .cmuk-only-mobile {
    display: none !important;
  }

  .cmuk-only-desktop {
    display: block !important;
  }

  .cmuk-cs {
    display: grid;
    grid-template-columns: minmax(0, 766px) minmax(260px, 323px);
    grid-template-areas: 'main side';
    justify-content: center;
    column-gap: 32px;
    row-gap: 32px;
    padding: 32px 32px 64px;
  }

  .cmuk-cs.cmuk-cs--has-top {
    grid-template-areas:
      'top .'
      'main side';
  }

  /* No filters (the events list, or a class list with every filter locked): the list also takes the sidebar's space,
     so the tabs stay where they are on the class list. */
  .cmuk-cs.cmuk-cs--no-side {
    grid-template-areas: 'main main';
  }

  .cmuk-cs.cmuk-cs--no-side.cmuk-cs--has-top {
    grid-template-areas:
      'top top'
      'main main';
  }

  .cmuk-cs__top {
    grid-area: top;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cmuk-chips {
    display: none !important;
  }

  .cmuk-cs__main {
    grid-area: main;
    gap: 0;
  }

  .cmuk-cs__side {
    display: block;
    grid-area: side;
    align-self: start;
  }

  .cmuk-filters--side {
    gap: 28px;
    padding: 23px;
  }

  .cmuk-list {
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .cmuk-cs .cmuk-row,
  .cmuk-cs .cmuk-row:hover,
  .cmuk-cs .cmuk-row:focus {
    align-items: center;
    gap: 16px;
    padding: 20px 0;
  }

  .cmuk-row__day {
    width: 120px;
  }

  .cmuk-row__dayname {
    font-size: 20px;
    line-height: 22px;
  }

  .cmuk-row__date {
    font-size: 14px;
  }

  .cmuk-row__accent {
    height: auto;
    align-self: stretch;
  }

  .cmuk-row__time {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 170px;
    padding-left: 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .cmuk-row__range {
    color: var(--cmuk-text);
    line-height: normal;
  }

  .cmuk-row__dur {
    color: var(--cmuk-faint);
    line-height: 20px;
  }

  .cmuk-row__content {
    padding-left: 12px;
  }

  .cmuk-row__title {
    gap: 8px;
    font-size: 20px;
    line-height: 22px;
    letter-spacing: -0.5px;
  }

  .cmuk-cs .cmuk-row__dot {
    width: 8px;
    height: 8px;
  }

  .cmuk-row__sub {
    font-size: 14px;
  }

  .cmuk-row__subtime {
    display: none;
  }

  .cmuk-more {
    padding-top: 24px;
  }

  .cmuk-cs .cmuk-more__btn,
  .cmuk-cs .cmuk-more__btn:hover,
  .cmuk-cs .cmuk-more__btn:focus {
    width: 512px;
    max-width: 100%;
    padding: 16px 24px 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .cmuk-cs .cmuk-more__btn img {
    width: 20px;
    height: 20px;
  }

  /* Pop-up: two columns */

  .cmuk-cs .cmuk-modal {
    width: min(841px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }

  .cmuk-modal__inner {
    display: grid;
    grid-template-columns: minmax(0, 504.6fr) minmax(0, 336.4fr);
    padding: 0;
    overflow: hidden;
  }

  .cmuk-modal__left {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px;
    border-right: 1px solid rgba(229, 231, 235, 0.6);
  }

  .cmuk-modal__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    background: #fff;
  }

  .cmuk-cs .cmuk-modal__close {
    top: 12px;
    right: 12px;
  }

  .cmuk-modal__deco {
    display: block;
    position: absolute;
    left: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    opacity: 0.03;
    pointer-events: none;
  }

  .cmuk-cs .cmuk-modal__deco-a {
    position: absolute;
    left: 0;
    top: 0;
    width: 400px;
    height: 200px;
  }

  .cmuk-modal__deco-b {
    position: absolute;
    left: 44.44px;
    top: -55.56px;
    width: 311.11px;
    height: 311.11px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cmuk-cs .cmuk-modal__deco-b img {
    flex: none;
    width: 320px;
    height: 120px;
    transform: rotate(45deg);
  }

  .cmuk-modal__head {
    position: relative;
    padding-bottom: 0;
  }

  .cmuk-modal__chips {
    margin-bottom: 24px;
    margin-right: 0;
  }

  .cmuk-modal__chip {
    padding: 4px 11px;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    font-size: 12px;
  }

  .cmuk-cs .cmuk-modal__title {
    font-size: 48px;
    line-height: 60px;
  }

  .cmuk-cs .cmuk-modal__title:first-child {
    padding-right: 0;
  }

  .cmuk-modal__audience {
    padding-top: 4px;
    font-size: 14px;
  }

  .cmuk-modal__desc {
    position: relative;
    padding: 32px 0 0;
    font-size: 16px;
    line-height: 26px;
  }

  .cmuk-cs .cmuk-modal__desc > * {
    margin-bottom: 16px;
  }

  .cmuk-modal__media {
    padding-bottom: 0;
  }

  .cmuk-cs .cmuk-modal__media img {
    height: 234px;
  }

  .cmuk-modal__details {
    gap: 20px;
    padding-bottom: 10px;
  }

  .cmuk-detail {
    gap: 16px;
  }

  .cmuk-detail__icon {
    padding-top: 2px;
  }

  .cmuk-modal__meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid rgba(229, 231, 235, 0.6);
  }

  .cmuk-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cmuk-body);
    font-size: 14px;
    line-height: 20px;
  }

  .cmuk-meta__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid var(--cmuk-border);
    border-radius: 999px;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
  }

  .cmuk-cs .cmuk-meta__icon img {
    width: 16px;
    height: 16px;
  }

  .cmuk-meta__text {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cmuk-cs .cmuk-meta a,
  .cmuk-cs .cmuk-meta a:hover,
  .cmuk-cs .cmuk-meta a:focus {
    color: var(--cmuk-body);
  }

  .cmuk-cs .cmuk-meta a:hover {
    color: var(--cmuk-brand);
    text-decoration: underline;
  }

  .cmuk-meta strong {
    font-weight: 700;
  }

  .cmuk-modal__actions {
    margin-top: auto;
    padding-top: 20px;
    gap: 16px;
  }

  .cmuk-cs .cmuk-btn,
  .cmuk-cs .cmuk-btn:hover,
  .cmuk-cs .cmuk-btn:focus {
    height: 60px;
    letter-spacing: -0.3125px;
  }
}

/* Wide desktop: list / calendar view buttons get their own left column. */
@media (min-width: 1280px) {
  .cmuk-cs.cmuk-cs--has-views {
    grid-template-columns: minmax(150px, 309px) minmax(0, 766px) minmax(260px, 323px);
    grid-template-areas:
      '. top .'
      'left main side';
  }

  .cmuk-cs.cmuk-cs--has-views.cmuk-cs--no-side {
    grid-template-areas:
      '. top top'
      'left main main';
  }

  .cmuk-cs--has-views .cmuk-cs__top .cmuk-views {
    display: none;
  }

  .cmuk-cs--has-views .cmuk-cs__left {
    display: block;
    grid-area: left;
  }

  .cmuk-views--full {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cmuk-cs .cmuk-views--full .cmuk-view,
  .cmuk-cs .cmuk-views--full .cmuk-view:hover,
  .cmuk-cs .cmuk-views--full .cmuk-view:focus {
    gap: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: -0.5px;
  }

  .cmuk-cs .cmuk-views--full .cmuk-view img {
    width: 18px;
    height: 18px;
  }
}
