@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ============================================================
   전남광주통합특별시 광주응급의료지원단 - 공통 토큰 / 기본 요소
   ============================================================ */
:root {
  /* Brand */
  --c-brand: #A52A2A;
  --c-brand-strong: #8C2323;
  --c-brand-deep: #7A1F1F;
  --c-edu-deep: #5E1818;
  --c-brand-pale: #BE4A4A;

  /* Neutral */
  --c-dark: #444444;
  --c-ink: #333333;
  --c-body: #4A4A4A;
  --c-muted: #666666;
  --c-dim: #7A7A7A;

  /* Surface */
  --c-tint: #F6E9E9;
  --c-surface: #F7F4F4;
  --c-surface-2: #FAF8F8;
  --c-line: #E0DADA;
  --c-line-2: #E5DEDE;
  --c-line-soft: #F2EAEA;
  --c-table-line: #B9ACAC;   /* 표 테두리 — 본문에서 또렷하게 보이도록 */
  --c-bar-soft: #DFBDBD;

  /* On dark */
  --c-on-deep: #EBD6D6;
  --c-on-deep-dim: #E6B8B8;
  --c-on-dark: #B5B5B5;
  --c-on-dark-strong: #C9C9C9;
  --c-dark-line: #5C5C5C;
  --c-dark-field: #555555;
  --c-dark-field-line: #6E6E6E;

  /* Status (재난 중증도 분류 전용) */
  --c-st-red: #B3261E;
  --c-st-amber: #B07000;
  --c-st-green: #1F6F43;
  --c-st-black: #2B2B2B;

  /* Metric */
  --inner: 1280px;
  --gutter: 24px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  /* 크기를 따로 지정하지 않은 글자의 기본값 */
  font-size: 17px;
  color: var(--c-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
address { font-style: normal; }
table { border-collapse: collapse; }

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

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 17px; color: var(--c-ink); }

:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

/* --- 유틸 --------------------------------------------------- */
.inner {
  width: 100%;
  max-width: var(--inner);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eng {
  font-family: "Archivo", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.num { font-family: "Archivo", sans-serif; letter-spacing: 0; }
.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;
}
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 64px; }
.tc { text-align: center; }

/* --- 타이포 ------------------------------------------------- */
.kicker {
  display: block;
  font-family: "Archivo", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-brand);
}
.sec-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.35;
}
.sec-title--lg { font-size: 38px; }
.sec-title--sm { font-size: 28px; }
.sec-title--xs { font-size: 24px; }
.sec-desc {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 920px;
}
.prose { font-size: 18px; line-height: 1.9; color: var(--c-body); }
.prose p + p { margin-top: 22px; }
.caption { font-size: 14px; color: var(--c-muted); }
.note { margin-top: 16px; font-size: 15px; line-height: 1.8; color: var(--c-muted); }

/* --- 버튼 --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--c-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 18px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-brand-strong); color: #fff; }
.btn--primary:hover { background: var(--c-brand-deep); color: #fff; }

.btn--brand { background: var(--c-brand); color: #fff; }
.btn--brand:hover { background: var(--c-brand-strong); color: #fff; }

.btn--ghost { border-color: var(--c-line); background: #fff; color: var(--c-body); }
.btn--ghost:hover { border-color: var(--c-brand); color: var(--c-brand); }

.btn--light { background: #fff; color: var(--c-brand-deep); }
.btn--light:hover { background: var(--c-tint); color: var(--c-brand-deep); }
.btn--outline { border-color: #B07878; background: transparent; color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn[disabled] { background: var(--c-line); color: #8C8C8C; cursor: not-allowed; }

/* 칩 / 필터 */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.chip:hover { border-color: var(--c-brand); color: var(--c-brand); text-decoration: none; }
.chip.is-on,
.chip[aria-pressed="true"],
.chip[aria-current="page"] {
  border-color: var(--c-brand-strong);
  background: var(--c-brand-strong);
  color: #fff;
}

/* --- 뱃지 --------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.badge--notice { background: var(--c-brand); color: #fff; }
.badge--cat { background: var(--c-line-soft); color: var(--c-brand-strong); }
.badge--sample { background: var(--c-tint); color: var(--c-brand-strong); font-size: 13px; }
/* 교육행사안내 상태 — 예정 / 진행중 */
.badge--soon { background: #2E6FB7; color: #fff; }
.badge--live { background: #1E8A5F; color: #fff; }
.badge--open { background: var(--c-brand); color: #fff; }
.badge--off { background: #8A8080; color: #fff; }   /* 신청 마감 */
.badge--file {
  font-family: "Archivo", sans-serif;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: #fff;
  color: var(--c-brand-strong);
  font-size: 14px;
}

/* --- 폼 ----------------------------------------------------- */
.field { display: block; }

/* 비밀번호 칸의 보기 · 숨기기 단추 */
.pw-box { position: relative; display: block; }
.pw-box .input { padding-right: 52px; }
.pw-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-dim);
  cursor: pointer;
}
.pw-eye:hover { color: var(--c-brand); background: var(--c-tint); }
.pw-eye[aria-pressed="true"] { color: var(--c-brand); }
.pw-eye svg[hidden] { display: none; }
.field + .field { margin-top: 18px; }
.field > label,
.label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}
.req { color: var(--c-st-red); }
.input, .select, .textarea {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
}
.textarea { height: auto; padding: 14px 16px; line-height: 1.7; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-brand); }
.input.is-error, .select.is-error { border: 2px solid var(--c-st-red); }
.error-msg { display: block; margin-top: 8px; font-size: 15px; color: var(--c-st-red); }
.help-msg { display: block; margin-top: 8px; font-size: 15px; color: var(--c-muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .field + .field { margin-top: 0; }

.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--c-brand); }
.check-row label { font-size: 16px; font-weight: 700; }

fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 14px; padding: 0; font-size: 17px; font-weight: 700; }

/* --- 검색 바 ------------------------------------------------ */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form .input { flex: 999 1 220px; min-width: 0; height: 52px; }
.search-form .select { flex: none; width: 120px; height: 52px; padding: 0 12px; }
.search-form .btn { flex: none; min-height: 52px; }
.search-form .btn--icon { width: 52px; padding: 0; }

/* --- 세션 시계 ---------------------------------------------- */
/* 화면 맨 위에서 남은 시간을 세고, [연장] 으로 다시 채웁니다 */
.sess {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-muted);
  white-space: nowrap;
}
.sess__label {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  line-height: 1;
}
.sess__time {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 46px;
  height: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--c-ink);
}
.sess__btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  color: var(--c-body);
  cursor: pointer;
}
.sess__btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
/* 1분이 남으면 숫자를 또렷하게 바꿔 알립니다 */
.sess.is-soon .sess__time { color: var(--c-st-red); }

/* 어두운 띠 위 (홈페이지 맨 위 유틸 바) */
.sess--dark { color: var(--c-on-dark); }
.sess--dark .sess__time { color: #FFFFFF; }
.sess--dark .sess__btn {
  border-color: var(--c-dark-line);
  background: transparent;
  color: #D6D6D6;
}
.sess--dark .sess__btn:hover { border-color: #FFFFFF; color: #FFFFFF; }
.sess--dark.is-soon .sess__time { color: #FF9D9D; }

/* 곧 끊긴다고 알리는 창 */
.sess-dim {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
}
.sess-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1201;
  width: min(430px, calc(100vw - 40px));
  padding: 32px 28px 26px;
  border-radius: var(--r-lg);
  background: #FFFFFF;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
  text-align: center;
}
.sess-pop__title { font-size: 21px; font-weight: 800; color: var(--c-ink); }
.sess-pop__text { margin-top: 12px; font-size: 15.5px; line-height: 1.8; color: var(--c-body); }
.sess-pop__text strong { color: var(--c-brand-strong); }
.sess-pop__btns { margin-top: 24px; display: flex; gap: 10px; }
.sess-pop__btns .btn { flex: 1 1 0; min-height: 48px; }

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .sess__label { display: none; }
  /*
   * 좁은 화면의 맨 위 띠에는 이름 · 콘솔 · 로그아웃만으로도 자리가 모자랍니다.
   * 시계는 접어 두되, 곧 끊긴다는 알림 창은 그대로 떠서 거기에서 연장할 수 있습니다.
   */
  .util-bar__sess,
  .util-bar__sep--sess { display: none; }
  .sec-title { font-size: 28px; }
  .sec-title--lg { font-size: 30px; }
  .sec-title--sm { font-size: 24px; }
  .prose { font-size: 17px; }
  .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
}
