:root {
  --ink: #1a1a1a;
  --paper: #f7f4ec;
  --paper-2: #efeadf;
  --rule: #1a1a1a;
  --accent: #8a1f11;
  --muted: #5a5648;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

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

/* Masthead */
.masthead-wrap {
  background: var(--paper);
  border-bottom: 6px double var(--rule);
}
.masthead {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px 0;
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.masthead-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.masthead-nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}
.masthead-nav a:hover { border-bottom-color: var(--accent); }
.masthead-title {
  text-align: center;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 0.12em;
  padding: 10px 0 6px;
}
.masthead-rule {
  height: 3px;
  background: var(--rule);
  margin-bottom: 4px;
}

/* Layout */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: none;
}

h1 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.15;
  margin: 0 0 14px;
  border-bottom: 4px solid var(--rule);
  padding-bottom: 16px;
}

.dek {
  font-style: italic;
  font-size: 1.25rem;
  color: #33302a;
  margin: 0 0 10px;
  line-height: 1.6;
  font-weight: 500;
}

.byline {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c9c3b3;
}

.lede {
  font-size: 1.18rem;
  line-height: 1.85;
  margin: 0 0 30px;
}

.drop {
  float: left;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 0.8;
  padding: 8px 8px 0 0;
  color: var(--accent);
}

/* Newspaper columns */
.columns {
  column-count: 2;
  column-gap: 44px;
  column-rule: 1px solid #c9c3b3;
  text-align: justify;
  word-break: keep-all;
}

.columns h2 {
  column-span: all;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
}

.columns > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.columns p {
  margin: 0 0 16px;
}

.columns ol.process-list {
  column-span: all;
  margin: 0 0 20px;
  padding-left: 1.3em;
}
.columns ol.process-list li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.columns .table-scroll {
  column-span: all;
  margin: 4px 0 24px;
  overflow-x: auto;
}

/* Inline floated photos (newspaper cut style) */
.inline-photo {
  width: 46%;
  margin: 4px 0 10px;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 6px 6px 10px;
}
.inline-photo picture { border-bottom: 1px solid #ddd; }
.inline-photo.float-left { float: left; margin-right: 18px; }
.inline-photo.float-right { float: right; margin-left: 18px; }
.inline-photo figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
  line-height: 1.4;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}
caption { text-align: left; }
th, td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
tbody tr:nth-child(even) { background: var(--paper-2); }

/* FAQ */
.faq {
  max-width: 880px;
  margin: 10px auto 0;
  padding-top: 20px;
  border-top: 4px double var(--rule);
}
.faq h2 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 0 20px;
}
.faq h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 22px 0 8px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.faq p {
  margin: 0 0 4px;
  padding-left: 14px;
}

/* Related */
.related {
  max-width: 880px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #c9c3b3;
}
.related h2 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 0 16px;
}
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  min-height: 44px;
  border: 1px solid var(--rule);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}
.related-card:hover { background: var(--paper-2); }
.related-card-arrow { color: var(--accent); }

/* CTA */
.cta-row {
  max-width: 880px;
  margin: 36px auto 0;
  padding: 22px 20px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-row p { margin: 0 0 14px; }
.cta-row a.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #fff;
}

/* Footer */
footer {
  background: var(--ink);
  color: #cfcabd;
  padding: 18px 20px;
  border-top: 6px double var(--rule);
}
footer address {
  max-width: 1080px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: center;
}
footer a { color: #f0e6d8; }

/* Responsive */
@media (max-width: 768px) {
  .masthead-title { font-size: 1.5rem; letter-spacing: 0.06em; }
  h1 { font-size: 2.1rem; }
  .dek { font-size: 1.05rem; }
  .lede { font-size: 1.05rem; }

  .columns {
    column-count: 1;
    column-rule: none;
  }
  .inline-photo.float-left,
  .inline-photo.float-right {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }
  .related-cards { grid-template-columns: 1fr; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  td {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 6px;
  }
  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 2px;
  }
  tbody tr {
    border: 1px solid var(--rule);
    margin-bottom: 12px;
    background: #fff !important;
  }
}

@media (max-width: 480px) {
  .masthead-top { font-size: 0.74rem; }
  .masthead-nav { gap: 12px; }
  h1 { font-size: 1.7rem; }
  .drop { font-size: 2.8rem; }
  .wrap { padding: 20px 14px 44px; }
  .cta-row { padding: 18px 14px; }
}
