/* 팜팜 사용 안내·소개. 랜딩(styles.css)과 같은 색과 시각 언어를 쓴다.
   머리와 첫 부분은 흙색 면(랜딩과 같음), 글 읽는 본문은 한지 면. 부품은 1px 선·면 구분·고정폭 숫자와 라벨로 나눈다.
   테두리 두른 카드, 둥근 상자, 알약 배지는 쓰지 않는다.
   색: 한지 #F3EEE5 / 흙 #231C17 / 보조 #6B5F55 / 선 #E2DBD0 / 데이터 선 #D5CBBB / 황토 #C65A2E (작은 글씨는 #9A3F18) / 한 겹 짙은 바탕 #EAE3D6
   읽기 우선: 본문 18px, 줄 간격 1.75, 한 줄 34자 안팎, 누르는 곳 48px 이상, 대비 4.5:1 이상. */

/* 고정폭 글꼴은 숫자·영문·기호에만 건다(랜딩 styles.css와 같은 정의).
   띄어쓰기(U+0020)와 한글은 범위에서 빠지므로 --mono 다음의 본문 글꼴(--font)로 나온다. */
@font-face {
  font-family: "fam-mono";
  src: local("SFMono-Regular"), local("SF Mono Regular"), local("SF Mono"),
       local("Menlo-Regular"), local("Menlo Regular"), local("Menlo"),
       local("Consolas"), local("RobotoMono-Regular"), local("Roboto Mono"),
       local("DejaVuSansMono"), local("DejaVu Sans Mono");
  font-weight: 100 500;
  font-style: normal;
  unicode-range: U+0021-007E, U+00B7, U+00D7, U+2192;
}
@font-face {
  font-family: "fam-mono";
  src: local("SFMono-Semibold"), local("SF Mono Semibold"),
       local("Menlo-Bold"), local("Menlo Bold"),
       local("Consolas-Bold"), local("Consolas Bold"), local("RobotoMono-SemiBold"), local("Roboto Mono SemiBold"),
       local("DejaVuSansMono-Bold"), local("DejaVu Sans Mono Bold");
  font-weight: 600;
  font-style: normal;
  unicode-range: U+0021-007E, U+00B7, U+00D7, U+2192;
}
@font-face {
  font-family: "fam-mono";
  src: local("SFMono-Bold"), local("SF Mono Bold"),
       local("Menlo-Bold"), local("Menlo Bold"),
       local("Consolas-Bold"), local("Consolas Bold"), local("RobotoMono-Bold"), local("Roboto Mono Bold"),
       local("DejaVuSansMono-Bold"), local("DejaVu Sans Mono Bold");
  font-weight: 700 900;
  font-style: normal;
  unicode-range: U+0021-007E, U+00B7, U+00D7, U+2192;
}

:root {
  --paper: #F3EEE5;
  --ink: #231C17;
  --mute: #6B5F55;
  --line: #E2DBD0;
  --rule: #D5CBBB;       /* 한지 위 데이터 구분선(--line보다 한 단계 짙게) */
  --clay: #C65A2E;
  --clay-ink: #9A3F18;   /* 작은 황토 글씨용 짙은 색 */
  --clay-tint: #F2D9C8;
  --sheet: #EAE3D6;
  --card: #FBF8F2;
  /* 흙색 면 위에 쓰는 색 */
  --ink-2: #2D251F;      /* 흙색 위 한 겹 올린 면 */
  --on-ink: #D9D1C6;     /* 흙색 위 보조 글자: 약 11:1 */
  --on-ink-mute: #A39A8F;/* 흙색 위 라벨·메타: 약 6:1, 한 겹 면 위 약 5.5:1 */
  --clay-lt: #E08A62;    /* 흙색 위 작은 황토 글자 */
  --ink-line: rgba(243, 238, 229, .16);   /* 흙색 위 1px 선 */
  --ink-grid: rgba(243, 238, 229, .05);   /* 흙색 위 옅은 격자(장식) */
  --gutter: 20px;
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: "fam-mono", var(--font);   /* 숫자·영문·기호만 고정폭, 한글·띄어쓰기는 본문 글꼴 */
}

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

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--sheet);
  padding: 1px 6px;
  border-radius: 2px;
  overflow-wrap: anywhere;
}

/* 고정폭 데이터 글자: 숫자는 같은 폭으로 세운다 */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid var(--clay-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }
/* 흙색 면 위 포커스 링은 한지색 */
.top :focus-visible, .band :focus-visible { outline-color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 맨 위 줄: 랜딩과 같은 흙색 띠(아래 흙색 띠와 이어진다) ---------- */
.top { padding-block: 12px; background: var(--ink); color: var(--paper); }
.top-in { display: flex; align-items: center; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--paper);
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { height: 20px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* 메뉴 글자 링크는 720px부터. 좁은 화면은 로고와 앱 받기만(랜딩과 같음) */
.top-link {
  display: none;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.top-link:hover { color: var(--paper); }
.top-link[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.get {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  border-radius: 10px;
  background: var(--paper);   /* 한지 바탕 + 흙색 글자: 대비 약 14:1 */
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.get::after { content: ""; position: absolute; inset: -4px 0; }   /* 보이는 크기는 랜딩과 같고, 누르는 곳만 48px로 */
.get:hover { background: var(--clay-tint); color: var(--ink); }
.top .get:focus-visible { outline-offset: 4px; border-radius: 10px; }

/* ---------- 바닥: 랜딩과 같은 구성(회사명, 링크, ©) ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 32px 48px; }
.foot-in { display: grid; gap: 14px; font-size: 14px; line-height: 1.7; color: var(--mute); }
.foot .co { color: var(--ink); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-block: -10px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--clay-ink); }

/* ---------- 흙색 띠(사용 안내 첫 쪽, 소개 쪽): 머리와 이어진 면 + 옅은 격자 ---------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
/* 격자: 48px 칸, 한지색 5% 1px 선. 아래로 갈수록 흐려진다(랜딩 첫 화면과 같음) */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--ink-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}
.band .lead { color: var(--on-ink); }

/* 제목 위 작은 글씨(고정폭 숫자·기호, 한글은 본문 글꼴) */
.eyebrow {
  margin-bottom: 12px;
  color: var(--clay-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.band .eyebrow { color: var(--clay-lt); }

/* ---------- 사용 안내 첫 쪽 ---------- */
.hero-in { padding-top: 32px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
.hero .lead { margin-top: 12px; }
.lead { font-size: 1.1rem; color: var(--mute); max-width: 36em; text-wrap: pretty; }

/* 검색: 흙색 위 한 겹 면, 1px 선, 한지색 글자 */
.search { margin-top: 28px; max-width: 640px; }
.search-l { display: block; font-weight: 700; margin-bottom: 8px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding-inline: 16px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  color: var(--paper);
}
.search-box:focus-within { outline: 2px solid var(--paper); outline-offset: 3px; }
.search-box svg { flex: none; color: var(--on-ink-mute); }
.search-box input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  outline: none;
}
.search-box input::placeholder { color: var(--on-ink-mute); opacity: 1; }
.search-box input::-webkit-search-cancel-button { height: 22px; width: 22px; filter: invert(1); }
.q-status { margin-top: 10px; color: var(--on-ink); font-size: .95rem; }
.q-status:empty { display: none; }

/* 목록(검색 결과·관련 글·분류 글): 테두리 카드 대신 1px 선으로 나눈다 */
.results, .related ul, .cat-list { border-bottom: 1px solid var(--rule); }
.results li, .related li, .cat-list li { border-top: 1px solid var(--rule); }
.results a, .related a, .cat-list a {
  display: block;
  min-height: 56px;
  padding: 14px 0 16px;
  text-decoration: none;
}
.results a:hover .r-title, .related a:hover .r-title, .cat-list a:hover .r-title { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 4px; }
.r-cat { display: block; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--clay-ink); }
.r-title { display: block; font-weight: 700; line-height: 1.5; }
.r-sum { display: block; font-size: .9rem; color: var(--mute); line-height: 1.6; margin-top: 2px; }
/* 검색 결과는 흙색 띠 안에 나온다 */
.results { max-width: 640px; margin-top: 8px; border-color: var(--ink-line); }
.results li { border-color: var(--ink-line); }
.results .r-cat { color: var(--clay-lt); }
.results .r-sum { color: var(--on-ink); }
.results a:hover .r-title { color: var(--paper); }

.sec { padding-top: 48px; }
.sec h2 { font-size: 1.5rem; line-height: 1.4; font-weight: 800; margin-bottom: 16px; letter-spacing: -.015em; }

/* 처음이라면 여기부터: 고정폭 번호 01~, 칸 사이 1px 선 */
.first { border-bottom: 1px solid var(--rule); }
.first li { border-top: 1px solid var(--rule); }
.first a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  min-height: 72px;
  padding: 16px 0 18px;
  text-decoration: none;
}
.first-n { grid-row: 1 / 3; color: var(--clay-ink); font-size: 13px; font-weight: 400; line-height: 1.75rem; }
.first-t { font-weight: 800; line-height: 1.5; }
.first-s { grid-column: 2; font-size: .9rem; color: var(--mute); line-height: 1.6; }
.first a:hover .first-t { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 4px; }

/* 분류로 찾기: 1px 선 격자(바깥 세로선 없이, 랜딩 기술 칸과 같은 방식) */
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.cats li { background: var(--paper); }
.cats a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  min-height: 150px;
  padding: 18px 16px 18px 0;
  text-decoration: none;
}
.cats li:nth-child(even) a { padding-left: 16px; padding-right: 0; }
.cats li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 분류가 홀수 개일 때 빈 칸이 선 색으로 차지 않게 */
.cats a:hover .cat-t { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 4px; }
.cat-ico { width: 26px; height: 26px; color: var(--clay-ink); margin-bottom: 8px; }
.cat-t { font-weight: 800; line-height: 1.4; }
.cat-s { font-size: .9rem; color: var(--mute); line-height: 1.5; }
.cat-n { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--clay-ink); }

/* 자주 묻는 질문: 랜딩 FAQ와 같은 고정폭 번호, 1px 선, 1px +/− */
.faq { border-bottom: 1px solid var(--rule); counter-reset: qa; }
.faq details { border-top: 1px solid var(--rule); counter-increment: qa; }
.faq summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 18px 40px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: counter(qa, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--clay-ink);
  font: 400 13px/1.5rem var(--mono);
  font-variant-numeric: tabular-nums;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat; }
.faq summary:hover { color: var(--clay-ink); }
.faq-a { padding: 0 40px 18px; max-width: calc(36em + 80px); color: var(--mute); }
.faq-a p + p { margin-top: 2px; }
.faq-a a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.faq-a a:hover { color: var(--clay-ink); }

/* ---------- 문의: 둥근 상자 대신 한 겹 짙은 한지 면 + 위 1px 흙색 선 ---------- */
.contact { margin-top: 48px; padding: 18px 20px 12px; background: var(--sheet); border-top: 1px solid var(--ink); }
.sec > .contact:first-child { margin-top: 0; }   /* 첫 쪽 문의는 구역 여백만 둔다 */
.contact h2 { font-size: 1.15rem; line-height: 1.5; font-weight: 800; margin-bottom: 4px; overflow-wrap: anywhere; }
.contact p { color: var(--mute); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.mail { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--clay-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- 글·분류 화면: 한지 면, 큰 제목 위 작은 위치 글씨 ---------- */
.layout { display: block; padding-top: 8px; }
.side { display: none; }
.art { min-width: 0; padding-bottom: 24px; }

/* 현재 위치: 제목 위 작은 글씨 자리. 누르는 곳은 48px */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 700; color: var(--mute); }
.crumbs a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 2px; color: var(--clay-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs span { padding-inline: 4px; }

/* 모바일 목차: 위아래 1px 선, 1px +/− */
.toc-m { margin: 4px 0 12px; border-block: 1px solid var(--rule); }
.toc-m > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 32px 6px 0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.toc-m > summary::-webkit-details-marker { display: none; }
.toc-m > summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
}
.toc-m[open] > summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat; }
.toc-m .toc { padding: 0 0 16px; }

/* 목차: 분류 제목(굵게, 아이콘, 위 1px 선)과 글 링크(보통 굵기, 왼쪽 1px 선에서 들여쓰기)를 구별한다.
   지금 글은 왼쪽 선 자리에 황토 2px 막대와 굵은 글자 */
.toc-cat + .toc-cat { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--rule); }
.toc-h { font-size: 1.05rem; font-weight: 800; line-height: 1.4; margin: 0 0 2px; }
.toc-h a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; text-decoration: none; color: var(--ink); }
.toc-h a.on, .toc-h a:hover { color: var(--clay-ink); }
.toc-h svg { flex: none; }
.toc ul { margin-left: 9px; border-left: 1px solid var(--rule); }
.toc ul a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 10px 6px 18px;
  margin-left: -1px;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  color: var(--mute);
}
.toc ul a:hover { color: var(--ink); box-shadow: inset 1px 0 0 var(--ink); }
.toc ul a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--clay); }

.art h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.35; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 12px; }
.art .lead { margin-bottom: 24px; }
/* 기준일: 요약 바로 아래 작은 보조 글씨, 왼쪽 작은 빈 네모 */
.asof {
  position: relative;
  max-width: 36em;
  margin: -12px 0 24px;
  padding-left: 16px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
}
.asof::before { content: ""; position: absolute; left: 0; top: calc(.8em - 4px); width: 8px; height: 8px; box-shadow: inset 0 0 0 1px var(--mute); }

/* 이 글의 내용: 위 1px 흙색 선, 고정폭 라벨, 항목마다 고정폭 번호와 1px 선 */
.prose.intro { margin-bottom: 24px; }
.inpage { max-width: 36em; margin-bottom: 8px; border-top: 1px solid var(--ink); counter-reset: inp; }
.inpage h2 { padding: 10px 0 6px; color: var(--mute); font-size: 13px; font-weight: 700; line-height: 1.5; }
.inpage ol { list-style: none; border-bottom: 1px solid var(--rule); }
.inpage li { counter-increment: inp; border-top: 1px solid var(--line); }
.inpage a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  min-height: 48px;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.inpage a::before { content: counter(inp, decimal-leading-zero); color: var(--clay-ink); font: 400 13px/1.45 var(--mono); font-variant-numeric: tabular-nums; }
.inpage a:hover { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 4px; }

.prose { max-width: 36em; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.45rem; line-height: 1.4; font-weight: 800; letter-spacing: -.015em; margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.prose > h2:first-child { margin-top: 1.4em; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin-top: 1.6em; }
.prose h2 + * , .prose h3 + * { margin-top: .6em; }
.bul { padding-left: 1.2em; }
.bul li { list-style: square; padding-left: .3em; margin-bottom: .5em; }
.bul li::marker { color: var(--clay); font-size: .8em; }

strong.ui {
  font-weight: 700;
  background: var(--sheet);
  padding: 0 .18em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.prose a { color: var(--clay-ink); text-underline-offset: 3px; }

/* 단계: 흙색 동그라미 대신 랜딩 흐름 구역의 01~04와 같은 고정폭 번호 */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: .9em;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--clay-ink);
  font: 400 13px/1.75rem var(--mono);
  font-variant-numeric: tabular-nums;
}

/* 표: 위 1px 흙색 선, 줄마다 1px 선, 머리줄은 한 겹 짙은 한지 면.
   가로로 넘치면 감싸개 안에서만 스크롤한다(쪽 전체는 넘치지 않는다). */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.6; }
.table-wrap th, .table-wrap td { min-width: 6.5em; padding: 10px 12px; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--sheet); font-weight: 700; color: var(--ink); white-space: nowrap; }
.table-wrap tbody tr + tr td { border-top: 1px solid var(--rule); }
.table-wrap thead + tbody tr:first-child td { border-top: 1px solid var(--rule); }
.table-wrap td:first-child { font-weight: 700; }

/* 화면 사진: 랜딩 .phone과 같은 흙색 틀(7px), 1px 선, 화면 비율에 맞춘 둥근 모서리 */
.shot { margin-block: 1.6em; text-align: center; }
.phone {
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  padding: 7px;
  border: 1px solid var(--ink-line);
  border-radius: 14% / 6.6%;
  background: var(--ink);
}
.phone img { width: 100%; height: auto; display: block; border-radius: 12.4% / 5.7%; background: #fff; }
.shot figcaption { max-width: 300px; margin: 12px auto 0; font-size: .9rem; line-height: 1.6; color: var(--mute); }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-block: 1.6em; }
.shots .shot { margin: 0; }
.shots .phone { width: 280px; }

/* 알림: 한 겹 짙은 한지 면 + 위 1px 선(팁은 황토, 알아 두세요는 흙색) */
.callout { padding: 14px 20px 16px; background: var(--sheet); border-top: 1px solid var(--ink); }
.callout > * + * { margin-top: .5em; }
.callout-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.5; margin: 0 0 4px; color: var(--clay-ink); }
.callout-label svg { flex: none; width: 18px; height: 18px; }
.callout.tip { border-top-color: var(--clay); }

/* 기기별 안내: 위 1px 흙색 선과 아래 1px 선 사이. 기기 이름은 작은 네모 + 라벨(안드로이드는 채운 네모, 아이폰은 빈 네모) */
.osbox { padding: 12px 0 4px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.osbox > * + * { margin-top: 1em; }
.os-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.os-badge::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ink); }
.os-ios .os-badge::before { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.osbox + .osbox { margin-top: 0; border-top: 0; }   /* 이어진 기기 칸은 선 하나로 나눈다 */
.osbox .steps li:last-child { margin-bottom: .6em; }

/* 근거 자료: 관련 글과 같은 1px 선 목록, 아래 안내 한 줄 */
.sources { margin-top: 56px; max-width: 36em; }
.sources h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.sources ul { border-bottom: 1px solid var(--rule); }
.sources li { border-top: 1px solid var(--rule); }
.sources a {
  display: block;
  min-height: 48px;
  padding: 11px 0 12px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}
.sources a:hover { color: var(--clay-ink); text-decoration-color: currentColor; }
.src-note { margin-top: 12px; font-size: .9rem; line-height: 1.6; color: var(--mute); }
.sources + .related { margin-top: 40px; }

.related { margin-top: 56px; }
.related h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.related ul, .cat-list { max-width: 36em; }
.cat-list { margin-top: 8px; }

/* 이전 글 / 다음 글: 카드 대신 1px 선으로 나눈 두 칸 */
.pager { display: grid; margin-top: 32px; max-width: 36em; border-bottom: 1px solid var(--rule); }
.pager a {
  display: block;
  min-height: 72px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.pager a:hover .pg-t { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 4px; }
.pg-k { display: block; font-size: 13px; font-weight: 700; color: var(--mute); }
.pg-t { display: block; font-weight: 700; line-height: 1.5; }
.pager span:empty { display: none; }

.art .contact { max-width: 36em; }

/* ---------- 소개 쪽(/about/): 흙색 띠 제목 + 한지 본문 ---------- */
.about-col { max-width: 40em; margin-inline: auto; }
.about-band .about-col { padding-top: 40px; padding-bottom: 56px; }
.about-band h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.about-band .lead { margin-top: 14px; font-size: 1.2rem; }
.about .art { padding-top: 8px; padding-bottom: 32px; }
.about .prose { max-width: none; }
.about .prose h2 { font-size: 1.5rem; margin-top: 2.4em; }
.about .contact { max-width: none; }
.about .contact + .prose { margin-top: 24px; }

/* 약속: 카드 대신 고정폭 번호와 1px 선 */
.pledge { border-bottom: 1px solid var(--rule); counter-reset: pl; }
.pledge li {
  counter-increment: pl;
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 0 16px 40px;
  border-top: 1px solid var(--rule);
}
.pledge li::before {
  content: counter(pl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--clay-ink);
  font: 400 13px/1.5rem var(--mono);
  font-variant-numeric: tabular-nums;
}
.pledge strong { font-weight: 800; line-height: 1.5; }
.pledge span { color: var(--mute); font-size: .95rem; line-height: 1.7; }
.pledge a { color: var(--clay-ink); font-weight: 700; }

/* ---------- 팜팜 노트(/notes/): 왼쪽 목차 없이 가운데 한 단, 한지 면 ---------- */
.note-col { max-width: 36em; margin-inline: auto; padding-top: 8px; padding-bottom: 32px; }
.note-col .prose, .note-col .sources, .note-col .related ul, .note-col .contact { max-width: none; }
.notes-home { padding-top: 32px; }
/* 주제: 제목 위 작은 라벨(알약 배지 대신 가운뎃점으로 나눈 글자) */
.note-tags { display: flex; flex-wrap: wrap; margin: 4px 0 0; color: var(--clay-ink); font-size: 13px; font-weight: 700; line-height: 1.6; }
.note-tags li + li::before { content: "·"; padding-inline: 6px; color: var(--mute); }
.note-col .lead { margin-bottom: 16px; }
/* 글쓴이 줄: 위 1px 선 아래 작은 보조 글씨 */
.byline { margin-bottom: 24px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--mute); font-size: 14px; line-height: 1.6; }
/* 노트 원고의 굵은 글자는 일반 강조(앱 버튼 표시가 아니다) */
.note .prose strong { font-weight: 800; }
/* 목록·더 보기: 관련 글과 같은 1px 선 목록 */
.note-list { max-width: none; }
.note-empty { margin-top: 8px; padding-block: 18px; border-block: 1px solid var(--rule); color: var(--mute); }
/* 팜팜 소개 상자: 문의 상자와 같은 한 겹 짙은 면, 버튼은 흙색 바탕 + 한지색 글자 */
.note-cta { margin-top: 56px; padding-bottom: 16px; }
.note-cta h2 { overflow-wrap: break-word; }
.note-cta .contact-row { gap: 4px 20px; margin-top: 12px; }
.cta-get {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 10px;
  background: var(--ink);   /* 흙 바탕 + 한지 글자: 대비 약 14:1 */
  color: var(--paper);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.cta-get:hover { background: var(--ink-2); }
.cta-more { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.cta-more:hover { color: var(--clay-ink); }
.note-cta + .related { margin-top: 48px; }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .top { padding-block: 16px; }
  .top-link { display: inline-flex; }
  .get { margin-left: 8px; }
  .hero-in { padding-top: 48px; padding-bottom: 72px; }
  .about-band .about-col { padding-top: 56px; padding-bottom: 72px; }
  .note-col { padding-top: 24px; }
  .notes-home { padding-top: 56px; }
  .sec { padding-top: 64px; }

  /* 처음이라면: 세 칸, 칸 사이 1px 세로선 */
  .first { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
  .first li { border-top: 0; }
  .first li + li { border-left: 1px solid var(--rule); }
  .first a { grid-template-columns: 1fr; row-gap: 4px; align-content: start; min-height: 168px; padding: 20px 24px 24px 0; }
  .first li + li a { padding-left: 24px; }
  .first-n { grid-row: auto; margin-bottom: 10px; }
  .first-s { grid-column: auto; }

  /* 분류 9개: 세 칸 세 줄 */
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats li:last-child:nth-child(odd) { grid-column: auto; }
  .cats a, .cats li:nth-child(even) a { padding: 22px 20px; }
  .cats li:nth-child(3n + 1) a { padding-left: 0; }
  .cats li:nth-child(3n) a { padding-right: 0; }

  .pager { grid-template-columns: 1fr 1fr; max-width: none; border-top: 1px solid var(--rule); }
  .pager a { border-top: 0; }
  .pager .next { grid-column: 2; text-align: right; }
  .pager .prev { grid-column: 1; }
  .pager .prev + .next { border-left: 1px solid var(--rule); }
}
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 56px; align-items: start; padding-top: 24px; }
  .side {
    display: block;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 4px 8px 24px 0;
    scrollbar-width: thin;
  }
  .toc-m { display: none; }
  .pager { max-width: 36em; grid-template-columns: 1fr; border-top: 0; }
  .pager a { border-top: 1px solid var(--rule); }
  .pager .next { grid-column: 1; text-align: left; }
  .pager .prev + .next { border-left: 0; }
}
@media (min-width: 1280px) {
  .layout { column-gap: 80px; }
}

@media print {
  .top, .foot, .side, .toc-m, .contact, .skip { display: none; }
  .band { background: #fff; color: var(--ink); }
  .band::before { display: none; }
  .band .lead, .band .eyebrow { color: var(--ink); }
  body { background: #fff; }
  .table-wrap { overflow: visible; }
}
