/*
  ============================================================
  GRFTSH — PUBLIC ADVERTISER PROFILE V1
  ============================================================
*/

.advertiser-profile-view {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 120px;
  box-sizing: border-box;
}


.advertiser-profile-view.profile-hidden {
  display: none;
}


.advertiser-profile-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;

  margin-bottom: 28px;
}


.advertiser-profile-topbar strong {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: .95rem;
}


.advertiser-profile-back {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;

  background: rgba(255,255,255,.04);
  color: inherit;

  font: inherit;
  font-size: 1.2rem;

  cursor: pointer;
}


.advertiser-profile-back:hover {
  background: rgba(255,255,255,.08);
}


.advertiser-profile-card {
  padding: clamp(24px, 4vw, 48px);

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;

  background:
    rgba(255,255,255,.025);

  box-sizing: border-box;
}


.advertiser-profile-content {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);

  align-items: start;
}


.advertiser-profile-logo {
  min-height: 180px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;

  background:
    rgba(0,0,0,.18);

  box-sizing: border-box;
}


.advertiser-profile-logo img {
  display: block;

  width: 100%;
  max-width: 240px;
  max-height: 240px;

  object-fit: contain;
}


.advertiser-profile-logo img:not([src]),
.advertiser-profile-logo img[src=""] {
  display: none;
}


.advertiser-profile-logo span {
  opacity: .55;

  font-size: .85rem;
}


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


.advertiser-profile-main h1 {
  margin: 0;

  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}


.advertiser-profile-location {
  margin-top: 8px;

  opacity: .64;

  font-size: .95rem;
}


.advertiser-profile-location:empty {
  display: none;
}


.advertiser-profile-description {
  margin-top: 28px;

  max-width: 760px;

  white-space: pre-wrap;

  font-size: 1rem;
  line-height: 1.65;
}


.advertiser-profile-links {
  display: grid;
  gap: 10px;

  margin-top: 30px;
  padding-top: 22px;

  border-top:
    1px solid rgba(255,255,255,.08);
}


.advertiser-profile-links:empty {
  display: none;
}


.advertiser-profile-links a {
  display: flex;
  align-items: baseline;
  gap: 12px;

  min-width: 0;

  color: inherit;
  text-decoration: none;
}


.advertiser-profile-links a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}


.advertiser-profile-links span {
  min-width: 90px;

  opacity: .58;

  font-size: .84rem;
}


.advertiser-profile-links strong {
  min-width: 0;

  overflow-wrap: anywhere;

  font-size: .9rem;
  font-weight: 500;
}


.advertiser-profile-state {
  padding: 48px 20px;

  text-align: center;

  opacity: .7;
}


.advertiser-profile-error {
  opacity: .8;
}


@media (max-width: 700px) {

  .advertiser-profile-view {
    width: 100%;
    padding:
      16px 16px 110px;
  }


  .advertiser-profile-card {
    padding: 22px 18px;
    border-radius: 18px;
  }


  .advertiser-profile-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }


  .advertiser-profile-logo {
    min-height: 140px;
  }


  .advertiser-profile-logo img {
    max-width: 200px;
    max-height: 180px;
  }


  .advertiser-profile-links a {
    display: grid;
    gap: 3px;
  }


  .advertiser-profile-links span {
    min-width: 0;
  }
}
