/* 2026-11-11 기기 규격 보정: 아이폰 15~18 Pro Max · 아이폰 듀오(접음/펼침) · 아이패드 11/13 · 갤럭시 S20~S26 · 폴드8/폴드8 Ultra(접음/펼침) */

/* ---------- 1) 하단 신청 바: 히어로를 지난 뒤 표시 (JS 없으면 기존처럼 항상 표시) ---------- */
html.js-buybar body:not(.buybar-on) .buybar{transition:none;transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}
html.js-buybar body:not(.buybar-on) .buybar__panel{pointer-events:none}
html.js-buybar body:not(.buybar-on) .chat{bottom:max(20px,calc(env(safe-area-inset-bottom) + 16px))}
.chat{transition:bottom .2s ease}
@media(prefers-reduced-motion:reduce){.buybar,.chat{transition:none}}

/* ---------- 3) 휴대폰·접은 폴더블 가로(높이 500px 이하): 고정 영역 최소화 ---------- */
@media(orientation:landscape) and (max-height:500px){
 .gnb,.tabs{position:relative;top:auto}
 .buybar{height:auto;transform:none;padding:0 max(12px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .buybar__panel{height:56px;min-height:0;display:flex;grid-template-areas:none;padding:6px 8px 6px 18px;border-radius:18px;gap:14px}
 .buybar__txt span,.buybar__countdown-label{display:none}
 .buybar__txt,.buybar__txt b{font-size:13px;line-height:1.3}
 .buybar__clock b{font-size:18px;min-width:28px;padding:2px 3px}
 .buybar__clock i{font-size:14px}
 .buybar__btn{height:44px;line-height:44px;padding:0 16px;font-size:13px}
 .chat{bottom:calc(72px + env(safe-area-inset-bottom));width:44px;height:44px}
}

/* ---------- 4) 태블릿·펼친 폴더블(560~1023px): 상단 메뉴 줄 숨김(섹션 탭이 대신) ---------- */
@media(min-width:560px) and (max-width:1023px){
 :root{--ref-header-h:60px}
 .gnb{min-height:0!important}
 .gnb__nav{display:none}
 .tabs{height:56px;min-height:0!important}
 .tabs a{padding-top:0!important;padding-bottom:0!important;display:flex;align-items:center;justify-content:center;gap:4px}
 .tabs a b{display:inline}
}

/* ---------- 5) 601~900px: 3장 카드에서 세 번째가 홀로 남지 않게 ---------- */
@media(min-width:601px) and (max-width:900px){
 .cc .academy-proof-case>.student-story:nth-child(3){grid-column:1/-1}
}

/* ---------- 6) 최소 글자 11px ---------- */
.income-proof-card__top,.income-proof-card__top span{font-size:11px!important}
.document-tag,.kit-card__meta span,.course-visual span{font-size:11px!important}
.buybar__countdown-label,.buybar__countdown-label>span{font-size:11px!important}

/* ---------- 7) 터치 영역: 링크 높이 44px 확보(레이아웃은 그대로) ---------- */
.student-story footer a,.income-proof-card>a,.proof-ledger__total a,.pcard__call a{display:inline-block;padding-top:10px;padding-bottom:10px;margin-top:-4px;margin-bottom:-6px}
.after-note a,#notice a,footer nav a,.footer a[href^="tel"]{display:inline-block;padding:15px 4px;margin:-15px -4px}
.widget__btn{min-width:44px;min-height:44px}
.gnb__cta{min-height:44px;display:inline-flex;align-items:center}
@media(min-width:1024px){.gnb__nav a{display:inline-flex;align-items:center;min-height:44px}}
/* 3차 보정 */
.acc__body a{display:inline-block;padding:14px 2px;margin:-14px -2px}
.carousel__btn--prev{margin-left:2px}.carousel__btn--next{margin-right:2px}
/* 560~899px: 대표 이름표가 화면 왼쪽 밖으로 나가지 않게 */
