.edh-body {
  --edh-ink: #10243e;
  --edh-muted: #5d6b7c;
  --edh-paper: #f3f6fa;
  --edh-paper-2: #ffffff;
  --edh-rule: #d9e2ec;
  --edh-accent: #7b1e3a;
  --edh-accent-deep: #59152b;
  --edh-cool-blue: #dbe7f3;
  --edh-shell: var(--d3-shell, 1380px);
  background: var(--edh-paper);
  color: var(--edh-ink);
}

.edh-body[data-editorial-hub="news"],
.edh-body[data-editorial-hub="analysis"],
.edh-body[data-editorial-hub="poll"] {
  --edh-category-accent: var(--edh-accent);
}

.edh-main {
  min-width: 0;
}

.edh-page.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.edh-inner {
  width: min(var(--edh-shell), calc(100% - 48px));
  margin-inline: auto;
}

.edh-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--edh-rule);
  background:
    radial-gradient(circle at 78% 18%, rgba(219, 231, 243, 0.9), transparent 30%),
    linear-gradient(120deg, #ffffff 0%, #f4f7fa 58%, #e8eef5 100%);
}

.edh-hero::before,
.edh-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.edh-hero::before {
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--edh-category-accent);
}

.edh-hero::after {
  right: clamp(16px, 5vw, 90px);
  bottom: -78px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(123, 30, 58, 0.14);
  border-radius: 50%;
}

.edh-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: clamp(330px, 25vw, 370px);
  padding-block: 26px;
}

.edh-hero-copy {
  max-width: 650px;
}

.edh-kicker {
  margin: 0 0 12px;
  color: var(--edh-category-accent);
  font: 800 0.76rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.edh-hero .d3-hero-title {
  margin: 0;
  color: var(--edh-ink);
  -webkit-text-fill-color: var(--edh-ink);
  background: none;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

body.cj-page .edh-hero.cj-hero .d3-hero-title {
  color: var(--cj-hero-text) !important;
  -webkit-text-fill-color: var(--cj-hero-text) !important;
  background: none !important;
}

.edh-hero.cj-hero {
  background: none;
}

body[data-entity="club"] .edh-hero.cj-hero {
  border-bottom: 3px solid var(--cj-accent);
}

body[data-entity="competition"] .edh-hero.cj-hero {
  border-bottom: 2px solid var(--cj-accent);
}

.edh-hero.cj-hero::before {
  z-index: 2;
  background: var(--cj-accent);
}

.edh-hero.cj-hero::after {
  content: none;
}

.edh-hero.cj-hero .edh-kicker {
  color: var(--cj-kicker);
}

.edh-hero.cj-hero .edh-brand {
  color: var(--cj-hero-line, var(--cj-hero-text));
}

.edh-hero.cj-hero .edh-lede {
  color: var(--cj-hero-muted);
}

.edh-brand {
  margin: 20px 0 0;
  color: var(--edh-ink);
  font: 700 clamp(1.08rem, 1.5vw, 1.34rem)/1.35 Georgia, serif;
}

.edh-lede {
  max-width: 590px;
  margin: 9px 0 0;
  color: var(--edh-muted);
  font: 500 clamp(0.92rem, 1.2vw, 1.02rem)/1.55 Inter, system-ui, sans-serif;
}

.edh-hero-visual {
  position: relative;
  min-width: 0;
  height: 292px;
  isolation: isolate;
}

.edh-hero-cover {
  position: absolute;
  display: block;
  overflow: hidden;
  margin: 0;
  border: 4px solid #fff;
  border-radius: 3px;
  background: var(--edh-cool-blue);
  box-shadow: 0 18px 40px rgba(16, 36, 62, 0.15);
}

.edh-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.edh-hero-cover--1 {
  z-index: 3;
  top: 28px;
  left: 0;
  width: 62%;
  height: 236px;
  transform: rotate(-1.2deg);
}

.edh-hero-cover--2 {
  z-index: 2;
  top: 0;
  right: 0;
  width: 45%;
  height: 142px;
  transform: rotate(1.4deg);
}

.edh-hero-cover--3 {
  z-index: 4;
  right: 8%;
  bottom: 0;
  width: 42%;
  height: 126px;
  transform: rotate(-0.7deg);
}

.edh-hero-visual[data-edh-cover-count="2"] .edh-hero-cover--1 {
  width: 68%;
}

.edh-hero-visual[data-edh-cover-count="2"] .edh-hero-cover--2 {
  top: 72px;
  width: 47%;
  height: 170px;
}

.edh-hero-visual[data-edh-cover-count="1"] .edh-hero-cover--1 {
  top: 12px;
  left: 10%;
  width: 78%;
  height: 266px;
  transform: rotate(-0.6deg);
}

.edh-hero-fallback {
  position: absolute;
  inset: 0;
}

.edh-hero-fallback > span {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 62, 0.11);
  background:
    linear-gradient(135deg, transparent 0 43%, rgba(123, 30, 58, 0.12) 43% 48%, transparent 48%),
    linear-gradient(150deg, #dbe7f3, #f8fafc 68%);
}

.edh-hero-fallback > span:nth-child(1) {
  inset: 26px 12% 20px 2%;
}

.edh-hero-fallback > span:nth-child(2) {
  top: 2px;
  right: 0;
  width: 38%;
  height: 46%;
  border-left: 6px solid var(--edh-category-accent);
}

.edh-hero-fallback > span:nth-child(3) {
  right: 4%;
  bottom: 0;
  width: 44%;
  height: 34%;
  background: var(--edh-ink);
}

.edh-body[data-editorial-hub="poll"] .edh-hero-fallback > span:nth-child(3)::after {
  position: absolute;
  right: 18px;
  bottom: -24px;
  content: "?";
  color: rgba(255, 255, 255, 0.13);
  font: 400 8rem/1 "Bebas Neue", Impact, sans-serif;
}

.edh-grid-section {
  padding-block: clamp(30px, 4vw, 46px) clamp(64px, 7vw, 96px);
}

.edh-grid-section > h2 {
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--edh-rule);
  color: var(--edh-ink);
  font: 800 clamp(0.9rem, 1.2vw, 1rem)/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.edh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.edh-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--edh-rule);
  border-top: 3px solid var(--edh-category-accent);
  border-radius: 4px;
  background: var(--edh-paper-2);
  transition: border-color 160ms ease, transform 160ms ease;
}

.edh-card:hover {
  border-color: #bcc9d6;
  border-top-color: var(--edh-category-accent);
  transform: translateY(-2px);
}

.edh-card--nomedia .edh-media {
  display: none;
}

.edh-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--edh-rule);
  background: var(--edh-cool-blue);
}

.edh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 240ms ease;
}

.edh-card:hover .edh-media img {
  transform: scale(1.018);
}

.edh-media--fallback,
.edh-media--broken {
  background:
    linear-gradient(118deg, rgba(123, 30, 58, 0.9) 0 7px, transparent 7px),
    linear-gradient(145deg, #dbe7f3, #f7f9fb 70%);
}

.edh-media-mark {
  position: absolute;
  inset: 0;
}

.edh-body[data-editorial-hub="poll"] .edh-media--fallback::after,
.edh-body[data-editorial-hub="poll"] .edh-media--broken::after {
  position: absolute;
  right: 18px;
  bottom: -28px;
  content: "?";
  color: rgba(16, 36, 62, 0.11);
  font: 400 8.5rem/1 "Bebas Neue", Impact, sans-serif;
}

.edh-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.edh-context {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0 0 10px;
  color: var(--edh-category-accent);
  font: 800 0.69rem/1.25 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edh-context a {
  color: inherit;
  text-decoration: none;
}

.edh-context a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edh-card-title {
  margin: 0;
  color: var(--edh-ink);
  font: 700 clamp(1.15rem, 1.55vw, 1.42rem)/1.18 Georgia, serif;
}

.edh-card-title a {
  color: inherit;
  text-decoration: none;
}

.edh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 13px 0 0;
  color: var(--edh-category-accent);
  font: 750 0.76rem/1.3 Inter, system-ui, sans-serif;
}

.edh-dek {
  margin: 11px 0 0;
  color: var(--edh-muted);
  font: 450 0.9rem/1.5 Inter, system-ui, sans-serif;
}

.edh-cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 17px;
  color: var(--edh-accent-deep);
  font: 800 0.74rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.edh-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--edh-rule);
  background: var(--edh-paper-2);
  color: var(--edh-muted);
  font: 500 0.96rem/1.5 Inter, system-ui, sans-serif;
}

.edh-card a:focus-visible,
.edh-media:focus-visible {
  outline: 3px solid rgba(123, 30, 58, 0.5);
  outline-offset: 3px;
}

@media (min-width: 1200px) {
  .edh-hero .d3-hero-title {
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  .edh-inner {
    width: min(var(--edh-shell), calc(100% - 40px));
  }

  .edh-hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 26px;
  }

  .edh-hero .d3-hero-title {
    font-size: clamp(3.8rem, 7.5vw, 5.2rem);
  }

  .edh-hero-visual {
    height: 258px;
  }

  .edh-hero-cover--1 {
    height: 208px;
  }

  .edh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .edh-inner {
    width: min(var(--edh-shell), calc(100% - 32px));
  }

  .edh-hero-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding-block: 28px 20px;
  }

  .edh-hero-copy {
    max-width: 620px;
  }

  .edh-hero .d3-hero-title {
    font-size: clamp(3.55rem, 15vw, 5rem);
    white-space: normal;
  }

  .edh-brand {
    margin-top: 15px;
  }

  .edh-lede {
    line-height: 1.48;
  }

  .edh-hero-visual {
    width: min(100%, 570px);
    height: 210px;
  }

  .edh-hero-cover--1 {
    top: 18px;
    width: 60%;
    height: 176px;
  }

  .edh-hero-cover--2 {
    width: 43%;
    height: 104px;
  }

  .edh-hero-cover--3 {
    height: 92px;
  }

  .edh-grid-section {
    padding-top: 26px;
  }

  .edh-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .edh-hero::before {
    width: 5px;
  }

  .edh-hero-layout {
    padding-top: 24px;
  }

  .edh-kicker {
    margin-bottom: 9px;
    font-size: 0.68rem;
  }

  .edh-hero .d3-hero-title {
    font-size: clamp(3.2rem, 17vw, 4.4rem);
  }

  .edh-brand {
    font-size: 1rem;
  }

  .edh-lede {
    font-size: 0.87rem;
  }

  .edh-hero-visual {
    height: 176px;
  }

  .edh-hero-cover--1 {
    top: 15px;
    height: 145px;
  }

  .edh-hero-cover--2 {
    height: 88px;
  }

  .edh-hero-cover--3 {
    height: 77px;
  }

  .edh-grid-section > h2 {
    margin-bottom: 16px;
    font-size: 0.79rem;
  }

  .edh-card-body {
    padding: 16px 16px 18px;
  }
}

.edh-entity-mark {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--edh-rule);
  border-radius: 8px;
}

body.edh-body.cj-page {
  background: var(--edh-paper);
}

body.edh-body.cj-page .bg,
body.edh-body.cj-page .stripe {
  display: none;
}

body.edh-body.cj-page .edh-grid-section > h2 {
  border-bottom-color: color-mix(in srgb, var(--cj-accent) 28%, transparent);
}

.edh-entity-continue {
  padding-bottom: clamp(48px, 6vw, 80px);
}

@media (prefers-reduced-motion: reduce) {
  .edh-card,
  .edh-media img {
    transition: none;
  }
}
