/* 공통 본문 이동 규칙. 원고의 개별 색상과 타이포그래피는 유지한다. */
:root {
  --ground: #e3e8ef;
  --panel: #fbfcfe;
  --panel-2: #eef2f7;
  --rule: #cbd3de;
  --rule-2: #aeb8c6;
  --faint: var(--muted);
  --reading-measure: 67ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #10151b;
    --panel: #181f27;
    --panel-2: #222b36;
    --ink: #f0f3f6;
    --ink-2: #d1d7de;
    --muted: #aeb8c4;
    --faint: #aeb8c4;
    --rule: #3b4653;
    --rule-2: #596575;
  }
}
:root[data-theme="dark"] {
  --ground: #10151b;
  --panel: #181f27;
  --panel-2: #222b36;
  --ink: #f0f3f6;
  --ink-2: #d1d7de;
  --muted: #aeb8c4;
  --faint: #aeb8c4;
  --rule: #3b4653;
  --rule-2: #596575;
}
body { line-height: 1.86; }
.sheet { max-width: 780px; }
.tool[id], #main-content, #comments-preview { scroll-margin-top: 138px; }
.tool[id]:focus-visible, #main-content:focus-visible { outline: 2px solid var(--case, #3159d8); outline-offset: 8px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 16px; color: #fff; background: #202733; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
div.fd { cursor: default; }
div.fd:hover { background: var(--panel, transparent); }
/* 표지와 본문을 잇는 공통 탐색. 원고의 주제색은 변수 그대로 쓴다. */
.topnav { background: var(--ground, #eef2f7); }
.tnin { max-width: 780px; min-height: 60px; padding: 8px 0; gap: 12px; }
.tnin .bd, .tnin .hm { display: inline-flex; align-items: center; min-height: 44px; }
.tnin .bd { flex-shrink: 0; }
.tnin .hm { padding: 6px 12px; border: 1px solid var(--rule-2, #b6c0ce); color: var(--ink); background: var(--panel); font-size: .875rem; white-space: nowrap; }
.tnin .cs { color: var(--muted); font-size: .8125rem; letter-spacing: .06em; }
.toolnav { top: 61px; background: var(--ground, #eef2f7); opacity: 1; pointer-events: auto; }
.tvin { max-width: 780px; padding: 8px 0; scrollbar-width: thin; }
.tvin a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; color: var(--ink-2, #333c46); font-size: .875rem; }
.tvin a.cur { border: 2px solid var(--case); color: var(--ink); background: var(--panel-2); padding: 7px 11px; }
.hd h1 { line-height: 1.3; overflow-wrap: anywhere; }
.who { font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.block .tag, .qmap .tag, .nx .k, .nx .w, .note h3 { color: var(--muted); font-size: .8125rem; }
.tool .no { font-size: .75rem; }
.stamp { font-size: .75rem; }
.oneline .l { font-size: .8125rem; }
.block p, .odd p, .tool p, .verdict p, .hook .sm {
  max-width: var(--reading-measure);
  font-size: 1.025rem;
  line-height: 1.88;
}
.lens-intro p, .tool .lens-purpose, .qmap .in, .meet .in, .note p, .mirror .sub {
  max-width: var(--reading-measure);
  font-size: .9375rem;
  line-height: 1.84;
}
.fd span, .pr span, .sd p { font-size: .9375rem; }
.fd b sub { color: var(--muted); font-size: .75rem; }
.tool .lens-question { font-size: .875rem; line-height: 1.6; }
.note > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--case, #3159d8); outline-offset: 3px; }
.next { grid-template-columns: repeat(auto-fit, minmax(min(222px, 100%), 1fr)); }
.next-intro { margin: 42px 0 0; padding-top: 22px; border-top: 1px solid var(--rule-2); }
.next-intro > span { color: var(--case); font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.next-intro h2 { max-width: var(--reading-measure); margin: 7px 0 5px; color: var(--ink); font-family: "Gowun Batang", serif; font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.5; letter-spacing: -.03em; word-break: keep-all; }
.next-intro p { max-width: var(--reading-measure); margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.nx .k { font-family: "IBM Plex Sans KR", sans-serif; font-size: .75rem; line-height: 1.55; letter-spacing: .035em; text-transform: none; }
.nx .q { word-break: keep-all; }
.nx .why { display: block; margin-top: 3px; color: var(--ink-2); font-family: "IBM Plex Sans KR", sans-serif; font-size: .875rem; line-height: 1.72; }
@media (max-width: 600px) {
  body { padding-right: 14px; padding-left: 14px; }
  .hd { padding-top: 38px; }
  .block p, .odd p, .tool p, .verdict p, .hook .sm { font-size: 1rem; line-height: 1.86; }
}
@media (max-width: 380px) { .tnin .cs { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
