/* 기본 스타일. 포인트 색 #0F6E64 (흰 배경 대비 약 6:1)
   사용자 화면은 현재 회차의 테마 색으로 --color-point·--color-secondary·--color-button을 덮어쓴다 (SFR-206)
   보조색(--color-secondary) 위에는 본문 글자색(--color-text)만 쓴다 — 대비 검사 기준이 그 조합이다 */
:root {
  --color-point: #0F6E64;
  --color-secondary: #E8F3F1;
  --color-button: #0F6E64;
  --color-text: #1f2328;
  --color-muted: #555c63;
  --color-bg: #ffffff;
  --color-line: #d9dee3;
  --color-error: #b3261e;
  --focus-ring: 3px solid #0F6E64;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  word-break: keep-all;
  /* 띄어쓰기 없이 긴 글(주소·이어 쓴 문구)은 화면을 넘칠 때만 줄을 바꾼다 (KWCAG 재배치) */
  overflow-wrap: break-word;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

a { color: var(--color-point); }

/* 키보드 포커스 표시 (QUR-001) */
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* 본문 바로가기: 평소에는 숨기고 포커스를 받으면 보인다 */
.skip-link {
  position: absolute; left: 16px; top: -100px;
  padding: 8px 16px; background: var(--color-point); color: #fff; z-index: 100;
}
.skip-link:focus { top: 8px; }
/* 미리보기 안내 (SFR-208): 관리자가 공개 전 회차를 볼 때 화면 맨 위 */
.preview-banner { background: #fff8e6; color: #5c3d00; border-bottom: 3px solid #8a5a00; padding: 10px 0; }
.preview-banner a { color: #5c3d00; font-weight: 700; }

main:focus { outline: none; }

.site-header { border-bottom: 1px solid var(--color-line); padding: 16px 0; }
.site-name { font-weight: 700; text-decoration: none; color: var(--color-text); }
/* 공모전 명칭 두 줄 (2026-10-23): 윗줄 작게 대표색, 아랫줄 크게. 시안 적용 때 다듬는다 */
.site-name-top { display: block; font-size: 0.8rem; color: var(--color-point); line-height: 1.3; }
.site-name-main { display: block; font-size: 1.15rem; line-height: 1.3; }
.footer-name { margin: 0 0 12px; font-weight: 700; color: var(--color-text); }
.site-footer { border-top: 1px solid var(--color-line); margin-top: 64px; padding: 24px 0; color: var(--color-muted); }
/* 하단 정보 (SFR-107): 개인정보처리방침은 굵게 구별 */
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0 0 12px; padding: 0; }
.footer-links a { color: var(--color-text); }
.footer-links a.footer-privacy { font-weight: 700; color: var(--color-point); }
.footer-info, .footer-copy { margin: 0 0 4px; }
.policy-body { line-height: 1.8; }
.policy-body h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.policy-body h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.policy-history { padding-left: 20px; }
.policy-history li { margin-bottom: 6px; }
.maintenance { padding: 48px 16px; }

main { padding: 48px 0; }

.error-text { color: var(--color-error); }

/* 버튼 */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 4px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--color-button); color: #fff; border: 1px solid var(--color-button); }
/* 마우스를 올리면 더 진하게 (흰 글자 대비는 더 커진다) */
.btn-primary:hover { background: color-mix(in srgb, var(--color-button) 85%, #000); }
.btn-secondary { background: #fff; color: var(--color-point); border: 1px solid var(--color-point); }
.btn-block { display: block; width: 100%; }

/* 폼 */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input {
  width: 100%; padding: 10px 12px; font: inherit;
  border: 1px solid #767676; border-radius: 4px;
}
.field input[aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }
.help-text { color: var(--color-muted); font-size: 0.95rem; }

/* 오류는 색만이 아니라 "오류:" 글자와 테두리로도 구분 */
.form-error {
  padding: 12px 16px; border: 2px solid var(--color-error); border-radius: 4px;
  color: var(--color-error); font-weight: 700;
}
.form-error::before { content: "오류: "; }
.notice { padding: 12px 16px; border: 1px solid var(--color-point); border-radius: 4px; }

/* 관리자 */
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user form { margin: 0; }
.login-box { max-width: 400px; margin: 0 auto; }
.admin-nav { border-top: 1px solid var(--color-line); }
.admin-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0 auto; padding-top: 12px; padding-bottom: 0; }
.admin-nav a { display: inline-block; padding: 4px 0 10px; color: var(--color-text); text-decoration: none; font-weight: 700; }
.admin-nav a[aria-current="page"] { color: var(--color-point); border-bottom: 3px solid var(--color-point); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.container.narrow { max-width: 760px; }

/* 화면에는 안 보이고 화면낭독기만 읽는 글자 */
.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;
}

/* 표 */
/* position: relative — 표 안의 .sr-only 글자가 스크롤 영역 밖으로 빠져 페이지를 넓히지 않도록 */
.table-wrap { overflow-x: auto; position: relative; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table caption { text-align: left; font-weight: 700; padding: 8px 0; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: middle; }
.data-table thead th { background: #f4f6f7; border-top: 2px solid var(--color-text); white-space: nowrap; }
.data-table form { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--color-point); color: #fff; font-size: 0.9rem; }
.btn-small { padding: 6px 12px; font-size: 0.9rem; }

/* 폼 추가 */
.field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit;
  border: 1px solid #767676; border-radius: 4px; background: #fff;
}
.field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }
fieldset.field { border: 1px solid var(--color-line); border-radius: 4px; padding: 12px 16px 0; }
fieldset.field legend { font-weight: 700; padding: 0 4px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.field .help-text { margin: 4px 0 0; }
.field-error { margin: 4px 0 0; color: var(--color-error); font-weight: 700; }
.field-error::before { content: "오류: "; }
.required-mark { color: var(--color-error); }
.error-summary { padding: 12px 20px; border: 2px solid var(--color-error); border-radius: 4px; margin-bottom: 24px; }
.error-summary h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--color-error); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--color-error); }
.form-actions { display: flex; gap: 8px; margin-top: 24px; }

/* 행사 (SFR-212) */
.event-group { margin-top: 32px; }
.event-group h2 { margin: 0; font-size: 1.3rem; }
.event-info { padding: 8px 12px; background: #f4f6f7; border-radius: 4px; }
.choice-list { padding-left: 20px; }
.choice-list li { margin-bottom: 8px; }
.radio-group { border: 1px solid var(--color-line); border-radius: 4px; padding: 12px 16px; }
.radio-group legend { font-weight: 700; padding: 0 4px; }
.radio-option { margin-bottom: 8px; }
.radio-option input { width: 20px; height: 20px; margin: 0 6px 0 0; vertical-align: middle; }
.radio-option label { display: inline; font-weight: 700; }
.radio-option .help-text { margin: 2px 0 0 28px; }
.field input.input-short { width: 8em; text-transform: uppercase; }

/* 자료 분류 관리 (SFR-108) */
.category-section { margin-top: 32px; }
.category-section h3 { font-size: 1.2rem; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; margin: 0; }
.inline-form .field { margin: 0; }
.inline-form input[type="text"] { width: 12em; padding: 6px 10px; }
.inline-form select { width: auto; padding: 6px 10px; }
.format-locked { margin: 6px 0 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions form { margin: 0; }
.add-form { margin-top: 16px; }
.add-form fieldset { border: 1px dashed #767676; border-radius: 4px; padding: 12px 16px; }
.add-form legend { font-weight: 700; padding: 0 4px; }

/* 정보·홍보자료 목록·등록 (SFR-108) */
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 12px 16px; background: #f4f6f7; border-radius: 4px; margin-bottom: 12px; }
.filter-form .field { margin: 0; min-width: 140px; flex: 1 1 140px; }
.filter-form input, .filter-form select { padding: 6px 10px; }
.filter-actions { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.filter-form .filter-wide { flex-basis: 100%; }
.filter-form .filter-wide select { width: auto; max-width: 100%; }
.list-thumb { width: 80px; height: 60px; object-fit: cover; border: 1px solid var(--color-line); display: block; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 16px 0; }
.pagination a { display: inline-block; min-width: 40px; padding: 8px 10px; text-align: center; border: 1px solid var(--color-line); border-radius: 4px; text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--color-point); color: #fff; border-color: var(--color-point); font-weight: 700; }
.current-image { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.current-image img { width: 200px; max-width: 100%; height: auto; border: 1px solid var(--color-line); }
.field input.input-date { width: 12em; }
.page-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border: 1px solid var(--color-line); background: #f4f6f7; }
.card-title { margin: 0 0 8px; font-size: 1.05rem; }
.format-group { border: 1px solid var(--color-line); border-radius: 4px; padding: 12px 16px; margin-top: 24px; }
.format-group[hidden] { display: none; }
.format-group > legend { font-weight: 700; padding: 0 4px; }

/* 일정 (SFR-204) */
.schedule-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.6fr); gap: 0 12px; }
.schedule-fields .field input.input-date, .schedule-fields .field input.input-short { width: 100%; }
@media (max-width: 640px) {
  .schedule-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .schedule-fields .field:first-child { grid-column: 1 / -1; }
}
.schedule-preview { padding-left: 20px; }
.schedule-preview li { margin-bottom: 4px; }
.schedule-preview span { color: var(--color-muted); margin-left: 8px; }

/* 동의서 (SFR-211) */
.consent-card { border: 1px solid var(--color-line); border-radius: 4px; padding: 12px 20px 16px; margin-top: 24px; }
.consent-card h3 { margin: 0; font-size: 1.15rem; }
.consent-meta { color: var(--color-muted); margin: 8px 0; }
.consent-sub { font-size: 1rem; margin: 16px 0 6px; }
.consent-easy { background: var(--color-secondary); padding: 10px 14px; border-radius: 4px; }
.consent-items { padding-left: 20px; }
.consent-items li { margin-bottom: 6px; }
.tag { display: inline-block; padding: 0 8px; margin-right: 4px; border-radius: 4px; font-size: 0.85rem; border: 1px solid; }
.tag-required { color: var(--color-error); border-color: var(--color-error); }
.tag-optional { color: var(--color-muted); border-color: #767676; }
details.consent-body, details.consent-history { margin-top: 12px; border: 1px solid var(--color-line); border-radius: 4px; padding: 8px 12px; }
details > summary { cursor: pointer; font-weight: 700; color: var(--color-point); }
details.consent-body > div { margin-top: 8px; }
.item-row { border: 1px solid var(--color-line); border-radius: 4px; padding: 8px 16px 0; }
.item-row legend { font-weight: 700; padding: 0 4px; }

/* 회차 설정 메뉴 */
.sub-tabs ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 16px 0 24px; padding: 0; border-bottom: 1px solid var(--color-line); }
.sub-tabs a { display: inline-block; padding: 8px 16px; color: var(--color-text); text-decoration: none; border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.sub-tabs a[aria-current="page"] { border-color: var(--color-line); background: #fff; font-weight: 700; color: var(--color-point); }
.section-title { font-size: 1.3rem; }
.group-title { font-size: 1.1rem; margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--color-line); }
.help-text ul { margin: 4px 0 12px; padding-left: 20px; }
.checkbox-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.checkbox-field .help-text { flex: 1 1 100%; margin: 0; }
.checkbox-field input { width: 20px; height: 20px; margin: 0; }
.checkbox-field label { font-weight: 400; margin: 0; }
.button-row [hidden] { display: none; }

/* 메인 비주얼 관리 */
.btn-danger { background: #fff; color: var(--color-error); border: 1px solid var(--color-error); }
/* 경고: 색만이 아니라 "주의:" 글자와 왼쪽 굵은 선으로도 구분 */
.warning-box { border: 1px solid #8a5a00; border-left-width: 6px; border-radius: 4px; background: #fff8e6; color: #5c3d00; padding: 8px 12px; margin: 8px 0 12px; }
.warning-box p { margin: 0 0 4px; }
.apply-state { margin: 0 0 16px; }
.apply-state p { margin: 0 0 4px; }

/* 온라인 응모 신청 (SFR-003) */
.apply-section { margin: 24px 0; }
.apply-section h2 { font-size: 1.2rem; }
.consent-doc-body { border: 1px solid var(--color-line); border-radius: 4px; padding: 12px 16px; line-height: 1.7; overflow-wrap: anywhere; }
.consent-choice { margin-bottom: 16px; }
.consent-choice legend { line-height: 1.6; }
.apply-fieldset { margin: 0 0 20px; padding-bottom: 4px; }
.apply-fieldset > legend { font-size: 1.1rem; }
.grade-size { margin: 4px 0 0; }
.grade-size:empty { display: none; }
.apply-summary { margin: 0; border-top: 1px solid var(--color-line); }
.apply-summary > div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--color-line); }
.apply-summary dt { font-weight: 700; }
.apply-summary dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .apply-summary > div { grid-template-columns: minmax(0, 1fr); } }
.photo-current { margin-bottom: 12px; }
.photo-current img, .photo-preview img, .confirm-photo { display: block; max-width: 100%; max-height: 320px; height: auto; border: 1px solid var(--color-line); }
.photo-current .help-text { margin: 6px 0; overflow-wrap: anywhere; }
.photo-preview { margin-bottom: 8px; }
.confirm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.confirm-head h2 { margin: 0; }
.confirm-sub { font-size: 1rem; margin: 16px 0 6px; }
.confirm-consents { list-style: none; margin: 0; padding: 0; }
.confirm-consents li { margin-bottom: 6px; }

/* 응모작 관리 (SFR-102) */
.stat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; }
.stat-list li { flex: 1 1 130px; border: 1px solid var(--color-line); border-radius: 4px; padding: 8px 12px; }
.stat-list span { display: block; color: var(--color-muted); font-size: 0.9rem; }
.stat-list strong { font-size: 1.2rem; }
.stat-list small { display: block; color: var(--color-muted); font-size: 0.85rem; }
.stat-links li { padding: 0; }
.stat-links a { display: block; height: 100%; padding: 8px 12px; color: inherit; text-decoration: none; border-radius: 4px; }
.stat-links a strong { color: var(--color-point); text-decoration: underline; text-underline-offset: 3px; }
.stat-links a:hover { background: #f4f6f7; }
.entry-table td, .entry-table th { white-space: nowrap; }
.entry-table td:nth-child(5) { white-space: normal; min-width: 8em; }
.detail-section { margin: 24px 0; }
.detail-section h2 { font-size: 1.2rem; margin-bottom: 8px; }
.inline-action { display: inline-block; margin: 4px 0 0 8px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-actions form { margin: 0; }

/* 관리자 권한 (SFR-106) */
.permission-super { margin: 8px 0 0; }
.permission-group { border: 0; border-top: 1px solid var(--color-line); margin: 12px 0 0; padding: 8px 0 0; }
.permission-group > legend { font-weight: 700; padding: 0 4px 0 0; }
.permission-group .checkbox-field { margin-top: 6px; }
.permission-desc { margin: 0 0 4px 28px; }

/* 수상작 관리 (SFR-105) */
.receipt-load { padding: 12px 16px; background: #f4f6f7; border-radius: 4px; margin-bottom: 16px; }
.receipt-load label { font-weight: 700; }
.entry-box { border: 1px solid var(--color-line); border-radius: 4px; padding: 12px 16px; }
.entry-box h2 { margin-top: 0; }
.award-table td, .award-table th { vertical-align: top; }
.award-table .alt-cell { min-width: 12em; max-width: 22em; white-space: pre-line; }
.error-summary h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--color-error); }
.error-summary p { margin: 0 0 8px; }
.text-error { color: var(--color-error); }
.upload-form { margin: 16px 0 32px; }
.step-list li { margin-bottom: 8px; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }

/* 게시판 관리 (SFR-104) */
.inline-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.inline-edit input[type="text"] { flex: 1 1 12em; min-width: 0; padding: 6px 10px; }
.inline-edit .field-error, .inline-edit .help-text { flex-basis: 100%; margin: 0; }

/* 게시판 글 본문·그림 (SFR-009·010) */
.post-body { line-height: 1.8; overflow-wrap: anywhere; }
.post-images { margin-top: 16px; }
.post-image { margin: 0 0 16px; }
.post-image img { display: block; max-width: 100%; height: auto; }
.post-image-list { list-style: none; margin: 0; padding: 0; }
.post-image-item { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px 16px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.post-image-item img { width: 100%; height: auto; border: 1px solid var(--color-line); }
.post-image-edit label { display: block; font-weight: 700; margin-bottom: 4px; }
.post-image-edit textarea { width: 100%; padding: 8px 10px; font: inherit; border: 1px solid #767676; border-radius: 4px; }
.post-image-edit form { margin: 0 0 8px; }
.post-preview { border: 1px dashed var(--color-line); border-radius: 4px; padding: 16px 20px; }
.post-preview-title { margin-top: 0; }
@media (max-width: 600px) { .post-image-item { grid-template-columns: minmax(0, 1fr); } }

/* 작업 기록 (SFR-209, SER-004) */
.log-table td { vertical-align: top; }
.log-table td:first-child { white-space: nowrap; }
.log-summary { min-width: 16em; overflow-wrap: anywhere; }
.log-summary details { margin-top: 4px; }
.log-detail { margin: 6px 0 0; font-size: 0.9rem; }
.log-detail > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 2px 8px; padding: 2px 0; border-top: 1px dashed var(--color-line); }
.log-detail dt { font-weight: 700; }
.log-detail dd { margin: 0; }
.status-form { margin-top: 16px; padding: 12px 16px; background: #f4f6f7; border-radius: 4px; }
.status-form .radio-group { background: #fff; }
.arrival-result p { margin: 0 0 4px; overflow-wrap: anywhere; }
.receipt-input { font-family: Consolas, monospace; }

/* 신청 완료·출력 (SFR-007) */
.print-actions { margin-bottom: 24px; }
.print-doc { border: 1px solid var(--color-line); padding: 20px 24px; margin-bottom: 32px; }
.print-title { font-size: 1.5rem; margin: 0 0 4px; text-align: center; }
.print-meta { text-align: center; margin: 0 0 16px; color: var(--color-muted); }
.print-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.print-table th, .print-table td { border: 1px solid #767676; padding: 6px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.print-table th { width: 32%; background: #f4f6f7; font-weight: 700; }
.print-receipt { font-size: 1.2rem; font-weight: 700; }
.print-consent h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.print-version { font-size: 0.85rem; font-weight: 400; color: var(--color-muted); }
.print-consent-body { border: 1px solid var(--color-line); padding: 8px 12px; font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere; }
.print-choices { list-style: none; margin: 8px 0 0; padding: 0; }
.print-choices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 6px 0; border-bottom: 1px dashed var(--color-line); }
.print-boxes { white-space: nowrap; }
.print-pledge { margin: 20px 0 8px; font-weight: 700; }
.print-sign td { height: 2.4em; }
.print-sign-space { display: inline-block; margin-left: 4em; color: var(--color-muted); }
.print-note { font-size: 0.95rem; margin: 6px 0; }

/* 인쇄: 서류마다 A4 한 장에 들어가도록 글자와 간격을 줄인다. 서명란은 쪽 중간에서 나뉘지 않게 한다 */
.print-sign-block { break-inside: avoid; page-break-inside: avoid; }
/* 보호자 동의서 한 장 (SFR-007, 2026-10-23 회신 양식) */
.consent-form-sub { display: block; font-size: 0.95rem; font-weight: 400; }
.consent-form-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 8px 0; }
.consent-form-head p { margin: 0; }
.consent-form-people th { width: 9em; }
.form-blank { display: inline-block; border-bottom: 1px solid #767676; height: 1.1em; vertical-align: bottom; }
.consent-form-section h3 { font-size: 1.05rem; }
.consent-form-sign { text-align: right; margin-top: 16px; }
.consent-form-sign p { margin: 6px 0; }
.consent-form-date { margin-bottom: 12px !important; }
.consent-form-to { font-weight: 700; margin-top: 14px !important; }
@media screen and (max-width: 600px) {
  .consent-form-people tr { display: block; border: 1px solid #767676; margin-bottom: 8px; }
  .consent-form-people th, .consent-form-people td { display: block; width: auto; border: 0; }
  .consent-form-people th { border-bottom: 1px solid #767676; }
  .form-blank { max-width: 60%; }
}
@page { size: A4; margin: 14mm 15mm; }
@media print {
  .skip-link, .site-header, .site-footer, .print-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.45; }
  .container { max-width: none; padding: 0; }
  .print-doc { border: 0; padding: 0; margin: 0; break-after: page; page-break-after: always; }
  .print-doc:last-child { break-after: auto; page-break-after: auto; }
  .print-title { font-size: 16pt; }
  .print-meta { margin-bottom: 10px; }
  .print-table { margin-bottom: 8px; }
  .print-table th, .print-table td { padding: 4px 8px; }
  .print-table th { background: #eee; }
  .print-receipt { font-size: 12pt; }
  .print-consent h3 { font-size: 11pt; margin: 12px 0 4px; }
  .print-consent-body { font-size: 9pt; line-height: 1.4; padding: 6px 10px; }
  .print-choices li { padding: 3px 0; }
  .print-pledge { margin: 14px 0 6px; }
  .print-sign td { height: 2em; }
  .print-note { font-size: 9pt; margin: 4px 0; }
  .consent-form .print-title { font-size: 14pt; }
  .consent-form-sub { font-size: 10pt; }
  .consent-form-head, .consent-form-people { font-size: 10.5pt; }
  .consent-form-section h3 { font-size: 11pt; margin: 10px 0 4px; }
  .consent-form .print-consent-body { font-size: 9.5pt; line-height: 1.55; padding: 6px 10px; }
  .consent-form-sign { margin-top: 12px; font-size: 10.5pt; }
  .consent-form .print-choices li { font-size: 10.5pt; padding: 5px 0; }
  .consent-form-sign p { margin: 4px 0; }
  a { color: #000; text-decoration: none; }
}
.warning-box ul { margin: 0; padding-left: 20px; }
.visual-list { list-style: none; margin: 0; padding: 0; }
.visual-card { border: 1px solid var(--color-line); border-radius: 4px; padding: 12px 16px 16px; margin-bottom: 16px; }
.visual-card h4 { margin: 0 0 8px; }
.visual-body { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; }
.visual-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--color-line); background: #f4f6f7; }
.visual-info .help-text { margin-top: 0; overflow-wrap: anywhere; }
.visual-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.visual-actions form { margin: 0; }
@media (max-width: 640px) {
  .visual-body { grid-template-columns: minmax(0, 1fr); }
}

/* 테마 색 */
.color-inputs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; }
.color-inputs .field { margin-bottom: 8px; }
.color-inputs input[type="text"] { width: 9em; font-family: Consolas, monospace; text-transform: uppercase; }
.color-inputs input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 1px solid #767676; border-radius: 4px; background: #fff; cursor: pointer; }
.swatch { width: 44px; height: 44px; margin-bottom: 8px; border: 1px solid #767676; border-radius: 4px; flex: none; }
.contrast-result { margin: 0 0 12px; font-weight: 700; }
.theme-preview { margin-top: 24px; padding: 16px 20px; border: 1px dashed #767676; border-radius: 4px; }
.theme-preview h2 { margin-top: 0; font-size: 1.1rem; }
.pv-page { border-top: 4px solid var(--pv-primary); background: #fff; padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.pv-title { font-size: 1.25rem; font-weight: 700; color: var(--pv-primary); margin-top: 0; }
.pv-link { color: var(--pv-primary); text-decoration: underline; font-weight: 700; }
.pv-band { background: var(--pv-secondary); color: var(--color-text); padding: 16px; border-radius: 4px; }
.pv-band p { margin-top: 0; }
.pv-button { display: inline-block; padding: 10px 20px; border-radius: 4px; background: var(--pv-button); color: #fff; font-weight: 700; }

/* 사용자 화면: 주 메뉴 */
.user-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.user-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.user-nav a { display: inline-block; padding: 6px 0; color: var(--color-text); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.user-nav a:hover { color: var(--color-point); }
.user-nav a[aria-current="page"] { color: var(--color-point); border-bottom-color: var(--color-point); }
.lead { font-size: 1.1rem; color: var(--color-muted); }
.container.narrow-wide { max-width: 900px; }

/* 정보·홍보 자료실 (SFR-012): 자료 보기의 영상·그림·글 (목록·카드뉴스 모양은 user.css) */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 24px 0 12px; }
.tag-type { color: var(--color-point); border-color: var(--color-point); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.resource-figure { margin: 24px 0; }
.resource-figure img { max-width: 100%; height: auto; border: 1px solid var(--color-line); }
.resource-text { margin-top: 24px; line-height: 1.8; overflow-wrap: anywhere; }

/* 응모 신청 안내 (SFR-002·003) */
.guide-section { margin-top: 40px; }
.guide-section h2 { font-size: 1.3rem; padding-bottom: 6px; border-bottom: 2px solid var(--color-point); }
.guide-section h3 { font-size: 1.1rem; margin-top: 24px; }
.step-list { padding-left: 24px; }
.step-list li { margin-bottom: 10px; line-height: 1.7; }
.mail-address { font-style: normal; padding: 12px 16px; border: 1px solid var(--color-line); border-radius: 4px; line-height: 1.8; overflow-wrap: anywhere; }

/* 사용자 화면 */
.hero-meta { margin-top: 0; font-weight: 700; }

/* 자동 로그아웃 남은 시간·연장 */
.session-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--color-muted); font-size: 0.95rem; }
.session-timer > span { white-space: nowrap; }
.admin-user { flex-wrap: wrap; justify-content: flex-end; }
.btn { white-space: nowrap; }
/* 좁은 화면: 남은 시간 줄을 통째로 아래로 */
@media (max-width: 640px) {
  .admin-user { width: 100%; justify-content: space-between; }
  .session-timer { width: 100%; justify-content: space-between; }
}
.session-timer[hidden] { display: none; }
.session-timer-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--color-text); }
.session-dialog, .modal-dialog { max-width: 440px; width: calc(100% - 32px); padding: 24px; border: 2px solid var(--color-point); border-radius: 8px; }
.session-dialog::backdrop, .modal-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.session-dialog h2, .modal-dialog h2 { margin-top: 0; font-size: 1.25rem; }
.modal-dialog p { overflow-wrap: anywhere; }

.dev-status { margin-top: 40px; padding: 16px 20px; border: 1px dashed var(--color-line); }
.dev-status dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.dev-status dd { overflow-wrap: anywhere; }
.dev-status dt { font-weight: 700; }
.dev-status dd { margin: 0; }

/* 관리 화면: 서식 예시 (공모요강 본문 TextFormat) */
pre.format-example { margin: 4px 0 0; padding: 10px 14px; border-radius: 4px; background: #f4f6f7; font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 관리자가 쓴 긴 글의 표 (TextFormat: 공모요강 본문, 동의서 화면용 요약, 개인정보처리방침·이용약관). 관리 화면 미리보기에도 쓴다 */
.doc-table { width: 100%; margin: 0 0 16px; border-collapse: collapse; border-top: 2px solid var(--color-text); font-size: 1rem; line-height: 1.65; }
.doc-table th, .doc-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.doc-table thead th { background: #F6F8F7; border-bottom-color: #C9D3CF; text-align: center; font-weight: 700; }
.doc-table thead ~ tbody td { text-align: center; }
.doc-table-kv th { width: 180px; background: #F6F8F7; font-weight: 700; }
@media (max-width: 640px) { .doc-table th, .doc-table td { padding: 12px; font-size: 15px; } .doc-table-kv th { width: 96px; } }

/* 설문 문항 목록 (SFR-109 가칭) */
.survey-admin-questions { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--color-line); }
.survey-admin-questions > li { padding: 16px 0; border-bottom: 1px solid var(--color-line); scroll-margin-top: 16px; }
.survey-admin-q-head { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.survey-admin-options { margin: 8px 0; padding-left: 24px; overflow-wrap: anywhere; }
.survey-admin-options li { margin: 2px 0; }
/* 설문 응답 현황 (SFR-109 가칭) */
.survey-result h3 { margin: 0 0 4px; font-size: 1.05rem; overflow-wrap: anywhere; }
.survey-result-table td:nth-child(3) { white-space: nowrap; }
.survey-bar { display: inline-block; width: 120px; height: 10px; margin-right: 8px; border-radius: 5px; background: var(--color-line); vertical-align: middle; overflow: hidden; }
.survey-bar > span { display: block; height: 100%; background: var(--color-point); }
.survey-texts { margin-top: 12px; }
.survey-text-list { margin: 8px 0 0; padding-left: 28px; }
.survey-text-list li { margin: 0 0 10px; }
.survey-text-list p { margin: 0; overflow-wrap: anywhere; }
