:root {
  --bg: #0f1117;
  --bg-2: #171a23;
  --card: #1c2029;
  --card-2: #232833;
  --line: #2b313d;
  --text: #e7eaf0;
  --muted: #8a93a6;
  --accent: #ff8a3d;
  --accent-2: #ffb700;
  --blue: #4a90ff;
  --good: #43d17a;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pad { padding: 20px; }

/* 헤더 */
.site-header {
  background: rgba(15,17,23,.9);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 58px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.logo span { color: var(--accent); }
.gnb { display: flex; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-item > a { display: block; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-item:hover > a, .nav-item.active > a { color: var(--text); }
.nav-item.active > a { color: var(--accent); }
.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 160px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: none;
  flex-direction: column; z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.nav-item.has-sub:hover .nav-drop { display: flex; }
.nav-drop a { color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.nav-drop a:hover { color: var(--text); background: var(--card-2); }
.nav-search { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.nav-search input { border: 0; background: transparent; color: var(--text); padding: 7px 14px; outline: none; width: 150px; font-size: 14px; }
.nav-search button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 12px; font-size: 14px; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); font-size: 22px; cursor: pointer; }

/* 히어로 */
.hero {
  padding: 56px 0 40px;
  background: radial-gradient(1200px 300px at 50% -40%, rgba(255,138,61,.18), transparent 70%);
  text-align: center;
}
.hero-title { font-size: 34px; font-weight: 800; margin: 0 0 8px; letter-spacing: -1px; }
.hero-title b { color: var(--accent); }
.hero-sub { color: var(--muted); margin: 0 0 24px; }
.search-box {
  display: flex; max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; padding: 6px;
}
.search-box input {
  flex: 1; border: 0; background: transparent; color: var(--text);
  font-size: 16px; padding: 10px 16px; outline: none;
}
.search-box button {
  border: 0; background: var(--accent); color: #1a1200; font-weight: 800;
  padding: 0 24px; border-radius: 999px; cursor: pointer; font-size: 15px;
}
.search-box button:hover { background: var(--accent-2); }
.popular { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.popular a {
  font-size: 13px; color: var(--muted); background: var(--card);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.popular a:hover { color: var(--text); border-color: var(--accent); }
.popular .rank-num { color: var(--accent); font-weight: 700; margin-right: 4px; }

/* 섹션 */
.section-title { font-size: 20px; font-weight: 700; margin: 40px 0 16px; }
.section-title .muted { font-size: 13px; font-weight: 400; margin-left: 8px; }

/* 랭킹 리스트 */
.ranking-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center;
  gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: var(--card-2); }
.rank-row .rk { font-weight: 800; color: var(--muted); text-align: center; }
.rank-row .rk.top { color: var(--accent); }
.rank-row .nm { font-weight: 700; }
.rank-row .sub { font-size: 12px; color: var(--muted); }
.rank-row .cp { font-weight: 700; color: var(--accent-2); }

/* 결과 영역 */
.result-area { padding-top: 24px; padding-bottom: 40px; }
.profile-top {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.char-visual {
  background:
    radial-gradient(130px 130px at 50% 46%, rgba(255,138,61,.24), transparent 70%),
    var(--bg-2);
  border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; overflow: hidden;
}
.char-visual img {
  width: 260px; height: 260px; transform: scale(1.35); transform-origin: 50% 50%;
  image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
}
.char-meta h2 { margin: 0 0 4px; font-size: 26px; font-weight: 800; }
.char-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.badge { font-size: 13px; background: var(--card-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 8px; }
.badge b { color: var(--accent); }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.meta-item { background: var(--bg-2); border-radius: 8px; padding: 12px; }
.meta-item .k { font-size: 12px; color: var(--muted); }
.meta-item .v { font-weight: 700; font-size: 16px; margin-top: 2px; }
.cp-hero { color: var(--accent-2) !important; }
.updated { font-size: 12px; color: var(--muted); margin-top: 12px; }
.exp-bar { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.exp-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* 능력치 / 장비 그리드 */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.stat-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.stat-line .sv { font-weight: 700; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.equip-item { display: flex; gap: 10px; align-items: center; background: var(--bg-2); border-radius: 8px; padding: 8px; }
.equip-item img { width: 40px; height: 40px; background: var(--card-2); border-radius: 6px; }
.equip-item .en { font-size: 12px; color: var(--muted); }
.equip-item .ei { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* 상태 */
.loading, .error-box { text-align: center; padding: 60px 20px; }
.error-box { color: var(--accent); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 16px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 탭 바 */
.tab-bar { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn {
  border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px;
  padding: 12px 18px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.sub-h { font-size: 14px; margin: 18px 0 10px; color: var(--text); }
.sub-h:first-child { margin-top: 0; }

/* 잠재 등급 색상 */
.g-legendary { --grade: #6ac700; }
.g-unique    { --grade: #ffb700; }
.g-epic      { --grade: #c760ff; }
.g-rare      { --grade: #4aa3ff; }
.pg { font-size: 11px; font-weight: 700; margin-top: 3px; color: var(--grade, var(--muted)); }
.equip-item .ei-body { min-width: 0; }
.equip-item .en .sf { color: var(--accent-2); font-weight: 800; }
.equip-item[data-equip] { cursor: pointer; border: 1px solid transparent; transition: border-color .12s; }
.equip-item[data-equip]:hover { border-color: var(--grade, var(--accent)); }

/* 심볼 */
.sym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sym-item { display: flex; gap: 10px; align-items: center; background: var(--bg-2); border-radius: 8px; padding: 8px 10px; }
.sym-item img { width: 40px; height: 40px; }
.sym-item .ei { font-size: 13px; font-weight: 600; }

/* 유니온 / 무릉 KPI */
.union-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.effect-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.effect { font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 6px; }

/* 모달 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  width: 100%; max-width: 420px; max-height: 85vh; overflow-y: auto; padding: 22px; position: relative;
}
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--card-2); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.modal-close:hover { color: var(--text); }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.modal-head img { width: 56px; height: 56px; background: var(--bg-2); border-radius: 8px; }
.modal-name { font-size: 18px; font-weight: 800; color: var(--grade, var(--text)); }
.modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.modal-tags .sf { color: var(--accent-2); font-weight: 800; }
.modal-tags .tag { font-size: 11px; background: var(--card-2); padding: 3px 8px; border-radius: 6px; color: var(--muted); }
.tot-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tot-opt { font-size: 12px; background: var(--bg-2); padding: 4px 10px; border-radius: 6px; }
.pot-block { background: var(--bg-2); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.pot-head { font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--grade, var(--muted)); border-left: 3px solid var(--grade, var(--line)); padding-left: 8px; }
.pot-line { font-size: 13px; padding: 3px 0 3px 11px; }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* 페이지 헤더 */
.page-head { padding: 30px 0 14px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.page-head h1 b { color: var(--accent); }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.page-body { padding-bottom: 50px; }

/* 세그먼트 필터/탭 */
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.seg button { border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: #1a1200; border-color: var(--accent); }
.filter-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 8px; }
.filter-row .fl { font-size: 13px; color: var(--muted); margin-right: 4px; }

/* 바로가기/도구 카드 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.link-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .12s, transform .12s; }
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card .ic { font-size: 26px; }
.link-card h3 { margin: 10px 0 4px; font-size: 17px; }
.link-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* 분포 바 (직업/월드 통계) */
.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; }
.bar-row .bl { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.bar-face { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); margin-right: 7px; flex: none; align-items: center; justify-content: center; }
.bar-face img { width: 26px; height: 26px; transform: scale(2.3); transform-origin: 50% 34%; image-rendering: -webkit-optimize-contrast; }
.bar-job { display: inline-flex; width: 28px; height: 28px; margin-right: 7px; flex: none; align-items: center; justify-content: center; }
.bar-job img { width: 28px; height: 28px; image-rendering: -webkit-optimize-contrast; }
.job-ic { display: inline-flex; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.job-ic img { width: 18px; height: 18px; }
.badge .job-ic { width: 18px; height: 18px; margin-right: 5px; }
.bar-track { height: 20px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.bar-track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; }
.bar-row .bv { font-size: 13px; color: var(--muted); text-align: right; }
.bar-row .bv b { color: var(--text); }

/* 포디움 (상위 3위 · 실제 캐릭터 렌더) */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; align-items: end; }
.podium-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; cursor: pointer; transition: transform .12s, border-color .12s; position: relative; }
.podium-card:hover { transform: translateY(-3px); }
.podium-card.p1 { border-color: var(--accent-2); background: linear-gradient(180deg, rgba(255,183,0,.12), var(--card)); padding-bottom: 24px; }
.podium-card.p2 { border-color: #9fb0c9; }
.podium-card.p3 { border-color: #c78b5a; }
.podium-rank { font-size: 18px; font-weight: 900; color: var(--accent-2); margin-bottom: 6px; }
.podium-card.p2 .podium-rank { color: #cfd8e6; } .podium-card.p3 .podium-rank { color: #e0a877; }
.podium-img { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; }
.podium-img img { width: 150px; height: 150px; transform: scale(1.45); transform-origin: 50% 50%; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.podium-card.p1 .podium-img { height: 172px; } .podium-card.p1 .podium-img img { width: 172px; height: 172px; }
.podium-name { font-weight: 800; font-size: 16px; }
.podium-val { margin-top: 6px; font-weight: 800; color: var(--accent-2); font-size: 14px; }

/* 월드 아이콘 */
.w-ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; image-rendering: -webkit-optimize-contrast; }
.w-ic-lg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 5px; }
.bar-row .bl .w-ic { width: 16px; height: 16px; vertical-align: -3px; }

/* 랭킹 행 아바타 */
.rk-namecell { display: flex; align-items: center; gap: 10px; }
.rk-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-2); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.rk-thumb img { width: 44px; height: 44px; transform: scale(1.5); transform-origin: 50% 46%; image-rendering: -webkit-optimize-contrast; }

/* 홈 랭킹 쇼케이스 */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* 랭킹 테이블 */
.rk-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rk-head, .rk-item { display: grid; align-items: center; gap: 12px; padding: 12px 16px; }
.rk-head { color: var(--muted); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.rk-item { border-bottom: 1px solid var(--line); cursor: pointer; }
.rk-item:last-child { border-bottom: 0; }
.rk-item:hover { background: var(--card-2); }
.rk-item.static { cursor: default; }
.rk-item.static:hover { background: transparent; }
.rk-rank { font-weight: 800; color: var(--muted); text-align: center; }
.rk-rank.top { color: var(--accent); font-size: 17px; }
.rk-name { font-weight: 700; }
.rk-sub { font-size: 12px; color: var(--muted); }
.rk-val { font-weight: 800; color: var(--accent-2); text-align: right; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.pager button { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .pg-now { color: var(--muted); align-self: center; font-size: 14px; }

/* KPI 카드 */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi .k { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 24px; font-weight: 800; margin-top: 4px; }
.kpi .v.hl { color: var(--accent-2); }

/* 시뮬레이터 */
.sim-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sim-stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.sim-star { font-size: 40px; font-weight: 900; color: var(--accent-2); margin: 6px 0; }
.sim-star small { font-size: 16px; color: var(--muted); font-weight: 600; }
.sim-msg { min-height: 24px; font-weight: 700; margin: 8px 0; }
.sim-msg.ok { color: var(--good); } .sim-msg.down { color: var(--accent); } .sim-msg.boom { color: #ff4d4d; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.sim-controls button { border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 800; cursor: pointer; }
.btn-primary { background: var(--accent); color: #1a1200; } .btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line) !important; }
.sim-stat { display: flex; justify-content: space-around; margin-top: 12px; font-size: 13px; }
.sim-stat b { display: block; font-size: 18px; color: var(--text); }
.sim-log { max-height: 220px; overflow-y: auto; text-align: left; font-size: 12px; }
.sim-log div { padding: 3px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; text-align: left; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: 15px; }
.pot-roll { margin-top: 14px; }
.pot-roll .line { background: var(--bg-2); border-radius: 6px; padding: 8px 12px; margin: 6px 0; font-size: 14px; }

/* 가이드 */
.doc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.doc-toc { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 4px; }
.doc-toc a { color: var(--muted); font-size: 14px; padding: 7px 12px; border-radius: 8px; }
.doc-toc a:hover { color: var(--text); background: var(--card); }
.doc article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; scroll-margin-top: 74px; }
.doc article h2 { margin: 0 0 12px; font-size: 20px; }
.doc article h2 .em { color: var(--accent); }
.doc article p, .doc article li { color: var(--text); font-size: 14px; line-height: 1.7; }
.doc article ul, .doc article ol { padding-left: 20px; margin: 8px 0; }
.doc article .tip { background: var(--bg-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; margin: 10px 0; font-size: 13px; }

/* 몬스터 스트립 (maplestory.io) */
.mob-strip { display: flex; gap: 22px; align-items: flex-end; justify-content: center; flex-wrap: wrap;
  background: radial-gradient(500px 120px at 50% 120%, rgba(255,138,61,.14), transparent 70%), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.mob-strip img { height: 60px; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }

/* 새소식 */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.news-item .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.news-item .tag { font-size: 11px; font-weight: 800; background: var(--accent); color: #1a1200; padding: 2px 8px; border-radius: 6px; }
.news-item .date { font-size: 12px; color: var(--muted); }
.news-item h3 { margin: 0 0 6px; font-size: 16px; }
.news-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* 즐겨찾기 */
.fav-btn { border: 1px solid var(--line); background: var(--card-2); color: var(--muted); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: 13px; }
.fav-btn.on { color: var(--accent-2); border-color: var(--accent-2); }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.empty a { color: var(--accent); }

@media (max-width: 860px) {
  .sim-wrap { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .profile-top { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 26px; }
  .nav-toggle { display: block; }
  .nav-search { display: none; }
  .gnb { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px; }
  .gnb.open { display: flex; }
  .nav-drop { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .bar-row { grid-template-columns: 100px 1fr 70px; }
}

/* ---------- 가이드 아티클 (content/guides/*.json) ---------- */
.guide-hub { margin: 8px 0 34px; }
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.guide-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: .16s;
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--card-2); }
.gc-thumb { aspect-ratio: 1200/630; overflow: hidden; background: var(--card-2); }
.gc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-body { padding: 14px 16px 16px; }
.gc-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.42; }
.gc-body p {
  margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-date { font-size: 11.5px; color: var(--muted); }

.article-wrap { max-width: 840px; }
.crumb { font-size: 12.5px; color: var(--muted); padding: 18px 0 6px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.article-title { font-size: clamp(22px, 4vw, 31px); font-weight: 800; line-height: 1.32; letter-spacing: -.7px; margin: 6px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 0 0 20px; }
.article-meta .src { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.article-hero { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 26px; }

.article-body { font-size: 15.5px; line-height: 1.85; color: #c9d0dd; }
.article-body h2 {
  font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.3px;
  margin: 38px 0 12px; padding-top: 18px; border-top: 1px solid var(--line);
}
.article-body p { margin: 0 0 16px; }
.article-body strong { color: var(--text); }
.article-body ul { padding-left: 20px; margin: 0 0 16px; }
.article-body li { margin-bottom: 6px; }

/* 코드가 렌더한 실측 데이터 표 — AI 출력이 아님을 시각적으로도 구분 */
.data-card {
  margin: 22px 0 26px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.data-card figcaption {
  padding: 11px 16px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--card);
}
.data-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-card th {
  text-align: left; padding: 9px 16px; color: var(--muted); font-weight: 600;
  font-size: 12px; border-bottom: 1px solid var(--line);
}
.data-card td { padding: 9px 16px; border-bottom: 1px solid rgba(43,49,61,.5); color: var(--text); }
.data-card tbody tr:last-child td { border-bottom: 0; }
.data-card td:first-child { color: var(--muted); }

.faq { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; margin: 0 0 11px; }
.faq h3 { margin: 0 0 7px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.faq p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.75; }

.article-cta { margin: 38px 0 10px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.article-cta p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-row a {
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.cta-row a:hover { border-color: var(--accent); color: var(--accent); }
.more-guides { margin: 44px 0 20px; }

@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 15px; }
  .data-card { overflow-x: auto; }
}
