/* 동두천교습소철거 — 가로 스와이프 넘버드 프로세스 카드형 / 앱 UI 스타일 */

:root {
  --ink: #16181d;
  --sub: #565d6b;
  --line: #e6e8ee;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --brand: #2f5eff;
  --brand-deep: #1c3fd6;
  --accent: #00c2a8;
  --radius: 18px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Paperlogy", "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

a { color: inherit; }

.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;
}

/* ---------- App bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.appbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}

.appbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-block;
}

.appbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.appbar-nav::-webkit-scrollbar { display: none; }

.appbar-nav a {
  text-decoration: none;
  color: var(--sub);
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.appbar-cta {
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
}

/* ---------- Hero (compact) ---------- */
.hero-compact {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 22px;
  text-align: left;
}

.chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: #e8edff;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.hero-compact h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-compact .lede {
  color: var(--sub);
  font-size: 0.98rem;
  margin: 0 0 18px;
  max-width: 60ch;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.block h2 {
  font-size: 1.28rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.block h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 18px 0 6px;
}

.block p { color: var(--ink); margin: 0 0 10px; }
.block p:last-child { margin-bottom: 0; }

.block-sub {
  color: var(--sub);
  font-size: 0.9rem;
  margin-top: -4px;
}

/* ---------- Horizontal swipe process cards ---------- */
.track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  margin: 4px -2px 0;
  -webkit-overflow-scrolling: touch;
}

.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.pcard {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  background: linear-gradient(160deg, #fbfcff, #eef1fb);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  min-height: 168px;
}

.pnum {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.pcard h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.pcard p {
  font-size: 0.85rem;
  color: var(--sub);
  margin: 0;
}

/* desktop: show full row, no forced scroll needed but still swipe-capable */
@media (min-width: 900px) {
  .track {
    overflow-x: auto;
  }
  .pcard { width: 200px; }
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}

thead th {
  background: #eef1fb;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:nth-child(even) { background: #fafbff; }

/* ---------- Checklist ---------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding: 10px 14px 10px 34px;
  background: #f6f8fd;
  border-radius: 10px;
  font-size: 0.92rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--accent);
  font-weight: 900;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  justify-items: center;
}

.gallery picture {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---------- FAQ ---------- */
.faq-block h3 {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.faq-block h3:first-of-type { border-top: none; padding-top: 0; }

.faq-block p {
  font-size: 0.92rem;
  color: var(--sub);
}

/* ---------- Related pages ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  background: #f6f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 64px;
  justify-content: center;
}

.rc-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand);
}

.rc-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Floating action button ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(47, 94, 255, 0.35);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 34px;
  padding: 18px 20px 90px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

footer address {
  max-width: 720px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--sub);
  line-height: 1.8;
}

footer a { color: var(--brand-deep); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .appbar-nav a:not(.appbar-cta) { display: none; }
  .appbar-nav { justify-content: flex-end; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-compact { padding: 22px 16px 18px; }
  .wrap { padding: 0 16px; gap: 20px; }
  .block { padding: 18px 16px; }
  .gallery { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .pcard { width: 76vw; }
  .fab { right: 14px; bottom: 14px; padding: 0 18px; }
}
