
/*
DATE48 EDITORIAL V10
Desktop-only experimental styling.
No changes to mobile, data, API or card actions.
*/

@media (min-width: 1200px) {

  /* EVENT CARDS */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0,36%) minmax(0,64%) !important;
    grid-template-rows: auto auto minmax(0,1fr) !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 310px !important;
    height: auto !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 1px solid var(--d8-line,rgba(80,50,58,.12)) !important;
    border-radius: 22px !important;
    background: var(--d8-paper,#fffaf8) !important;
    box-shadow: 0 14px 34px rgba(60,37,43,.055) !important;
    overflow: hidden !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) > .date48-event-v8-card__cover {
    display: contents !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) > .date48-event-v8-card__cover
  > .date48-event-v8-card__image {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    height: clamp(300px, 21vw, 344px) !important;
    min-height: 0 !important;
    max-height: 344px !important;
    object-fit: cover !important;
    object-position: center !important;
    background: var(--d8-paper,#f3edef) !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)):has(> .date48-event-v8-card__cover--poster)
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__image,
  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)).d48-media-portrait
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__image {
    object-fit: contain !important;
    background: var(--d8-paper,#f3edef) !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) > .date48-event-v8-card__cover
  > .date48-event-v8-card__shade {
    display: none !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) > .date48-event-v8-card__cover
  > .date48-event-v8-card__top {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    padding: 26px 30px 8px !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--d8-ink,#30252a) !important;
    text-align: left !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) > .date48-event-v8-card__cover
  > .date48-event-v8-card__bottom {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 30px 10px !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--d8-ink,#30252a) !important;
    text-align: left !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) > .date48-event-v8-card__body {
    grid-column: 2 !important;
    grid-row: 3 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 30px 22px !important;
    background: transparent !important;
    color: var(--d8-ink,#30252a) !important;
    text-align: left !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) .date48-event-v8-card__title {
    font-family: Georgia,"Times New Roman",serif !important;
    font-size: clamp(23px,1.55vw,30px) !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
    color: var(--d8-ink,#30252a) !important;
    text-align: left !important;
    margin: 8px 0 0 !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) .date48-event-v8-card__date,
  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) .date48-event-v8-card__category,
  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) .date48-event-v8-card__venue {
    position: relative !important;
    inset: auto !important;
    text-align: left !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) .date48-event-v8-card__company {
    box-sizing: border-box !important;
    display: flex !important;
    align-self: flex-start !important;
    justify-content: center !important;
    width: min(100%,250px) !important;
    max-width: 250px !important;
    min-height: 42px !important;
    margin: 8px 0 4px !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) .date48-event-v8-card__actions,
  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,.d48-media-landscape,.d48-media-square,:not(.d48-v10-excluded)) .date48-event-v8-card__footer {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* INTERESTING PLACES */

  html:root body:has(.date48-real-feed)
  .date48-interesting-card-container {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-interesting-card {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0,40%) minmax(0,60%) !important;
    width: 100% !important;
    min-height: 286px !important;
    height: auto !important;
    margin: 0 !important;
    border: 1px solid var(--d8-line,rgba(80,50,58,.12)) !important;
    border-radius: 22px !important;
    background: var(--d8-paper,#fffaf8) !important;
    overflow: hidden !important;
    box-shadow: 0 14px 34px rgba(60,37,43,.055) !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-interesting-card__visual {
    grid-column: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 286px !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-interesting-card__visual > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-interesting-card__body {
    grid-column: 2 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 28px 32px !important;
    background: transparent !important;
    color: var(--d8-ink,#30252a) !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-interesting-card__heading h3 {
    font-family: Georgia,"Times New Roman",serif !important;
    font-size: clamp(20px,1.35vw,26px) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-interesting-card__actions {
    justify-content: flex-start !important;
    gap: 16px !important;
    margin-top: 12px !important;
  }

  /* PERSONAL MOMENTS */

  html:root body:has(.date48-real-feed)
  .date48-real-feed >
  .date48-classic-card:not(.date48-event-v8-card) {
    box-sizing: border-box !important;
    width: min(100%,860px) !important;
    max-width: 860px !important;
    margin: 0 auto 20px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: var(--d8-paper,#fffaf8) !important;
    box-shadow: 0 14px 34px rgba(60,37,43,.055) !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-real-post__photo,
  html:root body:has(.date48-real-feed)
  .date48-classic-card__photo {
    max-height: 410px !important;
    overflow: hidden !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-real-post__photo img,
  html:root body:has(.date48-real-feed)
  .date48-classic-card__photo img {
    display: block !important;
    max-height: 410px !important;
    object-fit: cover !important;
    object-position: 50% 35% !important;
  }

}


/*
 DATE48 V11 — COMPACT EDITORIAL CORRECTIONS

 Inherits the V10 design without loading the
 original V10 stylesheet simultaneously.
*/

@media (min-width: 1200px) {

  /* Keep event images bounded by the card rhythm. */

  html:root body:has(.date48-real-feed)
  .date48-real-feed >
  .date48-event-v8-card
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__image {
    height: clamp(300px, 21vw, 344px) !important;
    min-height: 0 !important;
    max-height: 344px !important;
    align-self: start !important;
    object-position: center !important;
  }

  /* Do not crop vertical event posters. */

  html:root body:has(.date48-real-feed)
  .date48-real-feed >
  .date48-event-v8-card.d48-media-portrait
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__image,

  html:root body:has(.date48-real-feed)
  .date48-real-feed >
  .date48-event-v8-card:has(
    > .date48-event-v8-card__cover--poster
  )
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__image {
    object-fit: contain !important;
  }

  /* Footer stays after the event information. */

  html:root body:has(.date48-real-feed)
  .date48-real-feed >
  .date48-event-v8-card
  .date48-event-v8-card__footer {
    margin-top: auto !important;
  }

  /* Tighter spacing between consecutive cards. */

  html:root body:has(.date48-real-feed)
  .date48-real-feed >
  .date48-event-v8-card {
    margin-bottom: 17px !important;
  }

  /* Places keep their existing visual identity. */

  html:root body:has(.date48-real-feed)
  .date48-interesting-card__visual {
    min-height: 286px !important;
    height: 286px !important;
    max-height: 286px !important;
  }

  /* Personal moments should not dominate the feed. */

  html:root body:has(.date48-real-feed)
  .date48-real-post__photo,
  html:root body:has(.date48-real-feed)
  .date48-classic-card__photo {
    max-height: 390px !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-real-post__photo img,
  html:root body:has(.date48-real-feed)
  .date48-classic-card__photo img {
    max-height: 390px !important;
    object-fit: contain !important;
  }
}

/*
 Right editorial rail:
 fixed only where the full three-column layout
 has enough horizontal space.
*/

@media (min-width: 1600px) {

  html:root body:has(.date48-real-feed)
  .d48-desktop-aside {
    box-sizing: border-box !important;
    position: fixed !important;
    top: 98px !important;
    right: 32px !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;

    width: 278px !important;
    max-width: 278px !important;
    height: auto !important;
    max-height: calc(100vh - 116px) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;

    z-index: 60 !important;
  }
}



/*
 DATE48 V12 — WIDE DESKTOP EVENT FILTERS
 Only the existing event catalog panel.
 React controls and interactions remain intact.
*/

@media (min-width: 1200px) {

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters {
    box-sizing: border-box !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    display: grid !important;
    grid-template-columns:
      minmax(0, 1.55fr)
      minmax(270px, 1fr) !important;
    grid-template-areas:
      "search quick"
      "fields fields"
      "meta meta" !important;
    grid-template-rows: auto auto auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 12px 18px !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 18px !important;
    padding: 18px 22px 15px !important;

    background:
      var(--d8-paper, var(--desk-paper, #fffdfb))
      !important;
    color: var(--d8-ink, #30252a) !important;
    border: 1px solid
      var(--d8-line, rgba(80,50,58,.12))
      !important;
    border-radius: 20px !important;
    box-shadow:
      0 12px 30px rgba(60,37,43,.045)
      !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters
  > input[type="search"] {
    grid-area: search !important;
    box-sizing: border-box !important;

    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 46px !important;

    margin: 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters
  > .date48-event-catalog__quickdates {
    grid-area: quick !important;

    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;

    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__quickdates
  > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 35px !important;
    padding: 8px 13px !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters
  > .date48-event-catalog__row {
    grid-area: fields !important;

    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters
  > .date48-event-catalog__row:has(
    > input[type="date"]
  ) {
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters
  > .date48-event-catalog__row
  > * {
    box-sizing: border-box !important;
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    margin: 0 !important;

    border-radius: 12px !important;
    font-size: 13px !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters
  > p {
    grid-area: meta !important;
    justify-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 1px 2px 0 !important;
    color: var(--d8-muted, #8c7c82) !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "search"
      "quick"
      "fields"
      "meta" !important;
  }

  html:root body:has(.date48-real-feed)
  .date48-event-catalog__filters
  > .date48-event-catalog__quickdates {
    justify-content: flex-start !important;
  }
}



/*
 DATE48 V13 POSTER TIGHT

 Poster-specific desktop layout.
 Landscape photo cards and places are untouched.
*/

@media (min-width: 1200px) {

  /* Compact poster card, not a wide photo template. */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape)) {
    box-sizing: border-box !important;
    display: grid !important;

    grid-template-columns:
      minmax(0, 246px)
      minmax(0, 1fr) !important;

    grid-template-rows:
      auto auto minmax(0, 1fr) !important;

    column-gap: 0 !important;
    row-gap: 0 !important;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    align-items: start !important;
    overflow: hidden !important;
  }

  /*
   Preserve original poster proportions.
   No artificial fixed image height and no crop.
  */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__image {
    box-sizing: border-box !important;

    grid-column: 1 !important;
    grid-row: 1 / 4 !important;

    position: relative !important;
    inset: auto !important;

    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: 344px !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: start !important;
    justify-self: stretch !important;

    object-fit: contain !important;
    object-position: top center !important;

    border: none !important;
    border-radius: 0 !important;

    background:
      var(--d8-paper, #fffaf8) !important;
  }

  /* Keep the existing overlay elements in grid. */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__cover {
    display: contents !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__shade {
    display: none !important;
  }

  /* Category / top metadata. */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__top {
    grid-column: 2 !important;
    grid-row: 1 !important;

    position: relative !important;
    inset: auto !important;

    box-sizing: border-box !important;
    width: 100% !important;

    margin: 0 !important;
    padding: 17px 24px 5px !important;

    background: transparent !important;
    text-align: left !important;
  }

  /* Event title and date. */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__bottom {
    grid-column: 2 !important;
    grid-row: 2 !important;

    position: relative !important;
    inset: auto !important;

    box-sizing: border-box !important;
    width: 100% !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 24px 6px !important;

    background: transparent !important;
    text-align: left !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  .date48-event-v8-card__title {
    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size:
      clamp(21px, 1.45vw, 27px) !important;

    line-height: 1.14 !important;
    letter-spacing: -.025em !important;

    margin: 5px 0 0 !important;
  }

  /* Venue, company button and reactions. */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__body {
    grid-column: 2 !important;
    grid-row: 3 !important;

    position: relative !important;
    inset: auto !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;

    gap: 9px !important;

    margin: 0 !important;
    padding: 0 24px 12px !important;

    background: transparent !important;
    text-align: left !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  .date48-event-v8-card__company {
    align-self: flex-start !important;

    width: min(100%, 250px) !important;
    max-width: 250px !important;

    min-height: 38px !important;
    margin: 5px 0 2px !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  .date48-event-v8-card__actions {
    display: flex !important;
    flex-wrap: wrap !important;

    width: 100% !important;
    gap: 6px !important;

    margin: 0 !important;
  }

  /* Remove oversized empty footer floor. */

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  .date48-event-v8-card__footer {
    box-sizing: border-box !important;

    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;

    margin: 3px 0 0 !important;
    padding: 9px 0 0 !important;

    border-top:
      1px solid var(
        --d8-line,
        rgba(80, 50, 58, .12)
      ) !important;

    background: transparent !important;
  }

}

/*
 Narrow desktop:
 poster media slightly smaller,
 leaving room for event actions.
*/

@media (min-width: 1200px)
and (max-width: 1399px) {

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape)) {
    grid-template-columns:
      minmax(0, 210px)
      minmax(0, 1fr) !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__top {
    padding: 15px 18px 5px !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__cover
  > .date48-event-v8-card__bottom {
    padding: 0 18px 6px !important;
  }

  html:root body:has(.date48-real-feed) .date48-real-feed > .date48-event-v8-card:is(.d48-media-portrait,:has(> .date48-event-v8-card__cover--poster):not(.d48-media-landscape))
  > .date48-event-v8-card__body {
    padding: 0 18px 12px !important;
  }
}



/*
 DATE48 V15 — EDITORIAL EDITION

 Approved direction:
 - Clean open side columns
 - No extra decorative containers
 - Fine dividers
 - Editorial typography
 - Real event previews
 - Desktop only

 Central feed V13 remains unchanged.
*/

@media (min-width: 1200px) {

  /* ===== COLOR SYSTEM ===== */

  html:root body:has(.date48-real-feed) {
    --ed15-ink: #281e22;
    --ed15-muted: #86757b;
    --ed15-wine: #872343;
    --ed15-wine-hover: #a33557;
    --ed15-line: rgba(104,73,79,.26);
    --ed15-soft-line: rgba(104,73,79,.16);
  }

  :is(
    html.dark,
    html.theme-dark,
    html[data-theme="dark"],
    html[data-date48-theme="dark"]
  ) body:has(.date48-real-feed),

  body.dark:has(.date48-real-feed),
  body[data-theme="dark"]:has(.date48-real-feed) {
    --ed15-ink: #f4e9ec;
    --ed15-muted: #baa8b0;
    --ed15-wine: #ab486b;
    --ed15-wine-hover: #c26082;
    --ed15-line: rgba(245,217,228,.24);
    --ed15-soft-line: rgba(245,217,228,.14);
  }

  /* ===== LEFT NAVIGATION ===== */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar {
    box-sizing: border-box !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-right:
      1px solid var(--ed15-soft-line) !important;

    border-radius: 0 !important;

    box-shadow: none !important;
    filter: none !important;

    color: var(--ed15-ink) !important;

    overflow: visible !important;

    padding:
      24px 15px 26px !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar::before,
  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar::after {
    content: none !important;
    display: none !important;
  }

  /* Brand */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-brand {
    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size: 35px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;

    letter-spacing: -.06em !important;

    color: var(--ed15-ink) !important;

    text-shadow: none !important;
    background: transparent !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-tagline {
    font-size: 8px !important;

    font-weight: 700 !important;
    line-height: 1.8 !important;

    letter-spacing: .20em !important;

    color: var(--ed15-wine) !important;

    margin-top: 12px !important;
  }

  /* A single elegant line beneath the brand */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-nav {
    box-sizing: border-box !important;

    width: 100% !important;

    border-top:
      1px solid var(--ed15-line) !important;

    padding-top: 25px !important;
    margin-top: 30px !important;

    gap: 9px !important;
  }

  /* Navigation items */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-nav a {
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;

    min-height: 47px !important;

    padding:
      11px 13px !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 11px !important;

    box-shadow: none !important;

    color: var(--ed15-ink) !important;

    font-size: 14px !important;
    font-weight: 560 !important;

    transition:
      background .18s ease,
      color .18s ease !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-nav a:hover {
    color: var(--ed15-wine) !important;

    background:
      rgba(155,65,94,.075) !important;
  }

  /* Current section */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-nav a[aria-current="page"] {
    color: #fff !important;

    background:
      var(--ed15-wine) !important;

    border: 0 !important;

    box-shadow: none !important;

    font-weight: 650 !important;

    transform: none !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-nav
  a[aria-current="page"]:hover {
    background:
      var(--ed15-wine-hover) !important;

    color: #fff !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-nav
  a[aria-current="page"]
  :is(svg, .d48-desktop-icon48) {
    color: #fff !important;
    stroke: currentColor !important;
  }

  /* Editorial footer */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar
  .d48-desktop-sidefoot {
    box-sizing: border-box !important;

    width: 100% !important;

    margin-top: auto !important;

    border: 0 !important;

    border-top:
      1px solid var(--ed15-line) !important;

    border-radius: 0 !important;

    padding:
      20px 7px 3px !important;

    background: transparent !important;

    color: var(--ed15-muted) !important;

    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size: 17px !important;
    font-style: italic !important;
    font-weight: 400 !important;

    line-height: 1.48 !important;
    letter-spacing: -.02em !important;

    white-space: pre-line !important;
    text-transform: none !important;
  }


  /* ===== RIGHT EDITORIAL RAIL ===== */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside {
    box-sizing: border-box !important;

    position: fixed !important;

    top: 119px !important;

    left: auto !important;
    right: 25px !important;

    width: 255px !important;
    max-width: 255px !important;

    max-height:
      calc(100vh - 138px) !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: stretch !important;

    gap: 0 !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-image: none !important;

    box-shadow: none !important;

    color: var(--ed15-ink) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    scrollbar-width: thin !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside::before,
  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside::after {
    content: none !important;
    display: none !important;
  }

  /* City / Date48 masthead */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-asidehead {
    box-sizing: border-box !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    min-height: 35px !important;

    padding: 0 2px 13px !important;
    margin: 0 !important;

    border: 0 !important;

    border-bottom:
      1px solid var(--ed15-line) !important;

    background: transparent !important;

    color: var(--ed15-muted) !important;

    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size: 14px !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-asidehead b {
    color: var(--ed15-wine) !important;

    font-size: 14px !important;
    font-weight: 500 !important;
  }


  /* ===== EDITORIAL INTRO ===== */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-people {
    box-sizing: border-box !important;

    display: block !important;

    width: 100% !important;

    margin: 0 !important;

    padding:
      25px 0 8px !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-people h3 {
    margin: 0 !important;

    padding: 0 !important;

    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size: 30px !important;
    font-style: italic !important;
    font-weight: 400 !important;

    line-height: 1.14 !important;
    letter-spacing: -.045em !important;

    white-space: pre-line !important;

    color: var(--ed15-ink) !important;
  }

  /* The old promotional box is replaced
     with the editorial heading.
     People navigation remains in the left rail. */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-people
  :is(
    .d48-desktop-kicker,
    p,
    a
  ) {
    display: none !important;
  }


  /* ===== EVENT SELECTION ===== */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-events {
    box-sizing: border-box !important;

    width: 100% !important;

    padding: 8px 0 0 !important;
    margin: 0 !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-sectiontitle {
    margin: 0 0 17px !important;

    padding: 0 !important;

    color: var(--ed15-muted) !important;

    font-family:
      inherit !important;

    font-size: 10px !important;
    font-weight: 750 !important;

    line-height: 1.5 !important;
    letter-spacing: .24em !important;

    text-transform: uppercase !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-eventitems {
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 0 !important;

    background: transparent !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-eventlink {
    box-sizing: border-box !important;

    display: flex !important;
    align-items: flex-start !important;

    width: 100% !important;

    gap: 12px !important;

    margin: 0 !important;

    padding:
      13px 0 !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;

    border-bottom:
      1px solid var(--ed15-soft-line) !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    color: var(--ed15-ink) !important;

    text-decoration: none !important;

    transition:
      opacity .18s ease !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-eventlink:hover {
    opacity: .78 !important;
    background: transparent !important;
    transform: none !important;
  }

  /* Authentic event posters, no additional frame */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-eventlink img {
    flex: 0 0 76px !important;

    display: block !important;

    width: 76px !important;
    height: 86px !important;

    min-width: 76px !important;

    object-fit: cover !important;
    object-position: center !important;

    border: 0 !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    background: transparent !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-eventlink strong {
    color: var(--ed15-ink) !important;

    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size: 16px !important;
    font-weight: 400 !important;

    line-height: 1.19 !important;
    letter-spacing: -.018em !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-eventlink small {
    display: block !important;

    margin-top: 6px !important;

    color: var(--ed15-muted) !important;

    font-size: 11px !important;
    line-height: 1.5 !important;
  }


  /* ===== 48 HOURS FEATURE ===== */

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-hours {
    box-sizing: border-box !important;

    width: 100% !important;

    margin: 23px 0 0 !important;

    padding:
      23px 0 0 !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;

    border-top:
      1px solid var(--ed15-line) !important;

    border-radius: 0 !important;

    box-shadow: none !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-hours .number {
    display: block !important;

    margin: 0 0 10px !important;

    color: var(--ed15-wine) !important;

    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size: 45px !important;
    font-style: italic !important;
    font-weight: 400 !important;

    line-height: 1.1 !important;
    letter-spacing: -.045em !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-hours p {
    margin: 8px 0 14px !important;

    color: var(--ed15-muted) !important;

    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-hours a {
    color: var(--ed15-wine) !important;

    font-family:
      Georgia, "Times New Roman", serif !important;

    font-size: 17px !important;
    font-weight: 400 !important;

    text-decoration: none !important;

    border: 0 !important;
    border-bottom:
      1px solid currentColor !important;

    padding-bottom: 2px !important;

    background: transparent !important;
  }
}

/* Keep the right editorial column inside
   smaller desktop viewports. */

@media (min-width: 1200px) and (max-width: 1399px) {
  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside {
    right: 12px !important;
    width: 205px !important;
    max-width: 205px !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-people h3 {
    font-size: 25px !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-eventlink img {
    width: 62px !important;
    min-width: 62px !important;
    flex-basis: 62px !important;
    height: 77px !important;
  }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside {
    right: 19px !important;
    width: 230px !important;
    max-width: 230px !important;
  }

  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside
  .d48-desktop-people h3 {
    font-size: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-sidebar a,
  html:root body:has(.date48-real-feed)
  #d48-desktop-v2-aside a {
    transition: none !important;
  }
}
