/* ============================================================
   HUMAN API — 커뮤니티 운영 안내문
   ------------------------------------------------------------
   홍보 랜딩이 아니라 '읽는 문서'로 설계했습니다.
     · 한 단 본문 + 좌측 고정 목차
     · 읽기 좋은 폭(약 66자) · 넉넉한 행간
     · 색은 의미에만 사용 (초록=온라인, 보라=오프라인)
     · 라이트 기본 + 다크 모드 자동 대응 + 인쇄 스타일
   ============================================================ */

:root {
  /* Light (기본) */
  --bg:       #FAF8F4;
  --bg-2:     #F3F0E9;
  --card:     #FFFFFF;

  --ink:      #1A1A18;
  --ink-2:    #55524C;
  --ink-3:    #8A857C;

  --rule:     #E4DFD4;
  --rule-2:   #D3CDC0;

  --on:       #2F6B45;   /* 온라인 */
  --on-bg:    #EAF3ED;
  --off:      #4B4396;   /* 오프라인 */
  --off-bg:   #EEEDF8;
  --warn:     #9A5A21;
  --warn-bg:  #FBF0E4;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 40rem;      /* 본문 읽기 폭 */
  --pad: clamp(20px, 5vw, 40px);
  --bar: 52px;
  --r: 10px;
  --ease: cubic-bezier(.22,.68,.35,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #101012;
    --bg-2:    #17171A;
    --card:    #191A1D;

    --ink:     #EAE7E1;
    --ink-2:   #A8A49C;
    --ink-3:   #7A766E;

    --rule:    rgba(234,231,225,.13);
    --rule-2:  rgba(234,231,225,.24);

    --on:      #8FD3A6;
    --on-bg:   rgba(143,211,166,.11);
    --off:     #ADA4F0;
    --off-bg:  rgba(173,164,240,.11);
    --warn:    #E0A56C;
    --warn-bg: rgba(224,165,108,.11);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 24px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
strong { font-weight: 700; color: var(--ink); }

.mono { font-family: var(--mono); font-variant-ligatures: none; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: var(--on); color: var(--bg); }
:focus-visible { outline: 2px solid var(--on); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 90;
  padding: 10px 16px; border-radius: var(--r);
  background: var(--ink); color: var(--bg); font-weight: 600;
  transform: translateY(-250%);
}
.skip:focus { transform: none; }

/* ---------- 등장 (아주 절제된 페이드) ---------- */
.sec, .notify, .lede { opacity: 1; }
[data-fade] {
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-fade].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-fade] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================================================
   상단 바
   ============================================================ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar__in {
  height: var(--bar);
  display: flex; align-items: center; gap: 10px;
  padding-inline: var(--pad);
  max-width: 1020px; margin-inline: auto;
}
.topbar__brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  letter-spacing: .03em; text-decoration: none; flex: none;
}
.topbar__mark { width: 21px; height: 21px; color: var(--on); flex: none; }
.topbar__sep { color: var(--ink-3); }
.topbar__doc { font-size: 14px; color: var(--ink-2); }
.topbar__badge {
  margin-left: auto; flex: none;
  font-size: 12px; font-weight: 600; color: var(--on);
  padding: 4px 11px; border-radius: 999px;
  background: var(--on-bg); border: 1px solid color-mix(in srgb, var(--on) 30%, transparent);
}
.topbar__cta {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; color: var(--bg); background: var(--ink);
  padding: 7px 14px; border-radius: 999px;
  transition: opacity .2s, transform .2s var(--ease);
}
.topbar__cta:hover { opacity: .88; transform: translateY(-1px); }
.topbar__cta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--on); flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}
.topbar__progress {
  height: 2px; width: 0%; background: var(--on);
  transition: width .1s linear;
}

/* ============================================================
   페이지 골격
   ============================================================ */
.page {
  max-width: 1020px; margin-inline: auto;
  padding: calc(var(--bar) + clamp(40px, 7vw, 80px)) var(--pad) 0;
}

/* 머리말 */
.lede {
  max-width: var(--measure);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.lede__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--ink-3);
}
.lede__title {
  margin-top: 16px;
  font-size: clamp(28px, 4.6vw, 42px); line-height: 1.28;
  font-weight: 800; letter-spacing: -.035em;
}
.lede__sub {
  margin-top: 20px; font-size: 17px; color: var(--ink-2); line-height: 1.8;
}

.meta {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 24px;
}
.meta > div { display: grid; gap: 2px; }
.meta dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3);
}
.meta dd { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--on); flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--on) 45%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- 처음 후킹 (참여 유도) ---------- */
.hook {
  max-width: var(--measure);
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(22px, 3.4vw, 30px);
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--rule-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 28px -20px rgba(0,0,0,.28);
  position: relative; overflow: hidden;
}
.hook::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--on), var(--off));
}
.hook__kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: -.005em; color: var(--on);
}
.hook__kicker .mono { letter-spacing: .12em; font-size: 11px; }
.hook__lead {
  margin-top: 12px;
  font-size: clamp(19px, 2.6vw, 23px); line-height: 1.45;
  font-weight: 700; letter-spacing: -.032em; color: var(--ink);
}
.hook__sub { margin-top: 12px; font-size: 15.5px; line-height: 1.78; color: var(--ink-2); }
.hook__btns { margin-top: 20px; display: grid; gap: 9px; }
.hook__fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

.btn {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 11px; text-decoration: none;
  border: 1px solid var(--rule-2); background: var(--bg);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn__k {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: -.01em;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.btn__t { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.btn__go { font-size: 15px; color: var(--ink-3); }
.btn--on  .btn__k { color: var(--on);  background: var(--on-bg);  border: 1px solid color-mix(in srgb, var(--on) 30%, transparent); }
.btn--off .btn__k { color: var(--off); background: var(--off-bg); border: 1px solid color-mix(in srgb, var(--off) 30%, transparent); }
.btn--on:hover  { border-color: var(--on);  background: var(--on-bg); }
.btn--off:hover { border-color: var(--off); background: var(--off-bg); }
.btn:hover .btn__go { color: var(--ink); }

/* 본문 레이아웃: 목차 + 내용 */
.layout {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(40px, 6vw, 64px);
}

/* ============================================================
   목차
   ============================================================ */
.toc { position: sticky; top: calc(var(--bar) + 32px); }
.toc__wrap { border: 0; }
.toc__sum {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--ink-3); text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
  cursor: default; list-style: none;
}
.toc__sum::-webkit-details-marker { display: none; }
.toc__count {
  margin-left: auto; font-size: 10.5px; letter-spacing: .04em;
  color: var(--ink-3); padding: 1px 6px; border: 1px solid var(--rule); border-radius: 4px;
}
.toc__list { margin-top: 10px; display: grid; }
.toc__list a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 6px 8px; margin-left: -8px; border-radius: 6px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.toc__list a em {
  font-size: 10.5px; color: var(--ink-3); flex: none; letter-spacing: .04em;
}
.toc__list a:hover { color: var(--ink); background: var(--bg-2); }
.toc__list a.is-active { color: var(--on); font-weight: 600; background: var(--on-bg); }
.toc__list a.is-active em { color: var(--on); }

/* 목차의 '지금 참여하기' — 눈에 띄게 */
.toc__join { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rule-2); }
.toc__join a { color: var(--on); font-weight: 700; }
.toc__join a em { color: var(--on); }
.toc__join a::after { content: "↗"; margin-left: auto; font-size: 11px; opacity: .8; }

/* ============================================================
   본문
   ============================================================ */
.doc { max-width: var(--measure); }
.doc > .sec + .sec { margin-top: clamp(52px, 7vw, 80px); }

.sec > * + * { margin-top: 18px; }
.sec p { color: var(--ink-2); }
.sec p strong { color: var(--ink); }

.h2 {
  display: flex; gap: 14px; align-items: baseline;
  font-size: clamp(21px, 2.8vw, 26px); line-height: 1.4;
  font-weight: 800; letter-spacing: -.032em; color: var(--ink);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
  margin-bottom: 24px !important;
  scroll-margin-top: calc(var(--bar) + 24px);
}
.h2__no {
  font-size: 12px; font-weight: 700; color: var(--on);
  flex: none; letter-spacing: .04em; padding-top: 2px;
}
.h3 {
  margin-top: 30px !important; font-size: 16.5px; font-weight: 700;
  letter-spacing: -.022em; color: var(--ink);
}
.sec__note { font-size: 15px; color: var(--ink-3) !important; }

/* 인용 / 강조 문단 */
.pull {
  margin-block: 26px !important;
  padding: 22px 24px; border-radius: var(--r);
  background: var(--bg-2); border-left: 3px solid var(--on);
}
.pull p { color: var(--ink); }
.pull p + p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.pull__big {
  font-size: clamp(21px, 3vw, 27px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.3;
}
.pull--final { border-left-color: var(--ink); }
.pull--final p { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.75; font-weight: 600; }

.callout {
  padding: 16px 20px; border-radius: var(--r);
  background: var(--on-bg); color: var(--ink) !important;
  font-size: 16px; border: 1px solid color-mix(in srgb, var(--on) 22%, transparent);
}
.strike { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- 02 지향점 목록 ---------- */
.prefer { border-top: 1px solid var(--rule); }
.prefer li {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 4px 20px; align-items: baseline;
  padding: 13px 2px; border-bottom: 1px solid var(--rule);
}
.prefer__from {
  font-size: 14px; color: var(--ink-3);
  text-decoration: line-through; text-decoration-thickness: 1px;
  text-decoration-color: var(--rule-2);
}
.prefer__to {
  font-size: 17px; font-weight: 700; letter-spacing: -.024em; color: var(--ink);
}
.prefer__to::before {
  content: "→"; color: var(--on); margin-right: 9px; font-weight: 400;
}

/* ---------- 흐름 (세로, 연결선) ---------- */
.flow { position: relative; padding-left: 22px; }
.flow::before {
  content: ""; position: absolute; left: 4px; top: 12px; bottom: 12px;
  width: 1px; background: var(--rule-2);
}
.flow li {
  position: relative; padding: 7px 0;
  font-size: 15.5px; color: var(--ink);
}
.flow li::before {
  content: ""; position: absolute; left: -22px; top: 15px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--rule-2);
}
.flow li[data-zone="on"]::before  { border-color: var(--on); }
.flow li[data-zone="off"]::before { border-color: var(--off); }
.flow li[data-zone="off"] { color: var(--off); font-weight: 600; }
.flow__loop {
  color: var(--ink-3) !important; font-size: 14px !important;
}
.flow__loop::before { border-style: dashed !important; border-color: var(--rule-2) !important; }
.flow__loop::after {
  content: "↺"; margin-left: 8px; color: var(--on);
}

.legend {
  display: flex; gap: 20px; font-size: 13px; color: var(--ink-3) !important;
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sw--on  { background: var(--on); }
.sw--off { background: var(--off); }

/* ---------- 단계 (가로 흐름) ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 7px 0; align-items: center; }
.steps li {
  font-size: 14px; color: var(--ink);
  padding: 6px 12px; border-radius: 7px;
  background: var(--bg-2); border: 1px solid var(--rule);
}
.steps li + li::before {
  content: "→"; display: inline-block; margin: 0 9px; color: var(--ink-3);
}
.steps li + li { border: 0; background: none; padding-left: 0; }
.steps--tight li { font-size: 13.5px; }

/* ---------- 프로그램 항목 ---------- */
.items { display: grid; }
.item {
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.item:last-child { border-bottom: 1px solid var(--rule); }
.item > * + * { margin-top: 12px; }
.item__t {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 17.5px; font-weight: 700; letter-spacing: -.026em; color: var(--ink);
}
.item__no {
  font-size: 11.5px; font-weight: 700; color: var(--on); flex: none; letter-spacing: .04em;
}
.item--off .item__no { color: var(--off); }
.item p { font-size: 15.5px; color: var(--ink-2); line-height: 1.78; }
.item__foot { font-size: 14.5px !important; color: var(--ink-3) !important; }
.item__foot strong { color: var(--ink-2); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: 13px; color: var(--ink-2);
  padding: 4px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--rule);
}
.tags--warn li { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.tags--role li { font-family: var(--mono); font-size: 12.5px; color: var(--on); background: var(--on-bg); border-color: color-mix(in srgb, var(--on) 25%, transparent); }

.bullets { display: grid; gap: 6px; }
.bullets li {
  position: relative; padding-left: 17px;
  font-size: 15px; color: var(--ink-2); line-height: 1.7;
}
.bullets li::before {
  content: ""; position: absolute; left: 3px; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3);
}

.swap { display: grid; gap: 6px; }
.swap li {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font-size: 14px; padding: 7px 14px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--rule);
}
.swap i { color: var(--on); font-style: normal; font-weight: 700; }
.item--off .swap i { color: var(--off); }

.zones { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.zones li {
  font-size: 14px; color: var(--ink-2);
  padding: 9px 13px; border-radius: 8px;
  background: var(--off-bg); border: 1px solid color-mix(in srgb, var(--off) 18%, transparent);
}

/* ---------- 06 프로필 예시 ---------- */
.profile {
  margin-block: 26px !important;
  padding: 22px 24px; border-radius: var(--r);
  border: 1px solid var(--rule-2); background: var(--card);
}
.profile__cap {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3);
}
.profile__name {
  margin-top: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.03em; color: var(--ink);
}
.profile__dl { margin-top: 16px; display: grid; gap: 12px; }
.profile__row { display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: 4px 14px; align-items: baseline; }
.profile__row dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.profile__row dd { font-size: 15px; color: var(--ink); }
.profile__row--give dt { color: var(--on); }
.profile__row--need dt { color: var(--off); }

/* ---------- 07 개념 ---------- */
.concept { display: grid; border-top: 1px solid var(--rule); }
.concept > div {
  display: grid; grid-template-columns: 9.5rem minmax(0,1fr);
  gap: 4px 20px; align-items: baseline;
  padding: 13px 2px; border-bottom: 1px solid var(--rule);
}
.concept dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--on); }
.concept dd { font-size: 15.5px; color: var(--ink); }

/* ---------- 12 CALL ONLINE ---------- */
.callbox {
  margin-block: 22px !important;
  padding: 18px 20px; border-radius: var(--r);
  background: var(--off-bg); border: 1px solid color-mix(in srgb, var(--off) 24%, transparent);
}
.callbox__label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--off); }
.callbox__msg { margin-top: 8px; font-size: 16px; color: var(--ink) !important; font-weight: 600; }

/* ---------- 15 핵심 구조 ---------- */
.tree {
  margin-top: 22px; padding: 26px 22px; border-radius: var(--r);
  border: 1px solid var(--rule); background: var(--bg-2);
  display: grid; justify-items: center; gap: 0; text-align: center;
}
/* 연결선은 요소 '바깥'에 그린다 — 안쪽에 그리면 알약이 원처럼 부푼다 */
.tree > * + * { position: relative; margin-top: 26px; }
.tree > * + *::before {
  content: ""; position: absolute; left: 50%; top: -26px;
  width: 1px; height: 26px; background: var(--rule-2); transform: translateX(-50%);
}
.tree__root {
  font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .05em;
  padding: 9px 20px; border-radius: 999px;
  color: var(--on); background: var(--on-bg);
  border: 1px solid color-mix(in srgb, var(--on) 34%, transparent);
}
.tree__node {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 8px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--rule-2);
}
.tree__node--key { border-color: var(--ink-3); }
.tree__node span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.tree__block { width: 100%; display: grid; justify-items: center; }
.tree__zone {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  padding: 7px 16px; border-radius: 999px;
}
.tree__block[data-zone="on"]  .tree__zone { color: var(--on);  background: var(--on-bg);  border: 1px solid color-mix(in srgb, var(--on) 28%, transparent); }
.tree__block[data-zone="off"] .tree__zone { color: var(--off); background: var(--off-bg); border: 1px solid color-mix(in srgb, var(--off) 28%, transparent); }
.tree__leaves {
  margin-top: 14px; width: 100%; max-width: 460px;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px;
  position: relative;
}
.tree__leaves::before {
  content: ""; position: absolute; left: 16.6%; right: 16.6%; top: -8px;
  height: 1px; background: var(--rule-2);
}
.tree__leaves li {
  font-size: 13px; color: var(--ink-2);
  padding: 8px 6px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--rule);
}
.tree__loop {
  font-size: 13px; color: var(--ink-3);
  padding: 6px 15px; border-radius: 999px; border: 1px dashed var(--rule-2);
}
.tree__loop::before { border-left: 1px dashed var(--rule-2); background: none !important; }
.tree__loop::after { content: " ↺"; color: var(--on); }

/* ---------- 17 지금 참여하기 ---------- */
.join {
  margin-top: 24px !important;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px;
}
.join__card {
  display: block; padding: 22px 22px 20px; border-radius: 13px;
  text-decoration: none; background: var(--card);
  border: 1px solid var(--rule-2);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.join__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 32px -22px rgba(0,0,0,.34);
}
.join__k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; }
.join__card--on  .join__k { color: var(--on); }
.join__card--off .join__k { color: var(--off); }
.join__card--on:hover  { border-color: var(--on); }
.join__card--off:hover { border-color: var(--off); }
.join__t {
  margin-top: 10px; display: flex; align-items: baseline; gap: 8px;
  font-size: 17px; font-weight: 700; letter-spacing: -.028em; color: var(--ink);
  line-height: 1.4;
}
.join__go { margin-left: auto; font-size: 14px; color: var(--ink-3); flex: none; }
.join__card:hover .join__go { color: var(--ink); }
.join__d { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.join__u {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-3); word-break: break-all;
}

/* ============================================================
   오픈 알림
   ============================================================ */
.notify {
  margin-top: clamp(56px, 8vw, 88px);
  padding: clamp(26px, 4vw, 36px);
  border-radius: 14px; border: 1px solid var(--rule-2); background: var(--card);
}
.notify__t { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.notify__p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.8; }
.notify__form { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.notify__form input {
  flex: 1 1 240px; min-width: 0;
  padding: 12px 15px; border-radius: 9px;
  border: 1px solid var(--rule-2); background: var(--bg);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.notify__form input::placeholder { color: var(--ink-3); }
.notify__form input:focus {
  outline: none; border-color: var(--on);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--on) 16%, transparent);
}
.notify__form button {
  flex: none; padding: 12px 22px; border-radius: 9px; border: 0;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity .2s;
}
.notify__form button:hover { opacity: .86; }
.notify__form button:disabled { opacity: 1; background: var(--bg-2); color: var(--ink-3); cursor: not-allowed; border: 1px solid var(--rule); }
.notify__msg { margin-top: 11px; font-size: 14px; color: var(--ink-2); min-height: 20px; }
.notify__msg.is-ok  { color: var(--on); }
.notify__msg.is-err { color: #C0392B; }
@media (prefers-color-scheme: dark) { .notify__msg.is-err { color: #F09A90; } }
.notify__fine { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.notify__fine a {
  color: var(--on); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--on) 45%, transparent);
}
.notify__fine a:hover { border-bottom-color: var(--on); }

/* ============================================================
   푸터
   ============================================================ */
.foot {
  margin-top: clamp(64px, 9vw, 104px);
  padding: clamp(36px, 5vw, 52px) 0 clamp(40px, 6vw, 60px);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.foot__slogan {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: .04em; color: var(--on);
}
.foot__tag { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

.foot__join {
  max-width: 560px; margin: clamp(28px, 4vw, 38px) auto 0;
  padding: clamp(20px, 3vw, 26px);
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--rule);
}
.foot__join-t {
  font-size: 15px; font-weight: 700; letter-spacing: -.026em; color: var(--ink);
}
.foot__ch { margin-top: 14px; display: grid; gap: 8px; }
.foot__ch a {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 11px; text-align: left;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  padding: 11px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--rule-2);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.foot__ch a b {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: -.01em;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  color: var(--on); background: var(--on-bg);
  border: 1px solid color-mix(in srgb, var(--on) 30%, transparent);
}
.foot__ch li:nth-child(2) a b {
  color: var(--off); background: var(--off-bg);
  border-color: color-mix(in srgb, var(--off) 30%, transparent);
}
.foot__ch a i { font-style: normal; color: var(--ink-3); }
.foot__ch a:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }
.foot__ch a:hover i { color: var(--ink); }
.soon { font-size: 11px; color: var(--ink-3); }

.foot__legal {
  margin-top: clamp(30px, 4vw, 42px);
  padding-top: 22px; border-top: 1px solid var(--rule);
}
.foot__copy { font-size: 12.5px; color: var(--ink-3); }
.foot__by { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.foot__by a {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--rule-2); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.foot__by a:hover { color: var(--on); border-color: var(--on); }
.foot__note {
  margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--ink-3);
  max-width: 34rem; margin-inline: auto;
}

/* 맨 위로 */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: var(--card); border: 1px solid var(--rule-2); color: var(--ink-2);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), color .2s, border-color .2s;
}
.totop.is-on { opacity: 1; pointer-events: auto; }
.totop:hover { color: var(--ink); border-color: var(--ink-3); }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }

  /* 목차를 접이식 카드로 */
  .toc {
    position: static;
    margin-bottom: 40px;
  }
  .toc__wrap {
    border: 1px solid var(--rule); border-radius: var(--r);
    background: var(--bg-2); padding: 14px 16px;
  }
  .toc__sum { padding-bottom: 0; border-bottom: 0; cursor: pointer; }
  .toc__sum::after {
    content: "▾"; margin-left: 4px; transition: transform .25s var(--ease);
  }
  .toc__wrap[open] .toc__sum { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
  .toc__wrap[open] .toc__sum::after { transform: rotate(180deg); }
  .toc__list {
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 8px;
  }
  .toc__list a.is-active { background: transparent; }
}

@media (max-width: 720px) {
  /* 상단 바에서는 브랜드 + 참여 버튼만 남긴다 */
  .topbar__sep, .topbar__doc { display: none; }
  .topbar__badge { margin-left: auto; }
  .join { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .topbar__badge { display: none; }
  .topbar__cta { margin-left: auto; }
  .btn { grid-template-columns: auto 1fr; gap: 8px 10px; }
  .btn__go { display: none; }
  .btn__t { grid-column: 1 / -1; }
  .foot__ch a { grid-template-columns: auto 1fr; }
  .foot__ch a i { display: none; }
  .foot__ch a span { grid-column: 1 / -1; }
  .meta { grid-template-columns: 1fr; gap: 12px; }
  .toc__list { grid-template-columns: 1fr; }
  .prefer li { grid-template-columns: 1fr; gap: 2px; padding: 12px 2px; }
  .prefer__to { font-size: 16px; }
  .concept > div { grid-template-columns: 1fr; gap: 2px; }
  .profile__row { grid-template-columns: 1fr; }
  .zones { grid-template-columns: 1fr; }
  .tree__leaves { grid-template-columns: 1fr; }
  .tree__leaves::before { display: none; }
  .notify__form button { width: 100%; }
  .totop { right: 14px; bottom: 14px; }
}

/* ============================================================
   인쇄 — 안내문이므로 종이/PDF로도 읽히게
   ============================================================ */
@media print {
  :root {
    --bg: #fff; --bg-2: #fff; --card: #fff;
    --ink: #000; --ink-2: #333; --ink-3: #666;
    --rule: #ddd; --rule-2: #bbb;
    --on: #1F5233; --on-bg: #fff; --off: #332C77; --off-bg: #fff;
  }
  .topbar, .totop, .notify__form { display: none; }
  .hook, .join__card, .foot__join { break-inside: avoid-page; }
  /* 종이에서는 링크 주소가 보여야 한다 */
  .hook__btns a::after, .foot__ch a::after {
    content: " (" attr(href) ")"; font-size: 10pt; color: #444;
  }
  .page { padding-top: 0; max-width: none; }
  .layout { grid-template-columns: 1fr; padding-top: 24px; }
  .toc { break-after: page; }
  .doc { max-width: none; }
  .sec { break-inside: avoid-page; }
  .h2 { break-after: avoid-page; }
  body { font-size: 11pt; line-height: 1.6; }
  a { text-decoration: none; }
}
