.ecorise-rules-page main {
  overflow: clip;
}

.er-rules-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
  background:
    radial-gradient(circle at 78% 34%, rgba(168, 216, 176, 0.2), transparent 25rem),
    linear-gradient(125deg, var(--er-ink-deep), #0b3d45 72%, #15533e);
}

.er-rules-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.er-rules-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(191, 244, 202, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 244, 202, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, black 52%, black 100%);
}

.er-rules-rings {
  position: absolute;
  z-index: -1;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  right: -10vw;
  top: 4%;
  opacity: 0.54;
}

.er-rules-rings span {
  inset: 50%;
  transform: translate(-50%, -50%);
}

.er-rules-rings span:nth-child(1) { width: 31%; height: 31%; }
.er-rules-rings span:nth-child(2) { width: 51%; height: 51%; }
.er-rules-rings span:nth-child(3) { width: 72%; height: 72%; }
.er-rules-rings span:nth-child(4) { width: 94%; height: 94%; }

.er-rules-hero-inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 150px;
  padding-bottom: 48px;
}

.er-rules-hero-copy {
  max-width: 760px;
  margin: auto 0 58px;
  padding-top: 66px;
}

.er-rules-eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--er-mint-bright);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.er-rules-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 750;
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.er-rules-hero h1 > span,
.er-rules-hero h1 > em {
  display: block;
}

.er-rules-title-pair {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.14em;
}

.er-rules-hero h1 em {
  color: var(--er-mint-bright);
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 750;
  letter-spacing: -0.065em;
}

.er-rules-hero-copy p {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}

.er-rules-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.er-rules-meta span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.er-rules-body {
  padding: 96px 0 120px;
  background:
    linear-gradient(rgba(10, 43, 64, 0.025) 1px, transparent 1px),
    var(--er-paper);
  background-size: 100% 64px;
}

.er-rules-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.er-rules-sidebar {
  position: sticky;
  top: 104px;
  padding: 26px;
  border-radius: 18px;
  color: var(--color-white);
  background: var(--er-ink);
  box-shadow: 0 18px 46px rgba(10, 43, 64, 0.14);
}

.er-rules-sidebar-label {
  display: block;
  margin-bottom: 18px;
  color: var(--er-mint);
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.er-rules-sidebar ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.er-rules-sidebar a {
  text-decoration: none;
}

.er-rules-sidebar li a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  transition: color 160ms ease, transform 160ms ease;
}

.er-rules-sidebar li a:hover {
  color: var(--color-white);
  transform: translateX(2px);
}

.er-rules-sidebar li span {
  color: var(--er-mint);
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 700;
}

.er-rules-return {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border: 1px solid rgba(191, 244, 202, 0.28);
  border-radius: 8px;
  color: var(--er-mint-bright);
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.er-rules-return:hover {
  color: var(--er-ink);
  background: var(--er-mint-bright);
}

.er-rules-content {
  overflow: hidden;
  border: 1px solid var(--er-line);
  border-radius: 22px;
  background: var(--color-white);
  box-shadow: 0 24px 70px rgba(10, 43, 64, 0.08);
}

.er-rules-intro {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 38px 48px;
  border-bottom: 1px solid rgba(46, 125, 82, 0.14);
  background: linear-gradient(120deg, rgba(221, 243, 229, 0.86), rgba(255, 255, 255, 0.92));
}

.er-rules-intro span {
  color: var(--er-green);
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.er-rules-intro p {
  margin: 0;
  color: var(--er-ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.er-rules-scope {
  margin: 0;
  padding: 34px 48px;
  border-bottom: 1px solid var(--er-line-soft);
  color: #627981;
  font-size: 12px;
  line-height: 1.8;
  text-wrap: pretty;
}

.er-rule-section {
  scroll-margin-top: 110px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 25px;
  padding: 48px;
  border-bottom: 1px solid var(--er-line-soft);
}

.er-rule-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 125, 82, 0.2);
  border-radius: 50%;
  color: var(--er-green);
  background: var(--er-mint-pale);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
}

.er-rule-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--er-green);
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.er-rule-section h2 {
  margin: 0 0 20px;
  color: var(--er-ink);
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.er-rule-section p {
  margin: 0;
  color: #627981;
  font-size: 12px;
  line-height: 1.8;
  text-wrap: pretty;
}

.er-rule-section p + p {
  margin-top: 14px;
}

.er-rule-section a {
  color: var(--er-green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.er-rule-section ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.er-rule-section li {
  position: relative;
  padding-left: 23px;
  color: #627981;
  font-size: 12px;
  line-height: 1.75;
  text-wrap: pretty;
}

.er-rule-section li::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  left: 1px;
  top: 8px;
  border-radius: 50%;
  background: var(--er-green);
  box-shadow: 0 0 0 5px rgba(46, 125, 82, 0.09);
}

.er-rules-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 48px;
  color: var(--color-white);
  background: var(--er-ink);
}

.er-rules-closing span,
.er-rules-closing strong {
  display: block;
}

.er-rules-closing span {
  margin-bottom: 6px;
  color: var(--er-mint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.er-rules-closing strong {
  max-width: 500px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.45;
}

.er-rules-closing-copy {
  max-width: 550px;
}

.er-rules-closing-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.7;
  text-wrap: pretty;
}

.er-rules-closing a {
  flex: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--er-ink);
  background: var(--er-mint-bright);
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .er-rules-layout {
    grid-template-columns: 1fr;
  }

  .er-rules-sidebar {
    position: relative;
    top: auto;
  }

  .er-rules-sidebar ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
}

@media (max-width: 680px) {
  .er-rules-hero {
    min-height: 620px;
  }

  .er-rules-hero-inner {
    padding-top: 118px;
    padding-bottom: 32px;
  }

  .er-rules-hero-copy {
    margin-bottom: 38px;
    padding-top: 45px;
  }

  .er-rules-hero h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  .er-rules-hero-copy p {
    font-size: 13px;
  }

  .er-rules-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .er-rules-rings {
    width: 100vw;
    right: -55vw;
  }

  .er-rules-body {
    padding: 56px 0 80px;
  }

  .er-rules-layout {
    padding-right: 14px;
    padding-left: 14px;
  }

  .er-rules-sidebar {
    padding: 22px;
  }

  .er-rules-sidebar ol {
    grid-template-columns: 1fr;
  }

  .er-rules-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 24px;
  }

  .er-rules-intro p {
    font-size: 16px;
  }

  .er-rules-scope {
    padding: 28px 24px;
  }

  .er-rule-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 24px;
  }

  .er-rule-number {
    width: 44px;
    height: 44px;
  }

  .er-rule-section h2 {
    font-size: 23px;
  }

  .er-rules-closing {
    align-items: stretch;
    flex-direction: column;
    padding: 34px 24px;
  }

  .er-rules-closing a {
    justify-content: center;
  }
}
