@charset "utf-8";
/* ===========================================================================
 * 글사유 ON 공통 틀 (gsu-on 스킨 전용) — 머리말·메뉴·알림 줄·바닥글·옆 패널
 *
 * 마크업: cham/include/chrome_on.php, cham/include/panes/onlinks.php
 * 기준: 프로젝트 design-system/tokens.css (2026-11-15 혼합안), 확정 시안 A
 *
 * 원칙
 * - 호박색은 틀에서 쓰지 않는다(화면마다 하나인 주 단추 몫).
 *   지금 메뉴는 남색 굵은 글자 + 3px 남색 밑줄.
 * - 굵기는 400~800 만. 가는 굵기(200·300) 금지.
 * - 움직임은 짧고 조용하게(0.2초 안팎): 색 전환, 대메뉴 밑줄·굵기, 펼침 메뉴 떠오르기(2026-11-15 운영자). 흐르는 띠 글 없음.
 *   움직임을 줄이는 설정(prefers-reduced-motion)이면 모두 끈다.
 * - 폭(--gon-w)은 기본 1000px. html.gon-wide 이면 창에 따라 1000~1280px(본문까지 함께, theme-gsu-on.css 끝).
 *   2026-11-15 운영자 결정: 본문까지 함께 넓힌다(1000px 는 너무 옛날 비율). 공개 전엔 관리자만(chrome_on.php GSU_ON_WIDE_PUBLIC).
 *
 * common.css · theme-base.css 가 header/footer 태그 자체에 float·여백·테두리를
 * 걸어 두었으므로, 여기서는 .gon-* 이름으로 감싸 그 규칙들을 먼저 풀어 준다.
 * ======================================================================== */

@font-face {
	font-family: 'Pretendard';
	src: url(/cham/fonts/PretendardVariable.woff2) format('woff2');
	font-weight: 45 920;
	font-display: swap;
}

:root {
	--gon-navy: #1E2A3F;
	--gon-ivory: #F7F3EA;
	--gon-sand: #EAE3D4;
	--gon-tint: #F4EFE4;
	--gon-white: #FFFFFF;
	--gon-text: #2B2B2B;
	--gon-text-sub: #4A4843;
	--gon-text-muted: #6E6B65;
	--gon-line: #E4DED2;
	--gon-r-sm: 6px;
	--gon-r-btn: 8px;
	--gon-r-card: 12px;
	--gon-shadow-pop: 0 2px 4px rgba(30,42,63,.06), 0 12px 32px rgba(30,42,63,.14);
	--gon-font: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	--gon-w: 1000px;
}
/* 넓은 틀: 양옆에 옆 패널 자리(145px 씩)를 남기고 최대 1280px(2026-11-15 운영자: 가장 요즘 비율로). clamp 를 모르는 브라우저는 위 1000px 그대로. */
html.gon-wide { --gon-w: clamp(1000px, calc(100vw - 290px), 1280px); }

body { font-family: var(--gon-font); }

/* ---------- 머리말 ---------- */
header.gon-hd {
	margin: 0; padding: 0; border: 0;
	background: var(--gon-white);
	font-family: var(--gon-font);
	position: relative; z-index: 50;
}
.gon-hd *, .gon-notice *, .gon-ft * { box-sizing: border-box; }
.gon-hd ul, .gon-hd li { float: none; margin: 0; padding: 0; list-style: none; }
.gon-wrap { width: var(--gon-w); margin: 0 auto; position: relative; }

.gon-util {
	display: flex; justify-content: flex-end; gap: 22px;
	padding-top: 12px; height: 34px;
	font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.gon-util a { color: var(--gon-text-muted); text-decoration: none; transition: color .2s; }
.gon-util a:hover { color: var(--gon-navy); }
.gon-util a.is-strong { color: var(--gon-navy); font-weight: 700; }

.gon-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.gon-hd h1.gon-logo { float: none; margin: 0; padding: 0; line-height: 0; }
.gon-hd h1.gon-logo img { width: 300px; height: auto; display: block; }   /* 머리말 로고는 318px 이하 */

.gon-gnb { display: flex; height: 100%; white-space: nowrap; }
.gon-gnb > li { position: relative; display: flex; align-items: center; height: 100%; }
.gon-gnb > li > a {
	display: flex; align-items: center; height: 100%; padding: 0 16px;
	position: relative;
	font-size: 18px; font-weight: 700; color: var(--gon-text); text-decoration: none;
	transition: color .2s ease, font-weight .2s ease;   /* Pretendard 가변 글꼴이라 굵기도 부드럽게 바뀐다 */
}
/* 밑줄: 가운데에서 양옆으로 그어진다. */
.gon-gnb > li > a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: var(--gon-navy);
	transform: scaleX(0); transform-origin: center;
	transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}
.gon-gnb > li:last-child > a { padding-right: 0; }
/* 마우스를 올렸을 때(펼침 메뉴 안에 있을 때 포함)와 지금 메뉴는 같은 모양: 남색 굵은 글자 + 3px 남색 밑줄. */
.gon-gnb > li:hover > a,
.gon-gnb > li:focus-within > a,
.gon-gnb > li.is-cur > a { color: var(--gon-navy); font-weight: 800; }
.gon-gnb > li:hover > a::after,
.gon-gnb > li:focus-within > a::after,
.gon-gnb > li.is-cur > a::after { transform: scaleX(1); }
/* 굵어져도 글자 폭이 늘지 않게, 굵은 글자 폭을 보이지 않는 줄로 미리 잡아 둔다(메뉴가 옆으로 흔들리지 않음). */
.gon-gnb > li > a > span { display: inline-flex; flex-direction: column; align-items: center; }
.gon-gnb > li > a > span::after {
	content: attr(data-t); font-weight: 800;
	height: 0; overflow: hidden; visibility: hidden; pointer-events: none; user-select: none;
}

/* 펼침 메뉴: 흰 둥근 카드. 마우스를 올리거나 키보드로 들어가면 6px 아래에서 살짝 떠오르며 나타난다.
 * display 는 움직임을 못 주므로 visibility + opacity 로 여닫는다. */
.gon-drop {
	visibility: hidden; opacity: 0; translate: 0 6px;
	transition: opacity .18s ease, translate .18s ease, visibility 0s linear .18s;
	position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	min-width: 190px; padding: 10px;
	background: var(--gon-white); border-radius: var(--gon-r-card); box-shadow: var(--gon-shadow-pop);
	z-index: 60;
}
.gon-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* 메뉴와 카드 사이 틈에서 닫히지 않게 */
.gon-gnb > li:last-child .gon-drop { left: auto; right: -10px; transform: none; }
.gon-gnb > li:hover .gon-drop,
.gon-gnb > li:focus-within .gon-drop {
	visibility: visible; opacity: 1; translate: 0 0;
	transition: opacity .18s ease, translate .18s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
	.gon-gnb > li > a, .gon-gnb > li > a::after, .gon-drop { transition: none !important; }
	.gon-drop { translate: none; }
}
.gon-drop a {
	display: block; padding: 11px 14px; border-radius: var(--gon-r-btn);
	font-size: 16px; font-weight: 500; color: var(--gon-text-sub); text-decoration: none;
	transition: background .2s, color .2s;
}
.gon-drop a:hover { background: var(--gon-tint); color: var(--gon-navy); }
.gon-drop a.is-cur { background: var(--gon-tint); color: var(--gon-navy); font-weight: 700; }

.gon-hd a:focus-visible, .gon-notice summary:focus-visible, .gon-ft a:focus-visible {
	outline: 2px solid var(--gon-navy); outline-offset: 2px; border-radius: 4px;
}

/* ---------- 알림 한 줄 (예전 흐르는 띠 글 자리) ---------- */
.gon-notice { background: var(--gon-tint); font-family: var(--gon-font); position: relative; z-index: 40; }
.gon-notice .gon-wrap { display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: 16px; color: var(--gon-text-sub); }
.gon-notice-lab {
	flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
	border-radius: var(--gon-r-sm); background: var(--gon-navy); color: var(--gon-ivory);
	font-size: 13px; font-weight: 700;
}
.gon-notice-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gon-notice-more { flex: none; position: relative; }
.gon-notice-more summary {
	list-style: none; cursor: pointer;
	font-size: 15px; font-weight: 600; color: var(--gon-text-muted);
}
.gon-notice-more summary::-webkit-details-marker { display: none; }
.gon-notice-more summary::after { content: ' ›'; }
.gon-notice-more[open] summary { color: var(--gon-navy); }
.gon-notice-more ul {
	position: absolute; right: 0; top: calc(100% + 10px); width: 420px; margin: 0; padding: 10px;
	list-style: none; background: var(--gon-white); border-radius: var(--gon-r-card); box-shadow: var(--gon-shadow-pop);
}
.gon-notice-more li { padding: 10px 12px; border-radius: var(--gon-r-btn); font-size: 15px; line-height: 1.5; color: var(--gon-text-sub); }
.gon-notice-more li + li { border-top: 1px solid var(--gon-line); border-radius: 0; }

/* ---------- 바닥글 ---------- */
footer.gon-ft {
	width: 100%; min-width: var(--gon-w); margin: 0; padding: 36px 0 44px;
	background: var(--gon-white); font-family: var(--gon-font);
}
.gon-ft-grid { display: grid; grid-template-columns: 1fr 240px; gap: 40px; }
.gon-ft-links { display: flex; gap: 24px; margin-bottom: 16px; font-size: 15px; font-weight: 600; }
.gon-ft-links a { color: var(--gon-text-sub); text-decoration: none; }
.gon-ft-links a:hover { color: var(--gon-navy); }
.gon-ft-links a.is-strong { color: var(--gon-navy); font-weight: 800; }
.gon-ft-info { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--gon-text-muted); }
.gon-ft-info span { float: none; white-space: nowrap; }
.gon-ft-info em { font-style: normal; font-weight: 600; color: var(--gon-text-sub); margin-right: 4px; }
.gon-ft-info .gon-br { flex-basis: 100%; height: 0; }
.gon-ft-copy { margin: 14px 0 0; font-size: 13px; color: var(--gon-text-muted); }
.gon-ft-tel { align-self: start; padding: 20px 22px; border-radius: var(--gon-r-card); background: var(--gon-tint); }
.gon-ft-tel p { margin: 0; font-size: 14px; font-weight: 600; color: var(--gon-text-muted); }
.gon-ft-tel strong { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: var(--gon-navy); }

/* ---------- 옆 패널 (학생이 자주 쓰는 것만) ----------
 * common.css · theme-base.css 의 #quick_menu div / div p / p.btn_top a 규칙이
 * 레일 안의 모든 칸에 테두리·흰 바탕·그림자·검은 '맨 위로'를 씌운다. id 가 들어간
 * 그 규칙들을 이기려고 아래도 #quick_menu 로 시작한다(이 파일은 gsu-on 에서만 실린다). */
#quick_menu .gsu-rail-widgets,
#quick_menu .gsu-rail-links,
#quick_menu .gon-rail {
	width: 118px; box-sizing: border-box;
	border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
#quick_menu .gon-rail p.btn_top { width: auto; height: auto; margin: 4px 0 0; border: 0; background: none; }
#quick_menu .gon-rail p.btn_top a {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 36px; line-height: 1; padding: 0;
	background: transparent; box-shadow: none;
	font-size: 13px; font-weight: 600; color: var(--gon-text-muted);
}
#quick_menu .gon-rail p.btn_top a:hover { background: transparent; color: var(--gon-navy); }

/* 내 포인트 칸: 예전 빨간 두 겹 테두리(CL-0130) 대신 아래 단추들과 같은 흰 카드.
 * sidepane.css 가 이 파일보다 늦게 실리므로 .gsu-rail-widgets 를 끼워 한 단계 무겁게 쓴다. */
#quick_menu .gsu-rail-widgets .gsu-rail-points {
	border: 1px solid var(--gon-line); border-radius: var(--gon-r-btn);
	background: var(--gon-white);
	box-shadow: 0 1px 2px rgba(30,42,63,.05), 0 4px 12px rgba(30,42,63,.06);
	font-family: var(--gon-font);
	transition: border-color .2s;
}
#quick_menu .gsu-rail-widgets .gsu-rail-points::before { display: none; }
#quick_menu .gsu-rail-widgets .gsu-rail-points:hover { border-color: var(--gon-navy); }
#quick_menu .gsu-rail-widgets .gsu-rail-points-label,
#quick_menu .gsu-rail-widgets .gsu-rail-points-unit,
#quick_menu .gsu-rail-widgets .gsu-rail-points-split { color: var(--gon-text-muted); }
#quick_menu .gsu-rail-widgets .gsu-rail-points-value { color: var(--gon-navy); font-weight: 800; }

.gon-rail { display: flex; flex-direction: column; gap: 8px; width: 118px; font-family: var(--gon-font); }
.gon-rail a {
	display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px;
	border-radius: var(--gon-r-btn); background: var(--gon-white); box-shadow: 0 1px 2px rgba(30,42,63,.05), 0 4px 12px rgba(30,42,63,.06);
	font-size: 14.5px; font-weight: 700; color: var(--gon-navy); text-decoration: none; text-align: center;
	transition: background .2s;
}
.gon-rail a:hover { background: var(--gon-tint); }
.gon-rail p.btn_top { margin: 4px 0 0; }
.gon-rail p.btn_top a { height: 36px; background: transparent; box-shadow: none; font-size: 13px; font-weight: 600; color: var(--gon-text-muted); }

