/* frontend/panseo/identity.css — 판서. 프로필 레이아웃 + 가입 플로우 스타일.
 *
 * 규범 스펙: .superpowers/sdd/2026-08-15-panseo-community-core/panseo-src/app/identity.css
 * 무수정 이식본. (원본 파일을 한 줄도 고치지 않고 그대로 복사했다 — 아래 이 주석 머리말만 추가.)
 *
 * ⚠ 원본에서 이 시트 하나가 두 화면을 함께 담는다: `.profile-*` 뼈대(PublicProfile.tsx)와
 *   `.join-*` 모달(JoinFlow.tsx). 그래서 프로필 뷰만 쓰더라도 반드시 함께 링크해야 한다.
 *
 * ⚠ 캐스케이드: base.css(globals) → community.css → jobs.css → events.css → clips.css →
 *   profile.css → **identity.css** → readability.css(항상 마지막).
 */
/* Join flow */

.join-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  overflow: hidden;
  padding: 28px;
  place-items: center;
  background: rgba(15, 15, 14, 0.72);
  backdrop-filter: blur(5px);
}

.join-backdrop-dismiss {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.join-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: calc(100vh - 56px);
  max-height: calc(100svh - 56px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 44px 42px;
  border: 1px solid var(--ink);
  border-top: 5px solid var(--orange);
  background: var(--white);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
  scrollbar-color: var(--line-dark) transparent;
  scrollbar-width: thin;
}

.join-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--ink);
}

.join-brand,
.join-close {
  padding: 0;
  color: var(--ink);
}

.join-brand {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
}

.join-brand-dot {
  color: var(--orange-text);
}

.join-close {
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.join-close:hover {
  color: var(--orange-dark-text);
}

.join-progress {
  display: grid;
  grid-template-columns: auto minmax(42px, 1fr) auto;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.join-progress-item {
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.join-progress-item b {
  margin-right: 7px;
  font-size: 9px;
  font-weight: 800;
}

.join-progress-active {
  color: var(--ink);
}

.join-progress-active b,
.join-progress-done b {
  color: var(--orange-dark-text);
}

.join-progress-line {
  height: 1px;
  margin: 0 16px;
  background: var(--line);
}

.join-progress-line-active {
  background: var(--orange);
}

.join-step {
  padding-top: 39px;
}

.join-kicker {
  margin: 0 0 11px;
  color: var(--orange-dark-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.join-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 45px);
  font-weight: 850;
  letter-spacing: -0.064em;
  line-height: 1.13;
}

.join-title:focus {
  outline: 0;
}

.join-description {
  margin: 17px 0 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.join-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.join-role-option {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 76px;
  padding: 14px 17px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: color 140ms ease, background-color 140ms ease;
}

.join-role-option:hover {
  background: var(--orange-soft);
}

.join-role-option strong {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.join-role-selected,
.join-role-selected:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.join-role-number {
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.join-role-selected .join-role-number,
.join-role-selected .join-role-check {
  color: var(--orange);
}

.join-role-check {
  justify-self: end;
  color: var(--line-dark);
  font-size: 16px;
}

.join-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark-text);
  font-size: 11px;
  font-weight: 700;
}

.join-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.join-actions-split {
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.join-next,
.join-submit,
.join-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
}

.join-next,
.join-submit {
  min-width: 145px;
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.join-next span,
.join-submit span {
  margin-left: 18px;
  font-size: 16px;
  font-weight: 400;
}

.join-next:hover,
.join-submit:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.join-back {
  min-width: 82px;
  border-color: var(--control-line);
  background: transparent;
  color: var(--muted);
}

.join-back:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.join-form {
  display: flex;
  flex-direction: column;
}

.join-field {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 19px;
}

.join-description + .join-field {
  margin-top: 0;
}

.join-field label {
  display: flex;
  align-items: baseline;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.join-required,
.join-optional {
  margin-left: 7px;
  font-size: 9px;
  font-weight: 750;
}

.join-required {
  color: var(--orange-dark-text);
}

.join-optional {
  color: var(--faint);
}

.join-input,
.join-select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--control-line);
  border-radius: 0;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}

.join-input::placeholder {
  color: var(--faint);
}

.join-input:hover,
.join-select:hover {
  border-color: var(--muted);
}

.join-input:focus,
.join-select:focus {
  border-color: var(--ink);
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.join-input[aria-invalid="true"],
.join-select[aria-invalid="true"] {
  border-color: var(--orange-dark);
}

.join-help,
.join-count {
  margin-top: 6px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 500;
}

.join-count {
  position: absolute;
  right: 12px;
  bottom: 15px;
  margin: 0;
  padding-left: 7px;
  background: var(--paper);
}

.join-student-note {
  margin-top: 0;
  padding: 17px 18px 16px;
  border-top: 3px solid var(--orange);
  background: var(--block);
  color: var(--on-block);
}

.join-student-note-label {
  color: var(--orange-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.join-student-note p {
  margin: 7px 0 0;
  color: #c9c6bf;
  font-size: 11px;
  line-height: 1.65;
}

/* Public instructor profile */

.profile-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.profile-topbar {
  position: sticky;
  z-index: 45;
  top: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
}

.profile-topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
}

.profile-back,
.profile-share-top {
  width: max-content;
  padding: 7px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-back span {
  margin-right: 8px;
  color: var(--orange-dark-text);
  font-size: 15px;
}

.profile-back:hover,
.profile-share-top:hover {
  color: var(--ink);
}

.profile-wordmark {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
}

.profile-wordmark-dot {
  color: var(--orange-text);
}

.profile-share-top {
  justify-self: end;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}

.profile-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 110px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 49px;
  gap: 32px;
}

.profile-avatar {
  display: grid;
  width: 126px;
  height: 146px;
  place-items: center;
  border-top: 5px solid var(--orange);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.profile-identity {
  min-width: 0;
}

.profile-badges {
  display: flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 12px;
  gap: 8px;
}

.profile-verified,
.profile-subject {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 800;
}

.profile-verified {
  background: var(--orange);
  color: var(--on-orange);
}

.profile-subject {
  border: 1px solid var(--line-dark);
  color: var(--muted);
}

.profile-identity h1 {
  margin: 0;
  font-size: clamp(50px, 6vw, 72px);
  font-weight: 880;
  letter-spacing: -0.085em;
  line-height: 0.98;
}

.profile-role {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.profile-headline {
  max-width: 670px;
  margin: 22px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.4;
}

.profile-hero-actions {
  display: flex;
  align-items: stretch;
  padding-top: 37px;
  gap: 8px;
}

.profile-follow,
.profile-share {
  min-height: 43px;
  padding: 9px 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
}

.profile-follow {
  min-width: 99px;
  background: var(--ink);
  color: var(--on-ink);
}

.profile-follow:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-orange);
}

.profile-following,
.profile-following:hover {
  border-color: var(--orange);
  background: transparent;
  color: var(--orange-dark-text);
}

.profile-share {
  background: transparent;
  color: var(--ink);
}

.profile-share:hover {
  background: var(--white);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 70px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.profile-stats > div {
  display: flex;
  min-height: 83px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 22px;
  border-right: 1px solid var(--line-dark);
}

.profile-stats > div:first-child {
  padding-left: 0;
}

.profile-stats > div:last-child {
  border-right: 0;
}

.profile-stats strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.profile-stats span {
  margin-top: 3px;
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 80px;
}

.profile-content {
  min-width: 0;
}

.profile-section {
  padding: 0 0 68px;
  border-top: 2px solid var(--ink);
}

.profile-section + .profile-section {
  margin-top: 8px;
}

.profile-section-heading {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line-dark);
}

.profile-section-heading > span {
  color: var(--orange-dark-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.profile-section-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.profile-about-copy {
  padding: 29px 0 0 46px;
}

.profile-about-copy p {
  max-width: 680px;
  margin: 0 0 15px;
  color: var(--text-about);
  font-size: 15px;
  line-height: 1.9;
}

.profile-about-copy p:last-child {
  margin-bottom: 0;
}

.profile-timeline {
  margin: 0;
  padding: 0 0 0 46px;
  list-style: none;
}

.profile-timeline li {
  display: grid;
  grid-template-columns: 137px minmax(0, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 21px;
}

.profile-period {
  padding-top: 2px;
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-timeline strong {
  font-size: 14px;
  font-weight: 750;
}

.profile-timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-lecture-list {
  border-bottom: 1px solid var(--line-dark);
}

.profile-lecture {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.profile-lecture:last-child {
  border-bottom: 0;
}

.profile-lecture-number {
  padding-top: 2px;
  color: var(--orange-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.profile-lecture span {
  color: var(--orange-dark-text);
  font-size: 9px;
  font-weight: 750;
}

.profile-lecture h3 {
  margin: 4px 0 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.profile-lecture p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.profile-post-list {
  border-bottom: 1px solid var(--line-dark);
}

.profile-post {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto 23px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  gap: 12px;
}

.profile-post:last-child {
  border-bottom: 0;
}

.profile-post:hover {
  background: var(--paper);
}

.profile-post-category {
  color: var(--orange-dark-text);
  font-size: 9px;
  font-weight: 800;
}

.profile-post strong {
  font-size: 13px;
  font-weight: 730;
  line-height: 1.5;
}

.profile-post small {
  color: var(--faint);
  font-size: 9px;
  white-space: nowrap;
}

.profile-post-arrow {
  color: var(--orange-text);
  font-size: 17px;
}

.profile-sidebar {
  position: sticky;
  top: 98px;
}

.profile-side-section {
  padding: 0 0 28px;
  border-top: 2px solid var(--ink);
}

.profile-side-section + .profile-side-section {
  margin-top: 18px;
}

.profile-side-section h2 {
  margin: 0;
  padding: 15px 0 12px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-side-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-side-section li {
  position: relative;
  padding: 11px 0 11px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.profile-side-section li::before {
  position: absolute;
  top: 18px;
  left: 1px;
  width: 4px;
  height: 4px;
  background: var(--orange);
  content: "";
}

.profile-contact {
  padding-bottom: 0;
}

.profile-link-list {
  border-bottom: 1px solid var(--line-dark);
}

.profile-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 15px;
  align-items: center;
  min-height: 53px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  gap: 7px;
}

.profile-link:last-child {
  border-bottom: 0;
}

.profile-link:hover strong {
  color: var(--orange-dark-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-link > span:first-child {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.profile-link strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-link-arrow {
  color: var(--orange-text);
  font-size: 12px;
}

.profile-contact-note {
  margin: 9px 0 0;
  color: var(--faint);
  font-size: 8px;
}

.profile-side-note {
  margin-top: 36px;
  padding: 21px 21px 19px;
  border-top: 4px solid var(--orange);
  background: var(--block);
  color: var(--on-block);
}

.profile-side-note > span {
  color: var(--orange-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-side-note strong {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.profile-side-note p {
  margin: 10px 0 0;
  color: #aaa7a0;
  font-size: 9px;
  line-height: 1.65;
}

.profile-page button:focus-visible,
.profile-page a:focus-visible,
.join-modal button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 46px;
  }

  .profile-hero {
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 25px;
  }

  .profile-avatar {
    width: 108px;
    height: 130px;
  }

  .profile-hero-actions {
    flex-direction: column;
  }

  .profile-post {
    grid-template-columns: 66px minmax(0, 1fr) 23px;
  }

  .profile-post small {
    display: none;
  }
}

@media (max-width: 780px) {
  .join-backdrop {
    align-items: end;
    padding: 0;
    backdrop-filter: none;
  }

  .join-backdrop-dismiss {
    position: absolute;
    inset: 0;
  }

  .join-modal {
    width: 100%;
    max-height: 94vh;
    max-height: 94svh;
    padding: 0 20px 27px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: 0 -18px 55px rgba(0, 0, 0, 0.28);
  }

  .join-header {
    position: sticky;
    z-index: 3;
    top: 0;
    min-height: 62px;
    background: var(--white);
  }

  .join-brand {
    font-size: 24px;
  }

  .join-close {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  .join-progress {
    padding: 15px 0;
  }

  .join-progress-item {
    font-size: 9px;
  }

  .join-progress-item b {
    display: none;
  }

  .join-progress-line {
    margin: 0 11px;
  }

  .join-step {
    padding-top: 27px;
  }

  .join-kicker {
    margin-bottom: 8px;
  }

  .join-title {
    font-size: clamp(30px, 9.2vw, 37px);
  }

  .join-description {
    margin: 13px 0 23px;
    font-size: 11px;
  }

  .join-role-grid {
    grid-template-columns: 1fr;
  }

  .join-role-option {
    min-height: 57px;
    padding: 10px 14px;
  }

  .join-role-option strong {
    font-size: 14px;
  }

  .join-actions {
    margin-top: 20px;
  }

  .join-next,
  .join-submit {
    min-height: 44px;
  }

  .join-next {
    width: 100%;
  }

  .join-field {
    margin-top: 15px;
  }

  .join-input,
  .join-select {
    height: 47px;
    font-size: 13px;
  }

  .join-actions-split {
    margin-top: 23px;
  }

  .profile-topbar-inner,
  .profile-main {
    width: calc(100% - 28px);
  }

  .profile-topbar-inner {
    min-height: 58px;
  }

  .profile-wordmark {
    font-size: 23px;
  }

  .profile-share-top {
    font-size: 10px;
  }

  .profile-back {
    font-size: 0;
  }

  .profile-back span {
    margin: 0;
    font-size: 20px;
  }

  .profile-main {
    padding: 34px 0 76px;
  }

  .profile-hero {
    grid-template-columns: 75px minmax(0, 1fr);
    padding-bottom: 29px;
    gap: 8px 18px;
  }

  .profile-avatar {
    grid-row: 1 / span 3;
    width: 75px;
    height: 88px;
    border-top-width: 4px;
    font-size: 27px;
  }

  .profile-badges {
    grid-column: 2;
    grid-row: 1;
    min-height: 20px;
    margin-bottom: 8px;
    gap: 5px;
  }

  .profile-verified,
  .profile-subject {
    min-height: 20px;
    padding: 1px 6px;
    font-size: 8px;
  }

  .profile-identity h1 {
    grid-column: 2;
    grid-row: 2;
    font-size: clamp(39px, 12vw, 52px);
  }

  .profile-role {
    grid-column: 2;
    grid-row: 3;
    margin-top: 11px;
    font-size: 10px;
  }

  .profile-identity {
    display: contents;
  }

  .profile-headline {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.45;
  }

  .profile-hero-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 5;
    grid-template-columns: 1fr 1fr;
    padding-top: 2px;
    gap: 7px;
  }

  .profile-follow,
  .profile-share {
    width: 100%;
    min-height: 41px;
  }

  .profile-stats {
    margin-bottom: 46px;
  }

  .profile-stats > div {
    min-height: 70px;
    padding: 10px 9px;
  }

  .profile-stats > div:first-child {
    padding-left: 9px;
  }

  .profile-stats strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .profile-stats span {
    font-size: 7px;
  }

  .profile-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .profile-content {
    width: 100%;
  }

  .profile-section {
    padding-bottom: 48px;
  }

  .profile-section + .profile-section {
    margin-top: 0;
  }

  .profile-section-heading {
    grid-template-columns: 36px 1fr;
    min-height: 54px;
  }

  .profile-section-heading h2 {
    font-size: 15px;
  }

  .profile-about-copy {
    padding: 22px 0 0;
  }

  .profile-about-copy p {
    font-size: 13px;
    line-height: 1.82;
  }

  .profile-timeline {
    padding-left: 0;
  }

  .profile-timeline li {
    grid-template-columns: 94px minmax(0, 1fr);
    padding: 18px 0;
    gap: 14px;
  }

  .profile-period {
    font-size: 8px;
  }

  .profile-timeline strong {
    font-size: 12px;
  }

  .profile-lecture {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 19px 0;
  }

  .profile-lecture h3 {
    font-size: 17px;
  }

  .profile-lecture p {
    font-size: 11px;
  }

  .profile-post {
    grid-template-columns: 58px minmax(0, 1fr) 19px;
    min-height: 72px;
    gap: 8px;
  }

  .profile-post strong {
    font-size: 12px;
  }

  .profile-sidebar {
    position: static;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-top: 3px;
    gap: 30px 20px;
  }

  .profile-side-section + .profile-side-section {
    margin-top: 0;
  }

  .profile-contact,
  .profile-side-note {
    grid-column: 1 / -1;
  }

  .profile-side-note {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .join-modal {
    padding-right: 16px;
    padding-left: 16px;
  }

  .join-title br {
    display: none;
  }

  .join-role-option {
    grid-template-columns: 29px minmax(0, 1fr) 20px;
  }

  .join-back {
    min-width: 70px;
  }

  .join-submit {
    min-width: 135px;
  }

  .profile-headline {
    font-size: 17px;
  }

  .profile-stats strong {
    font-size: 11px;
  }

  .profile-timeline li {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .profile-sidebar {
    display: block;
  }

  .profile-side-section {
    margin-top: 26px;
  }

  .profile-sidebar > .profile-side-section:first-child {
    margin-top: 0;
  }

  .profile-side-note {
    margin-top: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-role-option {
    transition: none;
  }
}

/* Keep the readability pass stable when this stylesheet is lazy-loaded. */
.profile-stats { background: var(--surface-subtle); }
.profile-timeline li,
.profile-lecture,
.profile-post,
.profile-side-section li,
.profile-link { border-bottom-color: var(--line-strong); }
.profile-post { padding-right: 12px; padding-left: 12px; }
.profile-post:hover { background: var(--surface-subtle); box-shadow: inset 3px 0 0 var(--orange); }
.profile-period,
.profile-lecture-number,
.profile-lecture span,
.profile-post-category,
.profile-post small,
.profile-link > span:first-child,
.profile-contact-note,
.profile-side-note > span { font-size: 10px; }
.profile-timeline p,
.profile-lecture p,
.profile-side-section li,
.profile-role { font-size: 12px; }
.profile-link strong,
.profile-side-note p { font-size: 11px; }

@media (min-width: 1081px) {
  .profile-layout { gap: 52px; }
  .profile-sidebar { padding-left: 28px; border-left: 1px solid var(--line-strong); }
}

@media (max-width: 780px) {
  .profile-sidebar { padding-left: 0; border-left: 0; }
}
