/* [2026-11-30] 움직이는 효과를 전부 뺐다(사용자 "에니메이션을 다없애보자") — 키프레임·전환·화면 넘김·스크롤 연동·장식 요소(.hero-fx · .orb · .progress) 없음.
   되살리려면 같은 폴더의 style.css.bak_20261130_애니메이션제거전 을 쓴다. */


:root {
  --g-900: #04150e;
  --g-800: #062a1c;
  --g-700: #0a4a31;
  --g-600: #0b6b43;
  --g-500: #0b8f4d;
  --g-400: #10b966;
  --g-300: #34d98a;
  --g-200: #8ff0bd;
  --g-100: #d7fbe8;
  --g-50: #f0fdf6;
  --lime: #c6ff4d;
  --mint: #2ee6c5;

  --bg: #eefaf3;
  --surface: rgba(255, 255, 255, 0.88);
  --solid: #ffffff;
  --text: #0c1f17;
  --muted: #476355;
  --line: #c9ecd9;
  --link: #08733f;
  --tint: #e6f9ee;
  --glow: rgba(16, 185, 102, 0.45);
  --radius: 24px;
  color-scheme: light dark;}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04150e;
    --surface: rgba(9, 38, 26, 0.82);
    --solid: #0a2a1d;
    --text: #e9fff4;
    --muted: #9dc9b3;
    --line: #174f37;
    --link: #6ff2b0;
    --tint: #0d3524;
    --glow: rgba(52, 217, 138, 0.35);}
}

*, *::before, *::after { box-sizing: border-box;}

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--g-400) transparent;}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;}

body.has-cta { padding-bottom: 108px;}

::selection { background: var(--lime); color: var(--g-900);}
::-webkit-scrollbar { width: 12px; height: 10px;}
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--g-300), var(--g-500)); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box;}
::-webkit-scrollbar-track { background: transparent;}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px;}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: var(--g-900); padding: 8px 14px; font-weight: 700; border-radius: 0 0 10px 0;}
.skip:focus { left: 0; z-index: 60;}

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px;}

/* ── 배경: 천천히 떠다니는 초록 빛 덩어리 + 가는 격자 ───────────────── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;}
.aurora i {
  position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%;
  filter: blur(72px); opacity: 0.5;}
.aurora i:nth-child(1) { left: -18vmax; top: -22vmax; background: radial-gradient(circle, var(--g-300), transparent 65%);}
.aurora i:nth-child(2) { right: -24vmax; top: 18vh; background: radial-gradient(circle, var(--mint), transparent 62%); opacity: 0.38;}
.aurora i:nth-child(3) { left: 12vw; bottom: -30vmax; background: radial-gradient(circle, var(--lime), transparent 60%); opacity: 0.3;}
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(11, 143, 77, 0.07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, rgba(11, 143, 77, 0.07) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 72%);}

/* ── 상단 띠: 반투명 유리 + 흐르는 빛줄 ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(120deg, rgba(4, 21, 14, 0.9), rgba(10, 74, 49, 0.86));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  color: #eafff4;
  box-shadow: 0 10px 30px -18px rgba(4, 21, 14, 0.8);}
.site-header::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--g-300), var(--mint), var(--g-300), var(--lime)) 0 0 / 300% 100%;}

.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 24px; min-height: 62px; padding-top: 9px; padding-bottom: 9px;}

.brand {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none;
  background: linear-gradient(100deg, #ffffff 0%, var(--lime) 35%, var(--mint) 60%, #ffffff 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;}
.brand::before {
  content: ""; width: 12px; height: 12px; border-radius: 4px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--lime), var(--g-300));
  box-shadow: 0 0 14px var(--lime);}
.brand:has(.logo) { background: none;}
.brand:has(.logo)::before { display: none;}
.brand .logo { display: block; height: 40px; width: auto;}

/* 메뉴: 화면이 좁으면 둘째 줄로 내려가 좌우로 밀어서 본다 */
.menu { margin-left: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none;}
.menu::-webkit-scrollbar { display: none;}
.menu ul { display: flex; gap: 6px; margin: 0; padding: 3px; list-style: none; white-space: nowrap;}
/* [2026-11-29] 넓은 화면에서는 상단 메뉴가 넘치면 줄을 바꾼다 — 메뉴 글자에 키워드를 두면(build.py MENU_KEEP_KEYWORD) 한 줄에 다 안 들어가
   끝 항목이 잘렸다(실측: 메뉴 폭 840px · 필요 폭 948px). 좁은 화면(640px 이하)은 종전대로 좌우로 밀어서 본다. */
@media (min-width: 641px) {
  .site-header .menu { overflow-x: visible;}
  .site-header .menu ul { flex-wrap: wrap;}
}
.menu a {
  position: relative; display: block; padding: 6px 15px; border-radius: 999px;
  color: #c5ecd8; font-size: 0.94rem; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(143, 240, 189, 0.22);
  background: rgba(255, 255, 255, 0.04);}
.menu a:hover {
  color: #ffffff; border-color: var(--g-300); background: rgba(52, 217, 138, 0.18);
  box-shadow: 0 0 0 3px rgba(52, 217, 138, 0.16), 0 8px 22px -10px var(--g-300);
  transform: translateY(-2px);}
.menu a[aria-current="page"] {
  color: var(--g-900); border-color: transparent;
  background: linear-gradient(120deg, var(--lime), var(--g-300));
  box-shadow: 0 6px 22px -8px var(--lime);}

/* 분야 펼침 메뉴: 버튼을 누르면 헤더 아래로 분야 목록이 펼쳐진다(스크립트 없이 details 로) */
.site-header .wrap { position: relative;}
.cats { flex: none;}
.cats > summary {
  list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.94rem; font-weight: 800; color: var(--g-900);
  background: linear-gradient(120deg, var(--g-300), var(--mint));
  box-shadow: 0 6px 20px -8px var(--g-300), inset 0 1px 0 rgba(255, 255, 255, 0.5);}
.cats > summary::-webkit-details-marker { display: none;}
.cats > summary::after { content: "▾"; font-size: 0.82em;}
.cats[open] > summary::after { transform: rotate(180deg);}
.cats > summary b {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  font-size: 0.74rem; background: rgba(4, 21, 14, 0.86); color: var(--lime);}
.cats > summary:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(52, 217, 138, 0.2), 0 10px 24px -10px var(--g-300);}
.cats.is-here > summary { background: linear-gradient(120deg, var(--lime), var(--g-300));}
.cats > ul {
  position: absolute; left: 20px; right: 20px; top: calc(100% + 6px); z-index: 60;
  margin: 0; padding: 14px; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  max-height: min(70vh, 560px); overflow-y: auto;
  border-radius: 20px; border: 1px solid rgba(143, 240, 189, 0.4);
  background: linear-gradient(160deg, rgba(4, 21, 14, 0.97), rgba(10, 74, 49, 0.97));
  box-shadow: 0 30px 60px -20px rgba(4, 21, 14, 0.75), 0 0 0 4px rgba(52, 217, 138, 0.12);}

.cats li { margin: 0;}
.cats ul a {
  display: block; height: 100%; padding: 10px 13px; border-radius: 12px;
  color: #d7fbe8; font-size: 0.9rem; font-weight: 600; line-height: 1.45; text-decoration: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(143, 240, 189, 0.14);}
.cats ul a:hover { background: rgba(52, 217, 138, 0.22); border-color: var(--g-300); color: #ffffff; transform: translateX(4px);}
.cats ul a[aria-current="page"] { background: linear-gradient(120deg, var(--lime), var(--g-300)); color: var(--g-900); border-color: transparent;}

/* ── 현재 위치 ─────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 22px; font-size: 0.86rem; color: var(--muted);}
.crumbs a, .crumbs span:last-child {
  padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--muted); font-weight: 600;}
.crumbs a:hover { color: var(--g-900); background: var(--g-200); border-color: var(--g-300);}
.crumbs span:last-child { color: var(--link); border-color: var(--g-300);}

/* ── 본문 카드: 유리판 + 천천히 도는 그라데이션 테두리 ─────────────── */
article {
  position: relative;
  margin-top: 30px;
  padding: 44px 46px 40px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -40px var(--glow), 0 2px 10px rgba(4, 21, 14, 0.06);
  counter-reset: sec;}
article::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from 0deg, var(--g-300), var(--lime), var(--mint), var(--g-500), var(--g-300));}
article::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius); background: var(--solid); opacity: 0.9;}

.crumbs + article { margin-top: 14px;}

h1, h2, h3 { line-height: 1.35; letter-spacing: -0.025em; text-wrap: balance;}

/* 머리 영역: 짙은 초록 판 위로 빛이 지나간다 */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: -44px -46px 30px; padding: 56px 46px 36px;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(198, 255, 77, 0.28), transparent 46%),
    radial-gradient(90% 120% at 0% 100%, rgba(46, 230, 197, 0.3), transparent 50%),
    linear-gradient(135deg, var(--g-800) 0%, var(--g-600) 52%, var(--g-400) 100%);
  color: #f1fff8;}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: radial-gradient(rgba(255, 255, 255, 0.5) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%); mask-image: linear-gradient(120deg, transparent 20%, #000 90%);}
.hero::after {
  content: ""; position: absolute; top: -60%; left: -45%; width: 34%; height: 220%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg);}

.kind-cat .hero { background:
    radial-gradient(120% 140% at 100% 0%, rgba(198, 255, 77, 0.22), transparent 46%),
    linear-gradient(135deg, #05332f 0%, #0a7f6d 55%, var(--mint) 120%);}
.kind-page .hero { background:
    radial-gradient(120% 140% at 100% 0%, rgba(143, 240, 189, 0.22), transparent 46%),
    linear-gradient(135deg, var(--g-900) 0%, var(--g-700) 60%, var(--g-500) 120%);}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5.2vw, 2.5rem); font-weight: 900; line-height: 1.38;
  background: linear-gradient(100deg, #ffffff 10%, var(--lime) 45%, #ffffff 70%, var(--g-200) 100%) 0 0 / 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(4, 21, 14, 0.45));}
h1 + p {
  position: relative; margin: 20px 0 0; padding-left: 18px;
  font-size: 1.06rem; line-height: 1.8; color: #dcfbea;}
h1 + p::before {
  content: ""; position: absolute; left: 0; top: 0.35em; bottom: 0.35em; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--lime), var(--mint)); box-shadow: 0 0 12px var(--lime);}
.hero p + p { margin-top: 14px; color: #dcfbea;}

/* 소제목: 번호 배지 + 빛나는 밑줄 */
h2 {
  position: relative;
  counter-increment: sec;
  font-size: clamp(1.28rem, 3.7vw, 1.58rem); font-weight: 800;
  margin: 64px 0 20px; padding: 6px 0 14px 60px; min-height: 46px;
  scroll-margin-top: 104px;}
h2::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center;
  font-size: 1.02rem; font-weight: 900; letter-spacing: 0; color: var(--g-900);
  background: linear-gradient(135deg, var(--lime), var(--g-300) 60%, var(--mint));
  box-shadow: 0 10px 24px -8px var(--g-300), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: rotate(-6deg);}
h2:hover::before { transform: rotate(6deg) scale(1.08);}
h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--g-400), var(--lime), var(--mint), transparent 92%) 0 0 / 200% 100%;}

h3 { position: relative; font-size: 1.12rem; font-weight: 800; margin: 36px 0 10px; padding-left: 20px; color: var(--link);}
h3::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 9px; border-radius: 2px;
  background: linear-gradient(135deg, var(--g-400), var(--mint)); transform: rotate(45deg);
  box-shadow: 0 0 10px var(--g-300);}

p { margin: 0 0 18px;}
ul, ol { padding-left: 1.3em;}
li { margin: 4px 0;}
li::marker { color: var(--g-400); font-weight: 800;}

/* 본문 링크: 밑줄이 차오르는 효과 */
article a {
  color: var(--link); font-weight: 600; text-decoration: none;
  background: linear-gradient(90deg, var(--g-200), var(--lime)) 0 100% / 100% 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 2px; border-radius: 3px;}
article a:hover { background-size: 100% 100%; color: var(--g-900);}
article a[rel~="nofollow"]::after { content: "↗"; margin-left: 2px; font-size: 0.8em; opacity: 0.7;}
.hero a { color: var(--lime);}

code {
  display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: middle; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; line-height: 1.5;
  background: linear-gradient(135deg, var(--g-800), var(--g-600)); color: var(--lime);
  padding: 3px 11px; border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(198, 255, 77, 0.35), 0 8px 20px -10px var(--g-500);}

/* 본문 이미지 */
.fig { margin: 24px 0 28px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -26px var(--glow), 0 0 0 1px var(--line);}
.fig img { display: block; width: 100%; height: auto; background: var(--tint);}
.fig:hover img { transform: scale(1.035); filter: saturate(1.12);}

/* 목차 */
.toc {
  position: relative; overflow: hidden;
  margin: 0 0 10px; padding: 20px 24px 18px 30px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(135deg, var(--tint), var(--solid));
  box-shadow: 0 18px 40px -28px var(--glow);}
.toc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--lime), var(--g-300), var(--mint)) 0 0 / 100% 300%;}

.toc-title {
  display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 900; letter-spacing: 0.08em; color: var(--g-900);
  background: linear-gradient(120deg, var(--lime), var(--g-300));}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; font-size: 0.97rem; font-weight: 600;}
.toc li { counter-increment: toc; margin: 0;}
.toc a {
  display: flex; gap: 12px; align-items: baseline; padding: 6px 8px; border-radius: 10px;
  color: var(--text); background: none;}
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-size: 0.8rem; font-weight: 900; color: var(--g-400);}
.toc a:hover { transform: translateX(8px); background: var(--g-200); color: var(--g-900);}
.toc + h2 { margin-top: 48px;}

/* 표 */
.table-wrap {
  overflow-x: auto; margin: 26px 0; border-radius: 16px;
  border: 1px solid var(--line); background: var(--solid);
  box-shadow: 0 22px 46px -30px var(--glow);}
table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 0.94rem; line-height: 1.6;}
th, td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line);}
th {
  color: #ffffff; font-weight: 800; white-space: nowrap; border-bottom: 0;
  background: linear-gradient(120deg, var(--g-700), var(--g-500), var(--g-400)) 0 0 / 200% 100%;}
tr:nth-child(odd) td { background: var(--tint);}

tr:hover td { background: var(--g-200); color: var(--g-900);}
tr:last-child td { border-bottom: 0;}
td:first-child { font-weight: 800; white-space: nowrap; color: var(--link);}

/* FAQ(마지막 소제목 아래): 질문은 Q 배지, 답은 초록 선 */
article > h2:last-of-type ~ h3 {
  margin: 22px 0 0; padding: 14px 16px 14px 54px;
  color: var(--text); border: 1px solid var(--line); border-radius: 14px 14px 0 0; border-bottom: 0;
  background: linear-gradient(120deg, var(--tint), var(--solid));}
article > h2:last-of-type ~ h3::before {
  content: "Q"; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 9px; transform: none;
  display: grid; place-items: center; font-size: 0.86rem; font-weight: 900; color: var(--g-900);
  background: linear-gradient(135deg, var(--lime), var(--g-300)); box-shadow: 0 6px 16px -6px var(--g-300);}
article > h2:last-of-type ~ h3 + p {
  margin: 0 0 6px; padding: 14px 18px 16px 54px;
  border: 1px solid var(--line); border-top: 1px dashed var(--line); border-radius: 0 0 14px 14px;
  background: var(--solid); box-shadow: 0 16px 34px -28px var(--glow);}

/* 운영 정보(본문 마지막 문단) */
article > p:last-of-type {
  position: relative; margin-top: 46px; padding: 18px 20px 18px 54px;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--tint), var(--solid));
  font-size: 0.9rem; color: var(--muted);}
article > p:last-of-type::before {
  content: "✓"; position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 0.85rem; color: var(--g-900);
  background: linear-gradient(135deg, var(--lime), var(--g-300));}

/* ── 하단 띠 ───────────────────────────────────────────────────────── */
.site-footer {
  position: relative; margin-top: 76px; font-size: 0.9rem; color: #cdeedd;
  background: linear-gradient(160deg, var(--g-900), var(--g-800) 55%, var(--g-700));}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: radial-gradient(circle at 14px 18px, var(--g-900) 13px, transparent 14px) 0 0 / 28px 16px repeat-x;}
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 28px; padding-bottom: 34px;}
.site-footer .brand { font-size: 1.1rem;}
.site-footer .menu { margin-left: 0; flex: 1 1 auto;}
.site-footer .menu ul { flex-wrap: wrap; white-space: normal;}
.site-footer .menu a { font-size: 0.86rem; padding: 4px 12px;}
/* [2026-11-29] 바닥의 분야 묶음 목록(build.py CATS_PLACE = "footer"): 한 줄을 통째로 쓰고 위에 묶음 이름을 둔다. */
.site-footer .foot-cats { flex: 1 1 100%; padding-top: 12px; border-top: 1px solid rgba(143, 240, 189, 0.22);}
.site-footer .foot-title { margin: 0 0 8px 6px; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.02em; color: var(--lime);}
.to-top {
  padding: 7px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--g-900);
  background: linear-gradient(120deg, var(--lime), var(--g-300)); box-shadow: 0 8px 22px -10px var(--lime);}
.to-top::before { content: "↑ ";}
.to-top:hover { transform: translateY(-3px);}

/* ── 404 · 중간 주소 안내 ──────────────────────────────────────────── */
.notfound { text-align: left;}
.notfound .code404 {
  margin: 0; font-size: clamp(4rem, 18vw, 7.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(100deg, var(--g-500), var(--lime), var(--mint), var(--g-500)) 0 0 / 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;}
.notfound h1 { margin-top: 8px; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); filter: none; font-size: clamp(1.4rem, 4.6vw, 1.9rem);}
.notfound h1 + p { color: var(--muted); padding-left: 18px;}
.notfound h2 { margin-top: 40px;}
.notfound ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px;}
.notfound li { margin: 0;}
.notfound li a {
  display: block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--solid);
  font-size: 0.93rem;}
.notfound li a:hover { background: var(--g-200);}
.notfound > p:last-of-type { margin-top: 20px; padding: 0 0 0 18px; border: 0; background: none; font-size: 1.05rem;}
.notfound > p:last-of-type::before { content: none;}
.go-page main { padding-top: 12vh;}
.go-page .notfound > p { margin: 0; padding: 0; border: 0; background: none; font-size: 1.05rem; color: var(--text);}
.go-page .notfound > p::before { content: none;}

/* ── 하단 상담 버튼: 떠 있는 유리 받침 + 빛이 지나가는 버튼 ─────────── */
.cta-bar {
  position: fixed; left: 50%; bottom: 14px; z-index: 45; transform: translateX(-50%);
  display: flex; gap: 10px; width: min(540px, calc(100% - 24px)); padding: 9px;
  border-radius: 999px; border: 1px solid rgba(143, 240, 189, 0.45);
  background: rgba(4, 21, 14, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 18px 44px -14px rgba(4, 21, 14, 0.7), 0 0 0 4px rgba(52, 217, 138, 0.14);}

.cta {
  position: relative; overflow: hidden; flex: 1 1 0;
  padding: 13px 10px; border-radius: 999px;
  background: linear-gradient(120deg, var(--g-400), var(--g-300)); color: var(--g-900);
  font-weight: 900; font-size: 0.98rem; text-align: center; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -10px var(--g-300), inset 0 1px 0 rgba(255, 255, 255, 0.55);}
.cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);}

   /* left → translate(위와 같은 이유 · 버튼 폭의 190% = 자기 폭 40%의 475%) */
.cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 30px -10px var(--g-300), 0 0 0 3px rgba(198, 255, 77, 0.5);}
.cta-kakao { background: linear-gradient(120deg, #fee500, #ffd000); color: #191600; box-shadow: 0 10px 24px -10px #fee500, inset 0 1px 0 rgba(255, 255, 255, 0.6);}
.cta-telegram { background: linear-gradient(120deg, #37b6f2, #1d95d8); color: #ffffff; box-shadow: 0 10px 24px -10px #2aabee, inset 0 1px 0 rgba(255, 255, 255, 0.45);}

/* ③ 사진: 화면에 들어오면서 둥근 창이 열리듯 펼쳐지고, 지나가는 동안 사진이 천천히 미끄러진다 · 올리면 빛이 훑는다 */
.fig { position: relative;}
.fig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.5) 50%, transparent 58%) 130% 0 / 250% 100% no-repeat;}
.fig:hover::after { background-position: -30% 0;}
.fig:hover { box-shadow: 0 30px 60px -24px var(--glow), 0 0 0 2px var(--g-300), 0 0 40px -8px var(--lime);}

/* ④ 굵은 글씨: 형광펜이 왼쪽에서 그어진다 */
article strong { background: linear-gradient(transparent 60%, rgba(198, 255, 77, 0.55) 0) 0 0 / 100% 100% no-repeat; border-radius: 3px;}

.toc:hover, .table-wrap:hover { box-shadow: 0 0 0 2px var(--g-300), 0 0 44px -10px var(--lime), 0 26px 50px -30px var(--glow); transform: translateY(-2px);}

.brand:hover .logo { transform: rotate(-7deg) scale(1.1); filter: drop-shadow(0 0 14px var(--lime));}

/* ⑧ 바닥: 별빛이 깜빡인다 */
.site-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 8% 24%, #ffffff, transparent 60%),
    radial-gradient(1.4px 1.4px at 23% 68%, var(--lime), transparent 60%),
    radial-gradient(1.8px 1.8px at 41% 18%, #ffffff, transparent 60%),
    radial-gradient(1.3px 1.3px at 57% 80%, var(--g-200), transparent 60%),
    radial-gradient(1.7px 1.7px at 72% 34%, #ffffff, transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 62%, var(--mint), transparent 60%),
    radial-gradient(1.5px 1.5px at 95% 16%, #ffffff, transparent 60%);}
.site-footer .wrap { position: relative; z-index: 1;}

@media (max-width: 640px) {
  body { font-size: 16px;}
  .wrap { padding: 0 16px;}
  .site-header .wrap { min-height: 0; padding-top: 8px; padding-bottom: 8px;}
  .menu { margin-left: -6px; width: calc(100% + 6px);}
  /* 오른쪽 끝을 흐리게 해서 옆으로 더 밀 수 있음을 알린다 */
  .site-header .menu { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 26px;}
  .site-footer .menu { margin-left: 0; flex-basis: 100%; width: 100%;}
  /* 첫 줄: 사이트 이름 + 분야 버튼 · 둘째 줄: 메뉴 */
  .cats { order: 1; margin-left: auto;}
  .site-header .menu { order: 2;}
  .cats > summary { padding: 5px 12px; font-size: 0.88rem;}
  .cats > ul { left: 12px; right: 12px; grid-template-columns: 1fr; max-height: 62vh; padding: 10px; gap: 6px;}
  main.wrap { padding: 0 12px;}
  article { margin-top: 18px; padding: 28px 20px 28px; --radius: 20px;}
  .hero { margin: -28px -20px 24px; padding: 38px 20px 28px;}
  .crumbs + article { margin-top: 12px;}
  h2 { margin-top: 50px; padding-left: 52px; scroll-margin-top: 140px;}
  h2::before { width: 40px; height: 40px; border-radius: 13px; font-size: 0.92rem;}
  .toc { padding: 16px 16px 14px 24px;}
  article > h2:last-of-type ~ h3 { padding-left: 50px;}
  article > h2:last-of-type ~ h3 + p { padding-left: 18px;}
  .aurora i { filter: blur(54px); opacity: 0.36;}
  .cta { font-size: 0.92rem; padding: 12px 6px;}
}

@media print {
  .site-header, .site-footer, .toc, .cta-bar, .skip, .crumbs, .aurora { display: none;}
  body { background: #fff; color: #000;}
  article { box-shadow: none; padding: 0; background: none;}
  article::before, article::after { display: none;}
  .hero { margin: 0 0 20px; padding: 0; background: none; color: #000;}
  h1 { background: none; color: #000; filter: none;}
  h1 + p { color: #000;}
}
