/* v1 styles.css Docs·게시판·레이팅 원문 복사. 바꾼 곳 ① v3 본문 선택자 ② 셸 sticky 높이 ③ 목차·드로어 제거·strip 탭·문서 카드. */
/* 게시판 (난이도 추정 탭) — 박스 없이 가로줄만, hover 시 음영.
   selector 에 .__v3docs prefix — `.__v3docs li { margin: 4px 0 }` 의 specificity 를 이기기 위함. */
.__v3docs .__board_list {
  list-style: none; padding: 0; margin: 0;
}
.__v3docs .__board_item {
  margin: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 1px solid #2d323c;
  cursor: pointer;
  transition: background 0.12s;
}
.__v3docs .__board_item:hover { background: #232830; }
.__v3docs .__board_item.__pinned {
  border-left: 3px solid #ff6b9d;
  /* 기본 음영 없음 — pinned 표시는 좌측 핑크 줄 + .__pin_badge 로만 */
}
.__board_title { font-weight: 600; color: #f1f3f5; flex: 1; margin-right: 12px; }
.__board_title .__pin_badge { color: #ff6b9d; margin-right: 6px; font-size: 12px; }
.__board_date { color: #adb5bd; font-size: 12px; white-space: nowrap; }
.__board_pagination {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-top: 20px; color: #adb5bd; font-size: 14px;
}
.__board_pagination button {
  background: #343a40; color: #f1f3f5; border: 1px solid #495057; border-radius: 4px;
  padding: 6px 12px; cursor: pointer; font-size: 13px;
}
.__board_pagination button:hover { background: #495057; }
/* 난이도 추정 테이블 필터 — sticky (스크롤해도 상단 고정) */
.__rating_filters {
  position: sticky; top: 0;
  z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 0 12px;
  margin: 0 0 6px;
  background: #1a1a1a;
  border-bottom: 1px solid #2d323c;
  font-size: 13px;
  color: #ced4da;
}
.__rating_filters input[type="text"] {
  background: #2d2d2d; border: 1px solid #343a40; color: #e9ecef;
  padding: 5px 10px; border-radius: 4px; font-size: 13px; font-family: inherit;
  width: 160px;
}
.__rating_filters input[type="number"] {
  background: #2d2d2d; border: 1px solid #343a40; color: #e9ecef;
  padding: 5px 8px; border-radius: 4px; font-size: 13px; font-family: inherit;
  width: 60px;
}
.__rating_filters select {
  background: #2d2d2d; border: 1px solid #343a40; color: #e9ecef;
  padding: 5px 8px; border-radius: 4px; font-size: 13px; font-family: inherit;
}
.__rating_filters input:focus,
.__rating_filters select:focus {
  outline: none; border-color: #ff6b9d;
}
.__rating_filters label {
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; user-select: none;
}
.__rating_filters .__f_group {
  display: inline-flex; align-items: center; gap: 4px;
  color: #adb5bd;
}
.__rating_filters .__f_count {
  margin-left: auto;
  color: #ff6b9d; font-weight: 600; font-size: 12px;
}

/* 난이도 추정 — 모바일 (≤600px): 통합 모드 시 한 곡을 2 line grid 로 표시 + count 컬럼 숨김 */
@media (max-width: 600px) {
  .__rating_table.__view_integrated { display: block; }
  .__rating_table.__view_integrated thead { display: none; }
  .__rating_table.__view_integrated tbody { display: block; }
  .__rating_table.__view_integrated tr {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 1fr 1fr 1fr;
    grid-template-areas:
      "lv    diff  title title title"
      "zasa  zasa  ec    hc      exh";
    column-gap: 6px;
    row-gap: 2px;
    padding: 8px 4px;
    border-bottom: 1px solid #2d323c;
  }
  .__rating_table.__view_integrated td {
    border: none !important;
    padding: 2px 4px !important;
    font-size: 12px;
  }
  /* 컬럼 순서 (HTML td 순): 1 곡명 / 2 채보 / 3 LV / 4 zasa / 5 EC / 6 HC / 7 EXH / 8~10 counts */
  .__rating_table.__view_integrated td:nth-child(1) { grid-area: title; text-align: left; }
  .__rating_table.__view_integrated td:nth-child(2) { grid-area: diff;  text-align: left; }
  .__rating_table.__view_integrated td:nth-child(3) { grid-area: lv;    text-align: right;}
  .__rating_table.__view_integrated td:nth-child(4) { grid-area: zasa; }
  .__rating_table.__view_integrated td:nth-child(5) { grid-area: ec; }
  .__rating_table.__view_integrated td:nth-child(6) { grid-area: hc; }
  .__rating_table.__view_integrated td:nth-child(7) { grid-area: exh; }
  .__rating_table.__view_integrated td:nth-child(n+8) { display: none; }

  /* 분리 모드 — 1행: 곡명 / 채보 / LV, 2행: zasa / lamp / rating / count */
  .__rating_table.__view_split { display: block; }
  .__rating_table.__view_split thead { display: none; }
  .__rating_table.__view_split tbody { display: block; }
  .__rating_table.__view_split tr {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 1fr 1fr;
    grid-template-areas:
      "lv   diff  title  title"
      "zasa zasa  lamp  rating";
    column-gap: 6px;
    row-gap: 2px;
    padding: 8px 4px;
    border-bottom: 1px solid #2d323c;
  }
  .__rating_table.__view_split td {
    border: none !important;
    padding: 2px 4px !important;
    font-size: 12px;
  }
  /* 컬럼 순서 (HTML td 순): 1 곡명 / 2 채보 / 3 LV / 4 zasa / 5 lamp / 6 rating / 7 count */
  .__rating_table.__view_split td:nth-child(1) { grid-area: title; text-align: left; }
  .__rating_table.__view_split td:nth-child(2) { grid-area: diff;  text-align: left; }
  .__rating_table.__view_split td:nth-child(3) { grid-area: lv;    text-align: right;}
  .__rating_table.__view_split td:nth-child(4) { grid-area: zasa; }
  .__rating_table.__view_split td:nth-child(5) { grid-area: lamp; }
  .__rating_table.__view_split td:nth-child(6) { grid-area: rating; }
  .__rating_table.__view_split td:nth-child(7) { display: none; }
}
/* 난이도 추정 테이블 필터 영역 — 모달 안 sticky (스크롤해도 상단 고정).
   본문 padding 상단 36px 위쪽으로 stick (top: -36px 로 상쇄). */
.__rating_filters {
  position: sticky;
  top: -36px;
  z-index: 2;
  margin: 0 -28px 12px;
  padding: 10px 28px;
  background: #1a1a1a;
  border-bottom: 1px solid #2d323c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  color: #adb5bd;
}
.__rating_filters input[type="text"] {
  background: #2d2d2d; border: 1px solid #343a40; color: #e9ecef;
  padding: 5px 10px; border-radius: 4px; font-size: 13px; font-family: inherit;
  min-width: 160px;
}
.__rating_filters input[type="number"] {
  background: #2d2d2d; border: 1px solid #343a40; color: #e9ecef;
  padding: 5px 8px; border-radius: 4px; font-size: 13px; font-family: inherit;
  width: 70px;
}
.__rating_filters select {
  background: #2d2d2d; border: 1px solid #343a40; color: #e9ecef;
  padding: 5px 8px; border-radius: 4px; font-size: 13px; font-family: inherit;
}
.__rating_filters label {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  user-select: none; color: #ced4da;
}
.__rating_filters input[type="checkbox"] {
  accent-color: #ff6b9d;
  cursor: pointer;
}
.__rating_filters .__f_group {
  display: inline-flex; align-items: center; gap: 4px;
}
.__rating_filters .__f_count {
  margin-left: auto;
  color: #ff6b9d;
  font-weight: 600;
  font-size: 12px;
}

/* Docs pane 의 곡별 ★레이팅 추정 테이블 — 필터 + thead 를 페이지 스크롤 따라 상단 고정(sticky).
   (.__rating_filters 두 번째 정의가 모달용 top:-36px;margin:0 -28px 라 pane 에선 어긋남 → pane 셀렉터로 override) */
.__docs_pane .__rating_filters {
  position: sticky; top: 0; z-index: 5;
  margin: 0 0 12px; padding: 10px 0;
}
/* 난이도 추정 표 — 좌우 패딩을 없애 줄바꿈을 줄인다(상하 패딩은 공용 규칙 그대로). */
.__docs_pane .__rating_table td { padding-left: 0 !important; padding-right: 0 !important; }
/* 통합 보기(넓은 화면): EC/HC/EXH(5–7열)는 줄바꿈 금지, count(8–10열)는 최소 폭. */
@media (min-width: 601px) {
  .__docs_pane .__rating_table.__view_integrated th:nth-child(n+5):nth-child(-n+7),
  .__docs_pane .__rating_table.__view_integrated td:nth-child(n+5):nth-child(-n+7) { white-space: nowrap; overflow-wrap: normal; }
  .__docs_pane .__rating_table.__view_integrated th:nth-child(n+8):nth-child(-n+10),
  .__docs_pane .__rating_table.__view_integrated td:nth-child(n+8):nth-child(-n+10) { width: 1%; overflow-wrap: normal; }
  .__docs_pane .__rating_table.__view_integrated th:nth-child(n+8):nth-child(-n+10) { padding-left: 4px; padding-right: 4px; white-space: normal; }
  .__docs_pane .__rating_table.__view_integrated td:nth-child(n+8):nth-child(-n+10) { white-space: nowrap; }
}
/* 표 래퍼 — 평소(>600px)엔 overflow 없이(=조상 scrollport 없음) thead sticky 가 페이지 기준으로 동작.
   좁은 화면(≤600px)은 thead 가 숨겨지고(grid 카드) 가로 스크롤이 필요하므로 그때만 overflow-x:auto. */
.__rating_tablewrap { margin: 0 -4px; }
@media (max-width: 600px) { .__rating_tablewrap { overflow-x: auto; } }
.__docs_pane .__rating_table thead th {
  position: sticky;
  top: var(--rating-filters-h, 52px);
  z-index: 4;
  background: #1a1a1a;
}

/* strip 안에서는 공용 탭의 메인 패딩 상쇄·sticky를 중복 적용하지 않는다. */
.__v3docs_strip { padding: 0; border-bottom: 0; }
.__v3docs_strip .__v3c_pdtabs { position: static; max-width: var(--v3-content-max); margin: 0 auto; }
.__v3docs .__docs_layout, .__docs_pane { width: 100%; min-width: 0; }
.__docs_pane > *:first-child { margin-top: 0; }
.__v3docs .__board_list, .__v3docs .__docs_cards { list-style: none; margin: 0; padding: 0; }
.__v3docs .__docs_cards > li { min-width: 0; }
.__docs_pane .__board_title > .__docs_card {
  position: static;
  display: block;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.__docs_pane .__board_title > .__docs_card::after {
  content: "";
  position: absolute;
  inset: 0;
}
.__docs_pane .__board_item:focus-within { outline: 2px solid #ff8eb1; outline-offset: 2px; }
.__docs_pane .__board_item:has(> .__board_title > .__docs_card:focus-visible) { outline: 2px solid #ff8eb1; outline-offset: 2px; }
.__docs_back { display: inline-block; margin-bottom: 16px; }
.__docs_back:focus-visible { outline: 2px solid #ff8eb1; outline-offset: 2px; }
.__docs_document_links { margin-top: 32px; padding-top: 20px; border-top: 1px solid #343a40; min-width: 0; overflow-wrap: anywhere; }
.__docs_document_links ul { list-style: none; margin: 12px 0 0; padding: 0; }
.__docs_document_links li { min-width: 0; margin: 7px 0; overflow-wrap: anywhere; }
.__docs_document_links [aria-current="page"] { color: #adb5bd; }
.__docs_doclink:focus-visible { outline: 2px solid #ff8eb1; outline-offset: 2px; }
/* 셸 기준 높이에 Docs strip의 공용 32px 탭 높이를 더한다. */
.__docs_pane .__rating_filters { top: calc(var(--v3-sticky-top, 0px) + 32px); }
.__docs_pane .__rating_table thead th { top: calc(var(--v3-sticky-top, 0px) + 32px + var(--rating-filters-h, 52px)); }
/* v3 본문 타이포그래피·코드·표. 모바일에서도 명시적 닫기 버튼을 제공한다. */
.__docs_pane { line-height: 1.7; overflow-wrap: anywhere; }
.__docs_pane pre { overflow-x: auto; padding: 12px; background: var(--v3-bg, #16181d); cursor: pointer; }
.__docs_pane code { font-family: monospace; }
.__docs_pane table { border-collapse: collapse; width: 100%; }
.__docs_pane th, .__docs_pane td { padding: 8px 12px; border-bottom: 1px solid #2d323c; }
.__docs_pane a { color: #ff8eb1; }
