/* Why to invest in Dubai page. Builds on style.css: Poppins, black, brand gold. */
:root {
  --wd-gold: rgb(196, 157, 72);
  --wd-gold-soft: rgba(196, 157, 72, 0.16);
  --wd-ink: #000000;
  --wd-text: #555555;
  --wd-rule: #e6e6e6;
}

html {
  scroll-padding-top: 110px;
}

/* Figures band */
.wd-figures {
  background: var(--wd-ink);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
  margin-top: 4rem;
}

.wd-figures-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--wd-gold);
  margin-bottom: 2rem;
}

.wd-figures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 0;
}

.wd-figure {
  border-left: 2px solid var(--wd-gold);
  padding-left: 1.25rem;
}

.wd-figure dt {
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.wd-figure dd {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.wd-figure-value {
  display: block;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0.35rem 0 0.4rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
  .wd-figures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .wd-figure-value {
    font-size: 2.1rem;
  }
}

/* Reasons */
.wd-reasons {
  padding: 5rem 0 3rem;
}

.wd-index {
  position: sticky;
  top: 120px;
}

.wd-index ol {
  list-style: none;
  counter-reset: wd;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--wd-rule);
}

.wd-index li {
  counter-increment: wd;
}

.wd-index a {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0 0.45rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.wd-index a::before {
  content: counter(wd, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: #bdbdbd;
}

.wd-index a:hover,
.wd-index a[aria-current] {
  color: var(--wd-ink);
}

.wd-index a[aria-current] {
  border-left-color: var(--wd-gold);
}

.wd-index a[aria-current]::before {
  color: var(--wd-gold);
}

.wd-index a:focus-visible,
.wd-reasons a:focus-visible {
  outline: 2px solid var(--wd-gold);
  outline-offset: 2px;
}

.wd-reason {
  position: relative;
  padding: 0 0 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--wd-rule);
}

.wd-reason:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.wd-reason-num {
  display: block;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--wd-gold);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.wd-reason p.color-text-a {
  max-width: 68ch;
  line-height: 1.8;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .wd-reasons {
    padding-top: 3.5rem;
  }

  .wd-reason-num {
    font-size: 3.25rem;
  }
}

/* Rental yield comparison */
.wd-yield {
  margin: 2.5rem 0 0;
  max-width: 640px;
}

.wd-yield figcaption {
  font-weight: 600;
  color: var(--wd-ink);
  margin-bottom: 1.25rem;
}

.wd-yield-chart {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wd-yield-chart li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 4.5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  color: var(--wd-text);
}

.wd-yield-track {
  position: relative;
  height: 10px;
  background: #f2f2f2;
}

/* Bars run on a 0-8% scale: solid to the low end of the range, lighter to the high end. */
.wd-yield-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--to) / 8 * 100%);
  background: linear-gradient(
    to right,
    #9a9a9a calc(var(--from) / var(--to) * 100%),
    #cfcfcf 0
  );
}

.wd-yield-chart .is-dubai {
  color: var(--wd-ink);
  font-weight: 600;
}

.wd-yield-chart .is-dubai .wd-yield-bar {
  background: linear-gradient(
    to right,
    var(--wd-gold) calc(var(--from) / var(--to) * 100%),
    var(--wd-gold-soft) 0
  );
  background-color: transparent;
}

.wd-yield-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wd-note {
  font-size: 0.8125rem;
  color: #8a8a8a;
  margin: 1rem 0 0;
}

@media (max-width: 480px) {
  .wd-yield-chart li {
    grid-template-columns: 5.5rem 1fr 4rem;
    gap: 0.6rem;
    font-size: 0.875rem;
  }
}
