/*
 Theme Name:   WPD Clean
 Theme URI:    https://wpdnetwork.com
 Description: Clean, modern child theme for WPD site. Reference design: top bar, hero, specialty grid, multi-column footer.
 Author:       WPD
 Template:     physicans
 Version:      1.5.5
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: wpd-clean
*/

:root {
  --wpd-primary: #0064aa;
  --wpd-primary-dark: #012853;
  --wpd-primary-deep: #0a2f57;
  --wpd-primary-midnight: #0d2340;
  --wpd-primary-hover: #005a98;
  --wpd-heading: #1e3550;
  --wpd-accent: #f3c9aa;
  --wpd-topbar-bg: #e8eaef;
  --wpd-hero-bg: #012853;
  --wpd-bg: #f1f0ed;
  --wpd-surface: #ffffff;
  --wpd-surface-soft: #f8f5ef;
  --wpd-text: #1a1d24;
  --wpd-text-muted: #5c6370;
  --wpd-border: #e0e1e3;
  --wpd-radius: 6px;
  --wpd-radius-card: 14px;
  --wpd-radius-btn: 8px;
  --wpd-shadow-card: 0 6px 18px rgba(1, 40, 83, 0.06);
  --wpd-font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wpd-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --wpd-text-xs: 0.8125rem;
  --wpd-text-sm: 0.875rem;
  --wpd-text-base: 1rem;
  --wpd-heading-display: clamp(1.75rem, 3.4vw, 2.65rem);
  --wpd-header-solid: #123a65;
  --wpd-header-bg: linear-gradient(180deg, #013765 0%, #02467d 100%);
  --wpd-hero-panel-bg: linear-gradient(165deg, #02294e 0%, #02467d 100%);
  --wpd-footer-bg: linear-gradient(165deg, #012853 0%, #023a6e 45%, #012853 100%);
  --wpd-btn-primary-bg: linear-gradient(180deg, #0064aa 0%, #02508a 100%);
  /* ~2px at 16px root — header/footer type nudge */
  --wpd-type-nudge: 0.125rem;
}

/* Balanced root: midpoint between 15px (93.75%) and 16px (100%) type scales. */
html {
  font-size: 96.875%;
}

/* ========== Physician page reference-match pass ========== */
body.page-template-page-physicians .wpd-header-new-bg,
body.page-template-page-physicians .wpd-header-new {
  background: var(--wpd-header-solid);
}

body.page-template-page-physicians .wpd-header-new .main-navigation .main-menu {
  gap: 0.9rem;
}

body.page-template-page-physicians .wpd-header-new .main-navigation .main-menu > li.current-menu-item > a::before,
body.page-template-page-physicians .wpd-header-new .main-navigation .main-menu > li.current-menu-ancestor > a::before,
body.page-template-page-physicians .wpd-header-new .main-navigation .main-menu > li.current_page_parent > a::before {
  bottom: -0.7rem;
}

body.page-template-page-physicians .wpd-physicians-page {
  padding: 1.25rem 0 3.25rem;
  background: linear-gradient(180deg, #eef1f4 0%, var(--wpd-bg) 9rem, var(--wpd-bg) 100%);
}

body.page-template-page-physicians .wpd-physicians-shell {
  max-width: 1180px;
  padding: 0 1.15rem;
}

body.page-template-page-physicians .wpd-physicians-search-surface {
  display: flex;
  align-items: stretch;
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-template-page-physicians .wpd-physicians-search-row {
  display: grid;
  width: 100%;
  min-width: 0;
  /* Min width on col1 keeps the query field usable; city + button stay fixed-ish */
  grid-template-columns: minmax(14rem, 1fr) minmax(9.5rem, 11rem) minmax(5.75rem, 7.25rem);
  gap: 0;
  align-items: stretch;
  min-height: var(--wpd-physicians-search-control-height);
  border: 1px solid rgba(18, 58, 101, 0.09);
  border-radius: 10px;
  /* visible: avoid clipping descenders / native <select> text */
  overflow: visible;
  background: #fff;
  box-shadow: none;
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-form,
body.page-template-page-physicians .wpd-physicians-search-city,
body.page-template-page-physicians .wpd-physicians-search-city .ais-MenuSelect {
  height: 100%;
  min-height: 0;
}

body.page-template-page-physicians .wpd-physicians-search-city .ais-MenuSelect {
  display: flex;
  align-items: center;
  justify-content: stretch;
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-input {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  font-family: var(--wpd-font);
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(13, 35, 64, 0.09);
  /* !important: Algolia searchBox used Tailwind pl-2/p-1 on the input, which overrode theme padding and caused icon overlap */
  padding-left: calc(var(--wpd-search-icon-offset) + 1.85rem) !important;
  padding-right: 0.75rem !important;
  padding-top: var(--wpd-physicians-search-pad-block, 0.5rem) !important;
  padding-bottom: var(--wpd-physicians-search-pad-block, 0.5rem) !important;
  font-size: var(--wpd-text-sm);
  color: #1f2e42;
  line-height: var(--wpd-physicians-search-line-height, 1.35);
}

body.page-template-page-physicians .wpd-physicians-search-city .ais-MenuSelect-select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--wpd-font);
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(13, 35, 64, 0.09);
  margin: 0;
  /* WebKit/Safari: do not use line-height === height; use symmetric pad-y from one-line cap height */
  padding: var(--wpd-physicians-search-select-pad-y, 0.45rem) 1.65rem var(--wpd-physicians-search-select-pad-y, 0.45rem) 0.55rem;
  height: var(--wpd-physicians-search-control-height, 2.5rem);
  line-height: var(--wpd-physicians-search-line-height, 1.35);
  background-color: #f3f5f8;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(34, 50, 71, 0.5) 50%),
    linear-gradient(135deg, rgba(34, 50, 71, 0.5) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position: calc(100% - 0.62rem) 50%, calc(100% - 0.38rem) 50%;
  background-size: 0.34rem 0.34rem, 0.34rem 0.34rem;
  color: #223247;
  font-size: var(--wpd-text-sm);
  font-weight: 600;
  outline: none;
}

body.page-template-page-physicians .wpd-physicians-search-city .ais-MenuSelect-select:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(0, 100, 170, 0.45);
}

body.page-template-page-physicians .wpd-physicians-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0 0.65rem;
  border-radius: 0;
  background: linear-gradient(180deg, #133f70 0%, var(--wpd-header-solid) 100%);
  color: #fff;
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}

body.page-template-page-physicians #searchbox.wpd-physicians-searchbox,
body.page-template-page-physicians .wpd-physicians-searchbox {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-form {
  /* Reserve a fixed icon column so placeholder never collides with the magnifier */
  --wpd-search-icon-offset: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
}

body.page-template-page-physicians .wpd-physicians-search-city,
body.page-template-page-physicians .wpd-physicians-search-submit {
  min-width: 0;
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-form::before {
  top: 50%;
  left: var(--wpd-search-icon-offset);
  transform: translateY(-50%);
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-form::after {
  top: calc(50% + 0.28rem);
  left: calc(var(--wpd-search-icon-offset) + 0.7rem);
  transform: rotate(45deg);
}

body.page-template-page-physicians .wpd-physicians-workspace__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

body.page-template-page-physicians .wpd-physicians-filter-panel,
body.page-template-page-physicians .wpd-physicians-results-workspace,
body.page-template-page-physicians .wpd-physicians-current-refinements-shell,
body.page-template-page-physicians .wpd-physicians-results-grid-shell,
body.page-template-page-physicians .wpd-physicians-pagination-shell {
  background: transparent;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

body.page-template-page-physicians .wpd-physicians-filter-panel {
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(18, 58, 101, 0.07);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(13, 35, 64, 0.035);
}

body.page-template-page-physicians .wpd-physicians-filter-panel__header {
  padding-bottom: 0.55rem;
  border: 0;
}

body.page-template-page-physicians .wpd-physicians-filter-panel__eyebrow {
  margin: 0;
  color: #8d8792;
  font-size: var(--wpd-text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.page-template-page-physicians .wpd-physicians-filter-group {
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(18, 58, 101, 0.07);
}

body.page-template-page-physicians .wpd-physicians-filter-group__title {
  margin-bottom: 0.55rem;
  color: var(--wpd-text);
  font-family: var(--wpd-font-display);
  font-size: var(--wpd-text-base);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.page-template-page-physicians .wpd-physicians-filter-group__facet .ais-RefinementList-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-template-page-physicians .wpd-physicians-filter-group__facet .ais-RefinementList-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  color: #4a5568;
  font-size: var(--wpd-text-xs);
  line-height: 1.35;
}

body.page-template-page-physicians .wpd-physicians-filter-group__facet .ais-RefinementList-checkbox {
  width: 0.82rem;
  height: 0.82rem;
  margin: 0;
}

body.page-template-page-physicians .wpd-physicians-filter-group__facet .ais-RefinementList-count {
  color: #8b9099;
  font-size: 0.7rem;
}

body.page-template-page-physicians .wpd-physicians-filter-rail .wpd-physicians-filter-group__facet .ais-MenuSelect-select,
body.page-template-page-physicians .wpd-physicians-mobile-filters .wpd-physicians-filter-group__facet .ais-MenuSelect-select,
body.page-template-page-physicians .wpd-physicians-hits-per-page .ais-HitsPerPage-select {
  min-height: 2rem;
  padding: 0.3rem 1.6rem 0.3rem 0.6rem;
  border: 1px solid rgba(13, 35, 64, 0.09);
  border-radius: 8px;
  background-color: #fbfafb;
  box-shadow: none;
  font-size: var(--wpd-text-xs);
}

body.page-template-page-physicians .wpd-physicians-support-card {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(18, 58, 101, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffefd 0%, #f6f1eb 100%);
  box-shadow: none;
}

body.page-template-page-physicians .wpd-physicians-support-card__title {
  margin: 0.25rem 0 0.4rem;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--wpd-heading);
}

body.page-template-page-physicians .wpd-physicians-support-card__copy {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #5d6470;
}

body.page-template-page-physicians .wpd-physicians-support-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  margin-top: 0.65rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--wpd-header-solid);
  color: #fff;
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

body.page-template-page-physicians .wpd-physicians-results-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0;
}

body.page-template-page-physicians .wpd-physicians-layout,
body.page-template-page-physicians .wpd-physicians-results-column {
  min-width: 0;
}

/* Desktop: filters | results inside layout (main = header + this grid). */
@media (min-width: 821px) {
  body.page-template-page-physicians .wpd-physicians-layout {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    column-gap: 1.35rem;
    row-gap: 1rem;
    align-items: start;
  }

  body.page-template-page-physicians .wpd-physicians-filter-rail {
    grid-column: 1;
    align-self: start;
    position: sticky;
    top: 0.85rem;
    max-height: calc(100vh - 1.25rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }

  body.page-template-page-physicians .wpd-physicians-filter-rail__desktop {
    position: static;
    top: auto;
  }

  body.page-template-page-physicians .wpd-physicians-results-column {
    grid-column: 2;
    min-width: 0;
  }

  body.page-template-page-physicians .wpd-physicians-results-grid .ais-Hits-list {
    gap: 0.65rem;
  }
}

@media (max-width: 820px) {
  body.page-template-page-physicians .wpd-physicians-layout {
    display: block;
  }

  body.page-template-page-physicians .wpd-physicians-filter-rail {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

body.page-template-page-physicians .wpd-physicians-page-header {
  --wpd-physicians-search-control-height: 2.5rem;
  --wpd-physicians-search-line-height: 1.35;
  --wpd-physicians-search-pad-block: 0.5rem;
  /* Centers one line of text in native <select> (WebKit ignores line-height === height) */
  --wpd-physicians-search-select-pad-y: max(
    0.18rem,
    calc(
      (var(--wpd-physicians-search-control-height) - var(--wpd-physicians-search-line-height) * var(--wpd-text-sm)) / 2
    )
  );
  border: 1px solid rgba(18, 58, 101, 0.09);
  border-radius: var(--wpd-radius-card);
  background: #fff;
  box-shadow: var(--wpd-shadow-card);
  overflow: hidden;
}

body.page-template-page-physicians .wpd-physicians-page-header__intro {
  min-width: 0;
}

body.page-template-page-physicians .wpd-physicians-page-header__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem 1.25rem;
  padding: 1rem 1.15rem 0.9rem;
  border-bottom: 1px solid rgba(18, 58, 101, 0.07);
}

body.page-template-page-physicians .wpd-physicians-page-header__eyebrow {
  margin: 0 0 0.15rem;
  padding-bottom: 0;
  border-bottom: none;
  color: #8d8792;
  font-size: var(--wpd-text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.page-template-page-physicians .wpd-physicians-page-header .wpd-physicians-section-title {
  font-family: var(--wpd-font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--wpd-heading);
  border: 0;
  box-shadow: none;
}

body.page-template-page-physicians .wpd-physicians-results-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem 0.85rem;
  width: 100%;
  padding: 0.55rem 1rem 0.6rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f3f6f9 100%);
  box-shadow: none;
}

body.page-template-page-physicians .wpd-physicians-results-toolbar__controls {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}

body.page-template-page-physicians .wpd-physicians-current-refinements-shell {
  padding: 0.55rem 0 0.75rem;
}

body.page-template-page-physicians .wpd-physicians-stats {
  align-self: center;
  text-align: right;
}

body.page-template-page-physicians .wpd-physicians-stats,
body.page-template-page-physicians .wpd-physicians-stats .ais-Stats {
  justify-content: flex-end;
  color: #6b7280;
  font-size: var(--wpd-text-xs);
  font-family: var(--wpd-font);
  line-height: 1.35;
}

body.page-template-page-physicians .wpd-physicians-stats .ais-Stats-text {
  padding-left: 0.7rem;
}

body.page-template-page-physicians .wpd-physicians-stats .ais-Stats-text::before {
  top: 50%;
  transform: translateY(-50%);
  height: 0.85rem;
  opacity: 0.55;
}

body.page-template-page-physicians .wpd-physicians-hits-per-page {
  display: flex;
  align-items: stretch;
  min-width: 7.25rem;
  width: auto;
}

body.page-template-page-physicians .wpd-physicians-hits-per-page .ais-HitsPerPage {
  display: flex;
  align-items: stretch;
  width: 100%;
}

body.page-template-page-physicians .wpd-physicians-hits-per-page .ais-HitsPerPage-select {
  box-sizing: border-box;
  height: var(--wpd-physicians-search-control-height, 2.5rem);
  min-height: var(--wpd-physicians-search-control-height, 2.5rem);
  max-height: var(--wpd-physicians-search-control-height, 2.5rem);
  font-family: var(--wpd-font);
  line-height: var(--wpd-physicians-search-line-height, 1.35);
}

body.page-template-page-physicians .wpd-physicians-results-grid-shell {
  padding: 0;
}

body.page-template-page-physicians .wpd-physician-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(18, 58, 101, 0.07);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 35, 64, 0.035);
}

body.page-template-page-physicians .wpd-physician-card__media {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f5fb, #e5eaf4);
}

body.page-template-page-physicians .wpd-physician-card__media-initials {
  font-family: var(--wpd-font-display);
  font-size: 1.45rem;
  color: var(--wpd-header-solid);
}

body.page-template-page-physicians .wpd-physician-card__body {
  min-width: 0;
}

body.page-template-page-physicians .wpd-physician-card__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

body.page-template-page-physicians .wpd-physician-card__identity {
  gap: 0.18rem;
}

body.page-template-page-physicians .wpd-physician-card__name {
  font-family: var(--wpd-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--wpd-heading);
}

body.page-template-page-physicians .wpd-physician-card__specialties {
  margin-top: 0.2rem;
  color: var(--wpd-text);
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  line-height: 1.35;
}

body.page-template-page-physicians .wpd-physician-card__practice,
body.page-template-page-physicians .wpd-physician-card__summary-line {
  margin: 0.25rem 0 0;
  color: #605c66;
  font-size: var(--wpd-text-xs);
  line-height: 1.45;
}

body.page-template-page-physicians .wpd-physician-card__summary {
  margin-bottom: 0.55rem;
}

body.page-template-page-physicians .wpd-physician-card__save {
  width: 0.72rem;
  height: 0.95rem;
  border: 1px solid #d0d4de;
  border-bottom-width: 0.42rem;
  border-radius: 1px 1px 3px 3px;
}

body.page-template-page-physicians .wpd-physician-card__meta {
  display: none;
}

body.page-template-page-physicians .wpd-physician-card__locations {
  display: none;
}

body.page-template-page-physicians .wpd-physician-card__actions {
  gap: 0.32rem;
}

body.page-template-page-physicians .wpd-physician-card__action,
body.page-template-page-physicians .wpd-physician-card__action--secondary {
  min-height: 1.7rem;
  min-width: 0;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-template-page-physicians .wpd-physician-card__action::before,
body.page-template-page-physicians .wpd-physician-card__action--secondary::before {
  display: none;
}

body.page-template-page-physicians .wpd-physician-card__action--primary {
  background: var(--wpd-header-solid);
}

body.page-template-page-physicians .wpd-physicians-pagination-shell {
  padding: 0.95rem 0 0;
}

body.page-template-page-physicians .wpd-footer-new {
  margin-top: 2.1rem;
}

@media (max-width: 980px) {
  body.page-template-page-physicians .wpd-physicians-workspace__inner,
  body.page-template-page-physicians .wpd-physicians-page-header__top,
  body.page-template-page-physicians .wpd-footer-new-top,
  body.page-template-page-physicians .wpd-footer-new-columns,
  body.page-template-page-physicians .wpd-physician-card {
    grid-template-columns: 1fr;
  }

  body.page-template-page-physicians .wpd-physicians-search-row {
    grid-template-columns: 1fr;
  }

  body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-input,
  body.page-template-page-physicians .wpd-physicians-search-city .ais-MenuSelect-select,
  body.page-template-page-physicians .wpd-physicians-search-submit {
    min-height: var(--wpd-physicians-search-control-height, 2.5rem);
    max-height: none;
    height: auto;
  }

  body.page-template-page-physicians .wpd-physicians-workspace__inner {
    padding: 0;
  }

  body.page-template-page-physicians .wpd-physicians-results-toolbar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0.75rem;
  }

  body.page-template-page-physicians .wpd-physicians-results-toolbar__controls,
  body.page-template-page-physicians .wpd-physicians-hits-per-page {
    width: 100%;
  }

  body.page-template-page-physicians .wpd-physicians-results-toolbar__controls {
    margin-left: 0;
  }

  body.page-template-page-physicians .wpd-physicians-filter-panel {
    padding: 0.8rem;
  }

  body.page-template-page-physicians .wpd-physicians-page-header .wpd-physicians-section-title {
    font-size: 1.32rem;
  }

  body.page-template-page-physicians .wpd-physicians-stats,
  body.page-template-page-physicians .wpd-physicians-stats .ais-Stats {
    justify-content: flex-start;
  }
}

@media (min-width: 981px) {
  body.page-template-page-physicians .wpd-physicians-search-row {
    grid-template-columns: minmax(14rem, 1fr) minmax(9.5rem, 11rem) minmax(5.75rem, 7.25rem) !important;
    /* Single horizontal strip: lock height so <select> cannot grow taller than the input */
    height: var(--wpd-physicians-search-control-height);
    min-height: var(--wpd-physicians-search-control-height);
    max-height: var(--wpd-physicians-search-control-height);
  }
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox,
body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-form,
body.page-template-page-physicians .wpd-physicians-searchbox,
body.page-template-page-physicians .wpd-physicians-search-city,
body.page-template-page-physicians .wpd-physicians-hits-per-page,
body.page-template-page-physicians .wpd-physicians-hits-per-page .ais-HitsPerPage {
  min-width: 0;
}

body.page-template-page-physicians .wpd-physicians-searchbox .ais-SearchBox-input,
body.page-template-page-physicians .wpd-physicians-search-city .ais-MenuSelect-select,
body.page-template-page-physicians .wpd-physicians-search-submit,
body.page-template-page-physicians .wpd-physicians-hits-per-page .ais-HitsPerPage-select {
  box-sizing: border-box;
}

body.page-template-page-physicians .wpd-physicians-hits-per-page .ais-HitsPerPage-select {
  width: 100%;
  padding: var(--wpd-physicians-search-pad-block, 0.45rem) 1.1rem var(--wpd-physicians-search-pad-block, 0.45rem) 0.48rem;
  border: 1px solid rgba(18, 58, 101, 0.09);
  border-radius: 8px;
  background-color: #fbfafb;
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: var(--wpd-physicians-search-line-height, 1.35);
  color: #29415e;
  font-family: var(--wpd-font);
}

/* Site-wide professional typography (parent physicans theme loads Lora/Open Sans/Libre Baskerville — override with WPD stack) */
body.wpd-clean-theme,
body.wpd-clean-theme .site {
  font-family: var(--wpd-font);
}

body.wpd-clean-theme button,
body.wpd-clean-theme input,
body.wpd-clean-theme textarea,
body.wpd-clean-theme select {
  font-family: var(--wpd-font);
}

/* Body copy + UI: Source Sans 3 */
body.wpd-clean-theme .typography-body,
body.wpd-clean-theme .typography-body--large,
body.wpd-clean-theme .typography-body--sponsored,
body.wpd-clean-theme .typography-caption,
body.wpd-clean-theme .typography-form,
body.wpd-clean-theme .typography-button,
body.wpd-clean-theme .font-serif,
body.wpd-clean-theme .font-serif-body,
body.wpd-clean-theme .font-sans-serif,
body.wpd-clean-theme .entry-content,
body.wpd-clean-theme .entry-title,
body.wpd-clean-theme .main-navigation a,
body.wpd-clean-theme .wpd-footer-new,
body.wpd-clean-theme .wpd-specialty-card {
  font-family: var(--wpd-font);
}

/* Deck / subheads in content: sans to match body */
body.wpd-clean-theme .typography-deck,
body.wpd-clean-theme .typography-deck--small,
body.wpd-clean-theme .typography-deck--medium,
body.wpd-clean-theme .typography-deck--large,
body.wpd-clean-theme .typography-deck--sponsored {
  font-family: var(--wpd-font);
}

/* Display / headlines: Cormorant Garamond */
body.wpd-clean-theme .font-serif-display,
body.wpd-clean-theme .typography-dropcap,
body.wpd-clean-theme .typography-headline,
body.wpd-clean-theme .typography-headline--small,
body.wpd-clean-theme .typography-headline--medium,
body.wpd-clean-theme .typography-headline--large,
body.wpd-clean-theme .typography-headline--jumbo,
body.wpd-clean-theme .typography-headline--sidebar,
body.wpd-clean-theme .typography-headline--sidebar--small,
body.wpd-clean-theme h1:not(.entry-title),
body.wpd-clean-theme h2,
body.wpd-clean-theme h3,
body.wpd-clean-theme h4,
body.wpd-clean-theme h5,
body.wpd-clean-theme h6 {
  font-family: var(--wpd-font-display);
}

/* Legacy parent `.section` titles */
body.wpd-clean-theme .section {
  font-family: var(--wpd-font-display);
}

/* Parent button / CTA classes (Josefin Sans in physicans) */
body.wpd-clean-theme .btn-wash,
body.wpd-clean-theme .btn-wash--unanimated,
body.wpd-clean-theme .btn-wash--inverse,
body.wpd-clean-theme .btn-wash-blue,
body.wpd-clean-theme .wash-btn-blue,
body.wpd-clean-theme .btn-wash-dark,
body.wpd-clean-theme .btn-action,
body.wpd-clean-theme .btn-action-secondary,
body.wpd-clean-theme .btn-action-primary,
body.wpd-clean-theme .btn-wash--jumbo,
body.wpd-clean-theme .wash-btn,
body.wpd-clean-theme .btn-navigation,
body.wpd-clean-theme .btn-marketing,
body.wpd-clean-theme .btn-marketing--teal,
body.wpd-clean-theme .btn-marketing--red,
body.wpd-clean-theme .btn-marketing--yellow,
body.wpd-clean-theme .btn-marketing--blue,
body.wpd-clean-theme .btn-sponsored,
body.wpd-clean-theme .btn-standard,
body.wpd-clean-theme .btn-small,
body.wpd-clean-theme .btn-text {
  font-family: var(--wpd-font);
}

body.wpd-clean-theme code,
body.wpd-clean-theme pre,
body.wpd-clean-theme kbd,
body.wpd-clean-theme samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Site layout */
.site {
  background: var(--wpd-bg);
  min-height: 100vh;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
}

/* ========== Header – New Design ========== */
.wpd-header {
  background: transparent;
  box-shadow: none;
}

.wpd-header-new {
  position: relative;
  --wpd-header-link-size: calc(0.84rem + var(--wpd-type-nudge));
  --wpd-header-link-weight: 600;
}

/* Unified masthead: one dark blue from top through hero */
.wpd-header-new-bg {
  position: absolute;
  inset: 0;
  background: var(--wpd-header-bg);
  z-index: 0;
}

.wpd-header-new-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, transparent 22%, transparent 78%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

/* ----- Bar: minimal height, single row ----- */
.wpd-header-new-bar {
  position: relative;
  z-index: 100;
  padding: 0.8rem 0 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wpd-header-new-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.15rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.wpd-header-new-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 0;
}

/* Hamburger – desktop hidden */
.wpd-header-new-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wpd-header-new-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.wpd-header-new-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wpd-mobile-menu-open .wpd-header-new-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.wpd-mobile-menu-open .wpd-header-new-toggle-bar:nth-child(2) {
  opacity: 0;
}
.wpd-mobile-menu-open .wpd-header-new-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.wpd-header-new-drawer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* Desktop: primary links + account + contact on one row (less stacked clutter). */
@media (min-width: 981px) {
  .wpd-header-new-drawer {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 1.25rem;
  }

  .wpd-header-new-nav-wrap {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .wpd-header-new-utility {
    flex-shrink: 0;
  }
}

.wpd-header-new-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1rem;
  min-width: 0;
}

/* Logo – small */
.wpd-header-new-logo {
  flex: 0 0 400px;
  max-width: 400px;
  min-width: 0;
}

.wpd-header-new-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpd-header-new-logo-image {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.wpd-header-new-logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.wpd-header-new-logo-kicker {
  font-family: var(--wpd-font);
  font-size: calc(0.68rem + var(--wpd-type-nudge));
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.2;
}

.wpd-header-new-logo-name {
  display: inline-block;
  font-family: var(--wpd-font-display);
  font-size: calc(1.47rem + var(--wpd-type-nudge));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
}

.wpd-header-new-logo-meta {
  display: inline-block;
  font-family: var(--wpd-font);
  font-size: calc(0.77rem + var(--wpd-type-nudge));
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
}

.wpd-header-new-logo-link:hover {
  opacity: 0.92;
  color: #fff;
  transform: translateY(-1px);
}

/* Nav wrap – no wrap, right side stays in one line */
.wpd-header-new-nav-wrap {
  width: 100%;
}

.wpd-header-new .main-navigation {
  margin: 0;
  width: 100%;
}

.wpd-header-new .main-navigation .main-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.95rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpd-header-new .main-navigation .main-menu > li {
  position: relative;
}

.wpd-header-new .main-navigation .main-menu > li > a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--wpd-font);
  font-weight: var(--wpd-header-link-weight);
  font-size: var(--wpd-header-link-size);
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.12rem 0;
  text-decoration: none;
  border-radius: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.wpd-header-new .main-navigation .main-menu > li.menu-item-has-children > a {
  padding-right: 0.72rem;
}

.wpd-header-new .main-navigation .main-menu > li.menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0.32rem;
  top: 50%;
  margin-top: -2px;
  border: 3px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.7);
  border-bottom: none;
}

.wpd-header-new .main-navigation .main-menu > li > a:hover,
.wpd-header-new .main-navigation .main-menu > li:hover > a {
  color: #fff;
  opacity: 0.82;
}

.wpd-header-new .main-navigation .main-menu > li.current-menu-item > a,
.wpd-header-new .main-navigation .main-menu > li.current-menu-ancestor > a,
.wpd-header-new .main-navigation .main-menu > li.current_page_parent > a {
  color: #fff;
  font-weight: var(--wpd-header-link-weight);
  opacity: 1;
}

/* Dropdowns – clear panel with arrow */
.wpd-header-new .main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  margin-top: 4px;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 0 1px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.wpd-header-new .main-navigation .main-menu > li > .sub-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 1rem;
  border: 6px solid transparent;
  border-bottom-color: #fff;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,0.06));
}

.wpd-header-new .main-navigation .main-menu > li:hover > .sub-menu,
.wpd-header-new .main-navigation .main-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wpd-header-new .main-navigation .sub-menu li {
  margin: 0;
  position: relative;
}

.wpd-header-new .main-navigation .sub-menu li a {
  display: block;
  padding: 0.4rem 1rem;
  font-family: var(--wpd-font);
  font-size: var(--wpd-header-link-size);
  font-weight: 500;
  color: var(--wpd-text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.wpd-header-new .main-navigation .sub-menu li a:hover {
  background: rgba(0, 100, 170, 0.06);
  color: var(--wpd-primary);
}

/* Nested dropdown (third level) */
.wpd-header-new .main-navigation .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 2px;
}

.wpd-header-new .main-navigation .sub-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  margin-top: -3px;
  border: 3px solid transparent;
  border-left-color: var(--wpd-text-muted);
  border-right: none;
}

.wpd-header-new .main-navigation .sub-menu .menu-item-has-children:hover > .sub-menu,
.wpd-header-new .main-navigation .sub-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hide parent-theme submenu toggles / more button */
.wpd-header-new .main-navigation .submenu-expand,
.wpd-header-new .main-navigation .main-menu-more-toggle {
  display: none !important;
}

/* CTA button */
.wpd-header-new-btn {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.9rem;
  background: #fff;
  color: var(--wpd-primary-dark) !important;
  font-family: var(--wpd-font);
  font-weight: var(--wpd-header-link-weight);
  font-size: var(--wpd-header-link-size);
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.wpd-header-new-btn:hover {
  color: var(--wpd-primary-dark) !important;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0.96;
}

.wpd-header-new-user {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-left: 0.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.wpd-header-new-user-link {
  font-family: var(--wpd-font);
  font-size: var(--wpd-header-link-size);
  font-weight: var(--wpd-header-link-weight);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.22rem 0.42rem;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.wpd-header-new-user-link:hover {
  color: #fff;
  opacity: 0.82;
}

@media (max-width: 1220px) and (min-width: 981px) {
  .wpd-header-new-logo {
    flex-basis: 360px;
    max-width: 360px;
  }

  .wpd-header-new-inner {
    gap: 1rem;
  }

  .wpd-header-new .main-navigation .main-menu {
    gap: 0.7rem;
  }

  .wpd-header-new-user {
    padding-left: 0.65rem;
    margin-left: 0;
    gap: 0.42rem;
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .wpd-header-new-logo {
    flex-basis: 330px;
    max-width: 330px;
  }

  .wpd-header-new-logo-name {
    font-size: calc(1.28rem + var(--wpd-type-nudge));
  }

  .wpd-header-new-logo-meta {
    font-size: calc(0.75rem + var(--wpd-type-nudge));
  }
}

.wpd-header-new a:focus-visible,
.wpd-header-new button:focus-visible,
.wpd-header-new input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

/* ========== Mobile menu (breakpoint: 980px) ========== */
@media (max-width: 980px) {
  .wpd-header-new-bar {
    padding: 0.45rem 0 0.35rem;
  }

  .wpd-header-new-inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 0 0.75rem;
  }

  .wpd-header-new-controls {
    flex: 0 0 auto;
  }

  .wpd-header-new-toggle {
    display: flex;
  }

  .wpd-header-new-drawer {
    display: none;
    width: 100%;
    order: 10;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.28rem;
    gap: 0.45rem;
    border-right: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .wpd-mobile-menu-open .wpd-header-new-drawer {
    display: flex;
  }

  .wpd-header-new-utility {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .wpd-header-new-nav-wrap {
    width: 100%;
  }

  .wpd-header-new .main-navigation .main-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .wpd-header-new .main-navigation .main-menu > li {
    position: static;
  }

  .wpd-header-new .main-navigation .main-menu > li > a {
    display: block;
    padding: 0.45rem 0.2rem;
    font-size: calc(0.84rem + var(--wpd-type-nudge));
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0.01em;
  }

  .wpd-header-new .main-navigation .main-menu > li.menu-item-has-children > a::after {
    display: none;
  }

  /* Mobile: sub-menus as stacked list, not dropdowns */
  .wpd-header-new .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 0 0 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    border: none;
    box-shadow: none;
  }

  .wpd-header-new .main-navigation .main-menu > li.menu-item-has-children.is-open > .sub-menu,
  .wpd-header-new .main-navigation .main-menu > li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }

  .wpd-header-new .main-navigation .sub-menu li a {
    padding: 0.35rem 0;
    font-size: calc(0.84rem + var(--wpd-type-nudge));
    color: rgba(255, 255, 255, 0.9);
  }

  .wpd-header-new .main-navigation .sub-menu .sub-menu {
    margin-left: 1rem;
    padding-top: 0.2rem;
  }

  .wpd-header-new-user {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .wpd-header-new-btn {
    align-self: flex-start;
    margin-top: 0.2rem;
    min-height: 0;
    padding: 0.45rem 0.95rem;
  }

  .wpd-header-new-logo-link {
    gap: 0.6rem;
    align-items: center;
  }

  .wpd-header-new-logo-image {
    width: 3.15rem;
    height: 3.15rem;
  }

  .wpd-header-new-logo-name {
    font-size: calc(1.12rem + var(--wpd-type-nudge));
  }

  .wpd-header-new-logo-meta {
    font-size: calc(0.74rem + var(--wpd-type-nudge));
  }
}

/* ========== Front page: welcoming landing page ========== */
.wpd-front-content .site-main {
  padding: 0 0 3rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.wpd-home {
  color: var(--wpd-text);
}

.wpd-home-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wpd-home-hero {
  padding: 1.75rem 0 1.25rem;
}

.wpd-home-hero .wpd-home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.wpd-home-hero-copy,
.wpd-home-hero-panel {
  border-radius: var(--wpd-radius-card);
  padding: 1.35rem 1.45rem;
}

.wpd-home-hero-copy {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,251,0.98) 100%);
  border: 1px solid rgba(1, 40, 83, 0.08);
  box-shadow: var(--wpd-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wpd-home-hero-panel {
  background: var(--wpd-hero-panel-bg);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 10px 28px rgba(1, 40, 83, 0.14);
}

.wpd-home-eyebrow,
.wpd-home-section-eyebrow,
.wpd-home-panel-eyebrow,
.wpd-home-card-eyebrow {
  margin: 0 0 0.65rem;
  font-size: var(--wpd-text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wpd-home-eyebrow,
.wpd-home-section-eyebrow,
.wpd-home-card-eyebrow {
  color: var(--wpd-primary);
}

.wpd-home-panel-eyebrow {
  color: rgba(255,255,255,0.72);
}

.wpd-home-title {
  margin: 0;
  font-family: var(--wpd-font-display);
  font-size: var(--wpd-heading-display);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--wpd-heading);
  max-width: 12ch;
}

.wpd-home-panel-title {
  margin: 0;
  font-family: var(--wpd-font-display);
  font-size: clamp(1.22rem, 2.35vw, 1.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.wpd-home-lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: var(--wpd-text-base);
  line-height: 1.55;
  color: var(--wpd-text-muted);
}

.wpd-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.wpd-home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(1, 40, 83, 0.12);
  background: rgba(1, 40, 83, 0.04);
  color: var(--wpd-primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--wpd-text-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wpd-home-action.is-primary {
  background: var(--wpd-btn-primary-bg);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(0, 100, 170, 0.25);
}

.wpd-home-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(1, 40, 83, 0.12);
}

.wpd-home-trust-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.wpd-home-trust-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--wpd-text);
  font-size: var(--wpd-text-sm);
}

.wpd-home-trust-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--wpd-primary);
}

.wpd-home-stat-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.wpd-home-stat {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.wpd-home-stat strong {
  display: block;
  font-family: var(--wpd-font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wpd-home-stat span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  font-size: var(--wpd-text-sm);
}

.wpd-home-panel-copy {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.6;
  font-size: var(--wpd-text-sm);
}

.wpd-home-quick-actions-section,
.wpd-home-resources-section,
.wpd-home-story-section {
  padding: 1.1rem 0 0;
}

.wpd-home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wpd-home-section-heading h2 {
  margin: 0;
  font-size: clamp(1.42rem, 2.7vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--wpd-primary-dark);
}

.wpd-home-card-grid,
.wpd-home-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.wpd-home-card,
.wpd-home-resource-card {
  border-radius: 16px;
  border: 1px solid rgba(1, 40, 83, 0.08);
  background: #fff;
  box-shadow: 0 14px 36px rgba(1, 40, 83, 0.07);
  padding: 1.25rem;
}

.wpd-home-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpd-home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(1, 40, 83, 0.1);
}

.wpd-home-card h3,
.wpd-home-resource-card h3 {
  margin: 0;
  font-size: var(--wpd-text-base);
  line-height: 1.25;
  color: var(--wpd-primary-dark);
}

.wpd-home-card p,
.wpd-home-resource-card p {
  margin: 0.7rem 0 0;
  color: var(--wpd-text-muted);
  font-size: var(--wpd-text-sm);
  line-height: 1.6;
}

.wpd-home-card-link,
.wpd-home-text-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--wpd-primary);
  text-decoration: none;
}

.wpd-home-resource-card a {
  text-decoration: none;
}

.wpd-home-story {
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(1, 40, 83, 0.08);
  box-shadow: 0 14px 36px rgba(1, 40, 83, 0.07);
  padding: 1.6rem 1.7rem;
}

.wpd-home-story > *:first-child {
  margin-top: 0;
}

.wpd-home-story .wp-block-buttons {
  margin-top: 1.1rem;
}

.wpd-home-story .wp-block-media-text {
  align-items: center;
}

.wpd-home-story .wp-block-media-text__media img {
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(1, 40, 83, 0.12);
}

/* ========== Footer – New Design ========== */
.wpd-footer {
  margin-top: auto;
  position: relative;
}

/* Skewed tab: one diagonal line across the full top */
.wpd-footer-new {
  color: #fff;
  padding: 0 0 0;
  overflow: hidden;
  margin-top: -1.5rem;
  clip-path: polygon(0 1.5rem, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

/* Layered background */
.wpd-footer-new-bg {
  position: absolute;
  inset: 0;
  background: var(--wpd-footer-bg);
  z-index: 0;
}

.wpd-footer-new-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
}

.wpd-footer-new-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 100, 170, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.wpd-footer-new-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
}

.wpd-footer-new-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 1rem 1.5rem;
  align-items: start;
}

/* Brand block – logo column + text column; contact lines share the text column edge */
.wpd-footer-new-brand {
  --wpd-footer-brand-logo: 3rem;
  --wpd-footer-brand-gap: 0.75rem;
  padding-right: 0.5rem;
}

.wpd-footer-new-brand-link {
  display: flex;
  align-items: flex-start;
  gap: var(--wpd-footer-brand-gap);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.wpd-footer-new-brand-image {
  width: var(--wpd-footer-brand-logo);
  height: var(--wpd-footer-brand-logo);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.wpd-footer-new-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.wpd-footer-new-logo {
  display: block;
  font-size: calc(1.06rem + var(--wpd-type-nudge));
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0;
}

.wpd-footer-new-tagline {
  display: block;
  font-size: calc(var(--wpd-text-sm) + var(--wpd-type-nudge));
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.25;
  max-width: 17rem;
}

/* Address with icons – inset to match title/tagline (same as logo + gap) */
.wpd-footer-new-address {
  font-style: normal;
  font-size: calc(var(--wpd-text-sm) + var(--wpd-type-nudge));
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
  margin: 0;
  padding-left: calc(var(--wpd-footer-brand-logo) + var(--wpd-footer-brand-gap));
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wpd-footer-new-address-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
}

.wpd-footer-new-address-line::before {
  content: "";
  flex: 0 0 0.875rem;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.14em;
  opacity: 0.92;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.wpd-footer-ico-loc::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.wpd-footer-ico-phone::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}

.wpd-footer-ico-fax::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
}

.wpd-footer-new-address a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wpd-footer-new-address a:hover {
  color: #fff;
}

/* Column links – tighter */
.wpd-footer-new-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  align-items: start;
}

.wpd-footer-new-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wpd-footer-new-title {
  margin: 0 0 0.2rem;
  font-size: calc(var(--wpd-text-xs) + var(--wpd-type-nudge));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.95);
}

.wpd-footer-new-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpd-footer-new-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpd-footer-new-menu,
.wpd-footer-new-col ul {
  display: block;
}

.wpd-footer-new-col li {
  margin: 0;
  display: block;
}

.wpd-footer-new-menu li + li,
.wpd-footer-new-col li + li {
  margin-top: 0.1rem;
}

.wpd-footer-new-menu a,
.wpd-footer-new-col a {
  color: rgba(255,255,255,0.78);
  font-size: calc(var(--wpd-text-sm) + var(--wpd-type-nudge));
  text-decoration: none;
  display: block;
  line-height: 1.35;
  transition: color 0.2s ease, transform 0.2s ease;
  word-break: normal;
  overflow-wrap: anywhere;
}

.wpd-footer-new-menu a:hover,
.wpd-footer-new-col a:hover {
  color: #fff;
  transform: translateX(2px);
}

/* Divider */
.wpd-footer-new-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.1) 85%, transparent 100%);
  margin-top: 0.75rem;
}

/* Bottom bar */
.wpd-footer-new-bottom {
  padding: 0.4rem 0 0.6rem;
  text-align: center;
}

.wpd-footer-new-copy {
  margin: 0;
  font-size: calc(var(--wpd-text-xs) + var(--wpd-type-nudge));
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

/* ========== Content pages (mental-health-resources, etc.) – redesigned ========== */
.content-area:not(.wpd-front-content) {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.content-area:not(.wpd-front-content) .site-main {
  background: #fff;
  border-radius: var(--wpd-radius);
  box-shadow: var(--wpd-shadow-card);
  padding: 1.15rem 1.25rem 1.4rem;
  border: 1px solid rgba(18, 58, 101, 0.08);
}

/* Page header – title + optional lead */
.wpd-content-page-header {
  margin-bottom: 1.05rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(18, 58, 101, 0.08);
}

.wpd-content-page-title {
  font-family: var(--wpd-font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--wpd-heading);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.wpd-content-page-lead {
  max-width: 42rem;
  font-size: var(--wpd-text-base);
  color: var(--wpd-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Body content – typography */
.wpd-content-page-body,
.content-area:not(.wpd-front-content) .entry-content {
  color: var(--wpd-text);
  line-height: 1.7;
  font-size: var(--wpd-text-base);
  max-width: none;
  width: 100%;
}

.content-area:not(.wpd-front-content) .entry-content,
.content-area:not(.wpd-front-content) .wpd-content-page-body,
.content-area:not(.wpd-front-content) .entry .entry-content,
.content-area:not(.wpd-front-content) .entry .entry-content > *,
.content-area:not(.wpd-front-content) .entry .entry-content > *.alignwide,
.content-area:not(.wpd-front-content) .entry .entry-content > *.alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.content-area:not(.wpd-front-content) .entry-content .advads-content,
.content-area:not(.wpd-front-content) .entry-content .advads-content a,
.content-area:not(.wpd-front-content) .entry-content .advads-content img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.content-area:not(.wpd-front-content) .entry-content .advads-content {
  margin: 1.25rem 0;
}

.content-area:not(.wpd-front-content) .entry-content .advads-content img {
  height: auto;
  border-radius: 6px;
}

.wpd-content-page-body p,
.content-area:not(.wpd-front-content) .entry-content p {
  margin: 0 0 1rem;
}

.wpd-content-page-body p:last-child,
.content-area:not(.wpd-front-content) .entry-content p:last-child {
  margin-bottom: 0;
}

.wpd-content-page-body h2,
.content-area:not(.wpd-front-content) .entry-content h2 {
  font-family: var(--wpd-font-display);
  font-size: 1.34rem;
  font-weight: 400;
  color: var(--wpd-heading);
  margin: 1.7rem 0 0.6rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.wpd-content-page-body h2:first-child,
.content-area:not(.wpd-front-content) .entry-content h2:first-child {
  margin-top: 0;
}

.wpd-content-page-body h3,
.content-area:not(.wpd-front-content) .entry-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--wpd-text);
  margin: 1.3rem 0 0.45rem;
}

.wpd-content-page-body h4,
.content-area:not(.wpd-front-content) .entry-content h4 {
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--wpd-text);
  margin: 1rem 0 0.35rem;
}

.wpd-content-page-body ul,
.wpd-content-page-body ol,
.content-area:not(.wpd-front-content) .entry-content ul,
.content-area:not(.wpd-front-content) .entry-content ol {
  margin: 0 0 0.9rem;
  padding-left: 1.4rem;
}

.wpd-content-page-body li,
.content-area:not(.wpd-front-content) .entry-content li {
  margin-bottom: 0.35rem;
}

.wpd-content-page-body li:last-child,
.content-area:not(.wpd-front-content) .entry-content li:last-child {
  margin-bottom: 0;
}

.wpd-content-page-body a,
.content-area:not(.wpd-front-content) .entry-content a {
  color: var(--wpd-primary);
  text-decoration: none;
}

.wpd-content-page-body a:hover,
.content-area:not(.wpd-front-content) .entry-content a:hover {
  text-decoration: underline;
}

/* ========== Paid Member Subscriptions (trial / register / account shortcodes) ========== */
body.wpd-clean-theme .wpd-content-page-body .pms-form {
  max-width: 32rem;
  margin-top: 0.5rem;
}

/* Separate register form from intro / subscription block above */
body.wpd-clean-theme .wpd-content-page-body .pms-form:not(:first-child) {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(18, 58, 101, 0.1);
}

body.wpd-clean-theme .wpd-content-page-body ul.pms-form-fields-wrapper {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.wpd-clean-theme .wpd-content-page-body .pms-account-section-wrapper {
  display: block;
  margin: 0;
  padding: 0;
}

body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field,
body.wpd-clean-theme .wpd-content-page-body ul.pms-form-fields-wrapper > li.pms-field {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: var(--wpd-text-sm);
  font-weight: 700;
  color: var(--wpd-heading);
}

body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field input[type="text"],
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field input[type="email"],
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field input[type="password"],
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field input[type="url"],
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field input[type="number"],
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field select,
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.45rem;
  padding: 0.45rem 0.65rem;
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-sm);
  color: var(--wpd-text);
  background: var(--wpd-surface);
  border: 1px solid rgba(18, 58, 101, 0.16);
  border-radius: var(--wpd-radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field input:focus,
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field select:focus,
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field textarea:focus {
  outline: none;
  border-color: rgba(0, 100, 170, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 100, 170, 0.12);
}

body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field-error input,
body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field-error select {
  border-color: rgba(160, 45, 45, 0.55);
}

body.wpd-clean-theme .wpd-content-page-body .pms-form .pms-field-subscriptions {
  margin-bottom: 1.15rem;
  padding: 0.85rem 0.95rem;
  background: var(--wpd-surface-soft);
  border: 1px solid var(--wpd-border);
  border-radius: var(--wpd-radius);
}

body.wpd-clean-theme .wpd-content-page-body .pms-subscription-plan-container,
body.wpd-clean-theme .wpd-content-page-body label.pms-subscription-plan-container {
  display: block;
  margin: 0 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(18, 58, 101, 0.12);
  border-radius: var(--wpd-radius);
  background: var(--wpd-surface);
  cursor: pointer;
}

body.wpd-clean-theme .wpd-content-page-body .pms-form-submit {
  margin-top: 0.25rem;
  min-height: 2.55rem;
  padding: 0.5rem 1.35rem;
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-sm);
  font-weight: 700;
  color: #fff;
  background: var(--wpd-btn-primary-bg);
  border: none;
  border-radius: var(--wpd-radius-btn);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body.wpd-clean-theme .wpd-content-page-body .pms-form-submit:hover {
  filter: brightness(0.97);
}

body.wpd-clean-theme .wpd-content-page-body .pms-account-subscriptions-header {
  margin: 1.25rem 0 0.65rem;
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wpd-text-muted);
}

body.wpd-clean-theme .wpd-content-page-body .pms-account-subscription.pms-subscription-plan {
  margin: 1rem 0 1.35rem;
  padding: 0;
  background: transparent;
  border: none;
}

body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table {
  width: 100%;
  max-width: 36rem;
  margin: 0.35rem 0 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(18, 58, 101, 0.12);
  border-radius: var(--wpd-radius);
  overflow: hidden;
  background: var(--wpd-surface);
  box-shadow: var(--wpd-shadow-card);
}

body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--wpd-border);
}

body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table td {
  padding: 0.65rem 0.85rem;
  font-size: var(--wpd-text-sm);
  line-height: 1.45;
  vertical-align: top;
}

body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table td:first-child {
  width: 42%;
  max-width: 11rem;
  font-weight: 700;
  color: var(--wpd-text-muted);
  background: var(--wpd-surface-soft);
}

body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table td:last-child {
  color: var(--wpd-text);
}

body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table .status-active {
  font-weight: 700;
  color: var(--wpd-primary-dark);
}

body.wpd-clean-theme .wpd-content-page-body .pms-account-subscription-details-table__actions td {
  background: var(--wpd-surface-soft);
}

body.wpd-clean-theme .wpd-content-page-body .pms-account-subscription-details-table__actions td:last-child {
  line-height: 1.6;
}

body.wpd-clean-theme .wpd-content-page-body a.pms-account-subscription-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.4rem 0.4rem 0;
  padding: 0.45rem 0.85rem;
  font-size: var(--wpd-text-sm);
  font-weight: 700;
  text-decoration: none !important;
  color: var(--wpd-primary) !important;
  background: #fff;
  border: 1px solid rgba(0, 100, 170, 0.35);
  border-radius: var(--wpd-radius-btn);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

body.wpd-clean-theme .wpd-content-page-body a.pms-account-subscription-action-link:hover {
  background: rgba(0, 100, 170, 0.08);
  border-color: rgba(0, 100, 170, 0.55);
  text-decoration: none !important;
}

body.wpd-clean-theme .wpd-content-page-body a.pms-account-subscription-action-link__abandon {
  color: #9a2c2c !important;
  border-color: rgba(180, 60, 60, 0.45);
}

body.wpd-clean-theme .wpd-content-page-body a.pms-account-subscription-action-link__abandon:hover {
  background: rgba(180, 60, 60, 0.08);
  border-color: rgba(160, 45, 45, 0.6);
}

body.wpd-clean-theme .wpd-content-page-body span.pms-account-subscription-action-link {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table tr,
  body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table td {
    display: block;
    width: 100%;
  }

  body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table td:first-child {
    max-width: none;
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }

  body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table td:last-child {
    padding-top: 0.15rem;
    padding-bottom: 0.75rem;
  }

  body.wpd-clean-theme .wpd-content-page-body table.pms-account-subscription-details-table tbody tr:not(:last-child) td:last-child {
    border-bottom: 1px solid var(--wpd-border);
  }
}

.wpd-content-page-body strong,
.content-area:not(.wpd-front-content) .entry-content strong {
  font-weight: 700;
}

.wpd-content-page-body .wp-block-buttons,
.content-area:not(.wpd-front-content) .entry-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.wpd-content-page-body .wp-block-button,
.content-area:not(.wpd-front-content) .entry-content .wp-block-button {
  margin: 0;
}

.wpd-content-page-body .wp-block-button__link,
.content-area:not(.wpd-front-content) .entry-content .wp-block-button__link {
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  background: var(--wpd-btn-primary-bg);
  color: #fff;
}

.wpd-content-page-body .wp-block-button.is-style-outline .wp-block-button__link,
.content-area:not(.wpd-front-content) .entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  color: var(--wpd-primary-dark);
  border: 1px solid rgba(1, 40, 83, 0.14);
}

.wpd-content-page-body .wp-block-columns,
.content-area:not(.wpd-front-content) .entry-content .wp-block-columns {
  margin: 1.15rem 0;
  gap: 1rem;
}

.wpd-content-page-body .wp-block-column,
.content-area:not(.wpd-front-content) .entry-content .wp-block-column {
  padding: 0.8rem 0.95rem;
  border-radius: 6px;
  background: #fafbfd;
  border: 1px solid rgba(18, 58, 101, 0.08);
}

.wpd-content-page-body .wp-block-file,
.content-area:not(.wpd-front-content) .entry-content .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid rgba(1, 40, 83, 0.08);
}

.wpd-content-page-body .wp-block-file__button,
.content-area:not(.wpd-front-content) .entry-content .wp-block-file__button {
  border-radius: 999px;
  background: var(--wpd-primary);
}

.wpd-content-page-body iframe,
.content-area:not(.wpd-front-content) .entry-content iframe {
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 16px;
  background: #f6f8fb;
  box-shadow: 0 10px 28px rgba(1, 40, 83, 0.08);
}

.wpd-content-page-body figure,
.content-area:not(.wpd-front-content) .entry-content figure {
  margin: 1rem 0;
}

.wpd-content-page-body .wp-block-shortcode,
.content-area:not(.wpd-front-content) .entry-content .wp-block-shortcode {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid rgba(1, 40, 83, 0.06);
}

.wpd-content-page-body ul li::marker,
.wpd-content-page-body ol li::marker,
.content-area:not(.wpd-front-content) .entry-content ul li::marker,
.content-area:not(.wpd-front-content) .entry-content ol li::marker {
  color: var(--wpd-primary);
}

.wpd-content-page-body blockquote,
.content-area:not(.wpd-front-content) .entry-content blockquote {
  margin: 1.1rem 0;
  padding: 0.9rem 1rem;
  border-left: 2px solid rgba(0, 100, 170, 0.35);
  background: #f6f8fb;
  color: var(--wpd-text-muted);
}

/* Fallback when child template part not used (entry-title from parent) */
.content-area:not(.wpd-front-content) .entry-header {
  margin-bottom: 1rem;
}

.content-area:not(.wpd-front-content) .entry-title {
  font-size: 1.34rem;
  font-weight: 700;
  color: var(--wpd-text);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.content-area:not(.wpd-front-content) .entry-content {
  color: var(--wpd-text);
  line-height: 1.65;
}

.content-area:not(.wpd-front-content) .page-links {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wpd-border);
  font-size: var(--wpd-text-sm);
}

.content-area:not(.wpd-front-content) .entry-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wpd-border);
  font-size: 0.85rem;
}

.content-area:not(.wpd-front-content) .edit-link a {
  color: var(--wpd-text-muted);
}

.content-area:not(.wpd-front-content) .edit-link a:hover {
  color: var(--wpd-primary);
}

@media (max-width: 640px) {
  .content-area:not(.wpd-front-content) {
    padding: 1rem 0.85rem 1.75rem;
  }

  .content-area:not(.wpd-front-content) .site-main {
    padding: 1.15rem 1.2rem 1.4rem;
  }

  .wpd-content-page-title {
    font-size: 1.42rem;
  }
}

/* ========== Physicians search page ========== */
.wpd-physicians-page {
  padding: 1.4rem 0 2.75rem;
  color: var(--wpd-text);
}

.wpd-physicians-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wpd-physicians-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(1, 40, 83, 0.08);
  box-shadow: 0 8px 20px rgba(1, 40, 83, 0.05);
  overflow: hidden;
}

.wpd-physicians-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0.25rem 0.1rem 0.1rem;
}

.wpd-physicians-eyebrow,
.wpd-physicians-page-header__eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: var(--wpd-text-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wpd-physicians-eyebrow {
  color: var(--wpd-primary);
}

.wpd-physicians-title {
  margin: 0;
  max-width: none;
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--wpd-primary-dark);
}

.wpd-physicians-lead {
  margin: 0.35rem 0 0;
  max-width: 30rem;
  font-size: var(--wpd-text-sm);
  line-height: 1.4;
  color: var(--wpd-text-muted);
}

.wpd-physicians-hero__search {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.wpd-physicians-search-surface,
.wpd-physicians-live-context {
  border-radius: 10px;
  border: 1px solid rgba(1, 40, 83, 0.1);
  background: #fff;
  box-shadow: none;
}

.wpd-physicians-search-surface {
  padding: 0.65rem 0.75rem 0.72rem;
}

.wpd-physicians-live-context {
  padding: 0.55rem 0.68rem;
}

.wpd-physicians-section-title {
  margin: 0;
  font-size: var(--wpd-text-base);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--wpd-primary-dark);
}

.wpd-physicians-search-copy,
.wpd-physicians-live-context__copy,
.wpd-physicians-filter-panel__copy {
  margin: 0.3rem 0 0;
  font-size: var(--wpd-text-sm);
  line-height: 1.35;
  color: var(--wpd-text-muted);
}

.wpd-physicians-live-context__label {
  display: inline-block;
  margin: 0;
  font-size: var(--wpd-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wpd-primary-dark);
}

.wpd-physicians-searchbox,
.wpd-physicians-searchbox .ais-SearchBox,
.wpd-physicians-searchbox .ais-SearchBox-form {
  width: 100%;
}

.wpd-physicians-searchbox .ais-SearchBox {
  margin-top: 0.45rem;
}

.wpd-physicians-searchbox .ais-SearchBox-form {
  position: relative;
}

.wpd-physicians-searchbox .ais-SearchBox-input {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.56rem 0.78rem 0.56rem 2.3rem;
  border: 1px solid rgba(1, 40, 83, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: var(--wpd-text);
  font-size: var(--wpd-text-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wpd-physicians-searchbox .ais-SearchBox-input::placeholder {
  color: #6b7280;
}

.wpd-physicians-searchbox .ais-SearchBox-form::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(1, 40, 83, 0.58);
  border-radius: 999px;
  transform: translateY(-62%);
  pointer-events: none;
}

.wpd-physicians-searchbox .ais-SearchBox-form::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.28rem);
  left: 1.9rem;
  width: 0.55rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(1, 40, 83, 0.58);
  transform: rotate(45deg);
  pointer-events: none;
}

.wpd-physicians-searchbox .ais-SearchBox-input:hover {
  border-color: rgba(0, 100, 170, 0.28);
}

.wpd-physicians-searchbox .ais-SearchBox-input:focus-visible {
  outline: none;
  border-color: rgba(0, 100, 170, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 100, 170, 0.14);
  background: #fff;
}

.wpd-physicians-workspace__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.wpd-physicians-page {
  --wpd-physicians-surface-border: rgba(1, 40, 83, 0.08);
  --wpd-physicians-strong-border: rgba(1, 40, 83, 0.14);
  --wpd-physicians-card-shadow: 0 4px 10px rgba(1, 40, 83, 0.035);
  --wpd-physicians-card-shadow-hover: 0 6px 16px rgba(1, 40, 83, 0.05);
  --wpd-physicians-soft-bg: #fafbfd;
  --wpd-physicians-soft-bg-strong: #f5f8fb;
  --wpd-physicians-pill-bg: rgba(1, 40, 83, 0.025);
  --wpd-physicians-card-radius: 10px;
  --wpd-physicians-block-radius: 8px;
  --wpd-physicians-pill-radius: 999px;
  --wpd-physicians-card-gap: 0.5rem;
  --wpd-physicians-focus-ring: 0 0 0 4px rgba(0, 100, 170, 0.14);
}

.wpd-physicians-filter-rail,
.wpd-physicians-layout {
  min-width: 0;
}

.wpd-physicians-filter-rail__desktop {
  position: sticky;
  top: 1rem;
}

.wpd-physicians-filter-panel,
.wpd-physicians-results-workspace,
.wpd-physicians-current-refinements-shell,
.wpd-physicians-results-grid-shell,
.wpd-physicians-stats-shell,
.wpd-physicians-pagination-shell {
  border-radius: 12px;
  border: 1px solid rgba(1, 40, 83, 0.08);
  background: #fff;
  box-shadow: 0 4px 10px rgba(1, 40, 83, 0.035);
}

.wpd-physicians-filter-panel {
  padding: 0.55rem;
  background: #fff;
}

.wpd-physicians-filter-panel__header {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(1, 40, 83, 0.08);
}

.wpd-physicians-filter-panel__groups {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.wpd-physicians-filter-group {
  padding: 0.18rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wpd-physicians-filter-group__title {
  display: block;
  margin: 0 0 0.28rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wpd-primary-dark);
}

.wpd-physicians-filter-group__facet .ais-Panel-header {
  display: none;
}

.wpd-physicians-filter-rail .wpd-physicians-filter-group__facet .ais-MenuSelect,
.wpd-physicians-mobile-filters .wpd-physicians-filter-group__facet .ais-MenuSelect,
.wpd-physicians-hits-per-page .ais-HitsPerPage {
  width: 100%;
}

.wpd-physicians-filter-rail .wpd-physicians-filter-group__facet .ais-MenuSelect-select,
.wpd-physicians-mobile-filters .wpd-physicians-filter-group__facet .ais-MenuSelect-select,
.wpd-physicians-hits-per-page .ais-HitsPerPage-select {
  width: 100%;
  min-height: 1.95rem;
  padding: 0.34rem 1.7rem 0.34rem 0.55rem;
  border: 1px solid rgba(1, 40, 83, 0.14);
  border-radius: 8px;
  background:
    #ffffff,
    linear-gradient(45deg, transparent 50%, rgba(1, 40, 83, 0.55) 50%),
    linear-gradient(135deg, rgba(1, 40, 83, 0.55) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position: 0 0, calc(100% - 1rem) calc(50% - 0.12rem), calc(100% - 0.72rem) calc(50% - 0.12rem);
  background-size: auto, 0.42rem 0.42rem, 0.42rem 0.42rem;
  appearance: none;
  color: var(--wpd-text);
  font-size: 0.68rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wpd-physicians-filter-rail .wpd-physicians-filter-group__facet .ais-MenuSelect-select:hover,
.wpd-physicians-mobile-filters .wpd-physicians-filter-group__facet .ais-MenuSelect-select:hover,
.wpd-physicians-hits-per-page .ais-HitsPerPage-select:hover {
  border-color: rgba(0, 100, 170, 0.3);
}

.wpd-physicians-filter-rail .wpd-physicians-filter-group__facet .ais-MenuSelect-select:focus-visible,
.wpd-physicians-mobile-filters .wpd-physicians-filter-group__facet .ais-MenuSelect-select:focus-visible,
.wpd-physicians-hits-per-page .ais-HitsPerPage-select:focus-visible {
  outline: none;
  border-color: rgba(0, 100, 170, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 100, 170, 0.14);
}

.wpd-physicians-results-workspace {
  min-width: 0;
  padding: 0.55rem;
  background: #fff;
}

.wpd-physicians-page-header {
  min-width: 0;
}

.wpd-physicians-page-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0;
}

.wpd-physicians-page-header__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--wpd-primary);
}

.wpd-physicians-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(1, 40, 83, 0.08);
  border-radius: 8px;
  background: #fff;
}

.wpd-physicians-results-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  margin-left: auto;
}

.wpd-physicians-hits-per-page {
  min-width: min(100%, 150px);
}

.wpd-physicians-mobile-filters {
  display: none;
}

/* `button.` prefix beats parent theme `button:hover` / `button:focus` (#111 background). */
button.wpd-physicians-mobile-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.1rem;
  padding: 0.4rem 0.62rem;
  border: 1px solid rgba(1, 40, 83, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--wpd-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

button.wpd-physicians-mobile-filters__toggle:hover,
button.wpd-physicians-mobile-filters__toggle:focus,
button.wpd-physicians-mobile-filters__toggle:active,
button.wpd-physicians-mobile-filters__toggle:visited {
  background: #fff;
  color: var(--wpd-primary-dark);
}

button.wpd-physicians-mobile-filters__toggle::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.12rem);
  flex-shrink: 0;
}

button.wpd-physicians-mobile-filters__toggle:hover {
  border-color: rgba(1, 40, 83, 0.2);
}

button.wpd-physicians-mobile-filters__toggle[aria-expanded="true"] {
  border-style: solid;
  box-shadow: inset 0 0 0 1px rgba(0, 100, 170, 0.3);
}

button.wpd-physicians-mobile-filters__toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(0.06rem);
}

.wpd-physicians-mobile-filters__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.42rem;
  border: 1px solid rgba(1, 40, 83, 0.16);
  border-radius: 999px;
  background: rgba(1, 40, 83, 0.06);
  color: var(--wpd-primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.wpd-physicians-mobile-filters[data-has-active-filters="true"] .wpd-physicians-mobile-filters__count,
.wpd-physicians-mobile-filters__count.is-active,
.wpd-physicians-mobile-filters__count[data-has-active-filters="true"] {
  border-color: rgba(0, 100, 170, 0.22);
  background: rgba(0, 100, 170, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 100, 170, 0.14);
}

.wpd-physicians-mobile-filters__panel {
  width: 100%;
  margin-top: 0.7rem;
}

.wpd-physicians-mobile-filters__panel[hidden] {
  display: none;
}

.wpd-physicians-filter-panel--mobile {
  padding: 0.75rem;
}

.wpd-physicians-current-refinements-shell,
.wpd-physicians-results-grid-shell,
.wpd-physicians-stats-shell,
.wpd-physicians-pagination-shell {
  padding: 0.42rem 0.5rem;
}

.wpd-physicians-current-refinements-shell {
  margin-bottom: 0.4rem;
}

.wpd-physicians-results-grid-shell {
  overflow: hidden;
}

.wpd-physicians-stats-shell,
.wpd-physicians-pagination-shell {
  margin-top: 0.4rem;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements,
.wpd-physicians-current-refinements .ais-CurrentRefinements-list,
#current-refinements .ais-CurrentRefinements,
#current-refinements .ais-CurrentRefinements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-label,
#current-refinements .ais-CurrentRefinements-label {
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: auto;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--wpd-primary-dark);
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-item,
#current-refinements .ais-CurrentRefinements-item {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.7rem;
  padding: 0.28rem 0.4rem 0.28rem 0.58rem;
  border: 1px solid rgba(1, 40, 83, 0.14);
  border-left-width: 4px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--wpd-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-category,
#current-refinements .ais-CurrentRefinements-category {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  line-height: 1.2;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-categoryLabel,
#current-refinements .ais-CurrentRefinements-categoryLabel {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1.2;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-categoryLabel::after,
#current-refinements .ais-CurrentRefinements-categoryLabel::after {
  content: ":";
  line-height: inherit;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-delete,
#current-refinements .ais-CurrentRefinements-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid rgba(1, 40, 83, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--wpd-primary-dark);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-delete:hover,
#current-refinements .ais-CurrentRefinements-delete:hover {
  border-color: rgba(1, 40, 83, 0.22);
  background: #f3f6f9;
}

.wpd-physicians-current-refinements .ais-CurrentRefinements-delete:focus-visible,
#current-refinements .ais-CurrentRefinements-delete:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 100, 170, 0.16);
}

.wpd-physicians-stats,
.wpd-physicians-stats .ais-Stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.7rem;
  margin: 0;
  color: var(--wpd-text-muted);
  font-size: 0.72rem;
}

.wpd-physicians-stats .ais-Stats-text {
  position: relative;
  padding-left: 0.95rem;
}

.wpd-physicians-stats .ais-Stats-text::before {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0;
  width: 2px;
  height: calc(100% - 0.36rem);
  border-radius: 999px;
  background: rgba(1, 40, 83, 0.16);
}

.wpd-physicians-results-grid .ais-Hits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpd-physicians-results-grid .ais-Hits-item {
  min-width: 0;
  margin: 0;
}

.wpd-physicians-results-grid .ais-Hits-item > div,
.wpd-physician-card {
  display: flex;
  flex-direction: column;
  gap: var(--wpd-physicians-card-gap);
  height: 100%;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--wpd-physicians-surface-border);
  border-radius: var(--wpd-physicians-card-radius);
  background: #fff;
  box-shadow: var(--wpd-physicians-card-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wpd-physicians-results-grid .ais-Hits-item > div:hover,
.wpd-physician-card:hover {
  border-color: rgba(1, 40, 83, 0.12);
  box-shadow: var(--wpd-physicians-card-shadow-hover);
}

.wpd-physician-card__actions,
.wpd-physician-card__location-actions,
.wpd-physician-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wpd-physicians-results-grid .ais-Hits-item > div > * + * {
  margin-top: 0;
}

.wpd-physicians-results-grid .ais-Hits-item > div > * {
  min-width: 0;
}

.wpd-physicians-results-grid .ais-Hits-item > div a {
  overflow-wrap: anywhere;
}

.wpd-physicians-results-grid a:focus-visible,
.wpd-physicians-results-grid button:focus-visible,
.wpd-physicians-results-workspace button:focus-visible,
.wpd-physicians-results-workspace a:focus-visible,
.wpd-physicians-filter-panel select:focus-visible,
button.wpd-physicians-mobile-filters__toggle:focus-visible {
  outline: 3px solid rgba(0, 100, 170, 0.22);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

.wpd-physicians-fallback-message,
.wpd-physicians-results-grid .ais-Hits--empty,
.wpd-physicians-empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1.25rem;
  border: 1px dashed rgba(1, 40, 83, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
  color: var(--wpd-text-muted);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

.wpd-physicians-empty-state strong,
.wpd-physicians-results-grid .ais-Hits--empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--wpd-primary-dark);
  font-size: 1.05rem;
}

.wpd-physicians-results-grid .insertedad,
.wpd-physicians-results-grid .insertedadbanner {
  display: block;
}

.wpd-physicians-results-grid .insertedad {
  grid-column: auto;
}

.wpd-physicians-results-grid .insertedadbanner {
  grid-column: 1 / -1;
}

.wpd-physicians-results-grid .insertedad > *,
.wpd-physicians-results-grid .insertedadbanner > * {
  display: block;
  width: 100%;
  max-width: 100%;
}

.wpd-physicians-results-grid .insertedad .advads-content,
.wpd-physicians-results-grid .insertedadbanner .advads-content {
  margin: 0;
}

.wpd-physicians-results-grid .insertedad img,
.wpd-physicians-results-grid .insertedadbanner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.wpd-physician-card__identity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08rem 0.22rem;
  align-items: baseline;
}

.wpd-physician-card__name {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--wpd-primary-dark);
}

.wpd-physician-card__practice {
  margin: -0.2rem 0 0;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--wpd-text);
}

.wpd-physician-card__specialties,
.wpd-physician-card__meta {
  font-size: 0.62rem;
  line-height: 1.28;
  color: var(--wpd-text-muted);
}

.wpd-physician-card__specialties {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wpd-physician-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.wpd-physician-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.25rem;
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(1, 40, 83, 0.1);
  border-radius: 6px;
  background: #f8fafc;
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  color: var(--wpd-primary-dark);
}

.wpd-physician-card__meta-item::before {
  content: "";
  width: 2px;
  height: 0.72rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.22;
}

.wpd-physician-card__locations {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.wpd-physician-card__location,
.wpd-physician-card__location--secondary {
  min-width: 0;
  padding: 0.35rem 0 0;
  border: 0;
  border-top: 1px solid rgba(1, 40, 83, 0.08);
  border-radius: 0;
  background: transparent;
}

.wpd-physician-card__location {
  box-shadow: none;
}

.wpd-physician-card__location--secondary {
  background: transparent;
}

.wpd-physician-card__location-heading {
  margin: 0 0 0.24rem;
  font-size: var(--wpd-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wpd-primary-dark);
}

.wpd-physician-card__location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: start;
}

.wpd-physician-card__location-body {
  flex: 1 1 240px;
  min-width: 0;
}

.wpd-physician-card__location-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
}

.wpd-physician-card__location-line {
  display: flex;
  gap: 0.24rem;
  align-items: start;
  min-width: 0;
}

.wpd-physician-card__location-line + .wpd-physician-card__location-line {
  margin-top: 0.22rem;
}

.wpd-physician-card__location-label {
  min-width: 3.2rem;
  color: var(--wpd-text-muted);
  font-size: var(--wpd-text-xs);
  font-weight: 600;
}

.wpd-physician-card__location-body,
.wpd-physician-card__location-line,
.wpd-physician-card__location-line a,
.wpd-physician-card__location-line div {
  font-size: 0.7rem;
  line-height: 1.35;
}

.wpd-physician-card__location-line a {
  color: var(--wpd-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.wpd-physician-card__location-line a:hover {
  color: var(--wpd-primary);
}

.wpd-physician-card__action,
.wpd-physician-card__action--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.6rem;
  min-width: 3.7rem;
  padding: 0.24rem 0.42rem;
  border: 1px solid var(--wpd-physicians-strong-border);
  border-radius: 6px;
  background: #fff;
  color: var(--wpd-primary-dark);
  font-size: var(--wpd-text-xs);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wpd-physician-card__action::before,
.wpd-physician-card__action--secondary::before {
  display: inline-block;
  margin-right: 0.2rem;
  font-size: 0.85em;
  font-weight: 800;
}

.wpd-physician-card__action--map::before {
  content: "M";
}

.wpd-physician-card__action--call::before {
  content: "C";
}

.wpd-physician-card__action--website::before {
  content: "W";
}

.wpd-physician-card__action:hover,
.wpd-physician-card__action--secondary:hover {
  border-color: rgba(1, 40, 83, 0.18);
  box-shadow: none;
}

.wpd-physician-card__action--primary {
  background: #123b63;
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}

.wpd-physician-card__action--primary:hover {
  background: #0b4677;
  box-shadow: none;
}

.wpd-physicians-pagination-shell .pagination-wrapper,
.wpd-physicians-pagination-shell .pagination,
.wpd-physicians-pagination-shell .ais-Pagination,
.wpd-physicians-pagination-shell .ais-Pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpd-physicians-pagination-shell .ais-Pagination-item {
  margin: 0;
}

.wpd-physicians-pagination-shell .ais-Pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.8rem;
  padding: 0.22rem 0.4rem;
  border: 1px solid rgba(1, 40, 83, 0.14);
  border-radius: 6px;
  background: #fff;
  color: var(--wpd-primary-dark);
  font-size: 0.64rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wpd-physicians-pagination-shell .ais-Pagination-item--selected .ais-Pagination-link,
.wpd-physicians-pagination-shell .ais-Pagination-link:hover {
  border-color: rgba(1, 40, 83, 0.18);
  background: #f3f6f9;
  box-shadow: none;
}

.wpd-physicians-pagination-shell .ais-Pagination-item--selected .ais-Pagination-link {
  box-shadow: inset 0 0 0 1px rgba(0, 100, 170, 0.26);
}

.wpd-physicians-pagination-shell .ais-Pagination-item--disabled .ais-Pagination-link {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.wpd-physicians-pagination-shell .ais-Pagination-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 100, 170, 0.14);
}

@media (max-width: 1080px) {
  .wpd-physicians-workspace__inner,
  .wpd-physicians-hero {
    grid-template-columns: 1fr;
  }

  .wpd-physicians-title {
    max-width: none;
  }

  .wpd-physicians-filter-rail__desktop {
    position: static;
  }

  .wpd-physicians-filter-panel__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wpd-physicians-results-grid .ais-Hits-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wpd-physicians-page {
    padding-top: 1rem;
  }

  .wpd-physicians-shell {
    padding: 0 0.85rem;
  }

  .wpd-physicians-hero,
  .wpd-physicians-results-workspace,
  .wpd-physicians-current-refinements-shell,
  .wpd-physicians-results-grid-shell,
  .wpd-physicians-stats-shell,
  .wpd-physicians-pagination-shell {
    border-radius: 20px;
  }

  .wpd-physicians-hero,
  .wpd-physicians-results-workspace {
    padding: 0.6rem;
  }

  .wpd-physicians-filter-rail__desktop {
    display: none;
  }

  .wpd-physicians-mobile-filters {
    display: block;
    width: 100%;
  }

  .wpd-physicians-results-toolbar {
    align-items: stretch;
  }

  .wpd-physicians-results-toolbar__controls {
    width: 100%;
    margin-left: 0;
  }

  .wpd-physicians-hits-per-page {
    width: 100%;
  }

  .wpd-physicians-filter-panel--mobile {
    min-height: 5.25rem;
  }
}

@media (max-width: 640px) {
  .wpd-physicians-hero {
    padding: 0.62rem;
    gap: 0.45rem;
  }

  .wpd-physicians-title {
    font-size: clamp(1.25rem, 6vw, 1.78rem);
  }

  .wpd-physicians-lead {
    font-size: var(--wpd-text-sm);
  }

  .wpd-physicians-search-surface,
  .wpd-physicians-live-context,
  .wpd-physicians-results-workspace,
  .wpd-physicians-current-refinements-shell,
  .wpd-physicians-results-grid-shell,
  .wpd-physicians-stats-shell,
  .wpd-physicians-pagination-shell {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .wpd-physicians-searchbox .ais-SearchBox-input {
    min-height: 2.3rem;
    padding-left: 2.1rem;
  }

  .wpd-physicians-filter-panel__groups {
    grid-template-columns: 1fr;
  }

  .wpd-physicians-page-header__top {
    align-items: stretch;
  }

  .wpd-physicians-results-grid .ais-Hits-item > div,
  .wpd-physician-card {
    padding: 0.46rem;
    border-radius: 8px;
  }

  .wpd-physician-card__location,
  .wpd-physician-card__location--secondary {
    padding: 0.32rem 0 0;
    border-radius: 0;
  }

  .wpd-physician-card__actions,
  .wpd-physician-card__location-actions,
  .wpd-physician-card__links {
    width: 100%;
  }

  .wpd-physician-card__action,
  .wpd-physician-card__action--secondary {
    flex: 1 1 6rem;
    min-width: 0;
    white-space: normal;
  }

  .wpd-physicians-pagination-shell .ais-Pagination-link {
    min-width: 2.2rem;
    min-height: 2.2rem;
    padding: 0.38rem 0.6rem;
  }
}

/* ========== Contact page – tighter, appealing ========== */
.wpd-contact-page {
  padding: 1rem 1rem 2rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.wpd-contact-page .site-main {
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.wpd-contact-article {
  margin: 0;
  border-radius: 6px;
  border: 1px solid rgba(18, 58, 101, 0.08);
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 35, 64, 0.045);
  overflow: hidden;
}

.wpd-contact-header {
  margin-bottom: 0;
  padding: 1.15rem 1.15rem 0.5rem;
}

.wpd-contact-title {
  font-size: 1.52rem;
  font-weight: 700;
  color: var(--wpd-text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.wpd-contact-lead {
  font-size: var(--wpd-text-base);
  color: var(--wpd-text-muted);
  line-height: 1.5;
  margin: 0;
}

.wpd-contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid rgba(18, 58, 101, 0.08);
}

.wpd-contact-info {
  position: static;
  width: 100%;
  padding: 1rem 1rem 1.1rem;
  background: #f7f7fa;
  border-right: 1px solid rgba(18, 58, 101, 0.08);
}

.wpd-contact-info-title {
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wpd-primary);
  margin: 0 0 0.75rem;
}

.wpd-contact-info-block {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  border: 0;
}

.wpd-contact-info-name {
  font-size: var(--wpd-text-base);
  font-weight: 700;
  color: var(--wpd-text);
  margin: 0 0 0.6rem;
}

.wpd-contact-info-line {
  font-size: var(--wpd-text-sm);
  color: var(--wpd-text);
  line-height: 1.5;
  margin: 0 0 0.65rem;
  padding-left: 1.35rem;
  position: relative;
}

.wpd-contact-info-line:last-child {
  margin-bottom: 0;
}

.wpd-contact-ico {
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.75;
}

.wpd-contact-ico-loc .wpd-contact-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230064AA' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.wpd-contact-ico-phone .wpd-contact-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230064AA' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}

.wpd-contact-ico-fax .wpd-contact-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230064AA' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
}

.wpd-contact-info-line a {
  color: var(--wpd-primary);
  text-decoration: none;
}

.wpd-contact-info-line a:hover {
  text-decoration: underline;
}

.wpd-contact-form-wrap {
  min-width: 0;
  width: 100%;
  padding: 1rem 1rem 1.1rem;
}

.wpd-contact-info,
.wpd-contact-form-wrap {
  justify-self: stretch;
}

.wpd-contact-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.wpd-contact-content p {
  margin-bottom: 0.85rem;
}

.wpd-contact-content p:last-child {
  margin-bottom: 0;
}

.wpd-contact-content figure {
  margin: 0;
}

.wpd-contact-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 1080px;
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.wpd-contact-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wpd-text);
  margin-bottom: 0.3rem;
}

.wpd-contact-content input[type="text"],
.wpd-contact-content input[type="email"],
.wpd-contact-content input[type="tel"],
.wpd-contact-content input[type="url"],
.wpd-contact-content textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--wpd-border);
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpd-contact-content input:focus,
.wpd-contact-content textarea:focus {
  outline: none;
  border-color: var(--wpd-primary);
  box-shadow: 0 0 0 3px rgba(0, 100, 170, 0.1);
}

.wpd-contact-content input[type="submit"],
.wpd-contact-content button[type="submit"] {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, var(--wpd-primary) 0%, #005a98 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0.5rem;
}

.wpd-contact-content input[type="submit"]:hover,
.wpd-contact-content button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 100, 170, 0.3);
}

@media (max-width: 640px) {
  .wpd-contact-page {
    padding: 1rem 1rem 1.5rem;
  }

  .wpd-contact-title {
    font-size: 1.42rem;
  }

  .wpd-contact-grid {
    grid-template-columns: 1fr;
  }

  .wpd-contact-info {
    border-right: 0;
    border-bottom: 1px solid rgba(18, 58, 101, 0.08);
  }

  .wpd-contact-content {
    padding: 1.1rem 1.25rem;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--wpd-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--wpd-radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* Specialty directory landing (page-specialties-directory.php) */
.wpd-specialties-directory .site-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.wpd-specialties-directory__header {
  margin-bottom: 1rem;
}

.wpd-specialties-directory__title {
  margin: 0 0 0.35rem;
  font-family: var(--wpd-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--wpd-primary-dark);
  letter-spacing: -0.02em;
}

.wpd-specialties-directory__excerpt {
  margin: 0;
  max-width: 52ch;
  font-size: var(--wpd-text-sm);
  color: var(--wpd-text-muted);
  line-height: 1.45;
}

.wpd-specialties-directory__intro {
  margin: 0 0 1.25rem;
  font-size: var(--wpd-text-sm);
  color: var(--wpd-text);
  line-height: 1.5;
}

.wpd-specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.wpd-specialty-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(1, 40, 83, 0.1);
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 35, 64, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wpd-specialty-card:hover {
  border-color: rgba(0, 100, 170, 0.22);
  box-shadow: 0 6px 16px rgba(13, 35, 64, 0.08);
  transform: translateY(-1px);
}

.wpd-specialty-card:focus-visible {
  outline: 3px solid rgba(0, 100, 170, 0.28);
  outline-offset: 2px;
}

.wpd-specialty-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(43, 90, 145, 0.12), rgba(0, 100, 170, 0.08));
}

.wpd-specialty-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpd-specialty-card--tone-1 .wpd-specialty-card__media {
  background: linear-gradient(145deg, rgba(43, 90, 145, 0.18), rgba(1, 40, 83, 0.06));
}

.wpd-specialty-card--tone-2 .wpd-specialty-card__media {
  background: linear-gradient(145deg, rgba(0, 100, 170, 0.16), rgba(43, 90, 145, 0.08));
}

.wpd-specialty-card--tone-3 .wpd-specialty-card__media {
  background: linear-gradient(145deg, rgba(1, 40, 83, 0.12), rgba(0, 100, 170, 0.1));
}

.wpd-specialty-card--tone-4 .wpd-specialty-card__media {
  background: linear-gradient(145deg, rgba(5, 70, 99, 0.14), rgba(43, 90, 145, 0.07));
}

.wpd-specialty-card--tone-5 .wpd-specialty-card__media {
  background: linear-gradient(145deg, rgba(0, 100, 170, 0.12), rgba(1, 40, 83, 0.1));
}

.wpd-specialty-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.wpd-specialty-card__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--wpd-primary-dark);
}

.wpd-specialty-card__subtitle {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--wpd-text-muted);
  flex: 1 1 auto;
}

.wpd-specialty-card__cta {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--wpd-primary, #2b5a91);
}

.wpd-specialty-card:hover .wpd-specialty-card__cta {
  background: #1e4a78;
}

@media (max-width: 900px) {
  .wpd-specialties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .wpd-specialties-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .wpd-home-hero .wpd-home-shell {
    grid-template-columns: 1fr;
  }

  .wpd-home-card-grid,
  .wpd-home-resource-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wpd-footer-new-top {
    grid-template-columns: 1fr;
  }

  .wpd-footer-new-columns {
    grid-template-columns: 1fr 1fr;
  }

  .wpd-specialty-grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wpd-home-shell {
    padding: 0 1rem;
  }

  .wpd-home-hero {
    padding-top: 1.4rem;
  }

  .wpd-home-hero-copy,
  .wpd-home-hero-panel,
  .wpd-home-story {
    padding: 1.25rem;
  }

  .wpd-home-section-heading {
    display: block;
  }

  .wpd-home-card-grid,
  .wpd-home-resource-grid {
    grid-template-columns: 1fr;
  }

  .wpd-specialty-grid-inner {
    grid-template-columns: 1fr;
  }

  .wpd-footer-new-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wpd-footer-new-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wpd-footer-new-brand {
    padding-right: 0;
  }

  .wpd-content-page-body iframe,
  .content-area:not(.wpd-front-content) .entry-content iframe {
    min-height: 520px;
  }
}

/* -------------------------------------------------------------------------
   404 – same design tokens as content pages + home (compact, card, grid)
   ------------------------------------------------------------------------- */
body.error404 #content.site-content {
  background: linear-gradient(180deg, #eef1f4 0%, var(--wpd-bg) 9rem, var(--wpd-bg) 100%);
}

body.error404 .content-area.wpd-error-404-area {
  padding-top: 1rem;
  padding-bottom: 2.75rem;
}

body.error404 .content-area:not(.wpd-front-content) .site-main {
  border-radius: var(--wpd-radius-card);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--wpd-shadow-card);
}

.wpd-error-404__header.wpd-content-page-header {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
}

.wpd-error-404__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
}

.wpd-error-404__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 1.65rem;
  padding: 0 0.45rem;
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wpd-primary);
  background: rgba(0, 100, 170, 0.09);
  border: 1px solid rgba(0, 100, 170, 0.22);
  border-radius: var(--wpd-radius-btn);
}

.wpd-error-404__eyebrow.wpd-home-eyebrow {
  margin-bottom: 0;
}

.wpd-error-404 .wpd-content-page-title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.wpd-error-404__lead.wpd-content-page-lead {
  max-width: 38rem;
  margin-top: 0.35rem;
}

.wpd-error-404__sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wpd-error-404__panel {
  margin: 0;
  padding: 0;
  border: 0;
}

.wpd-error-404__section-title {
  margin: 0 0 0.55rem;
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wpd-text-muted);
}

.wpd-error-404__search-well {
  padding: 0.65rem 0.75rem;
  background: var(--wpd-surface-soft);
  border: 1px solid var(--wpd-border);
  border-radius: var(--wpd-radius);
}

.wpd-error-404__search-well .search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.wpd-error-404__search-well .search-field {
  flex: 1 1 12rem;
  min-height: 2.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(18, 58, 101, 0.14);
  border-radius: var(--wpd-radius);
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-sm);
  color: var(--wpd-text);
  background: var(--wpd-surface);
}

.wpd-error-404__search-well .search-field:focus {
  outline: 2px solid rgba(0, 100, 170, 0.35);
  outline-offset: 1px;
}

.wpd-error-404__search-well .search-submit {
  min-height: 2.45rem;
  padding: 0 1.1rem;
  border: none;
  border-radius: var(--wpd-radius-btn);
  background: var(--wpd-btn-primary-bg);
  color: #fff;
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.wpd-error-404__search-well .search-submit:hover {
  filter: brightness(0.96);
}

.wpd-error-404__link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.55rem;
}

.wpd-error-404__tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  height: 100%;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: var(--wpd-text);
  background: var(--wpd-surface);
  border: 1px solid rgba(18, 58, 101, 0.1);
  border-radius: var(--wpd-radius);
  box-shadow: 0 1px 0 rgba(1, 40, 83, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.wpd-error-404__tile:hover {
  border-color: rgba(0, 100, 170, 0.45);
  box-shadow: 0 4px 14px rgba(1, 40, 83, 0.08);
  transform: translateY(-1px);
}

.wpd-error-404__tile-title {
  font-family: var(--wpd-font);
  font-size: var(--wpd-text-sm);
  font-weight: 700;
  color: var(--wpd-heading);
  line-height: 1.25;
}

.wpd-error-404__tile-desc {
  font-family: var(--wpd-font);
  font-size: calc(var(--wpd-text-xs) + 0.02rem);
  line-height: 1.35;
  color: var(--wpd-text-muted);
}

@media (max-width: 520px) {
  body.error404 .content-area:not(.wpd-front-content) .site-main {
    padding: 1.1rem 1rem 1.25rem;
  }

  .wpd-error-404__link-grid {
    grid-template-columns: 1fr;
  }
}
