/* ===================================================================
   세상에 그런법이 어딨어요?  ·  경기도의회
   디자인 톤: 경기도의회(소원이) 따뜻한 분위기 + 신뢰감 있는 공공서비스
   =================================================================== */

:root {
  /* 따뜻한 메인 (경기도의회 오렌지) */
  --orange-600: #ec7211;
  --orange-500: #f5871f;
  --orange-400: #fb9d3e;
  --orange-100: #ffe9d2;
  --orange-50:  #fff5ec;

  /* 신뢰 보조 (블루) */
  --blue-900: #0a2a66;
  --blue-700: #1450c4;
  --blue-600: #1d63e8;
  --blue-100: #e7f0ff;
  --blue-50:  #f3f8ff;

  /* 신뢰 메인 (남색 네이비) — 주황과 함께 쓰는 두 번째 색 */
  --navy-900: #0b2a5b;
  --navy-700: #143b7a;
  --navy-600: #1c4fa0;
  --navy-100: #e6eefb;
  --navy-50:  #f2f6fd;

  /* 중성 */
  --ink-900: #1c1a17;
  --ink-700: #44403a;
  --ink-500: #756e64;
  --ink-300: #b6aea3;
  --line:    #ece6dd;
  --bg:      #ffffff;
  --bg-soft: #fbf8f3;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(60, 40, 10, .06), 0 1px 2px rgba(60, 40, 10, .04);
  --shadow-md: 0 10px 28px rgba(60, 40, 10, .09);
  --shadow-lg: 0 22px 50px rgba(60, 40, 10, .13);

  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  /* 한글 줄바꿈: 단어(어절)는 통째로 유지하고 띄어쓴 곳에서만 줄바꿈.
     아주 긴 링크 등은 안전하게 줄바꿈해 화면 밖으로 삐져나가지 않게. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--line); }
.brand-title { font-size: 16.5px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }

.top-nav { display: flex; gap: 24px; }
.top-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-700);
  padding: 6px 2px; transition: color .15s;
}
.top-nav a:hover { color: var(--navy-600); }

.beta-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: var(--navy-700); background: var(--navy-50);
  border: 1px solid var(--navy-100);
  padding: 3px 8px; border-radius: 999px;
}
.beta-badge.small { font-size: 10px; padding: 2px 7px; vertical-align: middle; }

/* ===== 1단 히어로 ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -12%, var(--orange-50), transparent 62%),
    radial-gradient(680px 320px at 88% 0%, #fff3e0, transparent 60%),
    var(--bg);
  padding: 80px 0 0;
  text-align: center;
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  display: inline-block; margin: 0 0 22px;
  font-size: 14px; font-weight: 700; color: var(--navy-700);
  background: var(--navy-50); border: 1px solid var(--navy-100);
  padding: 7px 16px; border-radius: 999px;
}
.hero-title {
  margin: 0; font-size: clamp(40px, 7vw, 66px); line-height: 1.14;
  font-weight: 800; letter-spacing: -0.03em; color: var(--ink-900);
}
.hero-answer {
  margin: 18px 0 0; font-size: clamp(24px, 3.8vw, 34px); font-weight: 800;
  color: var(--ink-900); letter-spacing: -0.02em;
}
.hero-answer mark {
  background: linear-gradient(transparent 55%, var(--orange-400) 55% 94%, transparent 94%);
  color: var(--ink-900);
  padding: 0 4px; border-radius: 2px;
}

/* 경기도의회가 알려드립니다 — 주체 강조 */
.hero-byline {
  margin: 30px 0 0;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--navy-100);
  box-shadow: var(--shadow-sm);
}
.hero-byline .byline-logo { height: 26px; width: auto; display: block; }
.hero-byline span {
  font-size: clamp(19px, 2.7vw, 23px); font-weight: 800;
  color: var(--ink-900); letter-spacing: -0.02em;
}

.ai-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-500); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(245, 135, 31, .5);
  animation: aiPulse 1.8s infinite;
}
@keyframes aiPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 135, 31, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(245, 135, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 135, 31, 0); }
}

.hero-sub {
  margin: 26px auto 0; max-width: 600px;
  font-size: 17px; color: var(--ink-700);
}

/* ===== 2단 임베드 챗봇 ===== */
.chat-section { padding: 48px 0 8px; }
.chat-shell {
  display: grid; grid-template-columns: 232px 1fr; gap: 20px;
  align-items: stretch;
}

/* 왼쪽 소원이 — 채팅창과 같은 높이의 카드로 균형 맞춤 */
.chat-mascot {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 18px 14px;
  background:
    radial-gradient(150px 150px at 50% 40%, #fff, transparent 72%),
    linear-gradient(160deg, var(--orange-50), #fff 78%);
  border: 1px solid var(--orange-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
/* 박스 크기는 그대로 두고 소원이만 ~10% 크게(좌우로 살짝 넘치게) */
.chat-mascot img {
  width: calc(100% + 24px); max-width: none; height: auto; display: block;
  margin: 0 -12px; margin-top: 4px;
  filter: drop-shadow(0 16px 24px rgba(60, 40, 10, .18));
}
.mascot-tag {
  font-size: 13px; font-weight: 700; color: var(--orange-600);
  background: #fff; border: 1px solid var(--orange-100);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 135, 31, .12);
}
/* 라벨 아래 남는 공간 — 상담 안내 미니 CTA */
.mascot-consult {
  flex: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 11px;
  text-align: center;
}
.mascot-consult .mc-title {
  margin: 0; font-size: 12.5px; font-weight: 800; color: #5b4a36; line-height: 1.5;
}
.mascot-consult .mc-btn {
  display: block; padding: 12px 12px; border-radius: 12px;
  background: var(--orange-500); color: #fff; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(245, 135, 31, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mascot-consult .mc-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245, 135, 31, .34);
}

/* 오른쪽 채팅창 */
.chat-window {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: #fff;
}
.chat-header-text { display: flex; flex-direction: column; gap: 3px; }
.chat-header-text strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.chat-header-text span { font-size: 13px; color: #fff; opacity: .92; }
.chat-timer {
  flex-shrink: 0; font-size: 14px; font-weight: 800;
  background: rgba(255, 255, 255, .2); color: #fff;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chat-timer.ending { background: rgba(255, 255, 255, .95); color: var(--navy-700); }

.chat-region {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.chat-region label { font-size: 13.5px; font-weight: 700; color: var(--ink-700); }
.chat-region select {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-900);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; max-width: 220px;
}
.chat-region select:focus { outline: 2px solid var(--navy-100); border-color: var(--navy-600); }
.region-hint { font-size: 12.5px; color: var(--ink-500); }

.chat-messages {
  flex: 1; min-height: 340px; max-height: 460px; overflow-y: auto;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  background:
    radial-gradient(520px 240px at 50% -40%, var(--orange-50), transparent 70%),
    #fff;
}

/* 말풍선 */
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background-color: var(--orange-50);
  background-repeat: no-repeat;
  background-position: center 3px;    /* 소원이 얼굴이 보이도록 위쪽 정렬 */
  background-size: 150%;
  border: 1px solid var(--orange-100);
}
.msg-bubble {
  font-size: 15px; line-height: 1.6; padding: 12px 16px;
  border-radius: 16px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word;
}
.msg-bot .msg-bubble {
  background: #fff; color: var(--ink-900);
  border: 1px solid var(--line); border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}
.msg-user .msg-bubble {
  background: var(--orange-500); color: #fff;
  border-bottom-right-radius: 5px;
}
.msg-bubble a { color: var(--blue-700); text-decoration: underline; font-weight: 600; }
.msg-user .msg-bubble a { color: #fff; }

/* 출처 */
.msg-sources {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.msg-sources .src-title { font-size: 12px; font-weight: 800; color: var(--ink-500); }
.msg-sources a {
  font-size: 13px; font-weight: 600; color: var(--blue-700);
  display: inline-flex; align-items: center; gap: 4px;
}

/* 예시 칩 */
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-chip {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--orange-600); background: var(--orange-50);
  border: 1px solid var(--orange-100); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: background .15s, transform .1s;
}
.chat-chip:hover { background: var(--orange-100); }
.chat-chip:active { transform: translateY(1px); }

/* 타이핑 표시 */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300);
  animation: typingBounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input {
  display: flex; gap: 10px; padding: 16px 18px;
  border-top: 1px solid var(--line); background: #fff;
}
.chat-input input {
  /* 16px 미만이면 iOS(아이폰·아이패드)가 포커스 시 화면을 강제 확대함 */
  flex: 1; font-family: inherit; font-size: 16px; color: var(--ink-900);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.chat-input input:focus {
  outline: none; border-color: var(--orange-400);
  box-shadow: 0 0 0 3px var(--orange-50);
}
.chat-input input:disabled { background: var(--bg-soft); color: var(--ink-300); }
.chat-input button {
  flex-shrink: 0; font-family: inherit; font-size: 15px; font-weight: 700;
  color: #fff; background: var(--orange-500); border: none;
  border-radius: 12px; padding: 0 22px; cursor: pointer;
  transition: background .15s, transform .1s;
}
.chat-input button:hover { background: var(--orange-600); }
.chat-input button:active { transform: translateY(1px); }
.chat-input button:disabled { background: var(--ink-300); cursor: not-allowed; }

.chat-privacy {
  margin: 0; padding: 12px 18px; font-size: 12.5px; line-height: 1.55;
  color: var(--ink-500); background: var(--bg-soft); border-top: 1px solid var(--line);
}
.chat-privacy b { color: var(--orange-600); }

.chat-disclaimer {
  margin: 18px auto 0; max-width: 760px; text-align: center;
  font-size: 13px; line-height: 1.6; color: var(--ink-500);
}
.chat-disclaimer a { color: var(--orange-600); font-weight: 700; text-decoration: underline; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange-500); color: #fff;
  box-shadow: 0 8px 20px rgba(245, 135, 31, .32);
}
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 10px 26px rgba(245, 135, 31, .42); }
.btn-ghost {
  background: #fff; color: var(--ink-900); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--orange-100); color: var(--orange-600); }

/* ===== 섹션 공통 ===== */
.section-head { text-align: center; margin: 84px 0 40px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin: 10px 0 0; color: var(--ink-500); font-size: 16px; }

/* ===== 4단 기능 카드 ===== */
.features { padding-bottom: 40px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.feature-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.feature-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md); border-color: var(--orange-100);
}
.feature-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 26px; background: var(--orange-50); border-radius: 14px; margin-bottom: 18px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.feature-card p { margin: 0; color: var(--ink-700); font-size: 15.5px; }
.feature-link {
  display: inline-block; margin-top: 18px;
  font-size: 15px; font-weight: 700; color: var(--orange-600);
}
.feature-link:hover { color: var(--orange-500); }
.feature-tag {
  display: inline-block; margin-top: 18px;
  font-size: 13px; font-weight: 700; color: var(--orange-600);
  background: var(--orange-50); padding: 5px 12px; border-radius: 999px;
}
.features-soon {
  margin: 36px 0 0; text-align: center;
  font-size: 14.5px; color: var(--ink-500);
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 16px;
}

/* ===== 빌드 예정 자리 ===== */
.placeholder {
  margin-top: 80px; padding: 56px 28px; text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius); scroll-margin-top: 84px;
}
.placeholder h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.placeholder p { margin: 0; color: var(--ink-500); }

/* ===== 3단 무료 상담 ===== */
.consult { padding-top: 8px; }
.consult-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.consult-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.consult-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100);
}
.consult-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 24px; background: var(--blue-50); border-radius: 14px; margin-bottom: 14px;
}
.consult-card h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 800; letter-spacing: -0.02em; }
.consult-card > p { margin: 0 0 14px; color: var(--ink-700); font-size: 14.5px; }
.consult-meta { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.consult-meta li { font-size: 14px; color: var(--ink-700); }
.consult-meta b { color: var(--ink-900); margin-right: 6px; }
.consult-meta a { color: var(--blue-700); font-weight: 700; }
.consult-link {
  margin-top: auto; font-size: 14.5px; font-weight: 700; color: var(--blue-700);
}
.consult-link:hover { color: var(--blue-600); }
.consult-note {
  margin: 26px 0 0; text-align: center; font-size: 13px; color: var(--ink-500);
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 14px;
}

/* ===== 4단 조례 이야기 ===== */
.columns { padding-top: 8px; }
.column-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.column-card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .22s, border-color .2s;
}
.column-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange-100);
}
.column-cover {
  position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center;
  overflow: hidden; background: var(--ink-100, #eee);
}
/* 카드 사진 — 무료 이미지(Unsplash, 출처표기 불필요) */
.column-cover::after {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: var(--cover-img);
  transition: transform .35s ease;
}
.column-card:hover .column-cover::after { transform: scale(1.06); }
/* 카테고리 라벨 가독성용 살짝 어두운 상단 그라데이션 */
.column-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.34), transparent 42%);
  pointer-events: none;
}
.column-cat {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  font-size: 12px; font-weight: 800; color: #fff;
  background: rgba(11, 42, 91, .55);
  padding: 5px 11px; border-radius: 999px;
}
.cover-a { --cover-img: url("card-apartment.jpg"); }
.cover-b { --cover-img: url("card-dog.jpg"); }
.cover-c { --cover-img: url("card-wedding.jpg"); }
.cover-d { --cover-img: url("card-parking.jpg"); }
/* 카드 높이가 달라도 조례명·구분선·의원 배지가 모든 카드에서 같은 줄에 오도록
   본문을 세로 flex로 만들고 남는 공간을 설명글과 조례명 사이에서 흡수 */
.column-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.column-body h3 { margin: 0 0 7px; font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.column-body p {
  margin: 0 0 14px; font-size: 13.5px; color: var(--ink-700); line-height: 1.55;
  display: flex; flex-direction: column; flex: 1;
}
/* '여기서 잠깐' — 조례 vs 법률 설명 박스 */
.law-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 24px; padding: 16px 18px;
  background: var(--navy-50, #f2f6fd);
  border: 1px solid var(--navy-100, #e6eefb);
  border-left: 4px solid var(--navy-700, #143b7a);
  border-radius: 12px;
}
.law-note-tag {
  flex: none; font-size: 13px; font-weight: 800;
  color: var(--navy-700, #143b7a); white-space: nowrap; padding-top: 1px;
}
.law-note p {
  margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-700, #444);
}
@media (max-width: 560px) {
  .law-note { flex-direction: column; gap: 6px; }
}

/* 카드 속 실제 조례명 */
.column-law {
  display: block; margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 800;
  color: var(--navy-900, #0b2a5b); line-height: 1.5;
}
.column-law::before { content: "📘 "; }
.column-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
/* 발의 의원 강조 (의원 홍보 핵심) */
.column-author {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--orange-600);
  background: var(--orange-50); border: 1px solid var(--orange-100);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.author-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500);
  display: inline-block; flex-shrink: 0;
}
.column-meta { font-size: 12px; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.columns-note {
  margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--ink-500);
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 16px;
}

/* ===== 네컷 조례 만화 ===== */
.comic { margin-top: 44px; }
.comic-head { text-align: center; margin-bottom: 18px; }
.comic-head h3 {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.comic-badge {
  font-size: 12.5px; font-weight: 800; color: var(--orange-600);
  background: var(--orange-50); border: 1px solid var(--orange-100);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.comic-head p { margin: 8px 0 0; color: var(--ink-500); font-size: 14.5px; }
.comic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.comic-panel {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.comic-panel img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.comic-panel figcaption {
  flex: 1; padding: 10px 12px 12px; font-size: 13px; line-height: 1.5;
  color: var(--ink-700); font-weight: 600;
}
.comic-no {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  margin-right: 6px; border-radius: 50%; background: var(--orange-500);
  color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px;
}
.comic-foot {
  margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-700);
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 14px;
}
.comic-soon { color: var(--ink-500); margin-left: 6px; white-space: nowrap; }
@media (max-width: 1000px) {
  .comic-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 조례 이야기 팝업(모달) ===== */
body.modal-open { overflow: hidden; }
.col-modal[hidden] { display: none; }
.col-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.col-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 42, 91, .42); backdrop-filter: blur(2px);
  animation: colFade .18s ease;
}
.col-modal-panel {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px;
  animation: colPop .2s cubic-bezier(.2, .8, .3, 1);
}
@keyframes colFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes colPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.col-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-500);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s;
}
.col-modal-close:hover { background: var(--orange-50); color: var(--orange-600); }
.col-modal-cat {
  display: inline-block; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--navy-700); padding: 5px 12px; border-radius: 999px;
}
.col-modal-title {
  margin: 12px 0 6px; font-size: 22px; font-weight: 800;
  line-height: 1.35; letter-spacing: -0.02em; color: var(--ink-900);
}
.col-modal-meta { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--ink-500); }
.col-lead { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--ink-700); }
.col-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.col-points li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 15px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.col-ico { flex: none; font-size: 20px; line-height: 1.4; }
.col-ptxt { flex: 1; min-width: 0; }
.col-ptxt b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink-900); margin-bottom: 3px; }
.col-ptxt span { font-size: 13.5px; line-height: 1.6; color: var(--ink-700); }
.col-ref {
  flex: none; align-self: flex-start; font-size: 11.5px; font-weight: 800;
  color: var(--navy-700); background: var(--navy-50);
  border: 1px solid var(--navy-100); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.col-tip {
  margin-top: 16px; padding: 15px 17px;
  background: var(--orange-50); border: 1px solid var(--orange-100);
  border-left: 4px solid var(--orange-500); border-radius: 12px;
}
.col-tip b { font-size: 13.5px; font-weight: 800; color: var(--orange-600); }
.col-tip p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-700); }
.col-modal-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
}
.col-foot-law { font-size: 13.5px; font-weight: 800; color: var(--navy-900); line-height: 1.5; }
a.col-foot-law:hover { color: var(--navy-600); text-decoration: underline; }
.law-link-hint {
  display: inline-block; font-size: 11px; font-weight: 800; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 1px;
}
.col-foot-author {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--orange-600);
  background: var(--orange-50); border: 1px solid var(--orange-100);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 560px) {
  .col-modal { padding: 0; align-items: flex-end; }
  .col-modal-panel {
    width: 100%; max-height: 92vh; padding: 26px 20px 22px;
    border-radius: 20px 20px 0 0;
    animation: colSheet .24s cubic-bezier(.2, .8, .3, 1);
  }
  .col-modal-title { font-size: 20px; }
  /* 근거조문은 신뢰의 핵심 — 숨기지 않고 설명 아래 줄로 내려서 표시 */
  .col-points li { flex-wrap: wrap; }
  .col-ref { order: 3; margin-left: 32px; }
}
@keyframes colSheet { from { transform: translateY(100%); } to { transform: none; } }

/* ===== 푸터 ===== */
.site-footer {
  margin-top: 96px;
  background: var(--blue-900); color: #c7d4ee;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 28px; flex-wrap: wrap;
  padding-top: 48px; padding-bottom: 44px;
}
.footer-disclaimer { max-width: 880px; margin: 0 auto; }
.footer-disclaimer h4 { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 800; }
.footer-disclaimer p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #aebdda; }
/* 각 문장을 한 행으로 — 문장 중간에서 줄바꿈되지 않게 */
.footer-disclaimer .fd-line { display: block; }
.footer-meta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { height: 26px; width: auto; opacity: .9; }
.footer-org { margin: 0; color: #fff; font-weight: 700; font-size: 14px; }
/* 법제과 법률자문관 강조 */
.footer-credit {
  margin: 0; font-size: 14px; color: #c7d4ee;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.footer-credit b {
  color: #fff; font-weight: 800; font-size: 15px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(245, 135, 31, .18); border: 1px solid rgba(245, 135, 31, .45);
}
.footer-copy { margin: 0; font-size: 12.5px; color: #8fa2c8; }

/* ===== 상담 안내 슬림 배너 ===== */
.consult-banner { margin-top: 56px; }
.consult-banner-inner {
  display: flex; flex-direction: column; gap: 20px;
  background: linear-gradient(135deg, var(--blue-50), #eef4ff);
  border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 26px 30px; box-shadow: var(--shadow-sm);
}
.consult-banner-text { display: flex; align-items: center; gap: 18px; min-width: 0; }
.consult-banner-icon {
  flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 26px; background: #fff; border: 1px solid var(--blue-100); border-radius: 14px;
}
.consult-banner-text h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.consult-banner-text p { margin: 0; font-size: 14.5px; color: var(--ink-700); }

/* 상담처 3버튼 — 가로 나란히, 균등 너비 */
.consult-banner-buttons { display: flex; gap: 12px; width: 100%; }
.consult-btn {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 16px 14px;
  background: #fff; border: 1px solid var(--blue-100); border-radius: 14px;
  color: var(--blue-700); font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(29, 99, 232, .08);
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.consult-btn:hover {
  background: var(--blue-600); color: #fff; border-color: var(--blue-600);
  transform: translateY(-2px); box-shadow: 0 10px 20px rgba(29, 99, 232, .26);
}
.consult-btn:active { transform: translateY(0); }
.consult-btn-emoji { font-size: 18px; flex-shrink: 0; }

.consult-banner-link {
  flex-shrink: 0; font-size: 15px; font-weight: 800; color: #fff;
  background: var(--blue-600); padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(29, 99, 232, .28); transition: background .15s, transform .1s;
}
.consult-banner-link:hover { background: var(--blue-700); }
.consult-banner-link:active { transform: translateY(1px); }

/* ===== 공감 스티커 (급식판처럼 소개된 조례에 꾹) ===== */
.sticker-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px;
  background: var(--orange-50); border: 1px dashed var(--orange-100);
  border-radius: var(--radius-sm);
}
.sticker-head {
  flex-basis: 100%; font-size: 12.5px; font-weight: 800; color: var(--orange-600);
}
.sticker-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--ink-700); background: #fff;
  border: 1.5px solid var(--orange-100); border-radius: 999px;
  cursor: pointer; transition: transform .12s, border-color .15s, background .15s;
}
.sticker-btn:hover { border-color: var(--orange-400); transform: translateY(-1px); }
.sticker-btn .st-emoji { font-size: 15px; }
.sticker-btn .st-count { font-weight: 800; color: var(--orange-600); font-variant-numeric: tabular-nums; }
.sticker-btn.done {
  background: var(--orange-100); border-color: var(--orange-400); cursor: default;
  color: var(--ink-900);
}
.sticker-btn.done:hover { transform: none; }
.sticker-btn.pop { animation: stickerPop .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes stickerPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-3deg); }
  100% { transform: scale(1); }
}
/* 카드 아래 컴팩트 스티커판 (칸 = 카드 + 스티커판 세로 배치) */
.column-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.column-cell .column-card { flex: 1; }
.sticker-bar.compact { margin-top: 0; padding: 8px 10px; gap: 6px; justify-content: center; }
.sticker-bar.compact .sticker-btn { font-size: 12px; padding: 6px 10px; gap: 4px; }
.sticker-bar.compact .st-emoji { font-size: 14px; }
@media (max-width: 560px) {
  .sticker-btn { font-size: 12.5px; padding: 8px 11px; }
  /* 좁은 화면에선 라벨을 줄이고 이모지+숫자 위주로 */
  .sticker-bar.compact .st-label { display: none; }
}

/* ===== 우리 의원이 만든 조례 ===== */
.members { margin-top: 8px; }
.member-search {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.member-search input {
  flex: 1 1 260px; max-width: 420px;
  padding: 12px 16px; font-size: 16px; font-family: inherit; color: var(--ink-900);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.member-search input:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100);
}
.member-stats { font-size: 13px; font-weight: 700; color: var(--ink-500); }
.member-search-btn {
  flex-shrink: 0; padding: 12px 22px; font-family: inherit; font-size: 15px; font-weight: 800;
  color: #fff; background: var(--navy-700); border: none; border-radius: 12px; cursor: pointer;
  transition: background .15s, transform .1s;
}
.member-search-btn:hover { background: var(--navy-600); }
.member-search-btn:active { transform: translateY(1px); }

/* 의원별 조례 팝업 내용 */
.mm-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden; background: #fff;
}
.mm-item summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; cursor: pointer; list-style: none;
}
.mm-item summary::-webkit-details-marker { display: none; }
.mm-item summary:hover { background: var(--bg-soft); }
.mm-item[open] summary { border-bottom: 1px solid var(--line); background: var(--navy-50); }
.mm-item summary b { font-size: 15px; font-weight: 800; color: var(--ink-900); }
.mm-meta { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-500); }
.mm-count {
  flex-shrink: 0; font-size: 11.5px; font-weight: 800; color: var(--navy-700);
  background: var(--navy-50); border: 1px solid var(--navy-100);
  padding: 2px 8px; border-radius: 999px;
}
.mm-item[open] .mm-count { background: #fff; }
.mm-bills { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.mm-bills li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 11px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
}
.mm-bills a { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--navy-900); }
.mm-bills a:hover { color: var(--navy-600); text-decoration: underline; }
.mm-info { flex-shrink: 0; font-size: 11.5px; color: var(--ink-500); white-space: nowrap; }
.mm-nobill, .mm-empty { margin: 0; padding: 14px; font-size: 13.5px; color: var(--ink-500); }
@media (max-width: 560px) {
  .mm-bills li { flex-direction: column; gap: 3px; }
}
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
  max-height: 380px; overflow-y: auto;
  padding: 14px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.member-chip {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  padding: 9px 12px; font-family: inherit; font-size: 13.5px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.member-chip:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.member-chip.on { border-color: var(--navy-600); background: var(--navy-50); }
.member-chip strong { font-weight: 800; color: var(--ink-900); white-space: nowrap; }
.member-chip .mc-district {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: var(--ink-500);
}
.member-chip .mc-count {
  flex-shrink: 0; font-size: 11.5px; font-weight: 800; color: var(--navy-700);
  background: var(--navy-50); border: 1px solid var(--navy-100);
  padding: 2px 7px; border-radius: 999px;
}
.member-empty { grid-column: 1 / -1; margin: 12px; text-align: center; color: var(--ink-500); font-size: 14px; }
.member-bills {
  margin-top: 14px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--navy-100); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.mb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mb-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.mb-meta { font-size: 13px; font-weight: 600; color: var(--ink-500); }
.mb-close {
  flex-shrink: 0; width: 30px; height: 30px; border: none; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-500); font-size: 19px; line-height: 1; cursor: pointer;
}
.mb-close:hover { background: var(--orange-50); color: var(--orange-600); }
.mb-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.mb-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
}
.mb-list a { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--navy-900); }
.mb-list a:hover { color: var(--navy-600); text-decoration: underline; }
.mb-info { flex-shrink: 0; font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.members-note {
  margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--ink-500);
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 14px;
}
@media (max-width: 760px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); max-height: 320px; }
  .mb-list li { flex-direction: column; gap: 3px; }
}

/* ===== 시민 건의함 ===== */
.suggest { margin-top: 56px; }
.suggest-card {
  background: linear-gradient(135deg, var(--orange-50), #fff);
  border: 1px solid var(--orange-100); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-sm);
}
.suggest-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.suggest-emoji {
  flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center;
  font-size: 25px; background: #fff; border: 1px solid var(--orange-100); border-radius: 14px;
}
.suggest-head-text h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.suggest-head-text p { margin: 0; font-size: 14.5px; color: var(--ink-700); }
.suggest-form { display: flex; flex-direction: column; gap: 12px; }
.suggest-region { display: flex; align-items: center; gap: 10px; }
.suggest-region label { font-size: 14px; font-weight: 700; color: var(--ink-700); white-space: nowrap; }
.suggest-region .opt { font-weight: 600; color: var(--ink-500); }
.suggest-region input {
  flex: 1 1 0; min-width: 0; max-width: 220px;
  padding: 10px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-900);
}
.suggest-form textarea {
  width: 100%; padding: 14px 16px; font-size: 15px; font-family: inherit; line-height: 1.6;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink-900);
  resize: vertical; min-height: 110px;
}
.suggest-region input:focus, .suggest-form textarea:focus {
  outline: none; border-color: var(--orange-400);
  box-shadow: 0 0 0 3px var(--orange-100);
}
.suggest-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.suggest-privacy { font-size: 12.5px; color: var(--ink-500); }
.suggest-foot button {
  flex-shrink: 0; padding: 12px 24px; font-size: 15px; font-weight: 800; font-family: inherit;
  color: #fff; background: var(--orange-500); border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(245, 135, 31, .28); transition: background .15s, transform .1s, opacity .15s;
}
.suggest-foot button:hover { background: var(--orange-600); transform: translateY(-1px); }
.suggest-foot button:active { transform: translateY(0); }
.suggest-foot button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.suggest-status { margin: 4px 0 0; font-size: 14px; font-weight: 700; min-height: 1px; }
.suggest-status.ok { color: var(--navy-700); }
.suggest-status.err { color: #c0392b; }

/* ===== 서브 페이지 (상담 안내) ===== */
.top-nav a.is-active { color: var(--orange-600); }
.subpage-hero {
  text-align: center; padding-top: 56px;
  background:
    radial-gradient(900px 400px at 50% -20%, var(--blue-50), transparent 65%);
}
.subpage-hero .back-link {
  display: inline-block; margin-bottom: 16px;
  font-size: 14px; font-weight: 700; color: var(--ink-500);
}
.subpage-hero .back-link:hover { color: var(--orange-600); }
.subpage-hero h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.subpage-hero > p { margin: 14px auto 40px; max-width: 560px; font-size: 16px; color: var(--ink-700); }
.subpage-cta { margin-top: 34px; text-align: center; }
.subpage-cta .consult-banner-link {
  background: var(--orange-500); box-shadow: 0 8px 18px rgba(245, 135, 31, .28);
}
.subpage-cta .consult-banner-link:hover { background: var(--orange-600); }

/* ===== 반응형 ===== */
/* 태블릿: 4열 → 2열 */
@media (max-width: 1000px) {
  .column-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* 모바일 헤더: 로고 줄 + 그 아래 가로 스크롤 칩 메뉴(내비 유지) */
  html { scroll-padding-top: 108px; }
  .header-inner { height: auto; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .top-nav {
    width: 100%; overflow-x: auto; gap: 8px; padding: 0 2px 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a {
    flex: none; font-size: 13px; font-weight: 700; color: var(--ink-700);
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 13px; white-space: nowrap;
  }
  .consult-grid { grid-template-columns: 1fr; }
  .column-grid { grid-template-columns: 1fr; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { height: 26px; }
  .brand-divider { display: none; }
  .brand-title {
    font-size: 14px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; min-width: 0;
  }
  .beta-badge { flex-shrink: 0; }
  .feature-grid, .feature-grid.two { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 0; }
  /* 좁은 화면에선 강제 줄바꿈 해제 — 문장 중간이 어색하게 끊기지 않게 */
  .hero-sub br { display: none; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-meta { text-align: center; align-items: center; }

  /* iOS 자동 확대 방지: 입력 요소 글자가 16px 미만이면 포커스 시 화면이 강제 확대됨 */
  .chat-input input, .chat-region select,
  .suggest-region input, .suggest-form textarea { font-size: 16px; }

  /* 채팅: 소원이를 헤더처럼 위로 */
  .chat-section { padding: 32px 0 8px; }
  .chat-shell { grid-template-columns: 1fr; gap: 16px; }
  .chat-mascot { flex-direction: row; align-items: center; justify-content: center; gap: 16px; padding: 16px 20px; }
  .chat-mascot img { width: auto; max-width: 110px; margin: 0; }
  .mascot-consult { display: none; } /* 모바일: 상담은 하단 배너로 — 칸은 콤팩트하게 */
  /* dvh: 키보드가 올라오면 화면 높이에 맞춰 줄어드는 단위(구형 브라우저는 vh 사용) */
  .chat-messages { min-height: 300px; max-height: 60vh; max-height: 60dvh; }
  .msg { max-width: 95%; }

  /* 상담 배너: 세로 정렬 + 3버튼도 세로로 */
  .consult-banner-inner { gap: 18px; padding: 22px; }
  .consult-banner-buttons { flex-direction: column; }
  .consult-banner-link { width: 100%; text-align: center; }
  .footer-credit { justify-content: center; }

  /* 건의함: 좁은 화면에선 여백 줄이고 버튼은 가로 꽉 차게 */
  .suggest-card { padding: 22px 20px; }
  .suggest-region { flex-wrap: wrap; }
  .suggest-region input { max-width: none; width: 100%; }
  .suggest-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .suggest-foot button { width: 100%; }
}
