/* =========================================================
   환자안전 · 감염관리 · 의료기관인증 교육 공유 포털
   공통 스타일시트 (디자인 시스템 + 컴포넌트 + 반응형)
   ========================================================= */

:root {
  --c-primary: #0b5c8a;
  --c-primary-dark: #073d5d;
  --c-primary-light: #e9f2f8;
  --c-teal: #0e9384;
  --c-teal-light: #e6f6f3;
  --c-accent: #f59e0b;
  --c-accent-light: #fff5e6;
  --c-danger: #d92d20;
  --c-danger-light: #fdecea;
  --c-success: #12b76a;
  --c-success-light: #e8f8f0;
  --c-text: #102a3c;
  --c-text-muted: #5b7488;
  --c-border: #dbe4ec;
  --c-bg: #f3f7fa;
  --c-surface: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 60, .06), 0 1px 3px rgba(16, 42, 60, .07);
  --shadow-md: 0 10px 28px rgba(16, 42, 60, .10);
  --shadow-lg: 0 20px 48px rgba(16, 42, 60, .16);
  --maxw: 1200px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Malgun Gothic", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .9rem; }

/* ---------------- 레이아웃 ---------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.page-main { padding: 28px 0 72px; }

.section { margin-bottom: 40px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head .lead { color: var(--c-text-muted); margin: 0; font-size: .95rem; }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 6px;
}

/* ---------------- 헤더 / 내비게이션 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--c-primary-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { font-size: .7rem; color: var(--c-text-muted); font-weight: 600; letter-spacing: .02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--c-primary-light); color: var(--c-primary); text-decoration: none; }
.nav-links a.active { background: var(--c-primary); color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--c-primary-light);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  border-radius: 10px;
  width: 42px; height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------------- 히어로 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary) 45%, var(--c-teal));
  color: #fff;
  padding: 52px 0 56px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero h1 { font-size: 2.1rem; margin-bottom: 12px; }
.hero p { max-width: 66ch; color: rgba(255, 255, 255, .88); margin-bottom: 20px; }
.hero .eyebrow { color: #9fe3dc; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-compact { padding: 34px 0 38px; }
.hero-compact h1 { font-size: 1.65rem; }

/* ---------------- 버튼 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--c-primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-light { background: #fff; color: var(--c-primary-dark); }
.btn-light:hover { background: #eef6fb; }

.btn-outline { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-light); }

.btn-ghost { background: transparent; border-color: var(--c-border); color: var(--c-text); }
.btn-ghost:hover { background: #eef2f6; }

.btn-danger { background: var(--c-danger); }
.btn-danger:hover { background: #b42318; }

.btn-teal { background: var(--c-teal); }
.btn-teal:hover { background: #0b7c70; }

.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------------- 카드 ---------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-flush { padding: 0; overflow: hidden; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-topline { height: 4px; background: linear-gradient(90deg, var(--c-primary), var(--c-teal)); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------------- 통계 카드 ---------------- */
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-label { font-size: .82rem; font-weight: 700; color: var(--c-text-muted); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--c-primary-dark); }
.stat-card .stat-value small { font-size: .95rem; font-weight: 700; color: var(--c-text-muted); }
.stat-card .stat-hint { font-size: .8rem; color: var(--c-text-muted); margin-top: 4px; }
.stat-card.is-teal { border-left-color: var(--c-teal); }
.stat-card.is-teal .stat-value { color: #0a6b60; }
.stat-card.is-amber { border-left-color: var(--c-accent); }
.stat-card.is-amber .stat-value { color: #b26a02; }
.stat-card.is-danger { border-left-color: var(--c-danger); }
.stat-card.is-danger .stat-value { color: #b42318; }

/* ---------------- 배지 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: #eef2f6;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.badge-primary { background: var(--c-primary-light); color: var(--c-primary-dark); }
.badge-teal { background: var(--c-teal-light); color: #0a6b60; }
.badge-amber { background: var(--c-accent-light); color: #b26a02; }
.badge-danger { background: var(--c-danger-light); color: #b42318; }
.badge-success { background: var(--c-success-light); color: #087443; }

.tag {
  display: inline-block;
  font-size: .74rem;
  color: var(--c-primary);
  background: var(--c-primary-light);
  border-radius: 6px;
  padding: 2px 8px;
  margin: 0 4px 4px 0;
}

/* ---------------- 폼 ---------------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .84rem; font-weight: 700; color: var(--c-text); }
.form-field .hint { font-size: .76rem; color: var(--c-text-muted); font-weight: 500; }
.form-field.wide { grid-column: 1 / -1; }

input[type="text"], input[type="search"], input[type="email"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--c-text);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(11, 92, 138, .13);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.toolbar .grow { flex: 1 1 240px; min-width: 190px; }
.toolbar select, .toolbar input { width: auto; min-width: 140px; }

/* ---------------- 표 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data-table th, table.data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
table.data-table thead th { background: #f7fafc; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted); }
table.data-table tbody tr:hover { background: #f8fbfd; }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table td.num, table.data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-title { font-weight: 700; color: var(--c-text); cursor: pointer; }
.row-title:hover { color: var(--c-primary); text-decoration: underline; }
.cell-muted { color: var(--c-text-muted); font-size: .85rem; }

/* ---------------- 리스트 아이템 ---------------- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px dashed var(--c-border);
}
.list-plain li:last-child { border-bottom: none; }
.list-plain .li-title { font-weight: 700; margin: 0 0 2px; }
.list-plain .li-meta { font-size: .8rem; color: var(--c-text-muted); margin: 0; }
.list-plain .li-spacer { margin-left: auto; text-align: right; flex-shrink: 0; }

/* ---------------- 아코디언 ---------------- */
.accordion { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--c-border); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  color: var(--c-text);
}
.acc-head:hover { background: #f7fafc; }
.acc-head .acc-idx {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  display: grid; place-items: center;
  font-size: .8rem;
}
.acc-head .acc-icon { margin-left: auto; color: var(--c-text-muted); transition: transform .18s ease; }
.acc-head[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 18px 18px 56px; color: var(--c-text-muted); font-size: .93rem; }
.acc-head[aria-expanded="true"] + .acc-body { display: block; }

/* ---------------- 퀴즈 ---------------- */
.quiz-shell { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.quiz-q { padding: 18px 0; border-bottom: 1px dashed var(--c-border); }
.quiz-q:last-of-type { border-bottom: none; }
.quiz-q .q-text { font-weight: 700; margin-bottom: 12px; display: flex; gap: 10px; }
.quiz-q .q-no {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-primary); color: #fff; display: grid; place-items: center;
  font-size: .78rem; font-weight: 700;
}
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 10px;
  cursor: pointer; font-size: .92rem; transition: background .12s ease, border-color .12s ease;
}
.quiz-opt:hover { background: #f7fafc; }
.quiz-opt input { margin-top: 3px; accent-color: var(--c-primary); }
.quiz-opt.correct { background: var(--c-success-light); border-color: var(--c-success); }
.quiz-opt.wrong { background: var(--c-danger-light); border-color: var(--c-danger); }
.quiz-explain {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--c-primary-light); color: var(--c-primary-dark);
  font-size: .86rem; display: none;
}
.quiz-explain.show { display: block; }
.quiz-result {
  margin-top: 18px; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--c-primary-light), var(--c-teal-light));
  border: 1px solid var(--c-border);
}

/* ---------------- 체크리스트 ---------------- */
.check-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px dashed var(--c-border);
}
.check-row:last-child { border-bottom: none; }
.check-row .check-label { font-size: .93rem; font-weight: 600; }
.check-row .check-label small { display: block; color: var(--c-text-muted); font-weight: 500; font-size: .79rem; }
.check-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.check-opts label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 600; color: var(--c-text-muted);
  border: 1px solid var(--c-border); border-radius: 999px; padding: 5px 11px; cursor: pointer;
  background: #fff;
}
.check-opts input { accent-color: var(--c-primary); }
.check-opts label:has(input:checked) { background: var(--c-primary-light); border-color: var(--c-primary); color: var(--c-primary-dark); }
.check-note { grid-column: 1 / -1; }
.check-note textarea { min-height: 64px; font-size: .88rem; }
.check-summary {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius); background: #f7fafc; border: 1px solid var(--c-border);
}
.check-score { font-size: 2rem; font-weight: 800; color: var(--c-primary-dark); line-height: 1; }
.check-score small { font-size: .9rem; color: var(--c-text-muted); }

.progress { height: 9px; border-radius: 999px; background: #e6edf3; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-teal)); border-radius: 999px; transition: width .25s ease; }

/* ---------------- 타임라인 ---------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--c-border); }
.timeline li { position: relative; padding: 0 0 22px 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-primary);
}
.timeline li .tl-time { font-size: .78rem; font-weight: 800; color: var(--c-teal); letter-spacing: .04em; }
.timeline li h4 { margin: 2px 0 4px; }
.timeline li p { margin: 0; color: var(--c-text-muted); font-size: .9rem; }

/* ---------------- 단계 카드 (손위생 등) ---------------- */
.step-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.step-card .step-no {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-teal));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.step-card h3 { font-size: .98rem; margin-bottom: 6px; }
.step-card p { font-size: .84rem; color: var(--c-text-muted); margin: 0; }

/* ---------------- 모달 ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(9, 30, 44, .55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 28px 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 640px;
  box-shadow: var(--shadow-lg); margin: auto;
}
.modal.modal-lg { max-width: 860px; }
.modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--c-border);
}
.modal-head h2 { font-size: 1.15rem; margin: 0; }
.modal-close {
  margin-left: auto; border: 0; background: #f1f5f9; color: var(--c-text-muted);
  width: 34px; height: 34px; border-radius: 10px; font-size: 1.1rem; cursor: pointer;
}
.modal-close:hover { background: #e2e8ee; color: var(--c-text); }
.modal-body { padding: 22px; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  padding: 16px 22px; border-top: 1px solid var(--c-border); background: #f9fbfd;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------------- 토스트 ---------------- */
.toast-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 1300;
  display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 88vw);
}
.toast {
  background: #fff; border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-md);
  font-size: .88rem; font-weight: 600; animation: toast-in .2s ease;
}
.toast.is-success { border-left-color: var(--c-success); }
.toast.is-error { border-left-color: var(--c-danger); }
.toast.is-info { border-left-color: var(--c-teal); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 기타 ---------------- */
.breadcrumb { font-size: .82rem; color: var(--c-text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb span { margin: 0 6px; }

.callout {
  border-left: 4px solid var(--c-teal);
  background: var(--c-teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: .9rem;
}
.callout.is-amber { border-color: var(--c-accent); background: var(--c-accent-light); }
.callout.is-danger { border-color: var(--c-danger); background: var(--c-danger-light); }
.callout strong { color: var(--c-text); }

.empty-state {
  text-align: center; padding: 40px 18px; color: var(--c-text-muted);
  border: 1px dashed var(--c-border); border-radius: var(--radius); background: #fbfdfe;
}
.empty-state strong { display: block; color: var(--c-text); font-size: 1rem; margin-bottom: 4px; }

.skeleton { height: 16px; border-radius: 6px; background: linear-gradient(90deg, #eef3f7, #e2e9f0, #eef3f7); background-size: 200% 100%; animation: sk 1.2s ease infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.muted { color: var(--c-text-muted); }
.small { font-size: .84rem; }
.nowrap { white-space: nowrap; }
.stack-sm > * + * { margin-top: 10px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.quick-links { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.quick-link {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.quick-link .ql-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.15rem;
  background: var(--c-primary-light); color: var(--c-primary-dark);
}
.quick-link h3 { margin: 0 0 4px; font-size: 1rem; }
.quick-link p { margin: 0; font-size: .84rem; color: var(--c-text-muted); }

.footer {
  background: #0b2434; color: #b9cbd8; padding: 40px 0 26px; font-size: .87rem;
}
.footer a { color: #dbe8f1; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 26px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; font-size: .8rem; color: #8ea7b8; }

/* ---------------- 반응형 ---------------- */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--c-border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 16px;
    box-shadow: var(--shadow-md); max-height: 78vh; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
  .header-inner { position: relative; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero { padding: 38px 0 42px; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: .92rem; }
  h1 { font-size: 1.5rem; }
  .card { padding: 18px; }
  .acc-body { padding-left: 18px; }
  .check-row { grid-template-columns: 1fr; }
  .modal-body, .modal-head, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .toolbar { padding: 12px; gap: 8px; }
  .toolbar select, .toolbar input { min-width: 0; flex: 1 1 45%; width: 100%; }
  .toolbar .btn { flex: 1 1 45%; }
  table.data-table th, table.data-table td { padding: 10px; font-size: .85rem; }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .brand-text small { display: none; }
}

@media print {
  .site-header, .footer, .toolbar, .btn { display: none !important; }
}
