:root {
  --ink: #1f2937;
  --strong: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f6f7f9;
  --brand: #1f3864;
  --brand-soft: #e8eefb;
  --link: #2563eb;
  --warn-bg: #fff6dc;
  --warn-ink: #8a5a00;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--link); }
img { max-width: 100%; }

.preview-bar {
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 8px 16px;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-header .inner, main, footer .inner { max-width: 760px; margin: 0 auto; }
.site-header .inner { padding: 14px 20px; }
.brand { font-size: 19px; font-weight: 800; color: var(--brand); text-decoration: none; }
.brand span { font-weight: 500; color: var(--muted); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-header nav a { margin-left: 18px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--brand); }
footer a { color: var(--muted); }
.mail-addr { font-weight: 700; color: var(--strong); }
.site-header nav a.lang { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
[hidden] { display: none !important; }
.lang-hint { background: #eef3ff; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.lang-hint .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 10px 20px; }
.lang-hint a { font-weight: 700; text-decoration: none; }
.lang-hint button { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 720px; margin: 0 auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12); font-size: 15px; line-height: 1.6; }
.consent p { margin: 0; }
.consent button { margin-left: 8px; padding: 5px 12px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; }
.consent button[data-consent="no"] { background: #ffffff; color: var(--brand); }

main { padding: 24px 20px 56px; }
h1 { font-size: 30px; line-height: 1.35; margin: 8px 0 20px; color: var(--strong); }
h2 { font-size: 23px; line-height: 1.4; margin: 44px 0 12px; color: var(--brand); }
h3 { font-size: 19px; line-height: 1.45; margin: 28px 0 8px; color: var(--strong); }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin: 6px 0; }
strong { color: var(--strong); }

figure { margin: 24px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }

.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

blockquote { margin: 16px 0; padding: 12px 16px; background: var(--soft); border-left: 4px solid var(--line); border-radius: 0 8px 8px 0; }
blockquote p:last-child { margin-bottom: 0; }

.crumbs { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; line-height: 1.6; }

.field-story { margin: 0 0 16px; padding: 16px 18px; border: 1px dashed #c9cfd8; border-radius: 12px; background: #fbfbfc; color: var(--muted); }
.cta { margin: 28px 0 8px; padding: 20px; border-radius: 14px; background: #eef3ff; }
.cta p { margin-bottom: 12px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--brand); color: #ffffff; font-weight: 700; text-decoration: none; }
.btn.disabled { background: #9aa5b8; cursor: not-allowed; }

.hero h1 { font-size: 28px; margin-bottom: 12px; }
.hero p { color: #374151; }
.cards { display: grid; gap: 18px; margin-top: 24px; }
.card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; color: inherit; text-decoration: none; }
.card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.card .body { padding: 14px 16px 16px; }
.card h2 { margin: 8px 0 6px; font-size: 20px; line-height: 1.45; color: var(--strong); }
.card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.more { margin-top: 24px; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .inner { padding: 20px; }

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  main { padding: 18px 16px 48px; }
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  .site-header .inner, footer .inner { padding-left: 16px; padding-right: 16px; }
}
