:root {
  color-scheme: light;
  --accent: #1c4bc6;
  --accent-strong: #153998;
  --ink: #13203a;
  --text: #23314a;
  --muted: #526078;
  --line: #d9dfeb;
  --quiet-line: #e9edf3;
  --field: #fff;
  --soft: #f5f7fb;
  --focus: #194bc9;
  --radius: 10px;
  font-family: "Pretendard Variable", Pretendard, SUIT, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p, li, dd { word-break: keep-all; overflow-wrap: anywhere; }
main { flex: 1; width: 100%; }
main:focus { outline: 0; }
button, input, select { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.frame { width: min(100% - 80px, 1080px); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 2;
  inset: 8px auto auto 8px;
  transform: translateY(calc(-100% - 12px));
  padding: 8px 16px;
  background: #fff;
}
.skip:focus { transform: none; }
.site-head { border-bottom: 1px solid var(--quiet-line); }
.head-inner { height: 72px; display: flex; align-items: stretch; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.31rem; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  background: var(--accent);
}
.brand-mark i { width: 3px; height: 10px; background: #fff; border-radius: 1px; margin-top: 3px; }
.brand-mark i:nth-child(2) { height: 15px; margin-top: -2px; }
.head-inner nav { display: flex; align-items: stretch; gap: 29px; }
.head-inner nav a {
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  font-size: .94rem;
  font-weight: 600;
}
.head-inner nav a[aria-current] { color: var(--accent); }
.head-inner nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--accent);
  border-radius: 1px 1px 0 0;
}
.source-nav { display: flex; gap: 6px; align-items: center; margin-left: auto; font-size: .85rem; color: var(--muted); white-space: nowrap; }

.lead { padding: 58px 0 29px; }
.lead h1 { color: var(--ink); font-size: clamp(2.25rem, 4.1vw, 3.2rem); line-height: 1.21; font-weight: 740; letter-spacing: -.037em; }
.lead p { margin-top: 11px; color: var(--muted); font-size: 1.06rem; }
.filter-box { padding: 19px 21px 21px; border: 1px solid var(--line); border-radius: 13px; }
.quick-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.quick-search .primary { min-width: 88px; }
.advanced-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.filter-box label { display: grid; gap: 5px; font-size: .83rem; font-weight: 650; min-width: 0; }
.filter-box select, .filter-box input:not([type="hidden"]) {
  width: 100%;
  height: 45px;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background-color: var(--field);
  font-weight: 450;
  font-size: 1rem;
}
.filter-box input::placeholder { color: var(--muted); opacity: 1; }
.input-icon { position: relative; }
.input-icon::before {
  position: absolute;
  top: 15px;
  left: 12px;
  content: "";
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.input-icon::after {
  position: absolute;
  top: 26px;
  left: 21px;
  content: "";
  height: 5px;
  width: 1.5px;
  transform: rotate(-42deg);
  background: var(--muted);
  pointer-events: none;
}
.filter-box .input-icon input { padding-left: 33px; }
.filter-box select { cursor: pointer; }
.filter-box select:disabled { background: var(--soft); color: var(--muted); cursor: default; }
.advanced-filters { margin-top: 8px; }
.advanced-filters[open] { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--quiet-line); }
.advanced-filters summary { width: fit-content; min-height: 34px; padding: 6px 2px; cursor: pointer; color: var(--accent-strong); font-size: .88rem; font-weight: 650; }
.advanced-fields { margin-top: 8px; }
.institution { position: relative; min-width: 0; }
.institution > label { margin-bottom: 5px; }
.institution-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.institution-input button {
  min-width: 47px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  color: var(--accent-strong);
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.institution-input button:hover, .institution-input button[aria-expanded="true"] { background: var(--soft); }
.institution-options {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 5px) auto auto 0;
  width: max(100%, 365px);
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  box-shadow: 0 6px 20px #13203a1f;
}
.institution-options:has(> .institution-group + .institution-group) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.institution-group { display: flex; flex-direction: column; }
.institution-options > .institution-group + .institution-group { border-left: 1px solid var(--quiet-line); }
.institution-group > .institution-group { border-top: 1px solid var(--quiet-line); margin-top: 5px; }
.institution-group > p, .institution-empty { padding: 6px 9px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.institution-option {
  min-height: 41px;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: .89rem;
  word-break: keep-all;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.institution-option:hover, .institution-option:focus-visible { background: var(--soft); }
.institution-option:focus-visible { outline-offset: -2px; }
.institution-option small { display: block; color: var(--muted); font-size: .75rem; }
.notice-description { grid-column: span 2; }
.job-options { display: grid; grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; }
.advanced-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.deadline-filters {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 0;
  margin: 0;
  min-width: 0;
  border: 0;
}
.deadline-filters legend { margin-bottom: 4px; padding: 0; font-size: .83rem; font-weight: 650; }
.deadline-filters .button { min-height: 45px; padding-inline: 14px; background: var(--field); border-color: var(--line); }
.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .94rem;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { text-decoration: none; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 7px 8px; margin-top: 13px; }
.filter-tag, .reset { font-size: .83rem; padding: 3px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.filter-tag { background: var(--soft); color: var(--accent-strong); }
.filter-tag span { margin-left: 4px; }
.reset { color: var(--muted); }

.results { margin: 32px 0 56px; }
.results-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 0 0 14px; border-bottom: 1px solid var(--ink); }
.results h2, .detail-section h2 { font-size: 1.39rem; line-height: 1.35; color: var(--ink); font-weight: 730; letter-spacing: -.03em; }
.results h2 span { font-size: .94rem; font-weight: 650; color: var(--accent); white-space: nowrap; margin-left: 4px; }
.institution-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.institution-tabs a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.25;
  font-weight: 610;
  white-space: nowrap;
}
.institution-tabs a:hover { color: var(--accent-strong); text-decoration: none; }
.institution-tabs a[aria-current] { color: var(--accent-strong); border-color: #aebff0; background: #eaf0ff; }
.listing { margin: 0; padding: 0; list-style: none; }
.listing-row { border-bottom: 1px solid var(--quiet-line); }
.listing-link { display: grid; grid-template-columns: minmax(0, 1fr) 106px 19px; gap: 20px; align-items: center; padding: 17px 7px 16px 2px; color: var(--text); }
.listing-link:hover { background: var(--soft); text-decoration: none; }
.listing-link:hover h3 { text-decoration: underline; text-underline-offset: .2em; color: var(--accent-strong); }
.record-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .81rem; font-weight: 490; color: var(--muted); line-height: 1.35; }
.agency-type, .stage-tag { color: var(--muted); font-size: .72rem; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; }
.stage-tag { color: var(--accent-strong); border-color: #d2dfff; }
.record h3 { color: var(--ink); font-size: 1.05rem; line-height: 1.45; font-weight: 670; margin: 5px 0 6px; letter-spacing: -.015em; }
.record-meta { display: flex; flex-wrap: wrap; gap: 3px 14px; color: var(--muted); font-size: .82rem; }
.record-fields { color: var(--text); }
.inference { color: var(--muted); font-size: .88em; font-weight: 500; }
.related-count { color: var(--accent); font-weight: 620; }
.record-date { text-align: right; display: grid; justify-items: end; gap: 1px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.record-date strong { color: var(--ink); font-size: 1rem; font-weight: 670; font-variant-numeric: tabular-nums; }
.status { color: var(--muted); padding: 1px 5px; border-radius: 4px; font-size: .71rem; font-weight: 610; white-space: nowrap; }
.status.open, .status.soon { color: var(--accent-strong); background: #eaf0ff; }
.status.closed { background: var(--soft); }
.row-arrow { font-size: 1.22rem; color: var(--muted); text-align: right; }

.blank { padding: 52px 12px; border-bottom: 1px solid var(--quiet-line); text-align: center; color: var(--muted); }
.blank strong, .blank h1 { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.blank p { margin-top: 5px; }
.blank a:not(.button) { text-decoration: underline; }
.blank.error { margin: 30px auto 60px; }
.blank .button { margin-top: 20px; }
.pagination { display: flex; justify-content: center; gap: 4px; padding: 22px 0 3px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pagination span { color: var(--accent-strong); font-weight: 700; background: #eaf0ff; }
.snapshot { flex-basis: 100%; color: var(--muted); font-size: .79rem; margin: 0; }
.stale { display: inline-block; margin-left: 8px; color: #813b00; }

.detail { max-width: 850px; margin: 0 auto 66px; }
.breadcrumbs { margin: 34px 0 22px; }
.breadcrumbs a { color: var(--muted); font-weight: 530; font-size: .9rem; }
.breadcrumbs span { font-size: 1.15em; padding-right: 3px; }
.detail-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.detail-agency { font-size: .98rem; font-weight: 650; color: var(--accent-strong); display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.detail h1 { margin-top: 7px; font-size: clamp(1.85rem, 4.1vw, 2.65rem); line-height: 1.32; font-weight: 730; letter-spacing: -.033em; color: var(--ink); }
.facts { margin: 23px 0; padding: 14px 0; display: grid; grid-template-columns: 1fr 1.5fr 1fr; background: var(--soft); border-radius: var(--radius); }
.facts div { padding: 1px 17px; min-width: 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts .fact-wide { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 8px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 620; color: var(--ink); font-size: .94rem; }
.detail-section { margin-top: 28px; }
.detail-section h2 { padding-bottom: 11px; }
.no-timeline, .summary { padding: 15px 0; border-block: 1px solid var(--quiet-line); }
.no-timeline { color: var(--muted); }
.attachments { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--quiet-line); }
.attachments li { border-bottom: 1px solid var(--quiet-line); }
.attachments a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 45px; padding: 9px 4px; }
.attachments a:hover { background: var(--soft); }
.attachment-arrow { color: var(--muted); }
.summary { white-space: pre-wrap; }
.timeline { margin: 0; padding-left: 0; list-style: none; border-top: 1px solid var(--quiet-line); }
.timeline li { border-bottom: 1px solid var(--quiet-line); }
.timeline a { display: grid; grid-template-columns: 110px minmax(0, 1fr) max-content 16px; gap: 10px; align-items: center; padding: 13px 4px; color: var(--ink); }
.timeline-stage { color: var(--accent-strong); font-weight: 650; font-size: .82rem; }
.timeline time, .timeline-arrow { color: var(--muted); font-size: .81rem; }
.timeline strong { font-size: .94rem; font-weight: 630; }
.timeline-arrow { justify-self: end; }

.site-foot { border-top: 1px solid var(--quiet-line); color: var(--muted); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 0 25px; font-size: .82rem; }
.foot-inner strong { color: var(--ink); font-weight: 650; }
.foot-inner a { color: var(--muted); }
.foot-inner a span { margin-left: 4px; }

@media (max-width: 760px) {
  .frame { width: calc(100% - 36px); }
  .head-inner { height: 62px; gap: 22px; }
  .head-inner nav { gap: 16px; }
  .head-inner nav a { font-size: .86rem; }
  .brand { font-size: 1.13rem; gap: 7px; }
  .brand-mark { height: 26px; width: 26px; border-radius: 6px; }
  .source-nav { display: none; }
  .lead { padding: 31px 0 19px; }
  .lead p { font-size: .95rem; margin-top: 8px; }
  .filter-box { padding: 13px; }
  .quick-search .primary { min-width: 0; padding-inline: 14px; }
  .advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .advanced-fields :is(.workplace, .institution, .notice-description) { grid-column: 1 / -1; }
  .institution-options { width: 100%; }
  .deadline-filters { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .deadline-filters button { grid-column: 1 / -1; justify-self: start; }
  .results { margin-top: 24px; }
  .results-head { gap: 11px; flex-wrap: wrap; }
  .listing-link { gap: 9px; grid-template-columns: minmax(0, 1fr) 70px 10px; padding-right: 1px; }
  .record-top, .record-meta { font-size: .76rem; }
  .record h3 { font-size: 1rem; }
  .record-date strong { font-size: .89rem; }
  .record-date > span { font-size: .7rem; }
  .record-date .status { font-size: .67rem; }
  .row-arrow { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; padding: 3px 13px; }
  .facts div { padding: 7px 0; display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 9px; }
  .facts .fact-wide { padding-top: 7px; margin-top: 0; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .facts dd { margin: 0; }
  .timeline a { grid-template-columns: minmax(0, 1fr) max-content 13px; gap: 2px 8px; }
  .timeline-stage { grid-column: 1 / -1; }
}
@media (max-width: 410px) {
  .results-head { align-items: flex-start; flex-direction: column; padding-bottom: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }
.results h2 .result-label { margin-left: 0; color: inherit; font: inherit; }
.static-error { margin-top: 12px; color: #813b00; }
