/* 이달비타 — 짙은 청록 + 벽돌 포인트, 달력형 */
:root {
  --teal: #0f5257;
  --teal-dark: #093a3e;
  --teal-soft: #e3eeee;
  --brick: #c8553d;
  --ink: #1b2425;
  --muted: #4f5d5e;
  --line: #d3dede;
  --bg: #f7f9f8;
  --white: #fff;
  --radius: 8px;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Gothic A1", system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(22px, 2.5vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: 56px 0; background: var(--white); }
.section:nth-of-type(even) { background: var(--bg); }
.section.band { background: var(--teal-soft); }
.rule-head { border-left: 6px solid var(--brick); padding-left: 14px; }
.gap { margin-top: 40px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--radius); font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid var(--teal); white-space: nowrap; }
.btn-main { background: var(--teal); color: #fff; }
.btn-main:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-line { background: var(--white); color: var(--teal); }
.btn-line:hover { background: var(--teal-soft); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.kcode { font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: var(--teal-soft); color: var(--teal-dark); padding: 1px 7px; border-radius: 4px; }

/* 머리말 */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 2px solid var(--line); }
.topbar { background: var(--teal-dark); color: #d7e6e6; font-size: 14.5px; line-height: 32px; height: 32px; overflow: hidden; }
.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; border-radius: 6px; background: var(--teal); display: flex; flex-direction: column; overflow: hidden; }
.lm-top { height: 9px; background: var(--brick); }
.lm-num { flex: 1; color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.logo-text { font-weight: 800; font-size: 21px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: var(--radius); }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.main-nav .nav-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 2px solid var(--line); background: var(--white); border-radius: var(--radius); font: inherit; font-weight: 800; font-size: 15px; color: var(--ink); cursor: pointer; }
.ico svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; display: block; }

/* 첫 화면 */
.hero { padding: 48px 0 56px; background: var(--white); }
.hero-in { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.month-card { background: var(--teal); color: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-bottom: 22px; }
.month-card::before { content: ""; display: block; width: 100%; height: 34px; background: var(--brick); margin-bottom: 10px; }
.mc-year { font-weight: 600; font-size: 18px; letter-spacing: .1em; color: #cfe2e2; }
.mc-month { font-size: 140px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.mc-label { font-size: 17px; font-weight: 600; }
.hero h1 { white-space: nowrap; font-size: clamp(25px, 4.8vw, 50px); }
.hero-lead { font-size: 18px; color: var(--muted); }
.deadlines { list-style: none; margin: 20px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.deadlines li { display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.dl-when { font-weight: 800; color: var(--brick); grid-row: span 2; }
.dl-what { font-weight: 800; }
.dl-note { color: var(--muted); font-size: 15.5px; }

/* 코드 카드 */
.code-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.code-card { background: var(--white); display: flex; flex-direction: column; }
.cc-photo img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); width: 100%; }
.cc-body { display: flex; flex-direction: column; flex: 1; padding-top: 12px; }
.cc-body h3 { font-size: 18px; margin-bottom: 4px; }
.cc-body h3 a { color: var(--ink); text-decoration: none; }
.cc-body h3 a:hover { color: var(--teal); text-decoration: underline; }
.cc-rate { font-weight: 800; color: var(--teal-dark); margin: 0 0 2px; }
.cc-brief { color: var(--muted); font-size: 15.5px; flex: 1; }
.cc-body .btn { width: 100%; }
.code-rows { list-style: none; padding: 0; margin: 0; }
.code-rows li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.cr-no { font-weight: 800; color: var(--brick); font-size: 22px; width: 26px; }
.cr-body { flex: 1; }
.cr-body h3 { margin: 0; }
.cr-body h3 a { color: var(--ink); }
.cr-rate, .cr-brief { margin: 0; font-size: 16px; }
.cr-brief { color: var(--muted); }

.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.more { font-weight: 700; }

.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.info-table, .code-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table thead th, .code-table thead th { text-align: left; padding: 10px 12px; background: var(--teal); color: #fff; font-weight: 800; white-space: nowrap; }
.info-table td, .info-table tbody th, .code-table td, .code-table tbody th { padding: 12px; border-bottom: 2px solid var(--line); text-align: left; background: var(--white); }
.info-table tbody th { white-space: nowrap; font-weight: 800; }
.spec-table tbody th { width: 9em; color: var(--muted); }

.steps, .checklist { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.step-no { width: 40px; height: 40px; border: 2px solid var(--teal); color: var(--teal); border-radius: var(--radius); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 6px 0 2px; }
.steps p, .checklist p { margin: 0; color: var(--muted); }
.checklist li { padding: 14px 0; border-bottom: 2px solid var(--line); }
.checklist h3 { margin: 0 0 2px; color: var(--teal-dark); }
.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: 18px; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 0 16px; color: var(--muted); }
.digest-item { padding: 14px 0; border-bottom: 2px solid var(--line); }
.digest-item h3 { margin: 0 0 4px; }
.digest-item h3 span { color: var(--brick); font-size: 16px; margin-left: 6px; }
.digest-item p { margin: 0; color: var(--muted); }
.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
.directory li { padding: 12px 0; border-top: 2px solid var(--line); }
.directory a { font-weight: 800; color: var(--teal-dark); text-decoration: none; }
.directory p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

/* 안쪽 페이지 */
.breadcrumb { font-size: 15px; color: var(--muted); padding-top: 16px; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 22px 0 40px; background: var(--white); }
.page-head.has-photo .page-head-in, .detail-head-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.page-lead { font-size: 18px; color: var(--muted); }
.page-head-photo, .detail-photo, .text-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.detail-rate { font-size: 22px; font-weight: 800; color: var(--teal-dark); }
.text-block { margin-bottom: 36px; }
.plain-list, .num-list { padding-left: 1.3em; }
.plain-list li, .num-list li { margin-bottom: .5em; }
.cta-strip { background: var(--teal-dark) !important; color: #fff; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font-weight: 800; }
.cta-strip .btn-main { background: #fff; color: var(--teal-dark); border-color: #fff; }
.more-menu ul, .related-list { list-style: none; padding: 0; margin: 0; }
.more-menu ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.more-menu a { font-weight: 600; }
.related-list li { padding: 8px 0; border-bottom: 2px solid var(--line); }
.related-list span { color: var(--muted); font-size: 15px; }
.back-link { margin-top: 18px; font-weight: 800; }
.notfound { text-align: center; padding: 90px 0; }

/* 꼬리말 */
.site-footer { background: var(--teal-dark); color: #d4e4e4; padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-name { font-weight: 800; font-size: 22px; color: #fff; margin: 0 0 6px; }
.disclaimer { font-size: 15px; color: #b8cfcf; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: start; }
.footer-links a { color: #fff; font-size: 15px; }
.footer-links .strong { font-weight: 800; }
.footer-title { width: 100%; margin: 10px 0 0; font-weight: 800; color: #fff; font-size: 15px; }
.footer-title:first-child { margin-top: 0; }
.to-top { color: #fff; font-weight: 800; display: inline-block; margin-top: 16px; }

@media (max-width: 1000px) {
  .topbar { display: none; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 8px 20px 16px; border-bottom: 2px solid var(--line); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 2px solid var(--line); border-radius: 0; }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .code-cards { grid-template-columns: repeat(2, 1fr); }
  .directory { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-in, .two-col, .page-head.has-photo .page-head-in, .detail-head-in, .footer-grid { grid-template-columns: 1fr; }
  .month-card { flex-direction: row; align-items: baseline; justify-content: center; gap: 10px; padding: 0 0 10px; flex-wrap: wrap; }
  .month-card::before { height: 14px; margin-bottom: 6px; flex-basis: 100%; }
  .mc-month { font-size: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 26px 0 34px; }
  .hero h1 { font-size: clamp(22px, 7.4vw, 34px); }
  .deadlines li { grid-template-columns: 1fr; }
  .dl-when { grid-row: auto; }
  .code-cards { grid-template-columns: 1fr; }
  .directory { grid-template-columns: 1fr; }
  .code-rows li { flex-wrap: wrap; }
  .code-rows .btn { width: 100%; }
}
@media (max-width: 379px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: block; font-weight: 800; color: var(--teal); }
}

/* 그리드 칸이 표·버튼 때문에 넘치지 않게 */
.hero-in > *, .split-in > *, .two-col > *, .two > *, .page-head-in > *, .detail-head-in > *, .code-cards > *, .code-card > *, .footer-top > *, .footer-row > *, .footer-grid > *, .footer-cols > * { min-width: 0; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
