:root {
  color-scheme: light;
  --canvas: #eef4fd;
  --surface: #fff;
  --ink: #0d1731;
  --secondary: #354361;
  --line: #c4cee1;
  --soft-line: #d9e1ef;
  --axis: #ecf1f8;
  --accent: #224cf3;
  --accent-hover: #173bd1;
  --selection: #e8eeff;
  --radius: 15px;
  font-family: Inter, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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

.skip-link {
  position: fixed;
  z-index: 3;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 8px 12px;
  background: var(--surface);
}
.skip-link:focus { transform: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masthead {
  background: var(--surface);
  border-bottom: 1px solid #edf1f8;
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 14px;
  padding-inline: 32px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.wordmark .icon { width: 40px; height: 40px; color: var(--accent); }
.edition { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--secondary); }

.page { width: 100%; padding: 33px 18px 36px; }
.intro > h1, .intro > p { margin-inline: 14px; }
.intro h1 { font-size: clamp(34px, 3.7vw, 57px); font-weight: 850; letter-spacing: -.045em; line-height: 1.16; }
.intro > p { margin-top: 8px; color: #26324a; font-size: clamp(16px, 1.5vw, 23px); letter-spacing: -.03em; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 13px 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(468px, 100%);
  background: var(--surface);
  border: 1px solid #a9bad8;
  border-radius: 9px;
}
.mode-switch button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  min-height: 49px;
  font-size: 21px;
  font-weight: 730;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.mode-switch button:hover { background: var(--selection); }
.mode-switch button[aria-pressed="true"] { background: var(--accent); color: white; }
.total { font-size: 20px; font-weight: 750; white-space: nowrap; }

.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.workspace { border-radius: 10px; }
.detail { padding: 22px 16px 21px; }
.detail-top { margin: 0 9px; padding-bottom: 25px; border-bottom: 1px solid #aab9d3; }
.notice-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.agency { color: var(--accent-hover); font-size: 20px; font-weight: 780; letter-spacing: -.035em; }
.notice-heading h2 {
  margin-top: 7px;
  font-size: clamp(30px, 2.85vw, 43px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -.062em;
  overflow-wrap: anywhere;
}
.notice-heading h2:focus:not(:focus-visible) { outline: none; }
.source-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 710;
  white-space: nowrap;
  text-decoration: none;
  transition: background 140ms ease;
}
.source-button:hover { background: var(--selection); }
.source-button .icon { width: 18px; height: 18px; }
.detail-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  font-size: 19px;
  letter-spacing: -.03em;
}
.detail-controls label, .first-exam strong { font-weight: 780; white-space: nowrap; }
.select-shell { position: relative; width: min(100%, 284px); min-width: 0; }
.select-shell .icon { position: absolute; right: 14px; top: calc(50% - 10px); pointer-events: none; }
#field-select {
  width: 100%;
  min-height: 45px;
  appearance: none;
  background: var(--surface);
  border: 1px solid #aebcda;
  border-radius: 8px;
  padding: 7px 37px 7px 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  cursor: pointer;
}
.first-exam {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  min-width: 0;
  margin-inline-start: 5px;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 26px;
}
.is-pending { color: var(--secondary); }
.wbs-heading { margin: 15px 9px 25px; }
.wbs-heading h3 { font-size: 28px; font-weight: 830; letter-spacing: -.045em; }
.chart-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.schedule { width: 100%; table-layout: fixed; border-collapse: collapse; }
.stage-column { width: 19%; }
.date-column { width: 21%; }
.schedule th, .schedule td { text-align: left; vertical-align: middle; }
.schedule thead { background: var(--axis); }
.schedule thead th { padding: 11px 17px; font-size: 18px; font-weight: 760; }
.schedule thead .axis-cell { padding: 0; }
.schedule :is(th, td) + :is(th, td) { border-inline-start: 1px solid var(--line); }
.schedule tbody tr { border-top: 1px solid var(--soft-line); }
.stage-row > th, .schedule-date { font-size: 18px; letter-spacing: -.035em; }
.stage-row > th { font-weight: 720; }
.schedule-date { padding: 9px 10px 9px 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.schedule-date.is-pending::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 8px;
  margin-inline-end: 7px;
  border: 1px dashed currentColor;
  border-radius: 2px;
  vertical-align: .1em;
}
.stage-toggle, .stage-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 9px 8px 9px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: inherit;
  line-height: 1.35;
}
.stage-toggle:hover { background: #f4f7fe; color: var(--accent-hover); }
.stage-toggle .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.stage-toggle[aria-expanded="true"] .icon { transform: none; }
.stage-label { padding-inline-start: 43px; }
.is-child { background: #f8faff; }
.is-child .stage-label { padding-inline-start: 49px; position: relative; }
.is-child .stage-label::before {
  content: "";
  position: absolute;
  inset-inline-start: 33px;
  top: calc(50% - 6px);
  width: 8px;
  height: 7px;
  border-inline-start: 1px solid #8296b8;
  border-bottom: 1px solid #8296b8;
}
.stage-note { background: #f7f9fe; }
.stage-note td { padding: 7px 16px 8px 42px; font-size: 14px; color: var(--secondary); }
.stage-note td > * + * { margin-inline-start: 8px; }
.note-source { font-weight: 700; }
.stage-note a, .source-note a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.stage-note a:hover, .source-note a:hover { color: var(--accent-hover); }

#axis { display: grid; grid-template-columns: repeat(var(--week-count), minmax(0, 1fr)); }
#axis span {
  padding: 11px 3px;
  text-align: center;
  white-space: nowrap;
  font-weight: 680;
  font-size: clamp(12px, 1.2vw, 18px);
  font-variant-numeric: tabular-nums;
}
.schedule td.axis-cell { padding: 0; }
.plot {
  position: relative;
  min-height: 48px;
  background: linear-gradient(to right, var(--soft-line) 1px, transparent 1px) 0 0 / calc(100% / var(--week-count)) 100%;
}
.mark { position: absolute; top: 50%; display: block; background: var(--accent); }
.mark.is-period { height: 16px; transform: translateY(-50%); border-radius: 8px; }
.mark.is-point { width: 13px; height: 13px; transform: translate(-50%, -50%) rotate(45deg); }
.is-child .mark { background: #4e6cce; opacity: .85; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 17px 10px 0; font-size: 17px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 12px; }
.chart-legend i { display: inline-block; }
.legend-period { width: 56px; height: 12px; border-radius: 8px; background: var(--accent); }
.legend-point { width: 12px; height: 12px; transform: rotate(45deg); background: var(--accent); }
.legend-pending { width: 38px; height: 12px; border: 1px dashed #415272; border-radius: 3px; }
.source-note { display: flex; flex-wrap: wrap; gap: 4px 13px; margin: 18px 10px 0; color: var(--secondary); font-size: 14px; }
.load-error { padding: 24px; color: #962c39; }

@media (max-width: 1180px) {
  .stage-column { width: 24%; }
  .date-column { width: 27%; }
  .notice-heading h2 { font-size: clamp(25px, 3vw, 38px); }
  .schedule-date, .stage-row > th { font-size: 16px; }
  #axis span { font-size: 12px; }
}

@media (max-width: 900px) {
  .masthead-inner { padding-inline: 25px; }
  .first-exam { padding-inline-start: 0; border: 0; margin: 0; }
  .select-shell { width: min(100%, 240px); }
  .chart-legend { gap: 8px 17px; font-size: 15px; }
  .legend-period { width: 32px; }
}

@media (max-width: 760px) {
  .masthead-inner { min-height: 56px; padding-inline: 16px; }
  .wordmark { font-size: 20px; gap: 7px; }
  .wordmark .icon { width: 28px; height: 28px; }
  .edition { font-size: 12px; }
  .page { padding: 22px 12px 20px; }
  .intro h1 { font-size: clamp(29px, 8vw, 40px); }
  .intro > p { font-size: 15px; word-break: keep-all; }
  .toolbar { margin: 17px 0 17px; padding: 8px; flex-wrap: wrap; }
  .intro > h1, .intro > p { margin-inline: 4px; }
  .mode-switch { width: 100%; }
  .mode-switch button { min-height: 44px; font-size: 16px; }
  .total { font-size: 14px; }
  .panel { border-radius: 11px; }
  .detail { padding: 15px 10px 14px; }
  .detail-top { margin-inline: 3px; padding-bottom: 15px; }
  .notice-heading { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .notice-heading h2 { margin-top: 2px; font-size: clamp(23px, 6.4vw, 34px); }
  .agency { font-size: 16px; }
  .source-button { font-size: 14px; padding: 5px 8px; }
  .detail-controls { margin-top: 14px; gap: 7px 10px; font-size: 15px; }
  .select-shell { width: min(calc(100% - 76px), 280px); }
  #field-select { min-height: 42px; }
  .first-exam { width: 100%; }
  .wbs-heading { margin: 10px 3px 10px; }
  .wbs-heading h3 { font-size: 23px; }
  .schedule { min-width: 670px; }
  .stage-column { width: 125px; }
  .date-column { width: 150px; }
  .schedule thead th, .schedule-date { padding-inline: 9px; }
  .schedule thead th, .stage-row > th, .schedule-date { font-size: 14px; }
  .stage-toggle, .stage-label { min-height: 43px; padding-inline-start: 9px; }
  .stage-label { padding-inline-start: 32px; }
  .is-child .stage-label { padding-inline-start: 29px; }
  .is-child .stage-label::before { inset-inline-start: 15px; }
  .stage-note td { font-size: 13px; padding-inline: 10px; }
  .source-note { margin: 11px 3px 0; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.toolbar-status { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.pending-toggle {
  padding: 6px 12px;
  border: 1px dashed #7588ac;
  color: #334970;
  border-radius: 7px;
  background: var(--surface);
  font-weight: 680;
  white-space: nowrap;
}
.pending-toggle:hover, .pending-toggle[aria-pressed="true"] { background: var(--selection); }
.scope-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 23px;
  align-items: center;
  padding: 17px 27px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fd;
  border-radius: 10px 10px 0 0;
}
#breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; min-width: 0; }
#breadcrumb .icon { width: 19px; height: 19px; color: #526483; }
.scope-link, .scope-current { font-size: 21px; font-weight: 760; letter-spacing: -.025em; }
.scope-link { background: transparent; border: 0; padding: 2px 0; color: var(--accent-hover); }
.scope-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.scope-current:only-child { color: var(--accent-hover); }
#scope-hint { color: var(--secondary); font-size: 18px; }
#scope-hint:empty { display: none; }
.overview { padding: 22px 27px 27px; }
.overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 13px 25px; margin-bottom: 24px; }
.overview-heading h2 {
  font-size: clamp(26px, 2.55vw, 41px);
  line-height: 1.24;
  font-weight: 830;
  letter-spacing: -.046em;
}
.overview-heading h2:focus:not(:focus-visible) { outline: none; }
.overview-heading p { margin-top: 7px; color: var(--secondary); font-size: 19px; word-break: keep-all; }
.overview-note { margin-top: 24px; color: var(--secondary); font-size: 17px; }
.chart-unit { margin-bottom: 27px; color: var(--secondary); font-size: 18px; font-weight: 670; }

.distribution { --plot-height: clamp(190px, 25vh, 250px); --axis-gutter: 66px; --plot-headroom: 38px; }
.distribution-graphic { position: relative; padding-inline-start: var(--axis-gutter); padding-top: var(--plot-headroom); }
.distribution-grid { position: absolute; inset: var(--plot-headroom) 0 auto var(--axis-gutter); height: var(--plot-height); border-inline-start: 1px solid #94a3bb; pointer-events: none; }
.grid-line { position: absolute; inset-inline: 0; height: 1px; background: var(--soft-line); }
.grid-base { background: #94a3bb; }
.grid-line span { position: absolute; right: calc(100% + 13px); top: 0; transform: translateY(-50%); font-size: 16px; font-variant-numeric: tabular-nums; color: var(--secondary); }
.distribution-columns { display: grid; grid-template-columns: repeat(var(--column-count), minmax(0, 1fr)); }
.distribution-column {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-rows: var(--plot-height) auto;
  align-items: end;
  justify-items: center;
  min-width: 0;
  padding: 0 0 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  transition: background-color 140ms ease;
}
.distribution-column:hover, .distribution-column:focus-visible { background: #dbe5ff75; }
.column-plot {
  --bubble-diameter: 7px;
  --bubble-limit: 64px;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  container-type: inline-size;
}
.has-count .column-plot { --bubble-diameter: calc(var(--bubble-limit) * var(--bubble-scale)); }
@supports (width: 1cqi) {
  .column-plot { --bubble-limit: min(64px, 70cqi); }
}
.column-bubble {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: var(--point-height);
  width: var(--bubble-diameter);
  height: var(--bubble-diameter);
  transform: translate(-50%, 50%);
  border: 1px solid #8c9ab4;
  border-radius: 50%;
  background: var(--surface);
}
.has-count .column-bubble { background: var(--accent); border-color: var(--accent-hover); }
.column-count {
  position: absolute;
  inset-inline: 0;
  inset-block-end: calc(var(--point-height) + var(--bubble-diameter) / 2 + 5px);
  font-weight: 700;
  font-size: 17px;
  color: #67748d;
  text-align: center;
  white-space: nowrap;
}
.has-count .column-count { color: var(--accent-hover); font-size: 19px; font-weight: 820; }
.column-label { padding-block-start: 7px; color: var(--ink); font-size: 18px; font-weight: 700; white-space: nowrap; }

.posting-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; font-weight: 700; }
.posting-picker select {
  min-height: 40px;
  max-width: min(100%, 270px);
  border: 1px solid #aebcda;
  background: var(--surface);
  border-radius: 7px;
  padding: 4px 8px;
  font-weight: 620;
}
.result-pages { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-bottom: 12px; color: var(--secondary); }
.result-count { margin-inline-end: auto; font-weight: 690; }
.page-button { padding: 5px 9px; border: 1px solid #aebcda; border-radius: 6px; background: var(--surface); }
.page-button:disabled { cursor: default; color: #737f92; opacity: .65; }
.page-button:not(:disabled):hover { background: var(--selection); }
.page-number { font-variant-numeric: tabular-nums; }
.timeline-scroll { position: relative; max-width: 100%; overflow-x: auto; scrollbar-color: #a3b1cb #eff3fa; }
.week-table { width: 100%; min-width: 740px; table-layout: fixed; border-collapse: collapse; }
.week-table :is(th, td) { padding: 0; text-align: left; }
.week-table :is(th, td) + :is(th, td) { border-inline-start: 1px solid var(--line); }
.week-table thead { background: var(--axis); }
.week-table tbody tr { border-top: 1px solid var(--line); }
.week-table .week-posting-heading { width: clamp(205px, 26vw, 365px); padding: 11px 17px; font-size: 18px; }
.week-day-grid, .week-plot { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week-day-grid > span { padding: 11px 3px; text-align: center; font-size: clamp(13px, 1.25vw, 18px); white-space: nowrap; }
.week-day-grid > span + span { border-inline-start: 1px solid var(--line); }
.week-row-title { display: grid; justify-items: start; gap: 3px; padding: 13px 16px; overflow-wrap: anywhere; }
.week-notice {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 20px;
  font-weight: 790;
}
.week-notice:hover { color: var(--ink); }
.week-notice-caption { color: var(--secondary); font-size: 15px; font-weight: 550; }
.week-track-caption { color: #334a78; font-size: 14px; font-weight: 570; }
.week-plot {
  align-content: center;
  grid-auto-rows: minmax(28px, auto);
  gap: 5px 0;
  min-height: 91px;
  padding-block: 10px;
  background: linear-gradient(to right, var(--soft-line) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%;
}
.week-range, .week-point { white-space: nowrap; min-width: 0; font-size: 14px; font-weight: 700; }
.week-range {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  margin-inline: 4px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}
.week-range.continues-left { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 0; }
.week-range.continues-right { border-start-end-radius: 0; border-end-end-radius: 0; margin-inline-end: 0; }
.week-point { display: flex; align-items: center; gap: 5px; padding-inline: 7px 4px; }
.week-point::before { content: ""; flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: var(--accent); }
.week-event-label { overflow: hidden; text-overflow: ellipsis; }
.week-legend { padding-top: 11px; margin-top: 14px; border-top: 1px solid var(--soft-line); }
.no-schedules { padding: 22px 0; color: var(--secondary); border-top: 1px solid var(--soft-line); }
.pending-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soft-line); }
.pending-list li + li { border-top: 1px solid var(--soft-line); }

@media (max-width: 760px) {
  .toolbar-status { gap: 5px 10px; margin-inline-start: auto; }
  .pending-toggle { padding: 3px 7px; font-size: 12px; }
  .scope-bar { min-height: 0; padding: 11px 12px; gap: 3px 10px; }
  .scope-current, .scope-link { font-size: 15px; }
  #scope-hint { font-size: 13px; }
  #breadcrumb { gap: 2px 5px; }
  #breadcrumb .icon { width: 14px; height: 14px; }
  .overview { padding: 15px 12px 18px; }
  .overview-heading { flex-wrap: wrap; margin-bottom: 14px; }
  .overview-heading p, .overview-note { font-size: 14px; }
  .overview-note { margin-top: 16px; }
  .chart-unit { font-size: 13px; margin-bottom: 21px; }
  .distribution { --plot-height: 170px; --axis-gutter: 38px; --plot-headroom: 25px; }
  .column-plot { --bubble-limit: 17px; }
  @supports (width: 1cqi) {
    .column-plot { --bubble-limit: min(43px, 70cqi); }
  }
  .grid-line span { right: calc(100% + 5px); font-size: 11px; }
  .column-count, .has-count .column-count, .column-label { font-size: clamp(9px, 2.65vw, 13px); }
  .distribution-month .column-label { font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
  .posting-picker { font-size: 14px; }
  .week-table { min-width: 635px; }
  .week-table .week-posting-heading { width: 154px; padding-inline: 10px; font-size: 15px; }
  .week-day-grid > span { font-size: 12px; }
  .week-row-title { padding: 10px; }
  .week-notice { font-size: 16px; }
  .week-notice-caption, .week-track-caption { font-size: 12px; }
  .week-range, .week-point { font-size: 12px; }
  .result-pages { gap: 5px 7px; font-size: 13px; }
  .result-count { flex-basis: 100%; }
}

@media (max-width: 540px) {
  .distribution-year .column-count { visibility: hidden; }
}

@media (max-width: 380px) {
  .mode-switch button { padding-inline: 7px; }
  .toolbar { gap: 6px; }
}
