/* ============================================================
   미등록 이주아동 구제대책 안내 — 조용한 안내서
   목표: 제도를 모르는 사람도 천천히 따라올 수 있는, 여백 많고
   차분한 읽기 중심 페이지. 카드·통계·판매형 요소를 비웁니다.
   글꼴: Gowun Batang(제목) + Pretendard(본문) · 따뜻한 한지 톤
   ============================================================ */

:root {
  --accent: #5f7d4e; /* 차분한 세이지 그린, 아주 가끔만 사용 */
  --accent-strong: #466235;
  --accent-soft: #d7e3c9;
  --accent-wash: #eef3e7;

  --ink: #3a322b; /* 따뜻한 먹색 */
  --ink-soft: #6b5f52;
  --muted: #93897b;
  --faint: #b7ac9d;
  --line: #e9dfd1;
  --line-2: #f1e9dd;

  --paper: #f7f1e7; /* 한지 바탕 */
  --paper-2: #f2eadd;
  --surface: #fffdf8;

  --good: #6f8a5b;
  --good-soft: #eef3e7;

  --read: 820px; /* 읽기 기본 폭 */
  --wide: 1080px;
  --nav-h: 60px;

  --r: 18px;
  --r-lg: 26px;

  --shadow: 0 10px 40px rgba(110, 80, 50, 0.08);
  --shadow-soft: 0 4px 22px rgba(110, 80, 50, 0.06);

  --font:
    "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  --font-display: "Gowun Batang", "Pretendard Variable", serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: -0.003em;
  word-break: keep-all;
  overflow-x: hidden; /* safety net: never allow sideways scroll on small screens */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
strong {
  font-weight: 700;
  color: var(--ink);
}
a {
  color: var(--accent-strong);
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--accent-soft);
}

/* layout columns */
.col {
  width: 100%;
  max-width: var(--read);
  margin: 0 auto;
  padding: 0 32px;
}
.col--wide {
  max-width: var(--wide);
}
/* keep long body copy comfortable while the section frame stays wide */
.lede {
  max-width: 64ch;
}
.prose {
  max-width: 70ch;
}

/* generous, quiet sections */
.s {
  padding: clamp(58px, 8.5vw, 110px) 0;
}
.s + .s {
  padding-top: 0;
} /* sections flow with their own top air */
.s-inner > * + * {
  margin-top: 1.25em;
}

/* gentle dividers between major parts */
.rule {
  width: 100%;
  max-width: var(--read);
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: 0 26px;
}
.rule span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------------- nav: quiet, no CTA ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  transition:
    box-shadow 0.3s,
    background 0.3s;
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.nav .col--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1020px;
}
.nav .home {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.nav .home b {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nav .home em {
  font-style: normal;
  font-size: 12px;
  color: var(--faint);
}
.nav-links {
  display: flex;
  gap: 22px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-strong);
}
/* tablet: keep section nav usable, just tighter */
@media (max-width: 820px) {
  .nav-links {
    gap: 15px;
  }
  .nav-links a {
    font-size: 13px;
  }
}
/* phone: hide section nav (FAB + scroll cover navigation) */
@media (max-width: 560px) {
  .nav-links {
    display: none;
  }
}

/* ---------------- translate banner (gentle) ---------------- */
.xlate {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  top: calc(var(--nav-h) + 14px);
  z-index: 48;
  max-width: min(540px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px 13px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.xlate.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.xlate .globe {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent-strong);
}
.xlate b {
  font-weight: 700;
}
.xlate small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 1px;
  line-height: 1.5;
}
.xlate button {
  margin-left: 6px;
  flex: none;
  background: transparent;
  border: 0;
  color: var(--faint);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.xlate button:hover {
  color: var(--ink);
}

/* ============================================================ HERO ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 26px) 0 64px;
}
.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.byline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.byline b {
  color: var(--accent-strong);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.32;
  margin-top: 16px;
  letter-spacing: -0.012em;
}
.hero h1 .soft {
  color: var(--accent-strong);
}
.hero-sub {
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--ink-soft);
  margin-top: 16px;
  max-width: 46ch;
  line-height: 1.74;
}
.hero-media {
  width: min(580px, 100%, calc(48svh * 16 / 9));
}
.hero .video {
  width: 100%;
}
.video {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #2a201a;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.video .ratio {
  position: relative;
  aspect-ratio: 16/9;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* click-to-play facade */
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  display: block;
}
.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition:
    opacity 0.25s,
    transform 0.4s ease;
}
.video-play:hover .video-poster {
  opacity: 1;
  transform: scale(1.03);
}
.video-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.34);
  transition:
    transform 0.2s,
    background 0.2s;
}
.video-play:hover .video-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}
.video-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  color: var(--accent-strong);
}
.video-cap {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 11px;
  text-align: center;
}

/* scroll cue — pinned to bottom-center of first screen */
.cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}
.cue:hover {
  color: var(--accent-strong);
}
.cue .arr {
  width: 18px;
  height: 18px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cue .arr {
    animation: none;
  }
}
/* video height scales with viewport height so the centered hero + cue fit one screen */
@media (max-width: 560px) {
  .hero-media {
    width: min(440px, 100%);
  }
}
@media (max-height: 600px) {
  .hero {
    padding: calc(var(--nav-h) + 16px) 0 46px;
  }
  .hero-wrap {
    gap: 13px;
  }
  .hero h1 {
    margin-top: 10px;
  }
  .hero-sub {
    margin-top: 10px;
  }
  .hero-media {
    width: min(460px, 100%, calc(27svh * 16 / 9));
  }
  .cue {
    bottom: 14px;
  }
}

/* ============================================================ section header ============================================================ */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  text-transform: uppercase;
}
.sh {
  font-size: clamp(25px, 3.4vw, 34px);
  margin-top: 14px;
  line-height: 1.36;
}
.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
  margin-top: 20px;
  line-height: 1.8;
}

/* prose */
.prose p {
  color: var(--ink);
}

/* ---------------- artistic figures (현황) ---------------- */
.figures {
  margin: 42px 0 10px;
}
.figure {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  gap: 30px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.figure:last-child {
  border-bottom: 1px solid var(--line);
}
.fig-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 10vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fig-num span {
  font-size: 0.3em;
  font-weight: 700;
  color: var(--muted);
  margin-left: 7px;
  letter-spacing: 0;
}
.fig-text h3 {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
}
.fig-text p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 7px;
}
.fig-flag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  background: var(--accent-wash);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 9px;
}
.figure.key .fig-num {
  color: var(--accent-strong);
}
@media (max-width: 560px) {
  .figure {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }
  .fig-num {
    font-size: clamp(52px, 18vw, 72px);
  }
}
.prose p + p {
  margin-top: 1.1em;
}
.prose .quiet {
  color: var(--ink-soft);
}

/* soft inline emphasis term */
.term {
  color: var(--accent-strong);
  font-weight: 600;
}

/* gentle highlighted note (used for the deadline & key reminders) */
.note-soft {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 24px 26px;
}
.note-soft .lbl {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  text-transform: uppercase;
}
.note-soft .big {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.2;
}
.note-soft p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 16.5px;
}

/* simple numbered explanation list (조치 등) */
.steps {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  align-items: start;
}
.step .no {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  line-height: 1.3;
}
.step h3 {
  font-size: 20px;
  line-height: 1.4;
}
.step p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 16.5px;
}
.step ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.step li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}
.step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-100, var(--accent));
  opacity: 0.55;
}

/* small soft sub-question heading */
.qh {
  font-size: 20px;
  margin-top: 48px;
  line-height: 1.4;
}
.qh + p {
  margin-top: 14px;
}

/* ---------------- emphasized benefit block (제도 · 6번 강조) ---------------- */
.benefit {
  margin-top: 34px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4.2vw, 46px);
}
.benefit-ey {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  text-transform: uppercase;
  margin: 0;
}
.benefit > h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.7vw, 28px);
  margin-top: 12px;
  line-height: 1.4;
  color: var(--ink);
}
.benefit-list {
  margin-top: 28px;
}
.benefit-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--accent-soft);
}
.benefit-item:first-child {
  border-top: 0;
  padding-top: 4px;
}
.benefit-item .bnum {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  color: var(--accent-strong);
  line-height: 1.3;
}
.benefit-item h4 {
  font-family: var(--font);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
}
.benefit-item p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-top: 7px;
}
@media (max-width: 560px) {
  .benefit-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* quiet two-line visa note */
.visa-note {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.visa-note .v {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.visa-note .tag {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-strong);
  width: 46px;
  font-size: 17px;
}
.visa-note .v p {
  color: var(--ink-soft);
  font-size: 16px;
}

/* minimal table */
.mini {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 15.5px;
}
.mini caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.mini th,
.mini td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.mini thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.mini tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.mini td b {
  color: var(--accent-strong);
}
.mini tr:last-child td,
.mini tr:last-child th {
  border-bottom: 0;
}

/* ============================================================ 필수서류 — calm list ============================================================ */
.subq {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 44px 0 4px;
  font-family: var(--font);
}
.help-line {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 6px;
}
.docgroup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 25px);
  margin-top: 52px;
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.docgroup-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
  transform: translateY(-3px);
}
.docgroup-title + .help-line {
  margin-top: 12px;
  margin-bottom: 0;
}

/* simple toggle (작성/사본) */
.toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--surface);
}
.toggle button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: 0.15s;
}
.toggle button.on {
  background: var(--accent-wash);
  color: var(--accent-strong);
}

/* 작성 서류: quiet rows */
.forms {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.form-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  padding: 20px 6px;
  transition:
    background 0.18s,
    padding 0.18s;
}
.form-row:hover {
  background: var(--surface);
  padding-left: 14px;
  padding-right: 14px;
}
.form-row .thumb {
  flex: none;
  width: 62px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.form-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.form-row .meta {
  flex: 1;
  min-width: 0;
}
.form-row .meta .no {
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.form-row .meta h4 {
  font-size: 18px;
  margin-top: 2px;
}
.form-row .meta p {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 3px;
}
.form-row .go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}
.form-row .go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s;
}
.form-row:hover .go svg {
  transform: translateX(4px);
}
@media (max-width: 560px) {
  .form-row .go span {
    display: none;
  }
}

/* 서식 다운로드 (main scroll) */
.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.dl-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 2px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 11px 18px;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
.dl-btn:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}
.dl-btn:active {
  transform: translateY(1px);
}
.dl-btn svg {
  width: 17px;
  height: 17px;
}
/* phones: stack cleanly instead of awkward mid-row wrapping */
@media (max-width: 560px) {
  .dl-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dl-label {
    margin-right: 0;
    margin-bottom: 2px;
  }
  .dl-btn {
    justify-content: center;
  }
}

/* 사본 서류: gentle accordions */
.support-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.support {
  border-bottom: 1px solid var(--line);
}
.support-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  user-select: none;
}
.support-head .num {
  flex: none;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 18px;
  width: 24px;
}
.support-head .t {
  flex: 1;
}
.support-head h4 {
  font-size: 18px;
  line-height: 1.45;
}
.support-head .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 3px;
}
.support-head .chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--faint);
  transition: transform 0.25s;
  align-self: center;
}
.support.open .support-head .chev {
  transform: rotate(180deg);
  color: var(--accent-strong);
}
.support-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.support-body > div {
  overflow: hidden;
}
.support.open .support-body {
  grid-template-rows: 1fr;
}
.support-inner {
  padding: 0 4px 30px 44px;
}
@media (max-width: 560px) {
  .support-inner {
    padding-left: 4px;
  }
}
.why {
  background: var(--accent-wash);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.why p {
  color: var(--ink-soft);
  font-size: 15.5px;
}
.why p::before {
  content: "왜 필요한가요? ";
  font-weight: 700;
  color: var(--accent-strong);
}
.sub-block {
  margin-top: 22px;
}
.sub-block h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.sub-block ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sub-block li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.sub-block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.note strong {
  color: var(--accent-strong);
}

.target-caution {
  margin: 18px 0 0;
  padding: 13px 16px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
.target-caution strong {
  color: var(--accent-strong);
}

/* ===== 커뮤니티: 응원의 한마디 / 여러분의 이야기 (댓글형) ===== */
.cm-tabs {
  display: flex;
  gap: 4px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}
.cm-tab {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.cm-tab:hover {
  color: var(--ink-soft);
}
.cm-tab.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}
.cm-panel[hidden] {
  display: none;
}
.cm {
  margin-top: 18px;
}

/* --- 댓글 입력 바 (작게) --- */
.cm-write {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cm-write:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.cm-input {
  width: 100%;
  box-sizing: border-box;
  resize: none; /* 자동 높이 */
  min-height: 40px;
  max-height: 200px;
  padding: 7px 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}
.cm-input:focus {
  outline: none;
}
.cm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cm-count.over {
  color: #c0392b;
}
.cm-status {
  font-size: 12.5px;
  color: var(--muted);
}
.cm-status.ok {
  color: var(--accent-strong);
}
.cm-status.err {
  color: #c0392b;
}
.cm-submit {
  margin-left: auto;
  padding: 7px 16px;
  font-size: 14px;
}
.cm-note {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

/* --- 게시된 글 피드 (focus) --- */
.cm-feed {
  margin-top: 26px;
}
.cm-feed-head {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.cm-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cm-ava {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-top: 2px;
  background: radial-gradient(
    circle at 35% 30%,
    var(--accent-soft),
    var(--accent-wash)
  );
  border: 1px solid var(--accent-soft);
}
.cm-bubble {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 16px;
}
.cm-card-body {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}
.cm-card-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.cm-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 22px 18px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.cm-more {
  display: block;
  margin: 16px auto 0;
  padding: 9px 22px;
  font: inherit;
  font-size: 14px;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cm-more:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}
.cm-more[disabled] {
  opacity: 0.6;
  cursor: default;
}
@media (max-width: 560px) {
  .cm-ava {
    width: 28px;
    height: 28px;
  }
  .cm-bubble {
    padding: 11px 13px;
  }
}

.embassy-wrap {
  overflow-x: auto;
  margin-top: 6px;
}
.embassy {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}
.embassy td a[href^="tel:"] {
  white-space: nowrap;
}
.embassy th,
.embassy td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.embassy thead th {
  color: var(--faint);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.embassy tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.embassy td a {
  color: var(--accent-strong);
  word-break: break-all;
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ph {
  aspect-ratio: 4/3;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 12px;
}
.ph .ic {
  width: 26px;
  height: 26px;
  color: var(--faint);
}
.ph .cap {
  font-size: 12px;
  color: var(--faint);
}

/* 예시 사진 (실제 이미지 카드) */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.ex-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.ex-shot a {
  display: block;
}
.ex-shot img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #fff;
  transition: opacity 0.18s;
}
.ex-shot a:hover img {
  opacity: 0.9;
}
.ex-shot figcaption {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 11px 11px;
  line-height: 1.5;
}
.ex-shot .ai-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

/* ============================================================ 추가서류 (3) ============================================================ */
.extra-item {
  margin-top: 40px;
}
.extra-item .lbl {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
}
.extra-item h3 {
  font-size: 20px;
  margin-top: 6px;
  line-height: 1.4;
}
.extra-item p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* ============================================================ 도움센터 ============================================================ */
.centers {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.center {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.18s,
    padding 0.18s;
}
.center:hover {
  background: var(--surface);
  padding-left: 14px;
}
.center .logo {
  flex: none;
  width: 110px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}
.center .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}
@media (max-width: 560px) {
  .center .logo {
    width: 84px;
    height: 84px;
  }
}
.center .t {
  flex: 1;
}
.center h4 {
  font-size: 17px;
}
.center .url {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
  word-break: break-all;
}
.center .ext {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: 0.18s;
}
.center:hover .ext {
  color: var(--accent-strong);
  transform: translate(2px, -2px);
}

/* ============================================================ 설문 (quiet) ============================================================ */
.survey-card {
  margin-top: 34px;
}
.q {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.q:first-of-type {
  padding-top: 8px;
}
.q:last-of-type {
  border-bottom: 0;
}
.qt {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.5;
}
.qt .qnum {
  flex: none;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 16px;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 0 26px;
}
@media (max-width: 520px) {
  .opts {
    margin-left: 0;
  }
}
.opt {
  position: relative;
}
.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.opt span {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  transition: 0.15s;
}
.opt input:checked + span {
  background: var(--accent-wash);
  border-color: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}
.opt input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.q textarea {
  width: 100%;
  margin: 14px 0 0 26px;
  max-width: calc(100% - 26px);
  font-family: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 90px;
  color: var(--ink);
  background: var(--surface);
}
@media (max-width: 520px) {
  .q textarea {
    margin-left: 0;
    max-width: 100%;
  }
}
.q textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.survey-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.btn-quiet {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  transition:
    background 0.16s,
    transform 0.16s;
}
.btn-quiet:hover {
  background: var(--accent-strong);
}
.btn-quiet:active {
  transform: translateY(1px);
}
.survey-note {
  color: var(--muted);
  font-size: 13.5px;
}
.survey-thanks {
  display: none;
  text-align: center;
  padding: 36px 10px;
}
.survey-thanks.show {
  display: block;
}
.survey-thanks .ok {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.survey-thanks .ok svg {
  width: 30px;
  height: 30px;
}
.survey-thanks h3 {
  font-size: 22px;
}
.survey-thanks p {
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================ footer ============================================================ */
.foot {
  margin-top: clamp(72px, 11vw, 120px);
  padding: 50px 0 64px;
  border-top: 1px solid var(--line);
}
.foot .col {
  text-align: center;
}
.foot .fname {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.foot .fauthor {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}
.foot .disc {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.75;
  margin-top: 24px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================ FORM EXPLORER (calm modal) ============================================================ */
.fx {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.fx.open {
  display: block;
}
.fx-scrim {
  position: absolute;
  inset: 0;
  background: rgba(45, 32, 22, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.fx.open .fx-scrim {
  opacity: 1;
}
.fx-panel {
  position: absolute;
  inset: auto 0 0 0;
  top: max(20px, 4vh);
  margin: 0 auto;
  width: min(1080px, 100%);
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(26px);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.34s;
}
.fx.open .fx-panel {
  transform: none;
  opacity: 1;
}
.fx-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.fx-head .nm {
  flex: none;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  width: 26px;
  text-align: center;
}
.fx-head h3 {
  font-size: 18px;
}
.fx-head .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.fx-head .sp {
  flex: 1;
}
.fx-close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.15s;
}
.fx-close:hover {
  background: var(--accent-wash);
  border-color: var(--accent-soft);
}
.fx-close svg {
  width: 19px;
  height: 19px;
  color: var(--ink-soft);
}
.fx-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
@media (max-width: 860px) {
  .fx-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}
.fx-imgwrap {
  background: var(--paper-2);
  padding: 24px;
  overflow: auto;
  position: relative;
}
@media (max-width: 860px) {
  .fx-imgwrap {
    padding: 14px;
    max-height: 40vh;
  }
}
.fx-imgstage {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.fx-imgstage img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.fx-box {
  position: absolute;
  border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.fx-box:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: var(--accent);
}
.fx-box.active {
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  z-index: 2;
}
.fx-boxnum {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 9px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  border: 1px solid #fff;
}
.fx-box.active .fx-boxnum {
  background: var(--accent-strong);
}
.fx-list {
  background: var(--paper);
  overflow: auto;
  padding: 22px 24px 32px;
  position: relative;
}
.fx-intro {
  background: var(--accent-wash);
  border-radius: 13px;
  padding: 15px 17px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.7;
}
.fx-intro b {
  color: var(--accent-strong);
}
.fx-dl {
  margin-bottom: 16px;
}
.fx-dl a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  border: 1px solid var(--accent-soft);
  background: var(--surface);
  padding: 10px 15px;
  border-radius: 10px;
  transition: 0.15s;
}
.fx-dl a:hover {
  background: var(--accent-wash);
}
.fx-dl svg {
  width: 16px;
  height: 16px;
}
.fx-field {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.fx-field.active {
  background: var(--surface);
}
.fx-field-h {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 8px;
  cursor: pointer;
  user-select: none;
}
.fx-field-h .fn {
  flex: none;
  font-family: var(--font-display);
  width: 24px;
  text-align: center;
  color: var(--accent);
  font-size: 15px;
}
.fx-field.active .fx-field-h .fn {
  color: var(--accent-strong);
}
.fx-field-h .ft {
  flex: 1;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.fx-field-h .fchev {
  width: 17px;
  height: 17px;
  color: var(--faint);
  transition: transform 0.25s;
}
.fx-field.active .fx-field-h .fchev {
  transform: rotate(180deg);
  color: var(--accent-strong);
}
.fx-field-b {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.fx-field-b > div {
  overflow: hidden;
}
.fx-field.active .fx-field-b {
  grid-template-rows: 1fr;
}
.fx-field-in {
  padding: 0 8px 18px 45px;
}
.fx-field-in p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}
.fx-field-in ul {
  margin: 9px 0 0;
  padding-left: 17px;
}
.fx-field-in li {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
  line-height: 1.6;
}
.fx-field-in .xlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent-strong);
  background: var(--accent-wash);
  border: 0;
  padding: 9px 14px;
  border-radius: 10px;
  transition: 0.15s;
}
.fx-field-in .xlink:hover {
  background: var(--accent-soft);
}
.fx-field-in .xlink svg {
  width: 14px;
  height: 14px;
}
.fx-checklist {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px;
}
.fx-checklist h4 {
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.fx-checklist h4 svg {
  width: 18px;
  height: 18px;
  color: var(--good);
}
.fx-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
}
.fx-checklist label:last-child {
  border-bottom: 0;
}
.fx-checklist input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

/* ============================================================ reveal ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
body.motion-off .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.flash {
  animation: flash 1.6s ease;
}
@keyframes flash {
  0%,
  100% {
    background: transparent;
  }
  30%,
  55% {
    background: var(--accent-wash);
  }
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================================ floating survey button ============================================================ */
.survey-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow:
    0 10px 30px rgba(110, 80, 50, 0.28),
    0 2px 6px rgba(110, 80, 50, 0.18);
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.16s;
}
.survey-fab.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.survey-fab:hover {
  background: var(--accent-strong);
}
.survey-fab:active {
  transform: translateY(1px);
}
.survey-fab svg {
  width: 18px;
  height: 18px;
}
.survey-fab .fab-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 1px;
}
.survey-fab .fab-txt {
  line-height: 1.15;
  text-align: left;
}
@media (max-width: 560px) {
  .survey-fab {
    right: 16px;
    bottom: 16px;
    padding: 13px 18px;
  }
  .survey-fab .fab-sub {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .survey-fab {
    transition: opacity 0.2s;
    transform: none;
  }
  .survey-fab:not(.show) {
    transform: none;
  }
}

/* ============================================================
   responsive refinements — comfortable gutters & type on
   tablets and phones, and a hard guard against overflow
   ============================================================ */

/* media never pushes the layout wider than its container */
img,
svg,
video,
iframe,
table {
  max-width: 100%;
}

/* tablet portrait and below: trim the generous side gutters */
@media (max-width: 640px) {
  .col {
    padding: 0 22px;
  }
  .rule {
    padding: 0 22px;
  }
}

/* phones: tighter gutters + slightly smaller base type for comfort */
@media (max-width: 430px) {
  body {
    font-size: 16.5px;
  }
  .col {
    padding: 0 16px;
  }
  .rule {
    padding: 0 16px;
  }
  .note-soft {
    padding: 20px 18px;
  }
}

/* ============================================================
   웹 작성 → HWPX 다운로드
   ============================================================ */
/* CTA in section 03 */
.fill-cta {
  margin-top: 26px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft);
  border-radius: 16px;
  padding: 20px 22px;
}
.fill-cta h4 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.fill-cta p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.fill-cta .fill-open-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.fill-open {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  transition: background 0.16s, transform 0.16s;
}
.fill-open:hover {
  background: var(--accent-strong);
}
.fill-open:active {
  transform: translateY(1px);
}
.fill-open svg {
  width: 17px;
  height: 17px;
}

/* modal */
.fillx {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}
.fillx.open {
  display: block;
}
.fillx-scrim {
  position: absolute;
  inset: 0;
  background: rgba(45, 32, 22, 0.42);
  backdrop-filter: blur(3px);
}
.fillx-panel {
  position: absolute;
  inset: auto 0 0 0;
  top: max(20px, 4vh);
  margin: 0 auto;
  width: min(860px, 100%);
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fillx-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.fillx-tabs {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.fillx-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  transition: 0.15s;
}
.fillx-tab.active {
  background: var(--accent-wash);
  border-color: var(--accent-soft);
  color: var(--accent-strong);
}
.fillx-close {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.fillx-close svg {
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
}
.fillx-note {
  flex: none;
  margin: 0;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--accent-wash);
  border-bottom: 1px solid var(--line);
}
.fillx-body {
  overflow: auto;
  padding: 18px;
  flex: 1;
  min-height: 0;
}
.fillx-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}
.fillx-gh {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.fillx-gh .gchev {
  width: 17px;
  height: 17px;
  color: var(--faint);
  transition: transform 0.2s;
}
.fillx-group.collapsed .gchev {
  transform: rotate(-90deg);
}
.fillx-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 4px 16px 18px;
}
.fillx-group.collapsed .fillx-fields {
  display: none;
}
.fillx-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fillx-field.wide {
  grid-column: 1 / -1;
}
.fillx-choice .fillx-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 2px;
}
.fillx-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
  cursor: pointer;
  white-space: nowrap;
}
.fillx-opt span {
  white-space: nowrap;
}
.fillx-opt input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
}
.fillx-opt:has(input:checked) {
  background: var(--accent-wash);
  border-color: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}
.fillx-flabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.fillx-field input,
.fillx-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
.fillx-field textarea {
  min-height: 64px;
  resize: vertical;
}
.fillx-field input:focus,
.fillx-field textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.fillx-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.fillx-clear {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
}
.fillx-clear:hover {
  color: var(--ink);
  border-color: var(--faint);
}
.fillx-status {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
}
.fillx-status.ok {
  color: var(--accent-strong);
}
.fillx-status.err {
  color: #b4452f;
}
.fillx-dl {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  transition: background 0.16s, transform 0.16s;
}
.fillx-dl:hover {
  background: var(--accent-strong);
}
.fillx-dl:active {
  transform: translateY(1px);
}
@media (max-width: 620px) {
  .fillx-fields {
    grid-template-columns: 1fr;
  }
  .fillx-panel {
    top: 0;
    border-radius: 0;
  }
  .fillx-foot {
    flex-wrap: wrap;
  }
  .fillx-status {
    order: 3;
    flex-basis: 100%;
  }
}
