/* KYUHYUN ARCHIVE — shared category-page styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

:root {
  /* padding 1rem × 2 + .menu-btn 2.5rem */
  --site-header-h: 4.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #fff;
  color: #171717;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* Page shell */
.page {
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  width: 100%;
  max-width: 430px;
}

.page--wide {
  /* profile / musical: md max-w-5xl */
}

.page--disco {
  /* discography / album: md 3xl, lg 5xl */
}

@media (min-width: 768px) {
  .page--wide {
    max-width: 64rem; /* 1024px */
  }

  .page--disco {
    max-width: 48rem; /* 768px */
  }
}

@media (min-width: 1024px) {
  .page--disco {
    max-width: 64rem; /* 1024px */
  }
}

/* Sticky header — below menu dim when open */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 1rem;
}

.site-title {
  margin: 0;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.site-title-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Menu button — elevated above dim while open */
.menu-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
}

body.menu-open .menu-btn {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 80;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.menu-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-burger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #000;
}

.menu-close {
  font-size: 28px;
  line-height: 1;
}

/* Dim backdrop — covers header + page */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Right side drawer */
.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(80vw, 380px);
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  padding: 4.5rem 1.5rem 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.side-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Editorial numbered nav */
.site-nav {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  gap: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-num {
  flex-shrink: 0;
  width: 1.5rem;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a3a3a3;
}

.menu-text {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #a3a3a3;
  transition: color 0.15s ease;
}

.menu-item:hover .menu-text {
  color: #525252;
}

.menu-item.is-current .menu-num,
.menu-item.nav-current .menu-num {
  color: #111;
}

.menu-item.is-current .menu-text,
.menu-item.nav-current .menu-text {
  color: #111;
  font-weight: 800;
}

.menu-arrow {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: #111;
}

.menu-item:not(.is-current):not(.nav-current) .menu-arrow {
  display: none;
}

/* Main / footer */
.site-main {
  padding: 0 1rem 3rem;
}

.site-main--profile {
  padding-top: 0.25rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .site-main--profile {
    padding-bottom: 7rem;
  }
}

.site-footer {
  padding: 0.5rem 1rem 2.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #737373;
}

.site-footer a:hover {
  color: #262626;
}

.site-footer-note {
  margin-top: 0.25rem !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  color: #a3a3a3 !important;
}

.site-footer-note a:hover {
  color: #404040;
}

/* Info table (profile / musical detail) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.625;
}

.info-table th {
  width: 92px;
  padding: 0.75rem 0.75rem 0.75rem 0;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.info-table td {
  padding: 0.75rem 0;
  font-weight: 500;
}

.info-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table .muted {
  font-weight: 400;
  color: #737373;
}

.info-table--compact th {
  width: 72px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.info-table--compact td {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

/* Debut — pipe text (also used for SNS country labels) */
.debut-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.debut-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  line-height: 1.45;
  font-size: 13px;
  color: #262626;
}

.debut-cat {
  flex-shrink: 0;
  display: inline-block;
  min-width: 3em;
  font-weight: 700;
  color: #111;
  text-align: left;
}

.debut-pipe {
  margin: 0 0.4rem;
  color: #cbd5e1;
  font-weight: 400;
}

.debut-detail {
  font-weight: 500;
  color: #334155;
}

/* Inline helpers used by content */
.inline-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.kyupiter-icon {
  height: 1.75rem;
  width: auto;
  max-height: 1.75rem;
  object-fit: contain;
}

.kyumae-icon {
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  object-fit: cover;
}

.link-underline:hover {
  text-decoration: underline;
}
