:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --profile-ink: #172033;
  --profile-muted: #5e6b7e;
  --profile-blue: #315efb;
  --profile-blue-dark: #2248c7;
  --profile-green: #147454;
  --profile-border: #dce4f2;
  --profile-surface: #ffffff;
  --profile-canvas: #f4f7fb;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--profile-canvas);
  color: var(--profile-ink);
}

body.public-profile-document {
  margin: 0;
  min-width: 320px;
}

.public-profile-document a {
  color: inherit;
}

.public-profile-skip {
  background: var(--profile-ink);
  color: #fff !important;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 10;
}

.public-profile-skip:focus {
  top: 12px;
}

.public-profile-bar {
  align-items: center;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--profile-border);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 68px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
}

.public-profile-bar a {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  text-decoration: none;
}

.public-profile-bar a:last-child {
  color: var(--profile-blue-dark);
  font-weight: 750;
  justify-self: end;
}

.public-profile-bar > span {
  color: var(--profile-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.public-tutor-profile {
  display: grid;
  gap: 42px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 44px 20px 72px;
}

.public-tutor-profile__hero {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 132px minmax(0, 1fr) minmax(210px, 260px);
}

.public-tutor-profile__avatar {
  background: var(--profile-blue);
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-size: 2.3rem;
  font-weight: 850;
  height: 132px;
  overflow: hidden;
  place-items: center;
  width: 132px;
}

.public-tutor-profile__avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.public-tutor-profile__intro > span {
  color: var(--profile-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-tutor-profile__intro h1 {
  font-size: 2.5rem;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}

.public-tutor-profile__intro > p {
  color: #526175;
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0;
}

.public-tutor-profile__intro ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.public-tutor-profile__intro li,
.public-tutor-profile__offerings footer span {
  color: var(--profile-muted);
  font-size: 0.92rem;
}

.public-tutor-profile__intro li::before {
  color: var(--profile-green);
  content: "✓";
  font-weight: 850;
  margin-right: 7px;
}

.public-tutor-profile__cta {
  align-items: stretch;
  display: grid;
  gap: 8px;
}

.public-tutor-profile__cta a,
.public-tutor-profile__cta .public-tutor-profile__preview-action,
.public-tutor-profile__offerings footer a {
  align-items: center;
  background: var(--profile-blue);
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.public-tutor-profile__cta a:hover,
.public-tutor-profile__offerings footer a:hover {
  background: var(--profile-blue-dark);
}

.public-tutor-profile__cta small {
  color: var(--profile-muted);
  line-height: 1.4;
}

.public-tutor-profile__cta > strong {
  background: #fff8e6;
  border-left: 3px solid #d89b20;
  color: #7a5310;
  padding: 12px 14px;
}

.public-tutor-profile__offerings,
.public-tutor-profile__details {
  display: grid;
  gap: 20px;
}

.public-tutor-profile__offerings > header h2,
.public-tutor-profile__offerings > header p,
.public-tutor-profile__details h2,
.public-tutor-profile__details p {
  margin: 0;
}

.public-tutor-profile__offerings > header p {
  color: var(--profile-muted);
  margin-top: 5px;
}

.public-tutor-profile__offerings > div {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.public-tutor-profile__offerings article {
  background: var(--profile-surface);
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.public-tutor-profile__offerings h3,
.public-tutor-profile__offerings article p {
  margin: 0;
}

.public-tutor-profile__offerings article p,
.public-tutor-profile__offerings article > span,
.public-tutor-profile__offerings article li {
  color: var(--profile-muted);
  line-height: 1.45;
}

.public-tutor-profile__offerings article > span {
  background: #edf3ff;
  border-radius: 5px;
  justify-self: start;
  padding: 5px 8px;
}

.public-tutor-profile__goals > strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.public-tutor-profile__offerings article ul {
  margin: 0;
  padding-left: 20px;
}

.public-tutor-profile__offerings footer {
  align-items: center;
  border-top: 1px solid #e6ebf3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 14px;
}

.public-tutor-profile__offerings footer a {
  margin-left: auto;
  min-height: 38px;
}

.public-tutor-profile__details {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

.public-tutor-profile__details > div,
.public-tutor-profile__details aside {
  display: grid;
  gap: 22px;
}

.public-tutor-profile__details aside {
  align-content: start;
  border-left: 3px solid #8ed8bc;
  padding-left: 18px;
}

.public-tutor-profile__details p {
  color: #526175;
  line-height: 1.7;
  margin-top: 8px;
  white-space: pre-line;
}

.public-tutor-profile__trust {
  align-items: start;
  background: #eef8f4;
  border-left: 3px solid #31a47a;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px 18px;
}

.public-tutor-profile__trust > span {
  color: var(--profile-green);
  font-weight: 900;
}

.public-tutor-profile__trust p {
  color: #46645a;
  line-height: 1.5;
  margin: 4px 0 0;
}

.public-profile-footer {
  align-items: center;
  border-top: 1px solid var(--profile-border);
  color: var(--profile-muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 20px 34px;
}

.public-profile-footer a {
  color: var(--profile-blue-dark);
  font-weight: 750;
}

.public-profile-not-found {
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  padding: 12vh 24px 64px;
  text-align: center;
}

.public-profile-not-found > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
}

.public-profile-not-found h1 {
  margin: 42px 0 12px;
  font-size: 2.5rem;
  line-height: 1.1;
}

.public-profile-not-found p {
  margin: 0 auto 30px;
  max-width: 520px;
  color: #5f6b7a;
  font-size: 1.08rem;
  line-height: 1.65;
}

.public-profile-not-found__action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 7px;
  background: #1456d9;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .public-tutor-profile__hero {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .public-tutor-profile__avatar {
    height: 110px;
    width: 110px;
  }

  .public-tutor-profile__cta {
    grid-column: 2;
    justify-self: start;
    width: min(100%, 280px);
  }

  .public-tutor-profile__details {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-tutor-profile__details aside {
    border-left: 0;
    border-top: 1px solid var(--profile-border);
    padding: 18px 0 0;
  }
}

@media (max-width: 700px) {
  .public-profile-bar {
    gap: 10px;
    grid-template-columns: 1fr auto;
    padding-inline: 14px;
  }

  .public-profile-bar > span {
    display: none;
  }

  .public-tutor-profile {
    gap: 30px;
    padding: 28px 14px 48px;
  }

  .public-tutor-profile__hero {
    align-items: start;
    gap: 14px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .public-tutor-profile__avatar {
    font-size: 1.5rem;
    height: 72px;
    width: 72px;
  }

  .public-tutor-profile__intro h1 {
    font-size: 1.7rem;
  }

  .public-tutor-profile__intro ul {
    display: grid;
  }

  .public-tutor-profile__cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .public-tutor-profile__offerings footer a {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .public-profile-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 14px;
  }
}
