/* Public inner-page banners share one size and reading hierarchy.
   Page settings continue to provide the image and editable content. */
body.public-body {
  --inner-banner-height: 420px;
  --inner-banner-mobile-min-height: 360px;
}

body.public-body .inner-page-banner-section {
  padding: 18px 0 34px;
}

/* The Insights template retained its legacy page-level 28px offset.
   Keep its shared banner aligned with the other public inner pages. */
body.public-body .insights-page-v4 {
  padding-top: 0;
}

body.public-body .insights-hero-v4 {
  margin-top: 0;
}

/* Keep the article archive balanced with its category rail. */
body.public-body .insights-v4-layout {
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
}

body.public-body .inner-page-banner-card {
  height: var(--inner-banner-height) !important;
  min-height: var(--inner-banner-height) !important;
  border-radius: 16px;
  background-position: center;
  box-shadow: 0 14px 34px rgba(15, 37, 70, .12);
}

body.public-body .inner-page-banner-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  min-height: var(--inner-banner-height);
  gap: clamp(28px, 3.5vw, 48px);
  padding: clamp(34px, 3.8vw, 52px);
}

body.public-body .inner-page-banner-copy {
  max-width: 720px;
  gap: 12px;
}

body.public-body .inner-page-banner-copy h1 {
  max-width: 18ch !important;
  margin: 0 !important;
  font-size: clamp(34px, 3.25vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

body.public-body .inner-page-banner-copy .hero-text {
  max-width: 56ch !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

body.public-body .inner-page-banner-copy .hero-actions {
  gap: 12px;
  margin-top: 8px;
}

body.public-body .inner-page-banner-copy .btn {
  min-height: 42px;
  padding-inline: 20px;
  border-radius: 8px;
}

body.public-body .inner-page-banner-side {
  justify-content: flex-end;
}

body.public-body .inner-page-panel-card {
  width: min(100%, 320px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(7, 25, 46, .58);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

body.public-body .inner-page-banner-metrics {
  max-width: 660px;
  gap: 10px;
}

body.public-body .inner-metric-card {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

/* PCBA uses the same banner frame while retaining its editable review content. */
body.public-body .pcba-page .pcba-hero-band {
  padding: 18px 0 34px;
}

body.public-body .pcba-page .pcba-hero-shell {
  min-height: var(--inner-banner-height);
  height: var(--inner-banner-height);
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 37, 70, .12);
}

body.public-body .pcba-page .pcba-hero-main {
  min-height: var(--inner-banner-height);
  padding: clamp(34px, 3.8vw, 52px);
}

body.public-body .pcba-page .pcba-hero-main h1 {
  max-width: 18ch;
  font-size: clamp(34px, 3.25vw, 48px);
  line-height: 1.08;
}

body.public-body .pcba-page .pcba-hero-copy {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.65;
}

body.public-body .pcba-page .pcba-hero-review {
  margin: 30px 30px 30px 0;
  padding: 22px;
  border-radius: 12px;
}

/* Industry and service details use a separate template but the same banner frame. */
body.public-body :is(.ind-hero, .svc-detail-hero) {
  padding: 18px 0 34px;
}

body.public-body :is(.ind-hero-inner, .svc-detail-hero .ind-hero-inner) {
  min-height: var(--inner-banner-height);
  height: var(--inner-banner-height);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 37, 70, .12);
}

body.public-body :is(.ind-hero-grid, .svc-detail-hero .ind-hero-grid) {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  min-height: var(--inner-banner-height);
  gap: clamp(28px, 3.5vw, 48px);
  padding: clamp(34px, 3.8vw, 52px);
}

body.public-body :is(.ind-hero-copy h1, .svc-detail-hero .ind-hero-copy h1) {
  max-width: 18ch;
  font-size: clamp(34px, 3.25vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

body.public-body :is(.ind-hero-desc, .svc-detail-hero .ind-hero-desc) {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.65;
}

body.public-body :is(.ind-hero-card, .svc-detail-hero-card) {
  max-width: 320px;
  padding: 22px;
  border-radius: 12px;
}

@media (max-width: 960px) {
  body.public-body .insights-v4-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.public-body .inner-page-banner-card {
    height: auto !important;
    min-height: var(--inner-banner-mobile-min-height) !important;
  }

  body.public-body .inner-page-banner-grid {
    grid-template-columns: 1fr;
    min-height: var(--inner-banner-mobile-min-height);
    gap: 20px;
  }

  body.public-body .inner-page-banner-side {
    justify-content: flex-start;
  }

  body.public-body .inner-page-panel-card {
    width: min(100%, 520px);
  }

  body.public-body .pcba-page .pcba-hero-shell {
    height: auto;
    min-height: var(--inner-banner-mobile-min-height);
    grid-template-columns: 1fr;
  }

  body.public-body .pcba-page .pcba-hero-main {
    min-height: 0;
  }

  body.public-body .pcba-page .pcba-hero-review {
    margin: 0 32px 32px;
  }

  body.public-body :is(.ind-hero-inner, .svc-detail-hero .ind-hero-inner) {
    height: auto;
    min-height: var(--inner-banner-mobile-min-height);
  }

  body.public-body :is(.ind-hero-grid, .svc-detail-hero .ind-hero-grid) {
    grid-template-columns: 1fr;
    min-height: var(--inner-banner-mobile-min-height);
  }

  body.public-body :is(.ind-hero-card, .svc-detail-hero-card) {
    max-width: 520px;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body.public-body .inner-page-banner-section,
  body.public-body .pcba-page .pcba-hero-band {
    padding: 16px 0 28px;
  }

  body.public-body .inner-page-banner-card,
  body.public-body .pcba-page .pcba-hero-shell {
    min-height: var(--inner-banner-mobile-min-height) !important;
    border-radius: 12px;
  }

  body.public-body .inner-page-banner-grid,
  body.public-body .pcba-page .pcba-hero-main {
    padding: 28px 24px;
  }

  body.public-body .inner-page-banner-copy h1,
  body.public-body .pcba-page .pcba-hero-main h1 {
    max-width: 13ch !important;
    font-size: clamp(31px, 9vw, 40px) !important;
  }

  body.public-body .inner-page-banner-copy .hero-text,
  body.public-body .pcba-page .pcba-hero-copy {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  body.public-body .inner-page-banner-copy .hero-actions,
  body.public-body .pcba-page .pcba-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.public-body .inner-page-banner-copy .btn,
  body.public-body .pcba-page .pcba-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body.public-body .inner-page-banner-side {
    display: none;
  }

  body.public-body .pcba-page .pcba-hero-review {
    margin: 0 24px 24px;
    padding: 16px;
    border-radius: 10px;
  }

  body.public-body .pcba-page .pcba-hero-review-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.public-body .pcba-page .pcba-hero-review-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
  }

  body.public-body .pcba-page .pcba-hero-review-item div > span {
    font-size: 11px;
  }

  body.public-body :is(.ind-hero, .svc-detail-hero) {
    padding: 16px 0 28px;
  }

  body.public-body :is(.ind-hero-inner, .svc-detail-hero .ind-hero-inner) {
    min-height: var(--inner-banner-mobile-min-height);
    border-radius: 12px;
  }

  body.public-body :is(.ind-hero-grid, .svc-detail-hero .ind-hero-grid) {
    padding: 28px 24px;
  }

  body.public-body :is(.ind-hero-copy h1, .svc-detail-hero .ind-hero-copy h1) {
    max-width: 13ch;
    font-size: clamp(31px, 9vw, 40px);
  }

  body.public-body :is(.ind-hero-actions, .svc-detail-hero .ind-hero-actions) {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.public-body :is(.ind-hero-actions .btn, .svc-detail-hero .ind-hero-actions .btn) {
    width: 100%;
    justify-content: center;
  }

  body.public-body :is(.ind-hero-card, .svc-detail-hero-card) {
    display: none;
  }
}
