/* 공용 콘텐츠 페이지 스타일 (about·contact·아티클) — guide.html 스타일과 통일 */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
h2[id],
h3[id] {
  scroll-margin-top: 20vh;
}
body {
  margin: 0;
  font-family: Pretendard, system-ui, -apple-system, sans-serif;
  color: #1f2937;
  line-height: 1.75;
  background: #fff;
}
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid #ececec;
  z-index: 99;
}
.nav a.home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  text-decoration: none;
}
.nav .spacer {
  flex: 1;
}
.nav a.cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid #d6e1ff;
  border-radius: 999px;
  background: #eff4ff;
}
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 4rem;
}
.crumb {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0.4rem 0 0.2rem;
}
.crumb a {
  color: #9ca3af;
  text-decoration: none;
}
h1 {
  font-size: 1.55rem;
  margin: 0.6rem 0 0.4rem;
}
.lead {
  color: #4b5563;
  margin: 0 0 1.5rem;
}
.updated {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: -0.2rem 0 1.4rem;
}
h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 0.6rem;
}
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
  padding-left: 0.6rem;
  border-left: 3px solid #2563eb;
}
ul,
ol {
  padding-left: 1.3rem;
}
li {
  margin-bottom: 0.4rem;
}
p {
  margin: 0.6rem 0;
}
a {
  color: #2563eb;
}
.toc {
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.6rem;
}
.toc b {
  font-size: 0.85rem;
  color: #374151;
}
.toc ol {
  margin: 0.5rem 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  margin-bottom: 0.25rem;
}
.toc a {
  text-decoration: none;
}
.note {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0.7rem 0;
  font-size: 0.9rem;
}
.warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0.7rem 0;
  font-size: 0.9rem;
  color: #9a3412;
}
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-size: 1.05rem;
}
.phase {
  font-weight: 700;
  margin: 1rem 0 0.3rem;
  color: #111;
}
table.terms {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
table.terms th,
table.terms td {
  border: 1px solid #e8e8ee;
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
table.terms th {
  background: #f7f7f7;
}
.faq {
  border: 1px solid #e8e8ee;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq > summary::-webkit-details-marker {
  display: none;
}
.faq > summary::after {
  content: "+";
  color: #2563eb;
  font-size: 1.2rem;
}
.faq[open] > summary::after {
  content: "−";
}
.faq > summary:hover {
  background: #f8fafc;
}
.faq > p {
  margin: 0;
  padding: 0 1rem 0.95rem;
  color: #4b5563;
}
.src {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.disclaimer {
  margin-top: 0.7rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: #92400e;
  background: #fff7ed;
  border-radius: 8px;
}
/* 관련 글 */
.related {
  margin-top: 2.5rem;
  border-top: 1px solid #ececec;
  padding-top: 1.4rem;
}
.related b {
  font-size: 0.9rem;
  color: #374151;
}
.related ul {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
}
.related li {
  margin-bottom: 0.5rem;
}
.related a {
  text-decoration: none;
  font-weight: 600;
}
.related span {
  display: block;
  font-size: 0.83rem;
  color: #6b7280;
  font-weight: 400;
}
.back {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 600;
  text-decoration: none;
}
/* 맨 위로 FAB */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 50;
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: #1d4ed8;
}
