/* 참고 자료 상세 페이지 공용 스타일 — concept-model-references-2026-07-10.html 과 같은 시각 언어 */
:root {
  --paper: #f5f0e4; --paper-hi: #fdfaf2; --ink: #2b2620; --ink-soft: #57503f;
  --ink-mute: #8a8069; --hairline: #ddd3bd; --now: #b8442c; --gold: #a87b2a;
  --teal: #3e8e7d; --indigo: #5b6ca8;
  --serif: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", "Noto Serif KR", serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Pretendard", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans);
  line-height: 1.8; font-size: 15.5px;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(255,252,240,.9), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(184,68,44,.18); }
a { color: var(--ink-soft); text-decoration-color: var(--hairline); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--now); }
code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .88em;
  background: rgba(43,38,32,.055); padding: 1px 5px; border-radius: 2px;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px 110px; }

/* ── 빵부스러기 ── */
nav.crumb { padding-top: 26px; font-size: 13px; }
nav.crumb a { text-decoration: none; color: var(--ink-mute); letter-spacing: .04em; }
nav.crumb a:hover { color: var(--now); }

/* ── 머리 ── */
header.page-head { padding: 26px 0 28px; border-bottom: 1px solid var(--hairline); margin-bottom: 38px; }
.doc-line { font-size: 12px; letter-spacing: .28em; color: var(--ink-mute); font-weight: 500; margin-bottom: 18px; }
.doc-line .seal { display: inline-block; color: var(--now); border: 1px solid rgba(184,68,44,.5); padding: 3px 9px; margin-right: 12px; letter-spacing: .2em; font-weight: 600; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 4.2vw, 34px); line-height: 1.4; letter-spacing: -.01em; }
h1 .star { color: var(--gold); font-size: .72em; vertical-align: .12em; margin-right: 6px; }
.page-head .meta { margin-top: 10px; font-size: 13px; color: var(--ink-mute); }
.page-head .lead { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; max-width: 66ch; }
.page-head .lead strong { color: var(--ink); font-weight: 600; }

/* ── 본문 ── */
main section { margin-bottom: 46px; }
main h2 {
  font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.4;
  margin-bottom: 16px; padding-bottom: 9px; border-bottom: 1px solid var(--hairline);
}
main h3 { font-family: var(--serif); font-weight: 700; font-size: 16.5px; margin: 24px 0 8px; }
main p { margin-bottom: 13px; color: var(--ink-soft); }
main p strong, main li strong { color: var(--ink); font-weight: 600; }
main ul, main ol { padding-left: 24px; margin-bottom: 13px; color: var(--ink-soft); }
main li { margin-bottom: 7px; }
main li::marker { color: var(--ink-mute); }
blockquote {
  font-family: var(--serif); border-left: 3px solid var(--gold);
  padding: 6px 18px; margin: 18px 0; color: var(--ink-soft);
  background: linear-gradient(to right, rgba(168,123,42,.06), transparent 75%);
}

/* 표 */
.table-scroll { overflow-x: auto; margin: 14px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--paper-hi); border: 1px solid var(--hairline); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-size: 11.5px; letter-spacing: .15em; color: var(--ink-mute); font-weight: 600; }
td:first-child { font-family: var(--serif); font-weight: 700; white-space: nowrap; }
td { color: var(--ink-soft); }
@media (max-width: 560px) { td:first-child { white-space: normal; } }

/* 접점 강조 블록 */
.tie-callout {
  border-left: 3px solid var(--now); background: linear-gradient(to right, rgba(184,68,44,.06), transparent 78%);
  padding: 13px 18px; font-size: 14.5px; color: var(--ink-soft); margin: 16px 0;
}
.tie-callout b, .tie-callout strong { color: var(--now); }

/* 생각할 거리 */
ol.think { counter-reset: q; list-style: none; padding-left: 0; }
ol.think > li {
  counter-increment: q; position: relative; padding: 12px 16px 12px 46px; margin-bottom: 10px;
  background: var(--paper-hi); border: 1px solid var(--hairline);
}
ol.think > li::before {
  content: counter(q); position: absolute; left: 15px; top: 11px;
  font-family: var(--serif); font-weight: 700; color: var(--teal); font-size: 15px;
}

/* ── 내 생각 메모 ── */
.memo-sec .memo-hint { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 9px; }
.memo-sec textarea {
  display: block; width: 100%; min-height: 120px; resize: vertical;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.7; color: var(--ink);
  background: rgba(184,68,44,.035); border: 1px dashed rgba(184,68,44,.35); padding: 12px 14px; border-radius: 2px;
}
.memo-sec textarea:focus { outline: none; border-color: var(--now); background: rgba(184,68,44,.05); }

/* ── 꼬리 ── */
footer { border-top: 1px solid var(--hairline); padding-top: 24px; font-size: 13px; color: var(--ink-mute); }
nav.pager { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 22px; font-size: 13.5px; }
nav.pager a { text-decoration: none; color: var(--ink-soft); line-height: 1.5; }
nav.pager a:hover { color: var(--now); }
nav.pager .prev { text-align: left; max-width: 42%; }
nav.pager .next { text-align: right; max-width: 42%; margin-left: auto; }
nav.pager .index { color: var(--ink-mute); white-space: nowrap; }
.colophon { font-family: var(--serif); letter-spacing: .08em; }

@media (max-width: 640px) {
  .wrap { padding: 0 18px 90px; }
  nav.pager { flex-wrap: wrap; }
  nav.pager .prev, nav.pager .next { max-width: 100%; }
}

/* ── 도판(참고 이미지) ── */
.plates .plates-lead { font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; }
.plates .plates-lead a { color: var(--gold); }
figure.plate-fig { margin: 0 0 26px; }
figure.plate-fig:last-of-type { margin-bottom: 0; }
.plate {
  background: linear-gradient(180deg, #fffdf7, #f3ecdc); border: 1px solid var(--hairline);
  padding: 14px; border-radius: 3px; text-align: center; position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 18px -12px rgba(43,38,32,.4);
}
.plate a.img-link { display: block; text-decoration: none; }
.plate img {
  max-width: 100%; max-height: 520px; height: auto; display: inline-block;
  border: 1px solid rgba(43,38,32,.12); background: #fff;
  box-shadow: 0 2px 10px -4px rgba(43,38,32,.35); vertical-align: middle;
}
.plate .zoom-hint {
  position: absolute; right: 11px; bottom: 11px; font-size: 10.5px; letter-spacing: .06em;
  color: var(--ink-mute); background: rgba(253,250,242,.85); border: 1px solid var(--hairline);
  padding: 2px 7px; border-radius: 999px; opacity: 0; transition: opacity .18s;
}
.plate:hover .zoom-hint { opacity: 1; }
.img-fallback {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; padding: 24px; color: var(--ink-mute); font-size: 13px; text-align: center;
  border: 1px dashed var(--hairline); background: rgba(138,128,105,.05);
}
.img-fallback a { color: var(--now); font-weight: 600; }
figure.img-broken .plate a.img-link, figure.img-broken .plate .zoom-hint { display: none; }
figure.img-broken .img-fallback { display: flex; }
figure.plate-fig figcaption { padding: 11px 2px 0; }
.cap-text { font-size: 13.5px; color: var(--ink); line-height: 1.7; }
.cap-meta {
  margin-top: 7px; font-size: 12px; color: var(--ink-mute); line-height: 1.6;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.cap-meta .who { font-family: var(--serif); color: var(--ink-soft); font-weight: 700; }
.cap-meta .src a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.cap-meta .src a:hover { color: var(--now); border-bottom-color: var(--now); }
.cap-meta .sep { color: var(--hairline); }
.chip {
  display: inline-block; font-size: 11px; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--paper-hi); color: var(--ink-mute); font-weight: 500; white-space: nowrap;
}
.chip.pd   { color: var(--teal);   border-color: rgba(62,142,125,.5);  background: rgba(62,142,125,.08); }
.chip.cc   { color: var(--indigo); border-color: rgba(91,108,168,.5);  background: rgba(91,108,168,.08); }
.chip.copy { color: var(--ink-mute); }
.plates .plates-foot {
  font-size: 12px; color: var(--ink-mute); border-left: 2px solid var(--hairline);
  padding: 4px 0 4px 12px; margin-top: 16px;
}
.plates .plates-foot a { color: var(--gold); }
