/* Locke & Ladder hierarchy pass: quieter type, more room, less repeated emphasis. */
[data-testid$="-root"] main h2.font-display {
  font-size: clamp(2.6rem, 4.1vw, 4.85rem) !important;
  line-height: 1.08 !important;
  max-width: 12ch;
}

[data-testid$="-root"] main p.font-serif {
  font-size: clamp(1rem, 1.18vw, 1.2rem) !important;
  line-height: 1.62 !important;
  max-width: 34rem;
}

[data-testid$="-root"] [data-testid="section-hero"] h1.font-display {
  font-size: clamp(4.1rem, 5.8vw, 7.15rem) !important;
  line-height: 1.02 !important;
  max-width: 12ch;
}

[data-testid$="-root"] [data-testid="section-hero"] p.font-serif {
  font-size: clamp(1rem, 1.28vw, 1.28rem) !important;
  line-height: 1.58 !important;
  max-width: 36rem !important;
  margin-top: 2rem !important;
}

[data-testid$="-root"] [data-testid="hero-section-tag"] {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

[data-testid="section-allocation"] {
  padding-top: clamp(5rem, 8vw, 8rem) !important;
  padding-bottom: clamp(5.5rem, 9vw, 9rem) !important;
}

[data-testid="section-allocation"] [data-testid="allocation-headline"] {
  font-size: clamp(2.6rem, 3.9vw, 4.65rem) !important;
  line-height: 1.09 !important;
  max-width: 11ch;
}

[data-testid="section-allocation"] [data-testid="allocation-bar"] {
  margin-top: clamp(2.4rem, 4vw, 4rem) !important;
}

[data-testid="allocation-bar"] > div:first-child {
  height: clamp(2rem, 3vw, 3rem) !important;
  border-width: 1px !important;
}

[data-testid="allocation-bar"] > div[aria-hidden="true"] {
  display: none !important;
}

[data-testid="allocation-groups"] {
  margin-top: clamp(2.5rem, 4vw, 4.25rem) !important;
}

[data-testid^="group-"] {
  padding: clamp(1.6rem, 2.2vw, 2.3rem) !important;
}

[data-testid^="group-"] > div:first-child {
  gap: 0.65rem !important;
  min-height: 1.25rem;
}

[data-testid^="group-"] > div:first-child span:last-child {
  font-size: 0.57rem !important;
  letter-spacing: 0.14em !important;
  line-height: 1.35 !important;
  white-space: nowrap;
}

[data-testid^="group-"] > div:nth-child(2) {
  font-size: clamp(1.45rem, 1.8vw, 2.15rem) !important;
  line-height: 1.08 !important;
  margin-top: 1.25rem !important;
}

[data-testid^="group-"] h3 {
  font-size: clamp(0.95rem, 1vw, 1.08rem) !important;
  line-height: 1.28 !important;
  margin-top: 1rem !important;
  max-width: 13rem;
}

[data-testid^="group-"] > div:last-child {
  font-size: clamp(0.75rem, 0.8vw, 0.875rem) !important;
  line-height: 1.45 !important;
  margin-top: 0.85rem !important;
  max-width: 16rem;
}

[data-testid="section-allocation"] div[class*="border-t-2"] {
  margin-top: clamp(2.5rem, 4vw, 4rem) !important;
  padding-top: 1.75rem !important;
  gap: 1rem !important;
}

[data-testid="section-allocation"] div[class*="border-t-2"] > div:first-child {
  font-size: 0.625rem !important;
  letter-spacing: 0.14em !important;
  line-height: 1.5 !important;
  max-width: 28rem;
}

[data-testid="allocation-total"] {
  font-size: clamp(2.4rem, 4vw, 4.75rem) !important;
  line-height: 1 !important;
}

.mark-estimate-sticky {
  position: sticky;
  top: 6rem;
}

.mark-estimate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem 7rem;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(0.86rem, 0.92vw, 0.94rem);
  line-height: 1.28;
}

.mark-estimate-head {
  padding-top: 0;
  padding-bottom: 0.75rem;
  border-top: 0;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

[data-testid="brava-vs-wood"] li {
  gap: 1rem 1.5rem !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

[data-testid="brava-vs-wood"] li > div {
  font-size: clamp(0.86rem, 0.95vw, 1rem) !important;
  line-height: 1.45 !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
  [data-testid="allocation-groups"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [data-testid="allocation-groups"] > [data-testid^="group-"] {
    border-top: 1px solid var(--rule) !important;
  }
}

@media (max-width: 767px) {
  [data-testid$="-root"] main h2.font-display {
    font-size: clamp(2.35rem, 10vw, 3.3rem) !important;
    line-height: 1.1 !important;
    max-width: 11ch;
  }

  [data-testid$="-root"] [data-testid="section-hero"] h1.font-display {
    font-size: clamp(3.35rem, 13vw, 4.9rem) !important;
    line-height: 1.04 !important;
  }

  [data-testid$="-root"] [data-testid="section-hero"] p.font-serif {
    font-size: 1rem !important;
    max-width: 29rem !important;
  }

  [data-testid="section-allocation"] [data-testid="allocation-headline"] {
    font-size: clamp(2.25rem, 9vw, 3rem) !important;
    line-height: 1.12 !important;
  }

  [data-testid="allocation-total"] {
    font-size: clamp(2.15rem, 10vw, 3.2rem) !important;
  }

  .mark-estimate-sticky {
    position: static;
  }

  .mark-estimate-row {
    grid-template-columns: minmax(0, 1fr) 3.25rem 6.25rem;
    gap: 0.75rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 479px) {
  [data-testid$="-root"] [data-testid="section-hero"] .grid {
    grid-template-columns: 1fr !important;
    row-gap: 1rem !important;
  }
}
