/* 이심쿠폰 — 초록 + 흰 바탕, 코드 강조 패널, IBM Plex Sans KR */
:root {
  --ink: #142019;
  --ink-2: #39483f;
  --muted: #59685f;
  --line: #d6e2da;
  --bg: #ffffff;
  --band: #eef6f1;
  --main: #17734a;
  --main-dark: #0f5636;
  --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: "IBM Plex Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .55em; font-weight: 700; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.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: 700; 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; }

/* 헤더 */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 2px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.top-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; }
.logo-mark .lm-sim { fill: var(--main); }
.logo-mark .lm-chip { fill: #fff; }
.top-name { font-weight: 700; font-size: 1.2rem; display: flex; flex-direction: column; line-height: 1.15; }
.top-sub { font-size: .78rem; font-weight: 500; color: var(--muted); }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a { padding: 7px 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; border-radius: var(--r); }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: var(--band); color: var(--main-dark); }
.top-nav .top-nav-go { display: none; }
.top-menu { display: none; align-items: center; gap: 6px; height: 42px; padding: 0 12px; background: #fff; border: 2px solid var(--line); border-radius: var(--r); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }

/* 첫 화면 */
.hero { padding: 46px 0 50px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.9vw, 2.9rem); white-space: nowrap; }
.hero-p { font-size: 1.1rem; color: var(--ink-2); }
.hero-code { background: var(--band); border-radius: var(--r); padding: 22px 24px; margin-top: 8px; }
.hero-code-name { margin: 0; font-weight: 700; color: var(--main-dark); }
.hero-code-val { margin: 4px 0; }
.hero-code-val .kcode { font-size: 1.5rem; background: none; padding: 0; }
.hero-code-cond { color: var(--ink-2); }
.hero-pic { margin: 0; }
.hero-pic img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r); }

.section { padding: 54px 0; }
.band { background: var(--band); }

/* 코드 목록 */
.code-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.code-rows li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 2px solid var(--line); align-content: start; }
.code-rows li .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
.cr-no { font-weight: 700; color: var(--main); font-size: 1.35rem; line-height: 1.3; }
.cr-body h3 { margin: 0; }
.cr-body h3 a { color: var(--ink); text-decoration: none; }
.cr-rate { margin: 2px 0; font-weight: 700; color: var(--main-dark); }
.cr-brief { margin: 0; color: var(--muted); }
.kcode { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-weight: 700; color: var(--main-dark); background: var(--band); padding: 1px 7px; border-radius: 4px; }

/* 표 */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.info-table, .code-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td, .code-table th, .code-table td { text-align: left; padding: 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.info-table thead th, .code-table thead th { color: var(--main-dark); border-bottom: 3px solid var(--main); font-weight: 700; white-space: nowrap; }
.info-table tbody th { font-weight: 700; }

/* 글 */
.text-block { margin-bottom: 2.4em; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 1.2em; }
.plain-list, .num-list { padding-left: 1.3em; }
.plain-list li, .num-list li { margin-bottom: .35em; }
.block-go { margin-top: 1em; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 2px solid var(--line); }
.step-no { font-size: 1.6rem; font-weight: 700; color: var(--main); line-height: 1.2; }
.steps p, .checklist p { margin: 0; color: var(--ink-2); }
.checklist { margin: 0; padding-left: 1.3em; }
.checklist li { padding: 12px 0; border-bottom: 2px solid var(--line); }
.checklist h3 { margin-bottom: .2em; font-size: 1.04rem; }

.faq { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; 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-bottom: 2px solid var(--line); }
.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; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.directory li { padding: 14px 0; border-top: 3px solid var(--main); }
.directory a { font-weight: 700; font-size: 1.05rem; }
.directory p { margin: .2em 0 1em; color: var(--muted); font-size: .96rem; }

/* 하위 페이지 */
.breadcrumb { padding: 14px 0 0; color: var(--muted); font-size: .95rem; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 22px 0 38px; }
.page-head-in { display: grid; gap: 36px; }
.page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.page-head h1, .detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
.page-lead { font-size: 1.08rem; color: var(--ink-2); }
.page-head-photo, .detail-photo { margin: 0; }
.page-head-photo img, .detail-photo img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.detail-head-in { display: grid; gap: 30px; }
.detail-rate { font-size: 1.35rem; font-weight: 700; color: var(--main-dark); }
.part-summary, .part-checklist { background: var(--band); }
.related-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.related-list li { padding: 10px 0; border-bottom: 2px solid var(--line); }
.related-list span { color: var(--muted); }
.back-link { font-weight: 700; }
.cta-strip { background: var(--main-dark); color: #fff; }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font-weight: 500; font-size: 1.06rem; }
.cta-strip .btn-main { background: #fff; color: var(--main-dark); }
.more-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.more-menu a { font-weight: 700; }
.notfound { text-align: center; padding: 90px 0; }

/* 푸터 */
.bottom { background: #10241a; color: #cddbd2; padding: 46px 0 28px; font-size: .95rem; }
.bottom .top-logo { color: #fff; }
.bottom .logo-mark .lm-sim { fill: #6cc89a; }
.bottom .logo-mark .lm-chip { fill: #10241a; }
.bottom-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.bottom-brand p { margin-top: 12px; }
.bottom-row nav { display: flex; flex-direction: column; gap: 5px; }
.bottom-h { color: #fff; font-weight: 700; margin: 0 0 6px; }
.bottom-row nav a { color: #cddbd2; text-decoration: none; }
.bottom-row nav a:hover { color: #fff; text-decoration: underline; }
.bottom-row nav a.strong { color: #fff; font-weight: 700; }
.bottom-note { color: #a3b6aa; font-size: .9rem; }
.to-top { color: #fff; font-weight: 700; }

@media (max-width: 1000px) {
  .top-nav a { padding: 7px 6px; font-size: .92rem; }
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .top-menu { display: inline-flex; margin-left: 8px; }
  .top-go { margin-left: auto; }
  .top-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 2px solid var(--line); padding: 6px 20px 16px; }
  .top.nav-open .top-nav { display: flex; }
  .top-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero-in, .page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-pic { order: -1; }
  .hero-pic img { max-height: 320px; }
  .code-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-sub { display: none; }
  .top-go { display: none; }
  .top-menu { margin-left: auto; }
  .top-nav .top-nav-go { display: block; color: var(--main-dark); font-weight: 700; }
  .hero { padding: 24px 0 36px; }
  .hero h1 { font-size: clamp(1.6rem, 7.6vw, 2.2rem); }
  .hero-code-val .kcode { font-size: 1.2rem; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.38rem; }
  .directory { grid-template-columns: minmax(0, 1fr); }
  .bottom-row { grid-template-columns: minmax(0, 1fr); }
}
