/* Coastal SD Pros business profiles: source-backed marketplace detail pages. */

.profile-page {
  --profile-ink: var(--dir-ink);
  --profile-navy: var(--dir-navy);
  --profile-coral: var(--dir-coral);
  --profile-coral-dark: var(--dir-coral-hover);
  --profile-muted: var(--dir-muted);
  --profile-line: var(--dir-line);
  --profile-line-strong: var(--dir-line-strong);
  --profile-blue-soft: #f1f7f8;
  --profile-blue-line: #c9e3e7;
  --profile-white: #ffffff;
  color: var(--profile-ink);
  background: var(--profile-white);
}

.profile-page h1,
.profile-page h2,
.profile-page h3,
.profile-page p,
.profile-page dl {
  margin-top: 0;
}

.profile-page a {
  text-underline-offset: 3px;
}

.profile-wordmark {
  color: var(--profile-navy);
}

.profile-mobile-search {
  display: none;
}

/* Breadcrumbs ------------------------------------------------------------- */

.profile-breadcrumb-wrap,
.profile-breadcrumbs {
  min-height: 52px;
}

.profile-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--profile-muted);
  font-size: 13px;
}

.profile-breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--profile-navy);
}

/* Profile masthead -------------------------------------------------------- */

.profile-hero {
  padding: 42px 0 34px;
  border-block: 1px solid var(--profile-line);
  background: var(--profile-white);
}

.profile-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 64px;
}

.profile-identity {
  min-width: 0;
  padding-top: 4px;
}

.profile-eyebrow {
  margin-bottom: 8px;
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 700;
  text-wrap: pretty;
}

.profile-eyebrow span {
  margin-inline: 5px;
  color: var(--profile-line-strong);
}

.profile-identity h1 {
  max-width: 25ch;
  margin-bottom: 13px;
  color: var(--profile-ink);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 760;
  line-height: 1.06;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.profile-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  color: var(--profile-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.profile-rating__star {
  color: var(--profile-coral);
  font-size: 20px;
  line-height: 1;
}

.profile-rating strong {
  color: var(--profile-ink);
  font-size: 18px;
  line-height: 1;
}

.profile-rating a {
  color: var(--profile-navy);
  font-weight: 750;
}

/* Contact panel ----------------------------------------------------------- */

.profile-contact-card {
  padding: 22px;
  border: 1px solid var(--profile-line-strong);
  border-radius: 8px;
  background: var(--profile-white);
  box-shadow: 0 8px 22px rgba(23, 32, 42, .08);
}

.profile-contact-card__label {
  margin-bottom: 12px;
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 750;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-action,
.profile-claim__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--profile-navy);
  border-radius: 8px;
  color: var(--profile-white);
  background: var(--profile-navy);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.profile-actions .profile-action:first-child {
  grid-column: 1 / -1;
}

.profile-actions:has(> .profile-action:nth-child(2):last-child) {
  grid-template-columns: 1fr;
}

.profile-page .profile-action,
.profile-page .profile-claim__button {
  color: var(--profile-white);
}

.profile-action:hover,
.profile-action:focus-visible {
  border-color: #0c2033;
  background: #0c2033;
}

.profile-action--primary {
  border-color: var(--profile-coral);
  background: var(--profile-coral);
}

.profile-action--primary:hover,
.profile-action--primary:focus-visible {
  border-color: var(--profile-coral-dark);
  background: var(--profile-coral-dark);
}

.profile-page .profile-action--quiet {
  color: var(--profile-navy);
  background: var(--profile-white);
}

.profile-page .profile-action--quiet:hover,
.profile-page .profile-action--quiet:focus-visible {
  color: var(--profile-white);
  background: var(--profile-navy);
}

.profile-contact-list {
  display: grid;
  margin: 18px 0 0;
  border-top: 1px solid var(--profile-line);
}

.profile-contact-list > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--profile-line);
}

.profile-contact-list dt {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-contact-list dd {
  min-width: 0;
  margin: 0;
  color: var(--profile-ink);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.profile-contact-list a {
  color: var(--profile-navy);
}

/* Evidence strip ---------------------------------------------------------- */

.profile-quickfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: 28px 0 0;
  border-block: 1px solid var(--profile-line);
}

.profile-quickfacts > div {
  min-width: 0;
  padding: 17px 20px;
}

.profile-quickfacts > div + div {
  border-left: 1px solid var(--profile-line);
}

.profile-quickfacts > div:nth-child(3) {
  border-top: 1px solid var(--profile-line);
  border-left: 0;
}

.profile-quickfacts > div:nth-child(4) {
  border-top: 1px solid var(--profile-line);
}

.profile-quickfacts > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.profile-quickfacts dt {
  margin-bottom: 4px;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-quickfacts dd {
  margin: 0;
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.profile-quickfacts small {
  display: block;
  margin-top: 3px;
  color: var(--profile-muted);
  font-size: 10px;
  font-weight: 600;
}

/* Section navigation ------------------------------------------------------ */

.profile-section-nav {
  position: sticky;
  z-index: 15;
  top: 0;
  border-bottom: 1px solid var(--profile-line);
  background: var(--profile-white);
}

.profile-section-nav .dir-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 52px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.profile-section-nav .dir-shell::-webkit-scrollbar {
  display: none;
}

.profile-section-nav a {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.profile-section-nav a:hover {
  color: var(--profile-navy);
  text-decoration: underline;
}

/* Main profile layout ----------------------------------------------------- */

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 56px;
  padding-block: 56px 80px;
}

.profile-main {
  min-width: 0;
}

.profile-section {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--profile-line);
  scroll-margin-top: 76px;
}

.profile-section + .profile-section {
  padding-top: 48px;
}

.profile-section__head {
  margin-bottom: 20px;
}

.profile-section__head > p {
  margin-bottom: 4px;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-section h2,
.profile-aside h2 {
  margin-bottom: 0;
  color: var(--profile-ink);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.18;
  text-wrap: balance;
}

.profile-source-note {
  max-width: 72ch;
  margin: 14px 0 0;
  color: var(--profile-muted);
  font-size: 12px;
  text-wrap: pretty;
}

/* Evidence and editorial disclosure -------------------------------------- */

.profile-evidence-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--profile-line);
  border-left: 1px solid var(--profile-line);
}

.profile-evidence-summary article {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--profile-line);
  border-bottom: 1px solid var(--profile-line);
  background: var(--profile-white);
}

.profile-evidence-summary article:first-child {
  background: var(--profile-blue-soft);
}

.profile-evidence-summary h3 {
  margin-bottom: 8px;
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

.profile-evidence-summary p {
  margin-bottom: 0;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}

.profile-evidence-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 0;
  border-top: 1px solid var(--profile-line);
}

.profile-evidence-facts > div {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--profile-line);
}

.profile-evidence-facts > div:nth-child(odd) {
  padding-right: 20px;
}

.profile-evidence-facts > div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--profile-line);
}

.profile-evidence-facts dt {
  margin-bottom: 5px;
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-evidence-facts dd {
  margin: 0;
}

.profile-evidence-facts strong,
.profile-evidence-facts time {
  display: block;
  color: var(--profile-navy);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
}

.profile-evidence-facts span {
  display: block;
  margin-top: 3px;
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 1.45;
  text-wrap: pretty;
}

.profile-commercial-disclosure {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  color: var(--profile-muted);
  background: var(--profile-white);
  font-size: 12px;
  line-height: 1.55;
  text-wrap: pretty;
}

.profile-commercial-disclosure strong {
  color: var(--profile-ink);
}

/* Public listing categories ---------------------------------------------- */

.profile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--profile-line);
  border-left: 1px solid var(--profile-line);
  list-style: none;
}

.profile-category-grid li {
  min-width: 0;
  min-height: 56px;
  padding: 16px 18px;
  border-right: 1px solid var(--profile-line);
  border-bottom: 1px solid var(--profile-line);
  background: var(--profile-white);
}

.profile-category-grid strong {
  display: block;
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-category-grid span {
  display: block;
  margin-top: 3px;
  color: var(--profile-muted);
  font-size: 11px;
}

.profile-category-grid .profile-category--primary {
  grid-column: 1 / -1;
  background: var(--profile-blue-soft);
}

.profile-category-grid .profile-category--primary strong {
  color: var(--profile-navy);
  font-size: 16px;
}

/* Map and hours ----------------------------------------------------------- */

.profile-location-hours {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, .72fr);
  align-items: start;
  gap: 20px;
}

.profile-location,
.profile-hours {
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-white);
}

.profile-location__map {
  overflow: hidden;
  height: 310px;
  border-bottom: 1px solid var(--profile-line);
  background: var(--profile-white);
}

.profile-location__embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.profile-location__details {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.profile-location__pin {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 4px solid var(--profile-coral);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.profile-location__details strong {
  display: block;
  margin-bottom: 4px;
  color: var(--profile-ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.profile-location__details p {
  margin-bottom: 7px;
  color: var(--profile-muted);
  font-size: 12px;
  text-wrap: pretty;
}

.profile-location__details a {
  color: var(--profile-navy);
  font-size: 12px;
  font-weight: 700;
}

.profile-hours__head {
  padding: 16px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-hours h3 {
  margin-bottom: 4px;
  color: var(--profile-ink);
  font-size: 18px;
  font-weight: 750;
}

.profile-hours__head p {
  margin-bottom: 0;
  color: var(--profile-muted);
  font-size: 11px;
  text-wrap: pretty;
}

.profile-hours table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.profile-hours tr + tr {
  border-top: 1px solid var(--profile-line);
}

.profile-hours th,
.profile-hours td {
  padding: 9px 13px;
  vertical-align: top;
}

.profile-hours th {
  color: var(--profile-muted);
  font-weight: 650;
  text-align: left;
}

.profile-hours td {
  color: var(--profile-ink);
  font-weight: 700;
  text-align: right;
}

.profile-hours--empty {
  padding-bottom: 18px;
}

.profile-hours--empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: 0 16px;
  color: var(--profile-navy);
  font-size: 13px;
  font-weight: 700;
}

/* Google review snapshot -------------------------------------------------- */

.profile-review-summary {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-block: 1px solid var(--profile-line);
}

.profile-review-summary__score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.profile-review-summary__score strong {
  color: var(--profile-ink);
  font-size: 46px;
  font-weight: 760;
  line-height: 1;
}

.profile-review-summary__score span {
  color: var(--profile-muted);
  font-size: 12px;
}

.profile-review-summary__details {
  min-width: 0;
}

.profile-review-stars {
  position: relative;
  display: block;
  width: max-content;
  color: #c8c9cc;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.profile-review-stars > span:last-child {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--profile-coral);
}

.profile-review-summary__details > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--profile-navy);
  font-size: 15px;
  font-weight: 750;
}

.profile-review-summary__details p {
  margin: -7px 0 0;
  color: var(--profile-muted);
  font-size: 11px;
}

.profile-review-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--profile-blue-line);
  border-radius: 8px;
  background: var(--profile-blue-soft);
}

.profile-review-action p {
  max-width: 57ch;
  margin-bottom: 0;
  color: var(--profile-muted);
  font-size: 13px;
  text-wrap: pretty;
}

.profile-review-action a {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--profile-navy);
  border-radius: 8px;
  color: var(--profile-navy);
  background: var(--profile-white);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.profile-review-action a:hover {
  color: var(--profile-white);
  background: var(--profile-navy);
}

/* Local guide appearances ------------------------------------------------ */

.profile-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-city-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  color: var(--profile-navy);
  background: var(--profile-white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.profile-city-links a:hover {
  border-color: var(--profile-navy);
}

.profile-appearances > p {
  max-width: 72ch;
  margin: 14px 0 0;
  color: var(--profile-muted);
  font-size: 12px;
  text-wrap: pretty;
}

/* Homeowner rail ---------------------------------------------------------- */

.profile-aside {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 16px;
}

.profile-tools,
.profile-claim,
.profile-disclosure {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-white);
}

.profile-tools,
.profile-claim {
  padding: 22px;
}

.profile-tools {
  border-color: var(--profile-blue-line);
  background: var(--profile-blue-soft);
}

.profile-aside__label {
  margin-bottom: 5px;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-aside h2 {
  font-size: 21px;
}

.profile-tools ul {
  display: grid;
  margin: 17px 0 13px;
  padding: 0;
  border-top: 1px solid var(--profile-blue-line);
  list-style: none;
}

.profile-tools li {
  border-bottom: 1px solid var(--profile-blue-line);
}

.profile-tools li a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--profile-navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.profile-tools li a:hover,
.profile-tools__all:hover {
  text-decoration: underline;
}

.profile-tools__all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--profile-navy);
  font-size: 13px;
  font-weight: 750;
}

.profile-claim p:not(.profile-aside__label) {
  margin: 12px 0 17px;
  color: var(--profile-muted);
  font-size: 13px;
  text-wrap: pretty;
}

.profile-claim__button {
  width: 100%;
  border-color: var(--profile-line-strong);
  color: var(--profile-navy) !important;
  background: var(--profile-white);
}

.profile-claim__button:hover,
.profile-claim__button:focus-visible {
  border-color: var(--profile-navy);
  background: var(--profile-blue-soft);
}

.profile-disclosure {
  padding-inline: 18px;
}

.profile-disclosure summary {
  min-height: 48px;
  padding: 13px 0;
  color: var(--profile-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-disclosure > p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--profile-muted);
  font-size: 12px;
  text-wrap: pretty;
}

/* Footer and mobile actions ---------------------------------------------- */

.profile-footer {
  padding: 28px 0;
}

.profile-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.profile-footer__inner > div p {
  max-width: 42ch;
  margin: 8px 0 0;
  color: #d9e3ec;
  font-size: 12px;
}

.profile-footer .dir-brand {
  color: var(--profile-white);
}

.profile-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.profile-mobile-actions {
  display: none;
}

@media (max-width: 940px) {
  .profile-hero__grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-hero__grid {
    gap: 30px;
  }

  .profile-contact-card {
    box-shadow: none;
  }

  .profile-layout {
    gap: 42px;
  }

  .profile-location-hours {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-disclosure {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .profile-page {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .profile-header .dir-nav__business,
  .profile-header .dir-search {
    display: none;
  }

  .profile-header .dir-searchbar {
    padding: 8px 0;
    background: var(--profile-white);
  }

  .profile-mobile-search {
    display: flex;
    width: min(calc(100% - 24px), 1180px);
    min-height: 46px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--profile-line-strong);
    border-radius: 8px;
    color: var(--profile-navy);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
  }

  .profile-mobile-search:hover,
  .profile-mobile-search:focus-visible {
    border-color: var(--profile-navy);
    background: var(--profile-blue-soft);
  }

  .profile-breadcrumb-wrap {
    display: none;
  }

  .profile-hero {
    padding: 25px 0 24px;
  }

  .profile-hero__grid {
    gap: 22px;
  }

  .profile-eyebrow {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .profile-identity h1 {
    max-width: 100%;
    margin-bottom: 11px;
    font-size: min(32px, 8.6vw);
    line-height: 1.08;
  }

  .profile-rating {
    gap: 5px 7px;
    font-size: 13px;
  }

  .profile-contact-card {
    padding: 18px;
  }

  .profile-contact-card .profile-actions {
    display: none;
  }

  .profile-contact-list {
    margin-top: 0;
  }

  .profile-contact-list > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .profile-quickfacts {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .profile-quickfacts > div {
    padding: 13px 0;
  }

  .profile-quickfacts > div + div,
  .profile-quickfacts > div:nth-child(3),
  .profile-quickfacts > div:nth-child(4) {
    border-top: 1px solid var(--profile-line);
    border-left: 0;
  }

  .profile-section-nav .dir-shell {
    width: 100%;
    gap: 0;
    padding-inline: 12px;
  }

  .profile-section-nav a {
    padding-inline: 10px;
  }

  .profile-layout {
    gap: 34px;
    padding-block: 36px 48px;
  }

  .profile-section {
    padding-bottom: 36px;
  }

  .profile-section + .profile-section {
    padding-top: 36px;
  }

  .profile-section__head {
    margin-bottom: 16px;
  }

  .profile-section h2 {
    font-size: 24px;
  }

  .profile-category-grid {
    grid-template-columns: 1fr;
  }

  .profile-evidence-summary,
  .profile-evidence-facts {
    grid-template-columns: 1fr;
  }

  .profile-evidence-facts > div:nth-child(odd),
  .profile-evidence-facts > div:nth-child(even) {
    padding: 14px 0;
    border-left: 0;
  }

  .profile-category-grid .profile-category--primary {
    grid-column: auto;
  }

  .profile-location__map {
    height: 250px;
  }

  .profile-location__details {
    padding: 14px;
  }

  .profile-hours th,
  .profile-hours td {
    padding: 9px 11px;
  }

  .profile-review-summary {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .profile-review-summary__score strong {
    font-size: 40px;
  }

  .profile-review-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
  }

  .profile-review-action a {
    width: 100%;
    justify-content: center;
  }

  .profile-aside {
    grid-template-columns: 1fr;
  }

  .profile-disclosure {
    grid-column: auto;
  }

  .profile-footer__inner {
    flex-direction: column;
  }

  .profile-footer nav {
    justify-content: flex-start;
  }

  .profile-mobile-actions {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--profile-line);
    background: var(--profile-white);
    box-shadow: 0 -4px 14px rgba(23, 32, 42, .12);
  }

  .profile-mobile-actions--single {
    grid-template-columns: 1fr;
  }

  .profile-mobile-actions a {
    display: flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border: 1px solid var(--profile-navy);
    border-radius: 8px;
    color: var(--profile-navy);
    background: var(--profile-white);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
  }

  .profile-mobile-actions a:first-child {
    border-color: var(--profile-coral);
    color: var(--profile-white);
    background: var(--profile-coral);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page *,
  .profile-page *::before,
  .profile-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
