/* 교습소철거신고 — 서류/신고 느낌의 카드 3분할 레이아웃 */

:root {
  --primary: #14213D;
  --accent: #FCA311;
  --paper: #FFFFFF;
  --paper-soft: #F3F1EA;
  --ink: #14213D;
  --muted: #4A5570;
  --line: #D8D2C2;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--accent);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 12px;
}

.site-nav a {
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #EAE4D6;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.site-nav a:hover, .site-nav a:focus-visible { background: rgba(252,163,17,0.18); color: #fff; }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    padding-top: 8px;
  }
  .site-nav.open { display: flex; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero (document feel) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--primary);
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 30px);
}

.hero-text {
  padding: 44px 24px 40px;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 0.82rem;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 58ch;
  font-size: 1.02rem;
  color: #D9DEEB;
  margin: 0 0 28px;
}

.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 0.85fr; align-items: center; }
  .hero-text { padding: 72px 56px; }
  .hero-media { align-self: stretch; }
  .hero-media img { height: 100%; aspect-ratio: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover, .btn:focus-visible {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ---------- Content blocks ---------- */

article { padding: 8px 0 56px; }

.block {
  position: relative;
  padding: 36px 0;
  border-bottom: 1px dashed var(--line);
}

.block:last-of-type { border-bottom: none; }

.doc-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--paper);
  border: 1px solid var(--primary);
  border-radius: 3px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.block h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--primary);
}

.block h3 { color: var(--primary); font-size: 1.08rem; font-weight: 700; margin: 0 0 12px; }

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

.block-sub { color: var(--muted); margin-bottom: 24px; }

/* ---------- Notice card 3-column split ---------- */

.notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .notice-grid { grid-template-columns: repeat(3, 1fr); }
}

.notice-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  padding: 28px 22px 24px;
  box-shadow: 0 2px 0 rgba(20,33,61,0.06);
}

.card-index {
  position: absolute;
  top: -16px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.notice-card dl { margin: 0; }

.notice-card dl > div { margin-bottom: 16px; }
.notice-card dl > div:last-child { margin-bottom: 0; }

.notice-card dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.notice-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Table ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

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

caption { text-align: left; }

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

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

tbody tr:nth-child(even) { background: var(--paper-soft); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Checklist ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding: 13px 16px 13px 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--paper);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery picture {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

/* ---------- CTA block ---------- */

.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--primary);
  color: #fff;
  padding: 28px 24px;
  border-radius: 8px;
  border-bottom: none;
}

.cta-block p { margin: 0; max-width: 46ch; font-weight: 500; }

/* ---------- Footer ---------- */

footer {
  background: #0E1830;
  color: #C9CEDA;
  padding: 40px 24px 32px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  max-width: 1120px;
  margin: 0 auto 24px;
  border-bottom: 1px solid #2A3555;
  padding-bottom: 20px;
}

footer nav a {
  color: #C9CEDA;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

footer address {
  max-width: 1120px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #ABB2C4;
}

footer address a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

footer p {
  max-width: 1120px;
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: #6E7590;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 480px) {
  .hero-text { padding: 32px 18px 30px; }
  .wrap { padding: 0 16px; }
  .gallery { grid-template-columns: 1fr; }
  .cta-block { flex-direction: column; align-items: flex-start; }
  .notice-card { padding-top: 30px; }
}

@media (min-width: 1280px) {
  .wrap { max-width: 1200px; }
  .header-bar, .site-nav { max-width: 1200px; }
}

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

