/**
 * [아티스트]
 * - 역할: 목록 사이드 필터 + 카드 그리드 / 상세 프로필(레일·탭)
 * - 작성/수정일: 2026-08-07
 * - 수정일: 2026-08-08 (작가 상세 프로필)
 */

.an-ar-list {
  color: var(--title-color, #171717);
}

.an-ar-list .an-ar-filter__apply {
  display: none !important;
}

.an-ar-list.is-loading [data-an-ar-body] {
  opacity: 0.45;
  pointer-events: none;
}

/* [경로]
 * - 역할: 왼쪽 홈/제목, 오른쪽 RSS
 * - 작성/수정일: 2026-08-07
 */
.an-ar-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: var(--space-25, 24px);
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-crumb a {
  color: var(--text-color, #444);
  text-decoration: none;
}

.an-ar-crumb__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.an-ar-crumb__icon,
.an-ar-crumb__rss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.an-ar-crumb__icon i,
.an-ar-crumb__rss i {
  font-size: var(--fs-label, 14px);
  line-height: 1;
}

.an-ar-crumb__rss:hover {
  color: var(--title-color, #171717);
}

.an-ar-list__intro {
  margin-bottom: var(--space-40, 40px);
}

.an-ar-list__title {
  margin: 0 0 var(--space-10, 10px);
  font-size: var(--fs-h3, 28px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
  color: var(--title-color, #171717);
}

.an-ar-list__desc {
  margin: 0;
  max-width: 640px;
  font-size: var(--fs-body, 15px);
  color: var(--text-color, #444);
  line-height: 1.7;
}

.an-ar-list__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-40, 40px);
  align-items: start;
}

/* Sidebar */
.an-ar-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100dvh - 124px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  padding-bottom: 24px;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.an-ar-sidebar::-webkit-scrollbar {
  width: 4px;
}

.an-ar-sidebar::-webkit-scrollbar-thumb {
  background: var(--divider-color, #ddd);
  border-radius: var(--radius-pill, 999px);
}

.an-ar-sidebar__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-20, 20px);
}

.an-ar-sidebar__close {
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-h5, 20px);
  cursor: pointer;
}

.an-ar-filter + .an-ar-filter {
  margin-top: var(--space-30, 30px);
  padding-top: var(--space-25, 24px);
  border-top: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-filter__title {
  margin: 0 0 14px;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
  color: var(--title-color, #171717);
}

.an-ar-filter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background: var(--white-color, #fff);
}

.an-ar-filter__search i {
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-body, 16px);
}

.an-ar-filter__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  outline: none;
}

.an-ar-filter__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.an-ar-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-label, 14px);
  color: var(--text-color, #444);
}

.an-ar-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-color, #171717);
}

.an-ar-filter__more {
  margin-top: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-ar-filter__actions {
  display: grid;
  gap: 10px;
  margin-top: var(--space-30, 30px);
}

.an-ar-filter__actions .primary-btn2,
.an-ar-filter__actions .secondary-btn {
  width: 100%;
  justify-content: center;
}

.an-ar-sidebar__backdrop {
  display: none;
}

/* Main */
.an-ar-main__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-15, 16px);
  margin-bottom: var(--space-25, 24px);
}

.an-ar-main__count {
  margin: 0;
  font-size: var(--fs-label, 14px);
  color: var(--text-color, #444);
}

.an-ar-main__count strong {
  color: var(--title-color, #171717);
  font-weight: 700;
}

.an-ar-main__count-all {
  color: var(--muted-color, #7c7c7c);
}

.an-ar-main__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.an-ar-main__filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background: var(--white-color, #fff);
  color: var(--title-color, #171717);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  cursor: pointer;
}

.an-ar-sort select {
  height: 42px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background-color: var(--white-color, #fff);
  color: var(--title-color, #171717);
  font-size: var(--fs-caption, 12px);
  font-weight: 500;
}

.an-ar-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
}

.an-ar-view-toggle button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--white-color, #fff);
  color: var(--muted-color, #7c7c7c);
  cursor: pointer;
}

.an-ar-view-toggle button.is-active {
  /* [보기 토글] 라이트 활성 톤다운 (CTA보다 약한 칩) — 작성/수정일: 2026-08-08 */
  background: var(--chip-color, #ececec);
  color: var(--title-color, #171717);
}

/* Grid cards */
.an-ar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.an-ar-grid.is-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.an-ar-card {
  min-width: 0;
  background: var(--white-color, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  /* border-radius: var(--radius-md, 10px); */
  overflow: visible;
}

/* [목록] 리스트형: 카드 보더 대신 구분선 — 작성/수정일: 2026-08-12 */
.an-ar-grid.is-list .an-ar-card {
  border: 0;
  border-bottom: 1px solid var(--border-color, #e5e5e5);
  background: transparent;
}

.an-ar-grid.is-list .an-ar-card:last-child {
  border-bottom: 0;
}

.an-ar-grid.is-list .an-ar-card__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.an-ar-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.an-ar-card__banner {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* border-radius: var(--radius-md, 10px) var(--radius-md, 10px) 0 0; */
  background: var(--section-bg-color, #f5f5f5);
}

.an-ar-card__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-ar-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    var(--section-bg-color, #f5f5f5) 0%,
    var(--chip-color, #ececec) 100%
  );
}

.an-ar-card__avatar {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: -36px auto 0;
  border: 3px solid var(--white-color, #fff);
  border-radius: var(--radius-full, 999px);
  overflow: hidden;
  background: var(--section-bg-color, #f5f5f5);
  box-shadow: 0 0 0 1px var(--border-color, #e5e5e5);
}

/* [목록] 리스트형: 좌측 원형 프로필 — 작성/수정일: 2026-08-12 */
.an-ar-grid.is-list .an-ar-card__avatar {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.an-ar-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-ar-card__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--fs-icon, 22px);
  font-weight: 700;
  color: var(--muted-color, #7c7c7c);
  background: var(--chip-color, #ececec);
}

.an-ar-card__body {
  padding: 14px 16px 28px;
  text-align: center;
}

.an-ar-grid.is-list .an-ar-card__body {
  flex: 1;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.an-ar-card__name {
  margin: 0;
  color: var(--title-color, #171717);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ar-card__name-en {
  margin: 6px 0 0;
  font-size: var(--fs-caption, 12px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted-color, #7c7c7c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ar-card__meta {
  margin: 8px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

/* [좋아요] 카드 stats — 전시 목록과 동일. 아이콘 fs-label · 숫자 fs-caption — 작성/수정일: 2026-08-20 */
.an-ar-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px 18px;
  margin-top: -8px;
}

.an-ar-grid.is-list .an-ar-card__stats {
  justify-content: flex-start;
  padding: 0 0 16px;
  margin-top: -4px;
}

.an-ar-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1;
  color: var(--muted-color);
  cursor: default;
}

button.an-ar-card__stat {
  cursor: pointer;
}

button.an-ar-card__stat:hover,
button.an-ar-card__stat.is-active {
  color: var(--title-color);
}

.an-ar-card__stat i {
  display: inline-block;
  width: 1em;
  line-height: 1;
  text-align: center;
}

.an-ar-card__stat em {
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: inherit;
  line-height: 1;
  color: var(--title-color);
  font-variant-numeric: tabular-nums;
}

/* [목록] 리스트형 작품 썸네일(최대 3) — 작성/수정일: 2026-08-12 */
.an-ar-card__thumbs {
  display: none;
}

.an-ar-grid.is-list .an-ar-card__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.an-ar-card__thumb {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--section-bg-color, #f5f5f5);
}

/* [아티스트 Empty] 평문 플레이스홀더만 — .an-empty와 겹치면 전역 DS 유지 — 작성/수정일: 2026-08-15 */
.an-ar-empty:not(.an-empty) {
  padding: 64px 16px;
  text-align: center;
  color: var(--muted-color, #7c7c7c);
  border: 1px dashed var(--border-color, #e5e5e5);
  border-radius: var(--radius-md, 10px);
}

.an-ar-empty p {
  margin: 0 0 16px;
  font-size: var(--fs-body, 15px);
}

.an-ar-list__paging {
  margin-top: var(--space-40, 40px);
}

@media (max-width: 1199.98px) {
  .an-ar-list__layout {
    grid-template-columns: 1fr;
  }

  .an-ar-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal, 1000);
    width: min(360px, 88vw);
    /* [필터 드로어] 큰 뷰포트(100%/dvh) 대신 보이는 높이 — 작성/수정일: 2026-08-20 */
    height: 100svh;
    max-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px calc(48px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: var(--white-color, #fff);
    transform: translateX(-105%);
    transition: transform var(--duration-menu, 0.3s) var(--ease-menu, ease);
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.16));
  }

  .an-ar-list.is-filter-open .an-ar-sidebar {
    transform: translateX(0);
  }

  .an-ar-sidebar__head {
    display: flex;
  }

  .an-ar-main__filter-btn {
    display: inline-flex;
    margin-right: auto;
  }

  /* [모바일 툴바]
   * - 역할: 필터 왼쪽, 정렬·보기 오른쪽
   * - 작성/수정일: 2026-08-07
   */
  .an-ar-main__tools {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .an-ar-sidebar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal, 1000) - 1);
    border: 0;
    background: rgba(23, 23, 23, 0.45);
  }

  .an-ar-sidebar__backdrop[hidden] {
    display: none;
  }

  .an-ar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .an-ar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-ar-grid.is-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .an-ar-list__title {
    font-size: var(--fs-h4, 24px);
  }

  .an-ar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* [목록] 모바일 리스트형 — 작성/수정일: 2026-08-12 */
  .an-ar-grid.is-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .an-ar-grid.is-list .an-ar-card__link {
    gap: 12px;
    padding: 14px 0;
  }

  .an-ar-grid.is-list .an-ar-card__avatar {
    width: 56px;
    height: 56px;
  }

  .an-ar-grid.is-list .an-ar-card__body {
    padding: 0;
  }

  .an-ar-card__thumb {
    width: 44px;
    height: 44px;
  }

  .an-ar-card__avatar {
    width: 60px;
    height: 60px;
    margin-top: -30px;
  }

  .an-ar-card__body {
    padding: 12px 12px 22px;
  }
}

/* =========================================================
 * [작가 상세 프로필]
 * - 역할: sticky 레일 + 탭 패널 (소개/작품/전시/경력)
 * - 작성/수정일: 2026-08-08
 * ========================================================= */
.an-ar-profile {
  color: var(--title-color, #171717);
}

.an-ar-profile__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-40, 40px);
  align-items: start;
}

.an-ar-profile__rail {
  position: sticky;
  top: 100px;
}

.an-ar-profile__identity {
  text-align: left;
}

.an-ar-profile__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
  border: 1px solid var(--border-color, #e5e5e5);
  margin-bottom: var(--space-20, 20px);
}

.an-ar-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-ar-profile__avatar-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__name {
  margin: 0;
  font-size: var(--fs-h4, 24px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
  line-height: 1.3;
}

.an-ar-profile__name-en {
  margin: 6px 0 0;
  font-size: var(--fs-body, 15px);
  font-style: italic;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__meta {
  margin: 10px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__tagline {
  margin: 14px 0 0;
  font-size: var(--fs-body, 15px);
  line-height: 1.6;
  color: var(--text-color, #444);
}

.an-ar-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: var(--space-25, 24px) 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-color, #e5e5e5);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-profile__stats div {
  text-align: center;
}

.an-ar-profile__stats dt {
  margin: 0;
  font-size: var(--fs-xs, 11px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__stats dd {
  margin: 4px 0 0;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
}

.an-ar-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-25, 24px);
}

/* [아티스트 액션] 갤러리 an-gl-action과 동일 — 작성/수정일: 2026-08-16 */
.an-ar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm, 6px);
  font-family: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.an-ar-action i {
  font-size: 16px;
  line-height: 1;
}

.an-ar-action--follow {
  border: 1px solid var(--primary-color, #171717);
  background: var(--primary-color, #171717);
  color: var(--white-color, #fff);
}

.an-ar-action--follow:hover {
  opacity: 0.88;
}

.an-ar-action--follow.is-on {
  background: transparent;
  color: var(--title-color, #171717);
  border-color: var(--border-color, #eeeeee);
}

.an-ar-action--share {
  border: 1px solid var(--border-color, #eeeeee);
  background: var(--surface-color, #fff);
  color: var(--title-color, #171717);
}

.an-ar-action--share:hover {
  background: var(--chip-color, #f2f2f2);
}

.an-ar-action--share.is-liked,
.an-ar-action--share.is-active {
  background: var(--surface-color, #fff);
  border-color: var(--border-color, #eeeeee);
  color: var(--title-color, #171717);
}

html.dark .an-ar-action--follow,
body.dark .an-ar-action--follow {
  background: var(--cta-surface, #2a2a2a);
  border-color: var(--border-color, #333);
  color: var(--on-dark, #f5f5f5);
}

html.dark .an-ar-action--follow.is-on,
body.dark .an-ar-action--follow.is-on {
  background: transparent;
  color: var(--title-color, #f5f5f5);
}

html.dark .an-ar-action--share,
body.dark .an-ar-action--share {
  background: var(--surface-color, #1c1c1c);
  border-color: var(--border-color, #333);
  color: var(--title-color, #f5f5f5);
}

html.dark .an-ar-action--share.is-liked,
html.dark .an-ar-action--share.is-active,
body.dark .an-ar-action--share.is-liked,
body.dark .an-ar-action--share.is-active {
  background: var(--surface-color, #1c1c1c);
  border-color: var(--border-color, #333);
  color: var(--title-color, #f5f5f5);
}

.an-ar-profile__manage {
  position: relative;
  margin-top: 16px;
}

.an-ar-profile__manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--title-color, #171717);
  cursor: pointer;
}

.an-ar-profile__manage-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 120px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white-color, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.an-ar-profile__manage-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--title-color, #171717);
  text-decoration: none;
  font-size: var(--fs-label, 14px);
}

.an-ar-profile__manage-menu a:hover {
  background: var(--light-color, #f5f5f5);
}

.an-ar-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-20, 20px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--duration-base, 0.2s);
}

.an-ar-profile__back i {
  font-size: var(--fs-h6, 18px);
  line-height: 1;
}

.an-ar-profile__back:hover {
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__back:hover span {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.an-ar-profile__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: var(--space-30, 30px);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-profile__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 2px 14px;
  color: var(--muted-color, #7c7c7c);
  text-decoration: none;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
}

.an-ar-profile__tab.is-active {
  color: var(--title-color, #171717);
}

.an-ar-profile__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--title-color, #171717);
}

.an-ar-profile__tab-count {
  font-size: var(--fs-xs, 11px);
  font-weight: 500;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__hero {
  margin: 0 0 var(--space-30, 30px);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
}

.an-ar-profile__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.an-ar-profile__block {
  margin-bottom: var(--space-40, 40px);
}

.an-ar-profile__block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.an-ar-profile__block-head .an-ar-profile__block-title {
  margin: 0;
}

.an-ar-profile__block-head a {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  text-decoration: none;
}

.an-ar-profile__block-head a:hover {
  color: var(--title-color, #171717);
}

.an-ar-profile__block-title {
  margin: 0 0 14px;
  font-size: var(--fs-h5, 18px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
}

/* [작가소개] gurumi 본문(.g5-gurumi-view)은 에디터 CSS가 전담 — 스킨 타이포 제외 — 작성/수정일: 2026-08-12 */
.an-ar-profile__prose:not(.g5-gurumi-view) {
  font-size: var(--fs-body, 15px);
  line-height: 1.75;
  color: var(--text-color, #444);
}

.an-ar-profile__prose:not(.g5-gurumi-view) img {
  max-width: 100%;
  height: auto;
}

.an-ar-profile__empty {
  margin: 0;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-body, 15px);
}

.an-ar-profile__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-ar-profile__keywords li {
  padding: 6px 12px;
  font-size: var(--fs-caption, 12px);
  color: var(--text-color, #444);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
}

.an-ar-profile__works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.an-ar-profile__works-grid.is-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.an-ar-profile__work {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.an-ar-profile__work-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
  border-radius: var(--radius-sm, 6px);
}

.an-ar-profile__work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.an-ar-profile__work:hover .an-ar-profile__work-thumb img {
  transform: scale(1.03);
}

.an-ar-profile__work-title {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ar-profile__work-meta {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ar-profile__ex-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-ar-profile__ex-list li + li {
  border-top: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-profile__ex-list a {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
}

.an-ar-profile__ex-list a:hover strong {
  text-decoration: underline;
}

.an-ar-profile__ex-status {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  border-radius: 4px;
  background: var(--light-color, #f5f5f5);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__ex-status.is-ongoing {
  background: rgba(23, 23, 23, 0.08);
  color: var(--title-color, #171717);
}

.an-ar-profile__ex-status.is-upcoming {
  background: rgba(23, 23, 23, 0.04);
}

.an-ar-profile__ex-meta {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__career-sec {
  margin-bottom: var(--space-25, 24px);
}

.an-ar-profile__career-sec h3 {
  margin: 0 0 8px;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
}

.an-ar-profile__career-sec.is-full {
  margin-bottom: var(--space-40, 40px);
}

.an-ar-profile__career-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-ar-profile__career-sec li {
  position: relative;
  padding: 6px 0 6px 14px;
  font-size: var(--fs-body, 15px);
  line-height: 1.55;
  color: var(--text-color, #444);
}

.an-ar-profile__career-sec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-color, #7c7c7c);
}

.an-ar-profile__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: var(--space-25, 24px);
  border-top: 1px solid var(--border-color, #e5e5e5);
}

/* [프로필 CTA]
 * - 역할: primary/secondary 위계 + 아이콘
 * - 작성/수정일: 2026-08-08
 */
.an-ar-profile__cta-lead {
  margin: 0;
  font-size: var(--fs-body, 15px);
  line-height: 1.5;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.an-ar-profile__cta-actions .primary-btn2,
.an-ar-profile__cta-actions .secondary-btn {
  gap: var(--space-6, 6px);
  padding: 10px 14px;
  font-size: var(--fs-label, 14px);
}

.an-ar-profile__cta-actions .secondary-btn {
  border-color: var(--border-color, #e5e5e5);
  color: var(--text-color, #444);
}

.an-ar-profile__cta-actions .secondary-btn:hover {
  border-color: var(--primary-color, #171717);
  background-color: var(--primary-color, #171717);
  color: var(--white-color, #fff);
}

.an-ar-profile__cta-actions i {
  font-size: var(--fs-label, 14px);
  line-height: 1;
}

/* [작품 무한스크롤]
 * - 역할: 더보기 + 센티널
 * - 작성/수정일: 2026-08-08
 */
.an-ar-profile__works-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-30, 30px);
}

.an-ar-profile__works-status {
  margin: 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__works-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

html.dark .an-ar-profile__avatar,
body.dark .an-ar-profile__avatar,
html.dark .an-ar-profile__manage-btn,
body.dark .an-ar-profile__manage-btn,
html.dark .an-ar-profile__manage-menu,
body.dark .an-ar-profile__manage-menu,
html.dark .an-ar-profile__keywords li,
body.dark .an-ar-profile__keywords li {
  border-color: var(--border-color, #333);
}

html.dark .an-ar-profile__manage-menu,
body.dark .an-ar-profile__manage-menu {
  background: var(--white-color, #1a1a1a);
}

@media (max-width: 991.98px) {
  .an-ar-profile__layout {
    grid-template-columns: 1fr;
    gap: var(--space-30, 30px);
  }

  .an-ar-profile__rail {
    position: static;
  }

  .an-ar-profile__identity {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }

  .an-ar-profile__avatar {
    width: 88px;
    height: 88px;
    margin: 0;
    grid-row: 1 / span 3;
  }

  .an-ar-profile__name {
    font-size: var(--fs-h5, 18px);
  }

  .an-ar-profile__stats {
    margin-top: 18px;
  }

  .an-ar-profile__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .an-ar-profile__actions .an-ar-action {
    width: auto;
    flex: 1 1 calc(50% - 5px);
  }

  .an-ar-profile__works-grid,
  .an-ar-profile__works-grid.is-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .an-ar-profile__tabs {
    gap: 4px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .an-ar-profile__tab {
    white-space: nowrap;
  }

  .an-ar-profile__actions .an-ar-action {
    flex: 1 1 100%;
  }

  .an-ar-profile__cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .an-ar-profile__cta-actions .primary-btn2,
  .an-ar-profile__cta-actions .secondary-btn {
    width: 100%;
  }
}
