/* Shared brand profiles, distinct from the expert's personal profiles. */
.has-header-social {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.has-header-social > .site-nav,
.has-header-social > .content-nav,
.has-header-social > .product-example-label {
  justify-self: end;
}

.has-header-social > .brand,
.has-header-social > .content-brand,
.has-header-social > .brand-logo {
  justify-self: start;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  color: var(--muted);
  text-decoration: none;
}

.header-social a:hover {
  color: var(--foreground);
  background: var(--note);
}

.header-social a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.social-header-standalone {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

@media (max-width: 820px) {
  .has-header-social {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
  }

  .has-header-social > .header-social {
    grid-column: 2;
    grid-row: 1;
    border-left: 0;
    padding-left: 0;
  }

  .has-header-social > .site-nav,
  .has-header-social > .content-nav,
  .has-header-social > .product-example-label {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
    max-width: none;
  }
}

.legal-footer,
.content-footer {
  flex-wrap: wrap;
}

.brand-social {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 0.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand-social .brand-social-title {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.brand-social .brand-social-description {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.brand-social .brand-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
}

.brand-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.brand-social-links a:hover {
  border-color: var(--primary);
  background: var(--note);
}

.brand-social-links a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 4px;
}

.brand-social-links svg {
  flex-shrink: 0;
}

.brand-footer-standalone {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

@media (max-width: 820px) {
  .brand-social {
    flex-basis: auto;
    align-items: flex-start;
    flex-direction: column;
  }
}
