/* 보건국시 판매 사이트 — 2026-10-19 전면 개편 */
:root {
  --navy: #0b1f3a; --ink: #16213a; --ink-2: #3b4a66; --muted: #6b7890;
  --accent: #1552d8; --accent-dk: #0f3fae; --accent-bg: #eaf0ff;
  --teal: #0e9f9c; --teal-bg: #e6f7f6; --warm: #d97706; --warm-bg: #fff4e1;
  --rose: #dc2626; --rose-bg: #fff1f1;
  --bg: #f4f6fb; --surface: #ffffff; --line: #e3e8f1; --line-2: #cfd7e6;
  --r: 16px; --r-sm: 10px; --shadow: 0 10px 30px rgba(11, 31, 58, .08); --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.01em; margin: 0; font-weight: 800; }
p { margin: 0 0 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* ---------- 머리글 ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; color: var(--navy); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--teal)); display: grid; place-items: center; color: #fff; flex: none; }
.brand .mark svg { width: 20px; height: 20px; }
.top nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.top nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.top nav a:hover { background: var(--accent-bg); color: var(--accent); text-decoration: none; }
.top nav a.cta { background: var(--navy); color: #fff; } .top nav a.cta:hover { background: var(--accent); }
@media (max-width: 760px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .top nav { margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 6px 10px; font-size: 14px; }
}

main { padding-bottom: 64px; }
main > .wrap > *:first-child { margin-top: 28px; }

/* ---------- 첫 화면 ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding: 40px 0 28px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-bg); color: var(--teal); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; }
.hero h1 { font-size: 40px; color: var(--navy); margin-bottom: 14px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: 17px; color: var(--ink-2); max-width: 540px; }
.hero .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .quick a { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
.hero .quick a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.hero .quick a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .quick a.primary:hover { background: var(--accent-dk); color: #fff; }
.stack { position: relative; height: 380px; overflow: hidden; border-radius: var(--r); }
.stack .book { position: absolute; width: 215px; aspect-ratio: 1 / 1.414; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px rgba(11,31,58,.22), 0 2px 0 #fff inset; border: 1px solid var(--line); transition: transform .35s; }
.stack .book img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stack .b1 { left: 8%; top: 46px; transform: rotate(-8deg); z-index: 1; }
.stack .b2 { left: 32%; top: 10px; transform: rotate(2deg); z-index: 3; }
.stack .b3 { left: 56%; top: 54px; transform: rotate(9deg); z-index: 2; }
.stack:hover .b1 { transform: rotate(-11deg) translateX(-10px); } .stack:hover .b3 { transform: rotate(12deg) translateX(10px); }
.stack .tag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; z-index: 4; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } .hero h1 { font-size: 30px; } .stack { height: 250px; } .stack .book { width: 140px; } .stack .b1 { left: 4%; } .stack .b3 { left: 58%; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 40px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.stats b { display: block; font-size: 24px; color: var(--navy); letter-spacing: -.02em; } .stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats b { font-size: 20px; } }

/* ---------- 시험별 구역 ---------- */
.exam { margin: 36px 0 12px; scroll-margin-top: 84px; }
.exam-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.exam-head h2 { font-size: 24px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.exam-head h2 .code { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--accent); background: var(--accent-bg); padding: 3px 8px; border-radius: 6px; }
.exam-head .when { color: var(--muted); font-size: 14px; margin-top: 4px; }
.exam-head .tools a { font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; }
.exam-head .tools a:hover { border-color: var(--accent); text-decoration: none; }
.grid { display: flex; flex-wrap: wrap; gap: 16px; }
.grid > .card { flex: 1 1 280px; min-width: 0; }
@media (max-width: 560px) { .grid > .card { flex-basis: 100%; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
.card .kind { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.card .kind::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.card .kind.k-summary { color: var(--teal); } .card .kind.k-mock { color: #7c3aed; } .card .kind.k-quiz { color: #0369a1; }
.card .kind.k-practical { color: var(--warm); } .card .kind.k-all { color: var(--rose); } .card .kind.k-calc { color: #4d7c0f; }
.card h3 { font-size: 17px; margin: 10px 0 8px; color: var(--navy); }
.card p { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .hint { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price s { color: #9aa5b8; font-size: 14px; } .price b { font-size: 22px; color: var(--navy); letter-spacing: -.02em; }
.price .off { font-size: 12px; font-weight: 800; color: var(--rose); background: var(--rose-bg); padding: 2px 7px; border-radius: 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; background: var(--accent-bg); color: var(--accent); border-radius: 999px; padding: 3px 10px; }
.badge.pre { background: var(--warm-bg); color: var(--warm); }
.card .ribbon { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; background: var(--warm-bg); color: var(--warm); padding: 3px 9px; border-radius: 999px; }
.card.featured { flex-basis: 100%; background: linear-gradient(135deg, #ffffff 0%, #f1f5ff 100%); border: 1px solid #c9d7ff; }
.card.featured::after { content: '가장 많이 고르는 구성'; position: absolute; top: -11px; left: 18px; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.card.featured h3 { font-size: 20px; } .card.featured p { -webkit-line-clamp: 5; } .card.featured .price b { font-size: 28px; }
@media (min-width: 761px) { .card.featured { display: grid; grid-template-columns: 1fr 260px; column-gap: 28px; align-items: center; }
  .card.featured .kind, .card.featured .ribbon, .card.featured h3, .card.featured p { grid-column: 1; } .card.featured .ribbon { position: absolute; }
  .card.featured .price { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; gap: 2px; border-left: 1px solid #c9d7ff; padding-left: 24px; }
  .card.featured .hint { grid-column: 1 / span 2; margin-top: 10px; } }

/* ---------- 특징·절차·FAQ ---------- */
.section { margin-top: 56px; }
.section > h2 { font-size: 24px; color: var(--navy); margin-bottom: 6px; } .section > .lead { color: var(--ink-2); margin-bottom: 20px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.features div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; }
.features .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.features .ic svg { width: 22px; height: 22px; } .features div:nth-child(2) .ic { background: var(--teal-bg); color: var(--teal); }
.features div:nth-child(3) .ic { background: var(--warm-bg); color: var(--warm); } .features div:nth-child(4) .ic { background: #f3e8ff; color: #7c3aed; }
.features h3 { font-size: 16px; margin-bottom: 6px; } .features p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 480px) { .features { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px 18px; position: relative; }
.steps div::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.steps h3 { font-size: 16px; margin-bottom: 6px; } .steps p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; font-weight: 400; } .faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); font-size: 14.5px; padding-bottom: 14px; margin: 0; }

/* ---------- 상품 상세 ---------- */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; } .crumb a { color: var(--muted); }
.pd { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.pd-main { min-width: 0; }
.pd-main h1 { font-size: 28px; color: var(--navy); margin: 8px 0 12px; }
.pd-main .lead { font-size: 16.5px; color: var(--ink-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.panel h2 { font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts li .k { flex: none; width: 56px; color: var(--muted); font-weight: 700; font-size: 13px; padding-top: 2px; }
.buy { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.buy .price { margin: 6px 0 14px; } .buy .price b { font-size: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 14px 22px; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; font-family: inherit; transition: background .15s, transform .1s; }
.btn:hover { background: var(--accent-dk); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.block { width: 100%; } .btn.small { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn.ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); } .btn.ghost:hover { background: var(--accent-bg); }
.buy .assure { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
.buy .assure li { padding: 5px 0 5px 22px; position: relative; }
.buy .assure li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 10px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shots a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s; background: #fff; }
.shots a:hover { transform: scale(1.03); }
.note { color: var(--muted); font-size: 13px; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
dialog.lb::backdrop { background: rgba(11,31,58,.75); } dialog.lb img { border-radius: 8px; max-height: 90vh; width: auto; margin: 0 auto; }
.related { margin-top: 40px; } .related h2 { font-size: 20px; color: var(--navy); margin-bottom: 14px; }
.mbuy { display: none; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } .buy { position: static; } .shots { grid-template-columns: repeat(2, 1fr); }
  main { padding-bottom: 96px; }
  .mbuy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,31,58,.08); }
  .mbuy s { display: block; color: #9aa5b8; font-size: 12px; line-height: 1; } .mbuy b { font-size: 22px; color: var(--navy); }
  .mbuy .btn { padding: 12px 26px; } }

/* ---------- 주문·조회·안내 ---------- */
.narrow { max-width: 620px; margin: 0 auto; }
.narrow h1 { font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.progress { display: flex; gap: 6px; margin: 18px 0 22px; }
.progress span { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 8px 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.progress span.on { background: var(--navy); color: #fff; border-color: var(--navy); } .progress span.done { color: var(--teal); border-color: var(--teal); }
.form label { display: block; margin: 14px 0; font-weight: 700; font-size: 14.5px; }
.form small { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]) { display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: 16px; margin-top: 6px; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,82,216,.15); }
.form .agree { font-weight: 400; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; } .form .agree input { margin-top: 3px; }
.err { color: var(--rose); background: var(--rose-bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.box { background: var(--accent-bg); border: 1px solid #c9d7ff; border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.box p { margin: 6px 0; } .mono { font-family: Consolas, 'SF Mono', monospace; letter-spacing: 1px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 15px; } .kv dt { color: var(--muted); font-weight: 700; font-size: 13px; padding-top: 2px; } .kv dd { margin: 0; }
.kv dd b.amt { font-size: 22px; color: var(--navy); }
.legal h2 { font-size: 17px; margin: 22px 0 8px; color: var(--navy); } .legal table { border-collapse: collapse; } .legal td, .legal th { border: 1px solid var(--line); padding: 6px 10px; }
.legal ul { padding-left: 20px; }

/* ---------- 공부 자료 ---------- */
.page-h { margin-bottom: 20px; } .page-h h1 { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.posts a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; color: var(--ink); }
.posts a:hover { border-color: var(--accent); text-decoration: none; box-shadow: var(--shadow-sm); }
.posts b { display: block; color: var(--navy); margin-bottom: 4px; } .posts span { font-size: 13.5px; color: var(--muted); }
.group-h { font-size: 15px; font-weight: 800; color: var(--accent); margin: 8px 0 10px; letter-spacing: .02em; }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }
.post { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 36px; }
.post h1 { font-size: 28px; color: var(--navy); margin: 6px 0 18px; }
.post-body { line-height: 1.85; font-size: 16px; } .post-body h2 { font-size: 20px; margin: 28px 0 10px; color: var(--navy); } .post-body h3 { font-size: 17px; margin: 20px 0 8px; }
.post-body table { border-collapse: collapse; margin: 14px 0; width: 100%; font-size: 14px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 7px 9px; } .post-body th { background: var(--bg); }
.post-body img { margin: 14px auto; } .post-body blockquote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--accent-bg); border-radius: 0 8px 8px 0; }
.inline-prod { font-weight: 700; }
.rel-list { display: grid; gap: 10px; margin-top: 12px; }
.related-card { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; color: inherit; background: var(--surface); }
.related-card:hover { border-color: var(--accent); text-decoration: none; } .related-card .price b { font-size: 17px; }
@media (max-width: 640px) { .post { padding: 22px 18px; } .post h1 { font-size: 23px; } }

/* ---------- 무료 진단 ---------- */
.quiz { list-style: none; padding: 0; margin: 0; }
.quiz .q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px; counter-increment: q; }
.quiz .stem { font-weight: 700; margin-bottom: 10px; display: flex; gap: 10px; }
.quiz .stem::before { content: counter(q); flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; }
form.quizf { counter-reset: q; }
.quiz h2.subj, .quiz-subj { font-size: 16px; color: var(--accent); margin: 22px 0 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: 15px; }
.choice:hover { background: var(--bg); } .choice input { margin-top: 4px; accent-color: var(--accent); }
.choice:has(input:checked) { background: var(--accent-bg); border-color: #c9d7ff; }
.submit-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 12px; }
.submit-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.score { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.ring { position: relative; width: 150px; height: 150px; } .ring svg { transform: rotate(-90deg); } .ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .num b { font-size: 36px; line-height: 1; color: var(--navy); } .ring .num span { font-size: 12px; color: var(--muted); }
.bars { display: grid; gap: 10px; } .bars .row { display: grid; grid-template-columns: 110px 1fr 70px 80px; gap: 10px; align-items: center; font-size: 14px; }
.bars .track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); } .bars .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.bars .fill.low { background: var(--rose); } .bars .fill.mid { background: var(--warm); }
@media (max-width: 640px) { .score { grid-template-columns: 1fr; justify-items: center; } .bars { width: 100%; } .bars .row { grid-template-columns: 80px 1fr 56px; } .bars .row .st { display: none; } }
.quiz .ans { font-size: 14.5px; margin: 6px 0; } .quiz .ex { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 바닥글 ---------- */
footer { background: var(--navy); color: #c7d1e3; padding: 40px 0 28px; font-size: 13.5px; }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 28px; margin-bottom: 24px; }
footer .fbrand { color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 8px; } footer .fbrand + p { color: #9fb0cc; }
footer h4 { color: #fff; font-size: 13px; margin: 0 0 10px; letter-spacing: .06em; text-transform: uppercase; }
footer a { color: #dbe4f3; } footer .links a { display: block; padding: 3px 0; }
footer .biz { color: #9fb0cc; line-height: 1.8; }
footer .copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; color: #8294b3; font-size: 12.5px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- 관리자 ---------- */
.wide { max-width: 100%; } .wide h1 { font-size: 22px; margin-bottom: 10px; }
table.adm { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
table.adm th, table.adm td { border: 1px solid var(--line); padding: 6px; vertical-align: top; } table.adm th { background: var(--bg); }
table.adm form { display: inline; } table.adm button { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
table.adm button.ghost { background: #fff; color: var(--accent); } .st-pending { background: #fffbe6; } .st-failed { background: #fff1f0; }
.stats-line a { margin-right: 6px; }
