/* Final homepage refinements requested during live review. */
.portal-page .service-proof > div::before,
.portal-page .service-proof > div:nth-child(2)::before,
.portal-page .service-proof > div:nth-child(3)::before {
  display: none !important;
}
.portal-page .service-proof b {
  color: #61d1cd !important;
}
.portal-page .theme-case-grid a,
.portal-page .theme-case-grid a:nth-child(1),
.portal-page .theme-case-grid a:nth-child(2),
.portal-page .theme-case-grid a:nth-child(3) {
  background: #effbf9 !important;
}
.portal-page .featured-home-copy strong::after {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: -8px;
  padding: 0 13px;
  border-radius: 999px;
  background: #61d1cd;
  color: #fff !important;
  font-weight: 700;
}
.portal-page .featured-home-card:hover .featured-home-copy strong::after {
  background: #00b19f;
}
.portal-page .home-map-panel .home-map-reset {
  width: auto;
  min-height: 34px;
  margin: 2px 0 14px;
  padding: 0 13px;
  border: 1px solid #9adfd8 !important;
  border-radius: 999px;
  background: #effbf9 !important;
  color: #008f82 !important;
  font-size: 12px;
  font-weight: 700;
}
.portal-page .home-map-panel .home-map-reset:hover {
  border-color: #61d1cd !important;
  background: #dff7f5 !important;
}

/* Keep both mega menus readable and structurally consistent. */
.portal-page .service-menu-columns h3 {
  font-size: 17px !important;
}
.portal-page .service-menu-columns a b {
  font-size: 15px !important;
  line-height: 1.4 !important;
}
.portal-page .service-menu-columns a small,
.portal-page .mega-services .service-menu-columns a small {
  display: block !important;
  margin-top: 3px !important;
  color: #657379 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.portal-page .mega-services .service-menu-columns a {
  padding-top: 6px;
  padding-bottom: 6px;
}

.portal-page .service-hero-help a {
  color: #00b19f !important;
}
.portal-page .service-hero-help a:hover {
  color: #00d3be !important;
}

.portal-page .service-search-panel-head > div:first-child span {
  order: 2;
  margin-bottom: 0;
  font-size: 13px !important;
  line-height: 1.25;
  letter-spacing: .05em;
}
.portal-page .service-switcher {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transform: translateY(-48px);
}
.portal-page .service-switcher button {
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px 7px 11px;
  text-align: center;
}
.portal-page .service-switcher button svg {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  overflow: visible;
  color: #15686c;
  stroke-width: 2.15;
}
.portal-page .service-switcher .service-icon-back {
  fill: #e6f7f5;
  stroke: none;
}
.portal-page .service-switcher .service-icon-accent {
  fill: #f47d61;
  stroke: #f47d61;
}
.portal-page .service-switcher .service-icon-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
}
.portal-page .service-switcher button.is-active .service-icon-back {
  fill: rgba(255,255,255,.22);
}
.portal-page .service-switcher button.is-active svg {
  color: #fff;
}
.portal-page .service-switcher .service-mode-icon {
  display: block;
  width: 74px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  filter: none;
}
.portal-page .service-switcher button span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.portal-page .service-search-panel {
  position: relative;
  z-index: 4;
  transform: translateY(-48px);
  margin-bottom: -48px;
}
.portal-page .service-search-panel-head > div:first-child {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding-left: 124px;
  transform: translateY(16px);
}
.portal-page .service-search-panel-head {
  position: relative;
  min-height: 68px;
  margin-bottom: 14px !important;
  align-items: center;
}
.portal-page .service-search-title-icon {
  display: block;
  position: absolute;
  z-index: 3;
  left: -12px;
  top: -63px;
  width: 138px;
  height: 138px;
  margin: 0;
  object-fit: contain;
  background: none;
  filter: none;
}
.portal-page .service-search-panel-head > div:first-child strong {
  order: 1;
  font-size: 30px !important;
  line-height: 1.2;
  letter-spacing: -.03em;
}

/* The carer-centre mode has no secondary criteria field. Collapse that empty
   grid track so the text input grows and the submit button keeps its normal size. */
.portal-page .service-search:has(.service-search-criteria[hidden]):not(.is-ai) {
  grid-template-columns: 185px minmax(320px, 1fr) auto;
}
.portal-page .service-search:has(.service-search-criteria[hidden]):not(.is-ai) .service-search-query {
  grid-column: 2;
}
.portal-page .service-search:has(.service-search-criteria[hidden]):not(.is-ai) > button[type="submit"] {
  grid-column: 3;
  width: auto;
  min-width: 188px;
}
@media (max-width: 760px) {
  .portal-page .service-switcher { transform: translateY(-24px); }
  .portal-page .service-switcher button { min-height: 96px; padding: 9px 3px 8px; }
  .portal-page .service-switcher button svg { width: 36px; height: 36px; flex-basis: 36px; }
  .portal-page .service-switcher .service-mode-icon { width: 58px; height: 50px; flex-basis: 50px; }
  .portal-page .service-switcher button span { font-size: 12px; }
  .portal-page .service-search-panel { transform: translateY(-24px); margin-bottom: -24px; }
  .portal-page .service-search-panel-head { min-height: 58px; margin-bottom: 16px !important; }
  .portal-page .service-search-panel-head > div:first-child { min-height: 52px; padding-left: 88px; transform: translateY(8px); }
  .portal-page .service-search-title-icon { left: -8px; top: -43px; width: 102px; height: 102px; }
  .portal-page .service-search-panel-head > div:first-child strong { font-size: 27px !important; }
  .portal-page .service-search:has(.service-search-criteria[hidden]):not(.is-ai) {
    grid-template-columns: 1fr;
  }
  .portal-page .service-search:has(.service-search-criteria[hidden]):not(.is-ai) .service-search-query,
  .portal-page .service-search:has(.service-search-criteria[hidden]):not(.is-ai) > button[type="submit"] {
    grid-column: 1;
    width: 100%;
  }
}
