/* 구리교습소철거 — 컴팩트 싱글컬럼 + 대형 넘버 배지형 */

:root {
  --ink: #141414;
  --sub: #5a5a5a;
  --line: #dcdcdc;
  --paper: #fafafa;
  --paper-alt: #f1f0ee;
  --accent: #ff4526;
  --accent-ink: #ffffff;
  --radius: 2px;
  --max: 620px;
}

* { box-sizing: border-box; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- top bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.top-cta {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.top-cta:hover { background: var(--ink); color: #fff; }

/* ---------- wrap ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ---------- hero (작고 담백하게, 텍스트 중심) ---------- */
.hero {
  padding: 40px 0 28px;
  border-bottom: 4px solid var(--ink);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: none;
  margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lede {
  margin: 0;
  font-size: 1rem;
  color: var(--sub);
  max-width: 46ch;
}

/* ---------- numbered rows ---------- */
.row {
  position: relative;
  padding: 44px 0 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.bignum {
  position: absolute;
  top: -0.28em;
  right: -0.06em;
  font-size: clamp(4.5rem, 22vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 20, 20, 0.14);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.row-body {
  position: relative;
  z-index: 1;
}

.row-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  padding-top: 4px;
}

.row-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 22px 0 8px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.row-body h3:first-of-type { margin-top: 0; }

.row-body p {
  margin: 0 0 14px;
  color: #2a2a2a;
}

.row-sub {
  font-size: 0.85rem;
  color: var(--sub);
}

/* ---------- table ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

caption.sr-only,
.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;
}

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

thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

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

/* ---------- lists ---------- */
.steps {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cautions {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

.cautions li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 0.94rem;
  color: #2a2a2a;
}

.cautions li::before {
  content: "―";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

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

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

/* ---------- related cards ---------- */
.related-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 14px;
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}

.related-card:hover {
  border-color: var(--ink);
  background: var(--paper-alt);
}

.related-card-arrow {
  color: var(--accent);
  font-weight: 800;
}

/* ---------- cta ---------- */
.cta-row { border-bottom: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  margin-top: 4px;
}

.btn:hover { background: #d6350f; }

/* ---------- footer ---------- */
footer {
  border-top: 4px solid var(--ink);
  padding: 20px;
  background: var(--paper-alt);
}

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

footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.7rem; }
  .bignum { font-size: clamp(4rem, 26vw, 6rem); }
}

@media (max-width: 480px) {
  .top-bar { padding: 14px 16px; }
  .wrap { padding: 0 16px 32px; }
  .hero { padding: 32px 0 22px; }
  .hero h1 { font-size: 1.5rem; }
  .lede { font-size: 0.95rem; }
  .row { padding: 34px 0 6px; }
  .bignum { font-size: clamp(3.2rem, 28vw, 5rem); top: -0.2em; }
  .row-body h2 { font-size: 1.1rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  table { min-width: 420px; font-size: 0.82rem; }
  th, td { padding: 8px; }
}
