/* 공개 사물함 현황 v2 (2026-10-27) — 기관 홈페이지(seochowomen.kr) 본문 규칙에 맞춘 iframe 콘텐츠.
   기준: 홈페이지 style.css의 .sub-tit01(★ 파란 별+남색 제목) · .info-board(진한 윗선 표) · .con-list-wrap/.ui_dlbox.type02(안내 카드)
         · .locker(흰 카드 칸, 신청가능=#F6FBFE 바탕). 글자색은 대비 4.5:1 이상이 되도록 홈페이지 색을 한 단계 진하게 조정.
   글꼴: Pretendard(OFL) 서브셋을 자체 호스팅(fonts/) — 홈페이지 본문 글꼴과 동일. 외부 CDN 없음. */
@font-face {
  font-family: "LockerSans";
  src: url("./fonts/LockerSans-subset.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #2899e3;          /* 홈페이지 주 파랑 — 별·테두리·아이콘(비텍스트, 3:1 이상) */
  --blue-ink: #1270ad;      /* 파랑 글자(연하늘 바탕 4.9:1) */
  --blue-btn: #0f69a3;
  --blue-tint: #f6fbfe;     /* 홈페이지 .locker-ok 바탕 */
  --blue-tint-2: #eaf5fc;
  --blue-line: #b9dcf4;
  --navy: #101840;          /* 제목 */
  --navy-2: #002761;        /* 표 머리글·신청가능 번호 */
  --ink: #474d66;           /* 본문 */
  --ink-2: #696f8c;         /* 보조(흰 바탕 4.9:1) */
  --line: #e6e8f0;
  --line-2: #ebedf2;
  --bg-1: #f8f8fb;
  --bg-2: #f3f3f7;
  --amber: #c27803;         /* 점검 중 테두리·아이콘(흰/연노랑 바탕 3:1 이상) */
  --amber-ink: #8a4b00;     /* 점검 중 글자(연노랑 바탕 6:1 이상) */
  --amber-tint: #fff7e0;    /* 점검 중 바탕 */
  --font: "LockerSans", "Pretendard", "Pretendard Variable", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
button { font-family: inherit; }
.ls { max-width: 940px; margin: 0 auto; padding: 4px 16px 12px; }
.ls-blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ls-sub { color: var(--ink-2); font-weight: 400; }
.ls-tel { display: inline-block; padding: 4px 2px; margin: -4px -2px; color: var(--blue-ink); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; } /* 탭 영역 24px 이상(WCAG 2.5.8) · 음수 margin으로 줄 간격은 유지 */
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; border-radius: 4px; }

/* 소제목: 홈페이지 .sub-tit01 — 왼쪽 ★(sub_tit.svg 같은 모양) + 1.5em/600 #101840 */
.ls-sec { margin-top: 44px; }
.ls-tit {
  position: relative; margin: 0 0 20px; padding-left: 32px;
  font-size: 1.5em; font-weight: 700; line-height: 1.4; color: var(--navy); letter-spacing: -0.03em;
}
.ls-tit::before {
  content: ""; position: absolute; left: 0; top: 0.18em; width: 25px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='24' viewBox='0 0 25 24' fill='none' stroke='%232899E3' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.17 3.75V12M4.32 9.45L12.17 12M7.32 18.68L12.17 12M17.02 18.68L12.17 12M20.02 9.45L12.17 12'/%3E%3C/svg%3E") no-repeat 0 0 / 25px 24px;
}

/* 1. 안내 카드: .con-list-wrap(테두리 #E6E8F0, 8px) + .ui_dlbox.type02(* 머리표, dt 92px 굵게) */
.ls-card { display: flex; gap: 24px; align-items: center; padding: 28px 28px 22px; border: 1px solid var(--line); border-radius: 8px; }
.ls-card-text { flex: 1 1 auto; min-width: 0; }
.ls-card-title { margin: 0 0 16px; font-size: 1.25em; font-weight: 700; color: var(--navy); }
.ls-dl { margin: 0; }
.ls-dl > div {
  display: flex; gap: 8px; margin-bottom: 12px; padding-left: 1.25em; line-height: 1.6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='12' viewBox='0 0 13 12' fill='none' stroke='%23474D66' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6.17 1.88v8.25M2.6 3.94l7.14 4.12M2.6 8.06l7.14-4.12'/%3E%3C/svg%3E") no-repeat 0 0.42em / 0.75em;
}
.ls-dl > div:last-child { margin-bottom: 0; }
.ls-dl dt { flex: none; width: 92px; font-weight: 700; color: var(--navy); }
.ls-dl dd { margin: 0; color: var(--ink); }
.ls-photo { flex: 0 0 36%; margin: 0; }
.ls-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* 2. 현황 요약 박스 */
.ls-now {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 20px 24px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--blue-tint);
}
.ls-summary { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ls-summary-label { font-size: 1.05em; font-weight: 600; color: var(--navy); }
.ls-summary-value { font-size: 1.05em; font-weight: 600; color: var(--ink-2); }
.ls-count { font-size: 2.3em; line-height: 1.15; font-weight: 800; color: var(--blue-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-right: 2px; }
.ls-count.is-zero { color: var(--navy); }
.ls-count.is-loading { color: #b4b8c9; }
.ls-unit { font-size: 1.3em; font-weight: 800; color: var(--blue-ink); margin-right: 8px; }
.ls-count.is-zero + .ls-unit { color: var(--navy); }
.ls-summary-note { display: block; margin-top: 2px; font-size: 0.94em; color: var(--ink); font-weight: 500; }
.ls-now-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ls-loading { margin: 0; color: var(--ink-2); font-size: 0.95em; font-variant-numeric: tabular-nums; }
.ls-loading b { color: var(--navy); font-weight: 700; }
.ls-loading.is-fail { color: #7c2d12; font-weight: 600; }
.ls-refresh {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--blue-btn); border-radius: 8px; background: #fff; color: var(--blue-btn);
  font-size: 0.95em; font-weight: 700; cursor: pointer;
}
.ls-refresh:hover { background: var(--blue-btn); color: #fff; }
.ls-refresh[disabled] { cursor: progress; opacity: 0.75; }
.ls-refresh-ic { width: 18px; height: 18px; flex: none; }
.ls-refresh.is-busy .ls-refresh-ic { animation: ls-spin 0.9s linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }

.ls-legend { list-style: none; margin: 18px 0 14px; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 0.94em; color: var(--ink); }
.ls-legend li { display: flex; align-items: center; gap: 7px; }
.ls-legend-sub { color: var(--ink-2); }
.ls-chip { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; }
.ls-chip svg { width: 14px; height: 14px; }
.ls-chip.is-open { background: var(--blue-tint); border: 1px solid var(--blue); color: var(--blue-ink); }
.ls-chip.is-closed { background: #fff; border: 1px solid #c9ccd8; color: var(--ink-2); }
.ls-chip.is-maint { background: var(--amber-tint); border: 1px solid var(--amber); color: var(--amber-ink); }

/* 층별 칸: 홈페이지 .locker 배치(층마다 2열, 왼쪽 1~5 · 오른쪽 6~10) */
.ls-floors { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .ls-floors { grid-template-columns: 1fr 1fr; gap: 16px; } }
/* 층 구분: 층마다 연회색 패널 + 남색 층 배지 (10/27 사용자 "7층·5층 구분이 힘들다") */
.ls-floor { padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); }
.ls-floor-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; }
.ls-floor-head h3 {
  margin: 0; padding: 4px 14px; border-radius: 999px; background: var(--navy-2); color: #fff;
  font-size: 1.05em; font-weight: 800; line-height: 1.4;
}
.ls-floor-head .ls-floor-range { font-size: 0.94em; color: var(--ink-2); font-weight: 600; }
.ls-floor-head .ls-floor-count { margin-left: auto; font-size: 0.94em; color: var(--ink); font-weight: 600; white-space: nowrap; }
.ls-floor-head .ls-floor-count b { color: var(--blue-ink); font-weight: 800; }
.ls-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 8px; }
.ls-cell {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 88px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
}
.ls-num { font-size: 24px; line-height: 1; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ls-num small { font-size: 0.58em; font-weight: 600; margin-left: 1px; }
.ls-state { display: inline-flex; align-items: center; gap: 5px; font-size: 0.94em; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.ls-state svg { width: 18px; height: 18px; flex: none; }
.ls-cell.is-open { background: var(--blue-tint); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.ls-cell.is-open .ls-num { color: var(--navy-2); }
.ls-cell.is-open .ls-state { color: var(--blue-ink); }
/* 점검 중(v4): 노랑·주황 톤 + 렌치 + "점검 중" — 회색(신청 불가)과 구분 */
.ls-cell.is-maint { background: var(--amber-tint); border-color: var(--amber); border-style: dashed; }
.ls-cell.is-maint .ls-num { color: var(--amber-ink); }
.ls-cell.is-maint .ls-state { color: var(--amber-ink); }
.ls-cell.is-loading { background: var(--bg-1); }
.ls-cell.is-loading .ls-num { color: #b4b8c9; }

.ls-error { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 16px 20px; border: 1px solid #f0b4a8; border-left: 4px solid #c2410c; border-radius: 8px; background: #fff7f5; color: #7c2d12; }
.ls-error[hidden] { display: none; }

/* 3. 신청 절차 */
.ls-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.ls-step {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 24px 12px 20px; border-radius: 8px; background: var(--bg-2);
}
.ls-step + .ls-step::before {
  content: ""; position: absolute; left: -22px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-top: 3px solid var(--blue); border-right: 3px solid var(--blue); transform: rotate(45deg);
}
.ls-step-ic { width: 60px; height: 60px; margin-bottom: 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--blue); border: 1px solid var(--line); }
.ls-step-ic svg { width: 30px; height: 30px; }
.ls-step-no { font-size: 0.8em; font-weight: 800; letter-spacing: 0.04em; color: var(--blue-ink); }
.ls-step-tit { font-size: 1.08em; font-weight: 700; color: var(--navy); }
.ls-step-desc { font-size: 0.94em; color: var(--ink); line-height: 1.5; }
.ls-step-desc b { color: var(--navy); font-weight: 800; }

/* 4. 표: 홈페이지 .info-board.center — 윗선 2px #474d66, 머리글 #F8F8FB/#002761, 칸선 #EBEDF2 */
.ls-board { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-2); line-height: 1.5; color: var(--ink); text-align: center; letter-spacing: -0.5px; }
.ls-board th, .ls-board td { padding: 16px 20px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); vertical-align: middle; }
.ls-board thead th { background: var(--bg-1); color: var(--navy-2); font-weight: 600; }
.ls-board tbody th { width: 37%; background: #fff; color: var(--navy); font-weight: 500; }
.ls-board strong { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.ls-board .ls-total-row th, .ls-board .ls-total-row td { background: var(--blue-tint); }
.ls-board .ls-total-row th { font-weight: 700; }
.ls-total-row strong { color: var(--blue-ink); font-weight: 800; font-size: 1.1em; }

/* 5. 환불 규정 접기 */
.ls-details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ls-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 20px;
  font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; border-radius: 8px;
}
.ls-details summary::-webkit-details-marker { display: none; }
.ls-details summary:hover { background: var(--bg-1); }
.ls-caret { width: 20px; height: 20px; flex: none; color: var(--ink-2); transition: transform 0.2s; }
.ls-details[open] .ls-caret { transform: rotate(180deg); }
.ls-details[open] summary { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.ls-details-body { padding: 20px; }
.ls-ast { list-style: none; margin: 16px 0 0; padding: 0; }
.ls-ast li {
  padding-left: 1.25em; margin-top: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='12' viewBox='0 0 13 12' fill='none' stroke='%23474D66' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6.17 1.88v8.25M2.6 3.94l7.14 4.12M2.6 8.06l7.14-4.12'/%3E%3C/svg%3E") no-repeat 0 0.42em / 0.75em;
}
.ls-ast strong { color: var(--navy); font-weight: 700; }

/* 6. 유의사항 */
.ls-note { margin: 32px 0 0; padding: 14px 20px; border-radius: 8px; background: var(--bg-2); color: var(--ink); }
.ls-note strong { color: var(--navy); font-weight: 700; margin-right: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 640px) {
  .ls-steps { grid-template-columns: 1fr; gap: 10px; }
  .ls-step { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 14px; row-gap: 0; text-align: left; padding: 14px 16px; }
  .ls-step-ic { grid-column: 1; grid-row: 1 / span 3; width: 48px; height: 48px; margin: 0; }
  .ls-step-ic svg { width: 24px; height: 24px; }
  .ls-step-no, .ls-step-tit, .ls-step-desc { grid-column: 2; }
  .ls-step-desc br { display: none; }
  .ls-step + .ls-step::before { left: 38px; top: -9px; margin-top: 0; width: 10px; height: 10px; transform: rotate(135deg); border-width: 2.5px; }
}
@media (max-width: 520px) {
  .ls-sec { margin-top: 36px; }
  .ls-tit { font-size: 1.3em; padding-left: 30px; }
  .ls-tit::before { width: 22px; height: 21px; background-size: 22px 21px; top: 0.14em; }
  .ls-card { flex-direction: column; align-items: stretch; padding: 20px 18px 18px; }
  .ls-photo { flex-basis: auto; width: 100%; }
  .ls-photo img { aspect-ratio: 3 / 2; max-height: 220px; object-fit: cover; }
  .ls-dl > div { flex-direction: column; gap: 0; }
  .ls-dl dt { width: auto; }
  .ls-now { padding: 16px 18px; }
  .ls-now-side { width: 100%; justify-content: space-between; }
  .ls-board th, .ls-board td { padding: 13px 10px; }
  .ls-board tbody th { width: 40%; }
  .ls-board .ls-sub { display: block; font-size: 0.9em; }
  .ls-cell { min-height: 78px; padding: 12px; }
  .ls-num { font-size: 22px; }
  .ls-details summary { padding: 12px 16px; }
  .ls-details-body { padding: 16px; }
}
@media (max-width: 359px) {
  .ls-state { font-size: 0.86em; }
}
.ls-error .ls-retry { align-self: flex-start; margin-top: 8px; }
