/* ==========================================================================
   checkcore.co.kr — 공개 홈페이지 스타일 한 파일 
   - 색: 파랑 1 · 심각도 4색 · 완료 초록
   - 인라인 style/script 0 (서버 CSP) · 외부 주소 0 · JS 없이 동작
   - 색은 토큰으로만. 다크는 토큰만 다시 정한다
   ========================================================================== */

@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/PretendardVariable-302ec55f5b4320354ec6b35a53dead87.woff2") format("woff2-variations");
}

/* ---------- 토큰 (라이트 = 기본) ---------- */
:root {
  color-scheme: light dark;

  /* 면 */
  --page: #FFFFFF;
  --surface: #FFFFFF;
  --subtle: #F6F7FA;     /* 번갈이 구역 · 표 머리 · 라벨 칸 */
  --subtle-2: #EEF0F5;
  --line: #E3E6EE;
  --line-strong: #D5D8E2;

  /* 글자 */
  --ink: #14161F;
  --sub: #4A4F60;
  --muted: #5F6475;

  /* 강조 (파랑 하나) */
  --primary: #2F5BEA;
  --primary-text: #1F47CC;
  --primary-soft: #E4EBFF;
  --on-primary: #FFFFFF;

  /* 짙은 남색 — 첫 화면 머리 · 문의 띠 · 바닥 */
  --navy: #0B1430;
  --navy-2: #13204A;
  --navy-line: rgba(255, 255, 255, 0.10);
  --navy-grid: rgba(255, 255, 255, 0.045);
  --navy-glow: rgba(47, 91, 234, 0.32);
  --on-navy: #F2F4FA;
  --on-navy-sub: #B4BCD2;
  --on-navy-accent: #A9BDFF;
  --foot: #0A0F1F;

  /* CI 표식 두 색 (짙은 남색 · 파랑 / 짙은 바탕에서는 흰색 · 밝은 파랑) */
  --ci-ink: #0A0E1A;
  --ci-acc: #2E5BFF;
  --ci-ink-inv: #FFFFFF;
  --ci-acc-inv: #6B8FFF;

  /* 심각도 (배지 바탕/글자 4.5:1 짝 · 막대) */
  --sev-critical-bg: #FDE3E0; --sev-critical-ink: #A01C12; --sev-critical-bar: #D93A2E;
  --sev-high-bg: #FFE8D2;     --sev-high-ink: #8A4104;     --sev-high-bar: #F08A24;
  --sev-medium-bg: #FFF2C4;   --sev-medium-ink: #6B5000;   --sev-medium-bar: #EFC02F;
  --sev-low-bg: #ECEEF3;      --sev-low-ink: #3F4455;      --sev-low-bar: #B4B9C8;

  /* 취약 / 해결 */
  --bad-bg: #FDF1EF;  --bad-ink: #A01C12; --bad-dot: #D93A2E; --bad-line: #F6D3CE;
  --ok-bg: #EEF8F2;   --ok-ink: #17603A;  --ok-dot: #2E9E5B;  --ok-line: #C9E9D6;
  --chip-bg: #FFFFFF;

  /* 그림자 — 아주 옅게 */
  --shadow-sm: 0 1px 2px rgba(20, 22, 31, 0.04);
  --shadow-md: 0 1px 2px rgba(20, 22, 31, 0.04), 0 6px 20px rgba(20, 22, 31, 0.05);

  /* 글꼴 */
  --font: "Pretendard Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --fs-hero: clamp(34px, 2.6vw + 18px, 54px);
  --fs-h1: clamp(30px, 1.2vw + 22px, 40px);
  --fs-h2: clamp(24px, 0.7vw + 19px, 30px);
  --fs-h3: 19px;
  --fs-lg: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --lh-tight: 1.25;
  --lh-body: 1.7;

  /* 간격 8pt */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* 모양 */
  --r-card: 16px;
  --r-ctl: 10px;
  --r-badge: 7px;
  --r-pill: 999px;
  --h-ctl: 46px;

  --wrap: 1200px;
  --gutter: 32px;
  --head-h: 68px;
  --ease: 150ms ease;
}

/* ---------- 토큰 (다크) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0D1016; --surface: #151922; --subtle: #1A1F29; --subtle-2: #222834;
    --line: #272D39; --line-strong: #343B4A;
    --ink: #E8EAF0; --sub: #B0B6C5; --muted: #98A0B3;
    --primary: #3D66F0; --primary-text: #9DB2FF; --primary-soft: #1C2748;
    --navy: #0A1024; --navy-2: #111A3A; --foot: #070A14;
    --bad-bg: #2A1716; --bad-ink: #FFB4AA; --bad-line: #4A2522;
    --ok-bg: #12261B; --ok-ink: #9EE0B8; --ok-line: #1F4630;
    --chip-bg: #151922;
    --ci-ink: #FFFFFF; --ci-acc: #6B8FFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}
:root[data-theme="dark"] {
  --page: #0D1016; --surface: #151922; --subtle: #1A1F29; --subtle-2: #222834;
  --line: #272D39; --line-strong: #343B4A;
  --ink: #E8EAF0; --sub: #B0B6C5; --muted: #98A0B3;
  --primary: #3D66F0; --primary-text: #9DB2FF; --primary-soft: #1C2748;
  --navy: #0A1024; --navy-2: #111A3A; --foot: #070A14;
  --bad-bg: #2A1716; --bad-ink: #FFB4AA; --bad-line: #4A2522;
  --ok-bg: #12261B; --ok-ink: #9EE0B8; --ok-line: #1F4630;
  --chip-bg: #151922;
  --ci-ink: #FFFFFF; --ci-acc: #6B8FFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- 바탕 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-text); text-underline-offset: 3px; transition: color var(--ease); }
code, .mono { font-family: var(--mono); }
time { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 50;
  padding: var(--s2) var(--s4); background: var(--surface); color: var(--ink); border-radius: var(--r-ctl);
}
.skip:focus { top: var(--s2); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: calc(1320px + var(--gutter) * 2); }
.wrap--narrow { max-width: calc(840px + var(--gutter) * 2); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--h-ctl); padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { border-color: var(--muted); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-text); border-color: var(--primary-text); }
.btn--inv { background: transparent; border-color: rgba(255, 255, 255, 0.32); color: var(--on-navy); }
.btn--inv:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, 0.06); }
.btn--sm { min-height: 38px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: var(--fs-body); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.arrow::after { content: " →"; }

/* ---------- 위 메뉴 (붙박이) ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; gap: var(--s5); min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { flex: none; width: 32px; height: 32px; }
.brand-mark .bm-o { stroke: var(--ci-ink); }
.brand-mark .bm-i { stroke: var(--ci-acc); }
.brand-mark .bm-d { fill: var(--ci-acc); }
.brand-txt { display: grid; line-height: 1.2; }
.brand-txt b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-txt span { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
/* 짙은 바탕(바닥) 판 — 바깥 고리 흰색 · 안쪽 #6B8FFF */
.brand--inv { color: var(--on-navy); }
.brand--inv .bm-o { stroke: var(--ci-ink-inv); }
.brand--inv .bm-i { stroke: var(--ci-acc-inv); }
.brand--inv .bm-d { fill: var(--ci-acc-inv); }
.brand--inv .brand-txt span { color: var(--on-navy-sub); }
.gnb { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.gnb a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  color: var(--sub); text-decoration: none; font-size: 15px; font-weight: 600; border-radius: var(--r-ctl);
  transition: color var(--ease), background-color var(--ease);
}
.gnb a:not(.btn):hover { color: var(--ink); background: var(--subtle); }
.gnb a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.gnb a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 2px; background: var(--primary); }
.gnb .btn { margin-left: var(--s3); }

/* ---------- 바닥 (짙은 바탕) ---------- */
.site-foot { margin-top: var(--s9); background: var(--foot); color: var(--on-navy-sub); font-size: var(--fs-sm); line-height: 1.75; }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) var(--s7); padding-top: var(--s7); padding-bottom: var(--s7); }
.foot-brand { margin-bottom: var(--s4); }
.foot-company { color: var(--on-navy); font-weight: 700; margin-bottom: var(--s1); }
.foot-co { display: flex; flex-wrap: wrap; column-gap: var(--s4); }
.foot-co a { color: var(--on-navy-sub); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s5); margin-bottom: var(--s4); }
.foot-links a { color: var(--on-navy); font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-src p + p { margin-top: var(--s1); }
.foot-bottom { grid-column: 1 / -1; padding-top: var(--s5); border-top: 1px solid var(--navy-line); font-size: var(--fs-xs); }

/* ---------- 공통 조각 ---------- */
.eyebrow { color: var(--primary-text); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.02em; }
.sec { padding-top: var(--s9); }
.sec--band { margin-top: var(--s9); padding: var(--s9) 0; background: var(--subtle); }
.sec--band + .sec { padding-top: var(--s9); }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s6); }
.sec__title { font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.02em; }
.sec__sub { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-body); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.muted { color: var(--muted); }
.dash { color: var(--muted); }

/* 배지 · 표식 */
.sev {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 26px; padding: 0 10px;
  border-radius: var(--r-badge); font-size: var(--fs-xs); font-weight: 700; line-height: 1; white-space: nowrap;
  background: transparent; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.sev--CRITICAL { background: var(--sev-critical-bg); color: var(--sev-critical-ink); box-shadow: none; }
.sev--HIGH     { background: var(--sev-high-bg);     color: var(--sev-high-ink);     box-shadow: none; }
.sev--MEDIUM   { background: var(--sev-medium-bg);   color: var(--sev-medium-ink);   box-shadow: none; }
.sev--LOW      { background: var(--sev-low-bg);      color: var(--sev-low-ink);      box-shadow: none; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap;
  background: var(--subtle-2); color: var(--ink);
}
.tag--kev { background: var(--sev-critical-bg); color: var(--sev-critical-ink); }
.tag--line { background: transparent; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag--soft { background: var(--primary-soft); color: var(--primary-text); }

/* ---------- 첫 화면 머리 (짙은 남색 · 옅은 격자 · 빛 한 겹) ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(640px 360px at 78% 30%, var(--navy-glow), transparent 70%),
    linear-gradient(var(--navy-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-grid) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  color: var(--on-navy);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s8); align-items: center; padding-top: var(--s9); padding-bottom: var(--s9); }
/* 게시판 현황 상자가 없는 서버(소개·문의 서버)에서는 머리 글이 한 칸을 다 쓴다 */
.hero__in > :only-child { grid-column: 1 / -1; }
.hero .eyebrow { color: var(--on-navy-accent); }
.hero__title { margin-top: var(--s4); font-size: var(--fs-hero); font-weight: 800; line-height: 1.18; letter-spacing: -0.03em; }
.hero__title em { font-style: normal; color: var(--on-navy-accent); }
.hero__lede { margin-top: var(--s5); max-width: 600px; color: var(--on-navy-sub); font-size: var(--fs-lg); line-height: 1.75; }
.hero .btn-row { margin-top: var(--s6); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); color: var(--on-navy-sub); font-size: var(--fs-sm); }
.hero__facts li { display: inline-flex; align-items: center; gap: var(--s2); }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-navy-accent); }

/* 게시판 현황 카드 (머리 오른쪽) */
.stat {
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--r-card);
  padding: var(--s5); color: var(--on-navy);
}
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.stat__title { font-size: var(--fs-body); font-weight: 700; }
.stat__date { color: var(--on-navy-sub); font-size: var(--fs-xs); }
.stat__total { margin-top: var(--s5); }
.stat__total-num { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat__total-lab { display: block; margin-top: var(--s2); color: var(--on-navy-sub); font-size: var(--fs-sm); }
.stat__list { margin-top: var(--s5); border-top: 1px solid var(--navy-line); }
.stat__list li > * {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 56px; border-bottom: 1px solid var(--navy-line); color: var(--on-navy); text-decoration: none;
  transition: color var(--ease);
}
.stat__list a:hover .stat__num { color: var(--on-navy-accent); }
.stat__num { font-size: 22px; font-weight: 800; transition: color var(--ease); }
.stat__more { display: inline-block; margin-top: var(--s4); color: var(--on-navy-accent); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.stat__more:hover { text-decoration: underline; }

/* 특징 4 — 2×2 */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.feature { padding: var(--s6); transition: border-color var(--ease), box-shadow var(--ease); }
.feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.feature__no { color: var(--primary-text); font-size: var(--fs-sm); font-weight: 800; }
.feature__t { margin-top: var(--s3); font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -0.01em; }
.feature__d { margin-top: var(--s3); color: var(--sub); }

/* 흐름 */
.supply { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.supply__lab { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.supply__path { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-weight: 700; }
.supply__path li { display: inline-flex; align-items: center; gap: var(--s2); }
.supply__path li + li::before { content: "→"; color: var(--muted); font-weight: 400; }
.supply__path small { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }
.supply__note { color: var(--sub); font-size: var(--fs-sm); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); counter-reset: step; }
.step { position: relative; padding: var(--s6) var(--s5) var(--s5); counter-increment: step; }
.step::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text);
  font-weight: 800; font-size: var(--fs-sm);
}
.step__t { margin-top: var(--s4); font-size: var(--fs-h3); font-weight: 800; }
.step__d { margin-top: var(--s2); color: var(--sub); font-size: 15px; }

/* 원칙 표 */
.rules { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.rules th, .rules td { padding: var(--s4) var(--s5); text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.rules thead th { padding-top: var(--s3); padding-bottom: var(--s3); background: var(--subtle); color: var(--muted); font-size: var(--fs-sm); font-weight: 700; border-top: 0; }
.rules tbody th { font-weight: 700; width: 32%; }
.rules td { color: var(--sub); }
.rules .c-mark { width: 180px; }

/* 지원 OS 칩 */
.os-list { display: flex; flex-wrap: wrap; gap: var(--s3); }
.os-list li {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px;
}
.os-list small { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }

/* 문의 띠 */
.cta {
  margin-top: var(--s9); padding: var(--s7) var(--s7);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5);
  border-radius: var(--r-card); color: var(--on-navy);
  background-color: var(--navy);
  background-image:
    radial-gradient(420px 220px at 90% 0%, var(--navy-glow), transparent 70%),
    linear-gradient(var(--navy-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-grid) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
.cta__t { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; line-height: var(--lh-tight); }
.cta__d { margin-top: var(--s2); color: var(--on-navy-sub); }

/* ---------- 하위 화면 머리 ---------- */
.page-hero { background: var(--subtle); border-bottom: 1px solid var(--line); }
.page-hero__in { padding-top: var(--s7); padding-bottom: var(--s7); }
.page-hero__title { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.02em; }
.page-hero__sub { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-body); }
.page-body { padding-top: var(--s7); }

/* ---------- 입력 공통 ---------- */
.input, .select {
  height: var(--h-ctl); padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.input:hover, .select:hover { border-color: var(--muted); }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.select { padding-right: var(--s6); }
.select--sm { height: 36px; padding: 0 var(--s5) 0 10px; font-size: var(--fs-sm); }

/* 등급 점 (색 + 글자와 함께만 쓴다) */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--line-strong); }
.dot--CRITICAL { background: var(--sev-critical-bar); }
.dot--HIGH { background: var(--sev-high-bar); }
.dot--MEDIUM { background: var(--sev-medium-bar); }
.dot--LOW { background: var(--sev-low-bar); }
.dot--NONE { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* 가는 막대 — <meter> (인라인 style 없이 길이를 value 로) */
.meter { display: block; width: 100%; height: 4px; border: 0; border-radius: var(--r-pill); background: var(--subtle-2); -webkit-appearance: none; appearance: none; }
.meter::-webkit-meter-bar { background: var(--subtle-2); border: 0; border-radius: var(--r-pill); height: 4px; }
.meter::-webkit-meter-optimum-value, .meter::-webkit-meter-suboptimum-value, .meter::-webkit-meter-even-less-good-value { background: var(--primary); border-radius: var(--r-pill); }
.meter::-moz-meter-bar { background: var(--primary); border-radius: var(--r-pill); }

/* ---------- 게시판: 머리 + 큰 검색 줄 ---------- */
.lhero { background: var(--subtle); border-bottom: 1px solid var(--line); }
.lhero__in { padding-top: var(--s7); padding-bottom: var(--s6); }
.lhero__title { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.02em; }
.lhero__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s2); color: var(--muted); font-size: var(--fs-sm); }
.lhero__meta b { color: var(--ink); font-weight: 700; }
.sbar {
  display: flex; align-items: stretch; margin-top: var(--s5); max-width: 880px; min-height: 58px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); overflow: hidden; transition: border-color var(--ease), box-shadow var(--ease);
}
.sbar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-md); }
.sbar__scope {
  flex: none; padding: 0 var(--s6) 0 var(--s5); border: 0; border-right: 1px solid var(--line);
  background: transparent; color: var(--sub); font: inherit; font-size: var(--fs-sm); font-weight: 700;
}
.sbar__input { flex: 1 1 auto; min-width: 0; padding: 0 var(--s4); border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.sbar__input::placeholder { color: var(--muted); }
.sbar__scope:focus-visible, .sbar__input:focus-visible { outline: none; }
.sbar__btn {
  flex: none; display: inline-flex; align-items: center; gap: var(--s2); margin: 6px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color var(--ease);
}
.sbar__btn:hover { background: var(--primary-text); }
.sbar__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 옅은 회색 바탕 화면(게시판) — 흰 카드가 덩어리로 선다 */
body.tint { background: var(--subtle); }
body.tint .lhero { background: var(--surface); }

/* 빠른 보기 탭 */
.qtabs { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s5); margin-bottom: calc(-1 * var(--s6)); }
.qtabs a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 var(--s4);
  border-bottom: 2px solid transparent; color: var(--sub); font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}
.qtabs a b { color: var(--muted); font-weight: 700; }
.qtabs a:hover { color: var(--ink); }
.qtabs a[aria-current="page"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--primary); }
.qtabs a[aria-current="page"] b { color: var(--primary-text); }

/* 2단: 필터 기둥 + 결과 */
.board { display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-areas: "side bar" "side res"; grid-template-rows: auto 1fr; align-content: start; column-gap: var(--s5); row-gap: 0; align-items: start; padding-top: var(--s6); }
.ftoggle, .ftoggle__btn { display: none; }
.fside {
  position: sticky; top: calc(var(--head-h) + 16px);
  padding: var(--s2) var(--s5) var(--s5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
.fgroup { margin: 0; padding: var(--s4) 0; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fgroup legend { float: left; width: 100%; margin-bottom: var(--s2); padding: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.fcheck { clear: left; display: flex; align-items: center; gap: 10px; min-height: 34px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }
.fcheck input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); flex: none; }
.fcheck:hover { color: var(--primary-text); }
.fside__act { display: grid; gap: var(--s3); padding-top: var(--s4); }
.fside__act .btn { width: 100%; }
.fside__clear { justify-self: center; font-size: var(--fs-sm); font-weight: 700; }

/* 결과 머리 */
.results { grid-area: res; align-self: start; min-width: 0; }
.rbar { grid-area: bar; align-self: end; }
.fside { grid-area: side; }
.rbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.rbar__count { color: var(--muted); font-size: var(--fs-sm); }
.rbar__count b { color: var(--ink); font-size: var(--fs-body); font-weight: 800; }
.rbar__ctl { display: flex; align-items: center; gap: 6px; }
.rbar__ctl .btn--sm { min-height: 36px; }

/* 결과 카드 + 조밀한 격자 줄 */
.rcard { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.rhead, .rrow { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 150px) 112px 92px; column-gap: var(--s4); align-items: center; }
.rhead > :last-child, .rrow__date { text-align: right; }
.rhead { padding: 10px var(--s4) 10px var(--s5); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.rlist__empty { padding: var(--s8) var(--s5); text-align: center; color: var(--muted); }
.rrow { position: relative; min-height: 64px; max-height: 72px; padding: 7px var(--s4) 7px var(--s5); border-top: 1px solid var(--line); transition: background-color var(--ease), box-shadow var(--ease); }
.rlist > .rrow:first-child { border-top: 0; }
.rrow:hover { background: var(--subtle); box-shadow: inset 2px 0 0 var(--primary); }
.rrow__sev { display: flex; align-items: center; gap: var(--s2); }
.sbadge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 28px; padding: 0 6px;
  border-radius: 6px; font-size: 14px; font-weight: 800; line-height: 1;
  background: var(--subtle-2); color: var(--sub);
}
.sbadge.sev--CRITICAL { background: var(--sev-critical-bg); color: var(--sev-critical-ink); box-shadow: inset 0 0 0 1px var(--sev-critical-bar); }
.sbadge.sev--HIGH { background: var(--sev-high-bg); color: var(--sev-high-ink); box-shadow: inset 0 0 0 1px var(--sev-high-bar); }
.sbadge.sev--MEDIUM { background: var(--sev-medium-bg); color: var(--sev-medium-ink); box-shadow: inset 0 0 0 1px var(--sev-medium-bar); }
.sbadge.sev--LOW { background: var(--sev-low-bg); color: var(--sev-low-ink); }
.sbadge--none { min-width: 0; padding: 0 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
.rrow__lab { color: var(--sub); font-size: 12px; font-weight: 700; }
.rrow__main { min-width: 0; }
.rrow__l1 { display: flex; align-items: center; gap: var(--s2); height: 16px; }
.rrow__id { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--primary-text); text-decoration: none; }
.rrow__id::after { content: ""; position: absolute; inset: 0; }
.rrow__id:focus-visible { outline: none; }
.rrow__id:focus-visible::after { outline: 2px solid var(--primary); outline-offset: -2px; }
.rrow:hover .rrow__id { text-decoration: underline; }
.kev-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--r-pill); background: var(--sev-critical-bg); color: var(--sev-critical-ink); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.rrow__title, .rrow__sum { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rrow__title { margin-top: 3px; font-size: 15px; font-weight: 700; line-height: 20px; color: var(--ink); }
.rrow__sum { margin-top: 3px; font-size: 12.5px; line-height: 16px; color: var(--muted); }
.rrow__prod { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.pchip { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 2px 8px; border-radius: 6px; background: var(--subtle-2); color: var(--sub); font-size: 12.5px; font-weight: 600; }
.rrow__cwe { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--muted); }
.rrow__epss { min-width: 0; }
.crow__epss { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.crow__epss b { color: var(--ink); font-weight: 800; }
.rrow__date { color: var(--muted); font-size: 13px; }

/* 쪽 넘김 */
.pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s5); }
.pages__nums { display: flex; flex-wrap: wrap; gap: 2px; }
.pages__nums a, .pages__nums span, .pages__gap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 700; color: var(--sub); text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
.pages__nums a:hover { background: var(--subtle); color: var(--ink); }
.pages__nums [aria-current="page"] { background: var(--ink); color: var(--page); }
.pages__gap { color: var(--muted); min-width: 24px; padding: 0; }
.pages__step { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); text-decoration: none; }
.pages__step:hover { background: var(--subtle); }
.pages__step.is-off { color: var(--muted); opacity: 0.5; }

/* ---------- 상세: 2단 ---------- */
.dpage { padding-top: var(--s6); }
.crumb { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); color: var(--muted); font-size: var(--fs-sm); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb li + li::before { content: "/"; margin-right: var(--s2); color: var(--line-strong); }
.dtitle { max-width: 860px; }
.dtitle h1 { display: grid; gap: var(--s3); }
.dtitle__id { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; color: var(--primary-text); }
.dtitle__t { font-size: var(--fs-h1); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.dtitle__ko { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); color: var(--sub); font-size: 16px; }
.dtitle__tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.dlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "body side"; gap: var(--s8); align-items: start; margin-top: var(--s7); }
.dbody { grid-area: body; min-width: 0; }
.dside { grid-area: side; position: sticky; top: calc(var(--head-h) + 24px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }

.dscore { padding: var(--s5); border-bottom: 1px solid var(--line); --tone: var(--muted); --tone-bar: var(--line-strong); }
.tone--CRITICAL { --tone: var(--sev-critical-ink); --tone-bar: var(--sev-critical-bar); }
.tone--HIGH { --tone: var(--sev-high-ink); --tone-bar: var(--sev-high-bar); }
.tone--MEDIUM { --tone: var(--sev-medium-ink); --tone-bar: var(--sev-medium-bar); }
.tone--LOW { --tone: var(--sev-low-ink); --tone-bar: var(--sev-low-bar); }
.dscore__k { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.dscore__v { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s2); }
.dscore__num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.dscore__of { color: var(--muted); font-size: var(--fs-body); font-weight: 600; }
.dscore__lab { margin-top: var(--s2); color: var(--tone); font-weight: 800; }
.dscore .meter { margin-top: var(--s3); height: 6px; }
.meter--sev::-webkit-meter-optimum-value, .meter--sev::-webkit-meter-suboptimum-value, .meter--sev::-webkit-meter-even-less-good-value { background: var(--tone-bar); }
.meter--sev::-moz-meter-bar { background: var(--tone-bar); }
:root[data-theme="dark"] .dscore { --tone: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dscore { --tone: var(--ink); } }

.dfacts { padding: var(--s1) var(--s5) var(--s3); font-size: 15px; }
.dfacts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.dfacts > div:first-child { border-top: 0; }
.dfacts dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.dfacts dd { margin-top: 6px; color: var(--ink); line-height: 1.55; }
.dfacts dd b { font-weight: 800; }
.dfacts .meter { margin-top: var(--s2); }
.dfacts__sub { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.dfacts__list { display: flex; flex-wrap: wrap; gap: 6px; }
.dfacts__list > * { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 6px; background: var(--subtle); font-size: 13px; }
.vector { display: block; padding: 8px 10px; border-radius: 6px; background: var(--subtle); }
.vector { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

.dsec + .dsec { margin-top: var(--s7); }
.dsec__t { margin-bottom: var(--s4); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.desc { max-width: 72ch; font-size: 17px; line-height: 1.85; white-space: pre-line; }
.desc-note { margin-top: var(--s3); }
.desc-orig { margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--subtle); }
.desc-orig summary { cursor: pointer; color: var(--primary-text); font-size: var(--fs-sm); font-weight: 700; min-height: 24px; }
.desc-orig .desc { margin-top: var(--s3); color: var(--sub); font-size: 15px; }

/* 영향 받는 제품 — 제품마다 카드 */
.dsec__n { margin-left: var(--s2); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.affs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.affs--one { grid-template-columns: 1fr; }
.affc { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--ease); }
.affc:hover { border-color: var(--line-strong); }
.affc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); }
.affc__name { min-width: 0; }
.affc__vendor { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.affc__prod { margin-top: 2px; font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pill { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--subtle-2); color: var(--sub); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-line); }
.affc__body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s3) var(--s4); padding: var(--s4) var(--s5) var(--s5); border-top: 1px solid var(--line); }
.affc__grp { min-width: 0; flex: 0 1 auto; }
.affc__lab { margin-bottom: 8px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; line-height: 18px; }
/* 화살표 = 라벨 높이(18 + 8)만큼 내려 첫 줄 칩(30px)과 같은 높이 · 칩이 여러 줄이어도 첫 줄에 */
.affc__arrow { flex: none; align-self: flex-start; margin-top: 26px; width: 22px; height: 30px; position: relative; }
.affc__arrow::before { content: ""; position: absolute; left: 2px; right: 4px; top: 50%; height: 1.5px; background: var(--muted); }
.affc__arrow::after { content: ""; position: absolute; right: 3px; top: calc(50% - 4px); width: 8px; height: 8px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); transform-origin: center; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.vchips li {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--subtle);
  font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink); white-space: normal;
}
.vchips--fix li { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); font-weight: 700; }
.vmore { margin-top: var(--s2); }
.vmore summary { cursor: pointer; color: var(--primary-text); font-size: var(--fs-xs); font-weight: 700; min-height: 24px; }
.vmore .vchips { margin-top: var(--s2); }

/* 참고 자료 — 도메인 굵게 + 주소 말줄임 */
.refs { display: grid; gap: 6px; }
.ref {
  display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); align-items: baseline; gap: var(--s4);
  padding: 12px var(--s4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface);
  color: var(--ink); text-decoration: none; transition: border-color var(--ease), background-color var(--ease);
}
a.ref:hover { border-color: var(--primary); background: var(--subtle); }
a.ref:hover .ref__host { color: var(--primary-text); }
.ref__host { font-size: var(--fs-sm); font-weight: 800; white-space: nowrap; transition: color var(--ease); }
.ref__url { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: var(--fs-xs); }

.dnext { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); }
.dnext__t { margin-left: auto; color: var(--sub); font-size: 15px; }
.dnext__t a { margin-left: var(--s2); font-weight: 700; }

/* 고침 5 — KEV 기한 · 원천 더 있음 · 제조사 공지 · 필요 조치 · 쪽 상한 */
.kev-due { color: var(--sev-critical-ink); font-size: 11.5px; font-weight: 700; cursor: help; }
.affc__more, .affs__more { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.affs__more { margin-top: var(--s3); }
.affc__none { color: var(--muted); font-size: var(--fs-sm); }
.affc__note { color: var(--ok-ink); font-size: var(--fs-sm); font-weight: 600; }
.affc__adv { padding: 0 var(--s5) var(--s4); }
.affc__body + .affc__adv { padding-top: 0; }
.affc__head + .affc__adv { padding-top: var(--s4); border-top: 1px solid var(--line); }
.affc__links { display: grid; gap: 4px; font-size: var(--fs-sm); }
.affc__links a { word-break: break-all; }
.dfacts__more { margin-top: var(--s2); }
.dfacts__more summary { cursor: pointer; color: var(--primary-text); font-size: 13px; font-weight: 700; min-height: 24px; }
.dfacts__more p { margin-top: 4px; color: var(--sub); font-size: 13px; line-height: 1.55; }
.rrow__mt { margin-right: 4px; padding: 0 5px; border-radius: 4px; background: var(--primary-soft); color: var(--primary-text); font-size: 11px; font-weight: 700; }
.pages__cap { margin-top: var(--s3); text-align: center; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 문의 폼 ---------- */
.form-card { padding: var(--s6); }
.form { display: grid; gap: var(--s5); }
.fld { display: grid; gap: 6px; }
.fld > label, .fld__label { font-size: 15px; font-weight: 700; }
.req { color: var(--sev-critical-ink); margin-left: 2px; }
.fld .input, .fld .select { width: 100%; }
.fld textarea.input { height: auto; min-height: 200px; padding: var(--s3) 14px; line-height: 1.65; resize: vertical; }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--sev-critical-bar); }
.f-err { color: var(--sev-critical-ink); font-size: var(--fs-sm); font-weight: 600; }
.alert { padding: var(--s4) var(--s5); border-radius: var(--r-ctl); background: var(--sev-critical-bg); color: var(--sev-critical-ink); }
.alert strong { display: block; font-size: var(--fs-body); }
.alert p { font-size: var(--fs-sm); }
.chk { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; cursor: pointer; font-size: 15px; font-weight: 600; }
.chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.consent { padding: var(--s5); border-radius: var(--r-ctl); background: var(--subtle); }
.consent__t { font-size: 15px; font-weight: 800; margin-bottom: var(--s3); }
.consent-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-badge); overflow: hidden; }
.consent-table th, .consent-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.consent-table tr:first-child th, .consent-table tr:first-child td { border-top: 0; }
.consent-table th { width: 110px; color: var(--muted); font-weight: 700; background: var(--subtle); }
.consent__note { margin: var(--s3) 0; font-size: var(--fs-sm); color: var(--muted); }
.tbd { display: inline-block; padding: 0 6px; background: var(--sev-medium-bg); color: var(--sev-medium-ink); font-weight: 800; border-radius: 4px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: flex-end; }

/* ---------- 문서 (개인정보 처리방침) ---------- */
.doc { padding: var(--s6) var(--s7); }
.doc h2 { font-size: var(--fs-h3); font-weight: 800; margin: var(--s7) 0 var(--s3); }
.doc h2:first-child { margin-top: 0; }
.doc p { color: var(--sub); }

/* ---------- 알림 화면 (완료 · 오류) ---------- */
.notice { padding: var(--s9) 0 var(--s7); }
.notice__code { color: var(--primary-text); font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.04em; }
.notice__t { margin-top: var(--s3); font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.02em; }
.notice__d { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-lg); }
.notice .btn-row { margin-top: var(--s6); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1024px) {
  .hero__in { grid-template-columns: 1fr; gap: var(--s7); }
  .steps { grid-template-columns: 1fr; gap: var(--s3); }
  .dlayout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); }
  .affs { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --head-h: 60px; }
  .site-foot__in { grid-template-columns: 1fr; }
  .site-head__in { flex-wrap: wrap; gap: var(--s2); padding-top: var(--s2); padding-bottom: var(--s2); }
  .gnb { margin-left: 0; width: 100%; overflow-x: auto; }
  .gnb a:not(.btn) { padding: 0 10px; font-size: var(--fs-sm); }
  .gnb a[aria-current="page"]::after { bottom: 2px; left: 10px; right: 10px; }
  .gnb .btn { margin-left: auto; }
  .site-head { position: static; }

  .hero__in { padding-top: var(--s7); padding-bottom: var(--s7); }
  .sec { padding-top: var(--s8); }
  .sec--band { margin-top: var(--s8); padding: var(--s8) 0; }
  .features { grid-template-columns: 1fr; gap: var(--s3); }
  .feature { padding: var(--s5); }
  .cta { padding: var(--s6) var(--s5); }
  .rules th, .rules td { padding: var(--s3) var(--s4); }
  .rules .c-mark { width: auto; }

  .page-hero__in { padding-top: var(--s6); padding-bottom: var(--s6); }
  .fld-2 { grid-template-columns: 1fr; }
  .form-card, .doc { padding: var(--s5) var(--s4); }

  /* 게시판 */
  .lhero__in { padding-top: var(--s6); padding-bottom: var(--s5); }
  .lhero__title { font-size: 22px; }
  .lhero__meta { margin-top: 2px; font-size: 12px; gap: 0 var(--s3); }
  .lhero__meta > span:last-child { display: none; }
  .sbar { min-height: 46px; margin-top: var(--s3); border-radius: var(--r-ctl); box-shadow: none; }
  .sbar:focus-within { box-shadow: none; }
  .sbar__scope { width: 76px; padding: 0 6px 0 10px; font-size: 13px; }
  .sbar__input { padding: 0 10px; font-size: 15px; }
  .sbar__btn { margin: 4px; width: 38px; padding: 0; justify-content: center; border-radius: 8px; }
  .sbar__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .qtabs { margin-top: var(--s2); margin-bottom: calc(-1 * var(--s4)); overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
    padding-right: var(--s6); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .qtabs::-webkit-scrollbar { display: none; }
  .qtabs a { flex: none; min-height: 38px; padding: 0 var(--s3); }
  .lhero__in { padding-top: var(--s4); padding-bottom: var(--s4); }
  .board { grid-template-columns: 1fr; grid-template-areas: "bar" "side" "res"; grid-template-rows: auto; row-gap: var(--s2); padding-top: var(--s3); }
  .ftoggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .rbar { gap: 6px var(--s2); margin-bottom: 0; }
  .ftoggle__btn { order: 0; display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 700; cursor: pointer; }
  .ftoggle__btn::after { content: " ▾"; color: var(--muted); white-space: pre; }
  .ftoggle:checked ~ .rbar .ftoggle__btn::after { content: " ▴"; }
  .ftoggle:checked ~ .rbar .ftoggle__btn { border-color: var(--primary); color: var(--primary-text); }
  .ftoggle:focus-visible ~ .rbar .ftoggle__btn { outline: 2px solid var(--primary); outline-offset: 2px; }
  .rbar__ctl { order: 1; margin-left: auto; gap: 4px; }
  .rbar__ctl .select--sm { height: 34px; padding: 0 22px 0 8px; font-size: 13px; }
  .rbar__ctl .btn--sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .rbar__count { order: 2; width: 100%; font-size: 12.5px; }
  .rbar__count b { font-size: 14px; }
  .fside { display: none; position: static; }
  .ftoggle:checked ~ .fside { display: block; }
  .rhead { display: none; }
  .rrow { max-height: none; }
  .rrow__date { text-align: left; }
  .rrow { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "sev main" "sev prod" "sev epss" "sev date"; row-gap: 4px; padding: 12px var(--s4); }
  .rrow__sev { grid-area: sev; flex-direction: column; align-items: flex-start; align-self: start; gap: 4px; }
  .rrow__main { grid-area: main; }
  .rrow__prod { grid-area: prod; grid-auto-flow: column; justify-content: start; align-items: center; gap: var(--s2); }
  .rrow__epss { grid-area: epss; }
  .rrow__epss:empty { display: none; }
  .crow__epss { grid-auto-flow: column; justify-content: start; align-items: center; gap: var(--s2); }
  .crow__epss .meter { width: 80px; }
  .rrow__date { grid-area: date; font-size: 12px; }
  .rrow__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  /* 상세 — 요약이 제목 아래로 */
  .dlayout { grid-template-columns: 1fr; grid-template-areas: "side" "body"; gap: var(--s6); margin-top: var(--s5); }
  .dside { position: static; }
  .dscore__num { font-size: 44px; }
  /* 상세 요약 기둥 — 짧은 칸은 2열 짝 · 긴 칸(벡터·영향 제품·필요 조치가 든 KEV)은 한 줄 전체 */
  .dfacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s4); padding: 0 var(--s4); margin-bottom: -1px; }
  .dfacts > div { border-top: 0; border-bottom: 1px solid var(--line); padding: 12px 0; min-width: 0; }
  .dfacts > .f-vec, .dfacts > .f-prod { grid-column: 1 / -1; }
  .dfacts > .f-kev:has(.dfacts__more) { grid-column: 1 / -1; }
  .dfacts > .f-src, .dfacts > .f-cwe, .dfacts > .f-cna, .dfacts > .f-pub { grid-column: 1; }
  .dfacts > .f-kev, .dfacts > .f-epss, .dfacts > .f-stat, .dfacts > .f-mod { grid-column: 2; }
  .f-vec { order: 1; } .f-src { order: 2; } .f-kev { order: 3; } .f-cwe { order: 4; } .f-epss { order: 5; }
  .f-cna { order: 6; } .f-stat { order: 7; } .f-pub { order: 8; } .f-mod { order: 9; } .f-prod { order: 10; }
  .affs { grid-template-columns: 1fr; }
  .affc__head { flex-wrap: wrap; }
  .ref { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
