/* ── CSS Custom Properties ─────────────────────���───────── */
:root {
  --bg:            #FAFAF8;
  --bg-panel:      #FFFFFF;
  --bg-subtle:     #F5F2ED;
  --text:          #1A1A1A;
  --text-secondary:#6B7280;
  --accent:        #1c5d8f;
  --accent-soft:   #dbe8f3;
  --warm:          #8a6742;
  --warm-soft:     #f0e5d6;
  --border:        #E5E5E5;
  --border-warm:   #dfd5c8;
  --shadow:        0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:     0 8px 24px rgba(0,0,0,0.06);

  --font-serif:    'Noto Serif KR', Georgia, 'Times New Roman', serif;
  --font-sans:     'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

/* ── Reset & Base ──────────────────��───────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

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

/* ── Header ────────────────────────────────────────────── */
.site-header {
  padding: 32px 0 24px;
}

.header-brand {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.header-date {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.header-nav a {
  color: var(--text-secondary);
  font-weight: 500;
}
.header-nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Section Titles ───────────────────────────��────────── */
.section-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 20px 0 12px;
}

.section-count {
  font-weight: 400;
  color: var(--border);
  margin-left: 8px;
}

/* Category divider — colored bar with label */
.category-divider {
  margin: 36px 0 0;
  padding: 14px 20px;
  background: var(--accent);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.category-divider:first-of-type {
  margin-top: 20px;
}

.category-label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.category-count {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

/* ── Briefing Cards ────────────────────────────────────── */
.briefing-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.briefing-card {
  padding: 20px 24px;
  background: var(--bg-panel);
}

.briefing-card:first-child { padding-top: 24px; }
.briefing-card:last-child { padding-bottom: 24px; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag-category {
  background: var(--accent-soft);
  color: #17395d;
}

.tag-jurisdiction {
  background: var(--warm-soft);
  color: #5c4020;
}

.tag-phase {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}
.card-title a:hover { color: var(--accent); }

.card-title-en {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -2px 0 6px;
  line-height: 1.4;
}

.card-source {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.card-summary {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.card-summary li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.card-summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-warm);
}

.card-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.card-detail strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Article Detail Page ─────────────────────────────��─── */
.article-detail {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.article-detail .card-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.detail-field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.detail-field p {
  margin: 0;
  font-size: 14px;
}

.detail-field strong {
  display: inline-block;
  min-width: 100px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── Archive ──────────────────────────────��────────────── */
.archive-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.archive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-panel);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.1s;
}

.archive-row:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}

.archive-count {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 13px;
}

/* ── Empty State ─────────────────────��─────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 24px 0 48px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────��──────── */
@media (min-width: 640px) {
  .header-date { font-size: 24px; }
  .card-title { font-size: 20px; }
  .article-detail .card-title { font-size: 28px; }
  .article-detail { padding: 40px; }
}

@media (max-width: 639px) {
  .briefing-card { padding: 16px 18px; }
  .archive-row { padding: 14px 18px; }
  .article-detail { padding: 20px; border-radius: 8px; }
}
