/* =====================================================================
   진로진학지원시스템 프로토타입 — 디자인 토큰 & 공통 스타일
   기준: 대전진로융합교육원 CI(DICE) 5색 + 다크 그레이 / 서체 Pretendard
   ===================================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  /* CI 팔레트 */
  --ci-orange: #F28C28;
  --ci-yellow: #F5C518;
  --ci-green:  #8DBF3A;
  --ci-teal:   #00A99D;
  --ci-sky:    #3BB4E5;
  --ci-ink:    #202020;

  /* 시맨틱 */
  --primary:        var(--ci-teal);
  --primary-600:    #00918A;
  --primary-700:    #007A74;
  --primary-50:     #E6F7F5;
  --primary-100:    #CCEFEB;
  --accent:         var(--ci-orange);
  --accent-50:      #FEF3E7;
  --info:           var(--ci-sky);
  --info-50:        #EAF7FC;
  --success:        var(--ci-green);
  --success-50:     #F1F8E6;
  --warn:           var(--ci-yellow);
  --warn-50:        #FEF9E3;
  --danger:         #E5484D;
  --danger-50:      #FDECEC;

  --ink:      #1F2937;
  --ink-2:    #4B5563;
  --ink-3:    #6B7280;
  --ink-4:    #9CA3AF;
  --line:     #E5E7EB;
  --line-2:   #F0F2F5;
  --bg:       #FFFFFF;
  --bg-soft:  #F6F8FA;
  --bg-mute:  #EEF1F4;

  --radius-s: 8px;
  --radius:   12px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --shadow-s: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow:   0 4px 14px rgba(16,24,40,.08);
  --shadow-l: 0 12px 32px rgba(16,24,40,.12);

  --container: 1280px;
  --gutter: 24px;
  --header-h: 72px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; letter-spacing: -0.01em; }
h1,h2,h3,h4,h5 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: 0; top: -40px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 0 0 8px 0; }
.skip:focus { top: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1440px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section { padding: 64px 0; }
.section-title { font-size: 28px; margin-bottom: 8px; }
.section-desc { color: var(--ink-3); font-size: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 16px; }
.more { font-size: 14px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.more:hover { color: var(--primary-700); }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}
.text-muted { color: var(--ink-3); } .text-small { font-size: 14px; } .text-xs { font-size: 12px; }
.text-primary { color: var(--primary-700); } .text-accent { color: var(--accent); } .text-danger { color: var(--danger); }
.text-center { text-align: center; } .text-right { text-align: right; } .fw-700 { font-weight: 700; } .fw-600 { font-weight: 600; }
.hide-m { } .show-m { display: none !important; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2); }
.util-bar { border-bottom: 1px solid var(--line-2); background: var(--bg-soft); font-size: 13px; }
.util-bar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.util-bar .site-family { display: flex; gap: 16px; color: var(--ink-3); }
.util-bar .site-family a:hover { color: var(--ink); }
.util-bar .util-links { display: flex; gap: 4px; align-items: center; }
.util-bar .util-links a, .util-bar .util-links button { padding: 4px 8px; color: var(--ink-2); border-radius: 6px; }
.util-bar .util-links a:hover { background: var(--bg-mute); }
.util-bar .divider { width: 1px; height: 12px; background: var(--line); margin: 0 4px; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand .ci { height: 28px; }
.brand .site-name { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.1; }
.brand .site-name small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; white-space: nowrap; }
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb > ul { display: flex; gap: 4px; }
.gnb > ul > li > a { display: block; padding: 0 13px; height: var(--header-h); line-height: var(--header-h); font-size: 16.5px; font-weight: 700; color: var(--ink); position: relative; white-space: nowrap; }
.gnb > ul > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .2s; }
.gnb > ul > li:hover > a::after, .gnb > ul > li.active > a::after, .gnb.open > ul > li:hover > a::after { transform: scaleX(1); }
.gnb > ul > li:hover > a, .gnb > ul > li.active > a, .gnb > ul > li.is-hover > a { color: var(--primary-700); }
.gnb > ul > li.is-hover > a::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-mute); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.hamburger { display: none; }

/* 메가메뉴 (전체 펼침) */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l); display: none; overflow-y: auto; overscroll-behavior: contain; }
.header.mega-open .mega { display: block; }
.mega .container { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 36px; }
.mega .mega-intro h3 { font-size: 22px; margin-bottom: 8px; }
.mega .mega-intro p { color: var(--ink-3); font-size: 14px; }
.mega .mega-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.mega .mega-col h4 { font-size: 15px; font-weight: 800; color: var(--primary-700); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--primary-100); }
.mega .mega-col .d2 { font-size: 14px; font-weight: 700; margin-top: 12px; color: var(--ink); }
.mega .mega-col .d2:first-of-type { margin-top: 0; }
.mega .mega-col .d3 { font-size: 13px; color: var(--ink-2); padding: 3px 0 3px 10px; position: relative; }
.mega .mega-col .d3::before { content: ""; position: absolute; left: 0; top: 12px; width: 4px; height: 1px; background: var(--ink-4); }
.mega .mega-col a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.mega .mega-col h4 a { display: block; color: inherit; }
.mega .mega-col .d2 a { color: inherit; }
.mega .mega-col.is-hl h4 { border-bottom-color: var(--primary); }
.mega .mega-col a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.mega .mega-col .tag-teacher { font-size: 10px; background: var(--accent-50); color: var(--accent); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; font-weight: 700; }

/* 모바일 드로어 */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer .dim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; overflow-y: auto; padding: 20px; }
.drawer .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer .d1 { font-size: 17px; font-weight: 800; padding: 14px 0 8px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.drawer .d2 { font-size: 15px; font-weight: 700; padding: 8px 0 4px 8px; color: var(--ink-2); }
.drawer .d3 { font-size: 14px; padding: 6px 0 6px 20px; color: var(--ink-2); }
.drawer .role-box { background: var(--bg-soft); border-radius: 12px; padding: 14px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { background: #1B2230; color: #C9D1DC; margin-top: 80px; font-size: 14px; }
.footer .footer-top { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .footer-top .container { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.footer .footer-links { display: flex; gap: 20px; }
.footer .footer-links a.em { color: var(--ci-yellow); font-weight: 700; }
.footer .footer-links a:hover { color: #fff; }
.footer .footer-body .container { display: flex; justify-content: space-between; gap: 40px; padding: 32px var(--gutter) 40px; }
.footer .footer-ci { height: 26px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.footer address { font-style: normal; line-height: 1.7; color: #98A2B3; }
.footer .copy { margin-top: 10px; font-size: 12px; color: #667085; }
.footer .family { position: relative; }
.footer .family select { appearance: none; background: transparent; border: 1px solid rgba(255,255,255,.2); color: #C9D1DC; padding: 10px 40px 10px 14px; border-radius: 8px; min-width: 220px; }
.footer .family::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #C9D1DC; border-bottom: 2px solid #C9D1DC; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---------- Sub page ---------- */
.sub-visual { background: linear-gradient(120deg, #E6F7F5 0%, #EAF7FC 55%, #FEF9E3 100%); position: relative; overflow: hidden; }
.sub-visual::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,169,157,.18), transparent); }
.sub-visual .container { padding-top: 44px; padding-bottom: 44px; position: relative; }
.sub-visual h1 { font-size: 34px; font-weight: 800; }
.sub-visual p { margin-top: 8px; color: var(--ink-2); }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-4); }
.breadcrumb li:last-child { color: var(--primary-700); font-weight: 600; }
.sub-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 40px; align-items: start; }
.sub-layout > * { min-width: 0; }
.lnb { position: sticky; top: calc(var(--header-h) + 16px); }
.lnb .lnb-title { font-size: 20px; font-weight: 800; padding: 18px 20px; border-radius: 14px; background: var(--primary); color: #fff; margin-bottom: 12px; }
.lnb ul li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.lnb ul li a:hover { background: var(--bg-soft); color: var(--ink); }
.lnb > ul > li.active > a { color: var(--primary-700); font-weight: 700; background: var(--primary-50); }
.lnb > ul > li.active > a .chev { transform: rotate(180deg); }
.lnb .chev { width: 16px; height: 16px; transition: transform .2s; color: var(--ink-4); }
.lnb .d3 { display: none; padding: 4px 0 8px; }
.lnb > ul > li.active .d3 { display: block; }
.lnb .d3 a { padding: 8px 16px 8px 28px; font-size: 14px; justify-content: flex-start; gap: 6px; }
.lnb .d3 li.active a { color: var(--primary-700); font-weight: 700; }
.lnb .d3 a::before { content: "·"; color: var(--ink-4); }
.content { min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.page-title { font-size: 30px; font-weight: 800; }
.page-desc { color: var(--ink-3); margin-top: 6px; font-size: 15px; }
.page-head-tools { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-3); background: var(--bg-soft); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary-700); background: #fff; }
.btn-outline-primary:hover { background: var(--primary-50); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-mute); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-group { display: inline-flex; gap: 8px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-mute); color: var(--ink-2); white-space: nowrap; }
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-accent { background: var(--accent-50); color: #C96A10; }
.badge-info { background: var(--info-50); color: #1C86B3; }
.badge-success { background: var(--success-50); color: #5A8A14; }
.badge-warn { background: var(--warn-50); color: #9A7400; }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-solid { background: var(--primary); color: #fff; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; background: #fff; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-3); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* 칩·배지 줄바꿈 금지 */
.badge, .chip, .level-tag { white-space: nowrap; flex-shrink: 0; }
.level-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.level-elem { background: #FEF3E7; color: #C96A10; } .level-mid { background: #EAF7FC; color: #1C86B3; } .level-high { background: #E6F7F5; color: var(--primary-700); }
.level-all { background: var(--bg-mute); color: var(--ink-2); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-s); }
.card.hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: .2s; border-color: var(--line); }
.card-title { font-size: 18px; font-weight: 700; }
.card-sub { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.card-soft { background: var(--bg-soft); border: 0; box-shadow: none; }
.card-flat { box-shadow: none; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.icon-circle { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.icon-circle svg { width: 26px; height: 26px; }
.ic-teal { background: var(--primary-50); color: var(--primary-700); } .ic-orange { background: var(--accent-50); color: var(--accent); }
.ic-sky { background: var(--info-50); color: #1C86B3; } .ic-green { background: var(--success-50); color: #5A8A14; } .ic-yellow { background: var(--warn-50); color: #9A7400; }
.thumb { aspect-ratio: 16/10; border-radius: 14px; background: linear-gradient(135deg, var(--primary-100), var(--info-50)); display: flex; align-items: center; justify-content: center; color: var(--primary-700); font-weight: 700; font-size: 14px; }
.thumb.o { background: linear-gradient(135deg, #FDE4C9, #FEF9E3); color: #C96A10; }
.thumb.g { background: linear-gradient(135deg, #E3F0CB, #F1F8E6); color: #5A8A14; }
.thumb.s { background: linear-gradient(135deg, #CFEBF8, #EAF7FC); color: #1C86B3; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button, .tabs a { padding: 12px 20px; font-size: 16px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .active { color: var(--primary-700); border-bottom-color: var(--primary); }
.tabs-pill { display: inline-flex; background: var(--bg-mute); padding: 4px; border-radius: 12px; gap: 2px; }
.tabs-pill button { padding: 8px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.tabs-pill .active { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.tab-panel { display: none; } .tab-panel.active { display: block; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.req::after { content: " *"; color: var(--danger); }
.input, .select, .textarea { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; font-size: 15px; transition: .15s; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.input::placeholder { color: var(--ink-4); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-sm, .select-sm { height: 36px; font-size: 14px; border-radius: 8px; }
.check, .radio { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.form-row > .label { padding-top: 10px; }
.help { font-size: 13px; color: var(--ink-3); }
.search-bar { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 20px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: none; height: 100%; font-size: 17px; background: transparent; }
.search-bar .btn { height: 40px; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 20px; border-radius: 14px; background: var(--bg-soft); margin-bottom: 20px; }
.filter-bar .select, .filter-bar .input { width: auto; min-width: 140px; height: 40px; }
.filter-bar .grow { flex: 1; }
.toggle { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--line); transition: .2s; flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: var(--shadow-s); }
.toggle.on { background: var(--primary); } .toggle.on::after { left: 23px; }

/* ---------- Tables / lists ---------- */
.table { font-size: 15px; }
.table th { background: var(--bg-soft); font-weight: 700; color: var(--ink-2); padding: 14px 12px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.table td { padding: 15px 12px; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.table td.left, .table th.left { text-align: left; }
.table tbody tr:hover { background: #FAFBFC; }
.table .title a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.new { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 800; margin-left: 6px; vertical-align: 2px; }
.table .pin { color: var(--primary-700); font-weight: 700; }
.table-sm th { padding: 10px; font-size: 13px; } .table-sm td { padding: 10px; font-size: 14px; }
.list-total { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.list-total b { color: var(--primary-700); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 28px; }
.pagination a, .pagination button { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); }
.pagination .active { background: var(--ink); color: #fff; font-weight: 700; }
.pagination a:hover:not(.active) { background: var(--bg-mute); }
.board-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.board-list li a { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list li a:hover { color: var(--primary-700); }
.board-list .date { font-size: 13px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.dl-list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 15px; }
.dl-list dt { color: var(--ink-3); font-weight: 600; } .dl-list dd { margin: 0; }
.kv { display: flex; gap: 12px; font-size: 14px; } .kv dt { color: var(--ink-3); min-width: 72px; } .kv dd { margin: 0; }

/* ---------- Steps / progress ---------- */
.steps { display: flex; gap: 8px; counter-reset: s; margin-bottom: 32px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps li.done { color: var(--primary-700); } .steps li.done::before { background: var(--primary); color: #fff; border-color: var(--primary); content: "✓"; }
.steps li.current { background: var(--ink); color: #fff; } .steps li.current::before { background: var(--primary); color: #fff; border-color: var(--primary); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-mute); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

/* ---------- Notice / alert / empty ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: var(--info-50); color: #1C6F94; } .alert-warn { background: var(--warn-50); color: #7A5C00; }
.alert-success { background: var(--success-50); color: #4A7410; } .alert-danger { background: var(--danger-50); color: #B4262B; }
.alert-primary { background: var(--primary-50); color: var(--primary-700); }
.empty { text-align: center; padding: 64px 20px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 16px; }
.empty .ico { font-size: 40px; margin-bottom: 8px; }
.callout { border-left: 4px solid var(--primary); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: 15px; }
.bullets li { position: relative; padding-left: 14px; font-size: 15px; color: var(--ink-2); margin: 6px 0; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* ---------- Stat tiles ---------- */
.stat { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-s); }
.stat .stat-label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.stat .stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .stat-value small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.stat .stat-delta { font-size: 12px; margin-top: 6px; font-weight: 600; }
.stat .up { color: #2E8B57; } .stat .down { color: var(--danger); }

/* ---------- Calendar ---------- */
.cal { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.cal-head div { padding: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.cal-head div:first-child { color: var(--danger); } .cal-head div:last-child { color: #1C86B3; }
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 108px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 8px; font-size: 13px; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell .d { font-weight: 700; color: var(--ink-2); display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; }
.cal-cell.other .d { color: var(--ink-4); }
.cal-cell.today .d { background: var(--ink); color: #fff; }
.cal-cell.sel { background: var(--primary-50); }
.cal-cell:nth-child(7n+1) .d { color: var(--danger); }
.cal-ev { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.ev-teal { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary); }
.ev-orange { background: var(--accent-50); color: #C96A10; border-color: var(--accent); }
.ev-sky { background: var(--info-50); color: #1C86B3; border-color: var(--info); }
.ev-green { background: var(--success-50); color: #5A8A14; border-color: var(--success); }
.ev-yellow { background: var(--warn-50); color: #9A7400; border-color: var(--warn); }
.ev-gray { background: var(--bg-mute); color: var(--ink-3); border-color: var(--ink-4); text-decoration: line-through; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal .dialog { position: relative; background: #fff; border-radius: 20px; width: min(100%, 560px); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-l); }
.modal .dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-2); font-size: 18px; font-weight: 700; }
.modal .dialog-body { padding: 24px; }
.modal .dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line-2); background: var(--bg-soft); border-radius: 0 0 20px 20px; }

/* ---------- Prototype bar (목업 전용) ---------- */
.proto-bar { position: fixed; left: 16px; bottom: 16px; z-index: 500; display: flex; align-items: center; gap: 8px; background: rgba(31,41,55,.92); color: #fff; padding: 8px 10px 8px 14px; border-radius: 999px; font-size: 12px; box-shadow: var(--shadow-l); backdrop-filter: blur(8px); }
.proto-bar b { color: var(--ci-yellow); font-weight: 800; }
.proto-bar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.25); }
.proto-bar a { color: #E5E7EB; padding: 4px 8px; border-radius: 999px; }
.proto-bar a:hover { background: rgba(255,255,255,.12); color: #fff; }
.proto-bar > span, .proto-bar > a, .proto-bar label { white-space: nowrap; line-height: 1.2; }
.proto-bar label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.proto-bar select { height: 26px; line-height: 26px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 0 10px; font-size: 12px; outline: none; vertical-align: middle; }
.proto-bar select:focus-visible { box-shadow: 0 0 0 2px var(--ci-yellow); }
.proto-bar select option { color: var(--ink); }
.proto-bar .close { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #9CA3AF; }
.proto-bar .close:hover { background: rgba(255,255,255,.12); color: #fff; }
.proto-note { border: 1px dashed var(--accent); background: #FFFBF6; color: #8A4B0A; font-size: 13px; padding: 10px 14px; border-radius: 10px; }
.proto-note b { color: var(--accent); }

/* ---------- 모바일 하단 탭바 (768px 미만, 사용자 화면 공통) ---------- */
.mtab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: none; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mtab ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.mtab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; font-size: 11px; font-weight: 600; color: var(--ink-3); position: relative; }
.mtab a svg { width: 22px; height: 22px; }
.mtab a.active { color: var(--primary-700); }
.mtab a.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.mtab a.cta span.ic { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,169,157,.35); border: 3px solid #fff; }
.mtab a.cta span.ic svg { width: 22px; height: 22px; }

/* ---------- AI 모의면접 진입 (메인 대시보드 버튼 영역) ---------- */
.ai-entry-sect { padding: 24px 0 40px; }
.ai-entry { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border-radius: 24px; color: #fff; background: radial-gradient(600px 300px at 0% 0%, rgba(99,102,241,.45), transparent 60%), linear-gradient(135deg, #1B2230 0%, #24305C 100%); box-shadow: var(--shadow); }
.ai-entry-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.14); color: #FFE08A; font-size: 12px; font-weight: 700; }
.ai-entry-head h2 { font-size: 26px; font-weight: 800; margin-top: 10px; letter-spacing: -0.03em; }
.ai-entry-head p { font-size: 14px; color: #C9D1DC; margin-top: 8px; line-height: 1.6; }
.ai-entry-main { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; height: 42px; padding: 0 16px; border-radius: 10px; background: #fff; color: #24305C; font-size: 14px; font-weight: 700; }
.ai-entry-main:hover { background: #EEF0FF; }
.ai-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ai-tile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; transition: background .15s, transform .15s; }
.ai-tile:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.ai-tile:focus-visible { outline: 2px solid #FFE08A; outline-offset: 2px; }
.ai-tile .ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #C7D2FE; }
.ai-tile .ico svg { width: 20px; height: 20px; }
.ai-tile .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ai-tile b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-tile small { font-size: 12px; color: #AEB8C7; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-tile .arr { flex-shrink: 0; color: #AEB8C7; font-size: 18px; }
@media (max-width: 1100px) { .ai-entry { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .ai-entry { padding: 20px; border-radius: 18px; } .ai-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ai-tile { padding: 12px; gap: 10px; } .ai-tile .ico { width: 34px; height: 34px; } .ai-tile small, .ai-tile .arr { display: none; } .ai-tile b { white-space: normal; font-size: 14px; line-height: 1.3; word-break: keep-all; } .ai-entry-head h2 { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .ai-tile { transition: none; } .ai-tile:hover { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1365px) {
  /* 1200~1365px: 소개 칸을 빼고 7개 칸을 한 줄로 (두 줄이면 1280×720 에서 패널 하단이 잘림) */
  .mega .container { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; padding-bottom: 28px; }
  .mega .mega-intro { display: none; }
  .mega .mega-cols { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
  .gnb > ul > li > a { padding: 0 10px; font-size: 15.5px; }
  .gnb > ul > li > a::after { left: 10px; right: 10px; }
  .header-main .container { gap: 12px; }
  .brand { gap: 10px; }
  .brand .site-name small { display: none; }
  .brand .site-name { font-size: 17px; padding-left: 10px; }
}
/* 1200px 미만: 7개 GNB 가 들어가지 않으므로 햄버거(전체메뉴 드로어)로 전환 */
@media (max-width: 1199px) {
  .util-bar { display: none; }
  .gnb, .mega { display: none !important; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 1100px) {
  :root { --header-h: 60px; --gutter: 20px; }
  .util-bar { display: none; }
  .gnb, .mega { display: none !important; }
  .hamburger { display: inline-flex; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand .site-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-main .container { gap: 12px; }
  .sub-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .lnb { position: static; }
  .lnb .lnb-title { display: none; }
  .lnb > ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .lnb > ul > li > a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
  .lnb > ul > li.active > a { background: var(--ink); color: #fff; border-color: var(--ink); }
  .lnb .chev, .lnb .d3 { display: none !important; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
  .section-title { font-size: 24px; }
  .sub-visual h1 { font-size: 28px; }
  .sub-visual .container { padding-top: 28px; padding-bottom: 28px; }
  .page-title { font-size: 24px; }
  .footer .footer-body .container { flex-direction: column; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 6px; }
  .hide-m { display: none !important; } .show-m { display: block !important; }
}
@media (max-width: 767px) {
  .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
  [class*="col-"] { grid-column: span 12; }
  .brand .site-name small { display: none; }
  .brand .ci { height: 24px; width: 56px; object-fit: cover; object-position: left; }
  .brand .site-name { font-size: 16px; padding-left: 10px; }
  .steps { flex-direction: column; }
  .table { font-size: 14px; } .table th, .table td { padding: 10px 8px; }
  .table .hide-s { display: none; }
  .cal-cell { min-height: 64px; padding: 4px; } .cal-ev { display: none; } .cal-cell .dots { display: flex; gap: 2px; margin-top: 4px; }
  .search-bar { height: 48px; border-radius: 12px; padding-left: 14px; } .search-bar input { font-size: 15px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .filter-bar .select, .filter-bar .input { flex: 1 1 45%; min-width: 0; }
  /* 모바일: 프로토타입 바를 우하단 소형 필로 축소 (화면 ID + 권한만) */
  .footer .footer-top .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 6px 12px; }
  .footer .footer-links { flex-wrap: wrap; gap: 6px 14px; }
  .proto-bar { left: auto; right: 8px; bottom: 8px; padding: 5px 6px 5px 10px; gap: 6px; font-size: 11px; max-width: calc(100vw - 16px); }
  .proto-bar > span:first-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .proto-bar .sep, .proto-bar > a { display: none; }
  .proto-bar label { display: inline-flex; align-items: center; gap: 4px; }
  .proto-bar select { height: 24px; line-height: 24px; padding: 0 8px; font-size: 11px; }
  .proto-bar .close { width: 20px; height: 20px; }
  body.has-mtab { padding-bottom: 60px; }
  body.has-mtab .proto-bar { bottom: 66px; }
  body.has-mtab .mtab { display: block; }
}
