/* Hallmark · checked: 11차 운영판(web/release)은 8차 C1 render 감사 원시 14 FAIL을 이어받아 하나씩 처리했다(OUT/HALLMARK-LEDGER.md). 고친 것: 두 sticky 규칙을 한 규칙으로 합침(56), 320 목차 폭 확대(49a 일부). 원문 SHA 보존 때문에 남긴 것: 원문 제목·본문의 이모지(30a), 긴 원문 목차 줄바꿈(49a 나머지) · theme: none, C1 자체 방향 · copy: verbatim, velog 공개 글 원본 39개(본문 sha256 대조) · 한계: 점수나 clean 판정 없음 */
/* C1 설명하는 장면(10차 C1 style.css 사본). 색과 크기는 :root 토큰만 쓴다. 운영판에서 뺀 것: 작업·경력 장면, 도식 견본, 자동 반복 모션 토글. 소개는 장면이 아니라 .doc 읽기 화면(about.html)이다. */
/* 디자인 시스템 C(2026-11-05 owner 선택 "C. 한 색 기준선", 정본 velog-design-system-20261105/SYSTEM.md): 글자·여백·선·역할색을 아래 :root 토큰으로 합쳤다(덮어쓰는 층 없이 규칙 값을 바꿈).
   규칙 밖 값은 좁은 예외만 둔다(도식 SVG 안·44px 계산식·도식 판 기하·흰 판 6px). 검사 verify-design-system.cjs. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 테마(2026-11-05): 기본은 시스템(prefers-color-scheme)을 그대로 따르고, <html data-theme="light|dark">가 있으면 그 값으로 고정한다.
     밝게/어둡게가 갈리는 토큰은 light-dark(밝게, 어둡게) 하나로 둔다. 도식 판·크게 보기 무대·범례는 color-scheme: light로 밝은 종이에 고정한다(아래 '도식 판 고정'). */
  color-scheme: light dark;
  --font: "Pretendard Variable", sans-serif;
  /* 실제 등폭 글꼴만 둔다. 한글은 시스템 글꼴로 대체된다. C: ui-monospace·SF Mono 이름을 뺀 로컬 목록. */
  --pad-about-hero: clamp(2rem, 6svh, 4rem);
  --pad-about-block: clamp(2rem, 6svh, 3.5rem);
  --pad-about-facts: clamp(2.5rem, 7svh, 4rem);
  --about-ink-bg: light-dark(var(--scene-ink-bg), var(--scene-paper-box));
  --font-name: "JetBrains Mono", "Pretendard Variable", monospace; /* 한글은 Pretendard로(owner 11-05 밤 글꼴 일관성) */
  --font-meta: "JetBrains Mono", "Pretendard Variable", Pretendard, monospace;
  --radius-tag: 3px;
  --t-name-fit: min(var(--t-name), 100cqi / 13.0362);
  --pad-name-prompt: 0.4em;
  --pad-name-cursor: 0.12em;
  --name-cursor-w: 0.5em;
  --name-cursor-h: 0.78em;
  --font-code: Menlo, Consolas, "Liberation Mono", monospace;

  /* 생성 Mermaid SVG의 <style>·style="" 값 그대로. build.cjs가 글 안에 넣을 때 이 토큰으로 바꾼다. 원문 style fill 3색 포함. */
  --mmd-font-mermaid: "trebuchet ms",verdana,arial,sans-serif;
  --mmd-15171b: #15171b;
  --mmd-f1f0e8: #f1f0e8;
  --mmd-0e0f17: #0e0f17;
  --mmd-fbfaf4: #fbfaf4;
  --mmd-000: #000;
  --mmd-000000: #000000;
  --mmd-04050b: #04050b;
  --mmd-55574f: #55574f;
  --mmd-e6e5da: #e6e5da;
  --mmd-eae8e4: #eae8e4;
  --mmd-333: #333;
  --mmd-ffb6c1: #FFB6C1;
  --mmd-90ee90: #90EE90;
  --mmd-87ceeb: #87CEEB;
  --mmd-box-half: rgba(251, 250, 244, 0.5);
  --mmd-shadow: rgba(185,185,185,1);
  --mmd-shade-02: rgba(0,0,0,0.2);
  --mmd-shade-04: rgb(0 0 0 / 0.4);
  --mmd-hsl-53: hsl(53.3333333333, 0%, 82.7450980392%);
  --mmd-hsl-55: hsl(55, 19.3548387097%, 77.8431372549%);

  /* 종이 장면: 머리·바닥 막대, 홈 색인, 전체 글, 소개·안내 쪽, 글 머리(시리즈 없는 글)와 도식 판. 어둡게 값은 C1 ink 계열이다. */
  --scene-paper-bg: light-dark(#f1f0e8, #17181b);
  --scene-paper-fg: light-dark(#15171b, #ecebe3);
  --scene-paper-muted: light-dark(#55574f, #b2b3ab);
  --scene-paper-rule: light-dark(#c9c8bd, #3d4046);
  --scene-paper-box: light-dark(#fbfaf4, #222429);
  --scene-paper-band: light-dark(#e6e5da, #1f2125);
  --scene-paper-accent: light-dark(#1b3f8a, #a6bff2);

  --scene-ink-bg: #15171b;
  --scene-ink-fg: #f1f0e8;
  --scene-ink-muted: #b9bab2;
  --scene-ink-rule: #3c3f45;
  --scene-ink-box: #23262c;
  --scene-ink-band: #1c1f24;
  --scene-ink-accent: #f0b450;

  --scene-celadon-bg: #bcd2c6;
  --scene-celadon-fg: #10231b;
  --scene-celadon-muted: #2c4538;
  --scene-celadon-rule: #8fac9c;
  --scene-celadon-box: #e3eee8;
  --scene-celadon-band: #cddfd5;
  --scene-celadon-accent: #8a2f12;

  --scene-indigo-bg: #1b2f55;
  --scene-indigo-fg: #f1f0e8;
  --scene-indigo-muted: #c3ccdd;
  --scene-indigo-rule: #3e5480;
  --scene-indigo-box: #263f6e;
  --scene-indigo-band: #213862;
  --scene-indigo-accent: #f2c46b;

  /* 크게 보기 dialog 뒤 가림막(ink 장면 색의 72%). */
  --viewer-backdrop: rgb(21 23 27 / 0.72);
  /* 범례 팝오버 그림자 색(본문 12%, 크게 보기 16%). */
  --legend-pop-shade: rgb(0 0 0 / 0.12);
  --viewer-legend-shade: rgb(0 0 0 / 0.16);

  /* 읽기 화면 역할색(C의 --ds-bg/fg/muted/rule/link와 같은 값). --read-bg 두 값은 build.cjs THEME_COLOR(meta theme-color)와 같다.
     역할: 글자 = fg·muted·link, 바탕 = bg·code-*, 선 = rule, 강조(남색 짧은 선·목차 현재 항목) = accent. */
  --read-bg: light-dark(#f1f0e8, #17181b);
  --read-fg: light-dark(#15171b, #ecebe3);
  --read-muted: light-dark(#55574f, #b2b3ab);
  --read-rule: light-dark(#c9c8bd, #3d4046);
  --read-link: light-dark(#1b3f8a, #a6bff2);
  --read-accent: var(--read-link);
  --read-code-bg: light-dark(#e4e3d8, #24262b);
  --read-code-head: light-dark(#d8d7cb, #2d3035);
  /* 글 도식 흰 판(2026-11-05 도식 판, C 시안 뒤 owner 승인 변경): 그림 자체 흰 바탕과 같은 값, 두 테마 공통. */
  --plate-bg: #fff;

  /* Shiki css-variables 테마. 두 테마 모두 --read-code-bg 위 4.5:1 이상(verify-contrast.cjs가 계산값으로 잰다). */
  --shiki-foreground: light-dark(#15171b, #ecebe3);
  --shiki-background: light-dark(#e4e3d8, #24262b);
  --shiki-token-keyword: light-dark(#8a2f12, #f4a582);
  --shiki-token-string: light-dark(#1d5a36, #8fd4a8);
  --shiki-token-string-expression: light-dark(#1d5a36, #8fd4a8);
  --shiki-token-comment: light-dark(#55574f, #b2b3ab);
  --shiki-token-constant: light-dark(#1b3f8a, #a6bff2);
  --shiki-token-function: light-dark(#5b2a86, #cfb1f2);
  --shiki-token-parameter: light-dark(#6a3b00, #e6c27a);
  --shiki-token-punctuation: light-dark(#3c3f45, #c8c9c1);
  --shiki-token-link: light-dark(#1b3f8a, #a6bff2);

  /* 글자 단계(C). 조작 보조 14 · 코드 14 · 보조 15 · 조작 16 · 본문 17 · 한 단계 위 18 · 제목 19/20/24, 소개 경력 날짜 22(소개 C용 공통 토큰, 지금 소개 배치에는 쓰지 않음). */
  --type-xs: 0.875rem;
  --type-code: 0.875rem;
  --type-small: 0.9375rem;
  --type-ui: 1rem;
  --type-body: 1.0625rem;
  --type-lede: 1.125rem;
  --type-h3: 1.1875rem;
  --type-h2-doc: 1.25rem;
  --type-h2: 1.5rem;
  --type-career-date: 1.375rem;
  --type-inline-code: 0.88em; /* 문장 안 코드: 둘레 글자 비례 */
  /* 굵기 4단 + 장면 절 300/800(C1 장면의 의미 있는 대비, .clause에만). */
  --w-body: 400;
  --w-ui: 600;
  --w-strong: 700;
  --w-display: 700;
  --w-clause-heavy: 800;
  --w-clause-light: 300;
  --lh-display: 1.05;
  --lh-title: 1.2;
  --lh-head: 1.35;
  --lh-ui: 1.5;
  --lh-code: 1.6;
  --lh-base: 1.65;
  --lh-body: 1.75;
  --track-head: -0.02em;
  --track-display: -0.025em;
  --track-name: -0.04em;

  /* 구조 여백 7단(4·8·12·16·24·32·48). 이 밖의 여백은 아래 유동·글 흐름 토큰뿐이다. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  /* 글 흐름(본문 글자 비례, 4px로 반올림하지 않음). */
  --flow: 1em;
  --flow-h2: 2.25em;
  --flow-h3: 1.75em;
  --flow-li: 0.35em;
  --flow-code: 1.25em;
  --flow-img: 0.5em;
  --flow-indent: 1.25em;
  --flow-indent-num: 1.5em;
  --code-pad: 0.1em 0.3em;
  /* 유동 여백(화면 높이·폭 비례). */
  --pad-scene: clamp(2.5rem, 7svh, 4.5rem);
  --pad-profile-top: clamp(0.75rem, 3svh, 2rem);
  --pad-profile-bottom: clamp(1rem, 3svh, 1.75rem);
  --pad-head-top: clamp(1rem, 3svh, 2rem);
  --pad-head-bottom: clamp(1.5rem, 4svh, 2.5rem);
  --pad-doc-top: clamp(1.5rem, 4svh, 2.5rem);
  --pad-dg: clamp(1.25rem, 3svh, 2rem);
  --pad-plate: clamp(1rem, 3vw, 2rem);
  --row-pad-top: var(--space-3);
  --cell-pad-y: var(--space-2);
  --meta-gap: var(--space-4);

  /* 선·모서리·그림자·아이콘. 모서리는 0이고 도식 흰 판만 6px(위 --plate-bg와 같은 승인 변경). */
  --line-hair: 1px;
  --line-mark: 2px;
  --line-focus: 3px;
  --radius: 0;
  --radius-plate: 6px;
  --mark-w: var(--space-7);
  --shadow-pop: 0 6px 18px var(--legend-pop-shade);
  --shadow-dialog-pop: 0 6px 18px var(--viewer-legend-shade);
  --icon-s: 16px;
  --icon-m: 20px;
  --icon-l: 24px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.5rem, 3.4vw, 3.5rem);
  --cap: 1520px;
  --edge: max(var(--gutter), calc((100% - var(--cap)) / 2));
  --bar-h: 3.5rem;
  --hit: 44px;
  --axis: var(--gutter);
  --measure: 65ch;
  --t-scene: clamp(1.875rem, 8vw, 2.5rem);
  --t-section: clamp(2.25rem, 10vw, 3rem);
  --t-row: clamp(1.125rem, 5vw, 1.5rem);
  --t-article: clamp(1.5rem, 6vw, 2.25rem);
  --t-name: clamp(1.875rem, 8.4vw, 2.5rem);
  --t-next-row: clamp(1.25rem, 2vw, 1.625rem);
  --t-year: clamp(1.5rem, 3vw, 2rem);
  --t-list-row: clamp(1.125rem, 1.9vw, 1.5rem);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* 도식 판 고정: draw.io·Mermaid 판(종이 장면 도식), 크게 보기 무대, 범례 팝오버는 두 테마 모두 밝은 종이다(공식 아이콘·검은 선 보존). 홈 도식은 장면 고정 색(ink·celadon·indigo) 그대로다. */
:is(.dg, .viewer-canvas).scene-paper, .viewer-stage, .viewer-legend { color-scheme: light; }

@media (min-width: 900px) {
  :root {
    --t-scene: clamp(2.5rem, min(4.2vw, 8svh), 4rem);
    --t-section: clamp(3rem, min(5vw, 9svh), 4.5rem);
    --t-row: clamp(1.375rem, min(2.1vw, 4svh), 2rem);
    --t-article: clamp(2rem, min(3vw, 5.4svh), 3.125rem);
    --t-name: clamp(2.5rem, min(4vw, 7.2svh), 3.5rem);
  }
}

@media (min-width: 1100px) {
  :root { --axis: 24vw; }
  .prose > .dg { margin-inline-start: calc(var(--gutter) - var(--axis)); }
}

.scene-paper { --bg: var(--scene-paper-bg); --fg: var(--scene-paper-fg); --muted: var(--scene-paper-muted); --rule: var(--scene-paper-rule); --box: var(--scene-paper-box); --band: var(--scene-paper-band); --accent: var(--scene-paper-accent); }
.scene-ink { --bg: var(--scene-ink-bg); --fg: var(--scene-ink-fg); --muted: var(--scene-ink-muted); --rule: var(--scene-ink-rule); --box: var(--scene-ink-box); --band: var(--scene-ink-band); --accent: var(--scene-ink-accent); }
.scene-celadon { --bg: var(--scene-celadon-bg); --fg: var(--scene-celadon-fg); --muted: var(--scene-celadon-muted); --rule: var(--scene-celadon-rule); --box: var(--scene-celadon-box); --band: var(--scene-celadon-band); --accent: var(--scene-celadon-accent); }
.scene-indigo { --bg: var(--scene-indigo-bg); --fg: var(--scene-indigo-fg); --muted: var(--scene-indigo-muted); --rule: var(--scene-indigo-rule); --box: var(--scene-indigo-box); --band: var(--scene-indigo-band); --accent: var(--scene-indigo-accent); }

*, *::before, *::after { box-sizing: border-box; }

/* 안전망일 뿐이다. 넘침은 각 요소에서 고친다. */
html, body { overflow-x: clip; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--read-bg);
  color: var(--read-fg);
  font-family: var(--font);
  font-size: var(--type-ui);
  font-weight: var(--w-body);
  line-height: var(--lh-base);
  word-break: keep-all;
  overflow-wrap: break-word;
  font-synthesis: none;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; min-width: 0; overflow-wrap: break-word; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { border-radius: var(--radius); }
.icon { flex: none; }
::selection { background: var(--read-link); color: var(--read-bg); }

:focus-visible { outline: var(--line-focus) solid var(--fg, var(--read-fg)); outline-offset: var(--line-focus); }
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding-inline: var(--space-4);
  background: var(--read-fg);
  color: var(--read-bg);
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: var(--read-fg); }

/* 막대 */
/* shared-bar:start — 머리 막대(집 + 목록·소개·언어·테마 아이콘). build.cjs가 이 묶음을 404에 그대로 inline으로 넣는다(404는 상대 자산 없이 깊은 경로에서도 같은 자리). */
.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
  min-height: var(--bar-h);
  padding-inline: var(--edge);
  background: var(--bg);
  color: var(--fg);
}
/* 막대 조작부 초점 링은 안쪽에 그린다(막대가 화면 맨 위라 바깥 링은 위 끝이 잘린다). */
.bar :focus-visible { outline-offset: calc(-1 * var(--line-focus)); }
/* 다섯 조작 모두 보이는 글자 없는 아이콘 20px·영역 44px. 집은 왼쪽 끝, 나머지 넷은 오른쪽에 같은 간격(--space-1)으로 붙고 그 사이는 남는 폭이다. */
.bar-home, .bar-nav a, .bar-set a {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--hit);
  height: var(--hit);
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}
.bar-home { margin-inline-end: auto; }
/* 사이트 이름 앞 프롬프트 "% ": 장식(aria-hidden). 이름보다 흐린 글자·본문 굵기, 복사·선택에서 빠진다. 커서는 없다. */
.name-prompt { color: var(--muted); font-weight: var(--w-body); user-select: none; }
.bar-nav, .bar-set { display: flex; align-items: center; gap: var(--space-1); }
/* 현재 위치(aria-current page·location): 아이콘 아래 짧은 선. */
.bar-home::after, .bar-nav a::after {
  content: "";
  position: absolute;
  inset: auto var(--space-3) var(--space-1);
  height: var(--line-mark);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.bar-home[aria-current]::after, .bar-nav a[aria-current]::after { transform: scaleX(1); }
/* 테마 단추: 아이콘이 지금 테마(해 = 밝게, 달 = 어둡게), 툴팁·aria-label이 다음 동작, aria-pressed="true"가 어둡게. 아이콘 20px, 영역 44px. */
.theme-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--hit);
  height: var(--hit);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.theme-btn[hidden] { display: none; }
.theme-btn > .icon { grid-area: 1 / 1; }
/* 머리 아이콘은 동일한 짧은 회전·크기 변화. 개별 rotate/scale은 해·달 교체 transform과 합성된다. */
.bar .icon { rotate: 0deg; scale: 1; transition: rotate 240ms var(--ease-out), scale 240ms var(--ease-out); }
.bar :is(a, button):focus-visible > .icon { rotate: -12deg; scale: 1.08; }
@media (hover: hover) and (pointer: fine) {
  .bar :is(a, button):hover > .icon { rotate: -12deg; scale: 1.08; }
}
.bar :is(a, button):active > .icon { rotate: 12deg; scale: 0.92; }
/* 사용자가 누른 뒤에만(data-anim) 아이콘 SVG의 transform·opacity가 240ms 전환된다. 첫 로드·OS 변경은 바로 바뀐다. 빠르게 되눌러도 전환이 그 자리에서 되돌아간다. */
.theme-btn[data-anim] > .icon { transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out), rotate 240ms var(--ease-out), scale 240ms var(--ease-out); }
.theme-btn[aria-pressed="true"] > .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.75); }
.theme-btn[aria-pressed="false"] > .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.75); }
/* 툴팁(다섯 조작 공통): aria-label과 같은 글자(aria-hidden). 정밀 포인터 hover·키보드 초점에서 보이고 Esc(data-tip-off)로 닫힌다.
   조작의 자식이고 바로 아래 붙어 있어 포인터가 툴팁으로 옮겨 가도 유지된다. 집은 왼쪽 끝, 나머지는 오른쪽 끝에 맞춰 화면 밖으로 나가지 않는다. 터치에는 뜨지 않는다. */
.bar-tip, .theme-tip {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 4;
  padding: var(--space-1) var(--space-2);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--type-xs);
  font-weight: var(--w-ui);
  line-height: var(--lh-ui);
  white-space: nowrap;
  visibility: hidden;
}
.bar-home > .bar-tip { right: auto; left: 0; }
.bar a:focus-visible > .bar-tip, .theme-btn:focus-visible > .theme-tip { visibility: visible; }
@media (hover: hover) and (pointer: fine) {
  .bar a:hover > .bar-tip, .theme-btn:hover > .theme-tip { visibility: visible; }
}
.bar a[data-tip-off] > .bar-tip, .theme-btn[data-tip-off] > .theme-tip { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .bar .icon { transition: none !important; rotate: none !important; scale: none !important; }
  .bar-home::after, .bar-nav a::after { transition: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* shared-bar:end */

/* 장면 공통 */
.scene {
  background: var(--bg);
  color: var(--fg);
  padding: var(--pad-scene) var(--edge);
}
.scene-title {
  font-size: var(--t-scene);
  line-height: var(--lh-title);
  letter-spacing: var(--track-display);
}
.clause { display: block; text-wrap: balance; transition: transform 480ms var(--ease-out), opacity 480ms var(--ease-out); }
.c1 { font-weight: var(--w-clause-heavy); }
.c2 { font-weight: var(--w-clause-light); transition-delay: 90ms; }
.is-waiting .clause { opacity: 0; transform: translateY(0.45em); }

/* 색인 */
.scene-index { padding-block: var(--space-3) 0; }
.profile { container-type: inline-size; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); padding-block: var(--pad-profile-top) var(--pad-profile-bottom); animation: rise 420ms var(--ease-out) backwards; }
.profile h1 {
  font-family: var(--font-name);
  font-variant-ligatures: none;
  white-space: nowrap;
  font-size: var(--t-name-fit);
  font-weight: var(--w-display);
  line-height: var(--lh-display);
  letter-spacing: 0;
}

.profile .name-prompt { margin-inline-end: var(--pad-name-prompt); }
.name-cursor { display: inline-block; width: var(--name-cursor-w); height: var(--name-cursor-h); margin-inline-start: var(--pad-name-cursor); background: currentColor; }
.name-cursor[data-running] { animation: name-blink 1200ms step-end infinite; }
@keyframes name-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .name-cursor { animation: none; opacity: 1; } }
/* owner 11-05 밤: 홈 밖 쪽(전체 글·소개·글·안내) 머리 막대 가운데에 사이트 이름 + 깜박이는 커서. 장식(aria-hidden), 좁은 화면에서는 아이콘과 겹치지 않게 숨긴다. */
.bar { position: relative; }
.bar-site { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-name); font-size: var(--type-small); font-weight: var(--w-ui); white-space: nowrap; pointer-events: none; }
.bar-site .name-cursor { --name-cursor-w: 0.5em; --name-cursor-h: 0.9em; vertical-align: -0.12em; }
@media (max-width: 34rem) { .bar-site { display: none; } }

/* 글 목록 행: 위 1px 선(rule) + C 남색 짧은 2px 선(--mark-w). */
.row { position: relative; border-block-start: var(--line-hair) solid var(--rule); animation: rise 420ms var(--ease-out) backwards; }
.rows > .row::before { content: ""; position: absolute; inset: calc(-1 * var(--line-hair)) auto auto 0; width: var(--mark-w); height: var(--line-mark); background: var(--read-accent); }
/* Mermaid 글자 줄도 class="row"(tspan)라 위 입장 모션이 그림 글자를 흐리게 했다. 그림 글자는 움직이지 않는다. */
svg .row { animation: none; }
.row:nth-child(1) { animation-delay: 70ms; }
.row:nth-child(2) { animation-delay: 140ms; }
.row:nth-child(3) { animation-delay: 210ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.row-read {
  display: grid;
  grid-template-rows: auto var(--hit);
  padding-block: var(--row-pad-top) var(--space-2);
  text-decoration: none;
}
.row-title {
  display: block;
  font-size: var(--t-row);
  line-height: var(--lh-title);
  letter-spacing: var(--track-head);
}
.row-action, .row-jump { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--w-ui); }
.row-action .icon { transition: transform 160ms var(--ease-out); }
.row-jump {
  position: absolute;
  right: 0;
  bottom: var(--space-2);
  min-height: var(--hit);
  padding-inline: var(--space-2) 0;
  color: var(--muted);
  text-decoration: none;
}

/* 글 장면: 짧은 기능 표제와 읽기 링크가 한 줄, 그 아래 도식이 장면의 중심이다. */
.scene-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding-inline: var(--space-5);
  background: var(--fg);
  color: var(--bg);
  font-weight: var(--w-ui);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out);
}
.cta:active { transform: scale(0.98); }
.cta .icon { transition: transform 160ms var(--ease-out); }

/* 무게가 뒤집히는 장면과 오른쪽으로 민 장면으로 리듬을 만든다. */
.layout-b .c1 { font-weight: var(--w-clause-light); }
.layout-b .c2 { font-weight: var(--w-clause-heavy); }
.layout-c .scene-head { flex-direction: row-reverse; }
.layout-c .scene-title { text-align: right; }

/* 작업 */
.section-title { font-size: var(--t-section); line-height: var(--lh-display); letter-spacing: var(--track-name); }
.section-title .clause { font-weight: var(--w-display); }
/* 글 화면 */
.article-head {
  padding: var(--pad-head-top) var(--gutter) var(--pad-head-bottom) var(--axis);
  background: var(--bg);
  color: var(--fg);
}
.article-title {
  font-size: var(--t-article);
  font-weight: var(--w-strong);
  line-height: var(--lh-title);
  letter-spacing: var(--track-display);
  animation: rise 420ms var(--ease-out) backwards;
}

.rail, .page-home .bar {
  position: sticky;
  top: 0;
  z-index: 2;
}
.rail {
  --fg: var(--read-fg);
  background: var(--read-bg);
  color: var(--read-fg);
  border-block-end: var(--line-hair) solid var(--read-rule);
}
.rail summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3rem;
  padding-inline: var(--axis) var(--gutter);
  cursor: pointer;
  list-style: none;
}
.rail summary::-webkit-details-marker { display: none; }
.rail summary:focus-visible { outline-offset: calc(-1 * var(--line-focus)); }
.rail-label { flex: none; font-weight: var(--w-strong); }
.rail-now { flex: 1; min-width: 0; overflow: hidden; color: var(--read-muted); text-overflow: ellipsis; white-space: nowrap; }
.rail summary .icon { flex: none; margin-inline-start: auto; transition: transform 160ms var(--ease-out); }
.rail[open] summary .icon { transform: rotate(180deg); }
.rail-panel {
  position: absolute;
  inset: 100% 0 auto;
  /* --rail-bottom은 app.js가 잰 목차 줄 아래 끝이다. --space-2는 측정 간격 오차 여유다. 남은 높이가 11rem보다 작으면 app.js가 열 때 목차 줄을 위로 붙인다. */
  max-height: calc(100svh - var(--rail-bottom, 3rem) - var(--space-2));
  padding: var(--space-2) var(--gutter) var(--space-4) var(--axis);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--read-bg);
  border-block-end: var(--line-hair) solid var(--read-rule);
}
/* 44px 계산식: 한 줄 높이(--lh-head × 글자)를 뺀 나머지를 위아래로 나눈다(+0.5px 반올림 여유). 예외: hit. */
.rail-panel a { display: block; padding-block: calc((var(--hit) - var(--lh-head) * 1em) / 2 + 0.5px); line-height: var(--lh-head); text-decoration: none; overflow-wrap: anywhere; text-wrap: pretty; }
.rail-panel a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* 목차 현재 항목: C 강조색(남색) 글자와 2px 밑줄. */
.rail-panel a[aria-current] { font-weight: var(--w-strong); color: var(--read-accent); text-decoration: underline; text-decoration-color: var(--read-accent); text-decoration-thickness: var(--line-mark); text-underline-offset: 0.2em; }
.toc-h2 { font-weight: var(--w-ui); }
.toc-h3 { padding-inline-start: var(--space-4); color: var(--read-muted); }
.rail-panel code { font-family: var(--font); }
.rail-close {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--hit);
  margin-block-start: var(--space-2);
  padding-block: 0;
  padding-inline: var(--space-4);
  border: var(--line-hair) solid var(--read-fg);
  background: var(--read-bg);
  color: var(--read-fg);
  font: inherit;
  font-weight: var(--w-ui);
  cursor: pointer;
}
.rail-close[hidden] { display: none; }
.rail-progress { display: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .rail-progress {
      display: block;
      position: absolute;
      inset: auto 0 calc(-1 * var(--line-hair));
      height: var(--line-mark);
      background: var(--read-accent);
      transform-origin: left;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

.prose, .article-next { padding-inline: var(--axis) var(--gutter); }
.prose {
  padding-block: var(--space-6) var(--space-7);
  font-size: var(--type-body);
  line-height: var(--lh-body);
}
.prose > * { max-width: var(--measure); }
.prose > * + * { margin-block-start: var(--flow); }
.prose h2, .prose h3, .prose h4 { min-width: 0; scroll-margin-top: 4rem; letter-spacing: var(--track-head); }
.prose h2 { margin-block-start: var(--flow-h2); font-size: var(--type-h2); font-weight: var(--w-strong); line-height: var(--lh-head); }
/* C 남색 짧은 선: 본문 큰 제목 위 구조 지점. */
.prose > h2::before { content: ""; display: block; width: var(--mark-w); height: var(--line-mark); margin-block-end: var(--space-3); background: var(--read-accent); }
.prose h3 { margin-block-start: var(--flow-h3); font-size: var(--type-h3); font-weight: var(--w-strong); line-height: var(--lh-head); }
/* 원문 h4: 규칙이 없어 UA 여백 1.33em·bold였다. 흐름·굵기 토큰으로 맞춘다(아래 여백은 다음 요소의 --flow). */
.prose h4 { margin-block: var(--flow-h3) 0; font-size: var(--type-body); font-weight: var(--w-strong); line-height: var(--lh-head); }
.prose > :first-child { margin-block-start: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-inline: 0; }
.prose ul, .prose ol { padding-inline-start: var(--flow-indent); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li, .prose li > ul, .prose li > ol { margin-block-start: var(--flow-li); }
.prose strong, .prose b { font-weight: var(--w-strong); }
.prose hr { border: 0; border-block-start: var(--line-hair) solid var(--read-rule); margin: var(--flow-h2) 0; }
.prose blockquote { padding-inline-start: var(--flow); border-inline-start: var(--line-hair) solid var(--read-fg); color: var(--read-muted); }
.prose blockquote > * { margin: 0; }
.prose a { color: var(--read-link); text-underline-offset: 0.18em; }
/* 문장 안 링크는 inline 그대로 둔다. 링크만 있는 표 칸과 참고 목록 줄만 44px 블록이다(예외: hit 계산식). */
.prose td > a:only-child, .prose li > p > a:only-child { display: block; min-height: var(--hit); padding-block: calc((var(--hit) - 1lh) / 2); }
/* 한 줄에 링크 하나뿐인 원문 줄(빽빽한 참고 목록, <br>로 나뉜 링크 줄): 렌더러가 단 class. 줄은 그대로 두고 조작 영역만 44px로(inline 단위라 <br> 줄바꿈이 그대로다). */
.prose a.link-line { display: inline-flex; align-items: center; min-height: var(--hit); min-width: var(--hit); overflow-wrap: anywhere; } /* 긴 원문 URL이 390에서 넘치지 않게 */
.prose a:focus-visible { outline-offset: 1px; }
.prose code { font-family: var(--font-code); font-size: var(--type-inline-code); padding: var(--code-pad); background: var(--read-code-bg); overflow-wrap: anywhere; }
.prose img { display: block; max-width: 100%; height: auto; margin-block: var(--flow-img); background: var(--read-code-bg); }
.img-withheld { color: var(--read-muted); }

/* 코드 블록: 언어 이름과 복사 버튼 줄, 그 아래 원문 코드. 색은 빌드 때 Shiki가 단 토큰 변수다. */
.code { background: var(--read-code-bg); color: var(--shiki-foreground); }
.prose > .code { max-width: min(100%, 96ch); margin-block-start: var(--flow-code); }
.code-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-3);
  min-height: var(--hit);
  padding-inline: var(--space-4) var(--space-1);
  background: var(--read-code-head);
  font-size: var(--type-xs);
  line-height: var(--lh-ui);
}
.code-lang { font-weight: var(--w-strong); }
.code-info { color: var(--read-muted); }
.code-info code { padding: 0; background: none; }
.code-copy {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  margin-inline-start: auto;
  padding-block: 0;
  padding-inline: var(--space-4);
  border: 0;
  background: none;
  color: var(--read-fg);
  font: inherit;
  font-weight: var(--w-ui);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.code-status { flex-basis: 100%; color: var(--read-muted); }
.code-status:empty { display: none; }
.code pre {
  margin: 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: var(--type-code);
  line-height: var(--lh-code);
  tab-size: 2;
  word-break: normal;
}
.code pre code { padding: 0; background: none; font-size: inherit; white-space: pre; overflow-wrap: normal; font-variant-ligatures: none; }
.code ::selection { background: var(--read-link); color: var(--read-bg); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 36rem; width: 100%; border-collapse: collapse; line-height: var(--lh-ui); }
.table-scroll th, .table-scroll td { padding: var(--cell-pad-y) var(--space-3) var(--cell-pad-y) 0; text-align: left; vertical-align: top; border-block-end: var(--line-hair) solid var(--read-rule); }
.table-scroll th { font-weight: var(--w-strong); border-block-end-color: var(--read-fg); }
.table-scroll a { overflow-wrap: anywhere; }
.code pre:focus-visible, .table-scroll:focus-visible, .mmd-frame:focus-visible { outline-offset: calc(-1 * var(--line-focus)); }

.article-next { padding-block: var(--space-6) var(--space-7); border-block-start: var(--line-hair) solid var(--read-rule); --fg: var(--read-fg); }
.article-next h2 { font-size: var(--type-h3); font-weight: var(--w-strong); }
.article-next ul { margin-block-start: var(--space-2); }
.article-next li a { display: block; min-height: var(--hit); padding-block: var(--space-3); text-decoration: none; }
.next-label { display: block; color: var(--read-muted); font-size: var(--type-small); font-weight: var(--w-ui); }
.article-next .row-title { font-size: var(--t-next-row); }
.back-home { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--hit); min-width: var(--hit); margin-block-start: var(--space-3); font-weight: var(--w-ui); text-decoration: none; }

/* 도식 */
.dg { margin: var(--pad-dg) 0 0; container-type: inline-size; --halo: var(--bg); }
/* 위 줄: 왼쪽 '선 설명' ? 아이콘 단추(no-JS는 범례 본문 그대로), 오른쪽 크게 보기와 일시정지. 조작 영역은 모두 44px이고 서로 겹치지 않는다. */
.dg-bar { position: relative; display: flex; flex-wrap: wrap; align-items: start; gap: var(--space-3) var(--space-4); }
.dg-legend-pop { flex: 1 1 0; min-width: 0; }
.dg-tools { display: flex; align-items: start; gap: var(--space-3); margin-inline-start: auto; }
.dg-legend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--hit);
  min-height: var(--hit);
  padding: 0;
  border: var(--line-hair) solid currentColor;
  background: none;
  color: var(--fg);
  font: inherit;
  font-weight: var(--w-ui);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.dg-legend-btn:hover, .dg-legend-btn[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
/* JS가 켠 범례: 단추 바로 아래 비모달 팝오버. 그림 흐름을 밀지 않고, 길면 안에서 스크롤한다(가로 넘침 없음). */
.dg-legend-pop[data-pop] {
  position: absolute;
  top: calc(var(--hit) + var(--space-1));
  left: 0;
  z-index: 2;
  width: min(40rem, 100%);
  max-height: min(18rem, 50svh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--space-3) var(--space-4);
  border: var(--line-hair) solid var(--fg);
  background: var(--bg, var(--read-bg));
  color: var(--fg, var(--read-fg));
  box-shadow: var(--shadow-pop);
}
.dg-legend-pop[data-pop][hidden] { display: none; }
.dg-legend-pop[data-pop] .dg-legend { color: inherit; }
.dg-legend-pop:focus-visible { outline-offset: calc(-1 * var(--line-focus)); }
.dg-pop-title { margin-block-end: var(--space-1); font-size: var(--type-small); font-weight: var(--w-strong); }
.dg-legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); color: var(--muted); font-size: var(--type-small); line-height: var(--lh-ui); }
.dg-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.dg-legend-note { flex-basis: 100%; }
.dg-key { flex: none; width: 40px; height: 12px; overflow: visible; }
/* 일시정지(round6 A안, 8차 그대로): 줄 오른쪽 끝, 그림 판 바깥 위 모서리. 보이는 것은 16px 무채움 아이콘, 조작 영역은 44px.
   음수 여백((16 − 44) / 2 = −14px)은 아이콘 끝을 도식 오른쪽 끝선에 맞추려는 것이다(조작 영역은 도식 여백 쪽으로 나간다). 예외: hit. */
.dg-controls { position: relative; }
.dg-controls[hidden] { display: none; }
.dg-toggle {
  display: grid;
  place-items: center;
  width: var(--hit);
  height: var(--hit);
  margin: 0 calc((var(--icon-s) - var(--hit)) / 2) 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.dg-toggle:hover, .dg-toggle:focus-visible, .dg-toggle[aria-pressed="true"] { color: var(--fg); }
.dg-toggle:focus-visible { outline-offset: 0; }
.dg-toggle:active { transform: scale(0.94); }
.dg-ico { display: none; }
.dg-toggle[aria-pressed="false"] .dg-ico-pause, .dg-toggle[aria-pressed="true"] .dg-ico-play { display: inline-flex; }
/* 툴팁: 초점(focus-visible)이면 바로, 마우스 hover는 800ms 뒤. 버튼 바로 아래에 붙어 포인터를 옮겨도 유지되고, Esc(data-tip=off)로 닫힌다. */
.dg-tip {
  position: absolute;
  top: 100%;
  right: calc((var(--icon-s) - var(--hit)) / 2);
  z-index: 3;
  width: max-content;
  max-width: min(18rem, 70vw);
  padding: var(--space-2) var(--space-3);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--type-xs);
  font-weight: var(--w-ui);
  line-height: var(--lh-ui);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms var(--ease-out);
}
.dg-tip > span { display: block; text-wrap: pretty; }
.dg-hint { font-weight: var(--w-body); }
.dg-toggle[aria-pressed="false"] + .dg-tip .dg-tip-on, .dg-toggle[aria-pressed="true"] + .dg-tip .dg-tip-off { display: none; }
@media (hover: hover) {
  .dg-controls:hover .dg-tip { opacity: 1; pointer-events: auto; transition-delay: 800ms; }
}
.dg-controls:has(.dg-toggle:focus-visible) .dg-tip { opacity: 1; pointer-events: auto; transition: none; }
.dg-controls[data-tip="off"][data-dg-controls] .dg-tip { opacity: 0; pointer-events: none; transition: none; }
.dg-now { margin-block-start: var(--space-4); font-weight: var(--w-ui); }
.dg-panels { display: grid; gap: var(--space-5) var(--gutter); margin-block-start: var(--space-4); }
.dg-panel-name { margin-block-end: var(--space-2); font-size: var(--type-lede); font-weight: var(--w-strong); }
.dg-panel-notes { margin-block-start: var(--space-2); color: var(--muted); font-size: var(--type-small); line-height: var(--lh-ui); }
/* 홈 도식 판 안 내어쓰기: "- " 글자 폭만큼(예외: 도식 원본). */
.dg-panel-notes li { padding-inline-start: 0.875rem; text-indent: -0.875rem; }
.dg-panel-notes li::before { content: "- "; }
.dg-svg { display: block; width: 100%; max-width: 28rem; height: auto; overflow: visible; }
.dg-wide { display: none; max-width: none; }
/* draw.io 도식: 엔진이 내보낸 SVG 파일을 그대로 <img>로 넣는다. 크기 규칙은 Mermaid 그림과 같다(원래 폭까지, 좁으면 0.8배 하한에서 가로 스크롤). */
.mmd-frame img { display: block; width: 100%; max-width: calc(var(--w) * 1px); min-width: calc(var(--w) * 0.8px); height: auto; margin-inline: auto; background: var(--scene-paper-box); }
.dg-narrow { max-width: 26rem; }
/* 홈 도식 SVG 안 글자·선(도식 원본 크기·굵기, 예외: 도식 원본). */
.dg-svg text { font-family: var(--font); fill: var(--fg); }
.dg-t { font-size: 15px; font-weight: 700; }
.dg-s { font-size: 13px; font-weight: 500; fill: var(--muted); }
.dg-l { font-size: 13px; font-weight: 600; paint-order: stroke; stroke: var(--halo); stroke-width: 5px; stroke-linejoin: round; }
.dg-row { font-size: 13px; font-weight: 700; fill: var(--muted); }
.dg-note { font-size: 13px; fill: var(--muted); }
.dg-zl { font-size: 14px; font-weight: 700; }
.dg-zs { font-size: 13px; fill: var(--muted); }
.dg-n rect { fill: var(--box); stroke: var(--fg); stroke-width: 1.5; }
.dg-n.is-key rect { stroke-width: 3; }
.dg-pill rect { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.dg-pill text { font-weight: 600; }
.dg-zone rect { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.dg-vault rect { stroke-width: 3.5; }
.dg-band { fill: var(--band); }
.dg-istio { --halo: var(--band); }
.dg-rule { stroke: var(--rule); stroke-width: 1; }
.dg-e path { fill: none; stroke: var(--fg); stroke-width: 2; }
.dg-ipam path { stroke: var(--accent); stroke-width: 4.5; }
.dg-ebpf path { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 0.5 6; stroke-linecap: round; }
.dg-route path { stroke-dasharray: 10 6; }
.dg-ref path { stroke: var(--accent); stroke-dasharray: 7 5; }
.dg-mmd-dotted path { stroke-dasharray: 3 3; }
.dg-keep path { stroke-dasharray: 7 5; }
.dg-mk path { fill: var(--fg); stroke: none; }
.dg-mk.dg-ipam path, .dg-mk.dg-ebpf path, .dg-mk.dg-ref path { fill: var(--accent); }
.dg figcaption { margin-block-start: var(--space-4); max-width: 72ch; color: var(--muted); }
/* owner 11-06 새벽: 도식 설명은 그림 기준 가운데(설명 상자도, 글줄도). 그림 판도 한 줄로 쌓일 때 가운데. */
.dg > figcaption { margin-inline: auto; text-align: center; text-wrap: balance; }
.dg:not(.dg-mmd) > .dg-panels { justify-items: center; }
/* owner 11-05 밤: '그림 관계를 글로 읽기' — 고정폭 작은 제목 + 펼침 화살표, 펼치면 상자 안에 01·02 번호 단계. */
.dg-alt { margin-block-start: var(--space-3); }
.dg-alt summary { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--hit); list-style: none; color: var(--muted); font-size: var(--type-small); font-weight: var(--w-ui); cursor: pointer; }
.dg-alt summary::-webkit-details-marker { display: none; }
.dg-alt summary::before { content: ""; width: 0.45em; height: 0.45em; border-right: var(--line-mark) solid currentColor; border-bottom: var(--line-mark) solid currentColor; transform: rotate(-45deg); transition: transform 200ms var(--ease-out); }
.dg-alt[open] summary::before { transform: rotate(45deg); }
@media (hover: hover) { .dg-alt summary:hover { color: var(--fg); } }
@media (prefers-reduced-motion: reduce) { .dg-alt summary::before { transition: none; } }
.dg-alt ol { counter-reset: dg-step; max-width: 72ch; margin-block-start: var(--space-2); padding: var(--space-3) var(--space-4); list-style: none; border: var(--line-hair) solid var(--rule); border-radius: var(--radius-plate); background: var(--box); }
.dg-alt li { counter-increment: dg-step; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; column-gap: var(--space-2); line-height: var(--lh-base); }
.dg-alt li::before { content: counter(dg-step, decimal-leading-zero); color: var(--accent); font-family: var(--font-name); font-size: var(--type-xs); font-weight: var(--w-ui); line-height: var(--lh-base); }
.dg-alt li + li { margin-block-start: var(--space-2); padding-block-start: var(--space-2); border-block-start: var(--line-hair) solid var(--rule); }

/* Mermaid 그림: 원래 폭(--w)까지 늘고, 좁은 화면에서는 원래 폭의 0.8배 아래로 줄이지 않고 가로로 스크롤한다. */
.mmd-frame { overflow-x: auto; padding-block: var(--space-2); }
.mmd-frame svg { display: block; width: 100%; max-width: calc(var(--w) * 1px); min-width: calc(var(--w) * 0.8px); height: auto; }
/* 안내는 0.8배 하한(0.8 × --w)이 틀 폭(100cqw)보다 클 때만 높이를 얻는다. JS 없이 폭이 바뀔 때마다 다시 계산된다. 줄 높이 = 최대 높이(--space-6, 예외: 높이 식). */
.mmd-wrap { container-type: inline-size; }
.mmd-hint { display: flex; align-items: center; gap: var(--space-2); overflow: hidden; max-height: clamp(0px, (var(--w) * 0.8px - 100cqw) * 1000, var(--space-6)); color: var(--muted); font-size: var(--type-xs); font-weight: var(--w-ui); line-height: var(--space-6); }
.dg-mmd .dg-panel-name { max-width: 60ch; }
.mmd-fail { padding: var(--space-4); border: var(--line-hair) solid var(--read-fg); }
@container (min-width: 760px) {
  .dg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 1100px) {
  .dg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 1180px) {
  .dg-wide { display: block; }
  .dg-narrow { display: none; }
}

/* 글 안 도식은 글 머리와 같은 장면 색 면으로 놓아 홈 장면과 이어 보이게 한다. */
.prose > .dg { max-width: none; margin-block: var(--space-6); padding: var(--pad-plate); background: var(--bg); color: var(--fg); font-size: var(--type-ui); line-height: var(--lh-code); }
.prose > .dg ol { padding-inline-start: var(--flow-indent-num); }
/* 좁은 화면에서는 본문 여백까지 써서 도식 글자가 작아지지 않게 한다. */
@media (max-width: 1099px) {
  .prose > .dg { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}
/* Mermaid·draw.io 판(원문 7·추가 구조도 8): 띠(1100 이상은 화면 여백 --gutter 사이, 그 아래는 화면 끝까지)는 가운데 맞춤용일 뿐 색이 없고,
   그 가운데에 흰 판 하나(그림 자체 흰 바탕 --plate-bg, 두 테마 모두 밝은 종이, 얇은 중립선·같은 모서리 --radius-plate·안쪽 여백 --pp)를 놓는다.
   판 폭 = 자연 그림 폭(figure --w) + 좌우 여백, 640px 이상 1280px 이하이고 띠보다 넓지 않다(390은 화면 너비).
   위 줄(.dg-head)은 왼쪽 제목·오른쪽 조작(선 설명·크게 보기·일시정지) 한 묶음이고, 같이 못 들어가면 조작이 아래 줄 오른쪽으로 내려간다.
   그림은 판 안쪽 가운데(원래 폭까지, 좁으면 0.8배 하한에서 가로 스크롤). 안내·단계·캡션·summary는 판 안쪽 시작선. 검사: verify-diagram-alignment.cjs. */
.prose > .dg-mmd {
  --pp: var(--pad-plate);
  --span: calc(100% + var(--axis) - var(--gutter));
  --plate: min(var(--span), 1280px, max(640px, var(--w) * 1px + 2 * var(--pp) + 2 * var(--line-hair)));
  width: var(--plate);
  margin-inline: calc(var(--gutter) - var(--axis) + (var(--span) - var(--plate)) / 2) 0;
  padding: var(--pp);
  border: var(--line-hair) solid var(--rule);
  border-radius: var(--radius-plate);
  background: var(--plate-bg);
  --halo: var(--plate-bg);
}
@media (max-width: 1099px) {
  .prose > .dg-mmd { --pp: var(--gutter); --span: calc(100% + 2 * var(--gutter)); margin-inline-start: calc((var(--span) - var(--plate)) / 2 - var(--gutter)); }
}
.prose > .dg-mmd .dg-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.prose > .dg-mmd .dg-head > .dg-panel-name { margin: 0; }
/* no-JS는 범례 본문이 조작 줄 안에 그대로 보이므로 그 줄을 제목 아래 전체 폭으로 둔다. */
.prose > .dg-mmd .dg-bar:has(> .dg-legend-pop:not([data-pop])) { flex-basis: 100%; }
.prose > .dg-mmd .dg-panels > .dg-panel-name { display: none; }
.mmd-frame svg { margin-inline: auto; }
/* --col-px는 .prose 글자 크기 기준 65ch를 px로 굳힌 값이다(자식 판 안에서 ch가 다시 풀리지 않게). */
@property --col-px { syntax: "<length>"; inherits: true; initial-value: 0px; }
.prose { --col-px: var(--measure); }
.prose > .dg-mmd :is(.dg-legend-pop, .dg-panel-name, .mmd-hint, .dg-now, figcaption, .dg-alt) { max-width: var(--col-px); }
.prose > .dg-mmd .dg-legend { padding-inline-start: 0; }
.prose > .dg-mmd .dg-bar { position: static; justify-content: flex-end; column-gap: var(--space-3); margin-inline-start: auto; }
.prose > .dg-mmd .dg-tools { margin-inline-start: 0; }
.prose > .dg-mmd .dg-legend-pop[data-pop] { top: calc(100% + var(--space-1)); left: auto; right: 0; }
.prose > .dg-mmd .dg-toggle { margin-inline-end: 0; }
.prose > .dg-mmd .dg-tip { right: 0; }
/* '구조도 보기'로 온 도식이 글 목차 줄(sticky) 아래에 보이게 한다. */
.prose > .dg { scroll-margin-top: 4rem; }

/* 320 폭: 여백 안에서는 360 폭 viewBox 글자가 9.8px까지 작아진다. C2와 같은 방법으로 그림만 화면 끝까지 넓혀 11.5px 이상을 지킨다. */
@media (max-width: 359px) {
  .dg-svg, .dg-narrow { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
}

@media (hover: hover) and (pointer: fine) {
  .row-read:hover .row-title, .article-next li a:hover .row-title { text-decoration: underline; text-decoration-thickness: var(--line-mark); text-underline-offset: 0.15em; }
  .row-read:hover .row-action .icon, .cta:hover .icon { transform: translateX(4px); }
  .row-jump:hover, .bar-home:hover, .back-home:hover { text-decoration: underline; }
}


/* 데스크톱 홈 막대는 위에 고정하고 장면은 고정하지 않는다. 글 목차 줄과 같은 고정 규칙 하나를 쓴다(한 페이지에 둘이 함께 있지 않다: 홈에는 목차가, 글에는 홈 막대가 없다). */
@media (max-width: 899px), (max-height: 599px) {
  .page-home .bar { position: static; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .scene { scroll-margin-top: var(--bar-h); }
  html:has(.page-home) { scroll-padding-top: var(--bar-h); }
}

@media (min-width: 900px) {
  .layout-b .scene-head { padding-inline-start: calc(100% / 6); }

  .rail-panel ol { columns: 2; column-gap: var(--gutter); }
  .code-copy:hover { text-decoration-thickness: var(--line-mark); }
  .rail-panel li { break-inside: avoid; }
}


/* 글 머리의 게시일·시리즈·태그와 원문 링크 */
.post-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--meta-gap); font-size: var(--type-small); line-height: var(--lh-ui); }
.post-meta div { display: flex; gap: var(--space-2); }
.post-meta dt { color: var(--muted, var(--read-muted)); }
.post-meta dd { font-weight: var(--w-ui); font-variant-numeric: tabular-nums; }
.article-head .post-meta { margin-block-start: var(--space-4); }
.article-jump { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--hit); margin-block-start: var(--space-2); font-weight: var(--w-ui); text-underline-offset: 0.2em; }
.translation-review { margin-block-start: var(--space-3); color: var(--muted); font-size: var(--type-small); }
.article-lang { margin-block-start: var(--space-3); max-width: var(--measure); font-weight: var(--w-ui); }
.article-source { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--hit); margin-block-start: var(--space-1); font-weight: var(--w-ui); text-underline-offset: 0.2em; }

/* 전체 글: 연도 묶음의 색인 행 */
.list-head { padding-block-end: var(--space-5); }
.list-lede { margin-block-start: var(--space-2); color: var(--muted); font-weight: var(--w-ui); }
.filters { display: grid; gap: var(--space-4); margin-block-start: var(--space-5); }
.filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter legend { padding: 0; margin-block-end: var(--space-2); font-size: var(--type-small); font-weight: var(--w-ui); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-chip {
  min-height: var(--hit);
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border: var(--line-hair) solid var(--fg);
  background: var(--box);
  color: var(--fg);
  font: inherit;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); font-weight: var(--w-strong); }
.filters > .filter-reset { justify-self: start; }
.filter-reset {
  min-height: var(--hit);
  padding-block: 0;
  padding-inline: var(--space-4);
  border: var(--line-hair) solid var(--fg);
  background: var(--bg, var(--read-bg));
  color: var(--fg, var(--read-fg));
  font: inherit;
  font-weight: var(--w-ui);
  cursor: pointer;
}
/* 지금 비활성 조작은 없다. 생기면 투명도만이 아니라 글자색도 흐려 구분한다. */
:is(button, select):disabled { cursor: not-allowed; opacity: 0.6; color: var(--muted, var(--read-muted)); }
.list-status { margin-block-start: var(--space-3); color: var(--muted); font-variant-numeric: tabular-nums; }
.list-status:empty { display: none; }
.list-body { padding: 0 var(--edge) var(--space-7); }
.year-group + .year-group { margin-block-start: var(--space-7); }
.year-title { font-size: var(--t-year); font-weight: var(--w-display); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.year-group .rows { margin-block-start: var(--space-2); }
.post-row .row-title { font-size: var(--t-list-row); }
/* 추가 구조도가 있는 글 8편의 작은 표시. 글자이며 장식 점이 아니다. */
.post-row .post-meta { padding-block-end: var(--space-3); color: var(--read-fg); }
.list-empty { margin-block-start: var(--space-5); display: grid; justify-items: start; gap: var(--space-3); font-weight: var(--w-ui); }
@media (min-width: 900px) {
  .post-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); column-gap: var(--gutter); }
  .post-row .post-meta { flex-direction: column; padding-block: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 11차: 글 목차 줄(sticky, 약 3rem)과 홈 막대가 키보드 초점·앵커 이동 대상을 가리지 않게 스크롤 여백을 둔다(WCAG 2.4.11). */
html:has(.rail) { scroll-padding-top: 4rem; }

/* 좁은 폭 목차: 패널 좌우 여백과 h3 들여쓰기를 줄여 긴 원문 절 제목의 줄바꿈을 줄인다(글자 크기·원문은 줄이지 않고, 남는 줄바꿈은 한 항목 안에서 이어 읽힌다). */
@media (max-width: 419px) {
  .rail summary, .rail-panel { padding-inline: var(--space-4); }
  .toc-h3 { padding-inline-start: var(--space-3); }
}

/* 크게 보기 버튼: 범례 줄 오른쪽 끝. 글자와 아이콘, 조작 영역 44px. */
.dg-zoom {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--hit);
  padding-block: 0;
  padding-inline: var(--space-3);
  border: var(--line-hair) solid currentColor;
  background: none;
  color: var(--fg);
  font: inherit;
  font-weight: var(--w-ui);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.dg-zoom:hover { background: var(--fg); color: var(--bg); }
.is-zoomable { cursor: zoom-in; }

/* 크게 보기 dialog: 화면 전체. 위 줄에 제목과 조작, 아래는 끌어서 옮기는 무대. */
.viewer {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--read-bg);
  color: var(--read-fg);
  overscroll-behavior: contain;
}
.viewer[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.viewer::backdrop { background: var(--viewer-backdrop); }
html:has(.viewer[open]) { overflow: hidden; }
.viewer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: max(var(--space-2), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) var(--space-1) max(var(--gutter), env(safe-area-inset-left));
  border-block-end: var(--line-hair) solid var(--read-rule);
}
.viewer-title { min-width: 0; font-size: var(--type-body); font-weight: var(--w-strong); line-height: var(--lh-head); }
.viewer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.viewer-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: var(--hit);
  min-height: var(--hit);
  padding-block: 0;
  padding-inline: var(--space-2);
  border: var(--line-hair) solid var(--read-fg);
  background: var(--read-bg);
  color: var(--read-fg);
  font: inherit;
  font-weight: var(--w-ui);
  cursor: pointer;
  touch-action: manipulation;
}
.viewer-tools button:hover { background: var(--read-fg); color: var(--read-bg); }
/* 확대창 범례: 본문 도식의 같은 범례 노드를 옮겨 와 머리 줄 바로 아래에 띄운다. */
.viewer-bar { position: relative; }
.viewer-legend {
  position: absolute;
  top: 100%;
  right: max(var(--gutter), env(safe-area-inset-right));
  z-index: 2;
  width: min(40rem, 100% - 2 * var(--gutter));
  max-height: min(18rem, 50svh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--space-3) var(--space-4);
  border: var(--line-hair) solid var(--read-fg);
  background: var(--read-bg);
  color: var(--read-fg);
  box-shadow: var(--shadow-dialog-pop);
  /* 옮겨 온 견본 선(.dg-e)이 쓰는 장면 색. 크게 보기 대상 글 도식은 모두 scene-paper라 본문과 같은 값이다. */
  --fg: var(--scene-paper-fg);
  --accent: var(--scene-paper-accent);
}
.viewer-legend[hidden] { display: none; }
.viewer-legend .dg-legend { color: inherit; }
.viewer-legend:focus-visible { outline-offset: calc(-1 * var(--line-focus)); }
.viewer-tools button[aria-expanded="true"] { background: var(--read-fg); color: var(--read-bg); }
.viewer-zoom { min-width: 3.5rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: var(--w-ui); }
.viewer-help { padding: var(--space-1) var(--gutter) var(--space-2); color: var(--read-muted); font-size: var(--type-xs); line-height: var(--lh-ui); border-block-end: var(--line-hair) solid var(--read-rule); }
.viewer-stage {
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: var(--scene-paper-band);
}
.viewer-stage[data-drag] { cursor: grabbing; user-select: none; }
.viewer-stage:focus-visible { outline-offset: calc(-1 * var(--line-focus) - var(--line-hair)); }
.viewer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  container-type: inline-size;
  transform-origin: 0 0;
  background: var(--bg, var(--scene-paper-box));
  color: var(--fg, var(--read-fg));
  --halo: var(--bg, var(--scene-paper-box));
}
.viewer-canvas > :is(svg, img) { display: block; width: 100%; max-width: none; min-width: 0; height: auto; }
.viewer-canvas > .dg-panels { margin: 0; padding: var(--space-4); }
.zoom-holder { display: block; }

.site-foot { display: flex; justify-content: center; padding: var(--space-4) var(--edge) var(--space-5); color: var(--read-muted); font-size: var(--type-xs); text-align: center; }
.site-foot a { display: inline-flex; align-items: center; min-height: var(--hit); color: inherit; text-underline-offset: 0.2em; }

/* 아이콘·상표 안내, 404: 읽기 화면 한 열 */
.doc { padding: var(--pad-doc-top) var(--gutter) var(--space-7) var(--axis); }
.doc > * { max-width: var(--measure); }
.doc > * + * { margin-block-start: var(--flow); }
.doc h1 { font-size: var(--t-article); line-height: var(--lh-title); letter-spacing: var(--track-display); font-weight: var(--w-display); }
.doc h2 { margin-block-start: var(--flow-h3); font-size: var(--type-h2-doc); font-weight: var(--w-strong); letter-spacing: var(--track-head); }
.doc a { color: var(--read-link); text-underline-offset: 0.18em; overflow-wrap: anywhere; }
/* 글 사이에 낀 링크가 아니라 혼자 선 링크(연락 GitHub, 인용 출처)는 44px 영역이다. */
.doc :is(p, footer) > a:only-child { display: inline-flex; align-items: center; min-height: var(--hit); }
.doc ul { padding-inline-start: var(--flow-indent); list-style: disc; }
.doc li + li { margin-block-start: var(--flow-li); }
.doc blockquote { margin: 0; padding-inline-start: var(--flow); border-inline-start: var(--line-hair) solid var(--read-fg); }
.doc strong { font-weight: var(--w-strong); }
.doc .table-scroll { max-width: none; }
.doc code { font-family: var(--font-code); font-size: var(--type-inline-code); overflow-wrap: anywhere; }

/* 소개 C: 원문 연속 구절을 장식 복제하고 경력 여섯 면·압축 목록·사실 목록으로 읽는다. */
.about-role { color: var(--muted); font-size: var(--type-lede); font-weight: var(--w-ui); }
.about-lede { font-size: var(--type-lede); }
.about-note { margin-block-start: var(--space-2); color: var(--muted); }
.px { background: var(--bg); color: var(--fg); }
.px h2 { font-size: var(--type-h2-doc); font-weight: var(--w-strong); line-height: var(--lh-head); letter-spacing: var(--track-head); }
.px h3 { font-size: var(--type-h3); font-weight: var(--w-strong); line-height: var(--lh-head); letter-spacing: var(--track-head); }
.px-hero { padding: var(--pad-about-hero) var(--edge) var(--space-7); }
.px-hero h1 { font-size: var(--t-name); font-weight: var(--w-display); line-height: var(--lh-display); letter-spacing: var(--track-name); }
.pc-hero .px-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); }
.pc-hero .about-role { margin: 0; }
.pc-hero .about-lede { margin-block-start: var(--space-4); max-width: 40em; }
.pc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-5); padding: 0 var(--edge) var(--space-5); }
.pc-head .about-note { margin: 0; }
.pc-blocks { margin: 0; }
.pc-block { padding: var(--pad-about-block) var(--edge); background: var(--bg); color: var(--fg); border-block-start: var(--line-hair) solid var(--rule); }
.pc-ink { background: var(--about-ink-bg); }
.pc-paper { background: var(--scene-paper-bg); }
.pc-block .about-meta { display: flex; flex-direction: column; gap: 0; margin: 0; color: var(--fg); font-size: var(--type-career-date); font-weight: var(--w-strong); line-height: var(--lh-head); letter-spacing: var(--track-head); }
.about-date { font-family: var(--font-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-block .about-date { color: var(--fg); }
.pc-phrase { margin-block-start: var(--space-4); font-size: var(--t-scene); font-weight: var(--w-display); line-height: var(--lh-title); letter-spacing: var(--track-head); overflow-wrap: anywhere; text-wrap: balance; }
:lang(en) .pc-phrase::first-letter { text-transform: uppercase; }
.pc-block h3 { margin-block-start: var(--space-5); }
.pc-text { margin-block-start: var(--space-2); max-width: var(--measure); }
.pc-compact { padding: var(--pad-about-facts) var(--edge) 0; border-block-start: var(--line-hair) solid var(--rule); }
.pc-compact ol { margin-block-start: var(--space-3); }
.pc-compact li { display: grid; gap: 0 var(--space-5); padding-block: var(--space-3); border-block-start: var(--line-hair) solid var(--rule); }
.pc-compact .about-date { color: var(--fg); font-weight: var(--w-ui); }
.pc-c-role { color: var(--muted); font-weight: var(--w-body); }
.px-facts { display: grid; gap: var(--space-7) var(--gutter); padding: var(--pad-about-facts) var(--edge) var(--space-7); border-block-start: var(--line-hair) solid var(--rule); }
.px-facts section { min-width: 0; }
.px-facts h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); padding-block-end: var(--space-2); border-block-end: var(--line-hair) solid var(--rule); }
.about-label { color: var(--muted); font-family: var(--font-meta); font-size: var(--type-xs); font-weight: var(--w-body); letter-spacing: 0; }
.about-github { display: inline-flex; justify-content: center; align-items: center; min-width: var(--hit); min-height: var(--hit); align-self: center; }
.px-facts ul { margin-block-start: var(--space-3); }
.px-facts li + li { margin-block-start: var(--space-2); }
.about-dated li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-2) var(--space-3); }
.about-dated .about-date { justify-self: end; text-align: right; color: var(--muted); font-size: var(--type-small); }
.px-facts .skill-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.px-facts .skill-tags li { margin: 0; padding: var(--space-1) var(--space-2); border: 0; border-radius: var(--radius-tag); background: var(--band); font-size: var(--type-small); line-height: var(--lh-ui); }
.px-facts .about-note { max-width: 46ch; }
.px-facts a { color: var(--read-link); text-underline-offset: 0.18em; font-weight: var(--w-ui); overflow-wrap: anywhere; }
.px-facts p > a:only-child { display: inline-flex; align-items: center; min-height: var(--hit); }
.about-architecture { grid-column: 1 / -1; margin-block-start: var(--space-6); padding: var(--space-4); border: var(--line-hair) solid var(--rule); border-radius: var(--radius-plate); background: var(--plate-bg); color: var(--fg); color-scheme: light; min-width: 0; }
.about-architecture .dg-panels { min-width: 0; }
.about-architecture .about-diagram-tools { display: flex; justify-content: flex-end; }
.about-architecture figcaption { margin-block-start: var(--space-3); font-size: var(--type-small); }
@media (min-width: 700px) {
  .px-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-facts [aria-labelledby="about-related"] { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .pc-block { display: grid; grid-template-columns: 17rem minmax(0, 1fr); grid-template-areas: "meta phrase" "meta head" "meta text"; column-gap: var(--gutter); }
  .pc-block .about-meta { grid-area: meta; }
  .pc-phrase { grid-area: phrase; margin: 0; max-width: 18em; font-size: var(--t-section); }
  :lang(en) .pc-phrase { max-width: 22em; font-size: var(--t-scene); }
  .pc-block h3 { grid-area: head; margin-block-start: var(--space-6); }
  .pc-text { grid-area: text; }
  .pc-compact li { grid-template-columns: 11rem 17rem minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 1100px) {
  .px-facts { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .px-facts [aria-labelledby="about-related"], .px-facts [aria-labelledby="about-skills"] { grid-column: span 6; }
  .px-facts [aria-labelledby="about-certs"], .px-facts [aria-labelledby="about-education"] { grid-column: span 6; }
}
.about-topic { display: block; color: var(--muted); font-size: var(--type-small); font-weight: var(--w-ui); }
.about-links a { display: inline-flex; min-height: var(--hit); align-items: center; font-weight: var(--w-ui); }

/* owner 11-05 밤: 장면 제목이 곧 링크(글 읽기 단추 없음). 글자색 그대로, 올리면 밑줄. */
.scene-link { color: inherit; text-decoration: none; }
@media (hover: hover) { .scene-link:hover { text-decoration: underline; text-decoration-thickness: var(--line-mark); text-underline-offset: 0.15em; } }

/* owner 11-05 밤: 홈의 '전체 글 N개'는 글 줄과 다른 모양 — 고정폭 글자, 강조색 테두리 단추(아이콘 없음, 다른 화면과 같게). */
.home-all { margin-block-start: var(--space-4); }
.home-all a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--hit); padding-inline: var(--space-3); border: var(--line-hair) solid var(--accent); border-radius: var(--radius-plate); color: var(--accent); font-family: var(--font-name); font-size: var(--type-small); font-weight: var(--w-ui); text-decoration: none; }
@media (hover: hover) { .home-all a:hover { background: var(--box); } }

/* owner 11-06 새벽: 도식이 본문보다 넓어 글이 적어 보인다 → 넓은 화면(1100+)에서 도식 폭 = 본문 글 폭.
   큰 그림은 이 폭 안에서 줄여 보이고(가로 스크롤 없음), 자세히는 '크게 보기'로 본다. 좁은 화면 규칙은 그대로. */
@media (min-width: 1100px) {
  .prose > .dg { margin-inline: 0; width: var(--col-px); max-width: 100%; box-sizing: border-box; }
  .prose > .dg-mmd { --span: var(--col-px); --plate: var(--col-px); width: var(--col-px); max-width: 100%; margin-inline: 0; }
  .prose > .dg-mmd .mmd-frame svg { min-width: 0; } .prose > .dg-mmd .mmd-frame { min-height: var(--hit); } /* 줄인 낮은 그림도 초점 영역(tabindex 0) 44px */
  .prose > .dg-mmd .mmd-hint { display: none; }
}

/* owner 11-06 새벽: 코드 블록이 본문보다 넓게 튀어나옴 → 본문 글 폭(--col-px)에 맞추고 긴 줄은 블록 안 가로 스크롤. */
.prose > .code { max-width: min(100%, var(--col-px)); }

/* owner 11-06 새벽: 목차 띠는 화면 끝까지, 안의 글자(현재 절·펼친 목록·닫기)는 본문 글 폭 안. --text-col은 app.js가 .prose 폭을 옮겨 둔 값(없으면 띠 폭). */
.rail summary, .rail-panel { padding-inline-end: max(var(--gutter), calc(100% - var(--axis) - var(--text-col, 100%))); }
@media (max-width: 419px) { .rail summary, .rail-panel { padding-inline: var(--space-4); } }

/* owner 11-06 새벽: 게시일은 이름표 없이 은은한 색. 홈 목록 줄에도 제목 아래 날짜. */
.post-meta { color: var(--muted, var(--read-muted)); font-weight: var(--w-body); font-variant-numeric: tabular-nums; }
.post-row .post-meta { color: var(--muted, var(--read-muted)); }
.row-date { display: block; margin-block-start: var(--space-1); color: var(--muted, var(--read-muted)); font-size: var(--type-small); font-weight: var(--w-body); font-variant-numeric: tabular-nums; }

/* owner 11-06 새벽: 목차는 위 줄에서 펼치고 닫는다. 펼치면 아래 글은 80% 흐려진다(투명도 0.2). 펼칠 때 글은 움직이지 않는다. */
.rail ~ * { transition: opacity 200ms var(--ease-out); }
.rail[open] ~ * { opacity: 0.2; }
@media (prefers-reduced-motion: reduce) { .rail ~ * { transition: none; } }

/* owner 11-06 새벽: 연도 버튼은 제자리. 스크롤하면 지금 보고 있는 연도 제목이 화면 맨 위에 붙어 어느 해의 글인지 보인다. */
.year-title { position: sticky; top: 0; z-index: 1; padding-block: var(--space-2); background: var(--bg); border-block-end: var(--line-hair) solid var(--rule); }

/* owner 11-06 새벽: 본문 글 선택 막기(우클릭·복사 방지와 함께). 코드 블록은 선택·복사 가능. */
body { -webkit-user-select: none; user-select: none; }
.code pre, .code code, input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }

/* owner 11-06 새벽: 링크 공유 단추는 글 제목 끝에 작게(흐린 색, 올리면 진하게). 툴팁·'복사했습니다'는 머리 막대 툴팁과 같은 모양. 아이콘은 규격 16px, 누르는 영역은 44px(--hit). */
.share-btn { position: relative; display: inline-grid; place-items: center; width: var(--hit); height: var(--hit); flex: none; padding: 0; border: 0; background: none; color: var(--muted, var(--read-muted)); cursor: pointer; }
.share-btn[hidden] { display: none; }
.share-btn .icon { transition: rotate 240ms var(--ease-out), scale 240ms var(--ease-out); }
@media (hover: hover) { .share-btn:hover { color: var(--fg, var(--read-fg)); } .share-btn:hover > .bar-tip { visibility: visible; } .share-btn:hover > .icon { rotate: -12deg; scale: 1.08; } }
.share-btn:focus-visible > .bar-tip, .share-btn[data-tip="on"] > .bar-tip { visibility: visible; }
.share-btn > .bar-tip { left: 50%; right: auto; translate: -50% 0; font-size: var(--type-xs); font-weight: var(--w-ui); letter-spacing: 0; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .share-btn .icon { transition: none; } }
.article-title-row { display: flex; align-items: center; gap: var(--space-2); }
.article-title-row > .article-title { min-width: 0; }

/* 11-06 새벽 역할 회의: 홈 '포스트 N개' 단추의 한글이 고정폭 자리에서 벌어지지 않게 본문 글꼴, 글 제목 줄은 본문 폭 안. */
.home-all a { font-family: var(--font); }
.article-title-row { max-width: var(--text-col, var(--measure)); }
