/* confmcp 문서 사이트 공용 스타일. 외부 폰트·CDN 없이 시스템 글꼴만 사용합니다. */

:root {
  --brand: #3b5bdb;
  --brand-2: #1c7ed6;
  --brand-strong: #364fc7;
  --teal: #12b886;
  --teal-strong: #0ca678;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef2ff;
  --card: #ffffff;
  --text: #1b2232;
  --text-soft: #4a5468;
  --muted: #6b7489;
  --line: #e2e7f0;
  --line-strong: #cdd5e3;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --inline-code-bg: #eef1f8;
  --warn-bg: #fff8e6;
  --warn-line: #f2c94c;
  --ok-bg: #e9f9f2;
  --ok-line: #12b886;
  --danger: #e03131;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 8px 24px rgba(20, 30, 60, .08);
  --shadow-lg: 0 2px 6px rgba(20, 30, 60, .08), 0 18px 48px rgba(20, 30, 60, .14);
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 64px;
  --maxw: 1180px;
  --font: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "D2Coding", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #748ffc;
    --brand-2: #4dabf7;
    --brand-strong: #91a7ff;
    --teal: #38d9a9;
    --teal-strong: #20c997;
    --bg: #0e1320;
    --bg-soft: #131a2a;
    --bg-tint: #18213a;
    --card: #151c2c;
    --text: #e6eaf3;
    --text-soft: #b8c0d2;
    --muted: #8d97ad;
    --line: #253049;
    --line-strong: #33405e;
    --code-bg: #0a0f1c;
    --code-text: #dbe4f3;
    --inline-code-bg: #1f2a44;
    --warn-bg: #2b2412;
    --warn-line: #b8892a;
    --ok-bg: #10291f;
    --ok-line: #20c997;
    --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .4em; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 2.4em 0 .6em; font-weight: 800; }
h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; font-weight: 700; }
h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin: .25em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
strong { font-weight: 700; }
small { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.brand span { line-height: 1.15; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 9px;
  color: var(--text-soft); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-tint); color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--bg-tint); }
.site-nav .nav-gh { border: 1px solid var(--line-strong); margin-left: 6px; }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px;
  }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 12px 12px; font-size: 1rem; }
  .site-nav .nav-gh { margin: 6px 0 0; text-align: center; }
  /* JS 가 없으면 메뉴를 가로 스크롤 줄로 보여 줍니다. */
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; overflow-x: auto; }
  html:not(.js) .site-nav ul { flex-direction: row; }
}

/* ---------- buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, #3b5bdb, #1c7ed6); color: #fff; box-shadow: 0 6px 18px rgba(59, 91, 219, .35); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--bg-tint); color: var(--brand-strong); border: 1px solid var(--line);
}
.badge.teal { color: var(--teal-strong); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.badge-row li { margin: 0; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill.read { background: #e7f5ff; color: #1864ab; }
.pill.write { background: #fff4e6; color: #d9480f; }
.pill.exec { background: #fff0f6; color: #c2255c; }
.pill.p0 { background: #ebfbee; color: #2b8a3e; }
.pill.p1 { background: #edf2ff; color: #364fc7; }
.pill.p2 { background: #f3f0ff; color: #6741d9; }
.pill.ok { background: #ebfbee; color: #2b8a3e; }
.pill.no { background: #f1f3f5; color: #495057; }
.pill.todo { background: #fff9db; color: #e67700; }
@media (prefers-color-scheme: dark) {
  .pill.read { background: #102a43; color: #74c0fc; }
  .pill.write { background: #3a2412; color: #ffa94d; }
  .pill.exec { background: #3a1427; color: #f783ac; }
  .pill.p0, .pill.ok { background: #12301c; color: #69db7c; }
  .pill.p1 { background: #1b2550; color: #91a7ff; }
  .pill.p2 { background: #2a1f4f; color: #b197fc; }
  .pill.no { background: #262c38; color: #adb5bd; }
  .pill.todo { background: #3a3010; color: #ffd43b; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(28, 126, 214, .18), transparent 60%),
    radial-gradient(800px 380px at 0% 0%, rgba(59, 91, 219, .16), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 52px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr .9fr; padding-top: 84px; padding-bottom: 76px; } }
.hero-logo { width: 76px; height: 76px; margin-bottom: 18px; filter: drop-shadow(0 8px 18px rgba(59, 91, 219, .35)); }
.hero .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; }
.hero h1 { margin-bottom: .25em; }
.hero .tagline { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; margin-bottom: .6em; color: var(--text); }
.hero .tagline em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.08rem; color: var(--text-soft); max-width: 40em; }
.hero-shot { margin: 0; }
.hero-shot img { border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--card); }

/* ---------- page heading for guides ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 30px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p.lead { color: var(--text-soft); font-size: 1.06rem; max-width: 46em; margin-bottom: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .container > h2:first-child, .section-head h2 { margin-top: 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--text-soft); font-size: 1.04rem; }
.kicker { display: block; color: var(--brand); font-weight: 700; font-size: .9rem; margin-bottom: 6px; letter-spacing: .02em; }

.summary-box {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  background: var(--card); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow);
  margin: 0 0 1.6em;
}
.summary-box h2 { font-size: 1.05rem; margin: 0 0 .4em; color: var(--brand); }
.summary-box p:last-child { margin-bottom: 0; }

.callout { border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.2em 0; border: 1px solid var(--line); background: var(--bg-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.callout strong:first-child { display: inline; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.card h3 { margin: 0 0 .4em; font-size: 1.1rem; }
.card p { color: var(--text-soft); margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(59, 91, 219, .14), rgba(28, 126, 214, .14)); color: var(--brand);
}
.card .icon svg { width: 24px; height: 24px; }
.card.bad { border-top: 4px solid var(--danger); }
.card.good { border-top: 4px solid var(--teal); }
.card ul { color: var(--text-soft); margin: .6em 0 0; }

.formula {
  font-family: var(--mono); font-size: .98rem; line-height: 1.9;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); overflow-x: auto; white-space: pre; margin: 0 0 1em;
  color: var(--text);
}
.formula b { color: var(--brand); }

/* ---------- flow diagram ---------- */
.flow { display: grid; gap: 14px; align-items: stretch; margin: 8px 0 12px; }
@media (min-width: 960px) { .flow { grid-template-columns: 1fr auto 2.2fr auto 1fr; } }
.flow-node {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); min-width: 0;
}
.flow-node h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.flow-node p { margin: 0; color: var(--text-soft); font-size: .94rem; }
.flow-node.gateway { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--bg-tint), var(--card)); }
.flow-node.gateway h3 { display: flex; align-items: center; gap: 8px; }
.flow-node.gateway h3 img { width: 26px; height: 26px; }
.flow-arrow { display: grid; place-items: center; color: var(--brand); font-size: 1.6rem; font-weight: 800; }
.flow-arrow::before { content: "↓"; }
@media (min-width: 960px) { .flow-arrow::before { content: "→"; } }
.flow-steps { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flow-steps li {
  counter-increment: step; margin: 0; padding: 9px 12px 9px 40px; position: relative;
  border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; line-height: 1.5;
}
.flow-steps li::before {
  content: counter(step); position: absolute; left: 10px; top: 9px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.flow-steps li span { display: block; color: var(--muted); font-size: .84rem; }
.flow-side { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- code ---------- */
code, kbd, samp { font-family: var(--mono); font-size: .9em; }
:not(pre) > code {
  background: var(--inline-code-bg); padding: .12em .42em; border-radius: 6px; color: var(--text);
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; margin: 0 0 1.2em; font-size: .88rem; line-height: 1.65;
  border: 1px solid rgba(255, 255, 255, .06); -webkit-overflow-scrolling: touch; tab-size: 2;
  white-space: pre; word-break: normal; overflow-wrap: normal;
  user-select: text;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
pre .c { color: #8b9bb4; }
.code-label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }

/* ---------- tables ---------- */
.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
}
table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
td:first-child { min-width: 4.5em; }
th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; color: var(--text); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
table.wide { min-width: 720px; }
table.mid { min-width: 560px; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* ---------- figures ---------- */
figure.shot { margin: 1.2em 0 1.8em; }
figure.shot img {
  display: block; width: 100%; max-width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card);
}
figure.shot figcaption, .gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }
figure.shot.mobile img, .gallery .mobile img { max-width: 300px; margin: 0 auto; }
.shot-pair { display: grid; gap: 18px; }
@media (min-width: 720px) { .shot-pair { grid-template-columns: 1fr 1fr; } }
.shot-pair figure.shot { margin: 0; }

.gallery { display: grid; gap: 22px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.gallery .mobile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.gallery .mobile-row figure img { max-width: 260px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.4rem; color: var(--brand); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 1.02rem; margin: 0; }
.faq .answer { padding: 0 0 16px; color: var(--text-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- docs layout with sticky TOC ---------- */
.doc-layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 72px; }
@media (min-width: 1100px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; } }
.doc-layout > article { min-width: 0; max-width: 880px; }
.doc-layout article > section:first-of-type > h2:first-child { margin-top: .6em; }
.doc-layout article section { min-width: 0; }

.toc { font-size: .92rem; }
.toc details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); padding: 4px 14px; }
.toc summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--text); }
.toc ol { list-style: none; padding: 0 0 10px; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 8px; border-radius: 7px; color: var(--text-soft); line-height: 1.45; }
.toc a:hover { background: var(--bg-tint); color: var(--text); text-decoration: none; }
.toc a.active { color: var(--brand); font-weight: 700; background: var(--bg-tint); }
.toc ol ol { padding: 0 0 0 12px; }
@media (min-width: 1100px) {
  .toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
  .toc details { background: transparent; border: 0; padding: 0; }
  .toc summary { pointer-events: none; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
}

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 10px 42px; margin: 0 0 6px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.steps > li > strong:first-child { display: block; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 4px;
  border: 2px solid var(--brand); background: var(--card);
}

.menu-list { columns: 2; column-gap: 28px; }
@media (max-width: 560px) { .menu-list { columns: 1; } }
.menu-list li { break-inside: avoid; }

.related { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }
.related a.card { display: block; color: var(--text); }
.related a.card:hover { text-decoration: none; border-color: var(--brand); }
.related a.card span { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 36px 0 44px; font-size: .92rem; color: var(--muted); }
.footer-inner { display: grid; gap: 18px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer-inner .brand { font-size: 1rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--text-soft); }

.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .card { padding: 18px; }
  .btn { width: 100%; }
  th, td { padding: 9px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .toc, .site-footer, .nav-toggle { display: none !important; }
  .doc-layout { display: block; }
  pre { white-space: pre-wrap; }
}

/* 좁은 화면에서 격자 항목이 내용 폭 때문에 넓어지지 않도록 합니다. */
.grid > *, .hero-inner > *, .shot-pair > *, .footer-inner > *, .flow > *, .related > * { min-width: 0; }
