.hj-promo {
  padding: 1.25rem 0;
}

.hj-promo__card {
  border-radius: 16px;
  border: 4px solid #565656;
  background: rgba(78, 78, 78, 0.20);
  padding: 28px 32px;
  color: #ffffff;
}

.hj-promo__left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hj-promo__icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hj-promo__icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hj-promo__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hj-promo__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.hj-promo__category {
  font-size: 18px;
  color: #e98c26;
  font-weight: 500;
}

.hj-promo__date {
  margin-left: auto;
  font-size: 28px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* Top row layout */
.hj-promo__card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "left date"
    "details details";
  row-gap: 18px;
  column-gap: 18px;
}

.hj-promo__left { grid-area: left; }
.hj-promo__date { grid-area: date; }
.hj-promo__details { grid-area: details; }

.hj-promo__details {
  font-size: 18px;
  line-height: 1.5;
  color: #ffffff;
}

.hj-promo__details p {
  margin: 0.5rem 0;
}

.hj-promo__details ul,
.hj-promo__details ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hj-promo__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "date"
      "details";
  }

  .hj-promo__date {
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }

  .hj-promo__title,
  .hj-promo__date {
    font-size: 22px;
  }
  
  .hj-promo__icon {
  max-width: 31px;
}

.hj-promo__icon img {
  max-width: 31px;
}
}

/* orange border transition */
.hj-promo__card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hj-promo__card:hover {
  border-color: #e98c26;
  box-shadow: 0 0 0 3px rgba(233, 140, 38, 0.25);
}

.hj-promo {
  opacity: 1;
  transform: translateX(0);
}

.hj-promo--animate {
  opacity: 0;
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

.hj-promo--animate[data-entrance="left"] {
  transform: translateX(-18px);
}

.hj-promo--animate[data-entrance="right"] {
  transform: translateX(18px);
}

.hj-promo--animate.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .hj-promo {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =================================================================
   Payout table (optional "payout table" field) — chip tiles
   2-up on phones, 3-up from 560px, 4-up from 900px.
   ================================================================= */
.hj-payouts,
.hj-promo__details--after {
  grid-area: auto;
  grid-column: 1 / -1;
}

.hj-payouts {
  --hj-orange: #fb8500;
  --hj-grad: linear-gradient(140deg, #bf1a2f, #fb8500);
  --hj-grad-text: linear-gradient(90deg, #e43b3b, #f28a1e);
  margin: 0;
  color: #ffffff;
}

.hj-payouts .hj-payouts__title {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.hj-payouts .hj-payouts__sub {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.hj-payouts .hj-payouts__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hj-payouts .hj-payouts__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 14px 14px 12px;
  background: #111111;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  line-height: 1.2;
}

.hj-payouts .hj-payouts__tile::before,
.hj-payouts .hj-payouts__tile::marker {
  content: none;
}

.hj-payouts .hj-payouts__stake {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hj-payouts .hj-payouts__stake b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #ffffff;
}

.hj-payouts .hj-payouts__amt {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.hj-payouts .hj-payouts__amt sup {
  position: static;
  margin-right: 1px;
  font-size: 0.55em;
  line-height: 0;
  vertical-align: 0.55em;
  color: var(--hj-orange);
}

/* Highlighted (top tier) tile */
.hj-payouts .hj-payouts__tile.is-top {
  grid-column: span 2;
  border: 2px solid transparent;
  background: linear-gradient(#160c0c, #160c0c) padding-box, var(--hj-grad) border-box;
}

.hj-payouts .hj-payouts__tile.is-top .hj-payouts__amt {
  font-size: 38px;
}

.hj-payouts .hj-payouts__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #000000;
  background: #f6b26b;
}

/* Total banner */
.hj-payouts .hj-payouts__total {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 16px 18px;
  border: 2px solid transparent;
  background: linear-gradient(#0d0d0d, #0d0d0d) padding-box, var(--hj-grad) border-box;
}

.hj-payouts .hj-payouts__total .hj-payouts__stake {
  color: #ffffff;
}

.hj-payouts .hj-payouts__total .hj-payouts__amt {
  background: var(--hj-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 560px) {
  .hj-payouts .hj-payouts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hj-payouts .hj-payouts__title {
    font-size: 20px;
  }

  .hj-payouts .hj-payouts__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .hj-payouts .hj-payouts__amt {
    font-size: 34px;
  }
}

/* =================================================================
   "Details below table" as an accordion (Tile style)
   Native <details>/<summary>: keyboard and screen-reader friendly,
   no JavaScript. Slides open in browsers that support it.
   ================================================================= */
.hj-terms {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
}

.hj-terms[open] {
  border: 2px solid transparent;
  background: linear-gradient(#111111, #111111) padding-box,
              linear-gradient(140deg, #bf1a2f, #fb8500) border-box;
}

.hj-terms > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hj-terms > summary::-webkit-details-marker {
  display: none;
}

.hj-terms > summary:focus-visible {
  outline: 2px solid #f6b26b;
  outline-offset: 3px;
  border-radius: 10px;
}

.hj-terms .hj-terms__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hj-terms .hj-terms__label b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
}

.hj-terms .hj-terms__label small {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}

/* +/− button */
.hj-terms .hj-terms__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(251, 133, 0, 0.5);
  background: rgba(251, 133, 0, 0.14);
}

.hj-terms .hj-terms__icon::before,
.hj-terms .hj-terms__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: #fb8500;
  transition: transform 220ms ease;
}

.hj-terms .hj-terms__icon::after {
  transform: rotate(90deg);
}

.hj-terms[open] .hj-terms__icon::after {
  transform: rotate(0deg);
}

/* Fine print inside the accordion */
.hj-terms .hj-terms__body {
  padding: 0 16px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hj-terms .hj-terms__body::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.1);
}

/* The rich-text editor saves inline font sizes and line heights on
   paragraphs; !important keeps the fine print consistent. */
.hj-terms .hj-terms__body p,
.hj-terms .hj-terms__body li,
.hj-terms .hj-terms__body span {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.hj-terms .hj-terms__body p {
  margin: 0 0 0.75em;
}

.hj-terms .hj-terms__body p:last-child {
  margin-bottom: 0;
}

.hj-terms .hj-terms__body a {
  color: #f6b26b;
}

@media (min-width: 900px) {
  .hj-terms > summary {
    padding: 16px 20px;
  }

  .hj-terms .hj-terms__body {
    padding: 0 20px 20px;
  }
}

/* Slide open/closed where supported (Chrome/Edge 131+); instant elsewhere */
@supports (interpolate-size: allow-keywords) {
  .hj-terms {
    interpolate-size: allow-keywords;
  }

  .hj-terms::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 280ms ease, content-visibility 280ms allow-discrete;
  }

  .hj-terms[open]::details-content {
    block-size: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hj-terms::details-content,
  .hj-terms .hj-terms__icon::before,
  .hj-terms .hj-terms__icon::after {
    transition: none;
  }
}
