:root {
  --re-blue-900: #0a2463;
  --re-blue-500: #3a86ff;
  --re-red-600: #d7263d;
  --re-red-500: #ef233c;
  --re-white: #ffffff;
  --re-light: #f8f9fa;
  --re-ink: #172033;
  --re-muted: #5b667a;
  --re-border: rgba(10, 36, 99, 0.16);
  --re-shadow: 0 18px 44px rgba(10, 36, 99, 0.12);
  --re-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

.realestate-page {
  color: var(--re-ink);
  background: var(--re-light);
}

.re-hero {
  background:
    linear-gradient(135deg, rgba(10, 36, 99, 0.96), rgba(10, 36, 99, 0.84)),
    linear-gradient(90deg, var(--re-blue-900), var(--re-red-600));
  color: var(--re-white);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.re-hero .breadcrumb a,
.re-hero .breadcrumb span,
.re-hero h1,
.re-hero p {
  color: var(--re-white);
}

.re-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .re-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  }
}

.re-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.re-hero__copy h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.re-hero__media {
  margin: 0;
}

.re-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--re-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.re-shell {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .re-shell {
    grid-template-columns: 18rem minmax(0, 1fr);
  }
}

.re-toc {
  position: sticky;
  top: 0.75rem;
  z-index: 6;
  border-radius: var(--re-radius);
  border: 1px solid var(--re-border);
  background: var(--re-white);
  box-shadow: var(--re-shadow);
  overflow: hidden;
}

.re-toc__toggle {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  color: var(--re-white);
  background: linear-gradient(90deg, var(--re-blue-900), var(--re-blue-500), var(--re-red-600));
  font-weight: 800;
  cursor: pointer;
}

.re-toc__list {
  display: none;
  max-height: min(70vh, 34rem);
  overflow: auto;
  margin: 0;
  padding: 0.75rem;
  list-style: decimal-leading-zero inside;
}

.re-toc.is-open .re-toc__list {
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 1000px) {
  .re-toc__toggle {
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .re-toc__list {
    display: grid;
    gap: 0.35rem;
  }
}

.re-toc__list a {
  display: inline-flex;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--re-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.re-toc__list a:hover,
.re-toc__list a:focus-visible,
.re-toc__list a[aria-current="true"] {
  color: var(--re-white);
  background: var(--re-blue-900);
  outline: none;
}

.re-content {
  display: grid;
  gap: 1rem;
}

.re-card {
  position: relative;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  background: var(--re-white);
  box-shadow: 0 10px 28px rgba(10, 36, 99, 0.06);
  overflow: hidden;
}

.re-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--re-blue-900), var(--re-white), var(--re-red-500));
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.re-card h2 {
  margin-top: 0;
  color: var(--re-blue-900);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.re-card h3 {
  color: var(--re-blue-900);
}

.re-card p,
.re-card li {
  color: var(--re-muted);
  line-height: 1.7;
}

.re-grid,
.re-link-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 680px) {
  .re-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .re-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.re-grid > div {
  padding: 1rem;
  border-radius: var(--re-radius);
  background: var(--re-light);
  border: 1px solid var(--re-border);
}

.re-official,
.re-link-row a,
.re-link-grid a,
.re-download .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  color: var(--re-white);
  background: var(--re-blue-900);
  text-decoration: none;
  font-weight: 800;
}

.re-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.re-link-row a:nth-child(even),
.re-link-grid a:nth-child(even) {
  background: var(--re-red-600);
}

.re-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
}

.re-table-wrap table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  background: var(--re-white);
}

.re-table-wrap th,
.re-table-wrap td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--re-border);
  text-align: left;
}

.re-table-wrap th {
  color: var(--re-white);
  background: var(--re-blue-900);
}

.re-steps {
  counter-reset: re-step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.re-steps li {
  counter-increment: re-step;
  position: relative;
  padding: 1rem 1rem 1rem 3.3rem;
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  background: var(--re-light);
}

.re-steps li::before {
  content: counter(re-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--re-white);
  background: var(--re-red-600);
  font-weight: 900;
}

.re-faq {
  display: grid;
  gap: 0.75rem;
}

.re-faq details {
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  background: var(--re-light);
}

.re-faq summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  color: var(--re-blue-900);
  font-weight: 800;
}

.re-faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.realestate-page .alert {
  border-radius: var(--re-radius);
  border-top: 4px solid var(--re-red-600);
}

@media (max-width: 520px) {
  .re-hero__copy h1 {
    max-width: none;
  }

  .re-link-row a,
  .re-link-grid a {
    width: 100%;
  }
}
