/* 메이플체인지 공식 웹 — B 깔끔 톤(오너 답 ① 2026-09-28 · 시안 Docs/research/web/mock/common.css .b)
   흰 바탕 · 카드 · 주황 포인트 #e8710a. 템플릿은 인라인 style 없이 이 클래스만 쓴다(CSP style-src 'self'). */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; background: #f7f8fa; color: #222; font-size: 15px; line-height: 1.55; }
a { color: #1f5fae; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 윗줄 */
.top { background: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #e3e6ea; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 19px; color: #e8710a; }
.logo:hover { text-decoration: none; }
.logo small { font-size: 13px; color: #666; font-weight: 700; margin-left: 4px; }
.nav a { color: #333; margin-right: 16px; font-size: 14px; }
.nav a.on { color: #e8710a; font-weight: 700; }
.top .right { margin-left: auto; }
.top-links { margin-left: auto; font-size: 12px; }
.top-links a { color: #777; margin-left: 12px; }
.top-links a:hover { color: #e8710a; }

/* 본문 */
.page { max-width: 1040px; margin: 0 auto; padding: 8px 6px 24px; }
.hero { padding: 22px 20px 6px; }
.hero h1 { font-size: 26px; font-weight: 800; }
.hero p { margin-top: 6px; color: #666; }
.hero .hero-btns { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } .nav a { margin-right: 10px; } }

.win { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; margin: 14px; }
.win h2 { font-size: 15px; padding: 12px 14px 6px; display: flex; align-items: baseline; }
.win h2 .more { margin-left: auto; font-size: 12px; font-weight: 400; color: #888; }
.win.narrow { max-width: 520px; margin: 40px auto; }
.win .body { padding: 6px 14px 14px; }
.empty { color: #888; padding: 8px 14px 14px; font-size: 14px; }
.center { text-align: center; padding-bottom: 16px; }

/* 버튼 */
.btn { display: inline-block; background: #e8710a; color: #fff; border: 0; border-radius: 6px; padding: 7px 16px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn:hover { background: #d0640a; text-decoration: none; }
.btn.gray { background: #eef0f3; color: #333; }
.btn.gray:hover { background: #e2e5ea; }
.btn[disabled] { opacity: .5; cursor: default; }

/* 목록 */
.list { list-style: none; padding: 6px 12px 10px; }
.list li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #dde3ea; font-size: 14px; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.list li a { color: #222; }
.pin { color: #d0021b; font-weight: 700; white-space: nowrap; }
.cat { font-size: 12px; padding: 1px 7px; border-radius: 9px; background: #e5eefb; color: #2b5797; white-space: nowrap; }
.cat.p { background: #fff0d9; color: #b35c00; }
.cat.e { background: #e6f7e9; color: #237a33; }
.date { margin-left: auto; color: #888; font-size: 12px; white-space: nowrap; }
.val { margin-left: auto; }
.mono { font-family: Consolas, monospace; font-size: 12px; }

/* 쪽 나눔 */
.pager { display: flex; gap: 4px; justify-content: center; padding: 10px 0 18px; font-size: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 3px 9px; border-radius: 6px; }
.pager a { background: #fff; border: 1px solid #e3e6ea; color: #333; }
.pager .cur { background: #e8710a; color: #fff; font-weight: 700; }
.pager .off, .pager .gap { color: #bbb; }

/* 폼 */
.field { padding: 6px 14px; font-size: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; border: 1px solid #cfd6df; background: #fff; border-radius: 6px; padding: 7px 9px; font-size: 14px; font-family: inherit; color: #222; }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 12px; color: #777; margin-top: 3px; }
.error { color: #c00; font-size: 13px; }
.chips label { display: inline-block; border: 1px solid #cfd6df; border-radius: 14px; padding: 4px 11px; margin: 0 5px 5px 0; font-size: 13px; background: #fff; cursor: pointer; font-weight: 400; }
.chips input { position: absolute; opacity: 0; }
.chips input:checked + span { color: #e8710a; font-weight: 700; }

/* 표 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 6px 8px; border-bottom: 1px solid #e3e6ea; text-align: left; vertical-align: top; }
th { background: #f3f5f8; }

/* 상태 딱지 */
.st { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.st.new { background: #ffe3e3; color: #c00; } .st.ai { background: #efe6ff; color: #6a2bc2; }
.st.ok { background: #e6f7e9; color: #237a33; } .st.wait { background: #fff4d6; color: #9a6a00; }

/* 마크다운 본문(web/core/markdown.render 결과) */
.md { padding: 6px 16px 18px; font-size: 15px; overflow-wrap: anywhere; }
.md h2 { font-size: 19px; margin: 18px 0 8px; } .md h3 { font-size: 17px; margin: 16px 0 6px; } .md h4 { font-size: 15px; margin: 14px 0 6px; }
.md p { margin: 8px 0; } .md ul, .md ol { margin: 8px 0 8px 22px; } .md li { margin: 3px 0; }
.md blockquote { border-left: 3px solid #e3e6ea; color: #555; padding: 2px 12px; margin: 10px 0; }
.md pre { background: #f3f5f8; border-radius: 6px; padding: 10px 12px; overflow-x: auto; font-size: 13px; margin: 10px 0; }
.md code { font-family: Consolas, monospace; font-size: 13px; background: #f3f5f8; padding: 0 4px; border-radius: 4px; }
.md pre code { background: none; padding: 0; }
.md img { max-width: 100%; height: auto; border-radius: 6px; }
.md table { margin: 10px 0; } .md hr { border: 0; border-top: 1px solid #e3e6ea; margin: 16px 0; }

/* 관리자 빨간 줄(조용한 실패 금지) */
.alert { background: #ffe3e3; color: #a00; border-bottom: 1px solid #f5b5b5; padding: 8px 20px; font-size: 14px; font-weight: 700; }

/* 아랫줄 */
.foot { max-width: 1040px; margin: 0 auto; padding: 14px 20px 30px; font-size: 12px; color: #777; display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: #777; }
.foot-links { margin-left: auto; text-align: right; line-height: 1.8; }

/* 글(rp-web-cms) — 분류·상태 줄 · 글 머리 */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 14px 6px; }
.tabs a { font-size: 13px; padding: 3px 11px; border-radius: 14px; border: 1px solid #cfd6df; background: #fff; color: #333; }
.tabs a.on { border-color: #e8710a; color: #e8710a; font-weight: 700; }
.tabs a:hover { text-decoration: none; border-color: #e8710a; }
.post-head { padding: 14px 16px 8px; border-bottom: 1px solid #e3e6ea; }
.post-head h1 { font-size: 21px; font-weight: 800; line-height: 1.4; }
.post-kind { font-size: 13px; margin-bottom: 4px; }
.post-kind a { color: #888; }
.post-meta { margin-top: 6px; font-size: 13px; color: #777; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

/* 접수(rp-web-ticket) — 폼 줄 · 진행 단계 · 답변 상자 · 첨부 그림 */
.ask-row { display: flex; gap: 8px; }
.ask-row > div { flex: 1; }
.ask-submit { padding-bottom: 14px; }
.ask-me { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
form.inline { display: inline; }
.btn.small { padding: 3px 10px; font-size: 12px; }
.field label.check { font-weight: 400; }
.ask-banner { border-color: #e8710a; }
.ask-steps { padding: 6px 14px 10px; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ask-steps .st { background: #eef0f3; color: #999; }
.ask-steps .st.ok { background: #e6f7e9; color: #237a33; }
th.ask-th { width: 110px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-shots a { display: inline-block; margin: 0 6px 6px 0; }
.ask-shots img { max-width: 180px; max-height: 120px; border-radius: 4px; border: 1px solid #e3e6ea; }
.ask-msg { margin: 12px 14px; padding: 10px 12px; border-radius: 6px; font-size: 14px; border: 1px solid #e3e6ea; background: #fafbfc; }
.ask-msg.admin { background: #f2f7ff; border-color: #bcd3f0; }
.ask-msg .date { margin-left: 6px; }
.ask-msg p.pre { margin-top: 4px; }
@media (max-width: 720px) { .ask-row { flex-direction: column; } }

/* 관리자(rp-web-admin) — 접수함·기록 표 · OTP QR · 긴 본문 칸 */
table.adm { margin: 4px 0 12px; }
table.adm td { font-size: 13px; }
table.adm td.pre { max-width: 260px; }
img.qr { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid #e3e6ea; border-radius: 6px; }
textarea.tall { min-height: 360px; font-family: Consolas, "Malgun Gothic", monospace; font-size: 13px; }
.top form.right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.win h2 .more .btn { margin-left: 4px; }
