/* 2027 셰르파 선발(15기) — 신청 페이지 공용 CSS. 모든 규칙은 .jsr 하위로 한정(BAC 공통 style.css 충돌 방지) */
.jsr {
	--jsr-red: #f00;
	--jsr-blue: #3b63a8;
	--jsr-dark: #0d1720;
	--jsr-ink: #111;
	--jsr-sub: #666;
	--jsr-line: #e3e3e3;
	--jsr-bg: #f7f7f7;
	--jsr-err: #d6001c;
	font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	color: var(--jsr-ink);
	line-height: 1.6;
	word-break: keep-all;
	-webkit-text-size-adjust: 100%;
}
.jsr *, .jsr *::before, .jsr *::after { box-sizing: border-box; }
.jsr img { max-width: 100%; height: auto; display: block; }
.jsr ul { margin: 0; padding: 0; list-style: none; }
.jsr h2, .jsr h3, .jsr p { margin: 0; }
.jsr { --jw: 100%; }
.jsr .jwrap { max-width: var(--jw); margin: 0 auto; padding: 0 20px; }

/* ---------- 비주얼 ---------- */
.jsr .hero { max-width: 1200px; margin: 0 auto; }
.jsr .hero img { width: 100%; }

/* ---------- 소개 (다크) ---------- */
.jsr .intro { max-width: 1200px; margin: 0 auto; background: var(--jsr-dark); color: #fff; text-align: center; padding: 56px 0 0; } /* 비주얼 이미지(1200px)와 폭 일치 */
.jsr .intro .en { font-size: 40px; font-weight: 800; letter-spacing: .04em; color: var(--jsr-blue); line-height: 1.1; }
.jsr .intro p { margin-top: 28px; font-size: 16px; line-height: 1.9; color: #eee; }
.jsr .intro p + p { margin-top: 0; }
.jsr .circles { display: flex; align-items: center; justify-content: center; margin: 44px 0 0; }
.jsr .circles li { width: 104px; height: 104px; border: 2px solid var(--jsr-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--jsr-blue); font-weight: 700; font-size: 17px; line-height: 1.3; }
.jsr .circles li + li { margin-left: 44px; position: relative; }
.jsr .circles li + li::before { content: ""; position: absolute; left: -44px; top: 50%; width: 44px; border-top: 2px dotted var(--jsr-blue); opacity: .7; }
.jsr .ridge { display: block; width: 100%; height: 64px; margin-top: 40px; }

/* ---------- 본문 섹션 ---------- */
.jsr .jsec { padding: 56px 0 0; }
.jsr .jsec:last-of-type { padding-bottom: 8px; }
.jsr .jlabel { display: inline-block; background: var(--jsr-red); color: #fff; font-size: 22px; font-weight: 700; padding: 8px 22px; line-height: 1.3; }
.jsr .bul { margin-top: 22px; }
.jsr .bul li { position: relative; padding-left: 16px; font-size: 17px; line-height: 1.7; }
.jsr .bul li + li { margin-top: 6px; }
.jsr .bul li::before { content: ""; position: absolute; left: 3px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--jsr-ink); }
.jsr .jnote { margin-top: 16px; font-size: 14px; color: var(--jsr-sub); line-height: 1.7; }
.jsr .jnote li { position: relative; padding-left: 10px; }
.jsr .jnote li::before { content: "·"; position: absolute; left: 0; }
.jsr .jnote.red { margin-top: 20px; color: var(--jsr-red); font-size: 15px; }

/* 표 → 모바일 카드 */
.jsr .tbl { width: 100%; margin-top: 22px; border-collapse: collapse; border-top: 2px solid var(--jsr-ink); border-bottom: 2px solid var(--jsr-ink); font-size: 16px; }
.jsr .tbl th { padding: 14px 8px; border-bottom: 1px solid var(--jsr-ink); font-weight: 500; }
.jsr .tbl td { padding: 22px 12px; text-align: center; }
.jsr .tbl td + td, .jsr .tbl th + th { border-left: 1px solid var(--jsr-ink); }

/* 신청 요약 */
.jsr .jinfo { margin-top: 22px; }
.jsr .jinfo li { display: flex; font-size: 17px; line-height: 1.7; }
.jsr .jinfo li + li { margin-top: 6px; }
.jsr .jinfo b { flex: none; width: 88px; font-weight: 700; }

/* 일정 스텝 */
.jsr .steps { display: flex; justify-content: space-between; margin-top: 28px; }
.jsr .steps li { flex: 1; text-align: center; position: relative; }
.jsr .steps li + li::before { content: ">"; position: absolute; left: -6px; top: 36px; font-size: 14px; color: #555; }
.jsr .steps .c { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; line-height: 1.35; color: #111; background: #e6e6e6; }
.jsr .steps li:nth-child(2) .c { background: #c4c4c4; }
.jsr .steps li:nth-child(3) .c { background: #8a8a8a; color: #fff; }
.jsr .steps li:nth-child(4) .c { background: #444; color: #fff; }
.jsr .steps .d { margin-top: 12px; font-size: 14px; line-height: 1.5; }

/* 선발 기준 */
.jsr .crit h3 { margin-top: 30px; font-size: 18px; font-weight: 700; }
.jsr .crit h3:first-of-type { margin-top: 24px; }
.jsr .crit .bul { margin-top: 10px; }
.jsr .jmap { margin-top: 18px; border: 1px solid var(--jsr-line); }
.jsr .jmap { height: 300px; background: var(--jsr-bg); }
.jsr .jmap-lbl { position: relative; background: #000; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; padding: 8px 12px; border-radius: 4px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.jsr .jmap-lbl::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #000; }
.jsr .addr { margin-top: 10px; font-size: 14px; color: var(--jsr-sub); }
.jsr .maplinks { display: flex; gap: 8px; margin-top: 12px; }
.jsr .maplinks a { flex: 1; text-align: center; padding: 10px 0; border: 1px solid #bbb; color: var(--jsr-ink); text-decoration: none; font-size: 14px; font-weight: 600; }

/* 혜택 (검정) */
.jsr .benefit { max-width: 1200px; margin: 56px auto 0; background: #000; color: #fff; padding: 40px 0 44px; }
.jsr .benefit .bul li::before { background: #fff; }
.jsr .benefit .bul li { font-size: 17px; }
.jsr .benefit .sub { display: block; color: #bbb; font-size: 15px; }

.jsr .inquiry { text-align: center; padding: 40px 20px 48px; font-size: 18px; font-weight: 700; }

/* ---------- CTA ---------- */
/* 하단 바(sticky) 아래 여백: 페이지 끝에서 푸터와 간격을 둠. 바가 화면에 붙어 있는 동안은 영향 없음 */
.jsr::after { content: ""; display: block; height: 72px; }
.jsr .cta-bar { position: sticky; bottom: 0; z-index: 900; background: rgba(255,255,255,.96); border-top: 1px solid var(--jsr-line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.jsr .cta-bar .in { max-width: var(--jw); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.jsr .cta-bar .term { flex: none; font-size: 13px; color: var(--jsr-sub); line-height: 1.35; }
.jsr .cta-bar .term b { display: block; color: var(--jsr-ink); font-size: 14px; }
.jsr .jbtn { display: block; flex: 1; text-align: center; background: #000; color: #fff; border: 0; padding: 15px 10px; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; border-radius: 0; }
.jsr .jbtn.off { background: #bbb; pointer-events: none; }
.jsr .jbtn.ghost { background: #fff; color: var(--jsr-ink); border: 1px solid #999; }

/* ---------- 지원서 폼 ---------- */
.jsr.is-form { background: var(--jsr-bg); padding-bottom: 0; }
.jsr .jtop { background: #fff; border-bottom: 1px solid var(--jsr-line); padding: 28px 0 22px; }
.jsr .jtop small { font-size: 14px; color: var(--jsr-sub); }
.jsr .jtop h2 { font-size: 26px; font-weight: 800; margin-top: 4px; }
.jsr .jtop .chips { display: flex; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 14px; }
.jsr .jchip { color: var(--jsr-ink); }
.jsr .jchip + .jchip::before { content: "|"; margin: 0 10px; color: #ccc; }
.jsr .jchip.red { color: var(--jsr-red); font-weight: 600; }
.jsr .jcard { background: #fff; border: 1px solid var(--jsr-line); margin-top: 16px; padding: 24px 20px; }
.jsr .jcard > h3 { font-size: 19px; font-weight: 800; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--jsr-ink); display: flex; justify-content: space-between; align-items: baseline; }
.jsr .jcard > h3 small { font-size: 13px; font-weight: 500; color: var(--jsr-sub); }
.jsr .jgrid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.jsr .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jsr .g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.jsr .fld label.l, .jsr .fld .l { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.jsr .req::after { content: " *"; color: var(--jsr-red); }
.jsr input[type=text], .jsr input[type=tel], .jsr input[type=date], .jsr select, .jsr textarea {
	width: 100%; font: inherit; font-size: 16px; /* 16px 미만이면 iOS 가 확대함 */ color: var(--jsr-ink);
	background: #fff; border: 1px solid #c8c8c8; border-radius: 0; padding: 12px 12px; min-height: 48px; appearance: none; -webkit-appearance: none;
}
.jsr select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.jsr textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.jsr input:focus, .jsr select:focus, .jsr textarea:focus { outline: 2px solid var(--jsr-ink); outline-offset: -1px; }
.jsr input[readonly] { background: var(--jsr-bg); }
.jsr .hint { margin-top: 6px; font-size: 13px; color: var(--jsr-sub); line-height: 1.5; }
.jsr .cnt { text-align: right; font-size: 12px; color: var(--jsr-sub); margin-top: 4px; }
.jsr .err { display: none; margin-top: 6px; font-size: 13px; color: var(--jsr-err); font-weight: 600; }
.jsr .fld.bad .err { display: block; }
.jsr .fld.bad input, .jsr .fld.bad select, .jsr .fld.bad textarea { border-color: var(--jsr-err); }
.jsr .seg { display: flex; }
.jsr .seg label { flex: 1; }
.jsr .seg input { position: absolute; opacity: 0; pointer-events: none; }
.jsr .seg span { display: block; text-align: center; border: 1px solid #c8c8c8; padding: 12px 0; min-height: 48px; font-size: 16px; cursor: pointer; background: #fff; }
.jsr .seg label + label span { border-left: 0; }
.jsr .seg input:checked + span { background: #000; color: #fff; border-color: #000; }
.jsr .seg input:focus-visible + span { outline: 2px solid var(--jsr-blue); outline-offset: 2px; }
.jsr .addr-row { display: flex; gap: 8px; }
.jsr .addr-row input { flex: 1; min-width: 0; }
.jsr .addr-row .jbtn { flex: none; width: 112px; padding: 0; font-size: 15px; }
.jsr .pc-box { display: none; margin-top: 10px; border: 1px solid #999; height: 420px; position: relative; }
.jsr .pc-box.on { display: block; }
.jsr .pc-box .x { position: absolute; right: 6px; top: 6px; z-index: 2; background: #000; color: #fff; border: 0; width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.jsr .law { margin-top: 8px; font-size: 13px; color: var(--jsr-sub); background: var(--jsr-bg); padding: 10px 12px; line-height: 1.5; }

/* 사진 */
.jsr .drop { display: block; border: 2px dashed #bbb; text-align: center; padding: 28px 12px; cursor: pointer; background: #fcfcfc; }
.jsr .drop b { display: block; font-size: 16px; }
.jsr .drop span { font-size: 13px; color: var(--jsr-sub); }
.jsr .drop input { display: none; }
.jsr .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.jsr .pic { border: 1px solid var(--jsr-line); background: #fff; position: relative; }
.jsr .pic img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f1f1f1; } /* 세로로 긴 사진도 잘리지 않게 전체를 보여줌 */
.jsr .pic input { border: 0; border-top: 1px solid var(--jsr-line); min-height: 44px; font-size: 15px; }
.jsr .pic .rm { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.jsr .pic.bad input { outline: 2px solid var(--jsr-err); outline-offset: -2px; }

/* 동의 */
.jsr .agree-all { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; padding-bottom: 14px; border-bottom: 1px solid var(--jsr-line); cursor: pointer; }
.jsr .agree-it { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.55; padding: 12px 0 0; cursor: pointer; }
.jsr .agree-all input, .jsr .agree-it input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #000; }
.jsr .fld.agree.bad .err { display: block; }

/* 하단 저장 바 */
.jsr .save-bar { position: sticky; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid var(--jsr-line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.jsr .save-bar .in { max-width: var(--jw); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.jsr .save-bar .st { flex: none; font-size: 13px; color: var(--jsr-sub); line-height: 1.35; }
.jsr .save-bar .st b { display: block; font-size: 14px; color: var(--jsr-ink); }
.jsr .jtoast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); background: #000; color: #fff; padding: 12px 20px; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 1000; max-width: calc(100% - 40px); }
.jsr .jtoast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 모바일 ---------- */
@media (max-width: 767px) {
	.jsr .intro { padding-top: 44px; }
	.jsr .intro .en { font-size: 30px; }
	.jsr .intro p { font-size: 15px; padding: 0 4px; }
	.jsr .intro p br { display: none; }
	.jsr .circles li { width: 88px; height: 88px; font-size: 15px; }
	.jsr .circles li + li { margin-left: 26px; }
	.jsr .circles li + li::before { left: -26px; width: 26px; }
	.jsr .jlabel { font-size: 19px; padding: 7px 18px; }
	.jsr .jsec { padding-top: 44px; }
	.jsr .bul li, .jsr .jinfo li { font-size: 16px; }
	.jsr .jinfo b { width: 76px; }
	/* 표 → 카드 */
	.jsr .tbl, .jsr .tbl tbody, .jsr .tbl tr, .jsr .tbl td { display: block; width: 100%; }
	.jsr .tbl thead { display: none; }
	.jsr .tbl { border: 0; }
	.jsr .tbl tr { border: 1px solid var(--jsr-ink); padding: 6px 0; }
	.jsr .tbl td { text-align: left; padding: 10px 16px; border: 0 !important; font-size: 15px; }
	.jsr .tbl td::before { content: attr(data-th); display: block; font-size: 12px; color: var(--jsr-sub); margin-bottom: 2px; }
	/* 일정 세로 */
	.jsr .steps { display: block; margin-top: 22px; }
	.jsr .steps li { display: flex; align-items: center; text-align: left; padding: 0 0 18px; }
	.jsr .steps li + li::before { content: ""; left: 31px; top: -18px; width: 0; height: 18px; border-left: 2px dotted #aaa; font-size: 0; }
	.jsr .steps .c { margin: 0; flex: none; width: 64px; height: 64px; font-size: 13px; }
	.jsr .steps .d { margin: 0 0 0 16px; font-size: 16px; font-weight: 600; }
	.jsr .jmap { height: 240px; }
	.jsr .cta-bar .term { display: none; }
	.jsr .jgrid.two { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
	.jsr .jgrid.two { grid-template-columns: 1fr 1fr; }
	.jsr .jgrid .full { grid-column: 1 / -1; }
	.jsr .jcard { padding: 32px 32px; }
	.jsr .pics { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 공통 보조 ---------- */
.jsr [hidden] { display: none !important; }
.jsr .jnotice { margin-top: 16px; padding: 14px 16px; background: #fff8e1; border: 1px solid #f1d98a; font-size: 15px; line-height: 1.6; }

/* ---------- 조회 전용(신청 기간 종료 후): 입력 잠금, 저장·업로드·동의 숨김 ---------- */
.jsr[data-mode="view"] .jwrap { padding-bottom: 40px; }
.jsr[data-mode="view"] .save-bar,
.jsr[data-mode="view"] #agreeCard,
.jsr[data-mode="view"] #editHint,
.jsr[data-mode="view"] .drop,
.jsr[data-mode="view"] .pic .rm,
.jsr[data-mode="view"] #photoCard .hint,
.jsr[data-mode="view"] #btnPost { display: none; }
.jsr[data-mode="view"] input:not([type=radio]):not([type=checkbox]),
.jsr[data-mode="view"] select,
.jsr[data-mode="view"] textarea { background: var(--jsr-bg); border-color: var(--jsr-line); color: var(--jsr-ink); -webkit-text-fill-color: var(--jsr-ink); opacity: 1; }
.jsr[data-mode="view"] select { background-image: none; padding-right: 12px; }
.jsr[data-mode="view"] .cnt { display: none; }
.jsr[data-mode="view"] .seg input:not(:checked) + span { color: #aaa; background: var(--jsr-bg); }

/* ---------- BAC 부트스트랩 브레이크포인트 (sm 576 / md 768 / lg 992 / xl 1200) — 컨테이너 폭과 동일 단계 ---------- */
@media (min-width: 576px)  { .jsr { --jw: 540px; } }
@media (min-width: 768px)  { .jsr { --jw: 720px; } .jsr .jwrap { padding: 0 24px; } }
@media (min-width: 992px)  {
	.jsr { --jw: 960px; }
	.jsr .intro p { font-size: 17px; }
	.jsr .jlabel { font-size: 24px; }
	.jsr .bul li, .jsr .jinfo li { font-size: 18px; }
	.jsr .steps .c { width: 112px; height: 112px; font-size: 16px; }
	.jsr .jmap { height: 340px; }
	.jsr .pics { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
	.jsr { --jw: 1140px; }
	/* 넓은 PC: 기본정보 입력 항목을 3열로 */
	.jsr .jgrid.two { grid-template-columns: repeat(3, 1fr); }
	.jsr .jgrid.two .full { grid-column: 1 / -1; }
	.jsr .pics { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- 안내 페이지 하단 신청 버튼(본문 흐름 안에 표기) ---------- */
.jsr .jcta { max-width: 480px; margin: 0 auto; padding: 8px 20px 72px; text-align: center; }
.jsr .jcta .term { margin: 0 0 12px; font-size: 14px; color: var(--jsr-sub); }
.jsr .jcta .jbtn { display: block; width: 100%; }

/* 지원서 하단 안내 문구: 가운데 정렬, 위아래 여백 */
.jsr .edit-hint { margin: 32px 0 40px; text-align: center; font-size: 14px; color: var(--jsr-sub); }

/* 활동 사진: 업로드 대기/진행/실패 표시 */
.jsr .pic.pend img { opacity: .75; }
.jsr .pic.pend::after { content: "저장 시 업로드"; position: absolute; left: 6px; top: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.65); padding: 2px 6px; }
.jsr .pic.bad { outline: 2px solid var(--jsr-err); outline-offset: -2px; }
