/* Shared visual system for the public learning archive. */
:root {
  --bg: #f5f7fa;
  --bg2: #edf1f6;
  --surface: #fff;
  --surface2: #f7f9fc;
  --border: #e1e7ef;
  --text: #172235;
  --text-2: #526176;
  --text-3: #8290a3;
  --accent: #d95735;
  --accent-d: #b94325;
  --blue: #3769a8;
  --shadow: 0 2px 8px rgba(25, 42, 66, .045), 0 12px 32px rgba(25, 42, 66, .045);
  --shadow-h: 0 14px 36px rgba(25, 42, 66, .12);
  --r: 18px;
  --r-s: 12px;
  --hh: 64px;
}

.dark {
  --bg: #111923;
  --bg2: #172230;
  --surface: #192534;
  --surface2: #202f40;
  --border: #2c3c4e;
  --text: #eef3f9;
  --text-2: #b3c0d0;
  --text-3: #8393a7;
  --accent: #f17a57;
  --accent-d: #db6241;
  --blue: #8eb8ee;
  --shadow: 0 2px 8px rgba(0, 0, 0, .16), 0 12px 32px rgba(0, 0, 0, .12);
  --shadow-h: 0 14px 36px rgba(0, 0, 0, .3);
}

html { scroll-padding-top: calc(var(--hh) + 16px); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -.015em;
}
header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
header.scrolled { background: color-mix(in srgb, var(--surface) 94%, transparent); }
nav:not(.breadcrumb) { max-width: 1080px; }
.logo { font-size: 1.75rem; letter-spacing: .025em; }
.icon-btn { border-radius: 10px; }
.login-pill { border-radius: 10px; padding: 8px 15px; }
main { max-width: 1080px; padding: calc(var(--hh) + 30px) 22px 72px; }
.breadcrumb {
  gap: 10px;
  margin-bottom: 20px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: .78rem;
}
.breadcrumb i { opacity: .55; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.archive-hero { margin-bottom: 22px; }
.archive-hero::before { width: 4px; opacity: .8; }
.ci { padding: clamp(24px, 4vw, 40px); }
.eyebrow {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
}
.hero-h1 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.25;
}
.hero-sub, .search-sub { font-size: .92rem; line-height: 1.8; }
.search-box {
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface2);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}
.search-box input { padding: 13px 16px; font-size: .9rem; }
.search-box button { padding: 0 22px; }
.archive-meta-bar {
  padding: 15px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.board-row {
  min-height: 82px;
  gap: 16px;
  padding: 16px 22px;
  border-bottom-color: var(--border);
}
.board-row:hover { background: var(--surface2); }
.board-title-group > div { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.board-title { font-size: .95rem; line-height: 1.55; }
.board-date-sm { font-family: 'Noto Sans KR', sans-serif; font-size: .75rem; }
.board-stat { font-size: .72rem; }
.board-stat .num { font-family: 'Noto Sans KR', sans-serif; font-variant-numeric: tabular-nums; }
.tag-badge {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: .67rem;
  letter-spacing: .01em;
}
.empty-state { padding: 68px 20px; line-height: 1.9; }
.pagination { gap: 8px; margin-top: 26px; }
.pagination a { border-width: 1px; border-radius: 10px; }
.pagination a:hover { transform: translateY(-1px); }
.search-hero { padding: clamp(22px, 4vw, 34px); border-bottom-color: var(--border); }
.search-h1 { font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -.04em; }
.search-box button { min-width: 54px; }
.article-header { padding: clamp(24px, 4vw, 38px); border-bottom-color: var(--border); }
.article-title { font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -.045em; }
.article-meta { gap: 10px 18px; font-family: 'Noto Sans KR', sans-serif; font-size: .78rem; }
.article-meta span { gap: 6px; }
.article-body { padding: clamp(20px, 4vw, 36px); }
.desc-box { border-radius: 0 12px 12px 0; line-height: 1.85; }
.download-card {
  padding: clamp(26px, 5vw, 42px) 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface2), var(--surface));
}
.pdf-icon { margin-bottom: 12px; }
.filename { font-family: 'Noto Sans KR', sans-serif; font-size: .84rem; }
.dl-btn { border-radius: 11px; }
.actions-grid { gap: 12px; }
.act-btn { border-width: 1px; border-radius: 11px; }
.comments-sec { border-top-color: var(--border); }
.comment-date { font-family: 'Noto Sans KR', sans-serif; }
footer {
  margin-top: 16px;
  padding: 32px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.fi { max-width: 1080px; }
.f-name { font-family: 'Noto Sans KR', sans-serif; font-size: .9rem; letter-spacing: .08em; }
.f-meta, .f-addr { color: var(--text-3); font-size: .75rem; line-height: 1.9; }
.f-addr { margin-top: 8px; }
.f-tags { display: none; }
:where(a, button, input):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  main { padding: calc(var(--hh) + 22px) 14px 52px; }
  .ci { padding: 24px 20px; }
  .board-row { min-height: 76px; gap: 10px; padding: 14px 16px; }
  .board-title-group > div { gap: 6px; }
  .board-title { font-size: .88rem; }
  .archive-meta-bar { padding: 13px 16px; }
  .search-hero { padding: 22px 18px; }
  footer { padding: 26px 16px; }
}

@media (max-width: 420px) {
  .board-row { grid-template-columns: minmax(0, 1fr) 48px 52px 48px; }
  .board-stat { font-size: .65rem; }
  .board-stat .num { font-size: .82rem; }
  .search-box button { padding: 0 15px; }
  .actions-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
