html,
body {
  max-width: 100%;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.profile-socials .social {
  margin: 0;
}

.social-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.social-embed-card {
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.social-embed-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.social-embed-head a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-embed-card .instagram-media,
.social-embed-card .tiktok-embed {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.social-fallback {
  display: block;
  padding: 28px 18px;
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.filter-tab {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 13px;
  background: transparent;
  color: inherit;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.filter-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.news .filter-tab.active {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.member-detail > *,
.member-detail > div,
.member-facts,
.member-pulse,
.member-pulse-grid {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1140px);
  }

  .brand {
    font-size: 1rem;
  }

  .brand span {
    margin-left: 4px;
    font-size: .5rem;
    letter-spacing: .11em;
  }

  .member-detail {
    grid-template-columns: 1fr;
    gap: 18px;
    overflow: hidden;
    padding: 16px;
  }

  .member-detail > img {
    width: min(64vw, 240px);
    margin: 0 auto;
  }

  .member-detail h3,
  .member-detail p {
    overflow-wrap: anywhere;
  }

  .member-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .member-facts span {
    max-width: 100%;
    white-space: normal;
  }

  .member-pulse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .member-pulse-grid a {
    width: auto;
  }

  .member-videos > h3 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .member-videos .item h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    overflow-wrap: break-word;
  }

  .social-embed-grid {
    grid-template-columns: 1fr;
  }
}

/* TikTok loads directly, without waiting for the third-party embed loader. */
.tiktok-profile-frame {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 560px;
  border: 0;
  background: #fff;
  border-radius: 8px;
}
.tiktok-embed-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .8rem;
}
.tiktok-embed-actions button,
.tiktok-embed-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 380px) {
  #sns .social-embed-card { padding: 10px; }
  #sns .social-embed-head { flex-wrap: wrap; }
}
