/* HPT V3.5 fix — new filename so caches cannot keep the old sheet. */

section.hpt-related .hpt-related-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 1rem !important;
  align-items: stretch !important;
}
section.hpt-related .hpt-related-card {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #0f172a !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.08) !important;
  min-height: 100% !important;
  position: relative !important;
}
section.hpt-related .hpt-related-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  background: #e8eef5 !important;
  flex-shrink: 0 !important;
}
section.hpt-related .hpt-related-card img,
section.hpt-related .hpt-related-media img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  margin: 0 !important;
}
section.hpt-related .type-chip,
section.hpt-related .hpt-page-badge {
  position: absolute !important;
  top: .55rem !important;
  left: .55rem !important;
  z-index: 2 !important;
  background: #0f172a !important;
  color: #fff !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: .22rem .5rem !important;
  border-radius: 999px !important;
}
section.hpt-related .hpt-related-body {
  padding: .75rem .85rem .9rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .35rem !important;
  flex: 1 !important;
}
section.hpt-related .hpt-c-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .3rem !important;
  align-items: center !important;
}
section.hpt-related .hpt-type-badge {
  display: inline-block !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: #1d4ed8 !important;
  background: #e0e7ff !important;
  padding: .12rem .45rem !important;
  border-radius: 999px !important;
}
section.hpt-related .hpt-related-card strong,
section.hpt-related .hpt-related-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
section.hpt-related .hpt-date {
  margin-top: auto !important;
  font-size: .75rem !important;
  color: #64748b !important;
}

/* Nadwi search capsule — last sheet wins */
.hpt-s-hero .hpt-search-bar,
form.hpt-search-bar,
.hpt-search-app .hpt-search-bar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  max-width: 720px !important;
  width: 100% !important;
  margin: .35rem auto 0 !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}
.hpt-s-hero .hpt-search-bar input[type="search"],
.hpt-s-hero .hpt-search-bar input[type="text"],
form.hpt-search-bar input[type="search"],
form.hpt-search-bar input[type="text"] {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 0 3.4rem 0 3.2rem !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: 0 16px 36px rgba(15,23,42,.28) !important;
}
.hpt-s-hero .hpt-search-ico {
  left: 18px !important;
  z-index: 2 !important;
}
