:root {
  color-scheme: light;
  --navy: #0c2340; --navy-soft: #16395f; --blue: #1769e0; --blue-soft: #eaf2ff;
  --ink: #162033; --muted: #667085; --line: #dce3ed; --paper: #fff; --background: #f3f6fa;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); min-width: 320px; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topbar {
  height: 76px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center;
  justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { display: block; width: 120px; height: auto; object-fit: contain; flex-shrink: 0; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand div span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.index-status { padding: 8px 12px; border-radius: 999px; background: #eef3f8; color: var(--navy-soft); font-size: 13px; }
main { min-height: calc(100vh - 150px); }
.hero { background: var(--navy); color: white; padding: 72px max(24px, calc((100vw - 960px) / 2)) 76px; }
.eyebrow { margin: 0 0 15px; color: #8dbfff; font-size: 13px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.12; letter-spacing: -.045em; }
.hero-copy { max-width: 610px; margin: 22px 0 12px; color: #c6d2e1; font-size: 17px; line-height: 1.7; }
.revision-dates { margin: 0 0 28px; color: #d6e5f7; font-size: 14px; line-height: 1.7; }
.search-panel { max-width: 820px; }
.search-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 13px; align-items: center; padding: 9px 9px 9px 19px; border-radius: 14px; background: white; box-shadow: 0 20px 45px rgba(0, 0, 0, .22); }
.search-row svg { width: 24px; fill: none; stroke: #637083; stroke-width: 1.8; stroke-linecap: round; }
.search-row input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; color: var(--ink); font-size: 17px; }
.search-row input::placeholder { color: #9aa4b2; }
.search-row button { border: 0; border-radius: 9px; padding: 12px 24px; background: var(--blue); color: white; font-weight: 700; cursor: pointer; }
.search-row button:hover { background: #0f59c7; }
.search-row:focus-within { outline: 3px solid rgba(93, 159, 255, .5); }
.filters { display: flex; gap: 9px; padding: 0; margin: 18px 0 0; border: 0; }
.filters label { cursor: pointer; }
.filters input { position: absolute; opacity: 0; }
.filters span { display: inline-flex; padding: 9px 15px; border: 1px solid #5d718a; border-radius: 999px; color: #d7e0eb; font-size: 14px; }
.filters input:checked + span { border-color: white; background: white; color: var(--navy); font-weight: 700; }
.filters input:focus-visible + span { outline: 3px solid #80b5ff; outline-offset: 2px; }
.results-wrap { max-width: 960px; margin: 0 auto; padding: 46px 24px 64px; }
.results-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; margin-bottom: 17px; overflow-wrap: anywhere; }
.results-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.results-heading span { color: var(--blue); font-weight: 700; }
.results { display: grid; gap: 12px; }
.result-card { min-width: 0; overflow-wrap: anywhere; padding: 23px 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 2px 6px rgba(12, 35, 64, .04); }
.result-card:hover { border-color: #aebed1; box-shadow: 0 8px 20px rgba(12, 35, 64, .08); }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.badge { padding: 4px 8px; border-radius: 5px; background: var(--blue-soft); color: #1559b7; font-weight: 700; }
.result-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.45; letter-spacing: -.02em; }
.result-card p { margin: 0; color: #4b586b; font-size: 15px; line-height: 1.8; white-space: pre-line; }
mark { border-radius: 3px; padding: 0 2px; background: #ffe58f; color: inherit; }
.empty-state { padding: 52px 20px; border: 1px dashed #c8d1de; border-radius: 14px; text-align: center; color: var(--muted); background: rgba(255, 255, 255, .55); }
.empty-icon { margin: 0 auto 12px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e7edf5; color: var(--navy-soft); font-size: 27px; }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 8px 0 0; line-height: 1.6; }
.error-note { margin-bottom: 12px; padding: 13px 16px; border-radius: 9px; background: #fff3f1; color: #9d2d20; font-size: 14px; }
footer { padding: 25px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; background: white; }
@media (max-width: 640px) {
  .topbar { min-height: 68px; height: auto; padding: 12px 16px; } .index-status { display: none; }
  .brand { gap: 10px; }
  .brand-logo { width: clamp(82px, 24vw, 100px); }
  .brand strong { font-size: 15px; line-height: 1.35; word-break: keep-all; }
  .hero { padding: 42px 16px 46px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero-copy { font-size: 16px; }
  .revision-dates { font-size: 14px; word-break: keep-all; }
  .search-row { grid-template-columns: 22px minmax(0, 1fr); padding: 10px 12px; }
  .search-row button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .filters { flex-wrap: wrap; }
  .filters span { min-height: 44px; align-items: center; }
  .results-wrap { padding: 32px 16px 48px; }
  .result-card { padding: 18px; }
  .result-card p { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .result-card { transition: border-color .18s ease, box-shadow .18s ease; }
}

