/* Profile-only layout refinements: independent of global navigation styles. */
.profile-page--ja .profile-ja-name {
  display: block;
  margin-top: .22em;
  font-size: .56em;
  font-weight: 750;
  letter-spacing: .025em;
  line-height: 1.4;
  -webkit-text-fill-color: #d9ecff;
  color: #d9ecff;
}
.profile-page--ja .profile-role {
  margin: 0 0 16px;
  color: #b8dbf5;
  font-size: clamp(.85rem, 1.8vw, 1rem);
  font-weight: 800;
  letter-spacing: .025em;
}
.profile-page--ja .hero h1 {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
  overflow-wrap: normal;
}
@media (max-width: 640px) {
  .profile-page .hero-inner {
    min-height: 0;
    padding: 30px 0 40px;
    align-content: start;
  }
  .profile-page .breadcrumbs {
    margin-bottom: 18px;
    font-size: .78rem;
  }
  .profile-page .hero .eyebrow {
    margin-bottom: 14px;
    padding: 7px 11px;
    font-size: .72rem;
    line-height: 1.35;
  }
  .profile-page .hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.92rem, 8vw, 2.45rem);
    line-height: 1.15;
    text-wrap: balance;
  }
  .profile-page .hero-copy {
    max-width: 38em;
    margin: 0;
    font-size: .93rem;
    line-height: 1.78;
    text-wrap: pretty;
  }
  .profile-page .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }
  .profile-page .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    font-size: .85rem;
    line-height: 1.35;
    text-align: center;
  }
  .profile-page--ja .hero h1 {
    font-size: clamp(2.1rem, 9.2vw, 2.6rem);
    margin-bottom: 6px;
  }
  .profile-page--ja .profile-ja-name {
    margin-top: .12em;
    font-size: .53em;
    white-space: nowrap;
  }
  .profile-page--ja .profile-role {
    margin-bottom: 15px;
    font-size: .83rem;
  }
  .profile-page--legacy .hero-actions .button:nth-child(3) {
    order: 2;
  }
  .profile-page--legacy .hero-actions .button:nth-child(2) {
    order: 3;
    grid-column: 1 / -1;
    min-height: 30px;
    padding: 3px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #d8ebff;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .profile-page--legacy .identity-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 16px;
    padding: 13px;
    border-radius: 14px;
  }
  .profile-page--legacy .identity-card p { font-size: .8rem; }
  .profile-page--legacy .meta-list { margin-top: 16px; }
}
@media (max-width: 360px) {
  .profile-page .hero-actions { gap: 8px; }
  .profile-page .hero-actions .button { font-size: .78rem; }
}
