.detail-hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: clamp(6rem, 11vw, 10rem) clamp(1.4rem, 10vw, 10rem);
  color: var(--ivory);
  background: radial-gradient(circle at 68% 42%, #79533b 0%, #4b2e20 34%, #211612 76%);
}

.detail-hero-inner {
  max-width: 68rem;
}

.detail-hero h1 {
  max-width: 60rem;
  margin: 0;
  font: 400 clamp(3.3rem, 7vw, 6.6rem) / 0.96 "Ramalho Felix", Georgia, serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.detail-hero-copy {
  max-width: 45rem;
  margin: 2rem 0 0;
  font-size: 1.05rem;
}

.detail-content {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: clamp(2rem, 6vw, 7rem);
  background: #fff;
}

.detail-copy {
  max-width: 62rem;
}

.detail-copy > h2 {
  max-width: 52rem;
  margin: 0 0 1.7rem;
  font-size: clamp(2.65rem, 4.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.detail-copy > p {
  max-width: 50rem;
  margin: 0 0 1.25rem;
}

.detail-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3.2rem;
  border-top: 1px solid #c9b69d;
}

.detail-topics article {
  padding: 1.7rem 1.7rem 1.7rem 0;
  border-bottom: 1px solid #c9b69d;
}

.detail-topics article:nth-child(odd) {
  border-right: 1px solid #c9b69d;
}

.detail-topics article:nth-child(even) {
  padding-right: 0;
  padding-left: 1.7rem;
}

.detail-topics h2,
.detail-topics h3 {
  margin: 0 0 0.7rem;
  font-size: 1.75rem;
  line-height: 1.08;
}

.detail-topics p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.related-practices {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.4rem, 10vw, 10rem);
  background: #e9e0d4;
}

.related-practices h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-links a {
  color: var(--brown);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 0.92;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  white-space: normal !important;
}

.related-links a {
  padding: 0.75rem 0.95rem;
  border: 1px solid #bba78b;
}

.related-links a:hover {
  color: var(--gold);
}

.practice-grid h3 {
  margin: 0;
}

.practice-title-link {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #bba78b;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.practice-title-link::after {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.practice-title-link:hover,
.practice-title-link:focus-visible {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--gold);
  box-shadow: 0 0.75rem 1.8rem rgba(86, 55, 35, 0.1);
  transform: translateY(-0.18rem);
}

.detail-page .footer-nav a,
.detail-page .topbar nav a {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .detail-hero {
    min-height: 460px;
    padding: 6rem clamp(1.2rem, 7vw, 4rem);
  }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 640px) {
  .detail-hero {
    min-height: 410px;
    padding: 5.5rem 1.15rem 4rem;
  }

  .detail-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .detail-topics {
    grid-template-columns: 1fr;
  }

  .detail-topics article:nth-child(odd),
  .detail-topics article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .related-links {
    flex-direction: column;
  }
}
