/* ============================================================
   HAVENA PRO — PEOPLE STYLES
   Shared by: agents · single-agent · agencies · single-agency
   ============================================================ */

/* Agents hero without background (Theme Options → Show Agents hero OFF). */
.havena-pro-page-hero--no-bg {
  background: var(--havena-pro-color-background, #fff);
  color: var(--havena-pro-color-text, inherit);
  overflow: visible;
}

.havena-pro-page-hero--no-bg .havena-pro-breadcrumb a,
.havena-pro-page-hero--no-bg .havena-pro-breadcrumb [aria-current] {
  color: inherit;
}

.havena-pro-page-hero--no-bg .havena-pro-profile__name h1 {
  color: var(--havena-pro-color-heading, inherit);
}

/* ------------------------------------------------------------
   PROFILE HERO (agent / agency)
------------------------------------------------------------ */
.havena-pro-profile {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.havena-pro-profile__photo {
  width: clamp(120px, 16vw, 168px);
  height: clamp(120px, 16vw, 168px);
  flex: none;
  border-radius: var(--havena-pro-radius-lg);
  padding: 5px;
  background: linear-gradient(135deg, var(--havena-pro-gold), var(--havena-pro-blue));
}

.havena-pro-profile__photo img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--havena-pro-radius-lg) - 5px);
  object-fit: cover;
  border: 4px solid var(--havena-pro-navy-900);
}

/* Agency profile logos are wordmarks — contain, do not cover-crop. Agent portraits stay cover. */
.havena-pro-profile__photo--logo img {
  object-fit: contain;
  object-position: center;
  background: var(--havena-pro-card-background, #fff);
}

.havena-pro-profile__info {
  flex: 1;
  min-width: 260px;
}

.havena-pro-profile__name {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.havena-pro-profile__name h1 {
  color: var(--havena-pro-color-dark-text);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0;
  min-width: 0;
}

/*
 * Pro Badge host on agent profile name row.
 * Visual SSOT = agent-card Pro chips (hvnly-pro-badge.css). Do not invent
 * Theme badge colors here — only keep the list compact/inline beside h1.
 */
.havena-pro-profile__name .hvnly-pro-badge-list {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  align-self: center;
  margin: 0;
  max-width: 100%;
}

/* agent_card / agent_profile / agency_card / agency_profile surface fallback: same compact metrics as title_inline chips. */
.havena-pro-profile__name .hvnly-pro-badge-list--agent_card .hvnly-pro-badge,
.havena-pro-profile__name .hvnly-pro-badge-list--agent_profile .hvnly-pro-badge,
.havena-pro-profile__name .hvnly-pro-badge-list--agency_card .hvnly-pro-badge,
.havena-pro-profile__name .hvnly-pro-badge-list--agency_profile .hvnly-pro-badge {
  --hvnly-pro-badge-fs: 0.625rem;
  padding: 0.18rem 0.45rem;
  box-shadow: none;
}

.havena-pro-profile__role {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.4rem 0 0.8rem;
  font-size: 1.02rem;
}

.havena-pro-profile__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: var(--havena-pro-fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.havena-pro-profile__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.havena-pro-profile__meta svg {
  width: 15px;
  height: 15px;
  color: var(--havena-pro-gold);
}

.havena-pro-profile__socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.havena-pro-profile__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition:
    background-color var(--havena-pro-speed-fast) var(--havena-pro-ease),
    border-color var(--havena-pro-speed-fast) var(--havena-pro-ease),
    color var(--havena-pro-speed-fast) var(--havena-pro-ease),
    transform var(--havena-pro-speed-fast) var(--havena-pro-ease);
}

.havena-pro-profile__socials a:hover {
  background: var(--havena-pro-gold);
  border-color: var(--havena-pro-gold);
  color: var(--havena-pro-navy-950);
  transform: translateY(-3px);
}

.havena-pro-profile__socials svg {
  width: 16px;
  height: 16px;
}

.havena-pro-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 200px;
}

/* Stat pills row under profile */
.havena-pro-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.havena-pro-profile-stat {
  background: var(--havena-pro-color-dark-ghost);
  border: 1px solid var(--havena-pro-color-dark-border);
  border-radius: var(--havena-pro-radius);
  backdrop-filter: blur(8px);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.havena-pro-profile-stat svg {
  width: 26px;
  height: 26px;
  color: var(--havena-pro-gold);
  flex: none;
}

.havena-pro-profile-stat strong {
  display: block;
  color: var(--havena-pro-color-dark-text);
  font-size: 1.35rem;
  font-family: var(--havena-pro-font-family-heading);
  line-height: 1.15;
}

.havena-pro-profile-stat small {
  color: var(--havena-pro-color-dark-muted-soft);
  font-size: var(--havena-pro-fs-xs);
}

@media (max-width: 900px) {
  .havena-pro-profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   PROFILE BODY LAYOUT
------------------------------------------------------------ */
.havena-pro-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}

.havena-pro-profile-layout--solo {
  grid-template-columns: 1fr;
}

@media (max-width: 1120px) {
  .havena-pro-profile-layout {
    grid-template-columns: 1fr;
  }
}

/* Specialty chips */
.havena-pro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.havena-pro-chips span {
  padding: 0.5rem 1.05rem;
  border: 1.5px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-pill);
  font-size: var(--havena-pro-fs-sm);
  font-weight: var(--havena-pro-type-weight-button);
  color: var(--havena-pro-slate);
  transition:
    border-color var(--havena-pro-speed-fast),
    color var(--havena-pro-speed-fast),
    background-color var(--havena-pro-speed-fast);
}

.havena-pro-chips span:hover {
  border-color: var(--havena-pro-gold);
  color: var(--havena-pro-gold-deep);
  background: var(--havena-pro-gold-soft);
}

/* Awards */
.havena-pro-awards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.havena-pro-award {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm);
  transition:
    border-color var(--havena-pro-speed-fast),
    background-color var(--havena-pro-speed-fast);
}

.havena-pro-award:hover {
  border-color: var(--havena-pro-gold);
  background: var(--havena-pro-gold-soft);
}

.havena-pro-award__icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--havena-pro-gold-soft);
  color: var(--havena-pro-gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.havena-pro-award__icon svg {
  width: 20px;
  height: 20px;
}

.havena-pro-award strong {
  display: block;
  font-size: var(--havena-pro-fs-sm);
}

.havena-pro-award small {
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-xs);
}

@media (max-width: 680px) {
  .havena-pro-awards {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   REVIEWS
------------------------------------------------------------ */
.havena-pro-review-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--havena-pro-line);
  flex-wrap: wrap;
}

.havena-pro-review-summary__score {
  text-align: center;
}

.havena-pro-review-summary__score strong {
  font-family: var(--havena-pro-font-family-heading);
  font-size: 3rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.havena-pro-review-summary__bars {
  flex: 1;
  min-width: 220px;
  display: grid;
  gap: 0.45rem;
}

.havena-pro-review-summary__bars > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--havena-pro-fs-xs);
  color: var(--havena-pro-slate);
}

.havena-pro-review-summary__bars i {
  flex: 1;
  height: 7px;
  border-radius: 7px;
  background: var(--havena-pro-bg-mist);
  overflow: hidden;
  position: relative;
}

.havena-pro-review-summary__bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--havena-pro-bar, 50%);
  border-radius: 7px;
  background: var(--havena-pro-gold);
}

.havena-pro-review {
  display: flex;
  gap: 1.1rem;
}

.havena-pro-review + .havena-pro-review {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--havena-pro-line);
}

.havena-pro-review img,
.havena-pro-review .havena-pro-rating__avatar,
.havena-pro-rating__review-head img.havena-pro-rating__avatar,
.havena-pro-testimonial__author img.havena-pro-testimonial__author-avatar {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.havena-pro-review .havena-pro-rating__avatar,
.havena-pro-rating__review-head .havena-pro-rating__avatar:not(img),
.havena-pro-testimonial__author-avatar:not(img) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--havena-pro-navy, #0a1628);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.havena-pro-review__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.havena-pro-review__head strong {
  font-size: 0.95rem;
}

.havena-pro-review__head time {
  font-size: var(--havena-pro-fs-xs);
  color: var(--havena-pro-slate-light);
}

.havena-pro-review p {
  font-size: var(--havena-pro-fs-sm);
  color: var(--havena-pro-slate);
  margin-top: 0.45rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   AGENCY CARDS (archive)
------------------------------------------------------------ */
.havena-pro-agency-tile {
  background: var(--havena-pro-card-background);
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius);
  overflow: hidden;
  transition:
    transform var(--havena-pro-speed) var(--havena-pro-ease),
    box-shadow var(--havena-pro-speed) var(--havena-pro-ease),
    border-color var(--havena-pro-speed) var(--havena-pro-ease);
}

.havena-pro-agency-tile__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.havena-pro-agency-tile__link:focus-visible {
  outline: 2px solid var(--havena-pro-blue);
  outline-offset: 2px;
}

.havena-pro-agency-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--havena-pro-shadow-lg);
  border-color: transparent;
}

.havena-pro-agency-tile__cover {
  position: relative;
  height: 120px;
  background-color: var(--havena-pro-navy-900);
  background-image: linear-gradient(120deg, var(--havena-pro-navy-900), var(--havena-pro-navy-700));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.havena-pro-agency-tile__cover::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.25), transparent 65%);
  pointer-events: none;
}

.havena-pro-agency-tile__logo {
  /*
   * Directory brand plaque — near-full tile width so wordmarks read as brands.
   * Tight padding keeps artwork filling the plaque (avoid FAILURE B).
   */
  width: min(19.5rem, 90%); /* ~312px on typical ~408px tiles */
  height: 5rem; /* 80px — close to painted wordmark height */
  border-radius: var(--havena-pro-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  box-sizing: border-box;
  font-family: var(--havena-pro-font-family-heading);
  font-size: 1.45rem;
  color: var(--havena-pro-color-dark-text);
  margin: -2.5rem auto 0;
  position: relative;
  z-index: 1;
  border: 4px solid var(--havena-pro-color-dark-text);
  box-shadow: var(--havena-pro-shadow-sm);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-color: var(--havena-pro-card-background, #fff);
}

.havena-pro-agency-tile .havena-pro-agency-tile__logo > img,
.havena-pro-agency-tile__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

@media (max-width: 575px) {
  .havena-pro-agency-tile__logo {
    width: min(17rem, 92%);
    height: 4.5rem; /* 72px */
    margin-top: -2.25rem;
    padding: 0.3rem 0.4rem;
  }
}

.havena-pro-agency-tile__body {
  padding: 1rem 1.5rem 1.6rem;
  text-align: center;
}

/* Agency title host — stack name + Pro badges so multi-badge wrap stays centered. */
.havena-pro-agency-tile__name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.havena-pro-agency-tile__body h3,
.havena-pro-agency-tile__name {
  font-size: 1.12rem;
  font-weight: var(--havena-pro-type-weight-body-strong);
  letter-spacing: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}

.havena-pro-agency-tile__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.havena-pro-agency-tile__badges .hvnly-pro-badge-list {
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
}

.havena-pro-agency-tile__link:hover h3,
.havena-pro-agency-tile__link:hover .havena-pro-agency-tile__name {
  color: var(--havena-pro-blue);
}

.havena-pro-agency-tile__loc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-sm);
  margin: 0.3rem 0 1.1rem;
}

.havena-pro-agency-tile__loc svg {
  width: 14px;
  height: 14px;
  color: var(--havena-pro-gold-deep);
}

.havena-pro-agency-tile__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--havena-pro-line);
  font-size: var(--havena-pro-fs-xs);
  color: var(--havena-pro-slate);
}

.havena-pro-agency-tile__stats strong {
  display: block;
  font-size: 1.02rem;
  color: var(--havena-pro-ink);
}

.havena-pro-profile__photo--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--havena-pro-gold), var(--havena-pro-blue));
  padding: 5px;
}

.havena-pro-profile__photo--initial > span {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--havena-pro-radius-lg) - 5px);
  background: linear-gradient(
    135deg,
    var(--havena-pro-color-dark-900, #0a1628),
    var(--havena-pro-color-dark-700, #15304f)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--havena-pro-font-family-heading);
  font-size: 3.2rem;
  color: #fff;
  border: 4px solid var(--havena-pro-navy-900);
}

.havena-pro-agency-offices {
  padding-top: 0;
  background: var(--havena-pro-card-background, #fff);
}

.havena-pro-toolbar__sort label {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .havena-pro-agency-tile__stats {
    gap: 0.85rem 1.1rem;
  }

  .havena-pro-profile__actions {
    width: 100%;
  }

  .havena-pro-profile__actions .havena-pro-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .havena-pro-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Office cards */
.havena-pro-office {
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius);
  overflow: hidden;
  background: var(--havena-pro-card-background);
  transition:
    transform var(--havena-pro-speed) var(--havena-pro-ease),
    box-shadow var(--havena-pro-speed) var(--havena-pro-ease);
}

.havena-pro-office:hover {
  transform: translateY(-5px);
  box-shadow: var(--havena-pro-shadow);
}

.havena-pro-office img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.havena-pro-office__body {
  padding: 1.4rem 1.5rem;
}

.havena-pro-office__body h3 {
  font-size: 1.05rem;
  font-weight: var(--havena-pro-type-weight-body-strong);
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}

.havena-pro-office__body p {
  display: flex;
  gap: 0.6rem;
  font-size: var(--havena-pro-fs-sm);
  color: var(--havena-pro-slate);
  margin-bottom: 0.45rem;
}

.havena-pro-office__body svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--havena-pro-gold-deep);
}

/* ------------------------------------------------------------
   PANEL SECTION HEADER (title + count + View all)
   Matches dashboard panel__head — required on people pages
   because dashboard.css is not enqueued there.
------------------------------------------------------------ */
.havena-pro-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 1.3rem;
}

.havena-pro-panel__head .havena-pro-panel__title {
  margin-bottom: 0;
  min-width: 0;
}

.havena-pro-panel__head .havena-pro-link-arrow {
  flex-shrink: 0;
  padding: 0.35rem 0;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   ELEMENTOR — agent card photo lock (defeat `.elementor img` height:auto /
   border-radius:0). Reinforces the canonical main.css contract (0,2,1+).
------------------------------------------------------------ */
.elementor .havena-pro-agent .havena-pro-agent__photo > img,
.elementor .havena-pro-agent__photo img,
.elementor-widget-havena-pro-agent-grid .havena-pro-agent .havena-pro-agent__photo > img,
.elementor-widget-havena-pro-agent-grid .havena-pro-agent__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
}

/* Agency tile logos — beat Elementor `.elementor img` while keeping contain. */
.elementor .havena-pro-agency-tile .havena-pro-agency-tile__logo > img,
.elementor .havena-pro-agency-tile__logo img,
.elementor-widget-havena-pro-agency-grid .havena-pro-agency-tile .havena-pro-agency-tile__logo > img,
.elementor-widget-havena-pro-agency-grid .havena-pro-agency-tile__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: none;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
}

/* ------------------------------------------------------------
   SINGLE AGENT SIDEBAR — Gutenberg / Appearance widgets
   Scoped to .havena-pro-agent-sidebar-widgets only (not property,
   not blog, not global .widget). Matches .havena-pro-side-card chrome.
------------------------------------------------------------ */
.havena-pro-dside .havena-pro-agent-sidebar-widgets > .widget {
  background: var(--havena-pro-card-background, #fff);
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--havena-pro-shadow-xs);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Collapse empty widget shells so inactive/blank blocks do not leave card gaps. */
.havena-pro-dside .havena-pro-agent-sidebar-widgets > .widget:empty {
  display: none;
}

/* Neutralize nested Gutenberg group chrome — the .widget is the card. */
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-group,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-group__inner-container {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* Headings: classic widget title + Gutenberg block heading. */
.havena-pro-dside .havena-pro-agent-sidebar-widgets .havena-pro-widget__title,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-heading {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: var(--havena-pro-type-weight-heading);
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--havena-pro-ink, var(--havena-pro-color-text));
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .havena-pro-widget__title::before,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--havena-pro-gold);
}

/* Archives / Categories / generic list widgets. */
.havena-pro-dside .havena-pro-agent-sidebar-widgets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive ul,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories ul {
  margin: 0;
  padding: 0;
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives li,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories li,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive li,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories li {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--havena-pro-line);
  font-size: var(--havena-pro-fs-sm);
  line-height: 1.45;
  color: var(--havena-pro-slate);
  min-width: 0;
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives li:first-child,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories li:first-child,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive li:first-child,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories li:first-child {
  padding-top: 0;
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives li:last-child,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories li:last-child,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive li:last-child,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives a,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories a,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive a,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
  font-weight: var(--havena-pro-type-weight-button, 600);
  line-height: 1.45;
  color: var(--havena-pro-ink, var(--havena-pro-color-text));
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition:
    color var(--havena-pro-speed, 0.2s) var(--havena-pro-ease, ease),
    opacity var(--havena-pro-speed, 0.2s) var(--havena-pro-ease, ease);
}

/* Subtle chevron — CSS only; does not alter link text. */
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives a::after,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories a::after,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive a::after,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories a::after {
  content: "";
  flex: 0 0 auto;
  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.15rem;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.32;
  transition:
    opacity var(--havena-pro-speed, 0.2s) var(--havena-pro-ease, ease),
    border-color var(--havena-pro-speed, 0.2s) var(--havena-pro-ease, ease),
    transform var(--havena-pro-speed, 0.2s) var(--havena-pro-ease, ease);
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives a:hover,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories a:hover,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive a:hover,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories a:hover {
  color: var(--havena-pro-blue);
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives a:hover::after,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories a:hover::after,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive a:hover::after,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories a:hover::after {
  opacity: 0.85;
  border-color: var(--havena-pro-gold);
  transform: rotate(45deg) translate(1px, -1px);
}

.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives a:focus-visible,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories a:focus-visible,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive a:focus-visible,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories a:focus-visible {
  outline: 2px solid var(--havena-pro-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Nested category children keep the same rhythm. */
.havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories .children,
.havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories .children {
  margin: 0.35rem 0 0 0.85rem;
  padding: 0;
}

@media (max-width: 768px) {
  .havena-pro-dside .havena-pro-agent-sidebar-widgets > .widget {
    padding: 1.4rem 1.25rem;
  }
}

@media (max-width: 390px) {
  .havena-pro-dside .havena-pro-agent-sidebar-widgets > .widget {
    padding: 1.25rem 1.1rem;
  }

  .havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-archives a,
  .havena-pro-dside .havena-pro-agent-sidebar-widgets .wp-block-categories a,
  .havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_archive a,
  .havena-pro-dside .havena-pro-agent-sidebar-widgets .widget_categories a {
    font-size: 0.9rem;
  }
}
