/* 쿠폰지갑 — 갈색 가죽 톤 + 흰 바탕, 표 중심, SUIT */
:root {
  --ink: #221a12;
  --ink-2: #4a3d30;
  --muted: #6b5d4f;
  --line: #e2d8cc;
  --bg: #ffffff;
  --tint: #f6f1ea;
  --main: #7a4510;
  --main-dark: #5c330a;
  --gold: #e9c58f;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "SUIT Variable", SUIT, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.78; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.32; margin: 0 0 .55em; font-weight: 800; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--r); font-weight: 800; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-main { background: var(--main); color: #fff; }
.btn-main:hover { background: var(--main-dark); }
.btn-line { background: #fff; color: var(--main-dark); border-color: var(--main); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }

/* 상단 */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--main-dark); color: #fff; }
.topbar-in { display: flex; align-items: center; height: 64px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; fill: #fff; }
.logo-mark .lm-flap { fill: var(--gold); }
.brand-name { font-weight: 900; font-size: 1.22rem; display: flex; align-items: baseline; gap: 10px; }
.brand-sub { font-weight: 600; font-size: .85rem; color: #f0dcc0; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: #fbeee0; text-decoration: none; padding: 8px 11px; font-weight: 700; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.nav .nav-go { margin-left: 8px; background: #fff; color: var(--main-dark); border-radius: var(--r); padding: 9px 14px; }
.nav .nav-go:hover { text-decoration: none; background: var(--tint); }
.nav-btn { display: none; align-items: center; gap: 6px; margin-left: auto; height: 42px; padding: 0 12px; background: transparent; color: #fff; border: 2px solid #b7895a; border-radius: var(--r); font: inherit; font-weight: 800; cursor: pointer; }

/* 첫 화면 */
.intro { background: var(--tint); padding: 52px 0 40px; border-bottom: 2px solid var(--line); }
.intro h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); white-space: nowrap; letter-spacing: -0.02em; }
.intro-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.intro-lead { font-size: 1.12rem; color: var(--ink-2); margin: 0; }
.intro-facts { margin: 0; display: grid; gap: 0; }
.intro-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.intro-facts dt { font-weight: 800; }
.intro-facts dd { margin: 0; color: var(--main-dark); font-weight: 700; }

.section { padding: 54px 0; }
.tone { background: var(--tint); }
.list-note { color: var(--muted); margin-top: 14px; }

/* 쿠폰 표 */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.code-table, .info-table { width: 100%; border-collapse: collapse; }
.code-table th, .code-table td, .info-table th, .info-table td { text-align: left; padding: 13px 12px; border-bottom: 2px solid var(--line); vertical-align: middle; }
.code-table thead th, .info-table thead th { border-bottom: 3px solid var(--main); font-size: .95rem; color: var(--ink-2); white-space: nowrap; }
.code-table tbody th a { color: var(--ink); font-weight: 800; text-decoration: none; display: block; }
.code-table tbody th a:hover { text-decoration: underline; }
.ct-rate { display: block; color: var(--main); font-weight: 800; }
.ct-go { text-align: right; }
.kcode { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--main-dark); background: var(--tint); padding: 2px 7px; border-radius: 4px; }
.info-table tbody th { font-weight: 800; }

/* 글 */
.text-block { margin-bottom: 2.4em; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 1.2em; }
.text-photo img { border-radius: var(--r); }
.plain-list, .num-list { padding-left: 1.3em; }
.plain-list li, .num-list li { margin-bottom: .35em; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 16px 0; border-top: 2px solid var(--line); }
.step-no { font-size: 1.9rem; font-weight: 900; color: var(--main); line-height: 1.1; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); }
.checklist { margin: 0; padding-left: 1.3em; }
.checklist li { padding: 12px 0; border-top: 2px solid var(--line); }
.checklist h3 { font-size: 1.04rem; margin: 0 0 .2em; }
.checklist p { margin: 0; color: var(--ink-2); }

.faq { border-top: 2px solid var(--line); }
.faq:last-child { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.04rem; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

.digest-item { padding: 14px 0; border-top: 2px solid var(--line); }
.digest-item h3 { margin-bottom: .25em; }
.digest-item h3 a { color: var(--ink); }
.digest-item h3 span { color: var(--main); margin-left: 6px; font-size: .95rem; }
.digest-item p { margin: 0; color: var(--ink-2); }
.directory { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.directory li { break-inside: avoid; padding: 12px 0; border-top: 2px solid var(--line); }
.directory a { font-weight: 800; }
.directory p { margin: .15em 0 0; color: var(--muted); font-size: .97rem; }

/* 하위 페이지 */
.breadcrumb { padding: 16px 0 0; color: var(--muted); font-size: .95rem; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 26px 0 36px; border-bottom: 2px solid var(--line); }
.page-head h1, .detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
.page-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 40em; }
.page-head-in { display: grid; gap: 30px; }
.page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.page-head-photo, .detail-photo { margin: 0; }
.page-head-photo img, .detail-photo img { border-radius: var(--r); }
.detail-head { border-bottom: 2px solid var(--line); }
.detail-head-in { display: grid; gap: 30px; }
.detail-rate { font-size: 1.35rem; font-weight: 900; color: var(--main); }
.related-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.related-list li { padding: 10px 0; border-top: 2px solid var(--line); }
.related-list span { color: var(--muted); }
.back-link { font-weight: 800; }
.cta-strip { background: var(--tint); }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font-weight: 700; font-size: 1.08rem; }
.more-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.more-menu a { font-weight: 800; }
.notfound { text-align: center; padding: 90px 0; }

/* 아래쪽 */
.foot { background: #241a10; color: #e7d9c8; padding: 46px 0 30px; font-size: .95rem; }
.foot .brand { color: #fff; }
.foot-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid #4a3a2a; }
.foot-tag { margin: 0; color: #cdbba6; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 24px 0; }
.foot-h { font-weight: 800; color: #fff; margin: 0 0 6px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 4px; }
.foot-cols a { color: #e7d9c8; text-decoration: none; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }
.foot-cols a.strong { font-weight: 900; color: #fff; }
.foot-note { color: #bfae99; font-size: .92rem; }
.to-top { color: #fff; font-weight: 800; }

@media (max-width: 900px) {
  .nav-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--main-dark); padding: 6px 22px 18px; }
  .topbar.nav-open .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #8a5a2a; }
  .nav .nav-go { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .intro-cols, .page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .directory { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .intro { padding: 36px 0 30px; }
  .intro h1 { font-size: clamp(1.75rem, 8.6vw, 2.4rem); }
  .section { padding: 40px 0; }
  h2 { font-size: 1.38rem; }
  .code-table thead { display: none; }
  .code-table, .code-table tbody, .code-table tr, .code-table th, .code-table td { display: block; width: 100%; }
  .code-table tr { padding: 14px 0; border-bottom: 2px solid var(--line); }
  .code-table th, .code-table td { border: 0; padding: 3px 0; }
  .ct-go { text-align: left; padding-top: 10px !important; }
  .foot-cols { grid-template-columns: 1fr; }
}
