/*
Theme Name: 내차례
Theme URI: https://naecharye.co.kr
Author: 내차례
Description: 장기렌트 특수 조건 고객을 위한 내차례 테마. 상황별 창구, 질문 결과, 계약 가능한 곳 조회, 상담 신청 화면을 담고 있어요.
Version: 0.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: naecharye
*/

/* 컨셉: 은행 대기 번호표. 노란 번호표가 "내 차례"를 표시해요.
   시그니처 색은 --sig 하나만 바꾸면 전체에 적용돼요. */
:root {
  --sig: #FFD43B;          /* 시그니처: 번호표 노랑 */
  --sig-strong: #1F4FD8;   /* 흰 바탕 위 링크·강조 글자 (노랑은 글자로 읽기 어려워 파랑) */
  --sig-soft: #FFF4C2;
  --on-sig: #0E1726;       /* 노랑 위 글자 */
  --ok-soft: #DDF3E6;
  --on-ok: #0B5A3A;
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --ink: #0E1726;
  --muted: #4B5565;
  --faint: #5D6675;
  --line: #DCE1E8;
  --board: #161B26;
  --board-2: #1F2533;
  --board-line: #3A4357;
  --on-board: #FFFFFF;
  --on-board-muted: #B6BECC;
  --led: #FF5A36;
  --red: #C2361A;
  --red-soft: #FDE2DC;
  --on-red-soft: #8A2412;
  --amber-soft: #FFF1CC;
  --on-amber: #5C4400;
  --shadow: rgba(14, 23, 38, 0.2);
  --f-display: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-body: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-board: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sig: #FFD43B; --sig-strong: #8FB0FF; --sig-soft: #3A3214; --on-sig: #0E1726; --ok-soft: #12301F; --on-ok: #8FE0B4;
    --bg: #0F131B; --surface: #171C26; --ink: #EEF1F6; --muted: #A9B2C2; --faint: #9AA4B6; --line: #2A3242;
    --board: #0A0D13; --board-2: #141A25; --board-line: #2E3647; --on-board: #FFFFFF; --on-board-muted: #AEB7C6;
    --led: #FF6A48; --red: #FF7A5C; --red-soft: #3A1A14; --on-red-soft: #FFB4A3; --amber-soft: #3A3014; --on-amber: #FFE08A;
    --shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; }
a { color: var(--sig-strong); }
:focus-visible { outline: 3px solid var(--sig-strong); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.section { padding-block: 72px 24px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-sig { background: var(--sig); color: var(--on-sig); }
.btn-sig:hover { filter: brightness(0.95); color: var(--on-sig); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { color: var(--bg); }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.link-strong { font-weight: 700; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* 안내 띠, 머리 */
.notice { background: var(--sig); color: var(--on-sig); font-size: 13px; font-weight: 600; }
.notice .wrap { padding-block: 6px; }
header.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar header.top { top: 32px; }
@media (max-width: 782px) { .admin-bar header.top { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.top { top: 0; } }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: 26px; }
nav.main { display: flex; flex-wrap: wrap; gap: 0 26px; flex: 1 1 auto; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
nav.main a:hover { color: var(--sig-strong); }

/* 첫 화면 */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(56px, 8vw, 100px); line-height: 1.02; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sig) 62%, var(--sig) 92%, transparent 92%); }
.hero .lead { font-size: 20px; max-width: 26em; }
.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 620px; }
.search input { flex: 1 1 280px; min-width: 0; height: 58px; border: 2px solid var(--ink); border-radius: 14px; padding: 0 18px; font-size: 17px; background: var(--surface); }
.search button { height: 58px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--ink); color: var(--sig); font-weight: 700; font-size: 17px; cursor: pointer; }
.search-msg { font-size: 15px; color: var(--muted); min-height: 1.6em; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.hero-art { flex: 1 1 380px; min-width: 0; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; }
.led-board { background: var(--board); border-radius: 26px; padding: 26px 30px 56px; box-shadow: inset 0 0 0 8px var(--board-2); }
.led-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--on-board-muted); font-weight: 600; }
.signal { display: inline-flex; gap: 6px; }
.signal i { width: 12px; height: 12px; border-radius: 50%; background: #3A3322; }
.signal i.on { background: var(--sig); box-shadow: 0 0 10px var(--sig); }
.led-num { font-family: var(--f-board); font-weight: 700; font-size: clamp(84px, 11vw, 124px); line-height: 1.1; color: var(--led); letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.led-line { font-family: var(--f-board); font-weight: 700; font-size: 22px; color: var(--sig); margin-top: 4px; min-height: 2.6em; }
.ticket { position: relative; margin: -34px 24px 0 auto; width: min(300px, 86%); background: var(--surface); border-radius: 10px; padding: 18px 22px; box-shadow: 0 14px 34px var(--shadow); border-top: 6px solid var(--sig); }
.ticket-row { display: flex; justify-content: space-between; align-items: baseline; }
.ticket-row span:first-child { font-size: 13px; font-weight: 700; color: var(--muted); }
.ticket-row span:last-child { font-family: var(--f-board); font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; }
.ticket p { margin-top: 10px; padding-top: 10px; border-top: 2px dashed var(--line); font-weight: 700; font-size: 15px; }

/* 질문 결과 */
.qa { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 30px; }
.qa-list { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.qa-item { width: 100%; min-height: 60px; padding: 12px 16px; border-radius: 14px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.qa-item[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--ink); color: var(--bg); }
.qa-item .q { font-size: 16px; font-weight: 700; line-height: 1.4; }
.qa-list { max-height: 620px; overflow-y: auto; padding: 2px; }
.qa-item { justify-content: flex-start; min-height: 54px; padding: 10px 14px; text-decoration: none; }
.qa-item svg { flex: 0 0 auto; color: var(--faint); }
.qa-item[aria-pressed="true"] svg { color: var(--sig); }
.qsearch { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.qsearch input { flex: 1 1 320px; min-width: 0; height: 60px; border: 2px solid var(--ink); border-radius: 16px; padding: 0 20px; font-size: 18px; background: var(--surface); }
.qsearch button { height: 60px; padding: 0 28px; border: 0; border-radius: 16px; background: var(--sig); color: var(--on-sig); font-weight: 700; font-size: 17px; cursor: pointer; }
.qa-legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.qa-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qa-legend svg { width: 18px; height: 18px; color: var(--faint); }
.qa-status { margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--muted); }
.qa { margin-top: 12px; }
.qa-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }

/* 출고 사례 */
.stories { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.story:hover { border-color: var(--ink); color: var(--ink); }
.story-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; max-width: 100%; }
.story-ph { aspect-ratio: 4 / 3; max-width: 100%; background: var(--board); display: flex; align-items: center; justify-content: center; }
.story-ph span { font-family: var(--f-board); font-weight: 700; font-size: 44px; color: var(--sig); }
.story-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.story-title { font-size: 19px; font-weight: 700; line-height: 1.45; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: 13px; font-weight: 600; background: var(--bg); padding: 4px 10px; border-radius: 8px; }
.story-quote { font-size: 15px; color: var(--muted); }
.story-empty { border-style: dashed; }
.tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-wait { background: var(--bg); color: var(--muted); }
.qa-item[aria-pressed="true"] .tag-wait { background: var(--board-2); color: var(--sig); }
.tag-yes { background: var(--sig); color: var(--on-sig); }
.tag-no { background: var(--red-soft); color: var(--on-red-soft); }
.qa-panel { flex: 2 1 560px; min-width: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.qa-window { font-family: var(--f-board); font-weight: 700; font-size: 15px; color: var(--muted); }
.bubble { max-width: 88%; padding: 16px 20px; }
.bubble small { display: block; font-size: 13px; font-weight: 700; }
.bubble-q { align-self: flex-start; background: var(--bg); border-radius: 20px 20px 20px 6px; }
.bubble-q small { color: var(--faint); }
.bubble-q p { margin-top: 4px; font-size: 22px; font-weight: 700; line-height: 1.45; }
.bubble-a { align-self: flex-end; background: var(--board); color: var(--on-board); border-radius: 20px 20px 6px 20px; }
.bubble-a small { color: var(--sig); }
.bubble-a p { margin-top: 4px; font-size: 17px; line-height: 1.65; }
.reveal-btn { align-self: flex-start; min-height: 60px; padding: 0 30px; border: 0; border-radius: 16px; background: var(--sig); color: var(--on-sig); font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: 24px; cursor: pointer; }
.stamp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.stamp { display: inline-block; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; padding: 10px 20px; border-radius: 12px; }
.stamp-yes { border: 4px solid var(--on-sig); background: var(--sig); color: var(--on-sig); }
.stamp-no { border: 4px solid var(--red); background: var(--surface); color: var(--red); }
.stamp-sub { font-size: 17px; font-weight: 700; }
.names { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.name-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 700; padding: 8px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); }
.name-chip em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--on-ok); }
.name-chip.maybe { border-color: var(--line); }
.name-chip.maybe em { background: var(--sig-soft); color: var(--on-sig); }
a.name-chip:hover { border-color: var(--sig-strong); color: var(--ink); }
.name-chip.no { border-color: var(--red); color: var(--red); }
.names-note { font-size: 13px; color: var(--muted); margin: 0; }
.q-row { flex-direction: row !important; align-items: center; gap: 14px; }
.q-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.q-txt .t { font-size: 18px; }
.q-ans { font-size: 15px; font-weight: 700; color: var(--on-ok); }
.q-ans.none { color: var(--red); }
.qa-item .q-ans { display: block; margin-top: 2px; font-size: 13px; }
.qa-item[aria-pressed="true"] .q-ans { color: var(--sig); }
.next { font-size: 16px; color: var(--on-red-soft); background: var(--red-soft); border-radius: 12px; padding: 12px 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border-top: 2px dashed var(--line); padding-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .pop { animation: nc-pop 260ms ease-out; }
  @keyframes nc-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.scam { margin-top: 20px; background: var(--surface); border: 2px solid var(--red); border-radius: 18px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.scam > div { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 460px; min-width: 0; }
.scam strong { font-size: 17px; }
.scam p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.scam a { color: var(--red); font-weight: 700; }

/* 창구 */
.windows-band { background: var(--board); color: var(--on-board); }
.windows-band .wrap { padding-block: 72px 76px; }
.windows-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.windows-head .lead { color: var(--on-board-muted); }
.windows { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.window { background: var(--board-2); border: 1px solid var(--board-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.window-head { display: flex; align-items: baseline; gap: 12px; }
.window-head .no { font-family: var(--f-board); font-weight: 700; font-size: 22px; color: var(--sig); }
.window-head h3 { font-size: 20px; color: var(--on-board); }
.window p { font-size: 14px; color: var(--on-board-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px; border: 1px solid var(--board-line); border-radius: 10px; color: var(--on-board); background: var(--board); font-size: 15px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--sig); color: var(--on-board); }
.chip b { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--board-2); color: var(--sig); font-variant-numeric: tabular-nums; }
.chip.zero b { color: var(--on-board-muted); }

/* 가이드 목록 */
.guides { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.guide-feature { flex: 2 1 460px; min-width: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: 22px; padding: 30px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.guide-feature .t { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(26px, 3vw, 32px); line-height: 1.3; }
.guide-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.guide-card .t { font-size: 19px; font-weight: 700; line-height: 1.45; }
.guide-feature:hover, .guide-card:hover { color: var(--ink); border-color: var(--sig-strong); }
.win-tag { align-self: flex-start; font-family: var(--f-board); font-weight: 700; font-size: 14px; background: var(--board); color: var(--sig); padding: 3px 10px; border-radius: 8px; }
.meta { font-size: 14px; color: var(--faint); }
.empty-note { background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 24px; color: var(--muted); }

/* 이용 방법 */
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.steps li { flex: 1 1 280px; min-width: 0; display: flex; gap: 18px; align-items: flex-start; }
.step-no { flex: 0 0 auto; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--board); color: var(--sig); font-family: var(--f-board); font-weight: 700; font-size: 34px; }
.steps li:last-child .step-no { background: var(--sig); color: var(--on-sig); }
.steps h3 { font-size: 19px; margin-top: 4px; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.free-note { margin-top: 28px; font-size: 15px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.free-note strong { color: var(--ink); }
.cta-band { background: var(--board); color: var(--on-board); border-radius: 26px; padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band p.display { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; }
.cta-band p.display em { font-style: normal; color: var(--sig); }
.cta-band p.sub { margin-top: 10px; font-size: 17px; color: var(--on-board-muted); }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 30px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.partner h2 { font-size: 20px; }
.partner p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* 바닥 */
footer.foot { background: var(--board); color: var(--on-board); margin-top: 72px; }
footer.foot .wrap { padding-block: 40px 48px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
footer.foot .brand { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: 24px; }
footer.foot p { font-size: 13px; color: var(--on-board-muted); max-width: 46em; margin-top: 8px; }
footer.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
footer.foot nav a { color: var(--on-board-muted); text-decoration: none; font-size: 14px; display: inline-block; padding: 10px 0; }
footer.foot nav a:hover { color: var(--on-board); }

/* 글(칼럼) */
.page { padding-block: 36px 24px; }
.crumb { font-size: 14px; color: var(--faint); }
.crumb a { color: var(--faint); text-decoration: none; }
.article-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
article.col { flex: 999 1 640px; min-width: 0; max-width: 760px; line-height: 1.8; }
article.col > h1 { margin-top: 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.25; }
.entry { margin-top: 24px; font-size: 17px; }
.entry > * + * { margin-top: 14px; }
.entry h2 { margin-top: 44px; font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.3; }
.entry h3 { margin-top: 32px; font-size: 20px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; display: block; overflow-x: auto; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); }
.entry th, .entry td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); }
.entry thead th { background: var(--board); color: var(--on-board); border-top: 0; }
.entry blockquote { margin-left: 0; padding: 14px 18px; background: var(--surface); border-radius: 12px; color: var(--muted); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.summary h2 { margin: 0 !important; font-family: var(--f-body) !important; font-weight: 700 !important; font-size: 17px !important; }
.summary ul { margin: 10px 0 0; padding-left: 20px; }
.callout { font-size: 15px; color: var(--muted); background: var(--surface); border-radius: 12px; padding: 14px 18px; }
.placeholder { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 20px 22px; color: var(--muted); }
aside.side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.side-board { background: var(--board); color: var(--on-board); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.side-board .no { font-family: var(--f-board); font-weight: 700; color: var(--sig); font-size: 18px; }
.side-board .t { font-size: 19px; font-weight: 700; }
.side-board p { font-size: 14px; color: var(--on-board-muted); }
.side-board strong { color: var(--sig); }
.side-list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.side-list h2 { font-size: 16px; }
.side-list ul { list-style: none; margin: 10px 0 0; padding: 0; }
.side-list li { border-top: 1px solid var(--line); }
.side-list a { display: block; padding: 12px 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.end-cta { margin-top: 40px; background: var(--board); color: var(--on-board); border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.end-cta p.sub { color: var(--on-board-muted); font-size: 15px; margin-top: 4px; }
.nc-check-btn { margin-top: 8px; }

/* 조회 */
.res-head { background: var(--board); color: var(--on-board); border-radius: 24px; padding: 30px 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.res-head .no { font-family: var(--f-board); font-weight: 700; color: var(--sig); font-size: 18px; }
.res-head h1 { margin-top: 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.res-count { text-align: right; }
.res-count .n { font-family: var(--f-board); font-weight: 700; font-size: 72px; line-height: 1; color: var(--led); font-variant-numeric: tabular-nums; }
.res-count p { color: var(--on-board-muted); font-size: 14px; margin-top: 4px; }
.filters { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 18px 40px; }
.filters fieldset { border: 0; margin: 0; padding: 0; }
.filters legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.opt { min-height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--sig); color: var(--on-sig); }
.res-layout { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.res-list { flex: 999 1 620px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 24px 20px; }
.res-list ul { list-style: none; margin: 0; padding: 0; }
.res-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.res-row .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.res-row .a { flex: 1 1 200px; min-width: 0; }
.res-row .a p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.res-row .d { flex: 1 1 200px; min-width: 0; font-size: 14px; color: var(--muted); }
.res-row .d strong { color: var(--ink); }
.res-row .o { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.res-row .o small { font-size: 12px; color: var(--faint); }
.out { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-yes { background: var(--ok-soft); color: var(--on-ok); }
.badge-maybe { background: var(--amber-soft); color: var(--on-amber); }
.fine { margin-top: 16px; font-size: 13px; color: var(--faint); }
.box-sig { background: var(--sig-soft); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.box-plain { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }

/* 상담 신청 */
.apply-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.apply-layout { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.firms { flex: 999 1 620px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.firm { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.firm .pick { cursor: pointer; min-height: 44px; }
.firm:has(input:checked) { border: 2px solid var(--ink); box-shadow: inset 0 6px 0 var(--sig); }
.firm:has(input:disabled:not(:checked)) { opacity: 0.6; cursor: not-allowed; }
.firm h2 { font-size: 18px; }
.firm .m { font-size: 14px; color: var(--faint); }
.firm ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.firm li { font-size: 13px; font-weight: 600; background: var(--bg); padding: 4px 10px; border-radius: 8px; }
.firm .checks { font-size: 13px; color: var(--muted); }
.firm .pick { margin-top: auto; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.firm .pick input { width: 22px; height: 22px; accent-color: var(--sig-strong); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg label { min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); color: var(--bg); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--sig-strong); outline-offset: 2px; }
.apply-side { flex: 1 1 320px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.apply-side label.f { font-size: 13px; font-weight: 700; color: var(--muted); }
.apply-side input[type="text"], .apply-side input[type="tel"], .apply-side select { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--surface); width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sig-strong); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--red-soft); color: var(--on-red-soft); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.done { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 48px 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 720px; margin-top: 24px; }

/* 일반 목록 */
.post-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.post-list a { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); }
.post-list a:hover { border-color: var(--sig-strong); color: var(--ink); }
.post-list .t { font-size: 20px; font-weight: 700; line-height: 1.45; }
.pager { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 520px) {
  .hero .wrap { padding-block: 40px 48px; }
  .qa-panel { padding: 20px; }
  .bubble { max-width: 100%; }
  .cta-band { padding: 32px 24px; }
  .res-count { text-align: left; }
}

/* 0.2.2 캐피탈 모음 · 비슷한 질문 */
.names-hubs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; }
.names-hubs a { color: var(--sig-strong); font-weight: 700; }
.side-list li small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cap-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 14px; }
.cap-head .stat { font-weight: 800; font-size: 18px; }
.cap-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cap-grid a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); }
.cap-grid a:hover { border-color: var(--sig-strong); }
.cap-grid strong { display: block; font-size: 18px; }
.cap-grid span { font-size: 14px; color: var(--muted); }

/* ===== 0.3.0 홈·질문 페이지 개편 ===== */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* 첫 화면 */
.hero-v2 .wrap { align-items: flex-start; padding-block: 56px 48px; }
.hero-v2 .hero-copy { gap: 18px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--sig-strong); }
.hero-v2 h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.08; }
.hero-v2 .lead { font-size: 18px; max-width: 30em; }
.hero-v2 .lead strong { color: var(--ink); }
.search-xl { max-width: 680px; position: relative; }
.search-xl input { height: 64px; font-size: 18px; border-width: 3px; }
.search-xl button { height: 64px; padding: 0 30px; font-size: 18px; }
.hero-results { max-width: 680px; background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 16px 36px var(--shadow); overflow: hidden; margin-top: -6px; }
.hero-results ul { list-style: none; margin: 0; padding: 6px; }
.hero-results li a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.hero-results li a:hover, .hero-results li a:focus-visible { background: var(--bg); }
.hero-results svg { flex: 0 0 auto; margin-top: 2px; }
.hr-q { display: block; font-weight: 700; line-height: 1.4; }
.hr-a { display: block; font-size: 14px; font-weight: 700; color: var(--on-ok); margin-top: 2px; }
.hr-a.none { color: var(--red); }
.hr-msg { margin: 0; padding: 16px 18px; color: var(--muted); }
.hr-more { display: block; padding: 14px 18px; border-top: 1px solid var(--line); font-weight: 700; color: var(--sig-strong); text-decoration: none; }
.pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 680px; }
.pop-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.pop-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.pop-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--sig-soft); }
.hero-v2 .hero-art { gap: 14px; }
.stat-board { padding: 24px 28px 26px; }
.stat-rows { margin: 18px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.stat-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--board-2); }
.stat-rows dt { color: var(--on-board-muted); font-size: 15px; font-weight: 600; }
.stat-rows dd { margin: 0; color: var(--on-board); font-size: 16px; font-weight: 700; }
.stat-rows b { font-size: 40px; line-height: 1; color: var(--led); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-right: 4px; }
.stat-board .led-line { min-height: 0; font-size: 18px; margin-top: 10px; }

/* 상황별 카테고리 탭 */
.topic-tabs { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.topic { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.topic:hover { border-color: var(--ink); color: var(--ink); }
.topic[aria-selected="true"], .topic[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.topic-no { font-size: 13px; font-weight: 800; color: var(--sig-strong); }
.topic[aria-selected="true"] .topic-no, .topic[aria-current="page"] .topic-no { color: var(--sig); }
.topic b { font-size: 12px; font-weight: 700; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); text-align: center; }
.topic[aria-selected="true"] b, .topic[aria-current="page"] b { background: var(--board-2); color: var(--sig); }
.topic.is-empty { color: var(--faint); }

/* 질문 카드 */
.qcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.qcards[aria-busy="true"] { opacity: 0.5; }
.qcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; text-decoration: none; color: var(--ink); }
.qcard:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 8px 22px var(--shadow); }
.qcard-top { display: flex; align-items: center; gap: 8px; }
.qcard-verdict { font-size: 14px; font-weight: 800; color: var(--on-ok); }
.qcard.is-no .qcard-verdict { color: var(--red); }
.qcard-q { font-size: 17px; font-weight: 700; line-height: 1.45; }
.qcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--on-ok); }
.mini-chip em { font-style: normal; font-weight: 600; font-size: 11px; opacity: 0.85; }
.mini-chip.maybe { background: var(--sig-soft); color: var(--on-sig); }
.mini-chip.no { background: var(--red-soft); color: var(--on-red-soft); }
.mini-more { font-size: 13px; font-weight: 700; color: var(--muted); align-self: center; }
.qcards-more { margin-top: 18px; text-align: center; }
.qcards-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* 캐피탈 띠 */
.cap-band { padding-top: 48px; }

/* 질문 페이지 */
.qpage .q-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; margin-top: 10px; }
.answer-card { margin-top: 20px; background: var(--surface); border: 3px solid var(--ink); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.answer-card.is-yes { box-shadow: 8px 8px 0 var(--sig); }
.answer-card.is-no { border-color: var(--red); box-shadow: 8px 8px 0 var(--red-soft); }
.answer-head { display: flex; align-items: center; gap: 10px; }
.answer-head svg { width: 32px; height: 32px; flex: 0 0 auto; }
.answer-verdict { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.answer-verdict small { font-size: 15px; font-weight: 700; color: var(--muted); }
.is-no .answer-verdict { color: var(--red); }
.answer-short { margin: 0; font-size: 17px; line-height: 1.6; }
.answer-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.answer-meta span + span::before { content: "·"; margin-right: 14px; color: var(--faint); }
.quick { margin-top: 22px; background: var(--board); color: var(--on-board); border-radius: 22px; padding: 24px; }
.quick h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--on-board); }
.quick-sub { margin: 6px 0 0; font-size: 15px; color: var(--on-board-muted); }
.quick-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: flex-end; }
.quick-fields label { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--on-board-muted); }
.quick-fields input { height: 54px; border-radius: 12px; border: 2px solid transparent; padding: 0 14px; font-size: 17px; background: var(--surface); color: var(--ink); }
.quick-fields input:focus { outline: none; border-color: var(--sig); }
.quick-fields .btn { flex: 1 1 200px; min-height: 54px; font-size: 17px; }
.sub-h { margin: 40px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.qpage .entry { margin-top: 12px; }
.hub-links ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hub-links a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hub-links a:hover { border-color: var(--ink); color: var(--ink); }
.hub-links span { font-size: 14px; color: var(--sig-strong); font-weight: 700; }
.side-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }

/* 모바일 하단 고정 상담 버튼 */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); transition: transform 0.2s; }
  .sticky-cta .btn { width: 100%; min-height: 54px; font-size: 17px; }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 76px; }
  .hero-v2 .wrap { padding-block: 32px 32px; gap: 28px; }
  .search-xl input, .search-xl button { height: 56px; }
  .search-xl button { flex: 1 1 100%; }
  .answer-card { padding: 20px; box-shadow: 5px 5px 0 var(--sig); }
  .qpage .side { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

@media (max-width: 760px) {
  header.top .wrap { flex-wrap: nowrap; gap: 14px; padding-block: 8px; }
  .logo span { font-size: 22px; }
  .logo svg { width: 30px; height: auto; }
  nav.main { display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; white-space: nowrap; font-size: 15px; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
  nav.main::-webkit-scrollbar { display: none; }
  .top-cta { display: none !important; }
  .name-chip { font-size: 15px; padding: 6px 10px; min-height: 40px; gap: 6px; }
  .qcards { grid-template-columns: 1fr; }
}

.pop-n { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* 첫 화면 메시지: 광고 → 막상 상담 → 내차례 */
.why { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.why-row { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 17px; color: var(--muted); }
.why-tag { flex: 0 0 auto; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.why-ad .why-say { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.why-real .why-say { color: var(--red); font-weight: 700; }
.why-nc { margin: 6px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink); }
.why-nc strong { font-weight: 800; background: linear-gradient(transparent 60%, var(--sig) 60%, var(--sig) 92%, transparent 92%); }
.why-kicker { margin: 4px 0 -8px; font-size: 20px; font-weight: 800; color: var(--ink); }
.hero-v2 h1 { margin-top: 0; }
.logo { flex: 0 0 auto; white-space: nowrap; }
/* 첫 화면 칩: 한 줄로만 (넘치면 옆으로 밀어서 보기) */
.pop-hero { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pop-hero::-webkit-scrollbar { display: none; }
.pop-hero .pop-chip, .pop-hero .pop-label { flex: 0 0 auto; white-space: nowrap; }
