/* ===== 공개 정보 페이지 공통 스타일 — 앱(index.html)과 같은 디자인 토큰.
   라이트 "맑은 낮": 새초록빛 회색 바탕 + 잉크 차콜 + 결정석 오렌지.
   다크 "인게임 창": 어두운 남색 바탕 + 골드 강조(면 그림자에 금 1px 링). ===== */
:root {
  --ground: #F2F5F4;
  --surface: #FFFFFF;
  --surface-2: #EEF2F1;
  --line: #E3E9E7;
  --ink: #17201F;
  --ink-2: #4F5C5A;
  --mute: #5A6663;
  --gold-text: #A14B12;
  --gold: #E8742A;
  --panel-shadow: 0 1px 2px rgba(23, 32, 31, .06);
  /* 보스 티어 글자 색(금별·은별·동별·납별) */
  --tier-gold: #D99A00;
  --tier-silver: #8E9AAF;
  --tier-bronze: #B0703A;
  --tier-lead: #4A505C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E121B;
    --surface: #1A2131;
    --surface-2: #232C3F;
    --line: #2A3346;
    --ink: #ECEFF5;
    --ink-2: #A9B2C4;
    --mute: #8C96AA;
    --gold-text: #FFD45A;
    --gold: #F2C14E;
    --panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(242, 193, 78, .18);
    /* 보스 티어 글자 색(금별·은별·동별·납별) */
    --tier-gold: #FFD45A;
    --tier-silver: #C9D1DE;
    --tier-bronze: #E2A76F;
    --tier-lead: #8C96AA;
  }
}
/* §53-3 공개 페이지 제목은 Pretendard 굵게 — 메이플스토리 서체(420KB)는 앱에서만 쓴다(넥슨 서체 라이선스: 파일 수정·재배포 금지라 서브셋 대신 미사용) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--gold); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ===== 상단 바 ===== */
.site-header { background: var(--surface); box-shadow: var(--panel-shadow); }
.site-header-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  min-width: 0;
}
.site-name {
  flex: none;
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
/* 현재 페이지 메뉴 — gold 밑줄 */
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.site-dash {
  flex: none;
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-dash:hover { background: var(--surface-2); }
/* 모바일(≤560px) — 사이트 이름 + [대시보드 열기] 한 줄, 메뉴는 다음 줄 가로 스크롤(줄바꿈 없음·가로 넘침 없음) */
@media (max-width: 560px) {
  .site-header-in { padding: 8px 12px; gap: 2px 10px; }
  .site-name { font-size: 18px; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-dash { padding: 6px 12px; font-size: 12px; }
}

/* ===== 본문 한 열(최대 72ch) ===== */
.page {
  max-width: 72ch;
  margin: 0 auto;
  padding: 32px 16px 56px;
}
.page h1, .page h2 {
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.page h1 { font-size: 28px; margin: 0 0 14px; }
.page h2 { font-size: 20px; margin: 32px 0 10px; }
.page h3 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.page p { margin: 0 0 12px; }
.page ul, .page ol { margin: 0 0 12px; padding-left: 20px; }
.page li { margin: 4px 0; }
/* 본문 링크만 gold-text 강조 */
.page a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page a:hover { text-decoration: none; }
/* 표 — 줄무늬 없이 1px 선 */
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--surface-2); font-weight: 700; }
/* 코드·키(버튼) 이름 — surface-2 바탕 짧은 칩 */
.page code {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.page .note { color: var(--mute); font-size: 13px; }
/* 보스 티어 글자 색 클래스 — /bosses/ 표의 티어 이름 */
.tier-gold { color: var(--tier-gold); }
.tier-silver { color: var(--tier-silver); }
.tier-bronze { color: var(--tier-bronze); }
.tier-lead { color: var(--tier-lead); }

/* ===== 하단 바 ===== */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; line-height: 1.7; }
.site-footer-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 26px;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}
.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 16px;
  min-width: 0;
}
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; min-width: 0; }
.site-footer-links a { color: var(--ink-2); text-decoration: none; }
.site-footer-links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer-contact { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; color: var(--mute); min-width: 0; }
.site-footer-contact a { color: var(--ink-2); }
.site-footer-note { margin: 0; }