/* x-mb.css — mb 담당: 랜딩(홈)·이용약관·개인정보처리방침·개정 이력·오류·점검. 접두어 .mb-  색은 :root 토큰만 */

/* ── 랜딩 공통 ─────────────────────── */
.mb-landing { overflow-x: clip; }
.mb-sec { padding: 88px 0; scroll-margin-top: var(--header-h); }
.mb-sec--alt { background: var(--surface-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mb-sec__head { max-width: 640px; margin-bottom: 40px; }
.mb-sec__head h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; margin-top: 8px; }
.mb-sec__head > p:last-child { color: var(--ink-3); margin-top: 10px; font-size: var(--fs-lg); }
.mb-landing + .site-footer { margin-top: 0; }
@media (max-width: 760px) {
  .mb-sec { padding: 56px 0; }
  .mb-sec__head { margin-bottom: 28px; }
  .mb-sec__head > p:last-child { font-size: var(--fs-md); }
}

/* ── 히어로 ───────────────────────── */
.mb-hero { position: relative; padding: 56px 0 72px; background:
  radial-gradient(60% 70% at 85% 10%, var(--accent-soft), transparent 70%),
  radial-gradient(40% 50% at 0% 100%, var(--crema-soft), transparent 70%); }
.mb-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.mb-hero h1 { font-size: 54px; line-height: 1.16; letter-spacing: -0.035em; margin-top: 14px; }
.mb-hero h1 em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 68%, var(--crema) 68%, var(--crema) 92%, transparent 92%); }
.mb-hero__lead { font-size: var(--fs-lg); color: var(--ink-2); margin-top: 20px; max-width: 32em; }
.mb-hero__cta { margin-top: 32px; }
.mb-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--ink-2); font-size: var(--fs-sm); }
.mb-hero__meta li { display: inline-flex; align-items: center; gap: 6px; }
.mb-hero__meta .ic { width: 18px; height: 18px; color: var(--accent); }
.mb-hero__visual { position: relative; }
.mb-hero__figure { position: relative; margin: 0 0 0 auto; width: 88%; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.mb-hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; }
.mb-hero__chip { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); font-size: var(--fs-sm); font-weight: 700; }
.mb-hero__chip .ic { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 1080px) { .mb-hero h1 { font-size: 44px; } }
@media (max-width: 900px) {
  .mb-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .mb-hero__figure { width: 100%; }
}
@media (max-width: 760px) {
  .mb-hero { padding: 28px 0 48px; }
  .mb-hero h1 { font-size: 33px; }
  .mb-hero__lead { font-size: var(--fs-md); }
  .mb-hero__cta .btn { width: 100%; }
  .mb-hero__meta { flex-direction: column; gap: 8px; }
}

/* ── 히어로 데모 카드(라디오로 샘플·말투 바꾸기, JS 없음) ── */
.mb-demo { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.mb-demo.has-photo { width: 86%; margin-top: -120px; }
@media (max-width: 900px) { .mb-demo.has-photo { width: calc(100% - 24px); margin: -56px auto 0; } }
@media (max-width: 760px) { .mb-demo { padding: 16px; } .mb-demo.has-photo { width: 100%; margin-top: -36px; } }
.mb-demo__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mb-demo__title { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.mb-demo__title .ic { color: var(--accent); }
.mb-demo__pick, .mb-demo__seg { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill); }
.mb-demo__pick label, .mb-demo__seg label { flex: 1 1 0; text-align: center; padding: 8px 6px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background var(--t-short) var(--ease), color var(--t-short) var(--ease); }
.mb-demo__pick label:hover, .mb-demo__seg label:hover { color: var(--ink); }
.mb-demo__pick input:checked + label { background: var(--ink); color: var(--surface); font-weight: 700; }
.mb-demo__seg input:checked + label { background: var(--surface); color: var(--accent-ink); font-weight: 700; box-shadow: var(--shadow-sm); }
.mb-demo input:focus-visible + label { box-shadow: var(--focus); }
.mb-demo__tones { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.mb-demo__tones legend { float: left; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); padding-right: 4px; }
.mb-demo__review { display: none; gap: 8px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--surface-3); }
.mb-demo__reply { display: none; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--line); }
.mb-demo__text { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.mb-demo__reply .mb-demo__text { color: var(--ink); }
.mb-demo__rtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mb-demo__rlabel { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--accent-ink); }
.mb-demo__rlabel .ic { width: 16px; height: 16px; }
.mb-demo__count { font-size: var(--fs-xs); color: var(--ink-2); background: var(--surface); padding: 2px 8px; border-radius: var(--r-pill); }
.mb-demo__reply .structure { margin-top: 10px; }
.mb-demo__reply .structure span { background: var(--surface); }
.mb-demo__flow { display: flex; justify-content: center; margin: -6px 0; }
.mb-demo__flow span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--surface); }
.mb-demo__flow .ic { width: 16px; height: 16px; }
.mb-demo__foot { display: flex; align-items: center; gap: 6px; }
/* 고른 샘플·말투만 보이기 */
.mb-demo:has(#mbs-pos:checked) .mb-demo__review[data-s="pos"],
.mb-demo:has(#mbs-neg:checked) .mb-demo__review[data-s="neg"],
.mb-demo:has(#mbs-neu:checked) .mb-demo__review[data-s="neu"] { display: grid; animation: mb-in var(--t-mid) var(--ease); }
.mb-demo:has(#mbs-pos:checked):has(#mbt-friendly:checked) [data-k="pos-friendly"],
.mb-demo:has(#mbs-pos:checked):has(#mbt-polite:checked) [data-k="pos-polite"],
.mb-demo:has(#mbs-pos:checked):has(#mbt-brief:checked) [data-k="pos-brief"],
.mb-demo:has(#mbs-neg:checked):has(#mbt-friendly:checked) [data-k="neg-friendly"],
.mb-demo:has(#mbs-neg:checked):has(#mbt-polite:checked) [data-k="neg-polite"],
.mb-demo:has(#mbs-neg:checked):has(#mbt-brief:checked) [data-k="neg-brief"],
.mb-demo:has(#mbs-neu:checked):has(#mbt-friendly:checked) [data-k="neu-friendly"],
.mb-demo:has(#mbs-neu:checked):has(#mbt-polite:checked) [data-k="neu-polite"],
.mb-demo:has(#mbs-neu:checked):has(#mbt-brief:checked) [data-k="neu-brief"] { display: block; animation: mb-in var(--t-mid) var(--ease); }
@keyframes mb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 400px) { .mb-demo__pick label, .mb-demo__seg label { font-size: 13px; padding: 8px 2px; } }

/* ── 서비스 소개 ───────────────────── */
.mb-intro.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mb-intro__figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--surface-2); box-shadow: var(--shadow); }
.mb-intro__photo { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.mb-intro__figure figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--shadow); }
.mb-intro__figure figcaption .ic { color: var(--accent); }
.mb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mb-intro.has-photo .mb-steps { grid-template-columns: 1fr; gap: 12px; }
.mb-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.mb-step__top { display: flex; align-items: center; justify-content: space-between; }
.mb-step__n { font-size: 30px; font-weight: 700; color: var(--line-strong); }
.mb-step h3 { font-size: var(--fs-h4); margin-top: 16px; }
.mb-step p { color: var(--ink-3); margin-top: 6px; }
.mb-intro.has-photo .mb-step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
.mb-intro.has-photo .mb-step__top { grid-row: span 2; flex-direction: column; gap: 6px; align-items: center; }
.mb-intro.has-photo .mb-step__n { font-size: 15px; color: var(--accent); }
.mb-intro.has-photo .mb-step h3 { margin-top: 0; font-size: var(--fs-lg); }
.mb-pfs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.mb-pfs__label { margin-right: 4px; }
.mb-pfs .pf { font-size: var(--fs-sm); padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .mb-intro.has-photo { grid-template-columns: 1fr; gap: 20px; }
  .mb-intro__figure { aspect-ratio: 16 / 10; }
  .mb-steps { grid-template-columns: 1fr; }
}

/* ── 이용 혜택(벤토) ───────────────── */
.mb-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mb-ben { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mb-ben h3 { font-size: var(--fs-h4); margin-top: 8px; }
.mb-ben > p, .mb-ben__body > p { color: var(--ink-3); }
.mb-ben--wide { grid-column: span 2; }
.mb-ben--photo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 0; overflow: hidden; }
.mb-ben__photo { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.mb-ben__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 0; }
.mb-ben--photo:not(:has(img)) { grid-template-columns: 1fr; }
.mb-ben--photo:not(:has(img)) .mb-ben__body { padding: 24px; }
.mb-tones { display: grid; gap: 8px; margin-top: 8px; }
.mb-tones li { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line); font-size: var(--fs-sm); }
.mb-tones strong { color: var(--accent-ink); }
.mb-tones span { color: var(--ink-2); }
.mb-limits { display: grid; gap: 8px; margin-top: 8px; font-size: var(--fs-sm); }
.mb-limits li { display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 10px; }
.mb-limits li > span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-limits__bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); position: relative; overflow: hidden; }
.mb-limits__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: inherit; }
.mb-limits .num { font-weight: 700; min-width: 48px; text-align: right; }
.mb-flow { display: grid; gap: 8px; margin-top: 8px; }
.mb-flow li { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; font-weight: 700; }
.mb-flow li .num { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-sm); }
.mb-flow small { font-weight: 400; color: var(--ink-3); font-size: var(--fs-sm); }
.mb-banned { margin-top: 8px; padding: 14px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.8; display: grid; gap: 8px; }
.mb-banned__warn { display: flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 700; }
.mb-dash { display: grid; gap: 12px; margin-top: auto; padding-top: 8px; }
.mb-dash__chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding: 12px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line); }
.mb-dash__chart span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--accent-soft); }
.mb-dash__chart span:last-child { background: var(--accent); }
.mb-dash__kw { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-end; }
.mb-dash__kw .kw { font-size: var(--fs-sm); padding: 5px 10px; }
@media (max-width: 980px) {
  .mb-bento { grid-template-columns: 1fr 1fr; }
  .mb-ben--wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .mb-bento { grid-template-columns: 1fr; }
  .mb-ben--wide { grid-column: auto; }
  .mb-ben { padding: 20px; }
  .mb-ben--photo { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .mb-ben__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .mb-ben__body { padding: 20px; }
}

/* ── 사진 띠 ───────────────────────── */
.mb-band { position: relative; isolation: isolate; overflow: hidden; padding: 120px 0; color: var(--surface); }
.mb-band__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mb-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--night) 88%, transparent) 0%, color-mix(in srgb, var(--night) 62%, transparent) 55%, color-mix(in srgb, var(--night) 25%, transparent) 100%); }
.mb-band__quote { font-size: var(--fs-h2); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; max-width: 18em; }
.mb-band__sub { margin-top: 14px; color: var(--surface-2); font-size: var(--fs-lg); }
@media (max-width: 760px) {
  .mb-band { padding: 72px 0; }
  .mb-band::before { background: color-mix(in srgb, var(--night) 74%, transparent); }
  .mb-band__sub { font-size: var(--fs-md); }
}

/* ── 이용 요금 ─────────────────────── */
.mb-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.mb-plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; }
.mb-plan.is-best { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.mb-plan__name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-lg); }
.mb-plan__price { margin-top: 6px; font-size: var(--fs-lg); font-weight: 700; }
.mb-plan__price strong { font-size: 40px; letter-spacing: -0.03em; }
.mb-plan__price span { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500; }
.mb-plan__desc { color: var(--ink-3); font-size: var(--fs-sm); }
.mb-plan__list { display: grid; gap: 10px; margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); flex: 1; font-size: var(--fs-sm); }
.mb-plan__list li { display: flex; gap: 8px; align-items: flex-start; }
.mb-plan__list .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.mb-plan .btn-block { width: 100%; }
.mb-pricing__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; text-align: center; }
@media (max-width: 900px) { .mb-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ── FAQ ───────────────────────────── */
.mb-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.mb-faq__list { display: grid; gap: 10px; }
.mb-faq > .mb-sec__head { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .mb-faq > .mb-sec__head { position: static; } }
.mb-qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--t-short) var(--ease); }
.mb-qa[open] { border-color: var(--line-strong); }
.mb-qa summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; border-radius: var(--r); }
.mb-qa summary::-webkit-details-marker { display: none; }
.mb-qa__q { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-sm); }
.mb-qa__chev { display: inline-flex; color: var(--ink-3); transition: transform var(--t-short) var(--ease); }
.mb-qa[open] .mb-qa__chev { transform: rotate(180deg); }
.mb-qa p { padding: 0 18px 18px 58px; color: var(--ink-2); }
@media (max-width: 900px) { .mb-faq { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 760px) { .mb-qa p { padding-left: 18px; } }

/* ── 무료 체험 신청 ────────────────── */
.mb-apply { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.mb-apply__info h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; margin-top: 8px; }
.mb-apply__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; border-radius: var(--r-lg); margin-bottom: 24px; box-shadow: var(--shadow); }
.mb-apply__steps { display: grid; gap: 12px; margin-top: 24px; }
.mb-apply__steps li { display: flex; gap: 12px; align-items: center; }
.mb-apply__steps li > .num { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 700; font-size: var(--fs-sm); }
.mb-apply__steps strong { display: block; }
.mb-apply__steps small { color: var(--ink-3); font-size: var(--fs-sm); }
.mb-apply__box { scroll-margin-top: calc(var(--header-h) + 16px); }
.mb-apply__form { box-shadow: var(--shadow); }
.mb-apply__done h3 { font-size: var(--fs-h3); }
.mb-apply__done .ico-box { background: var(--ok-soft); color: var(--ok); }
.mb-form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mb-pf-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mb-pf-check { position: relative; cursor: pointer; }
.mb-pf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mb-pf-check span { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; background: var(--surface); transition: all var(--t-short) var(--ease); }
.mb-pf-check span .ic { width: 16px; height: 16px; color: var(--ink-3); }
.mb-pf-check:hover span { border-color: var(--ink-2); }
.mb-pf-check input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.mb-pf-check input:checked + span .ic { color: var(--accent); }
.mb-pf-check input:focus-visible + span { box-shadow: var(--focus); }
fieldset.field legend { margin-bottom: 6px; }
fieldset.field[aria-invalid="true"] .mb-pf-check span { border-color: var(--danger); }
@media (max-width: 900px) { .mb-apply { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 760px) {
  .mb-form2 { grid-template-columns: 1fr; }
  .mb-pf-checks { grid-template-columns: 1fr 1fr; }
  .mb-apply__info h2 br { display: none; }
}

/* ── 약관·방침 ─────────────────────── */
.mb-doc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.mb-doc-head h1 { font-size: var(--fs-h2); }
.mb-doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; color: var(--ink-3); font-size: var(--fs-sm); align-items: center; }
.mb-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.mb-doc--single { grid-template-columns: minmax(0, 1fr); }
.mb-doc__side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.mb-toc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.mb-toc summary { display: flex; align-items: center; gap: 8px; padding: 10px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.mb-toc summary::-webkit-details-marker { display: none; }
.mb-toc__chev { margin-left: auto; display: inline-flex; color: var(--ink-3); transition: transform var(--t-short) var(--ease); }
.mb-toc details[open] .mb-toc__chev { transform: rotate(180deg); }
.mb-toc ol { display: grid; gap: 2px; padding: 0 0 4px; }
.mb-toc a { display: flex; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.mb-toc a:hover { background: var(--surface-2); color: var(--ink); }
.mb-toc a .num { color: var(--accent); font-weight: 700; flex: none; }
.mb-doc__body { padding: 8px 32px 28px; }
.mb-doc__body h2 { scroll-margin-top: calc(var(--header-h) + 16px); padding-top: 4px; }
.mb-table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.mb-table .table { min-width: 480px; }
.mb-table tbody th { background: var(--surface-3); color: var(--ink); font-weight: 700; white-space: nowrap; }
.mb-related { display: grid; gap: 8px; }
.mb-related a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-weight: 500; }
.mb-related a:hover { border-color: var(--line-strong); }
.mb-related a .ic:last-child { margin-left: auto; color: var(--ink-3); }
.mb-sub-h { font-size: var(--fs-lg); margin-bottom: 12px; }
.mb-history { display: grid; gap: 8px; }
.mb-history a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--t-short) var(--ease); }
.mb-history a:hover { border-color: var(--accent); }
.mb-history .mb-ver { font-weight: 700; min-width: 48px; }
.mb-history .mb-hsum { color: var(--ink-2); font-size: var(--fs-sm); }
.mb-history .mb-hdate { display: block; color: var(--ink-3); font-size: var(--fs-xs); }
.mb-history .ic { color: var(--ink-3); }
@media (max-width: 900px) {
  .mb-doc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mb-doc__side { position: static; }
  .mb-toc details:not([open]) { padding: 0 6px; }
}
@media (max-width: 760px) {
  .mb-doc__body { padding: 4px 18px 20px; }
  .mb-doc-head .btn-row { width: 100%; }
}

/* ── 개정 이력 상세(비교) ──────────── */
.mb-changes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mb-change { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.mb-change h3 { font-size: var(--fs-md); }
.mb-change p { font-size: var(--fs-sm); color: var(--ink-3); }
.mb-diff { display: grid; gap: 2px; font-size: var(--fs-sm); padding: 12px; }
.mb-diff li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); line-height: 1.6; }
.mb-diff .mb-dmark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 700; font-family: var(--font-num); }
.mb-diff .is-add { background: var(--ok-soft); color: var(--ink); }
.mb-diff .is-add .mb-dmark { background: var(--ok); color: var(--surface); }
.mb-diff .is-del { background: var(--danger-soft); color: var(--ink); }
.mb-diff .is-del .mb-dtext { text-decoration: line-through; text-decoration-color: var(--danger); }
.mb-diff .is-del .mb-dmark { background: var(--danger); color: var(--surface); }
.mb-diff .is-h { font-weight: 700; color: var(--ink); margin-top: 8px; }
.mb-diff .is-same .mb-dmark { color: var(--line-strong); }
.mb-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); }

/* ── 오류·점검 ─────────────────────── */
.mb-err { min-height: calc(100vh - var(--header-h) - 260px); display: grid; place-items: center; padding: 56px 0; }
.mb-err__box { text-align: center; max-width: 520px; margin: 0 auto; }
.mb-err__box .ico-box { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 18px; }
.mb-err__box .ico-box .ic { width: 34px; height: 34px; }
.mb-err__box .err-code { font-size: 72px; }
.mb-err__box h1 { font-size: var(--fs-h3); margin-top: 8px; }
.mb-err__box > p { color: var(--ink-3); margin-top: 10px; }
.mb-err__box .btn-row { justify-content: center; margin-top: 28px; }
.mb-err__help { margin-top: 24px; font-size: var(--fs-sm); color: var(--ink-3); }
.mb-maint { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.mb-maint__card { max-width: 520px; width: 100%; text-align: center; }
.mb-maint__card .logo { display: flex; justify-content: center; margin-bottom: 24px; }
.mb-maint__card .ico-box { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 18px; background: var(--crema-soft); color: var(--warn); }
.mb-maint__card .ico-box .ic { width: 34px; height: 34px; }
.mb-maint__card h1 { font-size: var(--fs-h3); }
.mb-maint__msg { margin-top: 12px; color: var(--ink-2); white-space: pre-line; }
.mb-maint__card .btn-row { justify-content: center; margin-top: 24px; }
@media (max-width: 760px) { .mb-err__box .btn-row .btn { width: 100%; } }
