/* 상태 배지 */
.status-badge {
  display: inline-block;
  padding: 0.1em 0.65em;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-active     { background: #e6f4ea; color: #1e6b34; border-color: #a8d5b5; }
.status-delayed    { background: #fff4e0; color: #8a5300; border-color: #f2c77a; }
.status-deprecated { background: #fdecdf; color: #9a3d00; border-color: #f0b48a; }
.status-ended      { background: #fde8e8; color: #9b1c1c; border-color: #f1a9a9; }

[data-md-color-scheme="slate"] .status-active     { background: #173a24; color: #9ee0b2; border-color: #2d6b42; }
[data-md-color-scheme="slate"] .status-delayed    { background: #3d2c0b; color: #f5cf86; border-color: #7a5a1a; }
[data-md-color-scheme="slate"] .status-deprecated { background: #3f2310; color: #f6b88e; border-color: #80461f; }
[data-md-color-scheme="slate"] .status-ended      { background: #401818; color: #f5a9a9; border-color: #7f2e2e; }

/* 공지 구분 */
.level-critical { color: #c62828; font-weight: 700; }
.level-warning  { color: #b26a00; font-weight: 700; }
.level-info     { color: var(--md-default-fg-color--light); }
[data-md-color-scheme="slate"] .level-critical { color: #ff8a80; }
[data-md-color-scheme="slate"] .level-warning  { color: #ffcc80; }

.verified {
  margin-left: 0.6em;
  font-size: 0.78em;
  color: var(--md-default-fg-color--light);
}

/* 인용문 박스 */
.citation-text {
  padding: 0.7em 0.9em;
  border-left: 3px solid var(--md-accent-fg-color);
  background: var(--md-code-bg-color);
  font-size: 0.85em;
  line-height: 1.6;
  margin-bottom: 0.6em;
}

/* 표 안 줄바꿈 정리 */
.md-typeset table:not([class]) td:first-child { white-space: nowrap; }

/* 데이터셋 페이지의 "알림 받기" 링크 */
.subscribe-link {
  margin-left: 0.8em;
  font-size: 0.78em;
  white-space: nowrap;
}
.subscribe-link::before { content: "🔔 "; }

/* 알림 신청 · 데이터셋 제안 폼 */
.cdg-form { max-width: 40rem; margin: 1.2em 0 2em; }
.cdg-form fieldset {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  padding: 0.6em 1em 0.9em;
  margin: 0 0 1em;
}
.cdg-form legend { font-weight: 700; padding: 0 0.3em; }
.cdg-form .check {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.25em 0;
  cursor: pointer;
}
.cdg-form .check input { flex: none; transform: translateY(0.1em); }
.cdg-form .check-all {
  border-bottom: 1px dashed var(--md-default-fg-color--lightest);
  margin-bottom: 0.3em;
  padding-bottom: 0.45em;
}
.cdg-form .check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0 1em;
}
.cdg-form .hint, .md-typeset p.hint {
  color: var(--md-default-fg-color--light);
  font-size: 0.85em;
}
.cdg-form .field { display: block; margin: 0.4em 0 0.8em; font-weight: 600; }
.cdg-form .field em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.8em;
  color: var(--md-accent-fg-color);
  margin-left: 0.3em;
}
.cdg-form input[type="email"],
.cdg-form input[type="text"],
.cdg-form input[type="search"],
.cdg-form input[type="url"],
.cdg-form select,
.cdg-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35em;
  padding: 0.55em 0.7em;
  font: inherit;
  font-weight: 400;
  color: var(--md-default-fg-color);
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 0.3rem;
}
.cdg-form input:focus, .cdg-form select:focus, .cdg-form textarea:focus {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 1px;
}
.cdg-form .consent { margin: 0.2em 0 1em; }
.cdg-form .form-actions { display: flex; flex-wrap: wrap; gap: 0.6em; }
.cdg-form .md-button { cursor: pointer; }
.form-message { min-height: 1.4em; margin-top: 0.8em; font-size: 0.9em; }
.form-message.error   { color: #c62828; }
.form-message.success { color: #1e6b34; }
.form-message.info    { color: var(--md-default-fg-color--light); }
[data-md-color-scheme="slate"] .form-message.error   { color: #ff8a80; }
[data-md-color-scheme="slate"] .form-message.success { color: #9ee0b2; }

/* 변수 목록: 넓은 화면에서 2단 */
.var-list ul { columns: 2; column-gap: 2rem; margin-top: 0.3em; }
.var-list li { break-inside: avoid; margin-bottom: 0.25em; }
@media (max-width: 44em) { .var-list ul { columns: 1; } }

/* 알림 신청 폼: 분야 제목 */
.cdg-form .check-group-title {
  margin: 0.8em 0 0.2em;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--md-default-fg-color--light);
  letter-spacing: 0.04em;
}

/* 접힌 목록(이미 있는 데이터셋) */
details.hint { margin: 0.6em 0 1em; }
details.hint summary { cursor: pointer; }

/* ── 데이터셋 페이지 상단 동작 버튼 ───────────────────── */
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0.2em 0 1.2em; }
.md-typeset .act {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.25em 0.75em; border-radius: 999px; font-size: 0.78em;
  border: 1px solid var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color--light); text-decoration: none;
}
.md-typeset .act:hover { border-color: var(--md-accent-fg-color); color: var(--md-accent-fg-color); }
.act-subscribe::before { content: "🔔"; }
.act-compare::before { content: "⇄"; }
.act-report::before { content: "⚠"; }

/* 모든 페이지 하단 오류 신고 줄 */
.report-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em;
  margin-top: 2.5em; padding: 0.8em 1em; border-radius: 0.4rem;
  background: var(--md-code-bg-color); font-size: 0.8em;
}
.report-bar .hint { color: var(--md-default-fg-color--light); }

/* ── 변수 시간 특성 배지 ───────────────────────────────── */
.kind {
  display: inline-block; padding: 0 0.5em; margin-left: 0.15em;
  border-radius: 0.25rem; font-size: 0.72em; font-weight: 700; line-height: 1.6;
  white-space: nowrap; vertical-align: 0.08em;
}
.kind-instant { background: #e8eefc; color: #2443a3; }
.kind-mean    { background: #e5f5ef; color: #17694a; }
.kind-accum   { background: #fdeee0; color: #9a4a00; }
.kind-max, .kind-min { background: #f6e8f8; color: #7c2f8c; }
.kind-static  { background: #eceff1; color: #455a64; }
[data-md-color-scheme="slate"] .kind-instant { background: #1d2a52; color: #a9bdf5; }
[data-md-color-scheme="slate"] .kind-mean    { background: #163a2d; color: #95dcbc; }
[data-md-color-scheme="slate"] .kind-accum   { background: #43290f; color: #f6c08c; }
[data-md-color-scheme="slate"] .kind-max, [data-md-color-scheme="slate"] .kind-min { background: #3b1f42; color: #e3b3ec; }
[data-md-color-scheme="slate"] .kind-static  { background: #2b3237; color: #b8c4cb; }
.kind-legend { font-size: 0.82em; line-height: 2; }
.kind-legend .kind { margin-right: 0.2em; }

/* ── 표 가로 스크롤 ─────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 1em 0; }
.md-typeset .table-scroll table { display: table; margin: 0; }

/* ── 중요 공지 필터 ─────────────────────────────────────── */
.notice-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4em 1.4em; max-width: none; margin: 1em 0 0.4em; }
.notice-filter .field { margin: 0; min-width: 16rem; }
.notice-filter .nf-levels { display: flex; align-items: center; gap: 0.9em; padding-bottom: 0.4em; }
.notice-filter .nf-label { font-weight: 600; font-size: 0.9em; }
.notice-filter #nf-count { margin: 0 0 0.45em; }
#notice-table td.nowrap { white-space: nowrap; }

/* ── 자료 비교 ──────────────────────────────────────────── */
.compare-controls { max-width: none; }
.cmp-selects { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 1em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: -0.3em; }
.md-typeset .chip {
  padding: 0.15em 0.75em; border-radius: 999px; font-size: 0.78em; cursor: pointer;
  border: 1px solid var(--md-default-fg-color--lightest); background: var(--md-default-bg-color);
  color: var(--md-default-fg-color--light);
}
.md-typeset .chip:hover { border-color: var(--md-accent-fg-color); color: var(--md-accent-fg-color); }
#cmp-table th[scope="row"] { white-space: nowrap; vertical-align: top; }
#cmp-table td { vertical-align: top; min-width: 12rem; }
.md-typeset .cmp-vars { margin: 0; padding-left: 1em; }
.md-typeset .cmp-vars li { margin: 0 0 0.45em; }
.cmp-var-row { background: var(--md-code-bg-color); }

/* ── 면책 문구 ──────────────────────────────────────────── */
.cdg-disclaimer { margin: 0.4em 0; max-width: 46rem; line-height: 1.6; opacity: 0.85; }
.cdg-generator { opacity: 0.7; }

/* ── 정렬 가능한 표 ─────────────────────────────────────── */
.md-typeset th.sort-th { cursor: pointer; user-select: none; white-space: nowrap; }
.md-typeset th.sort-th::after {
  content: "↕"; margin-left: 0.35em; font-size: 0.85em; opacity: 0.35;
}
.md-typeset th.sort-th[aria-sort="ascending"]::after { content: "▲"; opacity: 0.9; color: var(--md-accent-fg-color); }
.md-typeset th.sort-th[aria-sort="descending"]::after { content: "▼"; opacity: 0.9; color: var(--md-accent-fg-color); }
.md-typeset th.sort-th:hover, .md-typeset th.sort-th:focus-visible { color: var(--md-accent-fg-color); }
.md-typeset .list-table table { width: 100%; }
.md-typeset .list-table td.col-res { min-width: 8rem; max-width: 16rem; font-size: 0.92em; }
.md-typeset .list-table td.nowrap { white-space: nowrap; }

/* ── 목록 표에서 체크해서 비교 ─────────────────────────── */
.md-typeset .list-table .pick-col { width: 3rem; text-align: center; white-space: nowrap; }
.pick-bar {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.8rem 0.6rem 1.1rem;
  background: var(--md-default-bg-color); border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,0.18); font-size: 0.75rem;
}
.pick-bar[hidden] { display: none; }
.pick-bar .md-button { margin: 0; padding: 0.35em 1.1em; font-size: 0.75rem; }
.pick-bar .md-button.is-disabled { opacity: 0.45; pointer-events: auto; cursor: not-allowed; }
.pick-bar .pick-clear {
  border: 0; background: none; cursor: pointer; color: var(--md-default-fg-color--light); font: inherit;
}
@media (max-width: 40em) { .pick-bar { left: 0.6rem; right: 0.6rem; transform: none; flex-wrap: wrap; border-radius: 0.6rem; } }
.pick-bar .pick-go {
  display: inline-block; padding: 0.4em 1.1em; border-radius: 999px; font-weight: 700;
  background: var(--md-accent-fg-color); color: #fff; text-decoration: none;
}
.pick-bar .pick-go.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* ── 세대별 비교 ────────────────────────────────────────── */
.lineage { margin: 1em 0 1.4em; padding: 0.8em 1em; border-radius: 0.4rem; background: var(--md-code-bg-color); }
.md-typeset .lineage-title { margin: 0 0 0.4em; font-size: 0.75em; font-weight: 700; color: var(--md-default-fg-color--light); }
.md-typeset .lineage-chain { margin: 0.2em 0; font-size: 0.85em; }
.lineage .arrow, .gen-open .arrow { color: var(--md-accent-fg-color); font-weight: 700; margin: 0 0.15em; }
.lineage .planned { color: var(--md-default-fg-color--light); font-style: italic; }
.md-typeset .gen-open {
  font: inherit; color: var(--md-typeset-a-color); background: none; border: 0; padding: 0;
  cursor: pointer; text-align: left;
}
.md-typeset .gen-open:hover { text-decoration: underline; }
.md-typeset .gen-table tr.is-selected td { background: var(--md-accent-fg-color--transparent); }
.gen-detail .gen-title { font-size: 1.3em; font-weight: 600; line-height: 1.4; margin: 0.4em 0 0.8em; }
.gen-detail { margin-top: 1.5em; padding-top: 0.5em; border-top: 2px solid var(--md-accent-fg-color); scroll-margin-top: 4rem; }
.md-typeset .gen-table td:first-child { white-space: normal; min-width: 16rem; }
.md-typeset .gen-table td:not(:first-child) { white-space: nowrap; }
.md-typeset .gen-open { white-space: normal; line-height: 1.5; }

/* ── 표 엑셀 저장 버튼 ─────────────────────────────────── */
.table-tools { display: flex; justify-content: flex-end; margin: 0.8em 0 -0.4em; }
.md-typeset .xlsx-btn {
  display: inline-flex; align-items: center; gap: 0.35em; cursor: pointer;
  padding: 0.2em 0.75em; border-radius: 999px; font: inherit; font-size: 0.72em;
  border: 1px solid var(--md-default-fg-color--lightest); background: var(--md-default-bg-color);
  color: var(--md-default-fg-color--light);
}
.md-typeset .xlsx-btn::before { content: "⤓"; font-weight: 700; color: #1d6f42; }
.md-typeset .xlsx-btn:hover { border-color: #1d6f42; color: #1d6f42; }
.cmp-tools:has(+ * table[hidden]), .cmp-tools:has(+ table[hidden]) { display: none; }

/* ── 로고 ───────────────────────────────────────────── */
.md-header__button.md-logo img { height: 1.9rem; width: auto; }
.home-hero { margin: .2rem 0 1rem; }
.home-hero p { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 스팸 방지용 숨김 칸 (사람에게는 보이지 않음) */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 오른쪽 위 GitHub 저장소 버튼 숨김 (모바일 메뉴 포함) — 수정·오류 신고 링크는 그대로 동작 */
.md-header__source, .md-nav__source { display: none !important; }

/* 정보 오류 신고 창 */
.report-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  border: 1px solid var(--md-default-fg-color--lightest); border-radius: 10px; padding: 1.2rem 1.4rem;
  background: var(--md-default-bg-color); color: var(--md-default-fg-color);
  font-size: .78rem; box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.report-dialog::backdrop { background: rgba(0,0,0,.45); }
.report-dialog h2 { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 700; }
.report-dialog .field { display: block; margin: .7rem 0; }
.report-dialog textarea, .report-dialog input[type=url], .report-dialog input[type=email] {
  display: block; width: 100%; box-sizing: border-box; margin-top: .3rem; padding: .45rem .6rem;
  border: 1px solid var(--md-default-fg-color--lighter); border-radius: 6px;
  background: var(--md-default-bg-color); color: var(--md-default-fg-color); font: inherit;
}
.report-dialog .form-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.report-dialog .md-button { margin: 0; }

/* 사이트 인용 문구: 가로 스크롤 없이 줄바꿈 */
.cite-block pre > code { white-space: pre-wrap; word-break: break-word; }

/* ── 전체 목록: 분야(대기·해양·해빙·지면·위성) > 소분류 구분을 눈에 띄게 ── */
:root {
  --dom-atmosphere: #2f7fc1;
  --dom-ocean: #1f6f8b;
  --dom-seaice: #5aa7c7;
  --dom-land: #5b8a3a;
  --dom-satellite: #6a4fa3;
}
.md-typeset .domain-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 1.2rem; }
.md-typeset .domain-chip {
  display: inline-flex; align-items: baseline; gap: .45rem;
  padding: .45rem .9rem; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--dom-c); color: var(--dom-c);
  font-size: .8rem;
}
.md-typeset .domain-chip span { font-size: .9em; opacity: .8; }
.md-typeset .domain-chip:hover { background: var(--dom-c); color: #fff; }
.md-typeset .domain-atmosphere { --dom-c: var(--dom-atmosphere); }
.md-typeset .domain-ocean { --dom-c: var(--dom-ocean); }
.md-typeset .domain-seaice { --dom-c: var(--dom-seaice); }
.md-typeset .domain-land { --dom-c: var(--dom-land); }
.md-typeset .domain-satellite { --dom-c: var(--dom-satellite); }

.md-typeset h2.domain-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: 2.6rem 0 1rem; padding: .7rem 1rem;
  font-size: 1.55em; font-weight: 700; letter-spacing: -.01em;
  color: #fff; background: var(--dom-c); border-radius: 8px;
  scroll-margin-top: 4.5rem;
}
.md-typeset h2.domain-head .domain-count { font-size: .55em; font-weight: 500; opacity: .9; }
.md-typeset h2.domain-head .headerlink { color: rgba(255,255,255,.7); }

.md-typeset .group-head {
  margin: 1.6rem 0 .6rem; padding-left: .7rem;
  border-left: 4px solid var(--md-default-fg-color--lighter);
  font-size: 1.05em; font-weight: 700; color: var(--md-default-fg-color--light);
}
.md-typeset h2.group-head { font-size: 1.15em; }
.md-typeset .group-intro { margin: -.2rem 0 .6rem .7rem; font-size: .9em; color: var(--md-default-fg-color--light); }
[data-md-color-scheme="slate"] { --dom-atmosphere: #3a78ad; --dom-ocean: #2a6b80; --dom-seaice: #4a8eaa; --dom-land: #557f37; --dom-satellite: #64519a; }

/* 체크박스 크게 + 동의 문구 전체를 눌러도 체크되게 (처리방침 링크는 따로) */
.cdg-form input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--md-accent-fg-color); cursor: pointer; }
.cdg-form .consent-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  margin: .2em 0 1em; padding: .55rem .8rem;
  border: 1px solid var(--md-default-fg-color--lightest); border-radius: .4rem;
}
.cdg-form .consent-row .consent { margin: 0; padding: .2em 0; align-items: center; font-weight: 600; }
.cdg-form .consent-row .consent input { width: 1.3rem; height: 1.3rem; transform: none; }
.cdg-form .consent-link { font-size: .9em; white-space: nowrap; }

/* 공개 예정 상태 배지 */
.status-upcoming { background: #ece8fd; color: #4a2fa0; border-color: #c4b6f2; }
[data-md-color-scheme="slate"] .status-upcoming { background: #2a2147; color: #c9bcff; border-color: #54468f; }

/* 홈 상단 (로고 + 사이트 이름) — 한국어판·영어판 공통.
   로고 그림(assets/logo.svg)은 밝은·어두운 화면에서 똑같은 파일 하나만 쓰고, 글자 색만 화면에 맞춘다. */
.home-hero--lockup { display: flex; align-items: center; gap: 1.1rem; }
.home-hero--lockup p { margin: 0; }
.home-hero--lockup .hero-icon { width: 96px; height: auto; display: block; }
.home-hero--lockup .hero-title { font-size: 1.9rem; font-weight: 800; line-height: 1.15; color: #12293b; letter-spacing: -.01em; }
.home-hero--lockup .hero-accent { color: #1f6e7e; }
.home-hero--lockup .hero-sub { font-family: var(--md-code-font-family); color: var(--md-default-fg-color--light); font-size: .85rem; margin-top: .25rem; }
[data-md-color-scheme="slate"] .home-hero--lockup .hero-title { color: #e6edf3; }
[data-md-color-scheme="slate"] .home-hero--lockup .hero-accent { color: #7cc0cc; }
@media (max-width: 30em) {
  .home-hero--lockup .hero-icon { width: 72px; }
  .home-hero--lockup .hero-title { font-size: 1.5rem; }
}

/* 알림 신청 — 이용자 정보(선택) */
.cdg-form .profile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1em; }
.cdg-form .profile-row .field { margin-bottom: 0.4em; }
.cdg-form .profile-row select { width: 100%; }
.cdg-form .field-label { font-weight: 600; margin: 0.5em 0 0.2em; }

/* ── 베타 표시 (mkdocs.yml extra.beta) ─────────────────── */
.cdg-beta .md-header__topic:first-child::after {
  content: "Beta";
  flex: none;
  align-self: center;
  margin-left: 0.5em;
  padding: 0 0.5em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.md-banner { font-size: 0.72rem; }
.md-banner a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.md-banner a:hover { opacity: 0.8; }

/* 자료 비교 — 변수 찾기 결과 */
#var-results { margin-top: 1.6em; }
.md-typeset .var-results-title { margin: 0 0 0.5em; font-size: 1.15em; font-weight: 700; }
.var-concepts { display: flex; flex-direction: column; gap: 0.3em; margin: 0 0 0.6em; }
.var-concept strong { font-size: 1.02em; }
.var-related { display: flex; flex-wrap: wrap; gap: 0.35em; align-items: center; margin-top: 0.3em; }
.md-typeset .var-table td { vertical-align: top; }
.md-typeset .var-table td:first-child { min-width: 7.5rem; }
.md-typeset .var-table td code { overflow-wrap: anywhere; }
.md-typeset .var-table td:nth-child(2) { min-width: 14rem; }
.md-typeset .var-table td:nth-child(3) { min-width: 4.5rem; }
.md-typeset .var-table td:nth-child(4) { min-width: 7rem; }
.md-typeset .var-table td:nth-child(5) { min-width: 6.5rem; }
.md-typeset .var-table th { white-space: nowrap; }
.md-typeset .var-table .var-add { font-size: 0.68rem; padding: 0.2em 0.7em; margin: 0.45em 0 0; white-space: nowrap; }
.md-typeset .var-table .var-add.is-on { background: var(--md-accent-fg-color); border-color: var(--md-accent-fg-color); color: var(--md-accent-bg-color, #fff); }

/* 소개 — BibTeX 접기 상자 */
.md-typeset details.cite-bibtex { border-color: var(--md-default-fg-color--lightest); box-shadow: none; font-size: 0.85rem; }
.md-typeset details.cite-bibtex > summary { background: transparent; font-weight: 600; }
.md-typeset details.cite-bibtex > summary::before { background-color: var(--md-default-fg-color--light); -webkit-mask-image: var(--md-admonition-icon--quote); mask-image: var(--md-admonition-icon--quote); }

/* 변수로 찾기 페이지 */
.var-mode .var-search { font-size: 1.05em; }
.var-mode .var-search input { font-size: 1.05rem; padding: 0.7em 0.9em; margin-top: 0.35em; }
.var-basket { position: sticky; bottom: 0.6rem; z-index: 3; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: var(--md-default-bg-color) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em 1em; margin: 0.8em 0; padding: 0.7em 1em; border: 1px solid var(--md-accent-fg-color); border-radius: 0.4rem; background: var(--md-accent-fg-color--transparent); }
.md-typeset .var-basket .md-button { margin: 0; font-size: 0.75rem; padding: 0.4em 1em; }

/* 전체 목록 — 자료 찾기 도구 바로가기 */
.find-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.6rem; margin: 0.4em 0 1.2em; }
.md-typeset .find-tools a { display: flex; flex-direction: column; gap: 0.15em; padding: 0.75em 1em; border: 1px solid var(--md-default-fg-color--lightest); border-radius: 0.5rem; color: var(--md-default-fg-color); transition: border-color .15s, box-shadow .15s; }
.md-typeset .find-tools a:hover { border-color: var(--md-accent-fg-color); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.md-typeset .find-tools strong { color: var(--md-typeset-a-color); font-size: 0.95em; }
.md-typeset .find-tools span { font-size: 0.78em; color: var(--md-default-fg-color--light); }

/* 전체 목록·분야 페이지 표: 모든 표의 가로 길이와 열 너비를 똑같이 */
.md-typeset .list-table .md-typeset__scrollwrap { display: block; width: 100%; margin-left: 0; margin-right: 0; }
.md-typeset .list-table .md-typeset__table { display: block; width: 100%; padding: 0; }
.md-typeset .list-table table:not([class]) { display: table; width: 100%; table-layout: fixed; }
.md-typeset .list-table th, .md-typeset .list-table td { overflow-wrap: anywhere; }
.md-typeset .list-table th.pick-col, .md-typeset .list-table td.pick-col { width: 4.2rem; }
.md-typeset .list-table th:nth-last-child(7) { width: 21%; }   /* 자료 */
.md-typeset .list-table th:nth-last-child(6) { width: 11%; }   /* 종류 */
.md-typeset .list-table th:nth-last-child(5) { width: 15%; }   /* 기간 */
.md-typeset .list-table th:nth-last-child(4) { width: 11%; }   /* 범위 */
.md-typeset .list-table th:nth-last-child(3) { width: 15%; }   /* 제공 해상도 */
.md-typeset .list-table th:nth-last-child(2) { width: 9%; }    /* 시간 간격 */
.md-typeset .list-table th:nth-last-child(1) { width: 12%; }   /* 상태 */
.md-typeset .list-table td.nowrap { white-space: normal; }
@media screen and (max-width: 44.9375em) {
  .md-typeset .list-table .md-typeset__table { overflow-x: auto; }
  .md-typeset .list-table table:not([class]) { min-width: 50rem; }
}

/* 자료 페이지 — 변수 표: 모든 그룹 표의 가로 길이·열 너비를 같게 */
.md-typeset .var-tbl .md-typeset__scrollwrap { display: block; width: 100%; margin-left: 0; margin-right: 0; }
.md-typeset .var-tbl .md-typeset__table { display: block; width: 100%; padding: 0; }
.md-typeset .var-tbl table:not([class]) { display: table; width: 100%; table-layout: fixed; font-size: 0.74rem; }
.md-typeset .var-tbl table:not([class]) td { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; vertical-align: top; }
.md-typeset .var-tbl table:not([class]) th { white-space: nowrap; }
.md-typeset .var-tbl table:not([class]) th, .md-typeset .var-tbl table:not([class]) td { padding: 0.75em 0.8em; }
.md-typeset .var-tbl table:not([class]) td:nth-child(n+2) { overflow-wrap: break-word; }
.md-typeset .var-tbl th:nth-child(1) { width: 27%; }
.md-typeset .var-tbl th:nth-child(2) { width: 16%; }
.md-typeset .var-tbl th:nth-child(3) { width: 15%; }
.md-typeset .var-tbl th:nth-child(4) { width: 13%; }
.md-typeset .var-tbl th:nth-child(5) { width: 29%; }
.md-typeset .var-tbl td:nth-child(5) { color: var(--md-default-fg-color--light); }
@media screen and (max-width: 44.9375em) {
  .md-typeset .var-tbl .md-typeset__table { overflow-x: auto; }
  .md-typeset .var-tbl table:not([class]) { min-width: 40rem; }
}
.md-typeset .var-en-hint { font-size: 0.68rem; color: var(--md-default-fg-color--light); margin: 0.8em 0 0; }
.table-tools.has-note { justify-content: space-between; align-items: center; gap: 0.6em; flex-wrap: wrap; }
.md-typeset .table-tools .var-en-hint { margin: 0; }
.table-tools.has-note .xlsx-btn { margin-left: auto; }
/* 자료 페이지 — "활용 가능한 변수" 제목 오른쪽의 전체 변수 저장 버튼 */
.md-typeset h2 .h2-tools { float: right; margin-top: 0.35em; font-size: 0.8rem; font-weight: 400; letter-spacing: 0; line-height: 1; }
/* 자료 페이지 — 받는 방법: 로그인 없이 받을 수 있는 곳 */
.md-typeset .login-free { display: inline-block; margin-left: 0.4em; padding: 0 0.5em; border-radius: 999px; font-size: 0.68rem; font-weight: 600; line-height: 1.6; vertical-align: 0.08em; white-space: nowrap; color: #1b5e20; background: #e8f5e9; border: 1px solid #a5d6a7; }
[data-md-color-scheme="slate"] .md-typeset .login-free { color: #a5d6a7; background: rgba(76,175,80,0.15); border-color: rgba(165,214,167,0.4); }
/* 변수 표 안의 시간 특성 표시는 칸 너비 안에서 줄바꿈 (예: "순간값 (통과 시각)") */
.md-typeset .var-tbl td .kind { white-space: normal; display: inline-block; max-width: 100%; line-height: 1.35; }
/* 홈 — 최근 1주일 중요 공지 팝업 */
.notice-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.notice-popup .np-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.notice-popup .np-box { position: relative; width: min(34rem, 100%); max-height: min(85vh, 42rem); display: flex; flex-direction: column; overflow: hidden; background: var(--md-default-bg-color); color: var(--md-default-fg-color); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.3); font-size: 0.78rem; line-height: 1.55; }
.notice-popup .np-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5em; padding: 0.9em 1.1em 0.6em; border-bottom: 3px solid #c62828; }
.notice-popup .np-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.notice-popup .np-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--md-default-fg-color--light); }
.notice-popup .np-list { list-style: none; margin: 0; padding: 0.4em 1.1em; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.notice-popup .np-list li { padding: 0.7em 0; border-bottom: 1px solid var(--md-default-fg-color--lightest); }
.notice-popup .np-list li:last-child { border-bottom: 0; }
.notice-popup .np-meta { font-size: 0.7rem; color: var(--md-default-fg-color--light); }
.notice-popup .np-lv { display: inline-block; padding: 0 0.45em; border-radius: 3px; background: #c62828; color: #fff; font-weight: 700; font-size: 0.66rem; }
.notice-popup .np-title { font-weight: 700; margin-top: 0.15em; }
.notice-popup .np-body { margin: 0.3em 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--md-default-fg-color--light); }
.notice-popup .np-links { margin-top: 0.35em; font-size: 0.72rem; }
.notice-popup .np-more { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3em 1em; padding: 0.5em 1.1em 0.6em; font-size: 0.72rem; }
.notice-popup .np-intro { flex: none; margin: 0; padding: 0.7em 1.1em 0; color: var(--md-default-fg-color--light); font-size: 0.74rem; }
.notice-popup .np-foot { flex: none; display: flex; justify-content: space-between; border-top: 1px solid var(--md-default-fg-color--lightest); }
.notice-popup .np-foot button { flex: 1; padding: 0.85em; border: 0; background: var(--md-default-fg-color--lightest); color: var(--md-default-fg-color); cursor: pointer; font: inherit; }
.notice-popup .np-foot .np-close { background: var(--md-primary-fg-color); color: var(--md-primary-bg-color); font-weight: 700; }
.cmp-selects[hidden], .var-basket[hidden], #var-results[hidden] { display: none !important; }  /* 변수로 찾기: 자료 선택 칸 숨김 (display:grid가 hidden을 덮지 않도록) */
/* 변수 찾기 결과 표: 화면 폭에 맞춰 고정 열 너비 (휴대폰은 표 안에서 가로 스크롤) */
.md-typeset .var-table table { width: 100%; table-layout: fixed; }
.md-typeset .var-table th { white-space: normal; }
.md-typeset .var-table th:nth-child(1) { width: 16%; }
.md-typeset .var-table th:nth-child(2) { width: 36%; }
.md-typeset .var-table th:nth-child(3) { width: 9%; }
.md-typeset .var-table th:nth-child(4) { width: 14%; }
.md-typeset .var-table th:nth-child(5) { width: 13%; }
.md-typeset .var-table th:nth-child(6) { width: 12%; }
.md-typeset .var-table td { min-width: 0 !important; word-break: keep-all; overflow-wrap: anywhere; }
@media screen and (max-width: 44.9375em) { .md-typeset .var-table table { min-width: 46rem; } }
.md-typeset .var-table .status-badge { white-space: normal; }
/* 중요 공지 — '예정된 변경'과 '발표된 공지' 표를 같은 폭·같은 열 너비로 */
.md-typeset .notice-tbl .md-typeset__scrollwrap { display: block; width: 100%; margin-left: 0; margin-right: 0; }
.md-typeset .notice-tbl .md-typeset__table { display: block; width: 100%; padding: 0; }
.md-typeset .notice-tbl table:not([class]) { display: table; width: 100%; table-layout: fixed; }
.md-typeset .notice-tbl details.notice-ds { margin: 0; border: 0; box-shadow: none; padding: 0; background: none; font-size: inherit; }
.md-typeset .notice-tbl details.notice-ds > summary { cursor: pointer; padding: 0; color: var(--md-typeset-a-color); }
.md-typeset .notice-tbl details.notice-ds > summary::before, .md-typeset .notice-tbl details.notice-ds > summary::after { display: none; }
.md-typeset .notice-tbl th:nth-child(1) { width: 13%; }
.md-typeset .notice-tbl th:nth-child(2) { width: 17%; }
.md-typeset .notice-tbl th:nth-child(3) { width: 16%; }
.md-typeset .notice-tbl th:nth-child(4) { width: 10%; }
.md-typeset .notice-tbl th:nth-child(5) { width: 44%; }
.md-typeset .notice-tbl table:not([class]) td { word-break: keep-all; overflow-wrap: break-word; vertical-align: top; }
.md-typeset .notice-tbl table:not([class]) td:nth-child(4) { white-space: nowrap; }
.md-typeset .notice-tbl table:not([class]) td.nowrap { white-space: normal; }
@media screen and (max-width: 44.9375em) {
  .md-typeset .notice-tbl .md-typeset__table { overflow-x: auto; }
  .md-typeset .notice-tbl table:not([class]) { min-width: 44rem; }
}
.md-typeset .notice-tbl .nobr { white-space: nowrap; }
