/*
 * Extras for the public version of the member profile page (/teachers/<name>-<code>).
 * The page is the ordinary member profile; these rules only style what is specific to the public version.
 */

/* The name is a real <h1> on the public page. Global h1 rules use !important, so the values the member profile gives
   its name (a styled <span>) are repeated here with !important to keep the look identical. */
h1.profile-main__username {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: normal;
  padding: 0;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  h1.profile-main__username {
    font-size: 1.4rem !important;
  }
}

.public-profile-owner-note {
  max-width: 1100px;
  margin: 6rem auto 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #fff4ee;
  border: 1px solid #fbd5c2;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

.public-profile-owner-note p {
  margin: 0 0 0.5rem;
}

.public-profile-owner-note a {
  color: #f94e10;
  font-weight: 600;
}

/* The note already sits below the toolbar, so the profile does not need its usual top gap twice. */
.public-profile-owner-note + .profile-container--upper {
  margin-top: 1rem;
}

/* Logged-out visitors: invitation to join or log in, under the profile card */
.public-profile-unlock {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff3ec 0%, #fff 60%, #eef3fb 100%);
  border: 1px solid rgba(247, 105, 34, 0.25);
  box-shadow: 0 6px 24px rgba(19, 15, 25, 0.06);
}

.public-profile-unlock__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #f94e10;
  color: #fff;
}

.public-profile-unlock__title {
  margin: 0 0 0.4rem;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #130f19;
}

.public-profile-unlock__text {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: #555;
}

.public-profile-unlock__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.public-profile-unlock__button {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  background: #f94e10;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.public-profile-unlock__button:hover,
.public-profile-unlock__button:focus-visible {
  background: #d9550f;
  color: #fff;
  text-decoration: none;
}

.public-profile-unlock__link {
  color: #130f19;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #f94e10;
  text-underline-offset: 4px;
}

@media (max-width: 575px) {
  .public-profile-unlock {
    flex-direction: column;
  }
}
