/* ==========================================================================
   게시판 스킨: helpcenter
   fastfind.kr/help 의 "히어로 + 좌측 내비 + 카드 목록" 짜임을 옮긴 것.
   색은 테마 토큰(--card,--border,--foreground…)을 그대로 쓰고,
   강조색만 이 스킨 안에서 따로 정의한다 — 테마를 바꿔도 같이 따라간다.
   ========================================================================== */

.hc {
  --hc-accent:        #4f46e5;
  --hc-accent-hover:  #6366f1;
  --hc-accent-soft:   rgba(79, 70, 229, .08);
  --hc-accent-softer: rgba(79, 70, 229, .04);
  --hc-accent-line:   rgba(79, 70, 229, .28);
  --hc-grad: linear-gradient(135deg, #6366f1 0%, #c084fc 50%, #f472b6 100%);
  --hc-bar:  linear-gradient(180deg, #6366f1, #c084fc);

  --hc-pink:   #ec4899;
  --hc-green:  #16a34a;
  --hc-yellow: #ca8a04;
  --hc-red:    #dc2626;
  --hc-purple: #9333ea;

  --hc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --hc-shadow-md: 0 4px 14px rgba(0, 0, 0, .07);
}

/* 다크에서는 같은 계열을 한 단계 밝게 — 어두운 바탕에서 남보라가 죽지 않게. */
:root[data-theme="dark"] .hc {
  --hc-accent:        #6366f1;
  --hc-accent-hover:  #818cf8;
  --hc-accent-soft:   rgba(99, 102, 241, .14);
  --hc-accent-softer: rgba(99, 102, 241, .07);
  --hc-accent-line:   rgba(99, 102, 241, .34);
  --hc-green:  #22c55e;
  --hc-yellow: #eab308;
  --hc-red:    #ef4444;
  --hc-purple: #a855f7;
  --hc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --hc-shadow-md: 0 4px 14px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .hc {
    --hc-accent:        #6366f1;
    --hc-accent-hover:  #818cf8;
    --hc-accent-soft:   rgba(99, 102, 241, .14);
    --hc-accent-softer: rgba(99, 102, 241, .07);
    --hc-accent-line:   rgba(99, 102, 241, .34);
    --hc-green:  #22c55e;
    --hc-yellow: #eab308;
    --hc-red:    #ef4444;
    --hc-purple: #a855f7;
    --hc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --hc-shadow-md: 0 4px 14px rgba(0, 0, 0, .35);
  }
}

@keyframes hc-fade  { from { opacity: 0; transform: translateY(8px) }  to { opacity: 1; transform: none } }
@keyframes hc-slide { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes hc-float1 { 0%, 100% { transform: none } 50% { transform: translate(30px, -40px) scale(1.05) } }
@keyframes hc-float2 { 0%, 100% { transform: none } 50% { transform: translate(-20px, 30px) scale(.95) } }

/* 히어로는 컨테이너 밖까지 꽉 차야 한다. 가로 넘침은 clip 으로 자른다 —
   hidden 과 달리 스크롤 컨테이너를 만들지 않아 사이드바 sticky 가 살아 있다. */
.site-main:has(.hc) { overflow-x: clip; }

/* theme/basic/content.php 가 정적 페이지마다 넣어 주는 밋밋한 제목(.page-head)과
   breadcrumb(홈 › …)은, 이 컴포넌트를 쓰는 페이지(예: /page/dev)에서는
   아래 .dd-pagehead 로 대신하고 둘 다 감춘다. */
.site-main:has(.hc) .page-head,
.site-main:has(.hc) .breadcrumb { display: none; }

/* ── 히어로 ───────────────────────────────────────────────────────────── */
.hc-hero {
  position: relative; overflow: hidden;
  width: 100vw; margin-inline: calc(50% - 50vw); margin-top: -1.5rem;
  padding: 54px 24px 40px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  animation: hc-fade .35s ease;
}
.hc-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .75;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hc-blob { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.hc-blob1 {
  top: -180px; left: 30%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, .16) 0%, transparent 65%);
  animation: hc-float1 22s ease-in-out infinite;
}
.hc-blob2 {
  top: -120px; right: 5%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(192, 132, 252, .13) 0%, transparent 65%);
  animation: hc-float2 18s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hc-blob { animation: none } }

.hc-hero-inner { position: relative; max-width: 1240px; margin: 0 auto; text-align: center; }

.hc-crumb {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  color: var(--muted-foreground); margin-bottom: 14px;
}
.hc-crumb a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.hc-crumb a:hover { color: var(--hc-accent-hover); }
.hc-crumb svg { width: 12px; height: 12px; opacity: .65; }
.hc-crumb-sep { opacity: .45; }

.hc-tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--hc-accent);
}
.hc-hero h1 {
  margin: 0 0 10px; font-size: clamp(28px, 4.6vw, 42px); font-weight: 800;
  letter-spacing: -1.6px; line-height: 1.15;
}
.hc-hero h1 .hc-grad, .dd-pagetitle .hc-grad {
  background: var(--hc-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hc-hero p {
  max-width: 560px; margin: 0 auto;
  color: var(--muted-foreground); font-size: 15px; line-height: 1.7;
}
.hc-stats {
  display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 16px; padding: 6px 16px;
  background: var(--background); border: 1px solid var(--border); border-radius: 100px;
  font-size: 12.5px; color: var(--muted-foreground); font-feature-settings: "tnum";
}
.hc-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.hc-stats svg { width: 13px; height: 13px; opacity: .65; }
.hc-stats strong { color: var(--foreground); font-weight: 700; }

/* ── 2단 짜임 ─────────────────────────────────────────────────────────── */
.hc-shell {
  display: grid; grid-template-columns: 248px 1fr; gap: 36px;
  align-items: start; padding: 36px 0 8px;
}
.hc-side { position: sticky; top: 88px; animation: hc-fade .35s ease; }
.hc-side-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; box-shadow: var(--hc-shadow-sm);
}
.hc-side-sec { margin-bottom: 14px; }
.hc-side-sec:last-child { margin-bottom: 0; }
.hc-side-label {
  padding: 8px 14px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted-foreground);
}
.hc-side-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--muted-foreground);
  text-decoration: none; transition: background .15s, color .15s;
}
.hc-side-item:hover { color: var(--foreground); background: var(--hc-accent-soft); }
.hc-side-item.on {
  color: var(--foreground); font-weight: 600;
  background: linear-gradient(90deg, var(--hc-accent-soft), transparent);
}
.hc-side-item.on::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--hc-bar); border-radius: 0 3px 3px 0;
}
.hc-side-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .78; }
.hc-side-item.on svg { opacity: 1; color: var(--hc-accent); }
.hc-side-count {
  margin-left: auto; min-width: 26px; text-align: center;
  padding: 2px 9px; border-radius: 100px;
  background: var(--background); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--muted-foreground);
  font-feature-settings: "tnum";
}
.hc-side-item.on .hc-side-count {
  color: var(--hc-accent-hover); background: var(--hc-accent-soft); border-color: var(--hc-accent-line);
}

.hc-side-note {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--hc-accent-soft), var(--hc-accent-softer));
  border: 1px solid var(--hc-accent-line);
  font-size: 12px; line-height: 1.6; color: var(--muted-foreground);
}
.hc-side-note-label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--hc-purple);
}
.hc-side-note-label svg { width: 13px; height: 13px; }
.hc-side-note strong { color: var(--foreground); font-weight: 600; }

.hc-main { min-width: 0; animation: hc-slide .35s ease; }

/* ── 제목줄 ───────────────────────────────────────────────────────────── */
.hc-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.hc-bar-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--foreground);
}
.hc-bar-title .hc-n {
  font-size: 13px; font-weight: 600; color: var(--muted-foreground);
  font-feature-settings: "tnum";
}
.hc-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hc-search { position: relative; display: flex; align-items: center; }
.hc-search svg {
  position: absolute; left: 12px; width: 15px; height: 15px;
  color: var(--muted-foreground); pointer-events: none;
}
.hc-search input {
  width: 190px; padding: 9px 14px 9px 34px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  color: var(--foreground); font: inherit; font-size: 13.5px; outline: none;
  transition: border-color .2s, box-shadow .2s, width .2s;
}
.hc-search input:focus { border-color: var(--hc-accent); box-shadow: 0 0 0 3px var(--hc-accent-soft); width: 230px; }

.hc-btn, .hc-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s, border-color .2s, color .2s;
}
.hc-btn { color: #fff; background: var(--hc-accent); }
.hc-btn:hover { background: var(--hc-accent-hover); box-shadow: 0 6px 20px var(--hc-accent-line); transform: translateY(-1px); }
.hc-btn-ghost { color: var(--foreground); background: transparent; border-color: var(--border); }
.hc-btn-ghost:hover { border-color: var(--hc-accent); color: var(--hc-accent-hover); }
.hc-btn svg, .hc-btn-ghost svg { width: 14px; height: 14px; }

/* ── 분류 알약 ────────────────────────────────────────────────────────── */
.hc-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hc-cat-pill {
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 13px; font-weight: 500; color: var(--muted-foreground); text-decoration: none;
  transition: all .18s;
}
.hc-cat-pill:hover { color: var(--foreground); border-color: var(--hc-accent); }
.hc-cat-pill.on { color: #fff; background: var(--hc-accent); border-color: var(--hc-accent); font-weight: 600; }

/* ── 카드 목록 ────────────────────────────────────────────────────────── */
.hc-list { display: flex; flex-direction: column; gap: 10px; }
.hc-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 26px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  animation: hc-slide .35s ease both;
}
.hc-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--hc-bar); opacity: 0; transition: opacity .25s;
}
.hc-card:hover { border-color: var(--hc-accent-line); transform: translateY(-2px); box-shadow: var(--hc-shadow-md); }
.hc-card:hover::before { opacity: 1; }
.hc-card.pinned { background: linear-gradient(135deg, var(--hc-accent-softer), transparent); border-color: var(--hc-accent-line); }
.hc-card.pinned::before { opacity: 1; }
.hc-card:nth-child(1) { animation-delay: .02s }
.hc-card:nth-child(2) { animation-delay: .05s }
.hc-card:nth-child(3) { animation-delay: .08s }
.hc-card:nth-child(4) { animation-delay: .11s }
.hc-card:nth-child(5) { animation-delay: .14s }

.hc-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: var(--hc-accent-soft); color: var(--hc-accent);
}
.hc-pin svg { width: 13px; height: 13px; }
.hc-card-title {
  flex: 1; min-width: 0;
  font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--foreground);
}
.hc-card-title a { color: inherit; text-decoration: none; }
.hc-card-title a::after { content: ''; position: absolute; inset: 0; }
.hc-card:hover .hc-card-title { color: var(--hc-accent-hover); }
.hc-card-excerpt {
  font-size: 13.5px; line-height: 1.65; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-card-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted-foreground); font-feature-settings: "tnum";
}
.hc-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hc-card-meta svg { width: 12px; height: 12px; opacity: .7; }
.hc-card-meta a { position: relative; z-index: 1; color: inherit; text-decoration: none; }
.hc-card-meta a:hover { color: var(--hc-accent-hover); text-decoration: underline; }

.hc-chip {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  position: relative; z-index: 1; text-decoration: none;
}
.hc-chip-cat    { background: var(--hc-accent-soft); color: var(--hc-accent-hover); }
.hc-chip-notice { background: var(--hc-accent-soft); color: var(--hc-accent-hover); box-shadow: inset 0 0 0 1px var(--hc-accent-line); }
.hc-chip-new    { background: rgba(34, 197, 94, .14); color: var(--hc-green); }
.hc-chip-hot    { background: rgba(236, 72, 153, .14); color: var(--hc-pink); }
.hc-chip-secret { background: rgba(234, 179, 8, .14); color: var(--hc-yellow); }
.hc-chip-reply  { background: var(--muted); color: var(--muted-foreground); }

/* ── 빈 상태 ──────────────────────────────────────────────────────────── */
.hc-empty {
  padding: 80px 24px; text-align: center; border-radius: 14px;
  background: var(--card); border: 1px dashed var(--border);
  color: var(--muted-foreground);
}
.hc-empty svg { width: 56px; height: 56px; margin-bottom: 18px; opacity: .45; }
.hc-empty-title { margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--foreground); }
.hc-empty-text { font-size: 13.5px; }

/* ── 관리 도구 ────────────────────────────────────────────────────────── */
.hc-manage {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  margin-bottom: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--muted); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted-foreground);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.hc-manage select, .hc-manage button {
  padding: 7px 11px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--foreground); font: inherit; font-size: 13px;
  flex: none; white-space: nowrap;
}
.hc-manage select { width: 150px; overflow: hidden; text-overflow: ellipsis; }
.hc-manage button { cursor: pointer; }
.hc-manage label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; white-space: nowrap; }
.hc-card-check { position: relative; z-index: 1; }

/* ── 쪽 넘김 ──────────────────────────────────────────────────────────── */
.hc-main .pagination { margin-top: 28px; }

/* ── 본문(읽기) ───────────────────────────────────────────────────────── */
.hc-article { max-width: 100%; animation: hc-slide .35s ease; }
.hc-article-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.hc-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); text-decoration: none;
}
.hc-back:hover { color: var(--hc-accent-hover); }
.hc-back svg { width: 14px; height: 14px; }
.hc-article-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.hc-article-head h1 {
  margin: 14px 0; font-size: 30px; font-weight: 800; letter-spacing: -.8px; line-height: 1.35;
}
.hc-article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-foreground); font-feature-settings: "tnum";
}
.hc-article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hc-article-meta svg { width: 13px; height: 13px; opacity: .75; }
.hc-article-body { font-size: 15.5px; line-height: 1.95; color: var(--foreground); min-height: 300px; }
.hc-article-body img { max-width: 100%; height: auto; margin: 18px 0; border-radius: 10px; border: 1px solid var(--border); }
.hc-article-body blockquote {
  margin: 18px 0; padding: 12px 20px; border-left: 3px solid var(--hc-accent);
  background: var(--hc-accent-soft); border-radius: 0 10px 10px 0; color: var(--muted-foreground);
}
.hc-article-body pre {
  margin: 18px 0; padding: 14px 18px; overflow-x: auto;
  background: var(--muted); border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
}
.hc-article-body a { color: var(--hc-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.hc-article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.hc-article-body td, .hc-article-body th { padding: 10px 12px; border-bottom: 1px solid var(--border); }

.hc-files { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.hc-file {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--foreground); text-decoration: none;
  transition: all .2s;
}
.hc-file:hover { border-color: var(--hc-accent); background: var(--hc-accent-soft); transform: translateY(-1px); }
.hc-file svg { width: 18px; height: 18px; color: var(--hc-accent); flex-shrink: 0; }
.hc-file-meta { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--muted-foreground); }

.hc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; list-style: none; padding: 0; }
.hc-tags a {
  display: inline-block; padding: 5px 12px; border-radius: 100px;
  background: var(--muted); font-size: 12.5px; color: var(--muted-foreground); text-decoration: none;
}
.hc-tags a:hover { background: var(--hc-accent-soft); color: var(--hc-accent-hover); }

.hc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.hc-actions .right { margin-left: auto; }
.hc-actions form { display: inline; }

.hc-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
}
.hc-nav a {
  display: block; padding: 16px 18px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--border);
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.hc-nav a:hover { border-color: var(--hc-accent); transform: translateY(-2px); }
.hc-nav .hc-nav-dir {
  display: block; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px; color: var(--muted-foreground);
}
.hc-nav .hc-nav-title {
  font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-nav .hc-nav-next { text-align: right; }
.hc-nav .hc-nav-empty { border-style: dashed; opacity: .45; pointer-events: none; }

/* ── 반응형 ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hc-shell { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .hc-side { position: static; }
  .hc-side-card { display: flex; flex-direction: row; gap: 6px; padding: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hc-side-sec { display: flex; gap: 6px; margin-bottom: 0; flex: 0 0 auto; }
  .hc-side-label, .hc-side-note { display: none; }
  .hc-side-item { padding: 9px 14px; font-size: 13px; white-space: nowrap; width: auto; }
  .hc-side-item.on::before { display: none; }
  .hc-side-count { min-width: auto; padding: 1px 8px; font-size: 10px; }
  .hc-hero { padding: 38px 20px 28px; }
  .hc-article-head h1 { font-size: 24px; }
  .hc-nav { grid-template-columns: 1fr; }
  .hc-nav .hc-nav-next { text-align: left; }
}
@media (max-width: 480px) {
  .hc-hero { padding: 32px 18px 24px; }
  .hc-hero p { font-size: 13.5px; }
  .hc-card { padding: 18px 20px; }
  .hc-card-title { font-size: 16px; }
  .hc-search input { width: 100%; }
  .hc-search { flex: 1; }
  .hc-bar-actions { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   개발자 문서(devdoc) — fastfind.kr/dev 의 "faq-page" 영역을 옮긴 것.
   좌측 고정 갈래 내비 + 접이식 질문·답변 카드. 색은 위의 --hc-* 토큰을
   그대로 써서 /board/notice · /board/data · /qa/write 와 한 결로 묶인다.
   include/dev.php(co_include, /page/dev) 가 이 클래스들을 쓴다.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 제목 영역 — fastfind.kr/dev 의 .page-head (eyebrow + 제목 + 부제) ── */
.dd-pagehead {
  width: 100vw; margin-inline: calc(50% - 50vw); margin-top: -1.5rem;
  padding: 64px 24px 48px; text-align: center;
  background: var(--card); border-bottom: 1px solid var(--border);
  animation: hc-fade .35s ease;
}
.dd-eyebrow {
  display: block; margin-bottom: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hc-accent-hover);
}
.dd-pagetitle { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; line-height: 1.2; }
.dd-pagesub { max-width: 620px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--muted-foreground); }
.dd-pagesub a { color: var(--hc-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) { .dd-pagehead { padding: 44px 20px 36px; } }
@media (max-width: 480px) { .dd-pagehead { padding: 36px 16px 30px; } .dd-pagesub { font-size: 13.5px; } }

.dd-page { margin-top: 32px; }
.dd-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }

.dd-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.dd-nav a {
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px;
  color: var(--muted-foreground); text-decoration: none; border-left: 2px solid transparent;
  transition: background .15s, color .15s;
}
.dd-nav a:hover { color: var(--foreground); background: var(--hc-accent-softer); }
.dd-nav a.on { color: var(--hc-accent-hover); background: var(--hc-accent-soft); font-weight: 600; }

.dd-h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--hc-accent-hover); margin: 44px 0 16px; padding-top: 8px;
}
.dd-h2:first-child { margin-top: 0; }

/* 질문 하나 = 접이식 카드 */
.dd-qa {
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  margin-bottom: 8px; overflow: hidden;
}
.dd-qa summary {
  padding: 17px 20px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dd-qa summary::-webkit-details-marker { display: none; }
.dd-qa summary::after {
  content: ''; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg); transition: transform .2s;
}
.dd-qa[open] summary::after { transform: rotate(-135deg); }
.dd-qa[open] summary { color: var(--hc-accent-hover); }
.dd-qa > div { padding: 0 20px 20px; }
.dd-qa p { margin: 0 0 12px; font-size: 14px; line-height: 1.85; color: var(--muted-foreground); }
.dd-qa p:last-child { margin-bottom: 0; }
.dd-qa a { color: var(--hc-accent-hover); }
.dd-qa ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dd-qa ul li { position: relative; padding-left: 15px; font-size: 14px; line-height: 1.75; color: var(--muted-foreground); }
.dd-qa ul li::before {
  content: ''; position: absolute; left: 1px; top: .66em; width: 5px; height: 5px; border-radius: 50%;
  background: var(--hc-accent); opacity: .6;
}
.dd-qa ul + p { margin-top: 0; }
.dd-qa code {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; padding: 3px 8px;
  border-radius: 6px; background: var(--background); border: 1px solid var(--border); color: var(--hc-accent-hover);
}
.dd-qa pre {
  margin: 12px 0; padding: 14px 16px; border-radius: 10px; background: var(--background);
  border: 1px solid var(--border); overflow-x: auto;
}
.dd-qa pre code { padding: 0; border: none; background: transparent; color: var(--foreground); }

/* 분류·값 나열 표 */
.dd-tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.dd-syn { width: 100%; border-collapse: collapse; margin: 4px 0 0; }
.dd-syn td { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--muted-foreground); vertical-align: top; }
.dd-syn tr:last-child td { border-bottom: 0; }
.dd-syn td:first-child { width: 210px; padding-right: 16px; }
.dd-syn code {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; padding: 3px 8px;
  border-radius: 6px; background: var(--background); border: 1px solid var(--border);
  color: var(--hc-accent-hover); white-space: nowrap;
}

/* 요청 처리 흐름 — 화살표로 잇는 칸 */
.dd-flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; font-family: 'SFMono-Regular', Consolas, monospace; margin: 4px 0 0; }
.dd-flow-box { flex: 1 1 120px; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; background: var(--background); }
.dd-flow-box b { display: block; font-size: 12.5px; font-weight: 700; color: var(--foreground); margin-bottom: 3px; letter-spacing: -.01em; }
.dd-flow-box span { display: block; font-size: 11px; line-height: 1.55; color: var(--muted-foreground); overflow-wrap: anywhere; }
.dd-flow-box.on { border-color: var(--hc-accent); background: var(--hc-accent-soft); }
.dd-flow-box.on b { color: var(--hc-accent-hover); }
.dd-flow-arrow { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); font-size: 13px; }

/* 페이지 안에서 바로 찾기 — 스크립트가 body 맨 앞에 심는다 */
.dd-find { position: relative; margin: 0 0 14px; }
.dd-find input {
  width: 100%; box-sizing: border-box; padding: 10px 34px 10px 13px; font: inherit; font-size: 13.5px;
  color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: 10px;
}
.dd-find input:focus { outline: none; border-color: var(--hc-accent); }
.dd-find input::placeholder { color: var(--muted-foreground); }
.dd-find .x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px;
  border: 0; background: none; color: var(--muted-foreground); cursor: pointer; font-size: 15px; line-height: 1; display: none;
}
.dd-find.has .x { display: block; }
.dd-none { display: none; padding: 28px 4px; color: var(--muted-foreground); font-size: 13.5px; }

.dd-qa summary .dd-anchor {
  margin-left: auto; padding: 0 6px; color: var(--muted-foreground); font-size: 12px;
  opacity: 0; transition: opacity .15s; text-decoration: none; flex: none;
}
.dd-qa summary:hover .dd-anchor { opacity: 1; }
.dd-qa summary .dd-anchor:hover { color: var(--hc-accent-hover); }

:where(h1, h2, h3, section, details, [id]) { scroll-margin-top: 84px; }

@media (max-width: 860px) {
  .dd-layout { grid-template-columns: 1fr; gap: 24px; }
  .dd-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .dd-nav a { border: 1px solid var(--border); border-radius: 99px; padding: 7px 14px; font-size: 12.5px; }
  .dd-syn td:first-child { width: auto; display: block; padding-bottom: 4px; }
  .dd-syn td:last-child { display: block; padding-top: 0; padding-bottom: 12px; }
  .dd-flow { flex-direction: column; }
  .dd-flow-arrow { flex: 0 0 22px; transform: rotate(90deg); }
}
@media (max-width: 768px) {
  .dd-qa summary .dd-anchor { display: none; }
}
@media (max-width: 480px) {
  .dd-nav a { padding: 6px 12px; font-size: 12px; }
  .dd-qa summary { padding: 15px 16px; font-size: 14.5px; }
  .dd-qa > div { padding-left: 16px; padding-right: 16px; }
}
