/* HAESIS Biz Center — main stylesheet */
:root {
  --brand: #2c5fd6;
  --brand-600: #224dba;
  --brand-50: #eef3ff;
  --brand-100: #dce6ff;
  --navy: #0e1a3a;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ok: #0f9d6b;
  --warn-bg: #fff8e6;
  --warn-line: #f5d27a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px rgba(14, 26, 58, .16);
  --container: 1160px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand);
  letter-spacing: .02em; margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-desc { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; height: 100%; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); }
.logo svg { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); }
.logo-text strong { font-size: 19px; font-weight: 900; letter-spacing: .06em; }
.logo-text small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.menu a:hover { background: var(--bg-soft); color: var(--ink); }
.menu a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer;
  position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .25s, opacity .2s;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { top: -7px; left: 0; }
.menu-toggle span::after { top: 7px; left: 0; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; background:
  radial-gradient(900px 480px at 85% -10%, var(--brand-100), transparent 60%),
  radial-gradient(700px 420px at -10% 110%, #e8f0ff, transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow);
}
.pill b { background: var(--brand); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5.6vw, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.18; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { margin-top: 20px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; list-style: none; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.hero-checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks svg { width: 18px; height: 18px; color: var(--ok); }
.hero-media { position: relative; }
.hero-media picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.float-card .ico svg { width: 22px; height: 22px; }
.float-card strong { display: block; font-size: 16px; }
.float-card span { color: var(--muted); }
.float-a { left: -28px; bottom: 32px; }
.float-b { right: -16px; top: 28px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--navy); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 15px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.card:hover, .card.hoverable:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 20px; font-weight: 800; }
.card p { margin-top: 10px; color: var(--muted); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; color: var(--brand); font-size: 15px; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(3px); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.tag-gray { background: var(--bg-soft); color: var(--ink-2); }

/* Service highlight */
.service-card { display: flex; flex-direction: column; }
.service-card.featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.service-card.featured p, .service-card.featured li { color: rgba(255,255,255,.75); }
.service-card.featured .icon { background: rgba(255,255,255,.1); color: #fff; }
.service-card.featured .tag { background: rgba(255,255,255,.12); color: #fff; }
.price { margin-top: 18px; font-size: 15px; color: var(--muted); }
.price strong { font-size: 28px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.featured .price strong { color: #fff; }
.checklist { list-style: none; margin-top: 20px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checklist li { display: flex; gap: 10px; }
.checklist svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.featured .checklist svg { color: #7fb2ff; }
.service-card .btn { margin-top: auto; }
.service-card .checklist { margin-bottom: 28px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 14px; font-weight: 800; color: var(--brand); margin-bottom: 14px; letter-spacing: .04em;
}
.step h3 { font-size: 18px; font-weight: 800; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Branches */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.branch { display: flex; flex-direction: column; gap: 6px; }
.branch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.branch h3 { font-size: 20px; }
.branch address { font-style: normal; color: var(--ink-2); font-size: 15px; }
.branch .note { font-size: 14px; color: var(--muted); }
.branch-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.branch[hidden] { display: none; }
.badge-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ok); }
.badge-ok svg { width: 14px; height: 14px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.feature-list { list-style: none; display: grid; gap: 20px; margin-top: 28px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.feature-list .icon svg { width: 22px; height: 22px; }
.feature-list h3 { font-size: 17px; font-weight: 800; }
.feature-list p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 32px 22px 0; font-weight: 700; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #1c3478 100%); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(92,140,255,.45), transparent 70%); }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.75); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Page hero (sub pages) */
.page-hero { padding: 64px 0 56px; background: radial-gradient(800px 360px at 90% -20%, var(--brand-100), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 900; letter-spacing: -0.035em; }
.page-hero p { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--ink); }

/* Guide / article */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.doc > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc p { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 15px; font-weight: 600; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); }
.article > section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.article > section:last-child { border-bottom: 0; margin-bottom: 0; }
.article h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 16px; }
.article h3 { font-size: 19px; font-weight: 800; margin: 28px 0 10px; }
.article p { color: var(--ink-2); margin-bottom: 12px; }
.article ul.bullets, .article ol.numbered { padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; margin-bottom: 12px; }
.article strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 800; color: var(--ink); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
td.hl { color: var(--brand); font-weight: 800; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-2); margin: 16px 0; font-size: 15px; }
.callout svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout.warn svg { color: #b7791f; }
.timeline { list-style: none; display: grid; gap: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-weight: 800; color: var(--brand); }
.timeline b { display: block; color: var(--ink); }
.timeline span { color: var(--muted); font-size: 14px; }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.link-grid a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.link-grid a:hover { border-color: var(--brand); color: var(--brand); }
.link-grid small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.link-grid svg { width: 16px; height: 16px; flex: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { text-align: left; }
.contact-card .value { display: block; margin-top: 8px; font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: -0.02em; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text small { color: rgba(255,255,255,.55); }
.site-footer .logo { color: #7fb2ff; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-desc { margin-top: 16px; max-width: 360px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .float-a { left: 12px; }
  .float-b { right: 12px; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .contact-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 40px; padding: 20px; background: var(--bg-soft); border-radius: var(--radius); }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .menu a { padding: 14px 12px; font-size: 17px; }
  .menu-open .menu { transform: none; opacity: 1; visibility: visible; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 40px 0 72px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4, .contact-grid, .link-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 18px; }
  .stat strong { font-size: 22px; }
  .card { padding: 22px; }
  .float-card { padding: 10px 14px; }
  .float-b { display: none; }
  .float-a { left: 12px; bottom: 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 104px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { height: 48px; }
}

/* Skip link */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }

/* Branch photos */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.branch.has-cover { padding-top: 0; overflow: hidden; }
.branch-cover { display: block; margin: 0 -28px 20px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.branch-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.branch.has-cover:hover .branch-cover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 12, 24, .9); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.26); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 16px; left: 16px; right: 16px; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .branch-cover { margin: 0 -22px 18px; }
}

/* 정보글 */
.post-container { max-width: 800px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.post-card h3 { margin-top: 14px; font-size: 20px; line-height: 1.4; }
.post-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article .lead { font-size: 18px; color: var(--ink); margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article .formula {
  margin: 16px 0 20px; padding: 18px 22px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 18px; font-weight: 700; color: var(--navy); text-align: center; overflow-x: auto; white-space: nowrap;
}
.article th.num, .article td.num { text-align: right; white-space: nowrap; }
.article table.compact { min-width: 0; }
.article .callout a, .article .sources a { color: var(--brand); font-weight: 700; }
.article .sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.article .sources ul { padding-left: 20px; margin: 4px 0 12px; }
.article .disclaimer { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .article .formula { font-size: 15px; padding: 14px 16px; }
  .article .lead { font-size: 17px; }
}
.article p a, .article li a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* AdSense */
.ad-slot{margin:40px 0;min-height:100px;text-align:center;overflow:hidden}
.ad-slot::before{content:"광고";display:block;margin-bottom:6px;font-size:11px;color:var(--muted,#8a8f98);letter-spacing:.04em}
.ad-slot:has(ins[data-ad-status="unfilled"]){display:none}

table.compact tbody th{white-space:nowrap}
