/* ==========================================================================
   chrome.css — 헤더(로고 · 카테고리 칩 · 검색) · 드로어 · 푸터 · to-top · AdSlot
   개인 블로그: 유틸바/GNB 그라데이션 바 없음. 단일 64px 헤더 + (모바일) 칩 스크롤.
   ========================================================================== */

/* ---------- 헤더 ---------- */
.gn-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18, 20, 24, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.gn-header__row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

/* 로고 — 민트 점 + 텍스트 */
.gn-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.gn-logo__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}
.gn-logo__mark {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
}
.gn-logo__sub {
  margin-left: 2px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.gn-logo:hover .gn-logo__mark { color: var(--mint-2); }

/* 카테고리 칩 */
.gn-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.gn-chips { display: flex; align-items: center; gap: 6px; }
.gn-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.gn-chip:hover { background: var(--surface-2); color: var(--ink); }
.gn-chip.is-active { background: var(--mint-soft); color: var(--mint); }

/* 우측 유틸 */
.gn-utils { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.gn-utils__about { color: var(--ink-3); font-size: 13.5px; font-weight: 700; padding: 0 6px; }
.gn-utils__about:hover { color: var(--mint); }
.gn-search {
  display: flex;
  align-items: center;
  height: 38px;
  width: 200px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: border-color .15s, width .2s;
}
.gn-search:focus-within { border-color: var(--mint); width: 240px; }
.gn-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.gn-search input:focus { outline: none; }
.gn-search button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); }
.gn-search button:hover { color: var(--mint); background: var(--mint-soft); }
.gn-search svg { width: 17px; height: 17px; }

.gn-iconbtn {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
}
.gn-iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.gn-iconbtn svg { width: 22px; height: 22px; }

/* 모바일 검색 바 */
.gn-msearch {
  display: none;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 10px 0;
}
.gn-msearch.is-open { display: block; }
.gn-msearch .gn-search { width: 100%; }
.gn-msearch .gn-search:focus-within { width: 100%; }

/* 모바일 칩 스크롤 */
.gn-mchips { display: none; border-top: 1px solid var(--line-soft); }
.gn-chips--scroll {
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.gn-chips--scroll::-webkit-scrollbar { display: none; }
.gn-chips--scroll li { flex: 0 0 auto; }
.gn-chips--scroll .gn-chip { height: 32px; padding: 0 13px; font-size: 13.5px; background: var(--surface-2); }
.gn-chips--scroll .gn-chip.is-active { background: var(--mint); color: #121418; }

@media (max-width: 1023px) {
  .gn-nav { display: none; }
  .gn-mchips { display: block; }
  .gn-utils__about { display: none; }
  .gn-header__row { gap: 12px; justify-content: space-between; }
  .gn-burger { display: grid; }
}
@media (max-width: 640px) {
  .gn-search { display: none; }
  .gn-msearch-btn { display: grid; }
  .gn-logo__mark { font-size: 19px; }
  .gn-logo__sub { display: none; }
  .gn-utils { gap: 2px; margin-right: -8px; }
}

/* ---------- 드로어 + 딤 ---------- */
.gn-dim {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.gn-drawer {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  z-index: 310;
  width: var(--drawer-w);
  display: flex;
  flex-direction: column;
  padding: var(--drawer-pad);
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(104%);
  transition: transform .26s cubic-bezier(.2, .7, .2, 1);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .gn-dim { opacity: 1; visibility: visible; }
body.drawer-open .gn-drawer { transform: translateX(0); }

.gn-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.gn-drawer__head .gn-logo__sub { display: inline-flex; }
.gn-drawer__close {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
}
.gn-drawer__close:hover { background: var(--surface-2); color: var(--ink); }
.gn-drawer__close svg { width: 22px; height: 22px; }

.gn-drawer__label {
  margin: 20px 0 6px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gn-drawer__nav li + li { border-top: 1px solid var(--line-soft); }
.gn-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  font-size: 16.5px;
  font-weight: 700;
}
.gn-drawer__nav a:hover, .gn-drawer__nav a[aria-current="page"] { color: var(--mint); }
.gn-drawer__nav a[aria-current="page"]::after { content: "●"; font-size: 8px; }

/* ---------- 푸터 ---------- */
.gn-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.gn-footer__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-block: 36px 24px;
}
.gn-footer__brand { max-width: 460px; }
.gn-footer__brand .gn-logo__mark { font-size: 19px; }
.gn-footer__desc { margin-top: 12px; color: var(--ink-3); font-size: 13.5px; line-height: 1.65; }
.gn-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; }
.gn-footer__links a { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.gn-footer__links a:hover { color: var(--mint); }
.gn-footer__copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-size: 12.5px;
}
@media (max-width: 640px) {
  .gn-footer__body { flex-direction: column; gap: 20px; padding-block: 28px 20px; }
  .gn-footer__links { gap: 8px 18px; }
  .gn-footer__copy { flex-direction: column; gap: 4px; }
}

/* ---------- to-top ---------- */
.gn-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 190;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  transition: color .15s, border-color .15s, transform .15s;
}
.gn-totop:hover { color: var(--mint); border-color: var(--mint); transform: translateY(-2px); }
.gn-totop svg { width: 20px; height: 20px; }

/* ---------- 메인 ---------- */
.gn-main {
  flex: 1;
  padding-top: 36px;
  padding-bottom: 80px;
}
@media (max-width: 640px) {
  .gn-main { padding-top: 20px; padding-bottom: 48px; }
}

/* ---------- AdSlot 자리 (플레이스홀더 · 실계정 ID 없음) ---------- */
.gn-adband { margin-top: 28px; }
.gn-adband--home { margin-top: 24px; }
.gn-ad {
  display: grid;
  place-items: center;
  position: relative;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px),
    var(--surface);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  overflow: hidden;
}
.gn-adlabel, .gn-ad::before {
  position: absolute;
  top: 8px; right: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
  font-size: 10px;
  letter-spacing: .1em;
}
.gn-ad::before { content: "AD"; }
.gn-ad .gn-adlabel { display: none; }
.gn-ad--lead { aspect-ratio: 880 / 175; }
.gn-ad--side { aspect-ratio: 320 / 200; }
.gn-ad--tall { aspect-ratio: 320 / 260; }
.gn-ad--sky {
  width: 300px;
  height: 800px;
  aspect-ratio: auto;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(92, 200, 160, .06) 0 8px, transparent 8px 16px),
    var(--surface);
  font-size: 11px;
  letter-spacing: .02em;
  text-align: center;
  line-height: 1.45;
}

/* 여백 스카이 배너. 본문 .gn-bound(1180)는 그대로. 1441px 미만은 숨김. */
.gn-rail { display: none; }
@media (min-width: 1441px) {
  .gn-rail { display: block; }
  .gn-rail__ad {
    position: fixed;
    top: calc(var(--header-h) + 36px);
    z-index: 40;
    width: 300px;
  }
  .gn-rail--left .gn-rail__ad {
    left: calc((100% - var(--bound)) / 2 - 300px - 30px);
  }
  .gn-rail--right .gn-rail__ad {
    right: calc((100% - var(--bound)) / 2 - 300px - 30px);
  }
}
@media (max-width: 640px) {
  .gn-ad--lead { aspect-ratio: 320 / 120; }
  .gn-adband { margin-top: 20px; }
}

/* 2026-11-25 카테고리 8개: 좁은 PC 화면(1024~1279)에서 칩이 로고·소개와 겹치지 않게.
   들어가면 가운데, 넘치면 칩 줄만 가로로 밀어 보기. */
.gn-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
.gn-nav::-webkit-scrollbar { display: none; }
.gn-nav > .gn-chips { margin: 0 auto; flex: 0 0 auto; }
@media (max-width: 1279px) {
  .gn-logo__sub { display: none; }
  .gn-nav .gn-chips { gap: 2px; }
  .gn-nav .gn-chip { padding-left: 10px; padding-right: 10px; }
}
