/* HLUKH shared page frame, v79.29.9.
   One brand line above every page heading and one footer for every page.
   Scoped to .site-brand and footer.site-footer so page-specific styles stay intact. */

/* Brand line above the page heading: company identity and a calm way home. */
.site-brand {
  display: inline-block;
  margin: 0 0 .9rem;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  color: #3b4a5c;
  text-decoration: none;
}
.site-brand b { font-weight: 800; letter-spacing: .05em; color: #1b2836; }
.site-brand:hover,
.site-brand:focus-visible {
  color: #1b2836;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.site-brand:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 2px;
}
/* Centered page headers keep the brand line on its own row. */
header .site-brand + h1,
.hero-band-inner .site-brand + h1 {
  margin-top: 0;
}
.agents-hero-copy .site-brand {
  display: block;
  margin-bottom: .75rem;
}

/* Shared footer: company badges, company legal note, profile sentence, copyright. */
footer.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin: 2rem 0 0;
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(15, 23, 42, .06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .9rem;
  line-height: 1.6;
  color: #4b5563;
}
footer.site-footer > p {
  max-width: 1100px;
  margin: 0;
}
footer.site-footer a {
  color: #2563eb;
  text-decoration: none;
}
footer.site-footer a:hover {
  text-decoration: underline;
}
footer.site-footer .partner-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  margin: 0;
}
footer.site-footer .partner-badges a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 32px;
  max-width: min(100%, 34rem);
  padding: .35rem .7rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
footer.site-footer .partner-badges a:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  text-decoration: none;
}
footer.site-footer .partner-badges a::after {
  content: none;
}
footer.site-footer .partner-badges img.badge-flag {
  height: 20px;
  width: auto;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  display: block;
}
footer.site-footer .partner-badges img.badge-round {
  height: 20px;
  width: auto;
  aspect-ratio: 1 / 1;
  display: block;
}
footer.site-footer .legal-note .icon-scale {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: text-bottom;
  margin-right: .35em;
  background: url("/assets/icons/scale-16.webp") center / contain no-repeat;
  background-image: image-set(url("/assets/icons/scale-16.webp") 1x, url("/assets/icons/scale-32.webp") 2x);
}
footer.site-footer .legal-note .nobr {
  white-space: nowrap;
}
footer.site-footer .copyright-line {
  font-size: .95em;
  opacity: .8;
}

@media (max-width: 760px) {
  footer.site-footer {
    padding: 1rem .75rem 1.25rem;
  }
  footer.site-footer .partner-badges a {
    white-space: normal;
  }
}

/* Line breaking: balanced headings and centered footer lines, no single-word last lines. */
h1, h2, h3, .site-brand { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
body footer.site-footer > p { text-wrap: balance; }
