/* Scope this repair to the filing record, not the historical listing below it. */
#real-estate-filing {
  scroll-margin-top: 100px;
}

#real-estate-filing .section-header {
  margin-bottom: 32px;
}

#real-estate-filing .section-header h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.4;
}

#real-estate-filing .section-header p {
  max-width: 46em;
  margin: 12px auto 0;
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.8;
}

#real-estate-filing .credential-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 32px;
}

#real-estate-filing .credential-image-card {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: var(--site-paper);
}

#real-estate-filing .credential-image-card > a {
  display: block;
  border-radius: 8px;
}

#real-estate-filing .credential-image-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#real-estate-filing .credential-image-card figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}

#real-estate-filing .credential-image-card figcaption a {
  color: var(--site-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

#real-estate-filing a:focus-visible {
  outline: 2px solid var(--site-blue);
  outline-offset: 4px;
}

#real-estate-filing .credential-details {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: #fff;
}

#real-estate-filing .credential-badge {
  display: block;
  margin-bottom: 10px;
  color: var(--site-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

#real-estate-filing .credential-details h3 {
  margin: 0 0 24px;
  color: var(--site-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

#real-estate-filing .credential-details dl {
  margin: 0;
}

#real-estate-filing .credential-details h3 span {
  display: inline-block;
  max-width: 100%;
}

#real-estate-filing .credential-details time {
  white-space: nowrap;
}

#real-estate-filing .credential-details dl > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--site-line);
}

#real-estate-filing .credential-details dt {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.75;
}

#real-estate-filing .credential-details dd {
  min-width: 0;
  margin: 0;
  color: var(--site-ink);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

#real-estate-filing .credential-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--site-gold);
  background: var(--site-cream);
  color: #52656d;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  #real-estate-filing .credential-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  #real-estate-filing .credential-image-card {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }
}

@media (max-width: 600px) {
  #real-estate-filing {
    scroll-margin-top: 86px;
  }

  #real-estate-filing > .container {
    padding: 0;
  }

  #real-estate-filing .credential-image-card {
    padding: 12px;
  }

  #real-estate-filing .credential-details {
    padding: 22px 20px;
  }

  #real-estate-filing .credential-details h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  #real-estate-filing .credential-details dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  #real-estate-filing .credential-note {
    padding: 14px;
  }
}
