/* 새싹쿠폰 — 짙은 청록 + 흰 바탕, 첫 화면 할인 계산기, 줄 목록 */
:root {
  --ink: #142123;
  --ink-2: #364749;
  --muted: #586b6d;
  --line: #d5e2e2;
  --bg: #ffffff;
  --bg-soft: #edf5f4;
  --main: #0f5c63;
  --main-dark: #0a4449;
  --main-soft: #d8ecea;
  --radius: 6px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Nanum Gothic", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.75; 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 .6em; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); 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: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s; }
.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-line:hover { background: var(--main-soft); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; fill: var(--main); }
.logo-mark .lm-line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 3 3; }
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.logo-sub { font-size: .8rem; font-weight: 600; color: var(--muted); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--main-dark); border-bottom-color: var(--main); }
.main-nav .nav-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 6px; margin-left: auto; height: 42px; padding: 0 12px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* 첫 화면 */
.hero { background: var(--bg-soft); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-kicker { font-weight: 700; color: var(--main-dark); margin-bottom: .4em; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); white-space: nowrap; margin-bottom: .35em; }
.hero-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }

/* 섹션 */
.section { padding: 56px 0; }
.section + .section { border-top: 2px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }

/* 코드 카드 */
.code-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.code-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cc-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cc-body h3 { margin: 0; font-size: 1.15rem; }
.cc-body h3 a { color: var(--ink); text-decoration: none; }
.cc-rate { font-size: 1.5rem; font-weight: 800; color: var(--main-dark); margin: 0; }
.cc-brief { color: var(--muted); margin: 0 0 12px; }
.cc-body .btn { margin-top: auto; }
.kcode { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; background: var(--main-soft); color: var(--main-dark); padding: 2px 8px; border-radius: 4px; font-size: .95em; }

/* 표 */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.info-table th, .info-table td, .code-table th, .code-table td { overflow-wrap: normal; }
.table-scroll { -webkit-overflow-scrolling: touch; }
.info-table, .code-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.info-table th, .info-table td, .code-table th, .code-table td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
.info-table thead th, .code-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.info-table tbody th { font-weight: 700; }
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.split-in > * { min-width: 0; }

/* 글 */
.text-block { margin-bottom: 2.2em; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 1.2em; }
.text-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plain-list, .num-list { padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li, .num-list li { margin-bottom: .4em; }
.block-go { margin-top: 1em; }

/* 단계 · 확인 순서 */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.step-no { width: 40px; height: 40px; border-radius: var(--radius); background: var(--main); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); }
.checklist { padding-left: 1.4em; margin: 0; }
.checklist li { padding: 10px 0 12px; border-bottom: 2px solid var(--line); }
.checklist h3 { font-size: 1.05rem; margin-bottom: .2em; }
.checklist p { margin: 0; color: var(--ink-2); }

/* 자주 묻는 질문 */
.faq { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

/* 요약 · 안내 목록 */
.digest-item { padding: 16px 0; border-bottom: 2px solid var(--line); }
.digest-item h3 { margin-bottom: .3em; }
.digest-item h3 a { color: var(--ink); }
.digest-item h3 span { color: var(--main-dark); font-size: .95rem; margin-left: 6px; }
.digest-item p { margin: 0; color: var(--ink-2); }
.directory { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.directory li { padding: 14px 0; border-bottom: 2px solid var(--line); }
.directory a { font-weight: 700; font-size: 1.08rem; }
.directory p { margin: .2em 0 0; color: var(--muted); font-size: .98rem; }

/* 메뉴 · 상세 페이지 */
.breadcrumb { padding: 14px 0 0; font-size: .95rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 28px 0 40px; }
.page-head-in { display: grid; gap: 40px; }
.page-head.has-photo .page-head-in { grid-template-columns: 1.2fr 1fr; align-items: center; }
.page-head h1, .detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 40em; }
.page-head-photo, .detail-photo { margin: 0; }
.page-head-photo img, .detail-photo img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.detail-head-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.detail-rate { font-size: 1.4rem; font-weight: 800; color: var(--main-dark); }
.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 { margin-top: 1.4em; font-weight: 700; }
.cta-strip { background: var(--main-dark); color: #fff; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.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: 10px 26px; }
.more-menu a { font-weight: 700; }
.notfound { text-align: center; padding: 100px 0; }

/* 푸터 */
.site-footer { background: #0d2224; color: #c9d9d8; padding: 48px 0 32px; margin-top: 0; font-size: .95rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { fill: #3b8f96; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 4px; }
.footer-nav a { color: #c9d9d8; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-nav a.strong { font-weight: 800; color: #fff; }
.disclaimer { color: #a9bfbe; font-size: .92rem; }
.to-top { color: #fff; font-weight: 700; }

@media (max-width: 1000px) {
  .main-nav a { padding: 8px 6px; font-size: .92rem; }
  .code-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .menu-toggle { margin-left: 8px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: #fff; border-bottom: 2px solid var(--line); padding: 8px 20px 16px; }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .hero-in, .split-in, .detail-head-in, .page-head.has-photo .page-head-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-in { padding-top: 32px; padding-bottom: 36px; }
  .hero-photo img { max-height: 340px; }
  .directory { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .logo-sub { display: none; }
  .code-cards { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.3rem); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 379px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: block; color: var(--main-dark); font-weight: 800; }
}
@media (max-width: 560px) {
  .info-table thead th, .code-table thead th { white-space: normal; }
  .info-table th, .info-table td, .code-table th, .code-table td { padding-left: 8px; padding-right: 8px; }
  .info-table, .code-table { font-size: .9rem; }
  .spec-table { font-size: 1rem; }
}
.detail-head-in.no-photo { grid-template-columns: minmax(0, 1fr); }
.detail-head-in.no-photo .detail-text { max-width: 820px; }
@media (max-width: 560px) {
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100%; }
  .stack-table thead { display: none; }
  .stack-table tr { padding: 12px 0; border-bottom: 2px solid var(--line); }
  .stack-table tbody th, .stack-table td { border: 0; padding: 2px 0; background: none; }
  .stack-table tbody th { font-size: 1.05rem; margin-bottom: 4px; }
  .stack-table td::before { content: attr(data-label); display: inline-block; min-width: 5.2em; font-weight: 700; margin-right: 8px; }
}
@media (max-width: 379px) {
  .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm th, .stack-sm td { display: block; width: 100%; }
  .stack-sm thead { display: none; }
  .stack-sm tr { padding: 10px 0; border-bottom: 2px solid var(--line); }
  .stack-sm tbody th, .stack-sm td { border: 0; padding: 2px 0; background: none; }
  .stack-sm td::before { content: attr(data-label); display: inline-block; min-width: 5.2em; font-weight: 700; margin-right: 8px; }
}

/* ── 새싹쿠폰 전용 ── */
h1, h2, h3, .logo-text { font-weight: 800; }
.logo-mark .lm-leaf { fill: #bfe6e2; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.hero { background: var(--main-dark); color: #fff; }
.hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); padding-top: 44px; padding-bottom: 52px; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4.2vw, 3rem); }
.hero-lead { color: #d4e6e4; }
.hero-photo-strip { margin: 24px 0 0; }
.header-cta, .menu-toggle { white-space: nowrap; }
.hero-photo-strip img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
.hero .btn-line { background: transparent; color: #fff; border-color: #8fc6c4; }
.hero .btn-line:hover { background: rgba(255,255,255,.08); }
.tool { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 22px 18px; }
.tool-title { font-weight: 800; font-size: 1.15rem; margin: 0 0 12px; }
.tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; }
.tool-field { display: flex; flex-direction: column; gap: 4px; }
.tool-field:first-child { grid-column: 1 / -1; }
.tool-field label { font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.tool-field select, .tool-field input { font: inherit; font-size: 1.05rem; min-height: 46px; padding: 6px 10px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.tool-field select:focus, .tool-field input:focus { outline: 3px solid var(--main-soft); border-color: var(--main); }
.tool-best { font-weight: 800; font-size: 1.12rem; color: var(--main-dark); margin: 0 0 8px; min-height: 1.6em; }
.tool-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tool-table th, .tool-table td { text-align: left; padding: 9px 6px; border-bottom: 2px solid var(--line); vertical-align: top; overflow-wrap: normal; }
.tool-table thead th { font-size: .9rem; color: var(--muted); padding-top: 0; }
.tool-table td:nth-child(2), .tool-table td:nth-child(3) { white-space: nowrap; }
.tool-table tr.best th a { color: var(--main-dark); }
.tool-table .t-no { color: var(--muted); font-weight: 400; white-space: normal; font-size: .95rem; }
.tool-table th a { font-weight: 700; color: var(--ink); }
.part-tool .tool { border: 2px solid var(--line); max-width: 760px; }
.code-rows { list-style: none; padding: 0; margin: 0; }
.code-rows li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 2px solid var(--line); }
.code-rows li:first-child { border-top: 2px solid var(--line); }
.cr-no { width: 44px; height: 44px; display: grid; place-items: center; background: var(--main-soft); color: var(--main-dark); font-weight: 800; border-radius: var(--radius); }
.cr-body h3 { margin: 0; font-size: 1.15rem; }
.cr-body h3 a { color: var(--ink); text-decoration: none; }
.cr-body h3 a:hover { text-decoration: underline; }
.cr-rate { margin: 2px 0 0; font-weight: 800; color: var(--main-dark); }
.cr-brief { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .tool { padding: 18px 14px 12px; }
  .tool-form { grid-template-columns: minmax(0, 1fr); }
  .code-rows li { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 14px; }
  .code-rows li > .btn { grid-column: 2; justify-self: start; }
  .hero-photo-strip { display: none; }
  .tool-table { font-size: .92rem; table-layout: fixed; }
  .tool-table th, .tool-table td { padding-left: 3px; padding-right: 3px; }
  .tool-table td:nth-child(2) { white-space: normal; }
  .tool-table th a { word-break: break-all; }
  .tool-table thead th:first-child { width: 44%; }
}
@media (max-width: 420px) {
  .tool-table th:nth-child(3), .tool-table td:nth-child(3) { display: none; }
  .tool-table th a { word-break: normal; }
}
