/* 블로그·사용 가이드·개발자 문서의 컴포넌트 모양만 — ADR 0083·0086. 글꼴·본문 크기·제목 크기·읽기폭·여백·링크 색·초점 표시·바닥글은
   site/site.css(공통 문서 틀)가 정하고, 색·숫자는 site/tokens.css의 토큰이다. 글 중심 목록이다: 분류 라벨, 제목, 한 줄 요약, 날짜만
   매거진 목차처럼 나열하고 대표 이미지는 없다. 여기에는 칩·글 목록·배지·단계·상태표·안내 상자처럼 이 종류 쪽에만 있는 부품의 규칙만 둔다. */

.lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.draft {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: var(--small-size);
  line-height: var(--small-leading);
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 16px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: var(--small-size);
  font-weight: 500;
  text-decoration: none;
}
.chips a:hover {
  border-color: var(--text);
  color: var(--text);
}
.chips a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.chips a[aria-current="page"]::before {
  content: "✓\00a0" / "";
}
.rows {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--stroke);
}
.rows li {
  padding: 22px 0;
  border-bottom: 1px solid var(--stroke);
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin: 0;
  font-size: var(--tiny-size);
  line-height: 18px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--tiny-size);
  line-height: 18px;
  font-weight: 700;
}
.chip {
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--touch);
  margin-top: 4px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: var(--heading-tracking);
  text-decoration: none;
}
.item .title {
  flex: 1 1 auto;
}
.item:hover .title {
  color: var(--accent);
}
.arrow {
  flex: none;
  color: var(--muted);
  font-weight: 400;
}
.summary {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--small-size);
  line-height: var(--small-leading);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.empty {
  margin: 24px 0 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--small-size);
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.back:hover {
  color: var(--text);
}
.context {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.context a {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  color: var(--muted);
}
.context a.badge {
  position: relative;
  display: inline-flex;
  margin: 0 4px 0 0;
  padding: 0 8px;
  color: var(--accent);
  text-decoration: none;
  vertical-align: middle;
}
.context a.badge::after {
  content: "";
  position: absolute;
  inset: -10px 0;
}
.context a.badge:hover {
  text-decoration: underline;
}
article h1 {
  margin-top: 8px;
}
.body {
  margin-top: 24px;
  font-size: 17px;
}
.body p {
  margin: 0 0 1.1rem;
}
.body h2 {
  margin: 2rem 0 0.75rem;
}
.body ul {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}
.body li + li {
  margin-top: 0.4rem;
}
.quote {
  margin: 0 0 1.1rem;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.quote blockquote {
  margin: 0;
}
.quote figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--tiny-size);
  line-height: 18px;
}
.ai {
  margin: 0 0 1.1rem;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.ai strong {
  display: block;
  color: var(--accent);
  font-size: var(--tiny-size);
  line-height: 18px;
}
.ai p {
  margin: 2px 0 0;
}
.guide section + section {
  margin-top: 2rem;
}
.guide h2 {
  margin: 0 0 0.6rem;
}
.steps,
.stages {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
.steps li + li,
.stages li + li {
  margin-top: 0.6rem;
}
.stages li {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
}
.stages p {
  margin: 0;
}
.stages .stage {
  font-weight: 700;
}
.steps {
  list-style: decimal;
  padding-left: 1.4rem;
}
.steps li {
  padding-left: 0.3rem;
}
.steps li p {
  margin: 0;
}
.steps .shot {
  margin: 10px 0 4px;
}
.body .shot-card {
  flex-direction: column;
  margin: 0 0 1.1rem;
}
.body .shot figcaption,
.body .figure figcaption,
.body .shot-pair > figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--small-size);
  line-height: var(--small-leading);
}
/* 강조 상자 — 꼭 알아 둘 한 문단. */
.callout {
  margin: 0 0 1.1rem;
  padding: 14px 18px;
  border-left: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}
/* 도식(SVG) — 글 폭에 맞춰 줄어들고, 설명 줄은 화면과 같은 모양. */
.figure {
  margin: 0 0 1.1rem;
}
.figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
/* 실제 화면 두 장 나란히 — 좁은 폭에서는 세로로. */
.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 1.1rem;
}
.shot-pair .shot {
  margin: 0;
}
.shot-pair > figcaption {
  grid-column: 1 / -1;
}
@media (max-width: 480px) {
  .shot-pair {
    grid-template-columns: 1fr;
  }
}
.done {
  margin: 0 0 1.1rem;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--text);
}
.trouble {
  margin: 0 0 1.1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 0 18px;
}
.trouble summary {
  display: flex;
  align-items: center;
  min-height: var(--control);
  cursor: pointer;
  font-weight: 700;
  color: var(--text-2);
}
.trouble summary:hover {
  color: var(--text);
}
.trouble[open] summary {
  border-bottom: 1px solid var(--stroke);
}
.trouble .stuck {
  margin: 0 0 8px;
}
.trouble .stuck div:first-child {
  border-top: 0;
}
.trouble .stuck div:last-child {
  border-bottom: 0;
}
.label {
  display: block;
  color: var(--muted);
  font-size: var(--tiny-size);
  line-height: 18px;
  font-weight: 600;
}
.stuck {
  margin: 0;
}
.stuck div {
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
}
.stuck div:last-child {
  border-bottom: 1px solid var(--stroke);
}
.stuck dt {
  font-weight: 600;
}
.stuck dd {
  margin: 6px 0 0;
}
.note {
  margin: 1.75rem 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--small-size);
  line-height: var(--small-leading);
}
.note + .note {
  margin-top: 8px;
}
/* AI 연결 안내의 연결 주소(ADR 0146 개정 2) — 붙여 넣을 그대로의 한 줄. 좁은 화면에서는 아무 데서나 줄을 바꾼다. */
.note code {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.first {
  margin: 16px 0 0;
}
/* AI 연결 안내의 「할 수 있는 일」 — 예시 질문은 강조색 한 줄. */
.uses .ask {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
}
.status {
  margin: 24px 0 0;
}
.status div {
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
}
.status div:last-child {
  border-bottom: 1px solid var(--stroke);
}
.status dt {
  font-weight: 700;
}
.status dd {
  margin: 2px 0 0;
}
.status dd p {
  margin: 0;
}
.status dd p + p {
  color: var(--muted);
  font-size: 15px;
}
section.related {
  margin-top: 2.5rem;
}
section.related h2 {
  margin: 0;
}
.cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2.5rem;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  font-size: var(--small-size);
  line-height: var(--small-leading);
}
.cta p {
  margin: 0;
}
.cta a,
.cta .unlinked {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 700;
}
.cta .unlinked {
  color: var(--muted);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 8px 0 0;
  font-size: var(--small-size);
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 600;
}
.empty-next {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--small-size);
  line-height: var(--small-leading);
}
.empty-next a,
.next a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  margin-right: 12px;
  font-weight: 600;
}
.next {
  margin: 0.5rem 0 0;
}
@media (max-width: 360px) {
  .cta,
  .quote {
    padding: 14px;
  }
  .chips a {
    padding: 0 12px;
  }
  .item {
    font-size: 17px;
  }
}
