/* 한국산업교육연구소 — 화면 기본
   원칙
    · 웹폰트를 쓰지 않는다. 기기에 이미 있는 글꼴을 쓴다.
      (한글 웹폰트 preload 가 응답 헤더 한도를 넘겨 전면 502 를 낸 이력이 있다)
    · 본문 17px, 누르는 것은 최소 44px. 현장·고령 이용자가 많다.
    · color-scheme 을 only light 로 못박는다. 선언하지 않으면 안드로이드 브라우저의
      '강제 어둡게'가 색을 제멋대로 뒤집는다.
*/

:root {
  color-scheme: only light;

  /* 바탕 — 기존 데모와 같은 값 (--w · --g1 · --g2) */
  --bg:        #ffffff;
  --bg-soft:   #F9FAF9;
  --bg-sunk:   #EAF5EC;   /* --gl : 아주 옅은 초록 */
  --line:      #E8ECE8;   /* --g2 */
  --line-soft: #F0F3F0;

  /* 글자 — 기존 데모의 --g8 · --g7 · --g5 */
  --ink:       #1A231B;
  --ink-2:     #374137;
  --ink-3:     #6B7B6C;
  --ink-on:    #ffffff;

  /* ★연구소 바탕색 — 기존 데모와 같은 초록. 로고와 맞다.
     --gd #1A5E29 · --gm #2A7D3B · --gi #3A9B4E · --gl #EAF5EC */
  --brand:     #1A5E29;
  --brand-2:   #2A7D3B;
  --brand-ink: #14441F;   /* 발·윗줄용으로 --gd 보다 한 단 진하게 */
  --brand-bg:  #EAF5EC;
  --brand-lite:#3A9B4E;
  --gold:      #C8A84B;   /* --ac : 강조 */

  /* 3대 사업 — 초록 계열 안에서 갈래를 나눈다 */
  --safety:    #1A5E29;   /* 안전 — 기관 바탕색 그대로 (중심 사업) */
  --safety-bg: #EAF5EC;
  --org:       #1F6F6A;   /* 조직개발 — 청록 쪽으로 */
  --org-bg:    #E9F4F3;
  --life:      #735A14;   /* 평생교육 — 금빛 계열(--ac 와 이음). #8A6D1F 는 연한 바탕 위 대비 4.5:1 에 걸쳐 있었다 */
  --life-bg:   #FAF5E7;

  /* 알림 */
  --ok:        #1A5E29;
  --ok-bg:     #EAF5EC;
  --warn:      #9A7A15;
  --warn-bg:   #FAF5E7;
  --bad:       #B3261E;   /* --ar. #D94F3D 는 흰 바탕 3.9:1·연한 빨강 바탕 3.6:1 — 강조색이 오히려 흐렸다 */
  --bad-bg:    #FDEEEC;
  --off:       #56655A;   /* #6B7B6C 는 연회색 바탕 4.0:1 */
  --off-bg:    #F1F3F1;

  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 2px 8px rgba(0,0,0,.08);        /* 데모 --sh */
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);      /* 데모 --shl */

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR",
          "Segoe UI", Roboto, system-ui, sans-serif;

  --tap: 44px;              /* 누르는 것의 최소 크기 */
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { overflow-x: clip; }   /* 쪽 전체가 옆으로 밀리는 일은 없어야 한다 */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;      /* 한글은 단어 단위로 줄바꿈해야 읽힌다 */
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.only-read { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 건너뛰기 — 키보드로만 보인다 */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200;
        background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ───────────────────────── 머리 */
.top-strip { background: var(--brand-ink); color: #CFE8D5; font-size: .875rem; }
.top-strip .wrap { display: flex; gap: 14px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.top-strip a { color: #CFE8D5; }
.top-strip .sp { margin-left: auto; }

.head { position: sticky; top: 0; z-index: 90; background: var(--bg);
        border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800;
         font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }

/* 주 메뉴 — 옛 데모처럼 한 줄 알약 단추. 누르면 그 묶음의 첫 쪽으로 간다(11-05 — 예전엔 아래로 판이 펼쳐졌다) */
.head { position: relative; z-index: 60; }
.gnb { display: flex; gap: 2px; margin: 0 0 0 4px; padding: 0; list-style: none; }
.gnb > li { list-style: none; }
.gnb-top { display: flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 0 11px; border-radius: 999px; font-weight: 700; color: var(--ink); font-size: 1.02rem; white-space: nowrap; }
.gnb-top:hover, .gnb-top.on { background: var(--brand-bg); color: var(--brand); text-decoration: none; }

/* 묶음 메뉴 줄 — 묶음 안의 쪽마다 머리 아래에 하위 메뉴를 펼쳐 둔다(layout.js sectionNav). 좁으면 줄을 바꿔 쌓는다(옆 넘침 없음) */
.snb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.snb .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 10px; }
.snb-name { display: inline-flex; align-items: center; min-height: 40px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.snb ul { display: flex; flex: 1 1 520px; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 0; max-width: 100%; }
.snb li { max-width: 100%; }
.snb ul a { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.snb ul a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.snb ul a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 열고 닫는 머리(summary)는 휴대폰 폭에서만 보인다 — 넓은 화면은 늘 펼친 줄 */
.snb-sum { display: none; }
@media (max-width: 860px) {
  .snb-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--tap);
    padding: 8px 20px; list-style: none; cursor: pointer; font-weight: 700; color: var(--ink-2); }
  .snb-sum::-webkit-details-marker { display: none; }
  .snb-sum > span { min-width: 0; }
  .snb-sum strong { color: var(--brand); }
  .snb-sum::after { content: "▾"; flex: none; color: var(--brand); transition: transform .15s; }
  .snb-box[open] > .snb-sum::after { transform: rotate(180deg); }
  .snb-box[open] > .snb-sum { border-bottom: 1px solid var(--line-soft); }
  .snb .wrap { gap: 4px 6px; padding-block: 8px; }
  .snb ul { gap: 4px 6px; }
  .snb-name { display: none; }   /* 머리(summary)에 묶음 이름이 있고, 묶음 첫 쪽은 목록 첫 줄에 있다 */
  .snb ul a { min-height: var(--tap); padding: 6px 12px; font-size: .9rem; }
}

.head-act { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }

.head-act .menu-btn { display: none; }

/* ───────────────────────── 단추 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: var(--tap); padding: 10px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 700;
  cursor: pointer; text-align: center;
}
.btn:hover { background: var(--bg-soft); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-main { background: var(--brand); border-color: var(--brand); color: var(--ink-on); }
.btn-main:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-sunk); }
.btn-line { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 13px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }
/* 이수확인증 안내의 '어디서 뽑나요?'·'진짜인지…' 바로가기 — 본문 링크보다 굵고 크게(연구소 11-05) */
.cert-go { margin-top: auto; font-size: 1.08rem; font-weight: 800; white-space: normal; text-align: center; justify-content: center; }

/* ───────────────────────── 딱지 */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
       border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tag-safety { background: var(--safety-bg); color: var(--safety); }
.tag-org    { background: var(--org-bg);    color: var(--org); }
.tag-life   { background: var(--life-bg);   color: var(--life); }
.tag-ok     { background: var(--ok-bg);     color: var(--ok); }
.tag-warn   { background: var(--warn-bg);   color: var(--warn); }
.tag-bad    { background: var(--bad-bg);    color: var(--bad); }
/* 테스트용 가안(시연 일정) — 진짜 일정과 한눈에 갈리게 진한 빨강 바탕 */
.tag-demo   { background: #C62828; color: #fff; font-weight: 800; letter-spacing: .02em; }
.demo-note  { border-left: 5px solid #C62828 !important; }
.tag-off    { background: var(--off-bg);    color: var(--off); }
.tag-done   { background: var(--brand-bg);  color: var(--brand); }
.tag-wait   { background: var(--bg-sunk);   color: var(--ink-2); }
.tag-law    { background: #1A231B; color: #fff; }

/* ───────────────────────── 판·카드 */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
        box-shadow: var(--shadow); }
.card-p { padding: 22px; }
/* 교육 카드 맨 위 그림(2026-11-05) — 카드 안쪽 여백(20px)을 넘어 가장자리까지. 16:9 로 고정해 그림마다 카드 높이가 달라지지 않게 */
.card-pic { overflow: hidden; }
.card-pic-img { display: block; width: calc(100% + 40px); max-width: none; height: auto; margin: -20px -20px 0;
                aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
/* 팝업 그림 — 누르면 팝업 링크로. 세로로 긴 포스터가 화면을 덮지 않게 높이를 묶는다 */
.popup-pic { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: var(--bg-soft); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.sec { padding-block: 58px; }   /* 위아래만 — "58px 0" 으로 쓰면 .wrap 의 좌우 여백 20px 까지 지워져 폰에서 글이 화면 끝에 붙었다 */
.sec-soft { background: var(--bg-soft); }
.sec-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head .more { margin-left: auto; font-weight: 700; color: var(--ink-2); }
.sec-head p { margin: 4px 0 0; color: var(--ink-3); }

/* ───────────────────────── 표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .97rem; }
table.list th, table.list td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
table.list thead th { background: var(--bg-soft); color: var(--ink-2); font-weight: 700;
                      border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list tbody tr:hover { background: var(--bg-soft); }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list td.mid, table.list th.mid { text-align: center; }

/* 정보 표 (증명서·상세) */
table.info { width: 100%; border-collapse: collapse; }
table.info th { width: 150px; background: var(--bg-soft); color: var(--ink-2);
                font-weight: 700; text-align: left; padding: 12px 14px;
                border: 1px solid var(--line); vertical-align: top; }
table.info td { padding: 12px 14px; border: 1px solid var(--line); }

/* ───────────────────────── 입력 */
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 700; margin-bottom: 7px; }
.field .hint { color: var(--ink-3); font-size: .9rem; margin-top: 6px; }
.req::after { content: " *"; color: var(--bad); }

/* type 을 안 적은 칸·날짜+시각·주소 칸도 같은 모양으로 — 빠져 있어서 전화 문의·내 정보의 몇 칸이 높이 21px 맨칸이었다 */
input:not([type]), input[type=text], input[type=password], input[type=email], input[type=tel], input[type=url],
input[type=number], input[type=date], input[type=month], input[type=datetime-local], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: var(--tap); padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: var(--bg);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }
input:disabled, select:disabled, textarea:disabled { background: var(--bg-sunk); color: var(--ink-3); }

.check { display: flex; align-items: flex-start; gap: 10px; min-height: var(--tap);
         padding: 6px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--brand); }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

/* 비밀번호 규칙 실시간 표시 (UX 2) */
.pwrules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.pwrules li { list-style: none; font-size: .86rem; font-weight: 600;
              padding: 3px 10px; border-radius: 999px; background: var(--bg-sunk); color: var(--ink-3); }
.pwrules li.on { background: var(--ok-bg); color: var(--ok); }

/* 알림 띠 */
.note { padding: 15px 18px; border-radius: var(--radius); border: 1px solid; margin-bottom: 20px; }
.note-ok   { background: var(--ok-bg);   border-color: #bfe3d0; color: #14441F; }
.note-warn { background: var(--warn-bg); border-color: #f0dcb3; color: #7d4907; }
.note-bad  { background: var(--bad-bg);  border-color: #f2c9c6; color: #8f1d17; }
.note-info { background: var(--brand-bg);border-color: #BFDDC6; color: var(--brand-ink); }
.note .note-t { display: block; margin-bottom: 3px; }   /* ★제목만. 본문 속 <strong> 은 줄을 안 끊는다 */

/* ───────────────────────── 단계 표시 */
.steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 9px 16px;
            border-radius: 999px; background: var(--bg-sunk); color: var(--ink-3);
            font-weight: 700; font-size: .95rem; }
.steps li .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
               background: var(--ink-3); color: #fff; font-size: .8rem; }
.steps li[aria-current] { background: var(--brand); color: #fff; }
.steps li[aria-current] .n { background: rgba(0,0,0,.22);   /* 흰 반투명은 흰 숫자 대비 4:1 남짓이었다 */ }
.steps li.done { background: var(--ok-bg); color: var(--ok); }
.steps li.done .n { background: var(--ok); }

/* ───────────────────────── 쪽 번호 */
.pager { display: flex; justify-content: center; align-items: center; gap: 5px;
         flex-wrap: wrap; margin: 30px 0; }
.pager a, .pager span { min-width: var(--tap); min-height: var(--tap);
         display: grid; place-items: center; padding: 0 12px;
         border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: var(--ink-2); }
.pager a:hover { background: var(--bg-soft); text-decoration: none; }
.pager [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .off { opacity: .4; }

/* ───────────────────────── 발 */
.foot { margin-top: 70px; background: var(--brand-ink); color: #b9cbe3; padding: 44px 0 34px; font-size: .94rem; }
.foot a { color: #DDEFE1; }
.foot h4 { color: #fff; font-size: .98rem; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot .bar { display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 22px;
             margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.16); font-weight: 700; }
.foot .bar a { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.foot .copy { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
              color: #B9CCE0; font-size: .87rem; }   /* #8ba4c2 는 대비 4.4:1 */

/* ───────────────────────── 인쇄 (이수확인증) */
@media print {
  .top-strip, .head, .snb, .foot, .noprint { display: none !important; }
  body { font-size: 12pt; background: #fff; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .cert-page { box-shadow: none !important; border: 0 !important; margin: 0 !important; }
  @page { size: A4 portrait; margin: 14mm; }
}

/* ───────────────────────── 좁은 화면 */
/* 윗메뉴를 ☰ 로 접는 폭. 860px 로는 모자랐다 — 900px 에서 머리 단추가 1059px 까지 나갔다(🔍·🔔 가 더해진 뒤) */
/* 주 메뉴를 한 줄로 펼치는 폭(940px~) 에서는 머리의 '교육 신청' 단추와 영문 이름 줄을 접는다.
   쟀더니 메뉴 6개 + 단추 + 영문 줄은 어느 폭에서도 한 줄(최대 1,140px)에 안 들어간다. 메뉴 줄에 '교육신청' 이 있다.
   그보다 좁으면 ☰ 로 접고 '교육 신청' 단추를 보인다. */
@media (min-width: 940px) { .head-act > .btn-main, .brand small { display: none; } }
/* 940~1099px(작은 노트북): 로고만 남기고 이름 글자를 접고, 메뉴 간격을 좁혀 한 줄에 넣는다(10-08 '1100px 은 너무 높다') */
/* 안전 실무 서식 목록 */
.form-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.form-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.form-item p { margin: 4px 0; color: var(--ink-2); }
.form-item .btn { flex: none; }

/* 글자 앞 이모티콘(꾸밈) — 글자와 같은 줄, 살짝 띄움 */
.ico { display: inline-block; margin-right: .35em; font-style: normal; line-height: 1; }
/* 좁은 PC: 기관명 글자·메뉴 이모티콘을 숨겨 한 줄에. 로그인하면 🔔 단추가 늘어 1100~1366px 에서 넘쳤다(10-08) → 1279px 까지 */
@media (min-width: 940px) and (max-width: 1279px) {
  .head .brand > span { display: none; }
  .gnb-top { padding: 0 8px; font-size: .95rem; }
  .gnb-top .ico { display: none; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .gnb-top .ico { display: none; }
}
@media (max-width: 939px) {
  .gnb { display: none; }
  .head-act .menu-btn { display: inline-flex; }
}
/* 1320px 까지 영문 이름 줄을 접는다 — 🔍·🔔 가 들어온 뒤 1280px PC 에서 '교육 신청' 이 오른쪽 끝에서 잘렸다 */
@media (max-width: 1320px) {
  .brand small { display: none; }
  .gnb-top { padding: 0 10px; font-size: .98rem; }
}
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .gnb { display: none; }
  .head-act .menu-btn { display: inline-flex; }
  .head .wrap { min-height: 64px; gap: 10px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  /* 좁은 화면에서는 단추를 작게 — 안 그러면 ☰ 가 화면 밖으로 밀린다 */
  .head-act { gap: 6px; min-width: 0; }
  .head-act > .btn { min-height: var(--tap); padding: 8px 13px; font-size: .95rem; white-space: nowrap; }
  .head-act .menu-btn { padding: 8px 11px; }
  .top-strip .hide-sm { display: none; }
  /* 손가락으로 누르는 화면에서는 작은 단추를 두지 않는다 (누름판 최소 44px) */
  .btn-sm { min-height: var(--tap); padding: 9px 14px; font-size: .95rem; }
  .top-strip .btn-sm { min-height: 38px; }   /* 윗줄은 글자 링크 줄. 손가락 화면(hover: none)에서는 아래 규칙이 44px 로 올린다 */
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .sec { padding-block: 38px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.28rem; }
  .foot .cols { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 430px) {
  .brand > span { font-size: .92rem; }
  .head-act > .btn { padding: 6px 9px; font-size: .88rem; }
  .hide-mid { display: none !important; }   /* 아주 좁은 화면에서 접는 것 */
  /* 🔍·🔔 가 들어온 뒤로 375·390px 폰에서 ☰ 가 화면 밖(오른쪽 401~434px)으로 밀려 메뉴를 못 열었다.
     머리의 '교육 신청' 은 ☰ 메뉴 맨 앞과 첫 화면에도 있으니 여기서는 접는다. 이름은 길면 말줄임. */
  .head-act > .btn-main { display: none; }
  .brand { min-width: 0; }
  .brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* 펼치는 모바일 메뉴 — 자바스크립트가 없어도 열린다(details) */
.mnav { display: none; }
@media (max-width: 939px) {   /* 윗메뉴를 ☰ 로 접는 폭과 같게 */
  .mnav { display: block; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
  .mnav > div { padding: 12px 20px 18px; }
  /* 큰 메뉴만 보이고 누른 것만 펼친다 — 하위 50여 개를 한꺼번에 늘어놓던 것을 접었다 */
  .mnav-sec { border-bottom: 1px solid var(--line); }
  .mnav-sec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; padding: 0 6px; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
  .mnav-sec > summary::-webkit-details-marker { display: none; }
  .mnav-sec > summary::after { content: "＋"; color: var(--brand); font-weight: 800; }
  .mnav-sec[open] > summary { color: var(--brand); }
  .mnav-sec[open] > summary::after { content: "－"; }
  .mnav-sec > div { padding: 0 0 10px 10px; }
  .mnav-acct { display: flex; gap: 8px; margin-top: 12px; }
  .mnav a:not(.btn) { display: block; padding: 12px 6px; min-height: var(--tap);
            border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 600; }
  /* 메뉴 맨 앞 '교육 신청' 은 단추 모양 그대로 — 위 규칙이 단추에까지 먹어 초록 바탕에 검은 글씨(대비 2.1:1)였다 */
}

/* ───────────────────────── 첫 화면 (기존 데모의 배경 사진 디자인을 되살림)
   사진 위에 초록 그라데이션을 덮고 글을 올린다. 사진만 있으면 글이 안 읽히고,
   색만 있으면 현장 느낌이 사라진다. 데모가 그 둘을 겹쳐 놓았던 방식 그대로다. */
.hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
}
/* 덮개 — 왼쪽은 진하게, 오른쪽으로 갈수록 옅게. 글이 놓이는 쪽만 가린다 */
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(20,68,31,.86) 0%, rgba(26,94,41,.72) 38%, rgba(26,94,41,.34) 66%, rgba(26,94,41,.10) 100%);
}
.hero .wrap { position: relative; padding: 68px 20px; }
.hero-in { max-width: 760px; }
.hero-eyebrow { margin: 0 0 12px; color: #CFE8D5; font-weight: 700; letter-spacing: .02em; }
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; color: #fff;
  line-height: 1.22; margin: 0 0 16px; text-shadow: 0 2px 16px rgba(0,0,0,.28);
}
.hero h1 strong { color: #FFE066; font-weight: 800; }   /* 데모의 강조색 그대로 */
.hero-lead {
  font-size: 1.1rem; color: #E4F2E7; margin: 0 0 28px; max-width: 44em;
  text-shadow: 0 2px 14px rgba(0,0,0,.26);
}
/* 유리판 숫자 띠 */
.hero-stats {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px; width: fit-content; max-width: 100%; overflow: hidden; margin-top: 30px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-stats .st { padding: 14px 24px; color: #fff; }
.hero-stats .st .n { font-size: 1.4rem; font-weight: 800; line-height: 1.15; }
.hero-stats .st .n span { font-size: .85rem; font-weight: 500; }
.hero-stats .st .l { font-size: .78rem; color: rgba(255,255,255,.76); margin-top: 3px; }
.hero-stats .sep { width: 1px; background: rgba(255,255,255,.24); margin: 12px 0; }
/* 떠 있는 지정기관 딱지 */
.hero-badge {
  position: absolute; top: 28px; left: max(20px, calc(50% - 590px + 20px));
  background: rgba(255,255,255,.95); border-radius: 12px; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.hero-badge strong { display: block; font-size: .92rem; color: var(--brand); line-height: 1.3; }
.hero-badge span { font-size: .8rem; color: var(--ink-2); }
/* 공지 띠 */
.hero-notice { background: var(--brand-bg); border-bottom: 1px solid var(--line); }
.hero-notice .wrap { display: flex; align-items: center; gap: 12px; min-height: 46px; flex-wrap: wrap; }
.hero-notice .tag { background: var(--brand-2); color: #fff; }
.hero-notice p { margin: 0; flex: 1; min-width: 200px; color: var(--ink-2); }

@media (max-width: 860px) {
  .hero { min-height: 520px; align-items: flex-end; }
  /* 좁은 화면에서는 위아래로 덮는다 — 옆으로 덮으면 글이 사진과 겹친다 */
  .hero-veil { background: linear-gradient(180deg,
    rgba(20,68,31,.58) 0%, rgba(26,94,41,.72) 46%, rgba(20,68,31,.90) 100%); }
  .hero .wrap { padding: 120px 20px 40px; }
  .hero-badge { top: 16px; left: 20px; padding: 8px 12px; }
  .hero-badge span { display: none; }
  .hero-stats .st { padding: 12px 16px; }
}

/* ───────────────────────── 연혁
   왼쪽에 연도, 오른쪽에 일. 가운데 세로줄이 둘을 잇는다. */
.hist { list-style: none; margin: 0; padding: 0; position: relative; }
.hist::before {
  content: ""; position: absolute; top: 10px; bottom: 10px; left: 124px;
  width: 2px; background: var(--line);
}
.hist-item { display: flex; gap: 0; align-items: flex-start; padding: 12px 0; position: relative; }
.hist-when {
  flex: 0 0 124px; text-align: right; padding-right: 26px;
  font-weight: 700; color: var(--ink-2); font-size: 1.02rem; line-height: 1.5;
}
.hist-when span { font-size: .82rem; font-weight: 500; color: var(--ink-3); margin-left: 1px; }
.hist-tbd { font-size: .82rem; font-weight: 600; color: var(--ink-3); }
/* 세로줄 위의 점 */
.hist-item::before {
  content: ""; position: absolute; left: 119px; top: 19px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-soft); box-sizing: border-box;
}
.hist-item.major::before { background: var(--brand); border-color: var(--brand); }
.hist-what { flex: 1; padding-left: 26px; min-width: 0; }
.hist-what strong { font-size: 1.02rem; color: var(--ink); }
.hist-item.major .hist-what strong { font-size: 1.1rem; color: var(--brand-ink); }
.hist-what p { margin: 5px 0 0; color: var(--ink-2); line-height: 1.7; }
.hist-tbd-list::before { background: var(--line-soft); }

@media (max-width: 640px) {
  /* 좁으면 연도를 위로 올린다. 124px 를 떼어 주면 글이 두 글자씩 끊긴다 */
  .hist::before, .hist-item::before { display: none; }
  .hist-item { flex-direction: column; gap: 4px; padding: 14px 0;
               border-bottom: 1px solid var(--line-soft); }
  .hist-when { flex: none; text-align: left; padding: 0; color: var(--brand); }
  .hist-what { padding-left: 0; }
}

/* ───────────────────────── 조건 칩
   '초기화' 하나만 있으면 조건 넷 중 하나를 빼려고 처음부터 다시 골라야 한다. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.chips-label { font-size: .85rem; color: var(--ink-3); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-bg); border: 1px solid #BFDDC6; color: var(--brand-ink);
  border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600;
  text-decoration: none; line-height: 1.3;
}
.chip:hover { background: #DDEFE1; text-decoration: none; }
.chip-k { color: var(--ink-3); font-weight: 500; }
.chip-x { font-size: 1.05rem; line-height: 1; color: var(--ink-3); margin-left: 1px; }
.chip:hover .chip-x { color: var(--bad); }
.chip-clear { background: var(--bg-sunk); border-color: var(--line); color: var(--ink-2); }
.chip-clear:hover { background: var(--line-soft); }

/* 눈에는 안 보이고 읽어 주는 기계에만 들리는 글 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ───────────────────────── 관리 화면 틀 (2026-10-14)
   PC(1024px 이상): 왼쪽 꽉 찬 메뉴 272px + 오른쪽 윗줄·본문. 좁은 화면: 윗줄 + 아래쪽 고정 막대 + 전체 메뉴(#adm-all) */
.adm-body { background: var(--bg-soft); }
.adm-side { position: fixed; top: 0; bottom: 0; left: 0; width: 272px; z-index: 40; display: flex; flex-direction: column;
  background: var(--bg); border-right: 1px solid var(--line); padding: 16px 14px; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; text-decoration: none; color: var(--ink); }
.adm-brand img { width: 36px; height: auto; }
.adm-brand strong { display: block; font-size: 1.02rem; }
.adm-brand small { display: block; color: var(--ink-3); font-size: .78rem; }
.adm-side-nav { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.adm-side-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: .96rem; }
.adm-side-nav a:hover { background: var(--bg-soft); }
.adm-side-nav a.on { background: var(--brand-bg); color: var(--brand-ink); font-weight: 800; }
.adm-side-nav a.gstart { margin-top: 8px; position: relative; }
.adm-side-nav a.gstart::before { content: ""; position: absolute; left: 12px; right: 12px; top: -5px; border-top: 1px solid var(--line-soft); }
.adm-i { width: 22px; text-align: center; font-size: 1.05rem; flex: none; }
.adm-prof { border-top: 1px solid var(--line); padding: 12px 6px 2px; }
.adm-prof-who { display: flex; align-items: center; gap: 10px; }
.adm-prof-who strong { display: block; font-size: .95rem; }
.adm-prof-who small { display: block; color: var(--brand); font-size: .78rem; }
.adm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.adm-prof-act { display: flex; gap: 6px; margin-top: 10px; }
.adm-prof-act a, .adm-prof-act button { width: 44px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--ink-2); cursor: pointer; font-size: 1rem; }
.adm-prof-act a:hover, .adm-prof-act button:hover { border-color: var(--brand); }
.adm-prof-act form { margin: 0; }
.adm-col { margin-left: 272px; min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 0 22px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.adm-top-sp { flex: 1; }
.adm-brand-m { display: none; padding: 0; }
.adm-main { max-width: 1500px; margin: 0 auto; padding: 24px 28px 48px; }
.adm-main.adm-narrow { max-width: 1060px; }
.adm-tabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.adm-tabs a, .adm-tabs span { padding: 9px 14px; white-space: nowrap; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--ink-2); }
.adm-tabs span { background: var(--bg); font-weight: 800; color: var(--brand-ink);
  border: 1px solid var(--line); border-bottom-color: var(--bg); margin-bottom: -1px; }
.adm-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 4px 0 16px; }
.adm-title h1 { margin: 0; font-size: 1.35rem; }
.adm-title span { color: var(--ink-3); }
.adm-bottom, .adm-all { display: none; }
/* 칸 나눔(grid) 안의 그래프·표가 칸을 밀어 화면 밖으로 넘치지 않게 — 칸은 줄어들 수 있게 하고 그림은 칸에 맞춘다 */
.adm-main .grid > * { min-width: 0; }
.adm-main .card svg { max-width: 100%; height: auto; }
/* 전체 메뉴 화면(/admin/menu) */
.adm-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.adm-menu-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.adm-menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.adm-menu-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--ink-2); background: var(--bg); }
@media (max-width: 1023px) {
  .adm-side { display: none; }
  .adm-col { margin-left: 0; }
  .adm-top { padding: 0 12px; min-height: 58px; }
  .adm-brand-m { display: flex; }
  .adm-brand-m img { width: 30px; }
  .adm-top-home { display: none; }
  .adm-main { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
  .adm-tabs { display: flex; }
  .adm-bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .adm-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 60px; text-decoration: none; color: var(--ink-3); font-size: .74rem; }
  .adm-bottom a.on { color: var(--brand); font-weight: 800; }
  .adm-bottom-ico { font-size: 1.25rem; line-height: 1; }
  .adm-all:target { display: block; position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto; padding: 16px; }
  .adm-all-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 1.1rem; }
  .adm-all-x { width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; color: var(--ink); font-size: 1.3rem; }
  .adm-all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
  .adm-all-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px;
    border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: .9rem; text-align: center; padding: 10px 6px; }
  .adm-all-grid a.on { border-color: var(--brand); color: var(--brand-ink); font-weight: 800; }
  .adm-all-i { font-size: 1.5rem; line-height: 1; }
  .adm-all .adm-prof { max-width: 260px; }
}

/* ───────────────────────── 전화 문의 — 줄을 펼쳐 그 자리에서 고친다 */
.call summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.call summary::-webkit-details-marker { display: none; }
.call summary:hover { background: var(--bg-soft); }
.call-open { border-left: 4px solid var(--warn); }
.call-when { color: var(--ink-3); font-size: .9rem; font-variant-numeric: tabular-nums; }
.call-body { flex-basis: 100%; color: var(--ink-2); white-space: pre-line; }
.call-res { flex-basis: 100%; color: var(--ok); font-weight: 600; white-space: pre-line; }

/* ───────────────────────── 대시보드 */
.dash-h { font-size: 1rem; color: var(--ink-3); margin: 6px 0 10px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.dash-card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); text-decoration: none; }
.dash-card:hover { border-color: var(--brand); text-decoration: none; }
.dash-card span { display: block; font-size: .9rem; color: var(--ink-3); }
.dash-card strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.3; }
.dash-card.hot { background: var(--warn-bg); border-color: #E9D38F; }
.dash-card.hot strong { color: var(--warn); }
.dash-pipe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dash-pipe a { min-width: 92px; padding: 9px 12px; text-align: center; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; }
.dash-pipe a:hover { border-color: var(--brand); text-decoration: none; }
.dash-pipe a span { display: block; font-size: .84rem; color: var(--ink-3); }
.dash-pipe a strong { font-size: 1.25rem; }
.dash-pipe a.off { border-style: dashed; }
.dash-pipe .arrow, .dash-pipe .bar { color: var(--ink-3); }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.dash-list li span { color: var(--ink-3); font-size: .88rem; flex: 1; min-width: 120px; }
.dash-list li em { font-style: normal; color: var(--ink-3); font-size: .85rem; }
.dash-none { color: var(--ink-3); margin: 0; }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ───────────────────────── 통계 */
.stat-range { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.stat-range .field { margin: 0; flex: 0 0 170px; }
.stat-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.kpi span { display: block; color: var(--ink-3); font-size: .9rem; }
.kpi strong { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.35; }
.kpi em { font-style: normal; color: var(--ink-3); font-size: .85rem; }
.stat-grid { margin-bottom: 18px; align-items: start; }

/* ───────────────────────── 알림·검색에서 눌러 온 그 자리
   주소 끝의 #app-12 같은 자리를 금색 테두리로 표시한다. 움직임 없이 가만히. */
.jump { scroll-margin-top: 110px; }
.jump:target, tr.jump:target > td { outline: 3px solid var(--gold); outline-offset: 2px; background: var(--warn-bg); }
tr.jump:target > td { outline: none; box-shadow: inset 0 3px 0 var(--gold), inset 0 -3px 0 var(--gold); }

/* ───────────────────────── 머리의 검색·종 단추와 알림 팝오버 */
.hbtn { position: relative; padding: 8px 12px; min-width: 44px; min-height: 44px; }
.bell-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--bad); color: #fff; font-size: .72rem; line-height: 18px; font-weight: 800; }
.pop { position: relative; }
.pop-box { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; z-index: 130;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pop-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.pop-head strong { flex: 1; }
.pop-btn { background: none; border: 0; font-size: 1.05rem; min-width: 40px; min-height: 40px; border-radius: 8px; cursor: pointer; }
.pop-btn:hover { background: var(--bg-soft); }
.pop-link { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; min-height: 40px; }
.pop-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.pop-list button { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font: inherit; color: var(--ink); }
.pop-list button:hover { background: var(--bg-soft); }
.pop-list button strong { display: block; font-size: .95rem; }
.pop-list button span { display: block; font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-list button small { display: block; font-size: .8rem; color: var(--ink-3); }
.pop-list button.read, .pop-list button.read span { color: var(--ink-3); font-weight: 400; }
.pop-list button.read strong { font-weight: 500; }
.pop-empty { padding: 26px 12px; text-align: center; color: var(--ink-3); }
.pop-foot { display: block; text-align: center; padding: 10px; border-top: 1px solid var(--line-soft); font-weight: 700; }
@media (max-width: 640px) {
  /* 좁은 화면에서는 단추 기준으로 붙이면 왼쪽이 잘린다 — 화면 기준으로 붙인다 */
  .pop-box { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
}
.toast { position: fixed; left: 12px; right: 12px; bottom: 22px; z-index: 140; max-width: 460px; margin: 0 auto;
  display: flex; gap: 8px; align-items: flex-start; background: var(--bg); border: 2px solid var(--brand);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px; }
.toast-main { flex: 1; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); padding: 0; }
.toast-main > * { display: block; }
.toast-k { color: var(--brand); font-weight: 800; font-size: .85rem; }
.toast-main strong { font-size: 1.05rem; margin-top: 2px; }
.toast-main span:not(.toast-k) { color: var(--ink-2); margin-top: 2px; }
.toast-main small { color: var(--ink-3); margin-top: 6px; }
.toast-x { background: none; border: 0; min-width: 44px; min-height: 44px; cursor: pointer; border-radius: 8px; font-size: 1.1rem; }
.toast-x:hover { background: var(--bg-soft); }
/* 전체 알림 목록 */
.noti-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.noti-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-3); text-decoration: none; background: var(--bg); }
.noti-list a:hover { box-shadow: var(--shadow); text-decoration: none; }
.noti-list a.unread { border-color: var(--brand); background: var(--brand-bg); color: var(--ink); }
.noti-list .t { font-weight: 600; }
.noti-list a.unread .t { font-weight: 800; }
.noti-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); align-self: center; }
.noti-list .d, .noti-list .w { grid-column: 1 / -1; font-size: .88rem; }
.noti-list .d { color: var(--ink-2); }

/* ───────────────────────── 전체 검색 창 */
.s-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.4); display: flex;
  align-items: flex-start; justify-content: center; padding: 10vh 14px 14px; }
.s-panel { width: 100%; max-width: 620px; background: var(--bg); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.s-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.s-bar input { flex: 1; border: 0; outline: none; font-size: 1.08rem; min-height: 50px; background: transparent; padding: 0; }
.s-x { background: none; border: 0; min-width: 44px; min-height: 44px; cursor: pointer; font-size: 1.1rem; border-radius: 8px; }
.s-x:hover { background: var(--bg-soft); }
.s-out { max-height: 58vh; overflow-y: auto; padding: 6px 8px 10px; }
.s-msg { text-align: center; color: var(--ink-3); padding: 26px 10px; margin: 0; }
.s-group { font-size: .82rem; font-weight: 800; color: var(--ink-3); margin: 10px 8px 4px; }
.s-hit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; }
.s-hit:hover, .s-hit:focus { background: var(--bg-soft); text-decoration: none; }
.s-hit span { color: var(--ink-3); font-size: .86rem; }
.s-hits { list-style: none; margin: 0; padding: 0; }
.s-hits a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.s-hits a span { display: block; color: var(--ink-3); font-size: .88rem; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-size: .85em; background: var(--bg-soft); }
.deposit .acct { display: block; font-size: 1.15rem; font-weight: 800; color: var(--brand-ink); margin-top: 4px; letter-spacing: .02em; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.bulk-bar select { min-height: 38px; }
.temp-pw { font-family: ui-monospace, Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .08em;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 14px; }

/* ───────────────────────── 사용설명서 */
.man { margin-bottom: 16px; }
.man h2 { font-size: 1.15rem; margin-top: 0; }
.man p { color: var(--ink-2); line-height: 1.85; }
.man-steps { padding-left: 1.3em; margin: 0; }
.man-steps li { margin-bottom: 10px; line-height: 1.7; }
.man-steps li span { display: block; color: var(--ink-3); font-size: .93rem; }
.man-toc ol { columns: 2; margin: 8px 0 0; padding-left: 1.3em; line-height: 1.9; }
/* 화면 그림 + 빨간 번호 설명(2026-10-29) — 어르신 직원이 보시게 글은 크게, 번호는 그림의 빨간 동그라미와 같은 모양 */
.man-shot { margin: 18px 0 26px; }
.man-shot figcaption { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.man-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.man-marks { list-style: none; counter-reset: mk; padding: 0; margin: 14px 0 0; }
.man-marks li { counter-increment: mk; position: relative; padding: 4px 0 10px 46px; font-size: 1.06rem; line-height: 1.75; }
.man-marks li::before { content: counter(mk); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: #d7191c; color: #fff; font-weight: 800; text-align: center; line-height: 32px; }
@media (max-width: 640px) { .man-toc ol { columns: 1; } }
@media print {
  .head, .top-strip, .adm-head, .adm-side, .adm-top, .adm-tabs, .adm-bottom, .adm-all, .foot, .man-toc, [data-print], .mnav { display: none !important; }
  .adm-col { margin-left: 0 !important; } .adm-main { padding: 0 !important; }
  .man { box-shadow: none; }
  .man-shot { break-inside: avoid; }
  .man-marks li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ───────────────────────── 출석부 — 날마다 누르는 칸이라 크게. 고른 것은 색으로 한눈에 */
.att-opts { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.att-opt { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 8px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: .9rem; background: var(--bg); }
.att-opt input { width: 18px; height: 18px; margin: 0; }
.att-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); font-weight: 700; }
.att-absent:has(input:checked) { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }

/* ───────────────────────── 읽기·누르기 손보기 (09-29 전수 캡처의 '읽기 점검' 에서 나온 것)
   어르신이 많이 쓰신다는 전제 — 글자·바탕 대비 4.5:1 이상, 누름 칸 44px 가까이. */
/* 흐린 회색·경고색을 조금 진하게: 기준(4.5:1)에 걸쳐 있던 글씨가 곳곳에 있었다 */
:root { --ink-3: #5B6A5C; --warn: #85680F; }
/* 맨 윗줄 링크 — 23px 높이라 손가락으로 누르기 어려웠다 */
.top-strip a, .top-strip button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 6px; }
@media (hover: none) { .top-strip a, .top-strip button { min-height: 44px; } }
/* 위치 표시(홈 › …)의 링크 — '홈' 이 14×19 였다 */
nav[aria-label="현재 위치"] a { display: inline-block; padding: 8px 4px; margin: -8px -4px; }
/* 🔔 빨간 숫자 — 흰 글씨 대비가 4.1:1 이었다 */
.bell-dot { background: #B23A2C; }
/* 관리 화면의 아주 작은 글씨(11px) — 12.5px 아래로는 내리지 않는다 */
.hint, .tag { font-size: max(.8rem, 12.5px); }

/* 교육일정 달력 — 휴대폰에서는 날짜 목록으로(7칸 달력이 화면 밖으로 밀려서) */
.cal-list { display: none; list-style: none; margin: 0; padding: 0; }
.cal-list li { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
.cal-list li.is-today { background: var(--brand-bg); padding-left: 10px; border-radius: 8px; }
.cal-list strong { display: block; margin-bottom: 6px; }
.cal-item { display: block; padding: 10px 12px; margin-top: 6px; border-radius: 8px; font-weight: 600; min-height: 44px; }
.cal-safety { background: var(--safety-bg); color: var(--safety); }
.cal-org    { background: var(--org-bg);    color: var(--org); }
.cal-life   { background: var(--life-bg);   color: var(--life); }
@media (max-width: 700px) { .cal-list { display: block; } .cal-grid { display: none; } }
.cal-item small { display: block; font-weight: 500; font-size: .88rem; opacity: .85; }

/* 세 사업은 그대로 두되, 통화에서 정한 안전교육 중심의 안내 순서를 보인다. */
.institution-mission { padding:28px; margin-bottom:30px; background:var(--brand-bg); border-left:4px solid var(--brand); border-radius:var(--radius); }
.institution-mission h2 { margin:8px 0 16px; font-size:1.45rem; }
.institution-mission p { max-width:820px; color:var(--ink-2); }
.institution-mission .eyebrow { margin:0; color:var(--brand-ink); font-weight:700; }
.mission-values { display:flex; flex-wrap:wrap; gap:14px 32px; margin-top:22px; }
.mission-values span { font-weight:700; color:var(--brand-ink); }
.mission-values small { display:block; font-weight:400; color:var(--ink-2); }
.blog-preview { color:inherit; overflow:hidden; display:flex; flex-direction:column; }
.blog-preview > img { width:100%; height:180px; object-fit:cover; }
.blog-preview > div { padding:20px; }
.blog-preview h3 { margin:12px 0; font-size:1.06rem; }
.blog-preview p { color:var(--ink-3); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.blog-preview small { color:var(--ink-3); }
@media (max-width:860px) { .institution-mission { padding:22px; } }

/* 본문 + 옆 칸(신청 단추·상태 단추). 폭을 줄에 박아 두었더니 폰에서 옆 칸이 화면 밖으로 밀려
   '교육 신청'·'수강 확정' 단추가 안 보였다(09-29). 좁은 화면에서는 한 줄로 쌓는다. */
.split { grid-template-columns: minmax(0, 1fr) var(--side, 340px); align-items: start; }
.split-l { grid-template-columns: var(--side, 400px) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split-l { grid-template-columns: minmax(0, 1fr); } }
/* 관리 탭 줄 — 폰에서 옆으로 밀어야 보이던 탭(예: 설정의 기록)을 두 줄로 내려 다 보이게 */
/* 손가락으로 누르는 화면 — 머리의 작은 누름 칸을 44×44 로(09-29 전수 캡처: 알림·관리 40 폭, 로그아웃 34 높이, 로고 32 높이, ☰ 33 폭) */
@media (hover: none) {
  .top-strip a, .top-strip button, .top-strip .btn-sm { min-height: 44px; min-width: 44px; justify-content: center; }
  .brand { min-height: 44px; }
  .head-act .menu-btn { min-width: 44px; justify-content: center; }
}
@media (hover: none) {
  /* 더보기 링크('전체 →')·꼬리말 링크·위치 표시 — 글 링크지만 따로 떨어져 있어 손가락으로 누른다 */
  .sec-head .more, .foot a, nav[aria-label="현재 위치"] a { display: inline-flex; align-items: center; min-height: 44px; }
  nav[aria-label="현재 위치"] a { margin: 0; padding: 0 4px; min-width: 44px; justify-content: center; }
  .hero-notice a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* 목록의 고르는 칸 — 폰에서 13×13 이었다. 칸은 22px, 누르는 곳(label)은 44×44 */
.pick { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.pick input { width: 22px; height: 22px; margin: 0; }
@media (hover: none) {
  /* 🔔 목록 안의 '모두 읽음'·🔊, 교육일정의 '정원 수정' — 폰에서 40px 남짓이었다 */
  .pop-btn, .pop-link { min-width: 44px; min-height: 44px; }
  td details > summary { min-height: 44px; display: flex; align-items: center; }
}
/* 10-17 폰 실측(tools/qa/phone-measure.mjs) — 320px 홈 상담 단추가 화면 밖(352px)으로 밀렸다: flex:0 0 auto 인 .row 도 칸 폭을 넘지 않게 */
.row { max-width: 100%; }
/* 같은 실측 — 교육일정 '신청 가능한 일정만 보기'처럼 min-height 를 푼 체크 줄이 38px. 손가락 화면에선 위아래 여백으로 44px */
@media (hover: none) { .check { padding-block: 9px; } }
.blog-live { border-top:3px solid var(--safety); }
.blog-live > div { display:flex; flex-direction:column; height:100%; }
.blog-live .tag { align-self:flex-start; }
.blog-live small { margin-top:auto; padding-top:16px; }

/* 연혁 — 연도 없이 자료의 시기로 묶은 항목. 연표(세로선)가 아니라 바둑판 목록으로 */
.hist-period { list-style: none; padding: 0; margin: 10px 0 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 22px; }
.hist-period li { position: relative; padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.hist-period li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); }
.hist-period li.major { color: var(--ink); font-weight: 800; }
.hist-period li small { display: block; color: var(--ink-3); font-weight: 500; }

/* ── 엔진 화면(<be-*> <ci-collector>) — 연구소 색·글꼴로 잇는다
   엔진 웹 컴포넌트는 --be-* 디자인 값만 본다(vendor/engines/block-elements/README.md 4절).
   값은 위 :root 의 연구소 값을 그대로 가리킨다 — 색을 바꿀 때 여기는 손대지 않아도 따라간다.
   본문 17px·누르는 것 44px 원칙은 글자 크기와 줄 간격 배율로 맞춘다. */
:root {
  --be-font: var(--font);
  --be-font-size: 17px;
  --be-fg: var(--ink);
  --be-fg-muted: var(--ink-2);
  --be-fg-subtle: var(--ink-3);
  --be-bg: var(--bg);
  --be-surface: var(--bg);
  --be-side: var(--bg-soft);
  --be-border: var(--line);
  --be-accent: var(--brand);
  --be-accent-bg: var(--brand-bg);
  --be-accent-fg: var(--ink-on);
  --be-danger: var(--bad);
  --be-radius: 8px;
  --be-density: 1.1;
}
be-workspace, be-shared { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
be-view, be-database, be-page, be-form, ci-collector { display: block; }

/* 사업별 첫 쪽 사진 머리(2026-10-21) — 사진 위 글씨는 흰색 */
.ph-photo{color:#fff;border-bottom:1px solid var(--line-soft)}
.ph-photo h1,.ph-photo nav,.ph-photo a,.ph-photo p{color:#fff}
.ph-photo p{opacity:.92}
@media(max-width:640px){.ph-photo .wrap{padding-top:40px!important;padding-bottom:40px!important}}

/* 안전행동 진단 컨설팅 소개 표(2026-10-21) */
.consult h2{font-size:1.12rem;margin:26px 0 8px;color:var(--ink)}
.consult-tbl th{white-space:nowrap;background:var(--safety-bg,#f2f7f3)}
.consult-tbl td,.consult-tbl th{text-align:center;vertical-align:middle}

/* 유해·위험 특별교육 공통·개별과목 표(2026-10-26) */
.special-edu td,.special-edu th{vertical-align:top}
.special-edu .mid{text-align:center;white-space:nowrap}
.se-tasks td:nth-child(2){min-width:12em}

/* 관리 왼쪽 메뉴 — 묶음 안 화면 수(2026-10-26) */
.adm-side-nav .adm-n{margin-left:auto;font-size:.72rem;color:var(--ink-3);background:var(--bg-soft,#f1f3f1);border-radius:999px;padding:1px 7px}

/* 위험성평가 담당자 교육 '2027년 사업 시행 예정'(소장님 2026-10-26) */
.tag-plan{background:#fff4d6;color:#7a5200;border:1px solid #f0c96a}
.risk-plan{margin-bottom:18px}
.risk-plan strong{display:block;font-size:1.08rem;margin-bottom:2px}

/* 뉴스 검색(2026-10-28) — 구글처럼 검색창 하나 */
/* ── 통합 검색 · 자동 수집 (2026-10-30) — 어르신 직원이 쓰는 화면: 글씨·단추를 크게, 한 화면에 할 일은 몇 개만 */
.cs-search{display:flex;gap:10px;max-width:860px;margin:6px 0 16px}
.cs-search input{flex:1;min-width:0;font-size:1.25rem;padding:16px 22px;border:2px solid var(--brand);border-radius:999px}
.cs-search .btn{border-radius:999px;padding:0 30px;font-size:1.15rem;min-height:58px}
.cs-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.cs-tabs a,.cs-tabs span{display:inline-flex;align-items:center;gap:6px;min-height:50px;padding:10px 20px;border:1px solid var(--line);border-radius:999px;font-size:1.08rem;font-weight:700;color:var(--ink-2);background:var(--bg)}
.cs-tabs a:hover{background:var(--bg-sunk);text-decoration:none}
.cs-tabs .on{background:var(--brand);border-color:var(--brand);color:#fff}
.cs-resulthead{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 6px;font-size:1.1rem}
.cs-resulthead form{margin:0}
.cs-sec{margin:26px 0 8px;max-width:1100px}
.cs-sec h2{font-size:1.35rem;margin:0 0 10px;padding-bottom:8px;border-bottom:2px solid var(--line)}
.cs-sec h2 small{font-size:.95rem;color:var(--ink-3);font-weight:600;margin-left:4px}
.cs-sec h3{font-size:1.1rem;margin:14px 0 4px}
.cs-none{color:var(--ink-3);margin:6px 0 0}
.cs-more{margin:10px 0 0}
.cs-list{list-style:none;padding:0;margin:0}
.cs-list li{display:flex;gap:16px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line-soft)}
.cs-body{flex:1;min-width:0}
.cs-t{font-size:1.12rem;font-weight:700;color:#1a0dab;word-break:keep-all;overflow-wrap:anywhere}
.cs-m{font-size:.9rem;color:#2e7d32;margin:4px 0 0}
.cs-many{color:var(--warn);font-weight:700}
.cs-s{margin:6px 0 0;color:var(--ink-2);font-size:.96rem}
.cs-th{flex:0 0 132px;width:132px;height:88px;object-fit:cover;border-radius:8px;background:var(--bg-sunk)}
.cs-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.cs-grid li{min-width:0}
.cs-grid a{position:relative;display:block;color:var(--ink);text-decoration:none}
.cs-gth{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:var(--bg-sunk);border:1px solid var(--line)}
.cs-grid-v .cs-gth{aspect-ratio:16/9}
.cs-noth{display:flex;align-items:center;justify-content:center;font-size:2rem}
.cs-play{position:absolute;left:10px;top:10px;width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1rem}
.cs-gt{display:block;margin-top:6px;font-weight:700;font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
.cs-gm{display:block;font-size:.86rem;color:#2e7d32;margin-top:2px}
.cs-fails ul{margin:6px 0 0;padding-left:20px}
.cs-naver{border:2px solid #03c75a;border-radius:var(--radius-lg);padding:4px 18px 14px}
.cs-naver h2{border-bottom-color:#c8f0d8}
.cs-keycard{display:flex;gap:16px;align-items:flex-start;margin:30px 0 10px;padding:22px 24px;border:2px solid #f0dcb3;background:var(--warn-bg);border-radius:var(--radius-lg);max-width:900px}
.cs-keycard-i{font-size:2.2rem;line-height:1}
.cs-keycard strong{font-size:1.25rem;display:block;margin-bottom:6px}
.cs-keycard p{margin:4px 0}
.cs-keycard ul{margin:8px 0 14px;padding-left:20px;font-size:1.05rem}
.cs-howto{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.cs-howto span{flex:1 1 220px;padding:14px 16px;background:var(--brand-bg);border-radius:var(--radius);font-size:1.05rem}
.cs-howto b{color:var(--brand)}
.cs-new{font-size:1.2rem!important}
.cs-card{border:2px solid var(--line);border-radius:var(--radius-lg);padding:20px 24px;margin:16px 0;background:var(--bg);max-width:1000px}
.cs-card.is-off{background:var(--bg-soft)}
.cs-card-h{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:10px}
.cs-card-h h2{font-size:1.5rem;margin:0}
.cs-big-tag{font-size:1rem!important;padding:6px 14px}
.cs-dl{display:grid;grid-template-columns:110px 1fr;gap:10px 14px;margin:0 0 16px;font-size:1.05rem}
.cs-dl dt{font-weight:700;color:var(--ink-3)}
.cs-dl dd{margin:0}
.cs-chips{display:inline-flex;flex-wrap:wrap;gap:6px}
.cs-chip{display:inline-block;padding:4px 12px;border-radius:999px;background:var(--bg-sunk);font-size:.98rem}
.cs-chip-w{background:var(--brand-bg);color:var(--brand-ink);font-weight:700}
.cs-chip-x{background:var(--bad-bg);color:var(--bad);text-decoration:line-through}
.cs-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.cs-acts form{margin:0}
.cs-adv{margin-top:30px;color:var(--ink-3);font-size:.95rem}
.cs-examples{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 22px;padding:16px 18px;background:var(--brand-bg);border-radius:var(--radius-lg)}
.cs-examples strong{flex-basis:100%;font-size:1.05rem}
.cs-form{max-width:820px}
.cs-form input,.cs-form textarea,.cs-form select{font-size:1.15rem}
.cs-form .field>label,.cs-form legend{font-size:1.12rem;font-weight:800}
.cs-form small{font-weight:500;color:var(--ink-3)}
.cs-kinds{border:0;padding:0;margin:0 0 20px;display:flex;flex-wrap:wrap;gap:10px}
.cs-kinds legend{margin-bottom:10px}
.cs-kind{position:relative;cursor:pointer}
.cs-kind input{position:absolute;opacity:0;width:1px;height:1px}
.cs-kind span{display:inline-flex;align-items:center;gap:6px;min-height:56px;padding:12px 22px;border:2px solid var(--line);border-radius:999px;font-size:1.12rem;font-weight:700;background:var(--bg);color:var(--ink-3)}
.cs-kind input:checked+span{border-color:var(--brand);background:var(--brand);color:#fff}
.cs-kind input:checked+span::before{content:"✔"}
.cs-kind input:focus-visible+span{outline:3px solid var(--gold);outline-offset:2px}
.cs-switch{display:inline-flex;align-items:center;gap:10px;min-height:56px;font-size:1.12rem;font-weight:700;cursor:pointer}
.cs-switch input{width:26px;height:26px}
.cs-remove{margin-top:30px}
.cs-daynav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.cs-daynav form{margin:0}
.cs-terms{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 10px;max-width:1100px}
.cs-terms>div{padding:16px 18px;border:2px solid var(--line);border-radius:var(--radius-lg)}
.cs-terms h2{font-size:1.25rem;margin:0 0 10px}
.cs-terms h2 small{font-size:.85rem;color:var(--ink-3);font-weight:500}
.cs-termrow{display:flex;flex-wrap:wrap;gap:8px}
.cs-term{display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:8px 16px;border-radius:999px;background:#FFF3E0;color:#8a3b00;font-weight:800;font-size:1.08rem;text-decoration:none}
.cs-term:hover,.cs-term.on{background:#E65100;color:#fff;text-decoration:none}
.cs-term small{font-weight:600;opacity:.8}
.cs-term em{font-style:normal;font-size:.8rem;background:#C62828;color:#fff;border-radius:6px;padding:1px 6px}
.cs-hit{background:#FFFBF3;border:2px solid #FFE0B2;border-radius:var(--radius-lg);padding:6px 18px 12px}
.cs-jump{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.cs-jump a{padding:8px 14px;border-radius:999px;background:var(--bg-sunk);font-weight:700;color:var(--ink-2)}
.cs-days{list-style:none;padding:0;margin:0 0 20px;max-width:640px}
.cs-days a{display:flex;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);font-size:1.12rem;color:var(--ink)}
.cs-days a:hover{background:var(--bg-sunk);text-decoration:none}
.cs-free{color:var(--brand);font-weight:700;margin:0 0 10px}
.cs-steps{margin:0 0 16px;padding-left:24px;font-size:1.06rem}
.cs-steps li{margin:6px 0}
.cs-steps small{display:block;color:var(--ink-3);font-size:.92rem}
.cs-keyform{max-width:620px}
.cs-keyform input{font-size:1.1rem;font-family:ui-monospace,Consolas,monospace}
@media(max-width:720px){
  .cs-search{flex-direction:column}
  .cs-search .btn{min-height:52px}
  .cs-terms{grid-template-columns:1fr}
  .cs-dl{grid-template-columns:1fr}
  .cs-dl dt{margin-top:4px}
  .cs-th{flex-basis:96px;width:96px;height:68px}
  .cs-card{padding:16px}
  .cs-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
}

/* ── 사업 공고(관리 → 자료·수집 → 사업 공고) — 2026-11-02. 자동 수집과 같은 큰 글씨·큰 단추. 마감이 사흘 안이면 빨강 */
.bd-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 16px;padding:14px 18px;background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius-lg);font-size:1.08rem;max-width:1100px}
.bd-status b{color:var(--ink)}
.bd-topics{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.bd-topics a{display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border:2px solid var(--line);border-radius:999px;font-size:1.02rem;font-weight:700;color:var(--ink-2)}
.bd-topics a.on{border-color:var(--brand);color:var(--brand);background:var(--brand-bg)}
.bd-tabs b{display:inline-block;min-width:1.6em;padding:0 6px;border-radius:999px;background:var(--bg-sunk);color:var(--ink-2);font-size:.92rem;text-align:center}
.bd-tabs .on b{background:rgba(255,255,255,.25);color:#fff}
.bd-tabdesc{margin:-8px 0 14px;color:var(--ink-3);font-size:1rem}
.bd-card{border:2px solid var(--line);border-radius:var(--radius-lg);padding:20px 24px;margin:0 0 16px;background:var(--bg);max-width:1100px}
.bd-card.is-past{background:var(--bg-soft)}
.bd-card:target{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-bg)}
.bd-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.bd-src{display:inline-block;padding:4px 12px;border-radius:999px;font-size:.95rem;font-weight:800;background:var(--brand-bg);color:var(--brand-ink)}
.bd-src-g2b{background:#E8F0FB;color:#1C4C8C}
.bd-src-bizinfo{background:#FFF3E0;color:#8A4B00}
.bd-src-kstartup{background:#F3E8FB;color:#5B2A86}
.bd-tag{font-size:.95rem!important}
.bd-kind{font-size:.95rem;color:var(--ink-3)}
.bd-new{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--gold,#C99A00);color:#fff;font-size:.9rem;font-weight:800}
.bd-dday{margin-left:auto;display:inline-block;padding:6px 14px;border-radius:999px;background:var(--bg-sunk);color:var(--ink);font-size:1.15rem;font-weight:800}
.bd-dday.is-red{background:var(--bad);color:#fff}
.bd-dday.is-past{background:var(--line);color:var(--ink-3)}
.bd-title{font-size:1.4rem;line-height:1.4;margin:0 0 12px;word-break:keep-all;overflow-wrap:anywhere}
.bd-title a{color:var(--ink)}
.bd-title a:hover{color:var(--brand)}
.bd-meta{display:grid;grid-template-columns:100px 1fr;gap:8px 14px;margin:0 0 16px;font-size:1.08rem}
.bd-meta dt{font-weight:700;color:var(--ink-3)}
.bd-meta dd{margin:0;min-width:0;overflow-wrap:anywhere}
.bd-red{color:var(--bad)}
.bd-muted{color:var(--ink-3)}
.bd-starred{background:var(--warn-bg)!important;border-color:var(--warn)!important;color:var(--warn)!important}
.bd-pager{display:flex;align-items:center;gap:14px;margin:6px 0 20px;font-size:1.05rem}
.bd-hours .cs-kind span{min-height:48px;padding:8px 16px;font-size:1.02rem}
@media (max-width: 640px){
  .bd-card{padding:16px}
  .bd-title{font-size:1.2rem}
  .bd-meta{grid-template-columns:80px 1fr;font-size:1rem}
  .bd-dday{margin-left:0}
}
