/* 공통 머리 띠·바닥 글(2026-11-26) — site/shared/chrome.js가 넣는다. 첫 화면·수학 앱·영어 앱이 같이 쓴다.
   머리 띠: 로고 + 앱 이름만(메뉴 없음). 폭은 수학·영어 PC 판(최대 1120px)과 같게.
   바닥 글: test.keymedia.co.kr footer.site-foot와 같은 값(짙은 따뜻한 회색 바탕, 흰 로고, 연두 '/' 구분). */
@font-face{font-family:"Chrome Sans";font-weight:400;font-display:swap;src:url("../fonts/pretendard-4.woff2") format("woff2")}
@font-face{font-family:"Chrome Display";font-weight:600;font-display:swap;src:url("../fonts/paperlogy-6.woff2") format("woff2")}
/* ../fonts/는 묶음(tools/site_build.py)이 첫 화면·이 파일 글자로 만든 부분 글꼴 — 저장소에서 바로 띄우면 없어서 시스템 글꼴로 */
:root{--chrome-h:52px;--chrome-ink:#3f3566;--chrome-sub:#5d5a78;--chrome-line:#d8d6e6}
@media (min-width:1024px){:root{--chrome-h:64px}}

.chrome-top{position:relative;z-index:5;height:var(--chrome-h);display:flex;align-items:center;padding-top:env(safe-area-inset-top);box-sizing:content-box}
.chrome-in{width:min(1120px,100% - 32px);margin-inline:auto;display:flex;align-items:center;min-width:0}
.chrome-brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--chrome-ink);text-decoration:none;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.chrome-brand img{display:block;height:20px;width:auto}
.chrome-brand span{font:600 15px/1 "Chrome Display","Paperlogy","App Sans",-apple-system,"Apple SD Gothic Neo",system-ui,sans-serif;letter-spacing:-.02em;color:var(--chrome-ink);padding-left:10px;border-left:1px solid var(--chrome-line)}
.chrome-brand:focus-visible{outline:3px solid #d9182e;outline-offset:3px;border-radius:6px}
@media (min-width:1024px){.chrome-brand img{height:26px}.chrome-brand span{font-size:17px;padding-left:12px}.chrome-brand{gap:12px}}
@media (max-width:339px){.chrome-brand img{height:17px}.chrome-brand span{font-size:14px}}

/* 바닥 글 — test.keymedia.co.kr과 같은 값. .wrap은 첫 화면 .wrap(폭 1100px)과 섞이지 않게 여기서 다시 정함 */
.site-foot{margin-top:56px;background:rgb(58,55,53);color:rgb(207,203,199);font-size:.9rem;line-height:1.75;
  font-family:"Chrome Sans","Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",system-ui,sans-serif;font-weight:400;letter-spacing:0;word-break:keep-all;text-align:left}
.site-foot .foot-info.wrap{width:auto;max-width:1080px;margin:0 auto;padding-left:16px;padding-right:16px;box-sizing:border-box}
.site-foot .foot-info{padding-top:34px;padding-bottom:max(48px,env(safe-area-inset-bottom))}
.site-foot .foot-info img{display:block;height:21px;width:auto;margin-bottom:14px;opacity:.95}
.site-foot .foot-info p{margin:0;font-size:inherit;line-height:inherit;color:inherit;font-family:inherit;font-weight:inherit;text-align:left}
.site-foot .foot-info .copy{font-family:inherit}
.site-foot .foot-info p span+span::before{content:"/";color:rgb(156,198,59);margin:0 12px}
.site-foot .foot-info .copy{margin-top:14px;color:rgb(170,164,159);font-size:.84rem;letter-spacing:.01em}
@media (max-width:860px){.site-foot .foot-info p span{display:block}.site-foot .foot-info p span+span::before{content:none}}
.site-foot[hidden]{display:none!important}

/* ── 첫 화면: 머리 띠를 하늘빛 첫 판 위에 겹침(예전 .nav 자리) ── */
html[data-chrome="home"] .hero > .chrome-top{position:absolute;left:0;right:0;top:14px}
html[data-chrome="home"] .hero .chrome-in{width:auto;margin:0 clamp(20px,5vw,72px)}   /* 첫 판 글(.pitch)과 같은 왼쪽 줄 */
html[data-chrome="home"] .site-foot{margin-top:72px}

/* ── 수학 앱: 판(.app) 높이를 머리 띠만큼 줄이고, 판 안 로고(.top-brand·첫 화면 그림 위 로고)는 머리 띠와 겹쳐 뺀다 ── */
html[data-chrome="math"] .app{height:calc(100dvh - var(--chrome-h) - env(safe-area-inset-top))}
html[data-chrome="math"] .top{padding-top:6px}
html[data-chrome="math"] .top .top-brand,html[data-chrome="math"] .hero-top .brand{display:none}
html[data-chrome="math"] #app[data-screen="enter"] .hero-top{display:none}
@media (min-width:520px){html[data-chrome="math"] .app{margin-top:0;height:calc(98dvh - var(--chrome-h))}}
@media (min-width:1024px) and (min-height:560px){html[data-chrome="math"] .app{height:min(calc(96dvh - var(--chrome-h)),820px);margin-top:max(0px,calc((100dvh - var(--chrome-h) - 820px)/2))}
  html[data-chrome="math"] .top{padding-top:20px}}

/* ── 영어 앱: 판 안 「Key출판사 | 영어 레벨테스트」는 머리 띠와 겹쳐 뺀다. 소리 단추(position:fixed)는 머리 띠 아래로 ── */
html[data-chrome="english"] #app{min-height:calc(100dvh - var(--chrome-h))}
html[data-chrome="english"] #app .top .brand{display:none!important}
html[data-chrome="english"] #app[data-screen="start"] .top-t{order:0}
html[data-chrome="english"]{--snd-top:calc(var(--chrome-h) + 6px)}
@media (min-width:700px){html[data-chrome="english"] #app{margin-top:0;min-height:calc(97dvh - var(--chrome-h))}
  html[data-chrome="english"]{--snd-top:calc(var(--chrome-h) + 14px)}}
@media (min-width:1024px){html[data-chrome="english"] #app{margin-top:0;min-height:calc(97dvh - var(--chrome-h))}
  html[data-chrome="english"]{--snd-top:calc(var(--chrome-h) + 18px)}}

/* 머리 띠 왼쪽 줄을 앱 판의 왼쪽 끝에 맞춤(태블릿: 수학 판 420px · 영어 판 680px, PC: 둘 다 1120px) */
@media (min-width:520px) and (max-width:1023px){html[data-chrome="math"] .chrome-in{width:min(420px,100% - 32px)}}
@media (min-width:1024px) and (max-height:559px){html[data-chrome="math"] .chrome-in{width:min(420px,100% - 32px)}}
@media (min-width:700px){html[data-chrome="english"] .chrome-in{width:min(680px,100% - 48px)}}
@media (min-width:1024px){html[data-chrome="english"] .chrome-in{width:min(1120px,100% - 48px)}}
