body.hvps-search-results-page .entry-header,
body.hvps-search-results-page .entry-title {
  display: none !important;
}

body.hvps-search-results-page .x-container.max.width.offset {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.hvps-search-results-page .x-main.full,
body.hvps-search-results-page .entry-wrap,
body.hvps-search-results-page .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

.hvps-page {
  --slate: #2F3E46;
  --copper: #B86B45;
  --teal: #3A6B7F;
  --gray: #CED4DA;
  --cream: #F8F4F0;
  --yellow: #F2C94C;
  --green: #4A7C59;
  background: var(--cream);
  color: var(--slate);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hvps-page * { box-sizing: border-box; }

.hvps-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hvps-search-bar {
  padding: 34px 0 30px;
  background: var(--slate);
  color: #fff;
}

.hvps-search-topline {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hvps-section-kicker {
  color: var(--copper);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hvps-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 920px;
  margin: 0;
}

.hvps-form input {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 0 18px;
  background: #fff;
  color: var(--slate);
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.hvps-form input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(242,201,76,.22);
}

.hvps-form button,
.hvps-empty-button,
.hvps-sidebar-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 12px;
  border: 0;
  background: var(--yellow);
  color: #25190d;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: all .18s ease;
}

.hvps-form button:hover,
.hvps-empty-button:hover,
.hvps-sidebar-button:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.hvps-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 700;
}

.hvps-summary span {
  color: var(--yellow);
  font-weight: 950;
}

.hvps-results {
  padding: 44px 0 84px;
}

.hvps-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.hvps-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.hvps-sidebar-card,
.hvps-list-item,
.hvps-empty {
  background: #fff;
  border: 1px solid rgba(47,62,70,.12);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(47,62,70,.08);
}

.hvps-sidebar-card {
  padding: 22px;
}

.hvps-sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.15;
}

.hvps-sidebar-card p {
  margin: 0 0 14px;
  color: rgba(47,62,70,.76);
  line-height: 1.5;
}

.hvps-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hvps-chip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid rgba(47,62,70,.12);
  color: var(--slate);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}

.hvps-chip-list a:hover {
  background: var(--slate);
  color: #fff;
}

.hvps-sidebar-button {
  width: 100%;
  min-height: 48px;
}

.hvps-section {
  margin-bottom: 52px;
}

.hvps-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.hvps-section-head h2 {
  margin: 0;
  color: var(--slate);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hvps-section-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: 999px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.hvps-contractor-grid,
.hvps-page .hv-dir-card-grid-standard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.hvps-existing-contractor-card,
.hvps-existing-contractor-card .hv-trade-card {
  height: 100%;
}

.hvps-existing-contractor-card .hv-trade-card {
  margin: 0 !important;
}

.hvps-fallback-contractor-card {
  background: #fff;
  border: 1px solid rgba(47,62,70,.12);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(47,62,70,.08);
  padding: 24px;
}

.hvps-list {
  display: grid;
  gap: 14px;
}

.hvps-list-item {
  padding: 24px 28px;
}

.hvps-list-item h3 {
  margin: 0 0 8px;
  color: var(--slate);
  font-size: 22px;
  line-height: 1.15;
}

.hvps-list-item h3 a {
  color: var(--slate);
  text-decoration: none;
}

.hvps-list-item h3 a:hover {
  color: var(--copper);
}

.hvps-list-item p {
  margin: 0 0 12px;
  color: rgba(47,62,70,.78);
  line-height: 1.55;
}

.hvps-list-item > a {
  color: var(--teal);
  font-weight: 950;
  text-decoration: none;
}

.hvps-list-item > a:hover {
  color: var(--copper);
}

.hvps-empty {
  padding: 38px;
  text-align: center;
}

.hvps-empty h2 {
  margin: 0 0 10px;
  color: var(--slate);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.hvps-empty p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: rgba(47,62,70,.78);
  line-height: 1.55;
}

/* Blog card fallback. These class names match the latest resources shortcode. */
.hvps-resource-grid,
.hv-latest-resources-grid.hvps-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.hvps-page .hv-latest-resource-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47,62,70,.12);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(47,62,70,.08);
}

.hvps-page .hv-resource-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate);
  text-decoration: none;
}

.hvps-page .hv-resource-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hvps-page .hvt-cat-post-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hvps-page .hv-resource-card-body {
  padding: 22px;
}

.hvps-page .hv-resource-card-kicker {
  margin-bottom: 8px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hvps-page .hv-resource-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(47,62,70,.58);
  font-size: 13px;
  font-weight: 850;
}

.hvps-page .hv-resource-meta-row span + span::before {
  content: "•";
  margin-right: 10px;
  color: rgba(47,62,70,.38);
}

.hvps-page .hv-resource-card-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hvps-page .hv-resource-card-body h3 a {
  color: var(--slate);
  text-decoration: none;
}

.hvps-page .hv-resource-card-body h3 a:hover {
  color: var(--copper);
}

.hvps-page .hv-resource-card-body p {
  margin: 0 0 14px;
  color: rgba(47,62,70,.78);
  line-height: 1.55;
}

.hvps-page .hv-resource-readmore {
  color: var(--teal);
  font-weight: 950;
  text-decoration: none;
}

.hvps-page .hv-resource-readmore:hover {
  color: var(--copper);
}

@media (max-width: 980px) {
  .hvps-layout {
    grid-template-columns: 1fr;
  }
  .hvps-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hvps-search-bar {
    padding: 28px 0;
  }
  .hvps-form,
  .hvps-contractor-grid,
  .hvps-page .hv-dir-card-grid-standard,
  .hvps-resource-grid,
  .hv-latest-resources-grid.hvps-resource-grid,
  .hvps-sidebar {
    grid-template-columns: 1fr;
  }
  .hvps-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hvps-list-item,
  .hvps-sidebar-card,
  .hvps-empty {
    border-radius: 18px;
    padding: 22px;
  }
}
