/* Build Path — resident typography & trust footer (V1.2 resident cleanup) */

:root {
  --bp-text-xs: 0.9375rem;
  --bp-text-sm: 1.0625rem;
  --bp-text-base: 1.125rem;
  --bp-text-md: 1.2rem;
  --bp-text-lg: 1.35rem;
  --bp-text-xl: clamp(1.45rem, 2.6vw, 1.75rem);
  --bp-text-kicker: 0.9375rem;
  --bp-line-body: 1.62;
  --bp-line-tight: 1.28;
  --bp-weight-body: 600;
  --bp-weight-heading: 800;
  --bp-weight-strong: 700;
}

body {
  font-weight: var(--bp-weight-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bp-kicker,
.section-kicker {
  margin: 0 0 9px;
  color: #047857;
  font-size: var(--bp-text-kicker);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.35;
}

.bp-section-head {
  margin: 0 0 14px;
}

.bp-section-head.section-header,
.section-header.bp-section-head {
  margin-bottom: 14px;
}

.catchline {
  display: block;
}

.catchline.second {
  color: var(--green-dark, #137a46);
}

/* Subtle trademark — first brand mention only; never enlarge line height */
.tm,
sup.tm {
  font-size: 0.55em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  position: relative;
  top: -0.15em;
  margin-left: 0.06em;
  color: inherit;
  opacity: 0.72;
  letter-spacing: 0;
}

h1 .tm,
h2 .tm,
.catchline .tm,
.hero-title .tm,
.bp-section-title .tm {
  font-size: 0.42em;
  top: -0.35em;
  opacity: 0.65;
}

.bp-section-title,
.bp-section-head > h2,
.card > .bp-section-head h2,
.card > h2.bp-section-title,
.section h2.bp-section-title,
.section-header h2.bp-section-title {
  margin: 0;
  color: var(--charcoal, #111827);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: var(--bp-weight-heading);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.bp-section-head + .report-subhead,
.bp-section-head + .card-intro,
.bp-section-head + p:not(.section-kicker) {
  margin-top: 0;
}
.bp-card-heading {
  font-size: var(--bp-text-lg);
  line-height: var(--bp-line-tight);
  font-weight: var(--bp-weight-heading);
}

.bp-body,
.report-subhead,
.card-intro,
.guidance-lead {
  font-size: var(--bp-text-base);
  line-height: var(--bp-line-body);
  font-weight: var(--bp-weight-body);
}

.bp-note,
.small,
.learned-detail,
.matter-text,
.prep-list,
.matter-local-note,
.funding-path-note {
  font-size: var(--bp-text-sm);
  line-height: var(--bp-line-body);
  font-weight: var(--bp-weight-body);
}

.bp-label,
.summary-pill-label,
.extra-block-label,
.learned-why-label {
  font-size: var(--bp-text-xs);
  font-weight: var(--bp-weight-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.summary-pill strong {
  font-size: var(--bp-text-base);
  line-height: 1.45;
  font-weight: var(--bp-weight-strong);
}

/* Standard resident trust footer — Summary reference */
footer.summary-trust-footer.bp-trust-footer,
footer.summary-trust-footer.trust-footer.bp-trust-footer {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  margin: 36px 0 0;
  padding: 32px clamp(18px, 4vw, 40px) 36px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid #d1fae5;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 55%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #4b5563;
  font-size: var(--bp-text-sm);
  line-height: var(--bp-line-body);
}

.summary-trust-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.summary-trust-footer p {
  max-width: 46rem;
  width: 100%;
  text-align: center;
  margin: 0 auto 10px;
}

.summary-trust-footer p:last-child {
  margin-bottom: 0;
}

.summary-trust-lead {
  margin: 0 0 14px;
  color: #374151;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.62;
}

.summary-trust-note {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.58;
}

.bp-trust-policies {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.bp-trust-policies a {
  color: #047857;
  font-weight: var(--bp-weight-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-trust-policies a:hover {
  color: #065f46;
}

.bp-trust-contact {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.bp-trust-contact a {
  color: #047857;
  font-weight: var(--bp-weight-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-trust-contact a:hover {
  color: #065f46;
}

/* Tagline retired; contact is the last footer block when present */
.summary-trust-footer .bp-trust-tagline {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.summary-trust-footer .bp-trust-contact {
  margin-bottom: 0;
}

/* Do not hide an unhydrated footer shell — empty inners previously collapsed
   the landmark so shared footers looked missing until JS ran (or if JS failed).
   Pages should seed .summary-trust-inner; hydrateTrustFooters replaces content. */
.summary-trust-footer .summary-trust-inner:empty {
  min-height: 4.5rem;
}

/* Reusable resident awareness / information block */
.bp-awareness-block {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 72%);
}

.bp-awareness-block .bp-awareness-kicker {
  margin: 0 0 6px;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-awareness-block .bp-awareness-lead {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: var(--bp-text-base, 1.0625rem);
  font-weight: 600;
  line-height: 1.55;
  max-width: 62ch;
}

.bp-awareness-block .bp-awareness-body {
  margin: 0;
  color: #4b5563;
  font-size: var(--bp-text-sm, 0.98rem);
  line-height: 1.58;
  max-width: 62ch;
}

.page--resident .summary-trust-footer {
  max-width: none;
  width: 100%;
}

@media print {
  footer.summary-trust-footer {
    display: block !important;
    border: 1px solid #ccc;
    background: white !important;
    margin-top: 16px;
    font-size: 0.9rem;
    box-shadow: none;
  }
}
