/* Public-site SEO and usability refinements. This file intentionally excludes /system/. */
.unified-header .brand-block .site-brand-title {
  margin: 0 !important;
  color: var(--ibr-blue) !important;
  font-size: clamp(20px, 1.45vw, 28px) !important;
  font-weight: 800;
  letter-spacing: -.5px !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}

.unified-header .brand-block .site-brand-title span { color: var(--ibr-orange) !important; }

/* Keep inner-page introductions informative without hiding the useful content below the fold. */
body.ibr-public-page .service-hero { margin-top: 22px; }
body.ibr-public-page .service-hero .inner { padding: clamp(28px, 4.2vw, 52px) clamp(24px, 5vw, 62px); }
body.ibr-public-page .service-hero h1 { font-size: clamp(32px, 4vw, 50px); }
body.ibr-public-page .service-hero p { font-size: clamp(15px, 1.45vw, 19px); }

.about-facts,
.route-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.about-facts article,
.route-checklist article {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 18px;
  background: rgba(255,255,255,.20);
}

.about-facts h2,
.route-checklist h2 { margin-top: 0; font-size: 20px; }

.content-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.content-links a {
  padding: 10px 14px;
  border: 1px solid rgba(7,83,167,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: var(--ibr-blue, #0753a7);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .about-facts,
  .route-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .unified-header .brand-block .site-brand-title { font-size: 20px !important; white-space: normal !important; }
  body.ibr-public-page .service-hero { margin-top: 14px; }
  body.ibr-public-page .service-hero .inner { padding: 28px 20px; }
  body.ibr-public-page .service-hero h1 { font-size: 32px; }
}

/* Purpose-built imagery for the public tools hub. */
body.tools-page .cards { align-items: stretch; }
body.tools-page .card { min-height: 390px; }
body.tools-page .card-icon.card-icon-image {
  width: 132px;
  height: 116px;
  margin: 0 auto 18px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(78, 150, 215, .22);
  border-radius: 22px;
  background: linear-gradient(145deg, #eef8ff, #dceeff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 9px 20px rgba(6, 55, 127, .08);
}
body.tools-page .card.orange .card-icon.card-icon-image {
  border-color: rgba(255, 105, 15, .22);
  background: linear-gradient(145deg, #fff8f2, #ffeadc);
}
body.tools-page .card-icon.card-icon-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(6, 55, 127, .12));
  transition: transform .22s ease;
}
body.tools-page .card:hover .card-icon.card-icon-image img { transform: scale(1.045); }

@media (max-width: 650px) {
  body.tools-page .card { min-height: 345px; }
  body.tools-page .card-icon.card-icon-image { width: 124px; height: 108px; }
}

/* Use the same service imagery on the home-page gateway cards. */
.gate-icon-xl.gate-icon-image {
  overflow: hidden;
  padding: 5px;
}
.gate-icon-xl.gate-icon-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(6, 55, 127, .12));
  transition: transform .22s ease;
}
.gate:hover .gate-icon-xl.gate-icon-image img { transform: scale(1.045); }
