/* Leash Index — Assistant anatomy cards. Rides on style.css tokens; adds the ledger rows and the card grid. */
.anat section { padding-block: 72px; }
.a-hero { padding-block: 64px 48px; border-bottom: 1px solid var(--rule); }
.a-hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.14; letter-spacing: -.02em; margin: 0 0 22px; max-width: 22em; text-wrap: balance; }
.a-hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--red); font-size: .62em; margin-top: 10px; letter-spacing: -.01em; }
.a-lead { font-size: 1.12rem; line-height: 1.72; color: var(--ink-2); margin: 0; max-width: 40em; }
.a-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: 36px; }
.a-meta > div { padding: 16px 20px 18px 0; border-right: 1px solid var(--rule); margin-right: 20px; }
.a-meta > div:last-child { border-right: 0; margin-right: 0; }
.a-meta .t, .ly-s .t, .acard .t { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.a-meta b { font-size: .98rem; font-weight: 600; line-height: 1.4; }

/* ledger rows — one per layer */
.layers { border-top: 2px solid var(--ink); }
.ly { display: grid; grid-template-columns: 170px minmax(0, 1fr) 220px; gap: 0 32px; padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.ly-k b { display: block; font-family: var(--sans); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.ly-k span { display: block; font-size: .84rem; color: var(--muted); margin-top: 6px; }
.ly-b p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--ink); }
.ly-b p.nk { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.ly-b p.nk i { font-style: normal; font-family: var(--sans); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-right: 8px; }
.ly-s { font-size: .86rem; line-height: 1.5; }
.ly-s a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.ly-s a:hover { border-bottom-color: var(--red); }
.ly-s .d { font-family: var(--sans); font-size: .8rem; }

/* control tower */
.tower { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; border-top: 1px solid var(--band-rule); padding-top: 32px; max-width: 60em; }
.tower .badge { width: 96px; height: 96px; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; font-family: var(--sans); font-size: 3rem; font-weight: 700; line-height: 1; }
.tower b { display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.tower p { margin: 0; color: var(--band-muted); font-size: 1rem; }

/* faq */
.faqs { border-top: 2px solid var(--ink); max-width: 62em; }
.faq { padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.faq h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 1.35rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.25; }
.faq p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }

/* settings */
.settings { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); max-width: 62em; }
.settings li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); align-items: start; }
.settings .n { font-family: var(--sans); font-size: 2.2rem; font-weight: 700; color: var(--red); line-height: 1; }
.settings p { margin: 0; font-size: 1rem; line-height: 1.7; }
.anat .cta { margin-top: 32px; }
.btn.closed { border-style: dashed; color: var(--muted); cursor: default; }

/* incident ledger */
.tablebox { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: .92rem; border-top: 2px solid var(--ink); min-width: 640px; }
table.ledger th { text-align: left; font-family: var(--sans); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule-2); }
table.ledger td { padding: 14px 14px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.6; }
table.ledger td.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .82rem; white-space: nowrap; }
table.ledger td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.empty { border-top: 2px solid var(--ink); padding-top: 18px; color: var(--muted); max-width: 48em; margin: 0; }

/* measured + others */
.st-none { color: var(--muted); } .st-self { color: var(--pass); } .st-closed { color: var(--fail); }
.others { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.others a { padding: 16px 16px 16px 0; border-right: 1px solid var(--rule); margin-right: 16px; text-decoration: none; }
.others a:last-child { border-right: 0; margin-right: 0; }
.others b { display: block; font-size: 1.05rem; }
.others span { font-family: var(--sans); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.others a:hover b { color: var(--red); }

/* index: cards + matrix */
.acards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 2px solid var(--ink); }
.acard { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.acard b { font-family: var(--sans); font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.acard p { margin: 0; color: var(--ink-2); font-size: .96rem; flex: 1; }
.acard .st { font-family: var(--sans); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.acard:hover b { color: var(--red); }
table.matrix { border-collapse: collapse; font-size: .84rem; border-top: 2px solid var(--ink); min-width: 1100px; width: 100%; }
table.matrix th, table.matrix td { text-align: left; vertical-align: top; padding: 12px 12px 14px 0; border-bottom: 1px solid var(--rule); line-height: 1.55; }
table.matrix thead th { border-bottom: 1px solid var(--rule-2); }
table.matrix thead th a { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
table.matrix thead th a:hover { color: var(--red); }
table.matrix th small, table.matrix thead th small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 3px; }
table.matrix tbody th { width: 150px; }
table.matrix tbody th b { font-family: var(--sans); font-size: 1.1rem; }
table.matrix td b { font-weight: 600; }

@media (max-width: 980px) {
  .a-meta { grid-template-columns: 1fr; }
  .a-meta > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); }
  .ly { grid-template-columns: 1fr; gap: 12px 0; }
  .acards { grid-template-columns: repeat(2, 1fr); }
  .others { grid-template-columns: repeat(2, 1fr); }
  .others a:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .anat section { padding-block: 52px; }
  .acards { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr; }
  .others a { border-right: 0; margin-right: 0; }
  .tower { grid-template-columns: 1fr; }
}

/* 출처 등급 표시 (2026-10-20) — 2차 출처 하나로 버티는 줄은 눈에 걸리게 한다.
   1차(당사자 발표)는 단독이어도 정상이므로 조용히, 위키는 세지 않으므로 경고로. */
.ly-s .sk { display: block; margin-top: 5px; font-family: var(--sans);
  font-size: .64rem; letter-spacing: .08em; line-height: 1.5; }
.ly-s .sk-primary { color: var(--muted); }
.ly-s .sk-secondary { color: var(--red); font-weight: 600;
  border-left: 2px solid var(--red); padding-left: 6px; margin-left: -8px; }
.ly-s .sk-wiki, .ly-s .sk-none { color: #fff; background: var(--red); font-weight: 600;
  padding: 2px 6px; display: inline-block; margin-top: 6px; }
