:root {
  /* 레이아웃: 왼쪽 정렬. 상단 메뉴에 업무분야 하위메뉴, 하위 페이지는 왼쪽 세로 메뉴 + 본문. 계산기는 신고서 양식 모양 */
  --paper: #F5F7F6;
  --surface: #FFFFFF;
  --ink: #1B2926;
  --stone: #586662;
  --line: #D3DBD8;
  --pine: #23483E;
  --pine-ink: #FFFFFF;
  --seal: #AE3729;
  --tint: #E6EEEB;
  --font-display: "Hahmlet", "Noto Serif KR", "AppleMyungjo", serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111816;
    --surface: #18211E;
    --ink: #E3EAE7;
    --stone: #9DABA6;
    --line: #2C3734;
    --pine: #8DC2AF;
    --pine-ink: #0F1F1A;
    --seal: #E57B67;
    --tint: #1D2A26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111816;
  --surface: #18211E;
  --ink: #E3EAE7;
  --stone: #9DABA6;
  --line: #2C3734;
  --pine: #8DC2AF;
  --pine-ink: #0F1F1A;
  --seal: #E57B67;
  --tint: #1D2A26;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 입력이 필요한 자리 */
.todo {
  display: inline-block;
  padding: 0 .4em;
  border: 1px dashed var(--seal);
  border-radius: 3px;
  color: var(--seal);
  font-size: .92em;
  line-height: 1.6;
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border-radius: 4px; border: 1px solid var(--pine);
  font: 500 16px/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--pine); color: var(--pine-ink); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--tint); }
.btn .todo { color: inherit; border-color: currentColor; }
.text-link { color: var(--pine); font-weight: 500; text-underline-offset: 4px; }

/* ── 상단 ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.seal {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--seal); border-radius: 4px;
  color: var(--seal);
  font: 700 20px/1 var(--font-display);
}
.brand-name { font: 600 19px/1.2 var(--font-display); }
.brand-sub { display: block; font-size: 13px; color: var(--stone); font-family: var(--font-body); font-weight: 400; }

.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 23px 0; text-decoration: none; font-size: 15.5px; color: var(--stone); }
.nav a:hover { color: var(--ink); }
.nav .is-current > a { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--pine); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .sub {
  display: none;
  position: absolute; left: -18px; top: 100%;
  min-width: 190px;
  margin: 0; padding: 6px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line); border-top: 2px solid var(--pine);
  box-shadow: 0 8px 24px rgba(20, 40, 35, .08);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.nav .sub a { padding: 10px 18px; font-size: 15px; color: var(--ink); }
.nav .sub a:hover { background: var(--tint); }
.nav .sub a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.site-header .bar > .btn { min-height: 40px; padding: 0 16px; font-size: 15px; flex: none; }
.menu-btn {
  display: none;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--ink);
  font: 500 15px var(--font-body); cursor: pointer;
}
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > .wrap > ul { padding: 8px 0 20px; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.mobile-nav .sub a { padding-left: 18px; font-size: 15.5px; color: var(--stone); }
@media (max-width: 900px) {
  .nav { display: none; }
  .site-header .bar { gap: 10px; }
  .site-header .bar > .btn { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (min-width: 901px) { .mobile-nav { display: none !important; } }
@media (max-width: 400px) {
  .brand-sub { display: none; }
}

/* ── 하위 페이지 머리 ── */
.page-head { padding: 48px 0 44px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--stone); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.page-head .lead { margin-top: 16px; max-width: 38em; font-size: 18px; color: var(--stone); }

/* ── 하위 페이지 본문: 왼쪽 메뉴 + 본문 ── */
.sub-layout { display: grid; grid-template-columns: 200px 1fr; gap: 64px; padding: 56px 0 96px; }
.side-nav { position: sticky; top: 100px; align-self: start; }
.side-nav .side-title { font-size: 14px; font-weight: 600; color: var(--stone); margin-bottom: 8px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.side-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.side-nav a:hover { color: var(--pine); }
.side-nav a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.content { min-width: 0; max-width: 760px; display: grid; gap: 64px; }
.content > section > h2 { font-size: 26px; margin-bottom: 18px; }
.content .intro { color: var(--stone); margin: -6px 0 18px; }
@media (max-width: 900px) {
  .sub-layout { grid-template-columns: 1fr; gap: 32px; padding: 28px 0 72px; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .side-nav a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; }
  .side-nav a[aria-current="page"] { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); }
  .content { gap: 52px; }
}

/* 목록들 */
.list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col h3 { font-size: 19px; margin-bottom: 12px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* 준비 서류: 체크 칸 */
.docs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.docs li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.docs li::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--stone); border-radius: 2px; transform: translateY(2px); }

/* 자주 묻는 질문 */
.faq { margin: 0; border-top: 2px solid var(--ink); }
.faq > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; display: flex; gap: 10px; }
.faq dt::before { content: "Q"; font-family: var(--font-display); color: var(--seal); }
.faq dd { margin: 8px 0 0 24px; color: var(--stone); }

/* 상담 유도 띠 */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; background: var(--tint); border-radius: 4px; }
.cta-band h2, .cta-band h3 { font-size: 22px; }
.cta-band p { margin-top: 4px; color: var(--stone); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 첫 화면 ── */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.01em; }
.hero-lead { margin-top: 24px; max-width: 34em; font-size: 18px; color: var(--stone); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { margin-top: 28px; font-size: 15px; color: var(--stone); }
@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* 신고기한 계산기: 신고서 양식 모양 */
.form-card { background: var(--surface); border: 1px solid var(--ink); border-radius: 2px; }
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 16px 20px; border-bottom: 2px solid var(--ink); }
.form-head h2 { font-size: 22px; white-space: nowrap; margin: 0; }
.form-head span { font-size: 13px; color: var(--stone); }
.form-row { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.form-row > .k { padding: 14px 16px; background: var(--tint); font-size: 14px; font-weight: 500; color: var(--stone); border-right: 1px solid var(--line); }
.form-row > .v { padding: 12px 16px; min-width: 0; }
.form-row .fixed { display: inline-block; padding-top: 2px; font-weight: 600; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row > .k { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 16px; }
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { padding: 7px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; cursor: pointer; background: var(--surface); }
.seg input:checked + label { border-color: var(--pine); background: var(--pine); color: var(--pine-ink); }
.seg input:focus-visible + label { outline: 3px solid var(--seal); outline-offset: 2px; }
.field-label { display: block; font-size: 14px; color: var(--stone); margin-bottom: 6px; }
input[type="date"] {
  font: 500 17px var(--font-body);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 10px; min-height: 44px; width: 100%; max-width: 240px;
}
.hint { margin-top: 6px; font-size: 13.5px; color: var(--stone); line-height: 1.55; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14px; color: var(--stone); cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--pine); }
.result { padding: 20px; }
.result-label { font-size: 14px; color: var(--stone); }
.result-date { margin-top: 4px; font: 700 clamp(26px, 3.2vw, 32px)/1.25 var(--font-display); color: var(--seal); font-variant-numeric: tabular-nums; }
.result-left { margin-top: 4px; font-weight: 500; }
.result-rule, .result-shift { margin-top: 8px; font-size: 14px; color: var(--stone); }
.form-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--stone); line-height: 1.6; }

/* 홈 공통 블록 */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: 280px 1fr; gap: 40px; margin-bottom: 36px; }
.block-head h2 { font-size: clamp(26px, 3vw, 34px); }
.block-head p { color: var(--stone); max-width: 36em; align-self: end; }
@media (max-width: 820px) {
  section.block { padding: 60px 0; }
  .block-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }
}

/* 홈: 업무분야 4칸 (괘선 표) */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.svc-cell { display: grid; gap: 8px; align-content: start; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.svc-cell:nth-child(2n) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.svc-cell h3 { font-size: 24px; }
.svc-cell .due { font-size: 14px; color: var(--stone); }
.svc-cell p { color: var(--stone); }
.svc-cell .more { margin-top: 6px; color: var(--pine); font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.svc-cell:hover h3 { color: var(--pine); }
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-cell, .svc-cell:nth-child(2n) { padding: 22px 0; border-left: 0; }
}

/* 대표 소개 */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.photo { aspect-ratio: 4 / 5; width: 100%; display: grid; place-items: center; border: 1px dashed var(--seal); border-radius: 2px; background: var(--tint); color: var(--seal); font-size: 15px; }
.about-body { max-width: 40em; }
.about-body h2, .about-body h3 { font-size: 28px; }
.about-body .role { color: var(--stone); margin-top: 4px; }
.greeting { margin-top: 24px; display: grid; gap: 14px; font-size: 18px; line-height: 1.85; }
.career { margin: 32px 0 0; border-top: 1px solid var(--line); }
.career div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.career dt { color: var(--stone); font-size: 15px; }
.career dd { margin: 0; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .photo { max-width: 220px; }
}

/* 상담 절차 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.steps li { padding: 24px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .n { font: 600 15px/1 var(--font-display); color: var(--seal); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; margin-top: 12px; }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--stone); }
.content .steps { grid-template-columns: 1fr 1fr; }
.content .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
.content .steps li { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}
@media (max-width: 520px) {
  .steps, .content .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; }
}

/* 정보 표 (오시는 길 등) */
.info { margin: 0; border-top: 2px solid var(--ink); }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--stone); font-size: 15px; }
.info dd { margin: 0; }
.btn-stack { display: grid; gap: 10px; margin-top: 20px; max-width: 420px; }

/* ── 하단 ── */
.site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--stone); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer p + p { margin-top: 2px; }
.site-footer strong { color: var(--ink); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 10px; padding: 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ── v3 추가 ── */
.photo-img { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--tint); }
.section-sub { color: var(--stone); margin: -6px 0 18px; }

/* 세율표 */
.table-wrap { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); }
.rates caption { text-align: left; font-weight: 600; font-size: 17px; padding: 0 0 10px; }
.rates th, .rates td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rates thead th { font-size: 14px; font-weight: 500; color: var(--stone); background: var(--tint); }
.rates td.n, .rates th.n { text-align: right; white-space: nowrap; }
.rates tbody th { font-weight: 500; }
.rates + .rates, .table-wrap + .table-wrap { margin-top: 28px; }
.note-list { margin: 14px 0 0; padding-left: 1.1em; display: grid; gap: 5px; font-size: 14.5px; color: var(--stone); }
.as-of { margin-top: 10px; font-size: 13.5px; color: var(--stone); }

/* 모의계산 */
.sim .in {
  width: 100%; max-width: 300px; min-height: 44px; padding: 8px 10px;
  font: 500 17px var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 3px;
}
.sim .in.amt { text-align: right; font-variant-numeric: tabular-nums; }
.sim .in.short { max-width: 120px; text-align: right; }
.sim .in.bad { border-color: var(--seal); }
.sim select.in { max-width: 340px; }
.amt-h { margin-top: 4px; font-size: 13.5px; color: var(--stone); min-height: 1.4em; }
.sim-intro { padding: 12px 20px; font-size: 14px; color: var(--stone); border-bottom: 1px solid var(--line); }
#sim-out { padding: 18px 20px 20px; }
.sim-big { padding-bottom: 14px; }
.sim-exact { font-size: 14px; color: var(--stone); font-variant-numeric: tabular-nums; }
#sim-out table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 1px solid var(--ink); }
#sim-out td { padding: 9px 0; border-bottom: 1px solid var(--line); }
#sim-out td.n { text-align: right; white-space: nowrap; padding-left: 16px; }
#sim-out tr.sub td { color: var(--stone); font-size: 15px; }
#sim-out tr.total td { border-bottom: 0; padding-top: 14px; font-weight: 700; font-size: 18px; }
#sim-out tr.total td.n { color: var(--seal); }
.sim-notes { margin: 14px 0 0; padding-left: 1.1em; font-size: 13.5px; color: var(--stone); display: grid; gap: 4px; }

/* 신고 서류 묶음 */
.doc-groups { display: grid; gap: 26px; }
.doc-groups h3 { font-size: 18px; margin-bottom: 8px; }
.docs li small { color: var(--stone); font-size: 14px; }
.pdf-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 1px solid var(--ink); border-radius: 2px; background: var(--surface); }
.pdf-box b { display: block; font-size: 18px; font-family: var(--font-display); }
.pdf-box p { margin-top: 4px; color: var(--stone); font-size: 15px; max-width: 30em; }

/* 기장 신고 일정 */
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sched .what { font-weight: 600; }
.sched .when { font: 700 17px/1.4 var(--font-display); color: var(--seal); text-align: right; font-variant-numeric: tabular-nums; }
.sched .who { font-size: 14px; color: var(--stone); }
.sched .dd { font-size: 14px; color: var(--stone); text-align: right; }
@media (max-width: 480px) {
  .sched li { grid-template-columns: 1fr; }
  .sched .when, .sched .dd { text-align: left; }
}

/* 홈 업무분야: 다섯 번째 칸은 가로 전체 */
.svc-cell.wide { grid-column: 1 / -1; padding-right: 0; }
.svc-cell.wide p { max-width: 44em; }
.svc-cell.wide:nth-child(2n) { padding-left: 0; border-left: 0; }

/* 경력 목록 */
.career ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.sim .form-row { grid-template-columns: 172px 1fr; }
@media (max-width: 480px) { .sim .form-row { grid-template-columns: 1fr; } }
.content .steps.three { grid-template-columns: repeat(3, 1fr); }
.content .steps.three li { border-bottom: 0; padding-bottom: 8px; }
.content .steps.three li:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--line); }
.content .steps.three h3 { margin-top: 0; }
@media (max-width: 700px) {
  .content .steps.three { grid-template-columns: 1fr; }
  .content .steps.three li, .content .steps.three li:nth-child(3) { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.greeting .first { font: 600 24px/1.5 var(--font-display); }
/* 하위 페이지 좌우 여백 (wrap 패딩을 덮어쓰지 않도록) */
.wrap.sub-layout { padding: 56px 24px 96px; }
@media (max-width: 900px) { .wrap.sub-layout { padding: 28px 16px 72px; } }
.about { grid-template-columns: 300px 1fr; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about .photo-img { max-width: 260px; } }
.content > * { min-width: 0; }
.sim .in { min-width: 0; }

/* ── v4: 세목별 하위 페이지 ── */
/* 상단 업무분야 펼침 메뉴: 세목 이름 + 안내 / 간편세액계산 */
.nav .sub { min-width: 330px; padding: 8px 0; }
.nav .sub li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 12px 4px 18px; }
.nav .sub .sub-name { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav .sub .sub-pages { display: flex; gap: 2px; }
.nav .sub .sub-pages a { padding: 6px 10px; font-size: 14px; color: var(--stone); border-radius: 3px; white-space: nowrap; }
.nav .sub .sub-pages a:hover { background: var(--tint); color: var(--ink); }
.nav .sub .sub-pages a[aria-current="page"] { color: var(--pine); font-weight: 600; background: var(--tint); }
.mobile-nav .m-name { display: block; padding: 12px 0 2px 18px; font-size: 15.5px; font-weight: 600; }
.mobile-nav .sub2 { list-style: none; margin: 0; padding: 0; }
.mobile-nav .sub2 a { padding: 9px 0 9px 34px; font-size: 15px; color: var(--stone); }

/* 세목 페이지 탭 */
.page-head.has-tabs { padding-bottom: 0; }
.sub-tabs { display: flex; gap: 4px; margin-top: 30px; }
.sub-tabs a {
  padding: 12px 22px; margin-bottom: -1px;
  text-decoration: none; font-weight: 500; color: var(--stone);
  border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0;
}
.sub-tabs a:hover { color: var(--ink); }
.sub-tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--paper); border-color: var(--line); box-shadow: inset 0 2px 0 var(--pine); }

/* 왼쪽 메뉴: 현재 세목 아래 하위항목 */
.side-nav li.open > .side-name { font-weight: 600; color: var(--ink); border-bottom: 0; padding-bottom: 6px; }
.side-nav .side-sub { border-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.side-nav .side-sub a { padding: 6px 0 6px 14px; border-bottom: 0; font-size: 15px; color: var(--stone); }
.side-nav .side-sub a[aria-current="page"] { color: var(--pine); font-weight: 600; box-shadow: inset 2px 0 0 var(--pine); }
@media (max-width: 900px) {
  .side-nav .side-sub { display: none; }
  .side-nav li.open > .side-name { background: var(--pine); border: 1px solid var(--pine); color: var(--pine-ink); padding: 6px 14px; }
  .sub-tabs a { padding: 11px 16px; }
}

/* 업무분야 칸: 링크 두 개 */
.svc-cell h3 a { text-decoration: none; }
.svc-cell h3 a:hover { color: var(--pine); }
.cell-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }
.cell-links a { color: var(--pine); font-weight: 500; font-size: 15px; text-underline-offset: 4px; }

/* ── v6: 오시는 길 약도 ── */
.map-fig { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.map-svg { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.m-bg { fill: var(--tint); }
.m-road { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.m-center { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 10 9; }
.m-station { fill: rgba(142, 90, 179, 0.10); stroke: #8E5AB3; stroke-width: 2; stroke-dasharray: 6 5; }
.m-zebra rect { fill: var(--ink); opacity: 0.5; }
.m-bldg { fill: var(--pine); }
.m-bldg-t { fill: var(--pine-ink); }
.m-callout { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.m-callout-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.m-route { fill: none; stroke: var(--seal); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 10; }
.m-route-head { fill: none; stroke: var(--seal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.m-exit { fill: #8E5AB3; }
.m-exit-dim { opacity: 0.55; }
.m-exit-line { fill: none; stroke: #8E5AB3; stroke-width: 3; }
.m-exit-t { fill: #FFFFFF; }
.m-sub-t { fill: #8E5AB3; }
.m-bus { fill: #2F6FB2; }
.m-bus-i { fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-text { fill: var(--ink); }
.m-small { fill: var(--stone); }
.m-road-t { fill: var(--stone); font-weight: 500; }
.m-north { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-sub-t, :root:not([data-theme="light"]) .m-station { stroke: #B58AD6; } :root:not([data-theme="light"]) .m-sub-t { fill: #B58AD6; } }
:root[data-theme="dark"] .m-sub-t { fill: #B58AD6; }
.map-fig figcaption { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--stone); }
.map-legend li { display: flex; align-items: center; gap: 7px; }
.lg { display: inline-block; flex: none; }
.lg-route { width: 22px; height: 0; border-top: 4px dotted var(--seal); }
.lg-zebra { width: 18px; height: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px); opacity: .55; }
.lg-bus { width: 14px; height: 14px; border-radius: 3px; background: #2F6FB2; }
.lg-exit { width: 14px; height: 14px; border-radius: 50%; background: #8E5AB3; }
.map-how { margin-top: 10px; font-size: 15.5px; line-height: 1.65; }
.map-src { margin-top: 6px; font-size: 13px; color: var(--stone); }
