/* ObsiKO 도움말 전용 — 허브(/docs/ 첫 화면)와 문서(3단: 목차 / 본문 / 이 페이지)
   공용 토큰·상단바·본문 타이포그래피는 kb.css. 원본은 이 파일 — build-docs.py 는 링크만 건다. */

:root {
  interpolate-size: allow-keywords
}

/* ═════════════════════ 문서 페이지 ═════════════════════ */
.kb-docs {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding-top: calc(var(--top-h) + var(--top-gap) + 30px);
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 216px;
  gap: 52px;
  align-items: start
}

/* ── 왼쪽 목차 ── */
.kb-nav {
  position: sticky;
  top: calc(var(--top-h) + var(--top-gap) + 22px);
  max-height: calc(100vh - var(--top-h) - var(--top-gap) - 40px);
  display: flex;
  flex-direction: column;
  view-transition-name: kb-nav
}

.kb-nav-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 10px 24px 2px;
  margin-right: -10px;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent)
}

.kb-nav-home {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
  transition: border-color .2s, background .2s
}

.kb-nav-home:hover {
  border-color: var(--gold-line)
}

.kb-nav-home .ic {
  color: var(--gold)
}

.kb-nav-g {
  border-radius: 12px
}

.kb-nav-g>summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: .86rem;
  font-weight: 700;
  user-select: none;
  transition: background .2s, color .2s
}

.kb-nav-g>summary::-webkit-details-marker {
  display: none
}

.kb-nav-g>summary:hover {
  background: var(--surface);
  color: var(--text)
}

.kb-nav-g>summary .ic {
  width: 16px;
  height: 16px;
  color: var(--muted)
}

.kb-nav-g>summary .n {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  color: var(--faint);
  font-variant-numeric: tabular-nums
}

.kb-nav-g>summary .dn {
  width: 14px;
  height: 14px;
  color: var(--faint);
  transition: transform .3s var(--flow)
}

.kb-nav-g[open]>summary .dn {
  transform: rotate(180deg)
}

.kb-nav-g.has-cur>summary,
.kb-nav-g.has-cur>summary .ic {
  color: var(--gold)
}

/* 펼침도 부드럽게 — ::details-content 를 모르는 브라우저는 그냥 즉시 열린다 */
.kb-nav-g::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .32s var(--flow), content-visibility .32s allow-discrete
}

.kb-nav-g[open]::details-content {
  block-size: auto
}

.kb-nav-items {
  position: relative;
  margin: 2px 0 8px 18px;
  padding-left: 10px;
  border-left: 1px solid var(--border)
}

.kb-nav-items a {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  transition: color .15s, background .15s
}

.kb-nav-items a .no {
  flex: none;
  min-width: 2.1em;
  font: 600 .72rem/1.9 var(--font-mono);
  color: var(--faint)
}

.kb-nav-items a.sub {
  padding-left: 22px;
  font-size: .85rem
}

.kb-nav-items a:hover {
  color: var(--text);
  background: var(--surface)
}

.kb-nav-items a.cur {
  color: var(--gold);
  font-weight: 700;
  background: var(--gold-tint)
}

.kb-nav-items a.cur .no {
  color: var(--gold)
}

.kb-nav-items a.cur::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(230, 162, 74, .6)
}

/* ── 본문 ── */
.kb-main {
  min-width: 0
}

.kb-article {
  max-width: 760px;
  margin: 0 auto
}

.kb-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  font-size: .86rem;
  color: var(--muted)
}

.kb-crumbs a {
  color: var(--muted);
  transition: color .15s
}

.kb-crumbs a:hover {
  color: var(--gold)
}

.kb-crumbs .ic {
  width: 14px;
  height: 14px;
  color: var(--faint)
}

.kb-crumbs .cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft)
}

.kb-crumbs .cat .ic {
  color: var(--gold);
  width: 15px;
  height: 15px
}

.kb-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 4.4vw, 3rem);
  line-height: 1.17;
  letter-spacing: -.03em;
  color: var(--text);
  text-wrap: balance;
  margin: 0
}

.kb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 16px 0 30px;
  font-size: .86rem;
  color: var(--muted)
}

.kb-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.kb-meta .ic {
  width: 15px;
  height: 15px;
  color: var(--faint)
}

.kb-art-body>*:first-child {
  margin-top: 0
}

/* 좁은 화면 '이 페이지 목차' */
.kb-toc-m {
  display: none;
  margin: -8px 0 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface)
}

.kb-toc-m>summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text-soft)
}

.kb-toc-m>summary::-webkit-details-marker {
  display: none
}

.kb-toc-m>summary .dn {
  margin-left: auto;
  width: 16px;
  height: 16px;
  transition: transform .3s var(--flow)
}

.kb-toc-m[open]>summary .dn {
  transform: rotate(180deg)
}

.kb-toc-m nav {
  display: grid;
  padding: 0 10px 12px
}

.kb-toc-m a {
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .9rem
}

.kb-toc-m a.l3 {
  padding-left: 24px;
  font-size: .86rem
}

.kb-toc-m a:hover {
  background: var(--surface-2);
  color: var(--text)
}

/* ── 이전·다음 ── */
.kb-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 64px 0 0
}

.kb-pn-a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), background .25s
}

.kb-pn-a .k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted)
}

.kb-pn-a .k .ic {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--spring)
}

.kb-pn-a b {
  font-size: 1.04rem;
  line-height: 1.4
}

.kb-pn-a.next {
  text-align: right;
  align-items: flex-end
}

.kb-pn-a:hover {
  border-color: var(--gold-line);
  background: var(--surface);
  transform: translateY(-2px)
}

.kb-pn-a.prev:hover .k .ic {
  transform: translateX(-4px)
}

.kb-pn-a.next:hover .k .ic {
  transform: translateX(4px)
}

.kb-pn-a:hover b {
  color: var(--gold)
}

.kb-pn-a.off {
  visibility: hidden
}

/* ── 찾는 답이 없나요 ── */
.kb-help {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed var(--border-strong)
}

.kb-help .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--gold)
}

.kb-help .ico .ic {
  width: 20px;
  height: 20px
}

.kb-help .tx {
  flex: 1;
  min-width: 0
}

.kb-help b {
  display: block;
  color: var(--text)
}

.kb-help p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .9rem
}

.kb-help .kb-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: .88rem
}

/* ── 오른쪽 '이 페이지' ── */
.kb-toc {
  position: sticky;
  top: calc(var(--top-h) + var(--top-gap) + 30px);
  max-height: calc(100vh - var(--top-h) - var(--top-gap) - 50px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 20px
}

.kb-toc-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint)
}

.kb-toc-h .ic {
  width: 14px;
  height: 14px
}

.kb-toc-list {
  position: relative;
  display: grid;
  border-left: 1px solid var(--border)
}

.kb-toc-list a {
  position: relative;
  padding: 5px 0 5px 14px;
  color: var(--faint);
  font-size: .84rem;
  line-height: 1.45;
  transition: color .2s
}

.kb-toc-list a.l3 {
  padding-left: 26px;
  font-size: .8rem
}

.kb-toc-list a:hover {
  color: var(--text-soft)
}

.kb-toc-list a.past {
  color: var(--muted)
}

.kb-toc-list a.on {
  color: var(--gold);
  font-weight: 600
}

.kb-spy-ind {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(230, 162, 74, .7);
  opacity: 0;
  transition: transform .35s var(--flow), height .35s var(--flow), opacity .2s
}

/* ── 서랍 안 목차(좁은 화면) ── */
.kb-drawer .kb-nav-list .kb-nav-items {
  margin-left: 16px
}

@media (max-width: 1240px) {
  .kb-docs {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 44px
  }

  .kb-toc {
    display: none
  }

  .kb-toc-m {
    display: block
  }
}

@media (max-width: 900px) {
  .kb-docs {
    grid-template-columns: minmax(0, 1fr);
    width: min(var(--maxw), calc(100% - 32px));
    padding-top: calc(var(--top-h) + var(--top-gap) + 22px)
  }

  .kb-nav {
    display: none
  }

  .kb-pn {
    grid-template-columns: 1fr
  }

  .kb-pn-a.next {
    text-align: left;
    align-items: flex-start
  }

  .kb-help {
    flex-wrap: wrap
  }
}

/* ═════════════════════ 허브(/docs/) ═════════════════════ */
.kb-hub {
  padding-top: calc(var(--top-h) + var(--top-gap))
}

.hub-hero {
  position: relative;
  isolation: isolate;
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  min-height: min(700px, 88vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 24px;
  padding: 40px 0 30px
}

/* 하늘 — 별 점 3겹(크기·밝기 다르게) + 골드 빛무리. 캔버스 없이 CSS 만(배터리) */
.hub-sky {
  position: absolute;
  /* 가운데 정렬된 히어로에서 화면 양끝까지만(-50vw 면 모바일에서 페이지가 넓어진다) */
  inset: -40px calc(50% - 50vw) 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 52% at 72% 46%, rgba(230, 162, 74, .14), transparent 70%),
    radial-gradient(30% 40% at 18% 30%, rgba(95, 138, 206, .12), transparent 72%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent)
}

.hub-sky::before,
.hub-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 28% 72%, #fff6, transparent 60%),
    radial-gradient(1.4px 1.4px at 44% 12%, #ffe9c7aa, transparent 60%),
    radial-gradient(1px 1px at 58% 84%, #fff5, transparent 60%),
    radial-gradient(1.3px 1.3px at 74% 26%, #fff9, transparent 60%),
    radial-gradient(1px 1px at 86% 64%, #fff6, transparent 60%),
    radial-gradient(1.6px 1.6px at 94% 14%, #ffe2b0aa, transparent 60%),
    radial-gradient(1px 1px at 6% 52%, #fff5, transparent 60%),
    radial-gradient(1.2px 1.2px at 36% 44%, #fff4, transparent 60%),
    radial-gradient(1px 1px at 66% 54%, #fff5, transparent 60%);
  background-size: 520px 420px;
  animation: kbTwinkle 7s ease-in-out infinite;
  --tw-lo: .35;
  --tw-hi: .9
}

.hub-sky::after {
  background-size: 380px 300px;
  background-position: 140px 90px;
  animation-duration: 11s;
  animation-delay: -4s;
  --tw-lo: .15;
  --tw-hi: .7
}

.hub-hero-txt {
  position: relative;
  z-index: 2;
  max-width: 560px
}

.hub-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
  margin: 0 0 18px
}

.hub-title .spark {
  display: inline-block;
  color: var(--gold);
  font-size: .5em;
  vertical-align: .9em;
  margin-left: .1em;
  animation: kbTwinkle 2.8s ease-in-out infinite;
  --tw-lo: .4
}

.hub-lede {
  margin: 0 0 30px;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 46ch
}

/* 큰 검색 — 누르면 ⌘K 팔레트. 안내 문구가 예시 검색어로 타자 치듯 바뀐다 */
.hub-search {
  appearance: none;
  cursor: text;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  height: 64px;
  padding: 0 14px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: 1.04rem;
  text-align: left;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  transition: border-color .25s, box-shadow .3s, transform .25s var(--ease)
}

.hub-search::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--hub-ang, 0deg), transparent 0 70%, rgba(230, 162, 74, .9) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none
}

@property --hub-ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg
}

.hub-search:hover::after,
.hub-search:focus-visible::after {
  opacity: 1;
  animation: hubSpin 2.6s linear infinite
}

@keyframes hubSpin {
  to {
    --hub-ang: 360deg
  }
}

.hub-search:hover {
  border-color: var(--gold-line);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, .95), 0 0 50px -20px rgba(230, 162, 74, .35);
  transform: translateY(-1px)
}

.hub-search>.ic {
  width: 22px;
  height: 22px;
  color: var(--gold)
}

.hub-search .ph {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.hub-search .ph.typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -.18em;
  background: var(--gold);
  animation: hubCaret 1s steps(1) infinite
}

@keyframes hubCaret {
  50% {
    opacity: 0
  }
}

.hub-search kbd {
  font-size: .78rem;
  padding: 6px 9px
}

.hub-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  max-width: 560px
}

.hub-quick .lbl {
  margin-right: 4px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint)
}

/* ── 도움말 지도(SVG) ── */
.hub-map {
  position: relative;
  z-index: 1;
  margin-right: -20px
}

.hub-map-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible
}

.hub-map-cap {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: .8rem;
  color: var(--faint)
}

.hub-map-cap .ic {
  width: 15px;
  height: 15px;
  color: var(--gold)
}

.m-orbit {
  fill: none;
  stroke: rgba(255, 244, 230, .05);
  stroke-width: 1;
  stroke-dasharray: 2 6
}

/* 선은 얇고 흐리게(2026-10-10) — 별이 주인공, 선은 '이어져 있다'는 기척만 */
.m-e {
  stroke: rgba(240, 210, 160, .12);
  stroke-width: .7;
  fill: none;
  transition: stroke .25s, stroke-width .25s, opacity .25s
}

.m-e.h {
  stroke: rgba(240, 210, 160, .07);
  stroke-dasharray: 3 5
}

/* 묶음을 넘나드는 링크는 평소엔 숨긴다(가운데가 털뭉치가 된다) — 별에 올렸을 때만 그 별의 것만 */
.m-e.x {
  stroke: rgba(150, 180, 230, .5);
  opacity: 0
}

/* 그려지는 동안에만 점선 패턴을 쓴다(backwards — 끝나면 패턴 없는 실선). 별이 움직여 선이 늘어나도 끝이 안 끊긴다 */
.m-e.c {
  stroke: rgba(240, 200, 140, .26);
  animation: mDraw 1.4s var(--flow) backwards;
  animation-delay: calc(.4s + var(--i, 0) * 30ms)
}

@keyframes mDraw {
  from {
    stroke-dasharray: var(--len) var(--len);
    stroke-dashoffset: var(--len)
  }

  to {
    stroke-dasharray: var(--len) var(--len);
    stroke-dashoffset: 0
  }
}

.m-star {
  cursor: pointer;
  outline: none
}

.m-star .halo {
  fill: var(--sc, #f3c983);
  opacity: .16;
  transition: opacity .3s, transform .3s var(--spring);
  transform-box: fill-box;
  transform-origin: center
}

.m-star .core {
  fill: var(--sc, #f3c983);
  animation: kbTwinkle var(--t, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  --tw-lo: .55;
  --tw-hi: 1
}

.m-star.home .core {
  fill: #fff4dd;
  --tw-lo: .85
}

.m-star.home .halo {
  opacity: .28
}

.m-stars {
  animation: mIn 1s var(--ease) both
}

@keyframes mIn {
  from {
    opacity: 0
  }
}

.m-cat {
  fill: var(--muted);
  font: 700 14.5px var(--font-sans);
  letter-spacing: .01em;
  transition: fill .25s, opacity .25s;
  pointer-events: none
}

.m-cat-n {
  fill: var(--faint);
  font: 600 11.5px var(--font-mono)
}

/* 별에 올리면 — 그 별과 이어진 별·선만 남기고 나머지는 어둡게 */
.hub-map-svg.hot .m-e:not(.x) {
  opacity: .25
}

.hub-map-svg.hot .m-star:not(.lit) {
  opacity: .35
}

.hub-map-svg.hot .m-cat {
  opacity: .45
}

.hub-map-svg.hot .m-cat.lit {
  opacity: 1;
  fill: var(--gold)
}

.hub-map-svg .m-e.lit,
.hub-map-svg.hot .m-e.x.lit {
  opacity: 1;
  stroke: rgba(230, 162, 74, .62);
  stroke-width: .9;
  stroke-dasharray: none
}

.m-star.lit .halo {
  opacity: .32
}

.m-star.on .halo {
  opacity: .5;
  transform: scale(1.7)
}

.m-star.on .core {
  fill: #fff;
  animation: none
}

.hub-map-tip {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  max-width: 240px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  animation: kbPop .16s var(--ease)
}

.hub-map-tip b {
  display: block;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.4
}

.hub-map-tip span {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700
}

.hub-map-tip.touch {
  pointer-events: auto
}

.hub-map-tip a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--gold);
  font-weight: 800;
  font-size: .84rem
}

/* ── 허브 공통 섹션 ── */
.hub-sec {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 0
}

.hub-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px
}

.hub-sec-head .kb-sub {
  margin-top: 4px
}

/* ── 처음이라면 이 순서로(길) ── */
.hub-path {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px
}

.hub-path::before {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 20%, transparent));
  opacity: .55
}

.hub-path a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 0 4px 6px;
  color: var(--text)
}

.hub-path .num {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font: 700 1.3rem var(--font-display);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background .3s, color .3s, transform .35s var(--spring), box-shadow .3s
}

.hub-path b {
  font-size: 1.08rem;
  line-height: 1.4;
  transition: color .2s
}

.hub-path .d {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.hub-path .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--gold);
  font-size: .86rem;
  font-weight: 800
}

.hub-path .go .ic {
  width: 15px;
  height: 15px;
  transition: transform .3s var(--spring)
}

.hub-path a:hover .num {
  background: var(--gold);
  color: var(--gold-ink);
  transform: scale(1.06);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -4px rgba(230, 162, 74, .7)
}

.hub-path a:hover b {
  color: var(--gold)
}

.hub-path a:hover .go .ic {
  transform: translateX(4px)
}

/* ── 주제별 카드 ── */
.hub-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.hub-topic {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--well) 60%, transparent));
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s
}

.hub-topic:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9)
}

.hub-topic .ti {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--gold);
  margin-bottom: 16px;
  transition: transform .45s var(--spring), box-shadow .3s
}

.hub-topic .ti .ic {
  width: 22px;
  height: 22px
}

.hub-topic:hover .ti {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 26px -6px rgba(230, 162, 74, .55)
}

.hub-topic h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.16rem;
  letter-spacing: -.01em
}

.hub-topic h3 a {
  color: var(--text)
}

.hub-topic h3 a:hover {
  color: var(--gold)
}

.hub-topic h3 .n {
  font-size: .78rem;
  font-weight: 700;
  color: var(--faint)
}

.hub-topic ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px
}

.hub-topic li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.45;
  transition: color .15s, transform .2s var(--ease)
}

.hub-topic li a::before {
  content: '';
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--faint);
  transition: background .2s, box-shadow .2s
}

.hub-topic li a:hover {
  color: var(--gold);
  transform: translateX(3px)
}

.hub-topic li a:hover::before {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold)
}

.hub-topic .more>summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700
}

.hub-topic .more>summary::-webkit-details-marker {
  display: none
}

.hub-topic .more>summary:hover {
  color: var(--gold)
}

.hub-topic .more>summary .ic {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--flow)
}

.hub-topic .more[open]>summary .ic {
  transform: rotate(180deg)
}

.hub-topic .more::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .32s var(--flow), content-visibility .32s allow-discrete
}

.hub-topic .more[open]::details-content {
  block-size: auto
}

.hub-topic .more ul {
  margin-top: 6px
}

/* ── 새로 생긴 것 ── */
.hub-new {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 30px;
  padding: 34px 36px;
  border-radius: 26px;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(230, 162, 74, .16), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--well));
  color: var(--text);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s
}

.hub-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(230, 162, 74, .4)
}

.hub-new .kb-kicker {
  margin-bottom: 8px
}

.hub-new b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.02em
}

.hub-new .d {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  max-width: 62ch;
  line-height: 1.65
}

.hub-new .kb-btn {
  pointer-events: none
}

.hub-new:hover .kb-btn {
  background: var(--surface-2)
}

.hub-new:hover .kb-btn .ic {
  transform: translateX(3px)
}

.hub-new-stars {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 30% 40%, #ffe2b0, transparent 60%),
    radial-gradient(1.4px 1.4px at 62% 22%, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 76% 58%, #ffe9c7, transparent 60%),
    radial-gradient(1.2px 1.2px at 46% 76%, #fff, transparent 60%),
    radial-gradient(1px 1px at 18% 68%, #fff, transparent 60%);
  opacity: .7;
  animation: kbTwinkle 5s ease-in-out infinite;
  --tw-lo: .35
}

/* ── 튜토리얼 띠(한국어) ── */
.hub-tut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px
}

.hub-tut-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s
}

.hub-tut-card .th {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2)
}

.hub-tut-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--flow)
}

.hub-tut-card .tx {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px
}

.hub-tut-card b {
  line-height: 1.4
}

.hub-tut-card .m {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem
}

.hub-tut-card .m .ic {
  width: 14px;
  height: 14px
}

.hub-tut-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .95)
}

.hub-tut-card:hover img {
  transform: scale(1.05)
}

.hub-tut-more {
  display: flex;
  justify-content: center;
  margin-top: 26px
}

.hub-help-wrap {
  padding-top: 64px
}

.hub-help-wrap .kb-help {
  margin: 0
}

@media (max-width: 1100px) {
  .hub-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 56px;
    gap: 34px
  }

  .hub-hero-txt {
    max-width: 680px
  }

  .hub-map {
    margin: 0 auto;
    width: min(760px, 100%)
  }

  .hub-topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .hub-tut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width: 760px) {

  .hub-hero,
  .hub-sec {
    width: calc(100% - 32px)
  }

  .hub-hero {
    padding-top: 34px
  }

  .hub-search {
    height: 56px;
    font-size: .98rem
  }

  .hub-search kbd {
    display: none
  }

  .hub-map {
    width: calc(100% + 24px);
    margin: 0 -12px
  }

  .m-cat {
    font-size: 17px
  }

  .m-e {
    stroke-width: 1.1
  }

  .hub-map-svg .m-e.lit,
  .hub-map-svg.hot .m-e.x.lit {
    stroke-width: 1.7
  }

  .hub-map-cap {
    position: static;
    transform: none;
    justify-content: center;
    white-space: normal;
    text-align: center;
    margin: 6px 16px 0
  }

  .m-cat-n {
    display: none
  }

  .hub-sec {
    padding-top: 56px
  }

  .hub-sec-head {
    flex-direction: column;
    align-items: flex-start
  }

  .hub-path {
    grid-template-columns: 1fr;
    gap: 0
  }

  .hub-path::before {
    left: 30px;
    right: auto;
    top: 30px;
    bottom: 30px;
    width: 1px;
    height: auto;
    background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 15%, transparent))
  }

  .hub-path a {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2px 16px;
    padding: 0 0 22px
  }

  .hub-path .num {
    grid-row: span 3;
    margin: 0
  }

  .hub-path .go {
    padding-top: 2px
  }

  .hub-topics-grid,
  .hub-tut-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .hub-new {
    grid-template-columns: 1fr;
    padding: 26px 22px
  }
}
