:root {
  --bg: #0b0d12;
  --surface: #141822;
  --surface-raised: #1a202c;
  --line: #313a4b;
  --text: #f6f2e9;
  --muted: #acb3bf;
  --accent: #f5a623;
  --accent-strong: #ffd06f;
  --danger: #f27878;
  --max-width: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at top right, #202334 0, var(--bg) 38rem);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
button, select, input, textarea { border-radius: 8px; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-shell { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; background: var(--accent); color: #1a1711; font-weight: 800; text-decoration: none; transition: transform .16s ease; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(246, 242, 233, .15); background: rgba(11, 13, 18, .92); backdrop-filter: blur(16px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: 0 0 auto; color: var(--text); font-weight: 900; font-size: 20px; letter-spacing: .08em; text-decoration: none; }
.brand-news { color: var(--accent); }
.brand-paper { color: var(--text); }
.header-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.header-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; color: var(--muted); font-size: 14px; text-decoration: none; }
.header-nav a:hover, .header-nav a:focus-visible { color: var(--text); text-decoration: underline; }

main { padding-block: clamp(52px, 8vw, 96px); }
.page-intro { max-width: 820px; padding-bottom: clamp(44px, 7vw, 78px); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 700px; margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); line-height: 1.2; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 20px; line-height: 1.35; }
.lead { max-width: 700px; margin: 24px 0 0; color: var(--text); font-size: clamp(18px, 2.3vw, 23px); line-height: 1.58; }
.intro-note { max-width: 760px; margin: 18px 0 0; color: var(--muted); }

.archive-section { padding-top: 4px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--text); }
.list-summary { margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.filter-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1.4fr); gap: 20px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
label, .filter-label { display: block; margin-bottom: 7px; color: var(--text); font-size: 14px; font-weight: 750; }
.search-field input, input, select, textarea { width: 100%; border: 1px solid var(--line); background: #0e1118; color: var(--text); }
.search-field input, input, select { min-height: 46px; padding: 10px 12px; }
textarea { min-height: 120px; padding: 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #778194; }
.category-list { display: flex; flex-wrap: wrap; gap: 7px; }
.category-button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.category-button:hover, .category-button[aria-pressed="true"] { border-color: var(--accent); background: rgba(245, 166, 35, .12); color: var(--accent-strong); }
.archive-notice { margin: 18px 0 0; padding: 13px 15px; border-left: 3px solid var(--accent); background: rgba(245, 166, 35, .08); color: var(--accent-strong); font-size: 14px; }

.qna-list { min-height: 160px; }
.qna-row { width: 100%; display: grid; grid-template-columns: minmax(112px, .8fr) minmax(0, 3fr) minmax(90px, .6fr) minmax(128px, .75fr); gap: 16px; align-items: center; padding: 21px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.qna-row:hover { background: rgba(255, 255, 255, .045); }
.qna-category { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .025em; }
.qna-title { display: block; color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.42; }
.qna-byline { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.qna-answer { font-size: 13px; font-weight: 750; }
.qna-answer.is-answered { color: #9de3bd; }
.qna-answer.is-pending { color: var(--muted); }
.qna-date { color: var(--muted); font-size: 13px; text-align: right; }
.empty-state { margin: 24px 0 0; padding: 34px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.pagination button { min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 750; }
.pagination button:hover:not(:disabled), .pagination button[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.pagination button:disabled { cursor: not-allowed; opacity: .45; }
.pagination-gap { color: var(--muted); }

.qna-detail { margin-top: 26px; padding: clamp(22px, 5vw, 44px); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.text-button { min-height: 44px; margin: -8px 0 20px -8px; padding: 8px; border: 0; background: transparent; color: var(--accent-strong); font-weight: 750; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 16px 0 28px; color: var(--muted); font-size: 14px; }
.detail-category { color: var(--accent); font-weight: 850; }
.detail-block { padding: 22px 0; border-top: 1px solid var(--line); }
.detail-block h3 { margin-bottom: 12px; color: var(--accent-strong); font-size: 14px; letter-spacing: .06em; }
.detail-body { margin: 0; color: var(--text); line-height: 1.85; white-space: pre-wrap; }
.detail-answer-empty { color: var(--muted); }
.official-editor, .moderation-controls { margin-top: 28px; padding: 20px; border: 1px solid rgba(245, 166, 35, .38); background: rgba(245, 166, 35, .07); }
.official-editor p, .moderation-controls p { margin: 7px 0 16px; color: var(--muted); font-size: 14px; }
.official-editor label { margin-top: 18px; }

.ask-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 7vw, 86px); margin-top: clamp(76px, 13vw, 140px); padding-top: clamp(32px, 6vw, 64px); border-top: 2px solid var(--text); }
.ask-copy p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); }
.ask-copy .ask-caution { padding: 13px 14px; border-left: 3px solid var(--accent); background: rgba(245,166,35,.08); color: var(--accent-strong); font-size: 14px; }
.question-form { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); background: var(--surface); }
.question-form > label { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-help { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent-label { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--muted); font-weight: 500; line-height: 1.55; }
.consent-label input { width: 19px; min-width: 19px; min-height: 19px; margin: 3px 0 0; accent-color: var(--accent); }
.form-actions, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions { margin-top: 20px; }
.button { min-height: 44px; padding: 10px 15px; border: 1px solid transparent; font-weight: 800; }
.button:disabled { cursor: wait; opacity: .6; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #1f1708; }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary, .button-quiet { border-color: var(--line); background: transparent; color: var(--text); }
.button-secondary:hover, .button-quiet:hover { border-color: var(--accent); color: var(--accent-strong); }
.button-danger { border-color: #97484a; background: transparent; color: #ffaaaa; }
.button-danger:hover { background: rgba(216, 83, 83, .16); }
.privacy-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; }
.form-status { min-height: 1.65em; margin: 14px 0 0; color: var(--accent-strong); font-size: 14px; font-weight: 650; }
.form-status.is-error { color: #ffaaaa; }

.admin-access { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; padding: 18px 0; border-top: 1px solid var(--line); }
.admin-access h2 { font-size: 17px; }
.admin-access p { max-width: 620px; margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .site-shell { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.site-footer p { margin: 0; text-align: right; }
.site-footer a:not(.brand) { color: var(--accent-strong); }

@media (max-width: 760px) {
  .site-shell { width: min(calc(100% - 28px), var(--max-width)); }
  .header-inner { min-height: auto; padding: 12px 0; align-items: flex-start; }
  .header-nav { gap: 0; }
  .header-nav a { min-height: 44px; padding: 6px 8px; font-size: 12px; }
  .filter-panel, .ask-section { grid-template-columns: 1fr; }
  .qna-row { grid-template-columns: 1fr auto; gap: 7px 12px; padding: 18px 4px; }
  .qna-category { grid-column: 1 / -1; }
  .qna-title { font-size: 16px; }
  .category-button { min-height: 44px; }
  .qna-answer { grid-column: 1; }
  .qna-date { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .section-heading, .admin-access, .site-footer .site-shell { align-items: flex-start; flex-direction: column; }
  .list-summary, .site-footer p { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .brand { font-size: 17px; }
  .header-nav a { padding-inline: 5px; }
}

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