.provider-profile-page .home-app-header--page,
.profile-directory-page .home-app-header--page {
  width: min(calc(100% - 32px), 1120px);
}

.provider-profile,
.profile-directory {
  width: min(calc(100% - 32px), 1120px);
  padding: 38px 0 74px;
}

.provider-profile__hero {
  padding: clamp(28px, 5vw, 58px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(100, 173, 255, .46), transparent 19rem),
    linear-gradient(135deg, #081a3b 0%, #0a2d68 58%, #086cff 145%);
  border-radius: 30px;
  box-shadow: 0 25px 70px rgba(21, 50, 96, .18);
}

.provider-profile__hero::after {
  content: "";
  width: 310px;
  height: 310px;
  position: absolute;
  right: -108px;
  bottom: -180px;
  border: 42px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}

.provider-profile__back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfe1ff;
  font-size: 13px;
  font-weight: 600;
}

.provider-profile__back:hover,
.provider-profile__back:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.provider-profile__badges {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-profile__badges span {
  padding: 7px 11px;
  color: #dce9ff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}

.provider-profile__badges .is-verified { color: #bdffde; background: rgba(31, 168, 103, .19); border-color: rgba(125, 241, 187, .28); }
.provider-profile__badges .is-emergency { color: #fff1bd; background: rgba(223, 153, 24, .18); border-color: rgba(255, 218, 138, .28); }

.provider-profile__eyebrow {
  margin: 26px 0 0;
  color: #8ebdff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.provider-profile__hero h1 {
  max-width: 820px;
  margin: 9px 0 0;
  position: relative;
  z-index: 1;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.provider-profile__summary {
  max-width: 690px;
  margin: 20px 0 0;
  position: relative;
  z-index: 1;
  color: #d2e0f7;
  font-size: 15px;
  line-height: 1.7;
}

.provider-profile__actions {
  margin-top: 31px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.provider-profile__action {
  min-height: 62px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
}

.provider-profile__action--primary { color: #09234e; background: #fff; box-shadow: 0 13px 32px rgba(0, 0, 0, .16); }
.provider-profile__action--primary svg { width: 23px; height: 23px; color: #086cff; }
.provider-profile__action--primary span { line-height: 1.25; }
.provider-profile__action--primary strong { font-size: 15px; }
.provider-profile__action--secondary { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .09); }
.provider-profile__action:hover { transform: translateY(-1px); }
.provider-profile__action:focus-visible { outline: 3px solid rgba(255, 255, 255, .55); outline-offset: 3px; }

.provider-profile__layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.provider-profile__content { display: grid; gap: 18px; }

.provider-profile__panel,
.provider-profile__contact-card,
.provider-profile__evidence-card,
.provider-profile__claim-card {
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--public-app-line);
  border-radius: 22px;
  box-shadow: 0 15px 38px rgba(43, 80, 130, .07);
}

.provider-profile__panel { padding: clamp(23px, 4vw, 34px); }

.provider-profile__section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.provider-profile__section-heading > span {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--public-app-blue);
  background: var(--public-app-soft);
  border-radius: 13px;
  font-size: 11px;
  font-weight: 700;
}

.provider-profile__section-heading p,
.provider-profile__contact-card > p,
.provider-profile__evidence-card > p,
.provider-profile__claim-card > p:first-child,
.provider-profile__related > div > p,
.profile-directory__hero > p:first-child {
  margin: 0;
  color: var(--public-app-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.provider-profile__section-heading h2,
.provider-profile__contact-card h2,
.provider-profile__evidence-card h2,
.provider-profile__claim-card h2 {
  margin: 3px 0 0;
  color: var(--public-app-navy);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.provider-profile__panel > p,
.provider-profile__panel address {
  margin: 0;
  color: #34445c;
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.provider-profile__panel address { font-size: 17px; font-weight: 600; }
.provider-profile__fine-print { margin-top: 17px !important; color: #7b8798 !important; font-size: 11px !important; }
.provider-profile__map-link,
.provider-profile__text-link { margin-top: 17px; display: inline-flex; color: var(--public-app-blue); font-size: 12px; font-weight: 700; }
.provider-profile__map-link:hover,
.provider-profile__text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.provider-profile__service-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.provider-profile__service-list li {
  min-height: 72px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f7faff;
  border: 1px solid #e4ebf6;
  border-radius: 14px;
}

.provider-profile__service-list li > span {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #14764f;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.provider-profile__service-list strong { display: block; color: #25354c; font-size: 12px; }
.provider-profile__service-list small { margin-top: 3px; display: block; color: #7b8798; font-size: 9px; line-height: 1.4; }
.provider-profile__published-value { padding: 18px; color: #1d4f8f !important; background: #eef6ff; border-radius: 14px; font-weight: 600; }

.provider-profile__price-list { display: grid; gap: 11px; }
.provider-profile__price-list article { padding: 16px; background: #f7faff; border: 1px solid #e4ebf6; border-radius: 14px; }
.provider-profile__price-list article > div { display: flex; justify-content: space-between; gap: 15px; }
.provider-profile__price-list span { color: #34445c; font-size: 12px; font-weight: 600; }
.provider-profile__price-list strong { color: var(--public-app-navy); font-size: 16px; }
.provider-profile__price-list p { margin: 8px 0 0; color: #6f7c8f; font-size: 10px; line-height: 1.55; }
.provider-profile__price-list a { margin-top: 8px; display: inline-flex; color: var(--public-app-blue); font-size: 10px; font-weight: 700; }

.provider-profile__aside { position: sticky; top: 18px; display: grid; gap: 16px; }
.provider-profile__contact-card,
.provider-profile__evidence-card,
.provider-profile__claim-card { padding: 23px; }
.provider-profile__contact-card > a { padding: 15px 0; display: block; border-top: 1px solid var(--public-app-line); }
.provider-profile__contact-card > a:first-of-type { margin-top: 18px; }
.provider-profile__contact-card > a span { display: block; color: #7b8798; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.provider-profile__contact-card > a strong { margin-top: 3px; display: block; overflow-wrap: anywhere; color: var(--public-app-blue); font-size: 13px; }
.provider-profile__contact-card > small { display: block; color: #7b8798; font-size: 9px; line-height: 1.55; }
.provider-profile__evidence-card > strong { margin-top: 17px; display: block; color: #25354c; font-size: 12px; }
.provider-profile__evidence-card > p:not(:first-child),
.provider-profile__claim-card > p:not(:first-child) { color: #6f7c8f; font-size: 10px; line-height: 1.6; }
.provider-profile__evidence-card ul { margin: 14px 0 0; padding: 13px 0 0; border-top: 1px solid var(--public-app-line); list-style: none; }
.provider-profile__evidence-card li { margin-top: 8px; color: #536075; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.provider-profile__evidence-card li a:hover { color: var(--public-app-blue); text-decoration: underline; }
.provider-profile__evidence-card > small { margin-top: 15px; display: block; color: #8a95a5; font-size: 9px; }
.provider-profile__claim-card { color: #fff; background: linear-gradient(145deg, #0b2452, #0c418c); border: 0; }
.provider-profile__claim-card > p:first-child { color: #8ebdff; }
.provider-profile__claim-card h2 { color: #fff; }
.provider-profile__claim-card > p:not(:first-child) { color: #cbdaf1; }
.provider-profile__claim-card a { min-height: 45px; margin-top: 16px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; color: #0a2d68; background: #fff; border-radius: 12px; font-size: 11px; font-weight: 700; }

.provider-profile__related { margin-top: 48px; }
.provider-profile__related > div h2 { margin: 5px 0 0; color: var(--public-app-navy); font-size: clamp(25px, 4vw, 36px); letter-spacing: -.045em; }
.provider-profile__related ul { margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.provider-profile__related a { min-height: 96px; padding: 18px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 5px 14px; background: #fff; border: 1px solid var(--public-app-line); border-radius: 16px; }
.provider-profile__related strong { overflow-wrap: anywhere; color: #25354c; font-size: 13px; }
.provider-profile__related span { color: #7b8798; font-size: 10px; }
.provider-profile__related i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--public-app-blue); font-size: 20px; font-style: normal; }
.provider-profile__related a:hover { border-color: #b9d3fa; transform: translateY(-1px); }

.profile-directory__hero {
  padding: clamp(28px, 5vw, 52px);
  background: #fff;
  border: 1px solid var(--public-app-line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(43, 80, 130, .08);
}
.profile-directory__hero h1 { max-width: 830px; margin: 9px 0 0; color: var(--public-app-navy); font-size: clamp(37px, 6vw, 61px); line-height: 1.04; letter-spacing: -.055em; }
.profile-directory__hero > p:nth-of-type(2) { max-width: 720px; margin: 18px 0 0; color: var(--public-app-muted); font-size: 14px; line-height: 1.7; }
.profile-directory__hero > span { margin-top: 23px; display: inline-flex; padding: 7px 11px; color: #285581; background: #eef5ff; border-radius: 999px; font-size: 10px; font-weight: 700; }
.profile-directory__list { margin: 24px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: profile-list; }
.profile-directory__list > li { counter-increment: profile-list; }
.profile-directory__list a { min-height: 94px; padding: 15px 19px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 24px; align-items: center; gap: 15px; background: #fff; border: 1px solid var(--public-app-line); border-radius: 17px; box-shadow: 0 9px 26px rgba(43, 80, 130, .045); }
.profile-directory__list a:hover { border-color: #b9d3fa; box-shadow: 0 14px 32px rgba(43, 80, 130, .09); }
.profile-directory__icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--public-app-blue); background: var(--public-app-soft); border-radius: 14px; }
.profile-directory__icon svg { width: 29px; height: 29px; }
.profile-directory__business { min-width: 0; }
.profile-directory__business strong { display: block; overflow-wrap: anywhere; color: #25354c; font-size: 14px; }
.profile-directory__business small { margin-top: 5px; display: block; color: #7b8798; font-size: 10px; }
.profile-directory__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.profile-directory__badges small { padding: 5px 7px; color: #315e8c; background: #edf5ff; border-radius: 999px; font-size: 8px; font-weight: 700; }
.profile-directory__list i { color: var(--public-app-blue); font-size: 20px; font-style: normal; }
.profile-directory__pagination { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.profile-directory__pagination > a { color: var(--public-app-blue); font-size: 11px; font-weight: 700; }
.profile-directory__pagination > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.profile-directory__pagination > div a,
.profile-directory__pagination > div span { width: 34px; height: 34px; display: grid; place-items: center; color: #536075; background: #fff; border: 1px solid var(--public-app-line); border-radius: 9px; font-size: 10px; font-weight: 600; }
.profile-directory__pagination > div span { color: #fff; background: var(--public-app-blue); border-color: var(--public-app-blue); }
.profile-directory__note { margin-top: 35px; padding: 21px; color: #5e6c80; background: #eef5ff; border-radius: 16px; }
.profile-directory__note strong { color: #25354c; font-size: 12px; }
.profile-directory__note p { margin: 6px 0 0; font-size: 10px; line-height: 1.6; }

@media (max-width: 850px) {
  .provider-profile__layout { grid-template-columns: 1fr; }
  .provider-profile__aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-profile__claim-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .provider-profile,
  .profile-directory { width: min(calc(100% - 24px), 1120px); padding-top: 24px; }
  .provider-profile__hero { padding: 25px 20px 28px; border-radius: 22px; }
  .provider-profile__badges { margin-top: 25px; }
  .provider-profile__hero h1 { font-size: clamp(33px, 11vw, 46px); }
  .provider-profile__summary { font-size: 13px; }
  .provider-profile__actions { display: grid; }
  .provider-profile__action { width: 100%; }
  .provider-profile__layout { gap: 15px; }
  .provider-profile__panel { padding: 21px 17px; border-radius: 18px; }
  .provider-profile__section-heading { align-items: flex-start; }
  .provider-profile__service-list { grid-template-columns: 1fr; }
  .provider-profile__aside { grid-template-columns: 1fr; }
  .provider-profile__claim-card { grid-column: auto; }
  .provider-profile__related ul { grid-template-columns: 1fr; }
  .profile-directory__hero { padding: 27px 20px; border-radius: 21px; }
  .profile-directory__list a { min-height: 105px; padding: 13px; grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 11px; }
  .profile-directory__icon { width: 48px; height: 48px; }
  .profile-directory__icon svg { width: 25px; height: 25px; }
  .profile-directory__badges { grid-column: 2; justify-content: flex-start; }
  .profile-directory__list i { grid-column: 3; grid-row: 1 / 3; }
  .profile-directory__pagination { align-items: stretch; flex-direction: column; }
  .profile-directory__pagination > a { padding: 9px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .provider-profile-page *,
  .profile-directory-page * { transition-duration: .01ms !important; }
}

