.finance-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(20px, 4.5vw, 56px);
}

.finance-home .home-hero h1 {
  margin-block: 0 16px;
  max-width: 18ch;
}

.home-hero .home-hook {
  margin-block: 0 12px;
  color: #162a43;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 750;
  line-height: 1.4;
}

.home-hero-copy p {
  font-size: 17px;
  color: #35435b;
}

.home-hero-copy .hero-actions {
  margin-block-start: 22px;
}

.home-hero .home-local {
  margin-block: 14px 0;
  font-size: 14px;
}

.home-hero-art {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cddbe5;
  border-radius: 18px;
  background: #e4f0f6;
}

.finance-home #main-content,
.finance-home #calculators,
.finance-home #uae-decisions,
.finance-home #passport,
.finance-home #worked-example {
  scroll-margin-block-start: 100px;
}

.home-worked > p {
  max-width: 76ch;
}

.home-math {
  margin: 24px 0;
  padding: clamp(14px, 2.5vw, 26px);
  background: #eaf3f8;
  border: 1px solid #cfdfeb;
  border-radius: 18px;
}

.home-math figcaption {
  margin-block-end: 12px;
  font-weight: 750;
}

.home-math ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.home-math li {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
}

.home-math li::marker {
  color: #285976;
  font-weight: 750;
}

.home-math li p {
  margin-block: 8px 0;
}

.home-math .home-math-result {
  color: #173b57;
  font-weight: 800;
}

.home-examples,
.home-faq details {
  max-width: 76ch;
  padding: 12px 16px;
  border: 1px solid #d6e1eb;
  border-radius: 12px;
  background: #fff;
}

.home-faq details + details {
  margin-block-start: 10px;
}

.home-examples summary,
.home-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.home-examples dt {
  font-weight: 750;
}

.home-examples dd {
  margin: 4px 0 14px;
}

.home-sources a {
  overflow-wrap: anywhere;
}

.finance-home .home-hero a:focus-visible,
.home-worked a:focus-visible,
.home-worked summary:focus-visible {
  outline: 3px solid #315f99;
  outline-offset: 3px;
}

html[dir="rtl"] .finance-home .home-hero h1 {
  max-width: 22ch;
  line-height: 1.38;
  letter-spacing: normal;
}

html[dir="rtl"] .finance-home main {
  line-height: 1.8;
}

html[dir="rtl"] .finance-home .section h2 {
  line-height: 1.45;
  letter-spacing: normal;
}

@media (max-width: 800px) {
  .finance-home .home-hero,
  .home-math ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-art {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .finance-home .home-hero {
    gap: 18px;
    padding-block: 24px;
  }

  .finance-home .home-hero h1 {
    font-size: clamp(30px, 8vw, 36px);
    margin-block-end: 12px;
  }

  .home-hero-copy .hero-actions {
    margin-block-start: 16px;
  }

  .home-hero-art {
    max-width: 360px;
    max-height: 220px;
    object-fit: cover;
  }

  .finance-home #main-content,
  .finance-home #calculators,
  .finance-home #uae-decisions,
  .finance-home #passport,
  .finance-home #worked-example {
    scroll-margin-block-start: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
