:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #1b1b1b;
  --heading: #1d2757;
  --navy: #1d2757;
  --blue: #005ea2;
  --link: #003f7b;
  --bar: #003f7b;
  --gray: #f0f0f0;
  --tab: #efefef;
  --pale: #dce8f4;
  --border: #b9c0c9;
  --amber: #fdb022;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #161b25;
    --ink: #f0f1f4;
    --heading: #e1e9ff;
    --navy: #212d64;
    --blue: #095f9a;
    --link: #a8d5ff;
    --bar: #70b8f3;
    --gray: #222a37;
    --tab: #29313f;
    --pale: #253850;
    --border: #535d70;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161b25;
  --ink: #f0f1f4;
  --heading: #e1e9ff;
  --navy: #212d64;
  --blue: #095f9a;
  --link: #a8d5ff;
  --bar: #70b8f3;
  --gray: #222a37;
  --tab: #29313f;
  --pale: #253850;
  --border: #535d70;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Roboto, Helvetica, "Noto Sans KR", sans-serif;
  overflow-wrap: anywhere;
}
.wrap { width: min(1310px, calc(100% - 48px)); margin-inline: auto; }
a { color: var(--link); min-height: 44px; align-content: center; display: inline-block; max-width: 100%; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.topbar :focus-visible { outline-color: var(--amber); }
p { margin: 0 0 .8rem; }
h1, h2, h3 { color: var(--heading); line-height: 1.35; }
h1 { font-size: 32px; margin: 0 0 18px; padding-bottom: 13px; border-bottom: 2px dashed var(--amber); }
h2 { font-size: 24px; margin: 0 0 .6rem; }
h3 { font-size: 19px; margin: 0 0 .55rem; }
main { padding-block: 24px 36px; }
main article:not(.record) { max-width: 900px; }
main article.detailed { max-width: none; }
.mastline, .notice { display: flex; align-items: center; }
.mastline { min-height: 32px; background: var(--gray); font: 600 13px/1.35 "Source Sans 3", "Noto Sans KR", sans-serif; }
.notice { min-height: 36px; background: var(--blue); color: white; font-size: 14px; }
.identity, .navrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity { min-height: 76px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 27px; font-weight: 700; text-decoration: none; color: var(--heading); }
.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--link);
  background: var(--navy);
  box-shadow: inset 0 0 0 2px white;
  color: white;
  font-size: 22px;
}
.utility, .primary, .quickbar, .tool-tabs, .subtabs { display: flex; flex-wrap: wrap; align-items: stretch; }
.utility a, .primary a, .quickbar a, .tool-tabs a, .subtabs a { padding: 0 14px; text-decoration: none; }
.utility a { font-size: 14px; }
.utility a:hover, .quickbar a:hover, .primary a:hover { text-decoration: underline; }
.navband { background: var(--navy); }
.navrow { min-height: 48px; }
.primary a { color: white; font-weight: 700; }
.site-search {
  flex: 0 1 215px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  isolation: isolate;
  padding-inline: 10px;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}
.site-search::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; background: var(--paper); }
.site-search span { align-self: center; display: grid; place-items: center; width: 36px; height: 36px; margin-right: -10px; color: #1d2757; background: var(--amber); font-size: 23px; }
.quickbar { background: var(--pale); margin-bottom: 18px; }
.quickbar a + a::before { content: "|"; margin-left: -10px; margin-right: 10px; color: var(--heading); }
.tool-tabs { gap: 3px; }
.tool-tabs a, .subtabs a { background: var(--tab); border: 1px solid var(--border); color: var(--heading); font-weight: 700; }
.tool-tabs a:hover, .subtabs a:hover { text-decoration: underline; }
.catalog:not(:has(.chart-anchor:target)) .search-tab,
.chart-anchor:target ~ .tool-tabs .chart-tab,
.subtabs a:first-child { background: var(--navy); color: white; border-color: var(--navy); }
.filter-panel, .visual-panel { padding: 14px 18px; border: 1px solid var(--border); }
.visual-panel { display: none; }
.chart-anchor:target ~ .visual-panel { display: block; }
.chart-anchor:target ~ .filter-panel, .chart-anchor:target ~ .listing { display: none; }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; font-weight: 700; color: var(--heading); }
.filter-panel label { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 4px 16px; cursor: pointer; }
.filter-panel input { accent-color: var(--blue); margin: 0 6px 0 0; }
.catalog:has(input[value="child"]:checked) .home-record,
.catalog:has(input[value="home"]:checked) .child-record:not(:target) { display: none; }
.subtabs { margin-top: 18px; gap: 3px; }
.record { border: 1px solid var(--border); border-top: 4px solid var(--blue); padding: 12px 18px 0; margin-bottom: 16px; }
.record time, .post-meta, .tcap, .answer-src { font-size: 14px; }
.record time { display: block; margin-bottom: 8px; }
.record h2 { font-size: 22px; }
.record-main, .detail-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; }
.record-source { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 10px; }
dl { margin: 0 0 8px; }
dt { color: var(--heading); font-weight: 700; }
dd { margin: 0 0 .45rem; }
.chart { margin: 0; min-width: 0; width: 100%; }
.chart figcaption { background: var(--navy); color: white; font-weight: 700; padding: 6px 10px; }
.chart-wide { max-width: 1114px; }
.chart-wide figcaption { font-size: 24px; }
.chart-scroll, .table-wrap { overflow-x: auto; max-width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-wide svg { min-width: 680px; }
.chart text { fill: var(--ink); font-size: 13px; }
.chart-wide text { font-size: 16px; }
.gridline { fill: none; stroke: var(--border); }
.bar { fill: var(--bar); }
.chart-wide + .tcap { margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
thead { color: white; background: var(--navy); }
th, td { text-align: left; padding: 4px 10px; }
th { height: 31px; line-height: 1.3; }
td { height: 43px; border-bottom: 1px solid var(--border); }
.table-wrap td:not(:first-child) { white-space: nowrap; }
.hl { background: var(--pale); }
.em, .kicker { font-weight: 700; }
.answer, .summary, .calc, .related, .citation, .data-notes { background: var(--gray); padding: 14px 18px; margin-bottom: 14px; }
.data-notes .calc { padding-inline: 0; }
.answer-num { font-size: 32px; color: var(--heading); font-weight: 700; }
.chip-calc { font-size: 13px; padding: 2px 5px; background: var(--pale); color: var(--heading); white-space: nowrap; }
.factbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; background: var(--pale); padding: 4px 12px; margin-bottom: 18px; }
.factbar nav { display: flex; flex-wrap: wrap; gap: 14px; }
.sec { margin-block: 22px; }
.more, .plain { padding-left: 1.35rem; }
blockquote { margin: 0; border-left: 4px solid var(--blue); padding-left: 12px; }
.footbar { background: var(--navy); color: white; padding-block: 12px; font-size: 14px; }
.footbar a { color: white; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .navrow { flex-wrap: wrap; gap: 0; }
  .site-search { flex-basis: 215px; }
  .record-main, .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 560px) {
  main { padding-top: 14px; }
  h1 { font-size: 26px; margin-bottom: 10px; padding-bottom: 10px; }
  .identity { display: block; padding-top: 4px; }
  .brand { font-size: 23px; }
  .utility a, .primary a, .quickbar a, .tool-tabs a, .subtabs a { padding-inline: 6px; font-size: 13px; }
  .utility a:first-child, .primary a:first-child { padding-left: 0; }
  .primary { flex-basis: 100%; }
  .quickbar a + a::before { margin-inline: 0 6px; }
  .quickbar { margin-bottom: 10px; }
  .filter-panel, .visual-panel { padding: 6px 8px; }
  .filter-panel label { font-size: 14px; padding-right: 7px; }
  .subtabs { margin-top: 10px; }
  .record { padding-inline: 9px; }
  .record h2 { font-size: 20px; }
}
@media print {
  .topbar, .factbar nav, .footbar { display: none; }
}
.lede, .answer-desc { color: var(--heading); }
.detail-summary { min-width: 0; }
.source-line { border-top: 1px solid var(--border); padding-top: 8px; }

h1, h2, header .brand {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif;
}
