/* 82api 소개·개발가이드 — EzOMS 소개 사이트와 같은 톤. web/tools/site/build.mjs 가 site.base.css + site.add.css 로 만든다(직접 고치지 않는다). */
/* EzOMS 소개 사이트(D:\sites\ezoms.co.kr\web\public\site.css)를 2026-11-24 에 그대로 옮긴 것. 글꼴(@font-face) 줄만 뺐다. 고치지 않는다 — 82api 것은 site.add.css 에. */
/* 소개 페이지 공통 — 흰 바탕, 짙은 남색 글자, 가는 선. 장식보다 내용. */
:root {
  color-scheme: light;
  --font: "EzOMS Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ink: #1c2230;
  --ink-2: #353c4b;
  --ink-3: #4a5263;
  --ink-4: #8a91a0;
  --paper: #ffffff;
  --mist: #f3f2ef;
  --proof: #eef0f2;
  --rule: #d9dce1;
  --hair: #e6e8eb;
  --blue: #1f4fa3;
  --blue-ink: #1f4fa3;
  --green: #2f7a4a;
  --amber: #a5661b;
  --red: #b4322f;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 머리말 ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px;
  height: 64px; padding: 0 max(var(--gutter), (100% - var(--wide)) / 2);
  background: #fff; border-bottom: 1px solid var(--hair);
}
.logo { display: flex; align-items: center; gap: 9px; margin-right: auto; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo img { width: 26px; height: 26px; }
.logo-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 12px; color: var(--ink-3); font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: 12px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.nav-cta:hover { background: #000; }
.burger { display: none; position: relative; width: 40px; height: 40px; margin-left: 8px; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s, top .2s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
body.menu-open .burger span:first-child { top: 19px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 19px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 64px 0 0; z-index: 25; display: none; flex-direction: column; padding: 8px var(--gutter) 40px; background: #fff; }
.sheet a { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 18px; font-weight: 600; }
body.menu-open .sheet { display: flex; }

/* ---------- 글자 ---------- */
.eyebrow { display: block; margin-bottom: 14px; color: var(--ink-4); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.eyebrow i { display: none; }
.display { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.18; font-weight: 750; letter-spacing: -.035em; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; font-weight: 750; letter-spacing: -.03em; }
.h3 { font-size: 20px; font-weight: 700; }
.lede { margin-top: 18px; max-width: 34em; color: var(--ink-3); font-size: 17px; line-height: 1.75; }
.grad { color: inherit; }
.center { text-align: center; }
.muted { color: var(--ink-4); }

/* ---------- 버튼 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; }
.pill .knob { display: none; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; border-color: #000; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: var(--mist); }
.pill-white { background: #fff; color: var(--ink); border-color: #fff; }
.link-arrow, .more { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.note-s { margin-top: 12px; color: var(--ink-4); font-size: 13px; }

/* 예전 카드 틀(다운로드 페이지 등) — 장식 없이 선 하나 */
.bezel { padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.bezel > .core { height: 100%; }
.bezel.is-dark { border-color: #2c3342; background: #222938; color: #e9ebef; }

/* ---------- 섹션 ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section.mist { background: var(--mist); border-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- 첫 화면 ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .lede { margin-top: 18px; }
/* 홈: 사진 위에 글 */
.hero.home { position: relative; display: flex; align-items: center; min-height: clamp(520px, 62vh, 640px); padding: 0; background: #e9e4dc url("/img/hero.jpg") center right / cover no-repeat; }
.hero.home .wrap { position: relative; padding: 64px 0; }
.hero-text { max-width: 30em; }
.hero.home .lede { color: #3d4454; }
.hero.home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(236 232 225 / 92%) 0%, rgb(236 232 225 / 70%) 38%, rgb(236 232 225 / 0%) 62%); }
.hero-photo { display: none; }
@media (max-width: 860px) {
  .hero.home { display: block; min-height: 0; background-image: none; background-color: #ece8e1; }
  .hero.home::before { display: none; }
  .hero.home .wrap { padding: 48px 0 28px; }
  .hero-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
}

/* ---------- 본문 2단: 견본 + 설명 목록 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.split.rev > :first-child { order: 2; }
.proof { padding: clamp(20px, 3vw, 36px); border-radius: 4px; background: var(--proof); }
.photo { width: 100%; height: auto; border-radius: 4px; background: var(--mist); }
.photo-cap { margin-top: 10px; color: var(--ink-4); font-size: 13px; }
/* 사진·견본 칸은 옆 글 칸과 높이를 맞춘다 (넓은 화면) */
.split:has(> .media) { align-items: stretch; }
figure.media { margin: 0; }
.media { display: flex; flex-direction: column; }
.media .photo { flex: 1; height: 0; min-height: 340px; object-fit: cover; }
.media .proof { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.points { margin-top: 32px; border-top: 1.5px solid var(--ink); }
.points > div { padding: 22px 0 24px; border-bottom: 1px solid var(--hair); }
.points h3 { font-size: 18px; font-weight: 700; }
.points p { margin-top: 8px; max-width: 30em; color: var(--ink-3); font-size: 15.5px; line-height: 1.75; }
.points b.n { display: inline-block; min-width: 28px; color: var(--ink-4); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 주문 목록 견본 (실제 화면을 단순하게 옮긴 표) */
.sheet-sample { background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgb(28 34 48 / 8%); overflow: hidden; font-size: 13px; }
.sheet-sample .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 11px 14px; border-bottom: 1px solid var(--hair); color: var(--ink-4); font-size: 12.5px; }
.sheet-sample .bar b { margin-right: auto; color: var(--ink); font-size: 13.5px; }
.sheet-sample .bar .on { color: var(--ink); font-weight: 600; }
.win-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.win-table th { padding: 8px 12px; text-align: left; font-weight: 600; color: var(--ink-4); font-size: 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.win-table td { padding: 10px 12px; border-bottom: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; overflow-wrap: anywhere; }
.win-table tr:last-child td { border-bottom: 0; }
.win-table td b { display: block; font-weight: 600; color: var(--ink); }
.win-table td small { display: block; color: var(--ink-4); font-size: 11.5px; }
.win-table td.box { width: 1%; white-space: nowrap; color: var(--ink-4); }
.win-table tr.grp td { background: #f6f8fb; }
.win-table tr.grp td.box { color: var(--blue); font-weight: 700; box-shadow: inset 2px 0 var(--blue); }
.win-table tr.grp:first-child td { border-bottom-color: #f6f8fb; }
.win-table tr.grp:first-child td[rowspan] { border-bottom-color: var(--hair); }
.tag { display: inline-block; padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; font-size: 11.5px; font-weight: 600; line-height: 18px; color: var(--ink-3); }
.tag.blue { color: var(--blue); } .tag.green { color: var(--green); } .tag.amber { color: var(--amber); } .tag.red { color: var(--red); }

/* ---------- 숫자 ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.figure { padding: 22px 20px 4px 0; }
.figure strong { display: block; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: 8px; color: var(--ink-3); font-size: 14px; line-height: 1.55; }

/* ---------- 요금 요약 ---------- */
.price-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.price-table th { font-size: 17px; font-weight: 700; white-space: nowrap; }
.price-table td { color: var(--ink-3); font-size: 15px; }
.price-table td.won { padding-right: 0; color: var(--ink); font-weight: 700; white-space: nowrap; text-align: right; }

/* ---------- 몰 목록 ---------- */
.malls { display: grid; gap: 32px; }
.mall-group h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-4); }
.mall-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mall { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500; }
a.mall:hover { border-color: var(--ink); }
.mall .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--mist); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.mall.api .dot { background: var(--ink); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 99px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--rule); }
.legend i.api { background: var(--ink); box-shadow: none; }
/* 연동 쇼핑몰 표 */
.mall-table-wrap { border-top: 1.5px solid var(--ink); }
.mall-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.mall-table thead th { padding: 12px 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-4); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.mall-table td, .mall-table tbody th { padding: 11px 12px; border-bottom: 1px solid var(--hair); text-align: left; color: var(--ink-2); vertical-align: middle; }
.mall-table tbody th { font-weight: 600; color: var(--ink); }
.mall-table tbody th a:hover { border-bottom: 1.5px solid var(--ink); }
.mall-table thead th:first-child, .mall-table tbody th { padding-left: 0; }
.mall-table tr.grp th { padding: 26px 0 8px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 700; color: var(--ink-4); }
.mall-table tbody:first-of-type tr.grp th { padding-top: 14px; }
.mall-table td.off { color: var(--rule); }
.mall-table .how { display: inline-block; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.mall-table .how.api { border-color: var(--ink); background: var(--ink); color: #fff; }
.mall-table .tag { margin-left: 6px; font-size: 11px; line-height: 16px; vertical-align: 1px; }
.section.mist .mall-table tr.grp th { background: var(--mist); }
.mall-note { margin: 16px 0 0; color: var(--ink-4); font-size: 13px; line-height: 1.7; }
.mp .mall-table-wrap { margin-top: 28px; }
.malls-more { margin: 28px 0 0; font-size: 15px; }
.malls-more a { font-weight: 600; border-bottom: 1.5px solid var(--ink); }

/* ---------- 어두운 띠 (예전 페이지 호환) ---------- */
.dark { background: var(--ink); color: #eef0f3; }
.dark .lede, .dark p { color: #c4c9d3; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checks svg { flex: none; width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 질문 ---------- */
.faq { max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--ink-4); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 22px; max-width: 46em; line-height: 1.8; color: var(--ink-3); }

/* ---------- 마지막 안내 / 꼬리말 ---------- */
.final { background: var(--mist); }
.final .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.final .btns { margin-top: 0; }
.foot { padding: 36px 0 48px; border-top: 1px solid var(--hair); color: var(--ink-4); font-size: 13px; }
.foot a:hover { color: var(--ink); }
.foot-biz { display: grid; gap: 10px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--ink-3); }
.foot-biz p { line-height: 1.75; }

/* ---------- 다운로드 페이지 ---------- */
.dl-card .core { padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; }
.dl-head { display: flex; align-items: center; gap: 18px; }
.app-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; }
.app-icon img { width: 64%; height: 64%; }
.dl-head .app-icon { width: 64px; height: 64px; }
.app-icon.is-ext { position: relative; }
.app-icon.is-ext::after { content: ""; position: absolute; top: 8%; right: 8%; width: 20%; height: 20%; border-radius: 50%; background: #5b8def; }
.dl-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.dl-meta div { padding: 14px 16px 0 0; }
.dl-meta small { display: block; color: var(--ink-4); font-size: 12.5px; }
.dl-meta b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 .core { padding: 24px; }
.steps3 .num { display: block; color: var(--ink-4); font-size: 14px; font-weight: 700; }
.steps3 h3 { margin: 10px 0 0; font-size: 18px; font-weight: 700; }
.steps3 p { margin: 8px 0 0; color: var(--ink-3); font-size: 15px; line-height: 1.7; }
.sha { font: 12px ui-monospace, Consolas, monospace; letter-spacing: 0; color: var(--ink-3); overflow-wrap: anywhere; }

/* 등장 효과는 쓰지 않는다 (예전 마크업 호환용 클래스만 남김) */
.reveal { opacity: 1; transform: none; }

/* ---------- 쇼핑몰 연동 안내 페이지 (/malls, /malls/:code) ---------- */
.mp { padding: 56px 0 88px; }
.mp .wrap { width: min(880px, 100% - var(--gutter) * 2); }
.mp-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-4); margin-bottom: 20px; }
.mp-crumb a:hover { color: var(--ink); }
.mp h1 { margin: 10px 0 0; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.2; letter-spacing: -.035em; }
.mp-lede { margin: 16px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink-3); }
.mp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.mp-h2 { margin: 52px 0 16px; padding-top: 18px; border-top: 1.5px solid var(--ink); font-size: 22px; letter-spacing: -.025em; }
.mp-h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-4); }
.mp .malls { margin-top: 24px; }
.mp-caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; }
.mp-caps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 500; }
.mp-caps li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--mist); font-size: 12px; }
.mp-caps li.on b { background: var(--ink); color: #fff; }
.mp-caps li.off { color: var(--ink-4); }
.mp-caps small { width: 100%; margin-left: 32px; color: var(--ink-4); font-size: 12.5px; font-weight: 400; }
.mp-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.mp-steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.7; }
.mp-steps li::before { content: counter(s) "."; flex: none; min-width: 20px; color: var(--ink-4); font-weight: 700; }
.mp-note { padding: 16px 18px; border-left: 3px solid var(--ink); background: var(--mist); line-height: 1.8; color: var(--ink-2); }
.mp .faq { max-width: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.rev > :first-child { order: 0; }
  .media .photo { flex: none; height: auto; min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 767px) {
  .nav { height: 56px; }
  .sheet { inset: 56px 0 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .steps3, .dl-meta { grid-template-columns: 1fr; }
  .btns .pill { flex: 1 1 auto; }
  .hide-m { display: none; }
  .price-table .hide-m { display: none; }
  .mall-table { font-size: 13.5px; }
  .mall-table td, .mall-table tbody th, .mall-table thead th { padding-left: 8px; padding-right: 8px; }
  .mall-table thead th:first-child, .mall-table tbody th { padding-left: 0; }
}

/* ==================== 여기부터 82api 에만 있는 것 ====================
   위쪽은 EzOMS 소개 사이트의 site.css 를 그대로 옮긴 것이다(색·글자·여백·단추·표·꼬리말).
   글꼴만 다르다: EzOMS 는 Pretendard 에서 자기 사이트 글자만 뽑은 파일을 쓰므로, 여기서는 같은 Pretendard 를 jsdelivr 에서 받는다. */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: Consolas, "SF Mono", ui-monospace, Menlo, monospace;
  --ink-4: #717988; /* 원본 #8a91a0 은 흰 바탕에서 흐려 조금 진하게 */
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
button { font: inherit; letter-spacing: inherit; }
code { font-family: var(--mono); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sheet[hidden] { display: none; }
.foot-copy { color: var(--ink-4); }
.foot-row a { color: var(--ink-3); }

/* 첫 화면 — 사진 대신 호출 견본 */
.hero.plain { background: #ece8e1; padding: clamp(56px, 8vw, 96px) 0; }
.hero.plain .split { align-items: center; }
.hero.plain .lede { color: #3d4454; }

/* 호출 견본 (EzOMS 홈의 API 견본 상자) */
.api-sample { align-self: center; min-width: 0; padding: 22px; border-radius: 20px; background: #14181c; color: #e6e9ec; display: grid; gap: 12px; }
.api-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.api-step b { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2d6cdf; color: #fff; font-size: 13px; }
.api-step span { font-size: 13px; color: #aab3bd; }
.api-step code, .api-sample pre code { font: 12.5px/1.6 var(--mono); color: #e6e9ec; word-break: break-all; }
.api-sample pre { margin: 4px 0 0; padding: 14px; border-radius: 12px; background: #0d1013; overflow-x: auto; }
.api-sample pre code { white-space: pre; }

/* 다른 페이지로 가는 길 (홈·개발가이드 목차) */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.way { display: block; padding: 20px 0 26px; border-top: 1.5px solid var(--ink); }
.way b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.way span { display: block; margin-top: 8px; color: var(--ink-3); font-size: 15px; line-height: 1.7; }
.way i { display: inline-block; margin-top: 14px; font-style: normal; font-weight: 600; font-size: 14.5px; border-bottom: 1.5px solid var(--ink); }
.way:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.ways.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .ways, .ways.two { grid-template-columns: minmax(0, 1fr); } }

/* 3단계 (다운로드 페이지의 카드 3장) */
.steps3 { margin: 0; padding: 0; list-style: none; }
.steps3 code { display: inline-block; margin-top: 14px; padding: 2px 8px; border-radius: 6px; background: var(--mist); font-size: 12.5px; color: var(--ink-2); word-break: break-all; }

/* 상품·단가 표 */
.table-wrap { position: relative; overflow-x: auto; }
.price-table thead th { padding: 12px 12px 12px 0; font-size: 13px; font-weight: 600; color: var(--ink-4); border-bottom: 1px solid var(--rule); }
.price-table thead th.won { text-align: right; padding-right: 0; }
.price-table tbody th { white-space: normal; min-width: 11em; }
.price-table tbody th a:hover { border-bottom: 1.5px solid var(--ink); }
.price-table tbody th code { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; color: var(--ink-4); }
.price-table td.won + td.won { padding-left: 20px; }
.price-table td.go { padding-right: 0; text-align: right; white-space: nowrap; }
.price-table .state { padding: 28px 0; color: var(--ink-4); }
.sk-line { display: inline-block; height: 12px; border-radius: 4px; background: var(--proof); vertical-align: middle; }
.section.mist .sk-line { background: #e4e2dd; }
@media (max-width: 640px) { .price-table .desc, .price-table .go { display: none; } }

/* 안내 3칸 (요금제 페이지 아래 안내) */
.pr-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; margin-top: 28px; }
.pr-note { padding: 18px 0 0; border-top: 1.5px solid var(--ink); font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.pr-note b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
@media (max-width: 760px) { .pr-notes { grid-template-columns: 1fr; } }

/* 설명 페이지(.mp) 보탬 */
.mp p + p { margin-top: 10px; }
.mp-body p, .mp-body li { color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.mp-body ul { margin: 10px 0 0; padding-left: 22px; }
.mp-note + .mp-note, .mp-note + p, p + .mp-note, .table-wrap + .mp-note, pre + .mp-note { margin-top: 14px; }
.mp-note.warn { border-left-color: var(--red); background: #fbf1f0; }
.mp .points { margin-top: 0; }
.mp .points p { max-width: none; }
.mp code { font: 13px var(--mono); background: var(--mist); padding: 1px 6px; border-radius: 6px; }
.mp pre code { background: none; padding: 0; }
.mp-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; border-top: 1px solid var(--hair); }
.mp-facts div { padding: 14px 16px 0 0; min-width: 0; }
.mp-facts small { display: block; color: var(--ink-4); font-size: 12.5px; }
.mp-facts b { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 640px) { .mp-facts { grid-template-columns: 1fr; } }
.flow-line { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.flow-line li { display: inline-flex; align-items: center; gap: 6px; }
.flow-line li + li::before { content: "→"; color: var(--ink-4); }
.flow-line code { padding: 3px 8px; border: 1px solid var(--rule); border-radius: 3px; background: #fff; font-size: 12.5px; }
.flow-line .ok code { border-color: var(--green); color: var(--green); }
.flow-line .end code { border-color: var(--red); color: var(--red); }
.flow-line.alt li + li::before { content: "또는"; font-size: 12px; }

/* 문서(약관·API 문서 모양) */
pre.code { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: #14181c; color: #e6e9ec; overflow-x: auto; tab-size: 2; }
pre.code code { background: none; padding: 0; color: inherit; font: 12.5px/1.65 var(--mono); white-space: pre; }
.m { display: inline-block; font: 700 11px/1 system-ui, sans-serif; padding: 4px 7px; border-radius: 6px; color: #fff; letter-spacing: .04em; background: #1f5fd1; vertical-align: 2px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.doc-table th, .doc-table td { border: 1px solid var(--hair); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; color: var(--ink-2); }
.doc-table thead th { background: var(--mist); font-weight: 600; white-space: nowrap; color: var(--ink); }
.doc-table tbody th { font-weight: 600; white-space: nowrap; color: var(--ink); }
.doc-table code { font: 13px var(--mono); background: var(--mist); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.doc-table tr.is-ok th code { background: #e3f3e9; color: #1d5c36; }
.doc-table tr.is-end th code { background: #f7e6e5; color: #8f2a27; }
.doc-table .yes { font-weight: 700; color: var(--ink); }
@media (max-width: 767px) { .doc-table th, .doc-table td { padding: 8px 10px; } .doc-table tbody th { white-space: normal; } }

/* 개발가이드: 왼쪽 차례 + 본문 */
.doc { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 56px; padding-bottom: 88px; }
.doc-toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 14.5px; }
.doc-toc b { margin-bottom: 10px; font-size: 13px; color: var(--ink-4); font-weight: 600; }
.doc-toc a { padding: 6px 12px; margin-left: -12px; border-left: 2px solid transparent; color: var(--ink-3); }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.doc-main { min-width: 0; max-width: 820px; }
.doc-main h1 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; }
.doc-main .meta { margin: 12px 0 0; color: var(--ink-3); font-size: 16.5px; line-height: 1.75; }
.doc-main h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 44px 0 12px; padding-top: 18px; border-top: 1.5px solid var(--ink); font-size: 21px; letter-spacing: -.025em; scroll-margin-top: 90px; }
.doc-main h2 code { font-size: 15.5px; font-weight: 600; background: none; padding: 0; word-break: break-all; }
.doc-main h2 small { font-size: 14px; font-weight: 500; color: var(--ink-4); }
.doc-main h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 700; }
.doc-main p, .doc-main li { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.doc-main p + p { margin-top: 10px; }
.doc-main ul, .doc-main ol { margin: 10px 0 0; padding-left: 22px; }
.doc-main li { margin: 4px 0; }
.doc-main p code, .doc-main li code { font: 13px var(--mono); background: var(--mist); padding: 1px 6px; border-radius: 6px; }
.doc-main .box { margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: var(--mist); }
.doc-main .warn { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #fff7e8; color: #7a4b00; }
.doc-main .warn p, .doc-main .warn li { color: inherit; }
.doc-main .warn code { background: #f6e6c6; }
.doc-main .danger { margin-top: 14px; padding: 16px 18px; border-left: 3px solid var(--red); background: #fbf1f0; }
.doc-main .danger p { color: var(--ink); }
.doc-main .small, .mp .small { margin-top: 10px; color: var(--ink-4); font-size: 13.5px; }
.doc-main .ways { margin-top: 28px; }
.u { border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.doc-mobile-toc { display: none; margin: 0 0 24px; }
.doc-mobile-toc select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.doc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.doc-nav a { display: block; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 6px; }
.doc-nav a:hover { border-color: var(--ink); }
.doc-nav small { display: block; color: var(--ink-4); font-size: 12.5px; }
.doc-nav b { display: block; margin-top: 2px; font-size: 16px; }
.doc-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .doc-side { display: none; }
  .doc-mobile-toc { display: block; }
}
@media (max-width: 520px) { .doc-nav { grid-template-columns: 1fr; } .doc-nav .next { grid-column: 1; text-align: left; } }

/* 상품 고르기 · 예제 탭 */
.doc-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.doc-pick label { font-size: 13px; font-weight: 600; color: var(--ink-4); }
.doc-pick select { flex: 1 1 240px; min-width: 0; max-width: 460px; height: 38px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.doc-price { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.doc-price b { color: var(--ink); }
.notice:empty { display: none; }
.notice { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff7e8; color: #7a4b00; font-size: 14px; }
.doc-tabs { display: flex; align-items: center; gap: 4px; margin-top: 14px; border-bottom: 1px solid var(--rule); }
.doc-tabs [role=tab] { padding: 9px 16px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font-size: 15px; cursor: pointer; }
.doc-tabs [role=tab][aria-selected="true"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.doc-copy { margin-left: auto; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; }
.doc-copy:hover { border-color: var(--ink); }

/* 404 */
.nf { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); }
.nf b { display: block; font-size: clamp(72px, 14vw, 140px); line-height: 1; letter-spacing: -.06em; }
.nf h1 { margin: 18px 0 8px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.03em; }
.nf p { margin: 0 0 28px; color: var(--ink-3); }
.nf .btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 0; }

/* 번호 목록 안에 굵은 글자·코드가 섞여도 한 문장으로 흐르게 */
.mp-steps li { display: block; position: relative; padding-left: 34px; }
.mp-steps li::before { position: absolute; left: 0; }

/* 표 안 코드는 줄을 나누지 않는다 — 좁은 화면에서는 표가 자기 틀 안에서 옆으로 밀린다 */
.doc-table code { white-space: nowrap; }
@media (max-width: 767px) { .doc-table tbody th { white-space: nowrap; } .doc-table td { min-width: 9em; } }
.price-table tbody th code { background: none; padding: 0; }

/* Worker 가 채워 주는 상품 목록·상품 페이지(web/src/site.ts 의 마크업) */
.ssr-list { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.ssr-list th { padding: 12px 12px 12px 0; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-4); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ssr-list td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; color: var(--ink-3); font-size: 15px; }
.ssr-list td:first-child { font-size: 16px; font-weight: 700; color: var(--ink); min-width: 9em; }
.ssr-list td:first-child a:hover { border-bottom: 1.5px solid var(--ink); }
.ssr-list td code { background: none; padding: 0; font-size: 12.5px; color: var(--ink-4); overflow-wrap: anywhere; }
/* 설명 칸은 좁게: 긴 상품 ID 와 함께 있어도 표가 옆으로 넘치지 않게 */
.ssr-list td:nth-child(3) { font-size: 14px; overflow-wrap: anywhere; }
.ssr-list td:nth-child(2) { max-width: 13em; }
/* 머리글의 화면 낭독기용 글자(.sr-only)가 오른쪽 끝에서 1px 넘쳐 가로 스크롤 막대가 생기지 않게 */
.ssr-list th:last-child { position: relative; }
.ssr-list th .sr-only { left: 0; }
.ssr-list .num { text-align: right; white-space: nowrap; }
.ssr-list td.num { color: var(--ink); font-weight: 700; }
.ssr-list th:last-child, .ssr-list td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.ssr-list td:last-child a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.ssr-list .ssr-empty td { padding: 28px 0; font-size: 15px; font-weight: 400; color: var(--ink-4); text-align: left; }
@media (max-width: 640px) {
  .ssr-list th:nth-child(3), .ssr-list td:nth-child(3), .ssr-list th:nth-child(6), .ssr-list td:nth-child(6) { display: none; }
  .ssr-list .ssr-empty td { display: table-cell; }
  .ssr-list td:first-child { min-width: 0; }
}

.ssr-product .lead { margin: 16px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink-3); }
.ssr-product h2 { margin: 52px 0 16px; padding-top: 18px; border-top: 1.5px solid var(--ink); font-size: 22px; letter-spacing: -.025em; }
.ssr-price { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); }
.ssr-price dt { color: var(--ink-4); font-size: 12.5px; }
.ssr-price dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ssr-product table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ssr-product th, .ssr-product td { border: 1px solid var(--hair); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; color: var(--ink-2); }
.ssr-product thead th { background: var(--mist); font-weight: 600; white-space: nowrap; color: var(--ink); }
.ssr-product td code { white-space: nowrap; }
.ssr-product td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
#item > .mp-note:first-child { margin-top: 18px; }

/* 용어 뜻풀이 */
.terms { margin: 0; border-top: 1px solid var(--hair); }
.terms > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.terms dt { font-weight: 700; font-size: 15.5px; }
.terms dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
@media (max-width: 640px) { .terms > div { grid-template-columns: minmax(0, 1fr); } }
.faq-item p code, .faq-item p a { overflow-wrap: anywhere; }

/* 첫 화면 사진 (EzOMS 홈과 같은 짜임: 왼쪽 글, 오른쪽 사진, 왼쪽으로 옅어지는 덮개) */
.hero.home { background-image: url("/img/hero.webp"); }
@media (max-width: 860px) { .hero.home { background-image: none; } }
.proof .api-sample { align-self: stretch; }
.points p code { font-size: 13px; background: var(--mist); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.section.mist .points p code { background: #e7e5e0; }
.price-table.sum { align-self: center; }
.price-table.sum tbody th { min-width: 0; white-space: nowrap; }
@media (max-width: 520px) { .price-table.sum tbody th { white-space: normal; } }

/* 과금 페이지 — EzOMS 요금제 페이지의 짜임(넓은 틀, 큰 제목, 표, 안내 3칸) */
.pr { padding: 56px 0 72px; }
.pr.mp .wrap { width: min(1180px, 100% - var(--gutter) * 2); }
.pr-head { max-width: 720px; margin: 0 0 36px; }
.pr-head h1 { margin: 10px 0 12px; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.035em; line-height: 1.15; }
.pr-head p { margin: 0; color: var(--ink-3); font-size: 16px; line-height: 1.7; }
.pr-h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-4); }
.pr-more { max-width: 880px; margin-top: 64px; }
.pr-more > .mp-h2:first-child { margin-top: 0; }
.hero.home::before { background: linear-gradient(90deg, rgb(236 232 225 / 95%) 0%, rgb(236 232 225 / 84%) 36%, rgb(236 232 225 / 0%) 62%); }
@media (max-width: 860px) { .hero.home::before { display: none; } }

/* 개발가이드 본문 제목은 EzOMS API 문서처럼 줄 없이 */
.doc-main h2 { margin: 40px 0 10px; padding-top: 0; border-top: 0; font-size: 19px; letter-spacing: -.02em; }

/* ==================== 본문 틀의 폭을 머리말(상단 메뉴)과 같게 ====================
   바깥 틀은 어느 페이지나 .wrap 의 기본 폭(--wide)이다. 글이 긴 페이지는 글줄만 좁히고 왼쪽에 붙인다(머리말 시작선과 같은 자리). */
.mp .wrap, .pr.mp .wrap { width: min(var(--wide), 100% - var(--gutter) * 2); }
.pr-more, .doc-main { max-width: none; }
.mp-body > p, .mp-lede, .mp-body > ul, .mp-body > ol.mp-steps, .mp-body > .mp-note, .pr-head, .pr-more > p, .pr-more > .mp-note,
.ssr-product > p, .ssr-product .lead, #item > p, #item > .mp-note, #item > ul,
.doc-main > p, .doc-main > .meta, .doc-main > ul, .doc-main > ol, .doc-main > .box, .doc-main > .warn, .doc-main > .danger, .doc-main > .notice { max-width: 820px; }
.nf { min-height: calc(100dvh - 64px); padding-left: 0; padding-right: 0; }
.nf > div { width: min(var(--wide), 100% - var(--gutter) * 2); }
.mp p + .points { margin-top: 18px; }

/* /docs/ 제공 서비스 표 (자료: web/public/app/agency-services.js). 칸이 넷이라 좁은 화면에서도 줄을 나눠 옆으로 밀리지 않게 */
.svc-table tbody th { white-space: normal; }
.svc-table tbody th[colspan] { background: var(--mist); color: var(--ink); }
.svc-table small, .svc-table .dim { color: var(--ink-4); font-weight: 400; }
.svc-ready, .svc-soon { display: inline-block; white-space: nowrap; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.svc-ready { background: #e3f3e9; color: #1d5c36; }
.svc-soon { background: var(--mist); color: var(--ink-4); }
/* 좁은 화면: 줄마다 카드처럼 쌓는다(메뉴 → API 이름·입력·상태를 이름표와 함께) */
@media (max-width: 767px) {
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: auto; }
  .svc-table thead { display: none; }
  .svc-table code { white-space: normal; overflow-wrap: anywhere; }
  .svc-table tr { border: 1px solid var(--hair); border-radius: 10px; margin: 0 0 8px; overflow: hidden; }
  .svc-table th, .svc-table td { border: 0; min-width: 0; padding: 6px 12px; white-space: normal; }
  .svc-table tbody th { background: var(--mist); }
  .svc-table tbody th[colspan] { background: none; padding: 10px 0 2px; font-size: 15px; }
  .svc-table tr:has(th[colspan]) { border: 0; margin: 8px 0 4px; }
  .svc-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 5.5em; color: var(--ink-4); font-size: 12.5px; }
}

/* 로고 마크: 짙은 남색 둥근 사각형 안의 {82} (/icons/mark.svg) */
img.logo-mark { display: block; width: 28px; height: 28px; border-radius: 0; background: none; }
