/* 청소년수련활동 일정표 (261116 검수8) — program/youth.php 만 불러옴($PAGE_CSS = 'program')
   참고: 일차 머리(빨강 알약 + 시간 범위, 261118 탭 → 모든 일차 나란히) + 시간 · 구분 · 내용 · 장소 표(어두운 머리줄, 구분 칸 색, 식사 줄은 구분 · 내용을 합쳐 노랑) */
.yp { --yp-h: var(--dark, #252726); --yp-red: var(--c1, #da1414); --yp-prog: #fbe1de; --yp-life: #efefec; --yp-edu: #fde6cf; --yp-meal: #fff5d9; --yp-line: #d9dbd6; }   /* 261116 사용자: 초록 → 사이트 빨강 계열 (머리줄 진한 회색 + 빨강 윗선, 고른 일차 빨강) */
.yp .inner { max-width: calc(1440px + var(--pad) * 2); }

.yp-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.yp-hd__t { margin: 0; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.yp-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.yp-pick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--yp-line); border-radius: 8px; background: #fff; color: var(--ink2); font-size: 16px; font-weight: 600; transition: border-color .25s, color .25s; }
.yp-pick a:hover { border-color: var(--yp-red); color: var(--yp-red); }
.yp-pick a.is-on { border-color: var(--yp-red); color: var(--yp-red); box-shadow: inset 0 0 0 1px var(--yp-red); }
.yp-intro { margin: 14px 0 0; color: var(--ink2); font-size: 17px; line-height: 1.7; }

/* 일차 줄 (261118 수정C — 고객 1차 시안 17번: 일차 탭 없이 전부) — 넓으면 일차 표가 나란히, 모자라면 이 영역만 옆으로 끌어서(드래그 · 스와이프 · ←→ 키)
   일차 칸 최소 폭 --yp-colw(PC 540 — 1280 창에서 2일이 딱 맞음 · 태블릿 440 · 휴대폰 = 화면 - 다음 칸 살짝). 넘칠 때만 JS 가 .is-over(위 안내 · ‹ › 버튼) · .is-more(오른쪽 흐림) */
.yp-sch { --yp-colw: 540px; --yp-gap: 24px; margin: 40px 0 0; }
.yp-sch__bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.yp-sch.is-over .yp-sch__bar { display: flex; }
.yp-sch__hint { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.5; }
.yp-sch__ic { display: inline-block; margin-right: 4px; color: var(--yp-red); font-weight: 700; }
.yp-sch__nav { display: flex; gap: 8px; flex: none; }
.yp-sch__nav button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0 0 3px; border: 1px solid var(--yp-line); border-radius: 50%; background: #fff; color: var(--ink); font: 400 26px/1 inherit; cursor: pointer; transition: border-color .25s, color .25s, opacity .25s; }
.yp-sch__nav button:hover:not(:disabled) { border-color: var(--yp-red); color: var(--yp-red); }
.yp-sch__nav button:disabled { opacity: .35; cursor: default; }
.yp-sch__nav button:focus-visible, .yp-rail:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.yp-rail { display: flex; gap: var(--yp-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #c4c6c1 transparent; padding-bottom: 14px; }
.yp-sch.is-over .yp-rail { cursor: grab; }
.yp-rail.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.yp-sch.is-more .yp-rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), rgba(0, 0, 0, .25)); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), rgba(0, 0, 0, .25)); }
.yp-col { flex: 1 0 var(--yp-colw); min-width: 0; scroll-snap-align: start; }
.yp-sch[data-days="1"] .yp-col { flex-basis: 100%; }
.yp-col__hd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink2); }
.yp-col__hd b { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; background: linear-gradient(180deg, #ea2b2b, var(--c1-d, #b40f0f)); color: #fff; font-size: 18px; font-weight: 700; }
.yp-col__hd span { font-variant-numeric: tabular-nums; font-weight: 600; }
.yp-col__hd em { margin-left: auto; color: var(--mute); font-size: 16px; font-style: normal; font-variant-numeric: tabular-nums; }

/* 일정표 */
.yp-tb { border: 1px solid var(--yp-line); border-top: 3px solid var(--yp-red); }
.yp-tr { display: grid; grid-template-columns: 150px 1fr; }
.yp-tb.has-type .yp-tr { grid-template-columns: 150px 104px 1fr; }
.yp-tb.has-place .yp-tr { grid-template-columns: 150px 1fr 120px; }
.yp-tb.has-type.has-place .yp-tr { grid-template-columns: 150px 104px 1fr 120px; }
.yp-sch[data-days="1"] .yp-tr { grid-template-columns: 200px 1fr; }   /* 하루짜리는 예전처럼 넓게 */
.yp-sch[data-days="1"] .yp-tb.has-type .yp-tr { grid-template-columns: 200px 200px 1fr; }
.yp-sch[data-days="1"] .yp-tb.has-place .yp-tr { grid-template-columns: 200px 1fr 240px; }
.yp-sch[data-days="1"] .yp-tb.has-type.has-place .yp-tr { grid-template-columns: 200px 200px 1fr 240px; }
.yp-tr > span { display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 16px 20px; border-top: 1px solid var(--yp-line); border-left: 1px solid var(--yp-line); color: var(--ink); font-size: 17px; line-height: 1.5; text-align: center; word-break: keep-all; }
.yp-tr > span:first-child { border-left: 0; }
.yp-tr--h > span { min-height: 68px; border-color: rgba(255, 255, 255, .18); background: var(--yp-h); color: #fff; font-weight: 700; letter-spacing: .08em; }
.yp-time { background: #f7f7f5; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.yp-time { gap: 6px; }
.yp-time b { font-weight: inherit; }
.yp-time i { font-style: normal; color: var(--mute); }
.yp-type { font-weight: 700; }
.yp-act { justify-content: flex-start !important; text-align: left !important; padding-left: 28px !important; font-weight: 500; }
.yp-act--wide { grid-column: span 2; justify-content: center !important; text-align: center !important; padding-left: 20px !important; }
.yp-place { color: var(--ink2) !important; }
.is-prog .yp-type { background: var(--yp-prog); }
.is-life .yp-type { background: var(--yp-life); }
.is-edu .yp-type { background: var(--yp-edu); }
.is-meal .yp-act, .is-meal .yp-type { background: var(--yp-meal); }
.yp-note { margin: 14px 0 0; color: var(--mute); font-size: 16px; text-align: right; }
.yp-files { margin-top: 32px; }
.yp-edt { margin-top: 24px; }

@media (min-width: 769px) {
  .yp-sch:not([data-days="1"]) .yp-tr > span { padding-left: 12px; padding-right: 12px; }
  .yp-sch:not([data-days="1"]) .yp-act { padding-left: 20px !important; }
}

@media (max-width: 1024px) {
  .yp-sch { --yp-colw: 440px; --yp-gap: 16px; }
  .yp-tr, .yp-tb.has-type .yp-tr, .yp-sch[data-days="1"] .yp-tr, .yp-sch[data-days="1"] .yp-tb.has-type .yp-tr { grid-template-columns: 96px 84px 1fr; }
  .yp-tb:not(.has-type) .yp-tr, .yp-sch[data-days="1"] .yp-tb:not(.has-type) .yp-tr { grid-template-columns: 96px 1fr; }
  .yp-tb.has-place .yp-tr, .yp-sch[data-days="1"] .yp-tb.has-place .yp-tr { grid-template-columns: 96px 1fr 96px; }
  .yp-tb.has-type.has-place .yp-tr, .yp-sch[data-days="1"] .yp-tb.has-type.has-place .yp-tr { grid-template-columns: 96px 84px 1fr 96px; }
  .yp-tr > span { font-size: 16px; }
  .yp-time { flex-direction: column; gap: 0 !important; line-height: 1.3; }
  .yp-time i { line-height: 1; }
}
@media (max-width: 768px) {
  .yp-hd__t { font-size: 20px; }
  .yp-pick a { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .yp-intro { font-size: 15px; }
  .yp-sch { --yp-colw: calc(100% - 40px); --yp-gap: 12px; margin-top: 24px; }
  .yp-sch__bar { margin-bottom: 12px; }
  .yp-sch__hint { font-size: 14px; }
  .yp-sch__all { display: none; }
  .yp-col { flex: 0 0 var(--yp-colw); }
  .yp-sch[data-days="1"] .yp-col { flex-basis: 100%; }
  .yp-col__hd { gap: 4px 10px; margin-bottom: 10px; font-size: 15px; }
  .yp-col__hd b { min-height: 34px; padding: 0 14px; font-size: 16px; }
  .yp-col__hd em { font-size: 14px; }
  .yp-tr, .yp-tb:not(.has-type) .yp-tr, .yp-sch[data-days="1"] .yp-tr, .yp-sch[data-days="1"] .yp-tb:not(.has-type) .yp-tr { grid-template-columns: 58px 1fr; }
  .yp-tb.has-type .yp-tr, .yp-sch[data-days="1"] .yp-tb.has-type .yp-tr { grid-template-columns: 58px 64px 1fr; }
  .yp-tb.has-place:not(.has-type) .yp-tr, .yp-sch[data-days="1"] .yp-tb.has-place:not(.has-type) .yp-tr { grid-template-columns: 58px 1fr 80px; }
  .yp-tb.has-type.has-place .yp-tr, .yp-sch[data-days="1"] .yp-tb.has-type.has-place .yp-tr { grid-template-columns: 58px 64px 1fr 80px; }
  .yp-tr > span { min-height: 56px; padding: 10px 6px; font-size: 14px; }
  .yp-tr--h > span { min-height: 48px; letter-spacing: 0; }
  .yp-time { flex-direction: column; gap: 0; line-height: 1.3; }
  .yp-time i { line-height: 1; }
  .yp-place { padding-left: 4px !important; padding-right: 4px !important; }
  .yp-act { padding-left: 10px !important; }
  .yp-act--wide { padding-left: 6px !important; }
  .yp-note { font-size: 14px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .yp-rail { scroll-behavior: auto; } .yp-sch__nav button { transition: none; } }

/* 시설 대관 안내 (261117) — 기업체/단체연수 «단체 이용 · 시설 대관 안내» 탭. common/include/rent_block.php · 데이터 app/rent.php
   사진 카드 2열(휴대폰 1열, 사진 왼쪽 + 글 오른쪽 — 원본 사진이 작아 가로형) + 규모표(일정표 표와 같은 머리줄 · 빨강 윗선) + 대관 문의 */
.rn { --yp-h: var(--dark, #252726); --yp-red: var(--c1, #da1414); --yp-line: #d9dbd6; }
.rn__d { margin: 14px 0 0; color: var(--ink2); font-size: 17px; line-height: 1.7; }
.rn-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 36px 0 48px; padding: 0; list-style: none; }
.rn-card { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 0; overflow: hidden; border: 1px solid var(--yp-line); border-radius: 12px; background: #fff; }
.rn-card__ph { display: block; aspect-ratio: 7 / 5; background: #f0f0ee; }
.rn-card__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rn-card__tx { padding: 20px 28px; min-width: 0; }
.rn-card h3 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; word-break: keep-all; }
.rn-card h3 span { color: var(--yp-red); }
.rn-card h3 span::before { content: " / "; color: var(--mute); font-weight: 500; }
.rn-card p { margin: 10px 0 0; color: var(--ink2); font-size: 16px; line-height: 1.6; word-break: keep-all; }

.rn-tb { border: 1px solid var(--yp-line); border-top: 3px solid var(--yp-red); }
.rn-tr { display: grid; grid-template-columns: 220px 180px 1fr 240px; }
.rn-tr > span { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 14px 20px; border-top: 1px solid var(--yp-line); border-left: 1px solid var(--yp-line); color: var(--ink); font-size: 17px; line-height: 1.5; text-align: center; word-break: keep-all; }
.rn-tr > span:first-child { border-left: 0; }
.rn-tr--h > span { min-height: 64px; border-color: rgba(255, 255, 255, .18); background: var(--yp-h); color: #fff; font-weight: 700; letter-spacing: .08em; }
.rn-name { background: #f7f7f5; font-weight: 700; }
.rn-size { font-weight: 600; font-variant-numeric: tabular-nums; }
.rn-size i { font-style: normal; color: var(--mute); }
.rn-use { justify-content: flex-start !important; text-align: left !important; padding-left: 28px !important; color: var(--ink2) !important; }
.rn-tr--h .rn-use, .rn-tr--h > span:nth-child(3) { justify-content: center !important; }
.rn-price { color: var(--yp-red) !important; font-weight: 600; }
.rn-tr--h > span { color: #fff !important; }

.rn-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 36px; }
.rn-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rn-tel .ic { width: 22px; height: 22px; color: var(--yp-red); }

@media (max-width: 1280px) {
  .rn-card { grid-template-columns: 220px 1fr; }
  .rn-card__tx { padding: 16px 20px; }
}
@media (max-width: 1024px) {
  .rn-cards { grid-template-columns: minmax(0, 1fr); }
  .rn-tr { grid-template-columns: 140px 120px 1fr 160px; }
}
@media (max-width: 768px) {
  .rn__d { font-size: 15px; }
  .rn-cards { gap: 12px; margin: 24px 0 32px; }
  .rn-card { grid-template-columns: 120px 1fr; border-radius: 10px; }
  .rn-card__ph { aspect-ratio: auto; height: 100%; min-height: 96px; }
  .rn-card__tx { padding: 12px 14px; }
  .rn-card h3 { font-size: 17px; }
  .rn-card p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  /* 표 → 줄마다 카드형: 위 «구분 · 규모», 아래 «용도 · 설비», 금액 */
  .rn-tr--h { display: none; }
  .rn-tr { grid-template-columns: 1fr auto; border-top: 1px solid var(--yp-line); }
  .rn-tb .rn-tr:nth-child(2) { border-top: 0; }
  .rn-tr > span { min-height: 0; padding: 4px 14px; border: 0; font-size: 14px; }
  .rn-name { justify-content: flex-start !important; padding-top: 12px !important; background: none; font-size: 16px !important; }
  .rn-size { justify-content: flex-end !important; padding-top: 12px !important; color: var(--yp-red); }
  .rn-use { grid-column: 1 / -1; padding-left: 14px !important; }
  .rn-price { grid-column: 1 / -1; justify-content: flex-start !important; padding-bottom: 12px !important; }
  .rn-price::before { content: "금액 · "; color: var(--mute); font-weight: 500; }
  .rn-tel { font-size: 18px; }
}

/* 시설 대관 카드 사진 픽셀 등장 (261117) — 메인 현장 사진 띠와 같은 vendor.js PixelReveal(common/js/pg_program.js). .rn-px 는 JS 가 붙임(JS 꺼지면 사진 그대로) */
.rn-card__ph { position: relative; overflow: hidden; background: #eef0ec; }
.rn-px .rn-card__ph:not(.is-in) img { visibility: hidden; }
