/* GoGoSing guides: self-contained (independent from seo.css so SEO pages stay untouched) */
:root {
  --bg: #0e0e0e; --surface: #1a1a1a; --surface2: #242424;
  --gold: #d4af37; --text: #ececec; --muted: #9a9a9a; --line: #2c2c2c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: var(--surface2); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-size: 0.9em; color: #ffd97a;
}

/* header / footer */
header.site { border-bottom: 1px solid var(--line); background: rgba(14,14,14,.92); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
header.site .wrap { max-width: 980px; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand .bolt { color: var(--gold); }
nav.top { display: flex; gap: 18px; align-items: center; }
nav.top a { color: var(--muted); font-size: 14px; font-weight: 600; }
nav.top a:hover { color: #fff; text-decoration: none; }
nav.top a.open { color: #000; background: var(--gold); padding: 7px 14px; border-radius: 8px; }
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { max-width: 980px; }
footer .fine { margin-top: 8px; font-size: 12px; color: #666; }

/* index hero + groups */
.hero { padding: 56px 0 8px; }
.eyebrow { display: inline-block; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 2.5px; border: 1px solid rgba(212,175,55,.4); background: rgba(212,175,55,.1); padding: 4px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(30px, 5.5vw, 44px); line-height: 1.12; letter-spacing: -1px; margin: 18px 0 14px; color: #fff; }
.hero .sub { color: var(--muted); font-size: 17px; max-width: 600px; }
.group { margin-top: 44px; }
.group h2 { color: #fff; font-size: 22px; letter-spacing: -0.4px; }
.group .blurb { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
ul.toc { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
ul.toc li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
ul.toc li:first-child { border-top: none; }
ul.toc a { display: block; flex: 1; padding: 13px 18px; color: var(--text); font-weight: 600; font-size: 15px; }
ul.toc a:hover { color: var(--gold); text-decoration: none; background: rgba(212,175,55,.05); }
ul.toc span { color: #666; font-size: 12px; padding-right: 18px; white-space: nowrap; }

/* article */
main.article { padding-top: 40px; }
.crumbs { font-size: 13px; color: #666; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
.article h1 { font-size: clamp(26px, 4.5vw, 36px); line-height: 1.15; letter-spacing: -0.8px; color: #fff; }
.article .meta { color: #666; font-size: 13px; margin: 10px 0 26px; }
.article h2 { color: #fff; font-size: 21px; letter-spacing: -0.4px; margin: 34px 0 10px; }
.article p, .article ul, .article ol { margin-bottom: 14px; color: #cfcfcf; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article strong { color: #fff; }
.article em { color: #e8d9a0; font-style: italic; }

/* step lists */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 20px; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.5); color: var(--gold);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
ol.steps li::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
ol.steps li:last-child::after { display: none; }

/* callouts */
.tip, .warn { border-radius: 12px; padding: 14px 16px; margin: 20px 0; font-size: 14.5px; }
.tip { background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.3); }
.tip::before { content: "💡 "; }
.warn { background: rgba(239,83,80,.06); border: 1px solid rgba(239,83,80,.3); }
.warn::before { content: "⚠️ "; }

/* screenshots */
figure.shot { margin: 22px 0; }
figure.shot img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
figure.shot figcaption { color: #666; font-size: 12.5px; margin-top: 8px; text-align: center; }

/* 폰 캡처: 본문 폭 그대로면 세로 1500px를 넘겨 읽기 부담이 크다 → 좁게 고정 */
figure.shot.phone { margin: 0; }
figure.shot.phone img { width: 208px; max-width: 100%; border-radius: 16px; }
figure.shot.phone figcaption { max-width: 208px; text-align: left; font-size: 12px; line-height: 1.45; }

/* 폰 캡처 + 설명 나란히. 좁은 화면에서는 위아래로 쌓임 */
/* 세로 중앙 정렬: 설명이 짧을 때 폰 캡처 옆이 텅 비어 보이지 않게 */
.pair { display: flex; gap: 26px; align-items: center; margin: 24px 0 28px; }
.pair .pair-text { flex: 1; min-width: 0; }
.pair .pair-text > :last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .pair { flex-direction: column; gap: 16px; }
  figure.shot.phone img { width: 170px; }
}

/* misc */
.linkbox { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 14px 0; overflow-x: auto; }
.linkbox code { background: none; border: none; font-size: 15px; }
table.cmp { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14.5px; }
table.cmp th, table.cmp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.cmp th { color: var(--gold); font-size: 12.5px; letter-spacing: 0.6px; text-transform: uppercase; }
table.cmp td { color: #cfcfcf; }
.fine { color: #666; font-size: 12.5px; }

/* prev/next */
nav.pn { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; }
nav.pn a { max-width: 46%; }

@media (max-width: 560px) {
  nav.top { gap: 12px; }
  nav.top a { font-size: 13px; }
  ul.toc span { display: none; }
}
