/* BBG론 대부중개 — "중개 구조를 먼저 보여주는 안내판" 디자인
   차콜 슬레이트 + 번트 오렌지 + 쿨 그레이, 상단 가로 메뉴, 고딕 굵은 제목 + 고정폭 숫자·라벨.
   외부 웹폰트·이미지 없음(시스템 글꼴만).
   브레이크포인트: 1100px(가로 메뉴 → 내려오는 패널), 760px(2단 → 1단), 480px(작은 휴대폰). */

:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --ink: #1d2027;
  --ink-soft: #4b5160;       /* 흰 배경 대비 8.0:1 */
  --night: #1f2633;          /* 헤더·히어로·푸터 */
  --night-2: #2a3242;
  --on-night: #ffffff;
  --on-night-soft: #cbd2dc;  /* night 대비 10.6:1 */
  --accent: #c2410c;         /* 흰 글자 대비 5.2:1 */
  --accent-dark: #9a3412;    /* 흰 배경 대비 7.3:1 */
  --accent-light: #fdba74;   /* night 대비 9.4:1 (어두운 배경 위 강조) */
  --warn: #b42318;           /* 흰 배경 대비 6.5:1 */
  --warn-bg: #fdf2f1;
  --line: #d5d8de;
  --tbd-bg: #fff1b8;

  --font-sans: "Segoe UI", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", "Courier New", monospace;

  --bar-height: 64px;
  --gutter: 32px;
  --content-max: 1120px;
  --radius: 10px;
  --btn-shadow: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 상단 sticky 헤더 아래로 포커스·앵커가 숨지 않게 */
  scroll-padding-top: calc(var(--bar-height) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

/* 전화번호가 줄 중간에서 끊기지 않게 */
a[href^="tel:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sep {
  margin: 0 4px;
  opacity: 0.6;
}

/* ---------- 자리표시(미확정 업체 정보) ---------- */
.tbd {
  background: var(--tbd-bg);
  color: var(--ink);
  border-bottom: 1px dashed var(--ink-soft);
  padding: 0 0.25em;
  font-weight: 700;
  border-radius: 3px;
}

/* ---------- 스킵 링크 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent-light);
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
  color: var(--ink);
}

/* ---------- 상단 가로 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--night);
  color: var(--on-night);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--bar-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header :focus-visible {
  outline-color: var(--accent-light);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-night);
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--on-night);
}

.wordmark-mark {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.wordmark-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.menu-toggle {
  display: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-menu {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.nav-menu a {
  display: block;
  padding: 8px 10px;
  color: #e5e8ee;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

.nav-menu a:hover {
  color: #fff;
  background: var(--night-2);
}

.nav-menu a[aria-current="page"] {
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--accent-light);
  border-radius: 6px 6px 0 0;
}

/* 패널 전용 정보(1100px 이상에서는 숨김) */
.nav-contact,
.nav-foot {
  display: none;
}

.header-cta {
  --btn-shadow: var(--accent-light);
  min-height: 40px;
  padding: 6px 16px;
  font-size: 15px;
  flex-shrink: 0;
}

.callbar {
  display: none;
}

/* ---------- 버튼: 8px 모서리 + 딱딱한 오프셋 그림자 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--btn-shadow);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--btn-shadow);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--btn-shadow);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  --btn-shadow: rgba(255, 255, 255, 0.35);
  background: transparent;
  border-color: var(--on-night);
  color: var(--on-night);
}

.btn-ghost:hover {
  color: var(--on-night);
  background: var(--night-2);
}

.btn[disabled] {
  cursor: not-allowed;
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-soft);
  box-shadow: none;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.text-link {
  font-weight: 800;
}

/* ---------- 레이아웃 ---------- */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.block-title {
  position: relative;
  padding-left: 18px;
  font-size: 28px;
}

.section-head h2::before,
.block-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.block-title {
  font-size: 22px;
  margin-bottom: 14px;
}

.section-sub {
  margin-top: 8px;
  color: var(--ink-soft);
}

.section-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.section-foot-end {
  justify-content: flex-end;
}

.caption {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- 메인 히어로: 어두운 띠 + 겹쳐 올라오는 정보 시트 ---------- */
.hero-band {
  background: var(--night);
  color: var(--on-night);
  padding: 56px 0 128px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: 40px;
  line-height: 1.25;
  color: var(--on-night);
}

.hero-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--on-night-soft);
}

.hero-sub strong {
  color: var(--on-night);
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .btn-accent {
  --btn-shadow: var(--accent-light);
}

/* 3자 관계도: 고객 → 중개업체 → 대부업체 */
.flow {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 26px;
}

.flow li {
  position: relative;
  padding: 14px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: var(--night-2);
}

.flow li + li::before {
  content: "↓";
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1;
  color: var(--on-night-soft);
}

.flow-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
}

.flow p {
  font-weight: 700;
  color: var(--on-night);
}

.flow .flow-me {
  border: 2px solid var(--accent-light);
  background: rgba(253, 186, 116, 0.12);
}

.hero-sheet {
  margin-top: -88px;
  position: relative;
}

.ad-info {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--accent);
  padding: 24px 28px 28px;
}

.ad-info h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.sheet-sub {
  margin: 22px 0 10px;
  font-size: 16px;
  color: var(--accent-dark);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tiles-wide {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
}

.tiles > div {
  padding: 10px 14px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.tiles dt {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
}

.tiles dd {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 경고 3문장 */
.warning-box {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 5px solid var(--warn);
  border-radius: 0 8px 8px 0;
  background: var(--warn-bg);
  font-size: 15px;
  line-height: 1.6;
}

.warning-box strong {
  color: var(--warn);
}

/* 금리·총비용 예시의 괄호 단서: 크기는 그대로(모바일 14px 이상), 굵기·색만 낮춤 */
.cond-note {
  font-size: inherit;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ---------- 중개업체가 하는 일 / 하지 않는 일 ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.role-card h3 {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
}

.role-card-not h3 {
  background: var(--accent-dark);
}

.mark-list {
  list-style: none;
  padding: 0;
}

.mark-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-top: 1px dashed var(--line);
}

.mark-list li:first-child {
  border-top: 0;
}

.mark-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 8px;
  font-weight: 800;
  color: var(--ink);
}

.role-card-not .mark-list li::before {
  content: "✕";
  color: var(--accent-dark);
}

.no-fee-statement {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night);
  border-left: 8px solid var(--accent-light);
  font-size: 20px;
  font-weight: 800;
}

/* ---------- 대부업체 조건 요약 ---------- */
.terms > div {
  display: grid;
  grid-template-columns: minmax(8em, 12em) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}

.terms > div:last-child {
  border-bottom: 0;
}

.terms dt {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-soft);
}

.terms dd {
  font-size: 17px;
  font-weight: 800;
}

.terms-card {
  padding: 8px 24px;
}

/* ---------- 4단계 ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.steps li {
  position: relative;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li + li::before {
  content: "→";
  position: absolute;
  left: -17px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--accent-dark);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.steps h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.steps p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- FAQ (details, JS 없음) ---------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.faq-item[open] {
  border-color: var(--ink);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 17px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--accent);
}

.faq-q {
  font-family: var(--font-mono);
  color: var(--accent-dark);
  margin-right: 8px;
}

.faq-a {
  padding: 0 18px 18px;
}

/* ---------- 대출 시 주의사항 ---------- */
.caution-lead {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.caution-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.caution-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--line);
}

.caution-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

/* ---------- 상담 신청 띠 ---------- */
.apply-cta {
  background: var(--accent);
  color: #fff;
  padding: 48px 0;
}

.apply-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.apply-cta h2 {
  font-size: 26px;
}

.apply-cta p {
  margin-top: 6px;
}

.cta-phone {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.apply-cta .btn {
  border-color: var(--ink);
}

.apply-cta :focus-visible {
  outline-color: #fff;
}

/* ---------- 하위 페이지 머리 ---------- */
.page-head {
  background: var(--night);
  color: var(--on-night);
  padding: 40px 0 44px;
}

.crumb {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--on-night-soft);
  margin-bottom: 8px;
}

.page-head h1 {
  font-size: 34px;
  color: var(--on-night);
}

.page-head .lead {
  margin-top: 10px;
  max-width: 46em;
  color: #dfe3ea;
  font-size: 17px;
}

.page-head :focus-visible {
  outline-color: var(--accent-light);
}

.page-head a {
  color: var(--accent-light);
}

.page-head a:hover {
  color: #fff;
}

.page-body {
  padding-top: 40px;
  padding-bottom: 64px;
}

.page-body > * + * {
  margin-top: 28px;
}

/* ---------- 표 (업체소개·중개상품) ---------- */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.info-table caption {
  text-align: left;
  font-weight: 800;
  font-size: 20px;
  padding-bottom: 12px;
}

.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 30%;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}

.info-table td {
  font-weight: 700;
}

.notice-line {
  padding: 14px 18px;
  border-radius: 8px;
  border: 1.5px dashed var(--ink-soft);
  background: var(--surface);
  font-weight: 700;
}

.plain-note {
  color: var(--ink-soft);
  font-size: 15px;
}

/* 중개 상품 칩 (링크·버튼 아님) */
/* 사용자 지시(2026-10-05): 마지막 줄에 빈 칸 없이 꽉 차게 → flex 줄바꿈 + 남는 폭을 나눠 가짐 */
.category-grid {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-grid li {
  flex: 1 1 9.5em;
  text-align: center;
  padding: 7px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.category-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
}

/* ---------- 이용절차 ---------- */
.timeline {
  list-style: none;
  padding: 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0 18px;
  padding-bottom: 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.timeline li:last-child::before {
  display: none;
}

.timeline .step-num {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  font-size: 18px;
}

.timeline h2 {
  font-size: 21px;
  padding-top: 12px;
  margin-bottom: 6px;
}

.closing {
  font-weight: 800;
  font-size: 19px;
}

/* ---------- 이용안내·유의사항 ---------- */
.notice-card h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.notice-card > * + * {
  margin-top: 14px;
}

.cond-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-dark);
}

.notice-card > .cond-label {
  margin-top: 20px;
}

.notice-card > .cond-label + .conditions {
  margin-top: 6px;
}

.conditions {
  padding: 14px 18px;
  border-left: 5px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--bg);
  line-height: 1.9;
}

/* ---------- 개인정보 처리방침 ---------- */
.policy {
  list-style: none;
  padding: 0;
}

.policy > li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.policy h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.policy h2 .num {
  color: var(--accent-dark);
  margin-right: 8px;
}

.policy ul {
  padding-left: 1.2em;
}

.policy li li + li {
  margin-top: 4px;
}

/* ---------- 상담신청 ---------- */
.endpoint-notice {
  padding: 16px 20px;
  border: 2px solid var(--warn);
  border-radius: var(--radius);
  background: var(--warn-bg);
}

.endpoint-notice h2 {
  font-size: 19px;
  color: var(--warn);
  margin-bottom: 6px;
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}

.apply-panel {
  grid-column: 2;
  grid-row: 1;
}

.apply-panel h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.apply-panel .terms > div {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.apply-panel .terms dd {
  font-size: 15px;
}

.apply-form-col {
  grid-column: 1;
  grid-row: 1;
}

.field + .field {
  margin-top: 20px;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.req {
  color: var(--warn);
  font-size: 14px;
  margin-left: 4px;
}

.opt {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 14px;
  margin-left: 4px;
}

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px; /* iOS 입력 확대 방지 */
  line-height: 1.5;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* input[type=…] 기본 규칙(0,2,1)보다 구체적이어야 이름·휴대전화 칸에도 적용된다 */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--warn);
  border-width: 2px;
}

.help {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.memo-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.memo-count {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.field-error {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--warn);
}

.consents {
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.consent + .consent {
  margin-top: 14px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent details {
  margin: 6px 0 0 32px;
  font-size: 15px;
}

.consent summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 700;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.consent-body {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.consent-body p + p {
  margin-top: 4px;
}

.consent .field-error {
  margin-left: 32px;
}

.form-summary {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-left: 5px solid var(--warn);
  background: var(--warn-bg);
  font-weight: 700;
  color: var(--warn);
}

.form-actions {
  margin-top: 24px;
}

.form-actions .btn {
  width: 100%;
}

.form-status:not(:empty) {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 5px solid var(--ink);
  background: var(--bg);
  font-weight: 700;
}

.form-success {
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-success h2 {
  font-size: 21px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.receipt {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.noscript-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 5px solid var(--warn);
  background: var(--surface);
  font-weight: 700;
}

/* 허니팟: 화면 밖 배치 (인라인 스타일 금지 → 클래스) */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 법정 표기 푸터 (어두운 바탕) ---------- */
.legal-footer {
  background: var(--night);
  color: #d6dbe3;
  padding: 40px 0 36px;
  font-size: 15px;
}

.legal-footer a {
  color: var(--accent-light);
}

.legal-footer a:hover {
  color: #fff;
}

.legal-footer :focus-visible {
  outline-color: var(--accent-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px 48px;
}

.legal-footer p + p {
  margin-top: 4px;
}

.legal-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.legal-footer .no-fee {
  padding-left: 12px;
  border-left: 4px solid var(--accent-light);
  color: #fff;
  font-weight: 800;
}

.legal-footer .footer-rate {
  margin-top: 12px;
}

.legal-footer .cond-note {
  color: var(--on-night-soft);
}

.legal-footer .legal-notice {
  margin-top: 14px;
}

.legal-footer .legal-notice strong {
  color: #fff;
}

.legal-footer .warning-box {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.07);
  border-left-color: #f87171;
  color: #e9ecf1;
}

.legal-footer .warning-box strong {
  color: #fca5a5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.legal-footer .footer-bottom p {
  margin-top: 0;
}

.legal-links {
  font-weight: 700;
}

.legal-copy {
  color: #aab2bf;
  font-size: 14px;
}

/* =========================================================
   1100px 미만 — 가로 메뉴 → 위에서 내려오는 패널, 하단 고정 상담 바
   ========================================================= */
@media (max-width: 1099.98px) {
  :root {
    --bar-height: 56px;
    --gutter: 24px;
  }

  /* 포커스 가림 방지(WCAG 2.4.11): 상단 sticky 헤더·하단 고정 바 아래로 숨지 않게 */
  html {
    scroll-padding-top: calc(var(--bar-height) + 8px);
    scroll-padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  body {
    padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px));
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 64px;
    padding: 6px 14px;
    border: 2px solid var(--on-night);
    border-radius: 8px;
    background: transparent;
    color: var(--on-night);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--on-night);
    color: var(--night);
  }

  .site-nav {
    display: none;
    position: fixed;
    top: calc(var(--bar-height) + 3px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    overflow-y: auto;
    padding: 12px var(--gutter) 32px;
    background: var(--night);
  }

  .menu-open .site-nav {
    display: block;
  }

  .nav-menu {
    display: block;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .nav-menu a {
    padding: 14px 4px;
    font-size: 18px;
    border-radius: 0;
  }

  .nav-menu a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--accent-light);
    padding-left: 14px;
    border-radius: 0;
  }

  .nav-contact {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .nav-contact dt {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--on-night-soft);
  }

  .nav-contact dd {
    font-weight: 800;
    color: var(--on-night);
  }

  .nav-contact a {
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 18px;
  }

  .nav-foot {
    display: block;
    margin-top: 20px;
    font-size: 15px;
  }

  .nav-foot a {
    color: var(--accent-light);
  }

  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 3fr 2fr; /* 전화(번호 포함) 넓게, 상담 신청 좁게 */
    height: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--night);
    border-top: 3px solid var(--accent);
  }

  .callbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  .callbar-call {
    background: var(--night);
    color: #fff;
  }

  .callbar-call:hover {
    color: #fff;
    background: var(--night-2);
  }

  .callbar-label {
    font-size: 14px;
    color: var(--accent-light);
  }

  .callbar-num {
    font-family: var(--font-mono);
    font-size: 16px;
    white-space: nowrap;
  }

  .callbar-apply {
    background: var(--accent);
    color: #fff;
    font-size: 17px;
  }

  .callbar-apply:hover {
    color: #fff;
    background: var(--accent-dark);
  }

  .callbar :focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 26px;
  }

  .flow li + li::before {
    content: "→";
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps li + li::before {
    display: none;
  }
}

/* =========================================================
   760px 미만 — 1단
   ========================================================= */
@media (max-width: 759.98px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  .hero-band {
    padding: 28px 0 88px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-sub {
    font-size: 15px;
    margin-top: 10px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .flow li {
    padding: 10px 14px;
  }

  .flow li + li::before {
    content: "↓";
    left: 50%;
    top: -19px;
    transform: translateX(-50%);
    font-size: 15px;
  }

  .hero-sheet {
    margin-top: -60px;
  }

  .ad-info {
    padding: 16px;
    box-shadow: 4px 4px 0 var(--accent);
  }

  .ad-info h2 {
    font-size: 18px;
  }

  .tiles,
  .tiles-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .tiles > div {
    padding: 8px 12px;
  }

  .warning-box {
    font-size: 14px;
    padding: 10px 12px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .card {
    padding: 16px;
  }

  .terms-card {
    padding: 4px 16px;
  }

  .terms > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 0;
  }

  .role-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .no-fee-statement {
    font-size: 17px;
    padding: 14px 16px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .steps li {
    padding: 14px 16px;
  }

  .faq-item summary {
    font-size: 16px;
    padding: 12px 14px;
  }

  .faq-a {
    padding: 0 14px 14px;
  }

  .caution-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply-cta {
    padding: 36px 0;
  }

  .apply-cta h2 {
    font-size: 22px;
  }

  .apply-cta .btn {
    flex: 1 1 100%;
  }

  .page-head {
    padding: 26px 0 28px;
  }

  .page-head h1 {
    font-size: 27px;
  }

  .page-head .lead {
    font-size: 15px;
  }

  .page-body {
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
  }

  .info-table th {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .info-table td {
    padding-top: 2px;
  }

  /* 320px 폭에서도 2열: 칸 = (320 - 여백 32 - 카드 안쪽 32 - 테두리 4 - 간격 8) / 2 = 122px
     ≥ 가장 긴 7글자 × 14px + 좌우 여백 20px + 테두리 3px = 121px */
  .category-grid li {
    flex-basis: calc(50% - 4px);
    font-size: 14px;
    padding: 7px 10px;
  }

  .timeline li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 14px;
  }

  .timeline li::before {
    left: 21px;
    top: 44px;
  }

  .timeline .step-num {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .timeline h2 {
    font-size: 18px;
    padding-top: 8px;
  }

  .apply-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .apply-panel,
  .apply-form-col {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-footer {
    font-size: 14px;
    padding: 32px 0 28px;
  }
}

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ---------- 대출후기 (사용자 제공 캡처, 2026-10-05) ---------- */
.review-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  align-items: start;
}

.review-item figure {
  margin: 0;
}

/* 영상 기본: 9:16 녹화본(폰 목업은 영상 안에 있음, 후기 목록 안에서는 아래 영상 카드 규칙이 흰 여백을 잘라 냄). 로딩 전 배경 = 첫 화면 대화 배경색 #abc0d1. */
.material-video {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #abc0d1;
}

/* 사진 폰 화면(figure·확대 링크): 9:16 창. 캡처는 화면 폭에 꽉 맞추고(폭 100%, 높이는 원본 비율, 자르지 않음) 가독성을 우선한다(사용자 변경 3, 2026-10-05).
   화면보다 짧은 캡처는 세로 가운데 + 여백 #abc0d1(메신저 캡처 배경 픽셀값), 긴 캡처는 위에서 시작해 js/ticker.js 가 머무는 동안 천천히 아래로 스크롤한다. */
.ticker-list > li > figure,
.material-zoom {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 11% / 6.2%;
  background: #abc0d1;
}

.review-item img,
.material-zoom img {
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: auto 0;
  padding: 0;
  border: 0;
}

.review-item figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

#summary-reviews .notice-line {
  margin-top: 20px;
}

/* ---------- 후기 폰 프레임 자동 전환 (js/ticker.js) ----------
   카드가 제자리에 고정되고 몇 초마다 다음 묶음으로 크로스페이드(영상 묶음 → 사진 묶음 → 처음).
   한 번에 보이는 카드 수 = --ticker-cols(640px 미만 1장, 이상 2장, 사용자 결정 9). JS 가 이 값을 읽어 묶음을 만든다.
   페이드·캡처 스크롤은 Web Animations API 라 위의 전역 prefers-reduced-motion 규칙(CSS transition·animation 끔)과 무관하게 동작한다(사용자 결정 2026-10-05).
   JS 가 없으면 2열 격자에 모든 항목이 정지 상태로 보인다(긴 캡처는 화면 안에서 직접 스크롤).
   폰 프레임은 이미지 파일 없이 CSS 만: 사진 카드 li = 베젤, 안의 figure·확대 링크 = 화면. 영상 카드는 프레임 없음(녹화본에 목업이 있음).
   가독성 우선(변경 3·5·9): 카드는 최대한 크게 — 모바일은 1장 + 좌우로 12px 넓힘, PC 는 사진 폰 최대 350px·영상 카드 최대 420px.
   세로 상한: 사진 폰 높이 ≤ 화면 높이 약 75%(폭 ≤ 41.5vh), 영상 카드 높이 ≤ 약 90%(폭 ≤ 44vh, 640px 미만은 상단·하단 바 사이 높이). */
.ticker {
  --ticker-cols: 1;
  --phone-max: 350px;
  --video-max: 420px;
  --ticker-gap: 8px;
  --ticker-bleed: 12px;
  --bezel-y: 5.5%;
  --bezel-x: 2.5%;
  --phone-bezel: var(--night);
  --phone-edge: var(--ink-soft);
  --phone-detail: rgba(255, 255, 255, 0.22);
  --phone-shadow: 0 12px 28px rgba(31, 38, 51, 0.24), 0 2px 6px rgba(31, 38, 51, 0.12);
  width: calc(100% + var(--ticker-bleed) * 2);
  max-width: calc(var(--video-max) * 2 + var(--ticker-gap));
  min-width: 0;
  margin: 16px auto 0;
  margin-inline: calc(var(--ticker-bleed) * -1);
}

/* JS 없음: 모든 폭 2열 격자(정지). */
.review-list.ticker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ticker-gap);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 베젤: % 패딩·모서리는 폭 기준이라 폰 크기에 비례(위아래 --bezel-y, 좌우 --bezel-x). */
.ticker-list > li {
  position: relative;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: min(var(--phone-max), 41.5vh);
  padding: var(--bezel-y) var(--bezel-x);
  border: 1px solid var(--phone-edge);
  border-radius: 15% / 8.35%;
  background: var(--phone-bezel);
  box-shadow: var(--phone-shadow);
}

/* 상단 스피커(::before, 높이 = 폭 22% / 8)·카메라(::after): 위쪽 베젤 안 세로 가운데(화면을 가리지 않음). */
.ticker-list > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 22%;
  aspect-ratio: 8 / 1;
  margin-top: calc((var(--bezel-y) - 2.75%) / 2);
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--phone-detail);
}

.ticker-list > li::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% + 15%);
  width: 3.2%;
  aspect-ratio: 1;
  margin-top: calc((var(--bezel-y) - 3.2%) / 2);
  border-radius: 50%;
  background: var(--phone-detail);
}

/* 영상 카드: 녹화본 안에 이미 폰 목업이 있으므로 CSS 폰 프레임을 씌우지 않는다(사용자 변경 2026-10-05).
   녹화본(1080x1920)은 목업 좌우에 흰 여백이 있다(변경 4·5). 영상 파일은 그대로 두고 CSS 로 목업 외곽에 딱 맞게 잘라 낸다:
   ffmpeg 프레임 측정(7개 영상 모두 같음): 목업 x 68~1011·y 0~1919, 좌우 대칭, 바깥 모서리 반경 약 155px.
   바깥 12px(x 68~79, 위아래 0~11)은 밝은·회색 은색 테두리(RGB 183~235)라 흰/연회색 테두리처럼 보여 함께 잘라 낸다(사용자 보고 10).
   → 보이는 영역 x 80~999·y 12~1907 = 920x1896: 감싸개(li) 비율 920:1896 + overflow hidden + 모서리 150/920 · 150/1896,
   영상은 아래 규칙에서 위아래로 12px 씩 넘치게 키우고 cover 로 채움(좌우 80px 씩 잘림, controls 는 하단에 그대로). */
/* 세로 상한(640px 미만): 카드 높이 ≤ 화면 높이 − 상단 바 − 하단 고정 바(각 --bar-height) − 여백 20px
   → 재생바가 하단 바에 가리지 않는다(리뷰 2026-10-05). 폭 = 그 높이 × 920 / 1896. svh 미지원이면 vh 줄을 쓴다. */
.ticker-list > li:has(> .material-video) {
  max-width: min(var(--video-max), calc((100vh - var(--bar-height) * 2 - 20px) * 920 / 1896));
  max-width: min(var(--video-max), calc((100svh - var(--bar-height) * 2 - env(safe-area-inset-bottom, 0px) - 20px) * 920 / 1896));
  aspect-ratio: 920 / 1896;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16.3% / 7.91%;
  background: none;
  box-shadow: none;
}

.ticker-list > li:has(> .material-video)::before,
.ticker-list > li:has(> .material-video)::after {
  content: none;
}

/* 영상 요소 자체도 같은 모서리로 둥글게: 하단 controls 의 검은 그라데이션 띠가 목업 모서리 밖으로 나오지 않게. */
.ticker-list > li > .material-video {
  width: 100%;
  height: auto;
  aspect-ratio: 920 / 1920;
  margin-top: -1.304%; /* 위 12px(영상 기준) = 12 / 920 × 폭 */
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 50%;
}

/* 영상 확대 버튼(js/lightbox.js 가 만듦): 카드 위쪽을 덮는 투명 영역. 아래쪽 20% 는 비워 둬 controls(재생바)를 그대로 쓴다. */
.video-zoom {
  position: absolute;
  inset: 0 0 20% 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.video-zoom:focus-visible {
  outline: 3px solid var(--phone-edge);
  outline-offset: -3px;
}

.material-zoom {
  cursor: zoom-in;
}

/* JS 없음: 긴 캡처는 화면 안에서 직접 스크롤. */
.ticker:not(.is-running) .ticker-list > li > figure,
.ticker:not(.is-running) .material-zoom {
  overflow-y: auto;
}

/* JS 실행 시: 열 수 = --ticker-cols. 모든 항목을 같은 줄에 겹쳐 쌓고(칸은 JS 가 grid-column 으로 지정) 현재 묶음(is-active)만 보인다.
   줄 높이 = 가장 큰 카드 높이로 고정 → 묶음이 바뀌어도 영역 높이가 출렁이지 않는다.
   나가는 묶음(is-leaving)은 페이드가 끝날 때까지 보인 채 JS 가 opacity 1 → 0 으로 내린다. */
.ticker.is-running .review-list.ticker-list {
  grid-template-columns: repeat(var(--ticker-cols), minmax(0, 1fr));
}

.ticker.is-running .ticker-list > li {
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
}

.ticker.is-running .ticker-list > li.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.ticker.is-running .ticker-list > li.is-leaving {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

@media (min-width: 640px) {
  .ticker {
    --ticker-cols: 2;
    --ticker-gap: 20px;
    --ticker-bleed: 0px;
    --bezel-y: 8%;
    --bezel-x: 4%;
    margin-inline: auto;
  }

  /* 640px 이상: 영상 카드 높이 ≤ 화면 높이 약 90%(폭 ≤ 44vh). */
  .ticker-list > li:has(> .material-video) {
    max-width: min(var(--video-max), 44vh);
  }
}

/* 영상 확대 보기(js/lightbox.js 의 같은 dialog): 화면 높이에 맞춰 재생. */
.lightbox.is-video {
  width: auto;
}

.lightbox-video {
  display: block;
  width: auto;
  max-width: 100%;
  height: calc(94vh - 64px);
  margin: 0 auto;
  background: #ffffff;
}

/* 사진 확대 보기 (js/lightbox.js): 원본 크기(가로 1080px)까지, 화면이 좁으면 화면 폭에 맞춤. 비율은 원본 그대로 */
.lightbox {
  width: min(96vw, 1080px);
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.lightbox-title {
  margin: 0;
  font-weight: 700;
}

.lightbox-close {
  min-width: 48px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lightbox-img {
  display: block;
  width: 100%;
  height: auto;
}
