/* 북마크 관리자 공개 페이지 스타일시트
   Bookmark Manager public pages stylesheet
   외부 리소스 요청 없음 (No external requests: no fonts, no scripts, no images). */

:root {
  --color-bg: #ffffff;
  --color-surface: #f6f6f8;
  --color-border: #d9d9e0;
  --color-text: #1c1c21;
  --color-text-muted: #5d5d6b;
  --color-primary: #2f6fed;
  --color-danger: #d4382c;
  --color-success: #1e8a4c;

  --font-family: "Pretendard Variable", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-hero: 28px;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a1e;
    --color-surface: #242429;
    --color-border: #3a3a42;
    --color-text: #ececf1;
    --color-text-muted: #a2a2b0;
    --color-primary: #6ba1ff;
    --color-danger: #ff7a6e;
    --color-success: #5cc98a;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  font-weight: var(--font-weight-regular);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--color-primary);
}

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

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  text-decoration: none;
  color: var(--color-text);
}

.brand-en {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header nav a {
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--color-text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header nav a[aria-current="page"] {
  color: var(--color-primary);
}

.lang-tag {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
  margin-left: 4px;
}

/* 본문 / Main content */
main {
  padding: 40px 0 60px;
}

.hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: var(--font-size-hero);
  line-height: 1.4;
  margin: 0 0 8px;
}

.hero h2.en-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

h1 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-top: 36px;
  margin-bottom: 8px;
}

h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin: 20px 0 6px;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

/* 한/영 병기 블록 / Bilingual blocks */
.en {
  color: var(--color-text-muted);
}

.bilingual-block + .bilingual-block {
  margin-top: 20px;
}

.en-subtitle {
  font-weight: var(--font-weight-regular);
  margin-top: -4px;
}

.tight-top {
  margin-top: 8px;
}

.flush-top {
  margin-top: 0;
}

/* 카드 / Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.fact-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

.fact-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.fact-list strong {
  display: block;
  margin-bottom: 4px;
}

/* 버튼 / Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
}

.btn-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 8px;
}

.cta {
  margin: 24px 0;
}

/* 표 / Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: var(--font-size-base);
}

caption {
  text-align: left;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

th,
td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-surface);
  font-weight: var(--font-weight-semibold);
}

/* FAQ */
details {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--color-surface);
}

summary {
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

details[open] summary {
  margin-bottom: 8px;
}

details p {
  margin: 8px 0;
}

/* 알림 상자 / Notice box */
.notice {
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

/* 푸터 / Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.site-footer .container {
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer p {
  margin: 0 0 6px;
}

/* 반응형 / Responsive breakpoints (375 / 768 / 1280) */
@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 22px;
  }
}

@media (min-width: 768px) {
  main {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
