.profile-explorer {
  background: #171020;
}

.profile-explorer .section-head p {
  margin-top: 12px;
}

.profile-explorer-fieldset {
  position: relative;
  min-inline-size: 0;
  max-inline-size: 880px;
  margin-inline: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.profile-explorer-sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-explorer-scene {
  display: flex;
  align-items: end;
  min-block-size: clamp(220px, 43vw, 390px);
  padding: clamp(12px, 3vw, 28px);
  border-radius: 23px 23px 0 0;
  background-color: #1c1327;
  background-image: linear-gradient(0deg, #130d1be6, transparent 58%), var(--profile-image);
  background-position: var(--profile-position, center);
  background-size: cover;
}

#explore-photos:checked ~ .profile-explorer-scene {
  --profile-image: url("/padaria-perfil-google.webp");
  --profile-position: center 48%;
}

#explore-reviews:checked ~ .profile-explorer-scene {
  --profile-image: url("/padaria-perfil-google.webp");
  --profile-position: right 35%;
  background-size: cover, 145% auto;
}

.profile-explorer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  inline-size: 100%;
}

.profile-explorer-controls label {
  display: grid;
  align-items: center;
  min-block-size: 44px;
  padding: 6px 14px;
  border: 1px solid #d9c5e2;
  border-radius: 99px;
  background: #20172bed;
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

#explore-photos:checked ~ .profile-explorer-scene label[for="explore-photos"],
#explore-reviews:checked ~ .profile-explorer-scene label[for="explore-reviews"] {
  border-color: #ebc2f7;
  background: #ebc2f7;
  color: #20172b;
}

#explore-photos:focus-visible ~ .profile-explorer-scene label[for="explore-photos"],
#explore-reviews:focus-visible ~ .profile-explorer-scene label[for="explore-reviews"] {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.profile-explorer-panel {
  display: none;
  min-block-size: 10.5rem;
  padding: clamp(18px, 3vw, 28px);
}

#explore-photos:checked ~ #profile-photos-panel,
#explore-reviews:checked ~ #profile-reviews-panel {
  display: block;
}

.profile-explorer-panel h3 {
  margin-bottom: 6px;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.profile-explorer-panel p {
  max-inline-size: 64ch;
  margin-bottom: 10px;
  color: var(--muted);
}

@media (max-width: 540px) {
  #explore-reviews:checked ~ .profile-explorer-scene {
    background-size: cover, auto 150%;
  }

  .profile-explorer-controls {
    gap: 6px;
  }

  .profile-explorer-controls label {
    padding-inline: 9px;
  }
}
