/* 안내·정책·로그인·관리자 페이지 공통 스타일 — 디자인 v2 (건축 모형 + 크림슨) */
:root {
  --bg: #F3F2EF; --surface: #FFFFFF; --surface-2: #FAF9F7; --press: #ECEAE6;
  --fg: #111111; --body: #1D1F22; --sub: #2B2D31; --muted: #4D5157;
  --line: #E2E0DB; --line-strong: #CFCCC6;
  --accent: #B3263A; --accent-press: #8C1C2D; --accent-tint: #F8E9EB;
  --warn: #B45309; --warn-tint: #FDF3E7; --warn-ink: #5A2A04; --ok: #1a7f37;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.8; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
a { color: var(--accent); }
a:hover { color: var(--accent-press); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 머리말 */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(243,242,239,.94); backdrop-filter: blur(6px); box-shadow: inset 0 -1px 0 var(--line-strong); }
.site-header .in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--fg); }
.brand img { display: block; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand small { font-size: 11px; font-weight: 600; letter-spacing: .38em; color: var(--muted); }
.site-header nav { flex: 1 1 480px; display: flex; align-items: center; gap: 2px 22px; flex-wrap: wrap; }
.site-header nav a { color: var(--sub); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 2px; white-space: nowrap; }
.site-header nav a:hover { color: var(--fg); }
.site-header nav a[aria-current="page"] { color: var(--fg); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.go-map { height: 40px; display: inline-flex; align-items: center; gap: 12px; padding: 0 16px; background: #111; color: #fff !important; text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.go-map:hover { background: #2B2D31; }
.go-map svg, .cta svg { flex: none; }

/* 본문 */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.article .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin: 0 0 10px; }
.article h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 900; letter-spacing: -.05em; line-height: 1.2; margin: 0 0 16px; }
.article h2 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.35; margin: 48px 0 10px; }
.article h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 28px 0 6px; }
.article p, .article li { color: var(--body); }
.article .lead { font-size: 19px; color: var(--sub); }
.article .table-wrap { border-radius: 10px; overflow-x: auto; background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin: 14px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; background: var(--surface); font-variant-numeric: tabular-nums; }
.article .table-wrap table { margin: 0; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.article th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-strong); background: var(--surface-2); }
.article .formula { border-radius: 12px; position: relative; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 46px 26px 22px; font-size: clamp(18px, 3.4vw, 22px); font-weight: 800; letter-spacing: -.03em; margin: 18px 0; line-height: 1.5; }
.article .formula::before { border-radius: 4px; content: "공식"; position: absolute; left: 26px; top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: #fff; background: var(--accent); padding: 3px 8px; line-height: 1.4; }
.article .note { border-radius: 10px; position: relative; background: var(--warn-tint); color: var(--warn-ink); padding: 16px 20px 16px 50px; border-radius: 2px; margin: 18px 0; font-size: 15px; line-height: 1.7; }
.article .note::before {
  content: ""; position: absolute; left: 20px; top: 19px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5L15 14H1z' fill='none' stroke='%23B45309' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M8 6v4M8 11.6v.4' stroke='%23B45309' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.article .cta { display: inline-flex; align-items: center; gap: 24px; height: 52px; margin: 8px 12px 8px 0; padding: 0 20px 0 24px; background: #111; color: #fff; border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: 700; }
.article .cta::after { content: ""; width: 34px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath d='M0 6h32M27 1l5 5-5 5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.article .cta:hover { background: #2B2D31; color: #fff; }
.article details { border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 14px 18px; margin: 10px 0; }
.article summary { font-weight: 700; cursor: pointer; }
.article .small { font-size: 14.5px; color: var(--muted); }
/* 애드센스 본문 광고 자리 */
.ad-slot { margin: 32px 0; min-height: 280px; }

/* 꼬리말 */
.site-footer { box-shadow: inset 0 1px 0 var(--line-strong); font-size: 14px; color: var(--muted); }
.site-footer .in { max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px; display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.site-footer .name { font-size: 14px; font-weight: 800; letter-spacing: -.03em; color: var(--fg); }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-left: auto; }
.site-footer nav a { color: var(--sub); text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer p { flex-basis: 100%; margin: 4px 0 0; line-height: 1.6; }

/* 로그인·관리자 */
.card { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: 12px; padding: 20px; margin: 14px 0; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form-grid input, .form-grid select { font: inherit; font-size: 15px; height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg); }
.form-grid input:focus, .form-grid select:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(179,38,58,.18); }
.form-grid small { font-weight: 500; color: var(--muted); }
.btn { font: inherit; font-size: 15px; font-weight: 600; height: 44px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg); cursor: pointer; }
.btn:hover { background: var(--press); }
.btn.primary { background: #111; color: #fff; box-shadow: none; font-weight: 700; }
.btn.primary:hover { background: #2B2D31; }
.msg { min-height: 1.4em; font-size: 14px; }
.msg.error { color: var(--warn-ink); }
.msg.ok { color: var(--ok); }

/* 소개(히어로) */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero .in { position: relative; max-width: 1280px; margin: 0 auto; padding: 72px 24px 64px; min-height: 620px; }
.hero .bg { position: absolute; right: -40px; top: 10px; width: min(960px, 70%); height: auto; pointer-events: none; }
.hero .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .35em; color: var(--muted); margin: 0 0 14px; }
.hero h1 { margin: 0; font-size: clamp(42px, 6.2vw, 86px); line-height: 1.1; font-weight: 900; letter-spacing: -.05em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { margin: 24px 0 36px; font-size: clamp(16px, 1.8vw, 24px); line-height: 1.6; font-weight: 600; color: #1D1F22; }
.hero .row { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.hero .go { display: inline-flex; align-items: center; gap: 40px; height: 64px; padding: 0 28px 0 32px; background: #111; color: #fff; text-decoration: none; border-radius: 12px; font-size: 21px; font-weight: 600; }
.hero .go:hover { background: #2B2D31; color: #fff; }
.hero .meta { display: flex; align-items: center; gap: 22px; font-size: 16px; font-weight: 600; color: #2B2D31; }
.hero .meta::before { content: ""; width: 1px; height: 28px; background: #B9B6AF; }
.hero .copy { position: relative; max-width: 640px; }
.steps { max-width: 1280px; margin: 0 auto; padding: 24px 24px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { border-radius: 12px; list-style: none; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 24px; }
.steps b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 8px 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.steps p { margin: 0; font-size: 15px; color: var(--sub); line-height: 1.7; }
@media (max-width: 760px) {
  .site-header .in { padding: 10px 16px 0; gap: 0 12px; }
  .brand small { display: none; }
  .go-map { margin-left: auto; height: 36px; padding: 0 12px; font-size: 14px; }
  .site-header nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .hero .in { display: flex; flex-direction: column; padding: 32px 16px 40px; min-height: 0; }
  .hero .bg { order: 2; position: relative; right: auto; top: auto; width: 112%; max-width: none; margin: 4px -6% -24px; }
  .hero .go { width: 100%; justify-content: space-between; height: 56px; font-size: 18px; }
  .hero .meta { font-size: 14px; }
  .hero .meta::before { display: none; }
  .article { padding: 40px 16px 64px; }
}
