/* === auto-generated by site-common/build.sh ===
   DO NOT EDIT — edit site-common/css/ instead === */

:root {
  --max-width: 760px;
  --bg: #f5f7f5;
  --surface: #ffffff;
  --border: #dde5dd;
  --text: #1a1a1a;
  --text-secondary: #444;
  --text-muted: #888;
  --accent: #1b5e20;
  --accent-light: #2e7d32;
  --accent-bg: #e8f5e9;
  --info-accent: #1565c0;
}

/* -- TOC -- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.toc a {
  color: var(--accent-light);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* -- at-a-glance box -- */
.at-a-glance {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.at-a-glance ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.at-a-glance li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

/* -- warning box -- */
.warning-box {
  background: #fff3e0;
  border-left: 3px solid #e65100;
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  margin: 1.2rem 0;
  font-size: 0.88rem;
  color: #1a1a1a;
  line-height: 1.65;
}

.warning-box strong { color: #e65100; }

/* -- steps with numbered circles -- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.steps li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

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

/* -- scenario box -- */
.scenario-box {
  background: #f3e5f5;
  border-left: 3px solid #7b1fa2;
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  margin: 1.2rem 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* -- checklist -- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

/* -- official sources -- */
.sources.official {
  background: #e8f5e9;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 0.5rem 1rem;
}

/* -- general lists in sections -- */
.section ul:not(.checklist):not(.steps) {
  margin: 0.5rem 0 1rem 1.2rem;
  list-style: disc;
}

.section ul:not(.checklist):not(.steps) li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

/* -- tables in sections -- */
.section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.section th,
.section td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.section th {
  background: var(--accent-bg);
  font-weight: 600;
  color: var(--accent);
}

.section td {
  color: var(--text-secondary);
}

/* -- section nav (guide index link) -- */
.section-nav {
  background: var(--accent-bg);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.section-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.section-nav a:hover {
  text-decoration: underline;
}

/* -- related guides links -- */
.related-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.related-guides a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.related-guides a:hover {
  background: var(--accent);
  color: white;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* -- header -- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.site-title:hover { opacity: 0.8; }

.site-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -- main content -- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* -- index: post list -- */
.post-list { list-style: none; }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s;
}

.post-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.post-card h2 {
  font-size: 1.2rem;
  margin: 0.3rem 0 0.5rem;
  color: var(--accent);
  font-weight: 600;
}

.post-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.post-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  background: var(--accent-bg, #eef3f7);
  color: var(--accent);
  font-weight: 500;
}

/* -- post page -- */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
}

.post-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.post-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer {
  border-left: 3px solid var(--accent-light);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.85;
}

/* -- sections -- */
.section {
  margin-bottom: 2.5rem;
}

.section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.section p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* -- sources -- */
.sources {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.sources a {
  color: var(--accent-light);
  text-decoration: none;
  margin-right: 0.5rem;
}

.sources a:hover { text-decoration: underline; }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* -- info box (shared) -- */
.info-box {
  background: #e3f2fd;
  border-left: 3px solid var(--info-accent, #1565c0);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  margin: 1.2rem 0;
  font-size: 0.88rem;
  color: #1a1a1a;
  line-height: 1.65;
}

.info-box strong {
  color: var(--info-accent, #1565c0);
}

/* -- footer -- */
.post-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.post-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--accent-light);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* -- responsive -- */
@media (max-width: 600px) {
  .site-header .inner {
    flex-direction: column;
    gap: 0.25rem;
  }
  .post-header h1 { font-size: 1.3rem; }
  .content { padding: 1.5rem 1rem 3rem; }
  .post-card { padding: 1.2rem; }
}
