/* address.rodamemo.com — 영문주소 변환기 */
:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #eef4f1;
  --text: #10201c;
  --muted: #55706a;
  --line: #dce7e3;
  --brand: #0f766e;
  --brand-ink: #0b5d56;
  --brand-soft: #e1f5f0;
  --accent: #f59e0b;
  --grad: linear-gradient(135deg, #0f766e 0%, #0d8577 100%);
  --grad-text: linear-gradient(90deg, #0f766e, #0b8fa0);
  --shadow-brand: rgba(15, 118, 110, .30);
  --teal: #0284c7;
  --teal-soft: #e0f2fe;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --shadow: 0 1px 2px rgba(16, 32, 28, .05), 0 10px 30px rgba(16, 70, 60, .08);
  --radius: 20px;
  --header-h: 64px;
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Malgun Gothic", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08130f;
  --surface: #0f1d19;
  --surface-2: #15271f;
  --text: #e7f5f1;
  --muted: #8fb0a6;
  --line: #1f3830;
  --brand: #2dd4bf;
  --brand-ink: #5eead4;
  --brand-soft: rgba(45, 212, 191, .14);
  --accent: #fbbf24;
  --grad: linear-gradient(135deg, #2dd4bf 0%, #22b8a4 100%);
  --grad-text: linear-gradient(90deg, #5eead4, #7dd3fc);
  --shadow-brand: rgba(45, 212, 191, .28);
  --teal: #38bdf8;
  --teal-soft: rgba(56, 189, 248, .14);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, .14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
[hidden] { display: none !important; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, #0f766e, #14b8a6, #f59e0b);
}
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em;
  box-shadow: 0 6px 16px var(--shadow-brand);
}
.brand-text strong { display: block; font-size: 15px; line-height: 1.2; }
.brand-text small { display: block; font-size: 12px; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; transition: transform .15s, background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ic { width: 20px; height: 20px; }
:root:not([data-theme="dark"]) .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 44px 0 26px; text-align: center; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: float 16s ease-in-out infinite alternate;
}
.hero::before { width: 420px; height: 420px; left: 6%; top: -180px; background: radial-gradient(circle, rgba(20, 184, 166, .42), transparent 70%); }
.hero::after { width: 380px; height: 380px; right: 8%; top: -140px; background: radial-gradient(circle, rgba(245, 158, 11, .30), transparent 70%); animation-delay: -6s; }
:root[data-theme="dark"] .hero::before, :root[data-theme="dark"] .hero::after { opacity: .35; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(30px, 24px, 0) scale(1.12); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.2; letter-spacing: -.03em; font-weight: 900; }
.hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 14px auto 0; max-width: 620px; color: var(--muted); font-size: clamp(15px, 2vw, 17px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 40px; align-items: start; }
.rail { display: none; }
.rail-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.main { min-width: 0; display: grid; gap: 22px; width: 100%; max-width: 860px; margin: 0 auto; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .rail-right { display: block; }
  .main { margin: 0; max-width: none; }
  .tools-inline { display: none; }
}
@media (min-width: 1400px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .rail-left { display: block; }
}

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: #fff; background: var(--grad);
}
.card-head h2 { font-size: 19px; letter-spacing: -.02em; }
.card-head .sub { margin-left: auto; font-size: 13px; color: var(--muted); }

.embed-box {
  height: 440px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2);
  position: relative;
}
.embed-box:empty::after { content: "주소 검색창을 불러오는 중…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.embed-fallback { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 12px 28px var(--shadow-brand); filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

/* recent */
.recent { margin-top: 16px; }
.recent-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px; }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-item {
  max-width: 100%; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; transition: transform .15s, border-color .2s, background .2s;
}
.recent-item:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.recent-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item b { color: var(--brand-ink); font-family: var(--mono); font-size: 12px; }

/* ---------- result ---------- */
#result { scroll-margin-top: calc(var(--header-h) + 16px); }
.result-card.reveal-in { animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.status { margin-left: auto; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.warn { background: var(--warn-soft); color: var(--warn); }

.hero-fields { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.row { display: flex; gap: 8px; align-items: stretch; }
.val {
  flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 15px; word-break: break-word; display: flex; align-items: center;
}
.val:empty::before { content: "—"; color: var(--muted); }
.val.big { font-size: 20px; font-weight: 800; letter-spacing: .02em; font-family: var(--mono); }
.val.en { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--brand-ink); font-weight: 700; font-size: 16px; }
.val.sm { padding: 9px 12px; font-size: 14px; }

.btn-copy {
  flex: none; min-width: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn-copy:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-copy:active { transform: scale(.94); }
.btn-copy.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-copy.primary:hover { background: var(--brand-ink); color: #fff; }
:root[data-theme="dark"] .btn-copy.primary { color: #04201a; }
.btn-copy.copied { background: var(--ok); border-color: var(--ok); color: #fff; animation: bump .35s ease; }
:root[data-theme="dark"] .btn-copy.copied { color: #04201a; }
@keyframes bump { 50% { transform: scale(1.1); } }

.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.sec-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.sec-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.detail-input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px;
}
.detail-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 18px; }
.hint.warn { color: var(--warn); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: var(--warn-soft); color: var(--warn); }
.notice.info { background: var(--brand-soft); color: var(--brand-ink); }

.map-wrap { margin-top: 4px; }
#address-map { height: 260px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.map-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.map-link:hover { text-decoration: none; border-color: var(--teal); background: var(--teal-soft); }
.nearby { display: flex; flex-wrap: wrap; gap: 8px; }
.nearby a {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  transition: transform .15s, background .2s;
}
.nearby a:hover { text-decoration: none; background: var(--teal-soft); transform: translateY(-1px); }

/* ---------- ads ---------- */
.ad-slot { display: block; width: 100%; text-align: center; }
.ad-slot .ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-bottom: 4px; text-align: left; }
.ad-holder, .ad-slot ins.adsbygoogle { display: block; width: 100%; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-top { min-height: 0; margin: 4px 0 -4px; }
.ad-inline { padding: 4px 0; }

/* ---------- content ---------- */
.content-card h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.content-card h3 { font-size: 16px; margin: 20px 0 6px; }
.content-card p, .content-card li { color: var(--muted); font-size: 15px; }
.content-card p + p { margin-top: 10px; }
.content-card ul, .content-card ol { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.content-card strong { color: var(--text); }
.compare { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.compare small { display: block; font-size: 12px; font-weight: 800; color: var(--brand-ink); margin-bottom: 6px; letter-spacing: .04em; }
.compare code { display: block; font-family: var(--mono); font-size: 14px; color: var(--text); line-height: 1.7; word-break: break-word; }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: 13px; color: var(--brand-ink); }
.cases { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.case b { display: block; margin-bottom: 4px; font-size: 15px; }
.case p { font-size: 14px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; font-size: 16px; position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 0 16px; color: var(--muted); font-size: 15px; }
.faq details[open] .ans { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tools-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.tools-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tools-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; transition: transform .15s, border-color .2s, background .2s;
}
.tools-list a:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-soft); transform: translateX(2px); }
.tools-list small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.tools-list .em { font-size: 20px; line-height: 1; }
.card.pad-sm { padding: 18px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer p { max-width: 720px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; max-width: min(92vw, 520px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; display: flex; gap: 8px; align-items: center;
}
:root[data-theme="dark"] .toast { background: #e8eefb; color: #0a1020; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.warn { background: #b45309; color: #fff; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- scroll reveal (JS 활성 시에만) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

@media (max-width: 720px) {
  .shell { padding: 0 14px; }
  .nav a { display: none; }
  .card { padding: 18px; border-radius: 18px; }
  .hero { padding: 30px 0 18px; }
  .embed-box { height: 460px; }
  .row { flex-wrap: nowrap; }
  .btn-copy { min-width: 64px; min-height: 44px; }
  .val.big { font-size: 18px; }
  .toast { bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* leaflet 다크모드 */
:root[data-theme="dark"] .leaflet-tile { filter: brightness(.82) contrast(1.05) saturate(.9); }

/* ---------- 지역 페이지 ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-ink); }
.hero.compact { padding: 22px 0 18px; }
.hero.compact h1 { font-size: clamp(26px, 4vw, 38px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 14px 0 16px; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.fact small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fact b { display: block; font-size: 20px; font-family: var(--mono); color: var(--text); letter-spacing: .01em; }
.fact b.txt { font-family: var(--font); font-size: 15px; line-height: 1.4; }
code.inl { font-family: var(--mono); font-size: 13.5px; background: var(--brand-soft); color: var(--brand-ink); padding: 2px 7px; border-radius: 7px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.region-chips a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform .15s, border-color .2s, background .2s;
}
.region-chips a small { font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--muted); }
.region-chips a:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.region-chips a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.region-chips a[aria-current="page"] small { color: rgba(255, 255, 255, .8); }
tr.grp td { background: var(--surface-2); }
tr.sub td:first-child { padding-left: 28px; color: var(--muted); }
.content-card td a { font-weight: 600; }
.content-card .btn { text-decoration: none; }
.card[id], section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }


/* ================= v3: 타이포그래피 · 모바일 보정 ================= */
html { overflow-x: clip; }
body { overflow-x: clip; font-size: 16px; line-height: 1.7; letter-spacing: -.012em; word-break: keep-all; overflow-wrap: break-word; font-feature-settings: "ss05"; }
code, .val.en, .recent-item span, .map-link, .table-wrap td code { word-break: normal; overflow-wrap: anywhere; }
.main { grid-template-columns: minmax(0, 1fr); }
.card, .main > * { min-width: 0; }

h1, h2, h3 { letter-spacing: -.035em; }
.hero h1 { font-size: clamp(27px, 7.4vw, 46px); font-weight: 800; line-height: 1.22; }
.hero p { font-size: clamp(15px, 4vw, 17px); line-height: 1.7; font-weight: 400; }
.eyebrow { font-weight: 600; letter-spacing: 0; }
.chip { font-weight: 500; }
.card-head h2 { font-size: 20px; font-weight: 700; }
.content-card h2 { font-size: 22px; font-weight: 700; }
.content-card h3, .sec-title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.content-card p, .content-card li { font-size: 15.5px; line-height: 1.8; }
.faq summary { font-weight: 600; font-size: 16px; }
.field > label, .field > .lbl { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.val { font-size: 15px; line-height: 1.5; }
.val.big { font-family: var(--font); font-size: 24px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.val.en { font-weight: 650; font-size: 16px; letter-spacing: -.005em; }
.fact b { font-family: var(--font); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.btn { font-weight: 650; letter-spacing: -.01em; }
.btn-copy { font-weight: 650; }
.status { font-weight: 700; }
.nav a { font-weight: 550; }
.brand-text strong { font-weight: 700; letter-spacing: -.02em; }
th { font-weight: 600; letter-spacing: .02em; }
.tools-list a { font-weight: 600; }
.region-chips a { font-weight: 600; }

@media (max-width: 720px) {
  :root { --header-h: 58px; --radius: 18px; }
  .shell { padding: 0 16px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 10.5px; letter-spacing: .02em; }
  .brand-text strong { font-size: 14.5px; }
  .hero { padding: 22px 0 12px; }
  .hero .eyebrow { font-size: 12px; padding: 5px 10px; margin-bottom: 10px; }
  .hero p { margin-top: 10px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .layout { gap: 18px; padding-bottom: 28px; }
  .main { gap: 16px; }
  .card { padding: 18px 16px; }
  .card-head { flex-wrap: wrap; margin-bottom: 14px; }
  .card-head h2 { font-size: 18px; }
  .card-head .sub { display: none; }
  .content-card h2 { font-size: 20px; }
  .content-card p, .content-card li { font-size: 15px; }
  .embed-box { height: 460px; }
  .val.big { font-size: 22px; }
  .row { gap: 6px; }
  .btn-copy { min-width: 58px; padding: 0 10px; }
  .btn-copy .ic { display: none; }
  .cta-row .btn { width: 100%; }
  .region-chips a { padding: 7px 12px; font-size: 13.5px; }
  .compare code { font-size: 13px; }
  .table-wrap { margin-left: -2px; margin-right: -2px; }
  th, td { padding: 10px 12px; }
}

:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .step, :root[data-theme="dark"] .brand-mark { color: #04201a; }
:root[data-theme="dark"] .region-chips a[aria-current="page"], :root[data-theme="dark"] .region-chips a[aria-current="page"] small { color: #04201a; }
.hero h1 em { padding-right: .04em; }
code.inl { overflow-wrap: break-word; word-break: keep-all; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { padding: 12px 14px; }
  .fact b { font-size: 17px; }
  .fact:last-child { grid-column: 1 / -1; }
}

/* ---------- 일러스트 · 모션 ---------- */
.hero-art, .inline-art { display: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-12px) rotate(.6deg); } }
@keyframes art-in { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-art img, .inline-art { filter: drop-shadow(0 22px 22px rgba(15, 118, 110, .18)); }
:root[data-theme="dark"] .hero-art img, :root[data-theme="dark"] .inline-art { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .45)); }
@media (min-width: 900px) {
  .hero { text-align: left; padding: 30px 0 18px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 28px; }
  .hero p { margin-left: 0; margin-right: 0; }
  .chips { justify-content: flex-start; }
  .hero-art { display: block; justify-self: center; width: min(100%, 340px); animation: art-in .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-art img { display: block; width: 100%; height: auto; animation: bob 7s ease-in-out .9s infinite; }
  .hero.compact .hero-art { width: min(100%, 230px); }
}
@media (min-width: 640px) {
  .inline-art { display: block; float: right; width: 150px; height: auto; margin: -4px 0 8px 18px; shape-outside: margin-box; }
}
.facts { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.fact b:not(.txt) { white-space: nowrap; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }

.hero-art picture, .inline-art picture { display: block; }
.hero-art img, .inline-art img { display: block; width: 100%; height: auto; }
.inline-art { filter: none; }
.inline-art img { filter: drop-shadow(0 18px 18px rgba(15, 118, 110, .16)); }
:root[data-theme="dark"] .inline-art img { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
