/* =========================================================
   SecureTicket Global CSS
   Style: Naver-like, Mobile-first, Information-focused
   Control everything with this single file
========================================================= */

/* =====================
   Reset & Base
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #f5f6f7; /* Naver page gray */
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  letter-spacing: -0.15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(3, 199, 90, 0.18);
}

/* =====================
   Layout Containers
===================== */
.header-wrap,
.content-wrap,
.footer-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================
   Header
===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* Brand */
.site-brand .brand-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

/* =====================
   Navigation
===================== */
.menu-toggle {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle:hover {
  background: #f3f4f6;
}

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.main-nav a:hover {
  background: #f3f4f6;
  text-decoration: none;
}

/* Mobile menu open */
body.nav-open .main-nav {
  display: block;
  background: #fff;
  border-top: 1px solid #e6e8eb;
}

/* Desktop nav */
@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .main-nav ul {
    display: flex;
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* =====================
   Main Content
===================== */
main.content-wrap {
  padding-top: 16px;
  padding-bottom: 28px;
}

.content-article {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 10px rgba(0, 0, 0, 0.04);
}

/* Article Header */
.article-header h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1.25;
}

.article-desc {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
}

/* Sections */
section {
  margin-top: 20px;
}

section + section {
  padding-top: 16px;
  border-top: 1px solid #f0f2f4;
}

section h2 {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

section p {
  margin: 0 0 10px 0;
  font-size: 14px;
}

section p:last-child {
  margin-bottom: 0;
}

/* Lists */
ul,
ol {
  margin: 10px 0 10px 18px;
  padding: 0;
  font-size: 14px;
}

li {
  margin: 6px 0;
}

/* Content links (Naver green) */
.content-article a {
  color: #03c75a;
  font-weight: 700;
}

.content-article a:hover {
  color: #02b351;
  text-decoration: underline;
}

/* =====================
   Footer
===================== */
.site-footer {
  background: #fff;
  border-top: 1px solid #e6e8eb;
}

.footer-wrap {
  padding: 20px 16px;
}

.footer-top {
  display: grid;
  gap: 16px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.footer-desc {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* Footer nav */
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

/* Footer bottom */
.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f4;
  display: grid;
  gap: 10px;
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.footer-policy a {
  color: #6b7280;
  font-weight: 700;
}

.footer-policy span {
  color: #d1d5db;
}

.footer-copy p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

/* =====================
   Buttons (future-safe)
===================== */
button {
  font-family: inherit;
  font-weight: 700;
}

.btn-primary {
  background: #03c75a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
}

.btn-primary:hover {
  background: #02b351;
}

/* =====================
   Desktop Refinement
===================== */
@media (min-width: 768px) {
  main.content-wrap {
    padding-top: 22px;
    padding-bottom: 36px;
  }

  .content-article {
    padding: 28px 26px;
    border-radius: 16px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  section h2 {
    font-size: 19px;
  }

  section p,
  ul,
  ol {
    font-size: 15px;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* =====================
   Motion Accessibility
===================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* =========================
   Content Images (SEO Safe)
========================= */

/* 공통 figure */
.content-article figure {
  margin: 16px 0;
}

/* 이미지 기본 */
.content-article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #f3f4f6; /* 로딩 중 깜빡임 방지 */
}

/* 대표 이미지 (H1 아래) */
.article-header figure img {
  border-radius: 12px;
}

/* 섹션 이미지 */
.content-article section figure img {
  border-radius: 10px;
}

/* 모바일 간격 조정 */
@media (max-width: 767px) {
  .content-article figure {
    margin: 14px 0;
  }
}

/* 데스크탑 간격 조정 */
@media (min-width: 768px) {
  .content-article figure {
    margin: 20px 0;
  }
}

