/* 폐원교습소철거 — 세로 타임라인(신고→철거 순서 강조), Spoqa Han Sans Neo */

:root {
  --primary: #3D2645;
  --primary-dark: #291930;
  --accent: #D4A5E8;
  --accent-soft: #F3E7F8;
  --ink: #2A1F2E;
  --muted: #6B5A72;
  --paper: #FFFFFF;
  --line: #E3D3EC;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Spoqa Han Sans Neo", "Spoqa Han Sans", -apple-system, "Malgun Gothic", sans-serif;
  font-display: swap;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--header-h);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 200;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 22px;
}

.nav-toggle:hover { background: var(--accent-soft); }

/* ===== Off-canvas nav ===== */
.site-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--primary-dark);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 300;
  padding: 24px;
  overflow-y: auto;
}

.site-nav.open { transform: translateX(0); }

.nav-close {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 50%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li { border-top: 1px solid rgba(255,255,255,0.15); }

.site-nav a {
  display: block;
  padding: 14px 4px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--accent-soft);
}

.hero-media { overflow: hidden; }

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: var(--primary-dark);
}

.hero-text .lead {
  margin: 0;
  max-width: 46ch;
  color: var(--ink);
  font-size: 1.02rem;
}

/* ===== Content ===== */
.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 32px 88px;
}

.block { padding: 44px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: none; padding-top: 0; }

.block h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.block > p { margin: 0 0 16px; }
.block > p:last-child { margin-bottom: 0; }

/* ===== Vertical timeline ===== */
.timeline {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding-left: 0;
  margin-bottom: 32px;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 1;
  position: relative;
}

.tl-body {
  padding-top: 6px;
}

.tl-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--primary-dark);
}

.tl-body p { margin: 0; color: var(--ink); }

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

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

caption { text-align: left; }

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

tbody th { font-weight: 500; color: var(--primary-dark); background: var(--accent-soft); }

tbody tr:last-child td,
tbody tr:last-child th { border-bottom: none; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
}

.gallery-grid figure { margin: 0; }

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== CTA ===== */
.cta-block { border-bottom: none; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 26px;
  border: 2px solid var(--primary);
}

.cta-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ===== Footer ===== */
footer {
  background: var(--primary-dark);
  color: #EAD9F0;
  padding: 40px 24px 28px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  max-width: 960px;
  margin: 0 auto 24px;
}

footer nav a {
  color: #EAD9F0;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 0;
}

footer nav a:hover { color: var(--accent); text-decoration: underline; }

footer address {
  max-width: 960px;
  margin: 0 auto 16px;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #D3B9DE;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
}

footer address a { color: #EAD9F0; }

footer p {
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #B79BC4;
}

/* ===== Breakpoints ===== */
@media (max-width: 1280px) {
  .content { max-width: 700px; }
}

@media (max-width: 1024px) {
  .hero-text { padding: 40px 32px; }
  .content { padding: 48px 28px 76px; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media picture,
  .hero-media img { min-height: 260px; }
  .hero-text { padding: 32px 24px; }
  .content { max-width: 100%; padding: 40px 20px 64px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 19px; }
}

@media (max-width: 480px) {
  .hero-text { padding: 26px 18px; }
  .content { padding: 32px 16px 56px; }
  .block { padding: 34px 0; }
  .tl-item { gap: 14px; }
  .tl-num { width: 38px; height: 38px; font-size: 0.95rem; }
  .timeline::before { left: 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-btn { width: 100%; justify-content: center; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav { transition: none; }
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line, #ddd);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--paper, #fff);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: currentColor;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.related-card-arrow { opacity: 0.6; flex-shrink: 0; }
@media (max-width: 480px) {
  .related-cards { grid-template-columns: 1fr; }
}

