.marble-event-detail {
  width: 100%;
  padding: 42px 20px 80px;
  background:
    linear-gradient(
      180deg,
      #f6f9fc 0,
      #fff 440px
    );
  color: #082b4b;
}

.marble-event-detail__shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.marble-event-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  color: #6d8397;
  font-size: 13px;
}

.marble-event-detail__breadcrumb a {
  color: #087abd;
  text-decoration: none;
}

.marble-event-detail__breadcrumb a:hover {
  text-decoration: underline;
}


/*
 * Event detail intentionally shares the visual grammar
 * of Marble news without becoming a news template.
 */
.marble-event-detail__hero {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(360px, .92fr);
  gap: 38px;
  align-items: stretch;
  padding: 42px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 8% 115%,
      rgba(54, 177, 236, .18),
      transparent 31%
    ),
    linear-gradient(
      135deg,
      #07345b 0%,
      #09517c 58%,
      #1184bd 100%
    );
  box-shadow:
    0 18px 46px rgba(7, 42, 72, .14);
}

.marble-event-detail__hero::before {
  content: "";
  position: absolute;
  right: -115px;
  bottom: -175px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

.marble-event-detail__hero-copy,
.marble-event-detail__cover {
  position: relative;
  z-index: 1;
}

.marble-event-detail__hero-copy {
  align-self: center;
}

.marble-event-detail__hero--without-cover {
  grid-template-columns:
    minmax(0, 820px);
}

.marble-event-detail__eyebrow {
  margin-bottom: 13px;
  color: #70c9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.marble-event-detail__title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size:
    clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.marble-event-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  margin-top: 22px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 650;
}

.marble-event-detail__meta-item {
  position: relative;
}

.marble-event-detail__meta-item
  + .marble-event-detail__meta-item {
  padding-left: 17px;
}

.marble-event-detail__meta-item
  + .marble-event-detail__meta-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #70c9ff;
  transform: translateY(-50%);
}

.marble-event-detail__lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  line-height: 1.55;
}

.marble-event-detail__hero-action {
  margin-top: 28px;
}

.marble-event-detail__button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: #fff;
  color: #07345b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.marble-event-detail__button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .14);
}


/*
 * The event cover belongs to the hero.
 * It is no longer a detached article illustration.
 */
.marble-event-detail__cover {
  min-width: 0;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0b416c;
}

.marble-event-detail__cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.marble-event-detail__cover figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(4, 30, 52, .76);
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  line-height: 1.35;
  backdrop-filter: blur(5px);
}


/*
 * Article + navigation use the same Marble content rhythm
 * as news, while event-specific actions remain independent.
 */
.marble-event-detail__layout {
  display: grid;
  grid-template-columns:
    minmax(0, 820px)
    minmax(230px, 280px);
  gap: 52px;
  align-items: start;
  margin-top: 42px;
}

.marble-event-detail__article {
  min-width: 0;
}

.marble-event-detail__body {
  color: #203e58;
  font-size: 17px;
  line-height: 1.78;
}

.marble-event-detail__body > :first-child {
  margin-top: 0;
}

.marble-event-detail__body p {
  margin: 0 0 22px;
}

.marble-event-detail__body h2 {
  margin: 42px 0 18px;
  color: #07345b;
  font-size: 27px;
  line-height: 1.2;
}

.marble-event-detail__body h3 {
  margin: 32px 0 14px;
  color: #07345b;
  font-size: 21px;
  line-height: 1.3;
}

.marble-event-detail__body ul,
.marble-event-detail__body ol {
  margin: 20px 0 25px;
  padding-left: 25px;
}

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

.marble-event-detail__body a {
  color: #067abc;
}

.marble-event-detail__body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  border-radius: 14px;
}

.marble-event-detail__body blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid #1599d2;
  border-radius: 0 12px 12px 0;
  background: #f0f7fc;
}


/*
 * Event navigation intentionally does not invent
 * previous/next semantics. The catalog is authoritative.
 */
.marble-event-detail__aside {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 14px;
}

.marble-event-detail__aside-card {
  display: block;
  padding: 20px;
  border: 1px solid #d7e4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 8px 24px rgba(10, 55, 89, .06);
}

.marble-event-detail__aside-card--action {
  background:
    linear-gradient(
      145deg,
      #f6fbff,
      #fff
    );
}

.marble-event-detail__aside-label {
  display: block;
  margin-bottom: 10px;
  color: #70869a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.marble-event-detail__all-events,
.marble-event-detail__external {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #087abd;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.marble-event-detail__all-events:hover,
.marble-event-detail__external:hover {
  text-decoration: underline;
}


/*
 * Shared material cards are intentionally not restyled here.
 * marble_government_ui/content_components owns them.
 */


@media (max-width: 980px) {

  .marble-event-detail__hero {
    grid-template-columns: 1fr;
  }

  .marble-event-detail__cover {
    min-height: 280px;
  }

  .marble-event-detail__layout {
    grid-template-columns: 1fr;
  }

  .marble-event-detail__aside {
    position: static;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 640px) {

  .marble-event-detail {
    padding:
      24px 14px
      52px;
  }

  .marble-event-detail__breadcrumb {
    margin-bottom: 18px;
  }

  .marble-event-detail__hero {
    gap: 25px;
    padding: 26px 20px;
    border-radius: 16px;
  }

  .marble-event-detail__title {
    font-size:
      clamp(29px, 9vw, 40px);
  }

  .marble-event-detail__lead {
    font-size: 16px;
  }

  .marble-event-detail__cover,
  .marble-event-detail__cover img {
    min-height: 210px;
  }

  .marble-event-detail__layout {
    margin-top: 30px;
  }

  .marble-event-detail__body {
    font-size: 16px;
  }

  .marble-event-detail__aside {
    grid-template-columns: 1fr;
  }
}


@media print {

  .marble-event-detail__breadcrumb,
  .marble-event-detail__aside,
  .marble-event-detail__hero-action {
    display: none !important;
  }

  .marble-event-detail {
    padding: 0;
    background: #fff;
  }

  .marble-event-detail__hero {
    display: block;
    padding: 0 0 25px;
    background: none;
    box-shadow: none;
  }

  .marble-event-detail__hero::before {
    display: none;
  }

  .marble-event-detail__title,
  .marble-event-detail__lead,
  .marble-event-detail__meta {
    color: #000;
  }

  .marble-event-detail__cover {
    margin-top: 20px;
  }

  .marble-event-detail__layout {
    display: block;
    margin-top: 25px;
  }
}
