/* 공개 페이지 공통 셸 (2026-10-22 원장 · 정본 docs/superpowers/specs/2026-10-22-public-site-paths-design.md §4·§7)
   위 고정 띠(폰 = 로고 줄 56은 스크롤하면 올라가고 메뉴 칩 2줄 97px만 위에 붙음) · ≡ 메뉴 시트 · 본문 끝 「다음 칸」(§4.5) · 바닥(학원 정보·링크) · 하단 고정 「입학 상담 안내·신청」(폰만).
   마크업 원천 = js/publicNav.js · 페이지에 넣는 일 = scripts/seo/site_shell.js.
   모든 규칙은 .ps- 접두 — 페이지마다 다른 CSS(public-evidence.css·event.css·기출 경향 틀)의 header·footer·.nav·.brand 규칙과 섞이지 않게
   클래스 선택자로 덮는다(태그 선택자보다 강함). 색 = design2117 토큰(베이지 #d6cdc3 · 크림 #fffdfa · 네이비 #18233f · 골드 #f0c14b/#d99e1f).
   글자 대비 4.5:1 이상(§7) — 보조 글자는 크림 위 #6a5f4d, 베이지 위 #4a4234(옛 --muted #9a8f7d 는 3.3:1 이라 쓰지 않는다). 누르는 것 44px 이상. */
:root{--ps-h:56px;--ps-font:'Pretendard Variable',Pretendard,-apple-system,'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif}
html:has(.ps-top){scroll-padding-top:calc(var(--ps-h) + 8px)}
html.ps-lock{overflow:hidden}
.ps-top,.ps-sheet,.ps-foot,.ps-fix,.ps-menu{font-family:var(--ps-font);color:#18233f;line-height:1.5;word-break:keep-all;letter-spacing:normal;text-align:left}
.ps-top *,.ps-sheet *,.ps-foot *,.ps-fix *{box-sizing:border-box}
.ps-top a:focus-visible,.ps-sheet a:focus-visible,.ps-sheet button:focus-visible,.ps-foot a:focus-visible,.ps-fix a:focus-visible,.ps-menu:focus-visible{outline:3px solid #18233f;outline-offset:2px}
.ps-skip{position:absolute;left:-9999px}.ps-skip:focus{left:12px;top:12px;z-index:60;background:#fff;padding:12px}
.ps-in{max-width:680px;margin:0 auto;padding:0 16px}
.ps-nw{white-space:nowrap}

/* ── 머리(위 고정 띠) — [로고·학원명] …… [≡] [상담 신청] ── */
.ps-top{position:sticky;top:0;z-index:50;display:block;margin:0;padding:0;background:rgba(214,205,195,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:0;box-shadow:0 1px 0 rgba(24,35,63,.1)}
.ps-top .ps-in{display:flex;align-items:center;gap:8px;height:56px;max-width:1240px}
.ps-brand{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:44px;color:#18233f;text-decoration:none;font-size:17px;font-weight:800;line-height:1.3}
.ps-brand:hover{color:#18233f}
.ps-brand img{flex:none;width:34px;height:34px;padding:3px;border-radius:9px;background:#fff;object-fit:contain}
.ps-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-links{display:none}
.ps-menu{flex:none;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:44px;height:44px;margin:0;padding:0;border:1px solid rgba(24,35,63,.16);border-radius:12px;background:#fffdfa;cursor:pointer}
.ps-menu i{display:block;width:18px;height:2px;border-radius:2px;background:#18233f}
.ps-pill{flex:none;display:flex;align-items:center;height:44px;padding:0 15px;border-radius:999px;background:linear-gradient(180deg,#f0c14b,#d99e1f);color:#241a04;font-size:16px;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 4px 12px rgba(90,74,48,.14)}
.ps-pill:hover,a.ps-cta:hover,.ps-fix a:hover{color:#241a04}

/* ── 메뉴 시트 ── */
.ps-sheet{position:fixed;inset:0;z-index:1000;background:rgba(24,35,63,.45)}
.ps-sheet[hidden]{display:none}
.ps-box{position:absolute;left:0;right:0;top:0;max-height:92vh;overflow:auto;overscroll-behavior:contain;padding:0 16px 14px;border-radius:0 0 22px 22px;background:#fffdfa;box-shadow:0 14px 34px rgba(24,35,63,.22)}
.ps-bar{display:flex;align-items:center;justify-content:space-between;height:56px}
.ps-bar b{font-size:17px;font-weight:800}
.ps-x{width:44px;height:44px;margin:0;padding:0;border:0;border-radius:12px;background:#f3eee4;color:#18233f;font:400 22px/1 var(--ps-font);cursor:pointer}
.ps-grp{margin-top:6px}
.ps-grp+.ps-grp{margin-top:14px}
.ps-gt{margin:4px 0 4px;font-size:13px;font-weight:800;letter-spacing:.06em;color:#6a5f4d}
/* 항목 = [이름 … 지금 보는 페이지] 윗줄 + 한 줄 설명(.ps-d) 아랫줄 전체 폭 — 「지금 보는 페이지」는 이름 줄에만 있어 설명과 겹치지 않는다 */
.ps-grp a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:2px;min-height:48px;padding:10px 2px;border-top:1px solid #e6dfd1;color:#18233f;text-decoration:none;font-size:17px;font-weight:600}
.ps-grp a:hover{color:#18233f}
.ps-grp a .ps-now{font-size:12px;font-weight:700;white-space:nowrap}
.ps-grp a .ps-d{grid-column:1/-1;font-size:13px;line-height:1.4;font-weight:500;color:#6a5f4d}
.ps-grp a.ps-cur,.ps-grp a.ps-cur:hover{color:#8a6408;font-weight:800}
.ps-cta{display:flex;align-items:center;justify-content:center;min-height:52px;margin-top:12px;border-radius:14px;background:linear-gradient(180deg,#f0c14b,#d99e1f);color:#241a04;font-size:17px;font-weight:800;text-decoration:none}
.ps-visit{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:8px 0 0;padding:0 12px;border:1px solid #e6dfd1;border-radius:14px;background:#fff;color:#18233f;font:700 17px/1.3 var(--ps-font);cursor:pointer}
.ps-small{display:flex;flex-wrap:wrap;justify-content:center;gap:0 4px;margin:8px 0 0}
.ps-small a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:#4a4234;font-size:14px;text-underline-offset:3px}

/* ── 바닥: 학원 정보·링크 ── */
.ps-foot{display:block;margin:36px 0 0;padding:24px 0 calc(96px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid rgba(24,35,63,.14);background:none;font-size:15px;color:#4a4234}
.ps-note,.ps-info{font-size:14.5px;line-height:1.7;color:#4a4234}
.ps-note{margin-bottom:18px}
.ps-note p,.ps-foot .ps-note .legal{margin:0 0 6px;color:#4a4234;font-size:13.5px;line-height:1.7;border:0;padding:0}
.ps-info p{margin:0 0 4px}
.ps-info strong{display:block;margin-bottom:2px;font-size:16px;font-weight:800;color:#18233f}
.ps-info a{color:#18233f;font-weight:700;text-underline-offset:3px}
.ps-info a.ps-tel{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.ps-flinks{display:flex;flex-wrap:wrap;gap:0 2px;margin:10px 0 0 -8px}
.ps-flinks a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:#18233f;font-size:14.5px;font-weight:600;text-underline-offset:3px}
.ps-info a:hover,.ps-flinks a:hover,.ps-small a:hover{color:#18233f}

/* ── 「다음 칸」(정본 §4.5 — 본문 끝·바닥 바로 위): ① 이어 보기 목록 → ② 학원층 다리 → ③ 상담 단추 · 마크업 = publicNav next() ── */
.ps-next{display:block;margin:40px 0 0;padding:0;font-family:var(--ps-font);color:#18233f;line-height:1.5;word-break:keep-all;letter-spacing:normal;text-align:left;background:none;border:0}
.ps-next *{box-sizing:border-box}
.ps-next a:focus-visible{outline:3px solid #18233f;outline-offset:2px}
.ps-next .ps-nh{margin:0 0 10px;padding:0;border:0;font:800 20px/1.4 var(--ps-font);color:#18233f;letter-spacing:normal}
.ps-nl{list-style:none;margin:0;padding:0;border:1px solid #e6dfd1;border-radius:16px;background:#fffdfa;overflow:hidden}
.ps-nl li{margin:0;padding:0;border-top:1px solid #efe8da}
.ps-nl li:first-child{border-top:0}
.ps-nl a,.ps-nb a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 16px;color:#18233f;font-size:17px;font-weight:700;line-height:1.45;text-decoration:none}
.ps-nl a::after,.ps-nb a::after{content:'›';flex:none;font-size:22px;line-height:1;color:#8a6408}
.ps-nl a:hover,.ps-nb a:hover{color:#18233f;background:#f7f2e8}
.ps-nb{margin-top:12px;display:grid;gap:8px}
.ps-nb a{border-radius:14px;background:#18233f;color:#fffdfa}
.ps-nb a::after{color:#f0c14b}
.ps-nb a:hover{color:#fffdfa;background:#243257}
a.ps-nc{display:flex;align-items:center;justify-content:center;min-height:56px;margin-top:14px;padding:0 16px;border-radius:15px;background:linear-gradient(180deg,#f0c14b,#d99e1f);color:#241a04;font-size:18px;font-weight:800;text-align:center;text-decoration:none;box-shadow:0 6px 16px rgba(90,74,48,.18)}
a.ps-nc:hover{color:#241a04}

/* ── 하단 고정 상담 단추(폰) — 56px + safe-area, 900px 이상에서는 없음 ── */
.ps-fix{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:8px 16px calc(8px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(214,205,195,0),rgba(214,205,195,.96) 30%);pointer-events:none}
.ps-fix a{pointer-events:auto;display:flex;align-items:center;justify-content:center;max-width:648px;height:56px;margin:0 auto;border-radius:15px;background:linear-gradient(180deg,#f0c14b,#d99e1f);color:#241a04;font-size:18px;font-weight:800;text-decoration:none;box-shadow:0 8px 20px rgba(90,74,48,.22)}

/* ── 폰(<900px): 메뉴 8항목 = 둥근 칩 4열×2줄(원장 2026-10-24 시안) — 로고 줄(56)은 스크롤하면 위로 올라가고 칩 띠만 위에 붙는다(.ps-top top:-56px) ──
   칩 띠 = 위 8 + 칩 36 + 사이 6 + 칩 36 + 아래 10 + 위 선 1 = 97px → --ps-h(그 아래 sticky 요소·scroll-padding 이 읽는 값). 칩 높이는 36 고정이라 글꼴이 바뀌어도 97 불변 */
@media(max-width:899px){
  :root{--ps-h:97px}
  .ps-top{top:-56px}
  .ps-top .ps-in{flex-wrap:wrap;height:auto;row-gap:0}
  .ps-top .ps-in>.ps-brand{height:56px;align-self:center}
  .ps-links{display:grid;order:9;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;flex-basis:calc(100% + 32px);margin:0 -16px;padding:8px 12px 10px;border-top:1px solid rgba(24,35,63,.08)}
  .ps-links a{display:flex;align-items:center;justify-content:center;height:36px;padding:0 4px;border-radius:999px;background:#f6f1e8;border:1px solid #d9cdb9;color:#3d3528;text-decoration:none;font-size:14px;font-weight:700;letter-spacing:-.2px;white-space:nowrap;box-shadow:0 1px 0 rgba(90,74,48,.12)}
  .ps-links a:hover{color:#3d3528}
  .ps-links a:active{transform:scale(.96)}
  .ps-links a[aria-current=page],.ps-links a[aria-current=page]:hover{background:#18233f;border-color:#18233f;color:#fff;box-shadow:none}
}
@media(min-width:900px){
  /* 900~1239px = 머리 두 줄(아래 줄 = 메뉴 항목) · 1240px 이상 = 한 줄 */
  :root{--ps-h:100px}
  .ps-top .ps-in{flex-wrap:wrap;height:auto;row-gap:0}
  .ps-brand{height:56px}
  .ps-links{display:flex;align-items:center;justify-content:center;gap:0;order:9;flex-basis:100%;height:44px;border-top:1px solid rgba(24,35,63,.08)}
  .ps-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 7px;border-radius:9px;color:#18233f;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
  .ps-links a:hover{color:#18233f;background:rgba(255,253,250,.7)}
  .ps-links a[aria-current=page]{font-weight:800;box-shadow:inset 0 -2px 0 #d99e1f}
  .ps-box{left:auto;right:16px;top:8px;width:400px;max-height:calc(100vh - 16px);border-radius:18px}
  .ps-fix{display:none}
  .ps-foot{padding-bottom:40px}
}
@media(min-width:1240px){
  :root{--ps-h:56px}
  .ps-top .ps-in{flex-wrap:nowrap;height:56px}
  .ps-brand{flex:none;height:auto}
  .ps-links{order:0;flex:1 1 auto;flex-basis:auto;height:auto;border-top:0;min-width:0}
}
@media print{.ps-top,.ps-fix,.ps-sheet,.ps-next{display:none}}
