.profile-summary-page .card {
  border-radius: 8px;
}

.profile-hero {
  background: #fff;
}

.profile-hero__image {
  align-items: center;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  display: flex;
  flex: 0 0 144px;
  height: 144px;
  justify-content: center;
  overflow: hidden;
  width: 144px;
}

.profile-hero__image--avatar {
  border-radius: 50%;
}

.profile-hero__image--logo {
  flex-basis: 220px;
  height: 100px;
  width: 220px;
}

.profile-hero__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-hero__image--logo img {
  object-fit: contain;
  padding: 12px;
}

.profile-hero__image .fa-building {
  font-size: 48px;
}

.profile-hero__image i {
  color: #6c757d;
  font-size: 56px;
}

.profile-hero__meta {
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.profile-hero__actions {
  flex: 0 0 auto;
}

.profile-summary-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 0;
}

.profile-summary-row:first-of-type {
  padding-top: 0;
}

.profile-summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-summary-row span {
  color: #6c757d;
}

.profile-summary-row strong {
  font-weight: 600;
  max-width: 65%;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (max-width: 767.98px) {
  .profile-hero__image {
    height: 120px;
    width: 120px;
  }

  .profile-hero__image--logo {
    height: 100px;
    width: 220px;
  }

  .profile-summary-row {
    display: block;
  }

  .profile-summary-row strong {
    display: block;
    max-width: none;
    text-align: left;
  }
}


.profile-content-panel {
  padding: 1.25rem;
  background: #f8f7f4;
  border: 1px solid #e8e4dc;
  border-radius: 16px;
}

.profile-content-panel__eyebrow {
  display: block;
  margin-bottom: .5rem;
  color: #74634e;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-content-panel__heading h2 {
  margin: 0 0 .5rem;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.2;
}

.profile-content-panel__heading p {
  margin-bottom: 1.25rem;
  color: #706d67;
  font-size: .85rem;
  line-height: 1.5;
}

.profile-content-links {
  display: grid;
  gap: .75rem;
}

.profile-content-link {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: 1rem .85rem;
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  background: #fff;
  color: #29251f;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(45, 35, 20, .025);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.profile-content-link:hover,
.profile-content-link:focus-visible {
  color: #29251f;
  border-color: #ad9472;
  box-shadow: 0 4px 14px rgba(45, 35, 20, .08);
}

.profile-content-link:focus-visible {
  outline: 2px solid #94744c;
  outline-offset: 3px;
}

.profile-content-link__icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 9px;
  background: #f4efe7;
  color: #806341;
  font-size: .9rem;
}

.profile-content-link__body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-content-link__title,
.profile-content-link__description {
  display: block;
}

.profile-content-link__title {
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 700;
}

.profile-content-link__description {
  margin-top: .4rem;
  color: #706d67;
  font-size: .78rem;
  line-height: 1.5;
}

.profile-content-link__end {
  display: grid;
  justify-items: center;
  gap: .7rem;
  color: #9a9184;
  font-size: .65rem;
}

.profile-content-link__count {
  min-width: 24px;
  padding: .15rem .4rem;
  border-radius: 6px;
  background: #f1eee8;
  color: #625039;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .profile-content-panel { padding: .85rem; }
  .profile-content-link { flex-wrap: wrap; }
  .profile-content-link__body { flex-basis: calc(100% - 45px); }
  .profile-content-link__end { display: flex; margin-left: 43px; }
}


/* Profile details use an open, editorial layout distinct from the content navigation. */
.profile-overview .profile-hero {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(120deg, #203b40, #304e50);
  color: #fff;
}

.profile-hero__inner {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.profile-overview__eyebrow {
  margin: 0 0 .4rem;
  color: #bcd0cd;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-overview .profile-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-overview .profile-hero__meta {
  color: #d2e0de;
  font-size: .8rem;
  gap: .5rem 1rem;
  overflow-wrap: anywhere;
}

.profile-overview .profile-hero__image {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  border: 4px solid rgba(255, 255, 255, .2);
  background: #f2f5f4;
}

.profile-overview .profile-hero__image--logo {
  flex-basis: 150px;
  width: 150px;
  height: 100px;
  border-radius: 10px;
}

.profile-overview .profile-hero .badge {
  font-size: .65rem;
  font-weight: 600;
  padding: .4rem .55rem;
}

.profile-overview .profile-hero__actions .btn {
  border-radius: 8px;
  font-size: .85rem;
  padding: .7rem 1rem;
  white-space: nowrap;
}

.profile-overview-section {
  background: #fff;
  border-top: 2px solid #d9e3e1;
}

.profile-overview-section__body {
  padding: 1.4rem .75rem 1rem;
}

.profile-overview-section h2 {
  color: #274649;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.profile-overview-section h2 i {
  color: #6b8986;
  font-size: .9rem;
}

.profile-overview .profile-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem;
  border-color: #edf0ef;
  padding: .8rem 0;
  font-size: .85rem;
}

.profile-overview .profile-summary-row span {
  color: #77827f;
  font-size: .75rem;
}

.profile-overview .profile-summary-row strong {
  max-width: none;
  text-align: left;
  color: #303b39;
  font-weight: 500;
  line-height: 1.5;
}

.profile-overview .profile-summary-row a {
  color: #315e5b;
  text-underline-offset: 3px;
}

.profile-overview .progress {
  height: 6px;
  background: #e7eeec;
  border-radius: 3px;
}

.profile-overview .progress-bar {
  background: #4a7c70;
}

.profile-overview-section .alert {
  font-size: .8rem;
  border-radius: 8px;
}

.profile-overview-section .btn {
  margin-bottom: .5rem;
}

@media (max-width: 991.98px) {
  .profile-overview .profile-hero__image { flex-basis: auto; }
  .profile-overview .profile-hero__actions { align-self: flex-start; }
}
