/* 김앤채수학학원 · 질문형 홈페이지 스타일 (2026-09-28)
   색 출처: wiki/01_회사_지식/톤앤매너.md (BI 원본 추출값)
   원칙: 바탕은 항상 흰색 → 다크 모드 없음. 색은 바탕이 아니라 요소에.
   학년 표시: 초등 = 원·주황 / 중등 = 삼각형·초록 / 고등 = 사각형·보라 / 학습관리 = 막대·빨강
   글꼴: Pretendard (jsDelivr, head의 link), 실패 시 맑은 고딕 */
/* Pretendard는 각 페이지 <head>에서 link로 불러온다 (@import 대신 — 첫 화면이 빨라짐) */

:root{
  color-scheme:light;
  --blue:#00539B; --blue-dark:#003C72;
  --ink:#231916; --muted:#655F5C; --paper:#FFFFFF; --line:#E7E3DF; --tint:#EEF4FA; --warm:#FBF8F5;
  --c-orange:#F0853E; --c-red:#EA544B; --c-purple:#6C5BA5; --c-green:#4AB134; --c-yellow:#F5DA4C; --c-sky:#5CAEC8; --c-pink:#EC728A;
  --g:var(--blue);
  --font:"Pretendard Variable",Pretendard,"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;
  --r:16px;
}
.g-el{--g:var(--c-orange)} .g-mid{--g:var(--c-green)} .g-high{--g:var(--c-purple)} .g-care{--g:var(--c-red)} .g-about{--g:var(--blue)} .g-path{--g:var(--c-sky)}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:120px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.8;letter-spacing:-.01em;word-break:keep-all;overflow-wrap:anywhere;-webkit-font-smoothing:antialiased}
h1,h2,h3,p,ul,ol,figure,blockquote{margin:0}
h1,h2,h3{font-weight:800;letter-spacing:-.035em;line-height:1.3;text-wrap:balance}
a{color:var(--blue);text-underline-offset:5px}
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:6px}
.wrap{max-width:1120px;margin-inline:auto;padding-inline:40px}
.narrow{max-width:760px}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:16px;background:#fff;padding:8px 14px;z-index:99}

/* ── 모양 표시 (BI 블록) ───────────────────────── */
.shape{display:inline-block;width:14px;height:14px;flex:none;background:var(--g)}
.g-el .shape,.shape.el{border-radius:50%}
.g-mid .shape,.shape.mid{clip-path:polygon(50% 4%,100% 96%,0 96%)}
.g-high .shape,.shape.high{border-radius:2px}
.g-care .shape,.shape.care{width:7px;border-radius:2px}
.g-path .shape,.shape.path{border-radius:2px;transform:rotate(45deg) scale(.85)}
.shape.path{background:var(--c-sky)}
.shape.el{background:var(--c-orange)} .shape.mid{background:var(--c-green)} .shape.high{background:var(--c-purple)} .shape.care{background:var(--c-red)}

/* ── 머리글 ─────────────────────────────────────── */
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:12px}
.logo img{width:170px;mix-blend-mode:multiply}
.book{flex:none;background:var(--blue);color:#fff;text-decoration:none;font-weight:700;font-size:15px;padding:9px 18px;border-radius:999px}
.book:hover{background:var(--blue-dark)}
.nav{display:flex;gap:6px;padding-bottom:10px;overflow-x:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav a{display:inline-flex;align-items:center;gap:8px;flex:none;text-decoration:none;color:var(--ink);font-size:15px;font-weight:600;padding:6px 14px;border-radius:999px;border:1px solid var(--line)}
.nav a[aria-current=page]{border-color:var(--ink);background:var(--ink);color:#fff}
.nav .shape{width:10px;height:10px}
.nav .shape.care{width:5px}

/* ── 메인 첫 화면 ───────────────────────────────── */
.hero{padding-block:72px 56px}
.hero-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:56px;align-items:center}
.tagline{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--blue);font-size:16px;margin-bottom:18px}
.blocks{display:inline-flex;gap:5px;align-items:center}
.blocks .shape{width:12px;height:12px}
.blocks .shape.care{width:6px}
.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.22}
.hero h1 em{font-style:normal;color:var(--blue)}
.hero .lead{margin-top:22px;font-size:19px;color:var(--muted);max-width:34em}
.hero figure{border-radius:var(--r);overflow:hidden}
.hero figure img{aspect-ratio:4/3;object-fit:cover;width:100%}

/* ── 질문 모음 (메인) ───────────────────────────── */
.hub{padding-block:24px 72px}
.hub-head{display:flex;justify-content:space-between;align-items:end;gap:24px;flex-wrap:wrap;margin-bottom:28px}
.hub-head h2{font-size:clamp(24px,2.8vw,32px)}
.hub-head p{color:var(--muted)}
.hub-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.group{border:1px solid var(--line);border-radius:var(--r);padding:26px 26px 12px;display:flex;flex-direction:column}
.group.g-path{grid-column:1/-1}
.group-head{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;margin-bottom:6px}
.group-head a{margin-left:auto;font-size:14px;font-weight:600;text-decoration:none}
.qlist{list-style:none;padding:0}
.qlist li+li{border-top:1px solid var(--line)}
.qlist a{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding-block:14px;text-decoration:none;color:var(--ink)}
.qlist a:hover .q{color:var(--blue)}
.qlist .q{font-weight:700;font-size:17.5px;line-height:1.5}
.qlist .hint{flex:none;font-size:13.5px;color:var(--muted);white-space:nowrap}
.qlist .hint::after{content:" →";color:var(--g)}

/* ── 신뢰 줄 (메인) ─────────────────────────────── */
.proof{background:var(--warm);padding-block:64px}
.proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}
.proof h3{font-size:19px;margin-bottom:8px}
.proof p{color:var(--muted);font-size:16px}
.proof .big{font-size:44px;font-weight:800;color:var(--blue);letter-spacing:-.04em;line-height:1.1;margin-bottom:10px;font-variant-numeric:tabular-nums}
.proof .big small{font-size:18px;margin-left:2px}
.proof a{font-weight:600;font-size:15px}

/* ── 학년 페이지 머리 ───────────────────────────── */
.page-head{padding-block:60px 36px;border-bottom:1px solid var(--line)}
.crumb{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--muted);font-size:15px;margin-bottom:14px}
.page-head h1{font-size:clamp(30px,4.2vw,46px)}
.page-head .lead{margin-top:16px;color:var(--muted);font-size:18px;max-width:40em}
.toc{list-style:none;padding:0;margin-top:26px;display:flex;flex-direction:column;gap:8px}
.toc a{display:inline-flex;gap:12px;align-items:baseline;text-decoration:none;color:var(--ink);font-weight:700;font-size:17px}
.toc a::before{content:"Q";color:var(--g);font-weight:800}
.toc a:hover{color:var(--blue)}

/* ── 질문 → 답 블록 ─────────────────────────────── */
.qa{padding-block:72px;border-bottom:1px solid var(--line)}
.qa:last-of-type{border-bottom:0}
.ask{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start}
.ask .mark{font-size:44px;line-height:1;font-weight:800;color:var(--g);margin-top:-2px}
.ask h2{font-size:clamp(25px,3.2vw,36px);line-height:1.35}
.voice{margin-top:14px;color:var(--muted);font-size:17px}
.empathy{margin:32px 0 0 0;display:flex;flex-direction:column;gap:2px;font-size:18px;line-height:1.85}
.empathy p.turn{margin-top:14px;font-weight:700;color:var(--blue)}
.answer-label{display:flex;align-items:center;gap:10px;margin-top:44px;font-size:14px;font-weight:800;letter-spacing:.06em;color:var(--g)}
.ways{list-style:none;padding:0;margin-top:14px;display:grid;gap:26px}
.ways li{display:grid;grid-template-columns:auto 1fr;gap:16px}
.ways .shape{margin-top:9px}
.ways h3{font-size:20px;line-height:1.5}
.ways p{margin-top:6px;color:#3b3431}
.flow{list-style:none;padding:0;margin-top:30px;display:flex;flex-wrap:wrap;gap:8px 6px;align-items:center}
.flow li{display:flex;align-items:center;font-weight:700;font-size:15px;color:var(--blue-dark)}
.flow li span{padding:7px 14px;border-radius:999px;background:var(--tint)}
.flow li+li::before{content:"→";margin-right:6px;color:var(--muted);font-weight:500}
.flow-cap{margin-top:8px;font-size:14px;color:var(--muted)}
.steps{list-style:none;padding:0;margin-top:16px;display:grid;gap:6px;counter-reset:s}
.steps li{counter-increment:s;display:flex;gap:14px;align-items:baseline;font-weight:700}
.steps li::before{content:counter(s);flex:none;width:26px;height:26px;border-radius:50%;background:var(--tint);color:var(--blue);font-size:13px;display:grid;place-items:center}
.steps li span{font-weight:500;color:var(--muted);font-size:15px}
.scene{margin-top:44px;display:grid;grid-template-columns:.9fr 1.1fr;gap:0;background:var(--warm);border-radius:var(--r);overflow:hidden}
.scene figure img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1}
.scene-body{padding:32px 34px;display:flex;flex-direction:column;gap:12px;justify-content:center}
.scene-label{font-size:14px;font-weight:800;color:var(--g);letter-spacing:.04em}
.scene blockquote{font-size:18.5px;font-weight:700;line-height:1.65}
.scene p{color:#3b3431;font-size:16px}
.scene .src{font-size:14px;color:var(--muted)}
.scene.noimg{grid-template-columns:1fr}
.close{margin-top:40px;font-size:20px;font-weight:800;line-height:1.6;letter-spacing:-.02em}
.more{display:inline-block;margin-top:18px;font-weight:700;font-size:15.5px}

/* 표 */
.table-box{overflow-x:auto;margin-top:22px;border:1px solid var(--line);border-radius:12px}
table{border-collapse:collapse;width:100%;min-width:480px;font-size:15.5px;font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:11px 16px;border-bottom:1px solid var(--line)}
th{background:var(--tint);color:var(--blue-dark);font-weight:700}
tr:last-child td{border-bottom:0}
.note{font-size:14px;color:var(--muted);margin-top:10px}

/* ── 다른 질문 / 상담 ───────────────────────────── */
.next{padding-block:56px;background:var(--warm)}
.next h2{font-size:22px;margin-bottom:18px}
.next-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.next-list a{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;text-decoration:none;color:var(--ink);font-weight:700}
.next-list a:hover{border-color:var(--blue)}
.next-list .lab{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);font-weight:600}
.consult{background:var(--blue);color:#fff;padding-block:60px}
.consult-grid{display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
.consult h2{font-size:clamp(24px,3vw,32px)}
.consult p{margin-top:10px;opacity:.88;max-width:36em}
.consult-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.consult .btn{background:#fff;color:var(--blue);text-decoration:none;font-weight:800;padding:13px 26px;border-radius:999px}
.consult .tel{color:#fff;font-weight:700;font-size:18px;text-decoration:none;font-variant-numeric:tabular-nums}
footer{padding-block:40px 110px;font-size:14.5px;color:var(--muted);line-height:1.9}
footer .links{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:12px}
footer .links a{color:var(--ink);text-decoration:none;font-weight:600}
.mobile-call{display:none}

/* ── 좁은 화면 ─────────────────────────────────── */
@media (max-width:880px){
  .wrap{padding-inline:20px}
  .hero{padding-block:40px 36px}
  .hero-grid,.hub-groups,.proof-grid,.next-list{grid-template-columns:1fr}
  .hero-grid{gap:28px}
  .scene{grid-template-columns:1fr}
  .scene figure img{aspect-ratio:4/3}
  .scene-body{padding:24px 22px}
  .qa{padding-block:52px}
  .ask{gap:12px}
  .ask .mark{font-size:34px}
  .group{padding:22px 20px 8px}
  .qlist a{flex-direction:column;gap:2px}
  .logo img{width:140px}
  .book{font-size:14px;padding:8px 14px}
  .mobile-call{display:flex;justify-content:space-between;position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--ink);color:#fff;text-decoration:none;font-weight:700;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px))}
}

.nav .blocks{gap:3px}.nav .blocks .shape{width:8px;height:8px}
table.visit th{width:8.5em;white-space:nowrap;vertical-align:top}
.subnav{border-bottom:1px solid var(--line);background:var(--warm)}
.subnav .wrap{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding-block:10px}
.subnav a{flex:none;text-decoration:none;color:var(--muted);font-weight:700;font-size:15px;padding:6px 14px;border-radius:999px}
.subnav a[aria-current=page]{background:#fff;color:var(--blue);box-shadow:0 0 0 1px var(--line)}
table.num td:nth-child(n+4){font-variant-numeric:tabular-nums}
.steps li{display:grid;grid-template-columns:26px 1fr;column-gap:14px;align-items:start}
.steps li::before{grid-row:span 2;margin-top:2px}
.steps li span{grid-column:2;display:block;margin-bottom:10px}
table.sched{table-layout:fixed;min-width:0}
table.sched th:nth-child(1),table.sched td:nth-child(1){width:34%}
table.sched th:nth-child(2),table.sched td:nth-child(2){width:42%}
table.sched th:nth-child(3),table.sched td:nth-child(3){width:24%;text-align:right}
table.sched td{vertical-align:middle;padding-block:16px}
table.sched td:first-child{font-weight:700;line-height:1.5}
table.sched td small{font-weight:500;color:var(--muted);font-size:13.5px}
.slots{display:grid;grid-template-columns:auto 3.2em auto 3.2em;justify-content:start;column-gap:6px;row-gap:4px;font-variant-numeric:tabular-nums}
.slots .sl{font-weight:800;color:var(--blue);padding-right:6px}
.slots .st{text-align:right}
.slots .sw{color:var(--muted)}
@media (max-width:520px){table.sched th,table.sched td{padding-inline:10px}table.sched td{font-size:14.5px}.slots{column-gap:3px}}
.slots .sl,.slots .st,.slots .se{white-space:nowrap}
@media (max-width:520px){
 table.sched th:nth-child(1),table.sched td:nth-child(1){width:27%}
 table.sched th:nth-child(2),table.sched td:nth-child(2){width:52%}
 table.sched th:nth-child(3),table.sched td:nth-child(3){width:21%}
 table.sched td small{font-size:12px}
 .slots .sl{padding-right:3px}
 .slots{grid-template-columns:auto 2.9em auto 2.9em}
}
.nw{white-space:nowrap}
header .subnav{border-top:1px solid var(--line);border-bottom:0}
header .subnav .wrap{padding-block:8px}
.sub-next{display:inline-flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);font-weight:800;font-size:20px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 24px}
.sub-next:hover{border-color:var(--blue);color:var(--blue)}
.sub-next .lab{font-size:13px;font-weight:700;color:var(--muted)}
html:has(header .subnav){scroll-padding-top:170px}
table.past{min-width:620px}
table.past td{vertical-align:top;line-height:1.6}
table.past td:first-child{width:30%}
table.past td:nth-child(2){width:26%;color:var(--blue-dark)}
.grade-key{margin-top:18px;background:var(--tint);border-radius:12px;padding:16px 20px}
.grade-key-title{font-weight:800;font-size:15px;margin-bottom:8px}
.grade-key ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px;font-size:14.5px;font-variant-numeric:tabular-nums}
.grade-key b{color:var(--blue)}
@media (max-width:520px){.grade-key ul{grid-template-columns:1fr 1fr}}
.grade-key li{white-space:nowrap}
.bk{display:inline-block;font-weight:700;font-size:14.5px;line-height:1.4;padding:3px 10px;border-radius:999px;margin:2px 2px 2px 0;white-space:nowrap}
.bk.own{background:var(--blue);color:#fff}
.bk.mkt{background:#fff;color:var(--ink);border:1px solid #C9C3BE}
table.stages td{vertical-align:middle}
table.stages td small{display:block;margin-top:4px;color:var(--muted);font-size:13px}
.bk-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px;font-size:13.5px;color:var(--muted)}
.bk-legend .bk{font-size:12.5px;padding:2px 9px}
.bk-legend .bk.mkt{margin-left:10px}
table.stages td:first-child,table.stages td:nth-child(3){white-space:nowrap;font-weight:700}
table.stages td:nth-child(3){font-weight:500;color:var(--muted)}
@media (max-width:600px){
 table.stages{min-width:0}
 table.stages thead{display:none}
 table.stages tr{display:grid;grid-template-columns:1fr auto;gap:6px 10px;padding:16px 14px;border-top:1px solid var(--line)}
 table.stages tbody tr:first-child{border-top:0}
 table.stages td{display:block;padding:0;border:0}
 table.stages td:first-child{font-size:16.5px;color:var(--blue)}
 table.stages td:first-child{grid-row:1;grid-column:1}
 table.stages td:nth-child(3){grid-row:1;grid-column:2;text-align:right;font-size:13.5px;align-self:center}
 table.stages td:nth-child(2){grid-row:2}
 table.stages td:nth-child(4){grid-row:3}
 table.stages td:nth-child(2),table.stages td:nth-child(4){grid-column:1 / -1}
 table.stages td:nth-child(4){font-size:15px;line-height:1.65}
}
@media (min-width:601px){
 table.stages{table-layout:fixed}
 table.stages th:nth-child(1){width:15%}
 table.stages th:nth-child(2){width:31%}
 table.stages th:nth-child(3){width:19%}
 table.stages th:nth-child(4){width:35%}
}

table.sched th:nth-child(1),table.sched td:nth-child(1){width:30%}
table.sched th:nth-child(2),table.sched td:nth-child(2){width:70%}
.slots{grid-template-columns:auto 3.2em auto 3.2em auto}
.slots .sd{color:var(--muted);padding-left:14px;border-left:1px solid var(--line);margin-left:8px;white-space:nowrap}
@media (max-width:520px){
 table.sched th:nth-child(1),table.sched td:nth-child(1){width:26%}
 table.sched th:nth-child(2),table.sched td:nth-child(2){width:74%}
 .slots{grid-template-columns:auto 2.9em auto 2.9em auto}
 .slots .sd{padding-left:8px;margin-left:4px;font-size:13px}
}

/* 2026-10-01 점검: 좁은 화면 넘침 · 누르기 쉬운 링크 */
@media (max-width:420px){.grade-key ul{grid-template-columns:1fr}}
.proof a,.more a{display:inline-block;padding-block:8px}
.sum{margin-top:36px;background:var(--tint);border-left:4px solid var(--g);border-radius:0 12px 12px 0;padding:18px 22px}
.sum-label{font-weight:800;font-size:14px;color:var(--blue);margin-bottom:6px}
.sum p:last-child{font-size:16px;line-height:1.75}

/* 2026-10-02 점검: 작은 글자는 명도 대비 4.5:1 이상 (도형 색은 그대로, 글자만 진하게) */
:root{--gt:var(--blue)}
.g-el{--gt:#AC5F2C} .g-mid{--gt:#378426} .g-high{--gt:#6C5BA5} .g-care{--gt:#C94840} .g-path{--gt:#427D8F} .g-about{--gt:var(--blue)}
.answer-label,.scene-label,.toc a::before,.qlist .hint::after{color:var(--gt)}
/* 아주 좁은 화면(≤359px): 시간표의 수업 시간을 시각 아래로 */
@media (max-width:359px){.slots{grid-template-columns:auto 2.9em auto 2.9em}.slots .sd{grid-column:2 / -1;border-left:0;padding-left:0;margin-left:0;margin-bottom:4px}}
/* 2026-10-02: 넘겨 보는 표 안내 · 메뉴가 더 있다는 표시 (휴대폰) */
.swipe{display:none;margin:18px 0 -14px;font-size:13px;color:var(--muted);text-align:right}
@media (max-width:700px){
 .swipe{display:block}
 .nav{-webkit-mask-image:linear-gradient(to right,#000 82%,transparent);mask-image:linear-gradient(to right,#000 82%,transparent)}
 .nav a:last-child{margin-right:48px}
}
@media (max-width:700px){header .subnav .wrap{-webkit-mask-image:linear-gradient(to right,#000 82%,transparent);mask-image:linear-gradient(to right,#000 82%,transparent)} header .subnav .wrap a:last-child{margin-right:48px}}
