/* 부록 「GitHub 쉽게 이해하기」에만 쓰는 모양. 공통 모양은 /assets/site.css */

.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0; }
.dl-row .muted { font-size: 0.88rem; }

/* 1 Git과 GitHub */
.vs { display: grid; gap: 10px; margin: 16px 0; }
@media (min-width: 700px) { .vs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } }
.vs-box { border: 1.5px solid var(--focus); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.vs-box.hub { border-color: var(--accent); background: var(--accent-tint); }
.vs-box h3 { margin: 0; font-size: 1.2rem; }
.vs-box .role { margin: 2px 0 0; font-weight: 800; }
.vs-box .what { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.93rem; }
.vs-arrows { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: 0.92rem; }
.vs-arrows span { white-space: nowrap; }
.vs-arrows .push::after { content: " ↓"; }
.vs-arrows .pull::after { content: " ↑"; }
@media (min-width: 700px) {
  .vs-arrows .push::after { content: " →"; }
  .vs-arrows .pull::before { content: "← "; }
  .vs-arrows .pull::after { content: ""; }
}

/* 2 용어 카드 */
.terms { display: grid; gap: 10px; margin: 16px 0; }
@media (min-width: 640px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.term { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.term.key { border: 2px solid var(--focus); }
.term h3 { margin: 0; font-size: 1.05rem; }
.term h3 small { margin-left: 4px; font-weight: 500; color: var(--ink-mute); }
.term p { margin: 4px 0 8px; font-size: 0.93rem; }
.like { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-deep); font-size: 0.85rem; font-weight: 600; }

/* 3 수정이 최종본이 되기까지 */
.stop-line {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 4px 12px;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  background: var(--red-tint);
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
}
.steps6 { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; counter-reset: s6; }
@media (min-width: 640px) { .steps6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.steps6 li { counter-increment: s6; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.steps6 li b { display: block; }
.steps6 li b::before { content: counter(s6) " "; color: var(--accent); }
.steps6 li > span { display: block; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.steps6 li .side { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-strong); font-size: 0.82rem; color: var(--ink-mute); }
.steps6 li.final { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps6 li.final b::before { color: inherit; }
.steps6 li.final > span { color: inherit; opacity: 0.85; }

/* 4 워크트리 */
.wt { display: grid; gap: 8px; margin: 16px 0; }
.wt .ledger { justify-self: center; text-align: center; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.wt .ledger b { display: block; }
.wt .ledger span { font-size: 0.86rem; opacity: 0.85; }
.wt .shared, .wt .apart { text-align: center; font-size: 0.85rem; color: var(--ink-mute); }
.wt .folders { display: grid; gap: 8px; }
@media (min-width: 640px) { .wt .folders { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } }
.folder { padding: 10px 14px; border: 1.5px solid var(--focus); border-radius: 12px; background: var(--card); }
.folder.b { border-color: var(--accent); background: var(--accent-tint); }
.folder .fname { font-weight: 800; }
.folder .fname code { margin-left: 4px; }
.folder p { margin: 4px 0 0; font-size: 0.93rem; }
.folder small { display: block; color: var(--ink-mute); }

.pair { display: grid; gap: 10px; margin: 14px 0; }
@media (min-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pair .callout { margin: 0; }

pre.cmd {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1d2120;
  color: #ece8de;
  font: 400 0.88rem/1.75 var(--mono);
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
pre.cmd .c { color: #9cc2ff; }

/* 6 자주 헷갈리는 것 */
.qa { display: grid; gap: 10px; margin: 14px 0; }
@media (min-width: 700px) { .qa { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qa > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.qa .q { margin: 0 0 4px; font-weight: 800; }
.qa .q::before { content: "Q. "; color: var(--focus); }
.qa .a { margin: 0; font-size: 0.95rem; }
.qa .a::before { content: "A. "; font-weight: 800; color: var(--accent); }

td code { white-space: nowrap; }
