/* 참조: mecha.jtu.ac.kr. 기존 사이트의 주메뉴 아래에만 적용한다. */
#department { --dept-navy:#01376d; --dept-blue:#2f7fb4; background:#fff; color:#333; }
.department-reference-top { background:var(--dept-navy); text-align:right; padding:8px 24px; }
.department-reference-top a { color:white; font-size:12px; text-decoration:none; }
.department-reference-header { background:#1a436b; display:flex; align-items:center; padding:0 26px; min-height:96px; gap:24px; }
.department-brand { border:0; background:none; color:#fff; text-align:left; cursor:pointer; min-width:220px; }
.department-brand span { display:block; font-size:14px; }
.department-brand strong { font-size:23px; }
#department .department-nav { display:flex; flex:1; padding:0; gap:0; border:0; }
.department-menu-group { position:relative; flex:1; }
.department-menu-group > button { width:100%; height:96px; border:0; background:none; color:#fff; font-family:inherit;font-weight:600; font-size:18px; cursor:pointer; }
.department-submenu { display:none; position:absolute; top:100%; left:0; min-width:170px; width:100%; background:white; z-index:20; padding:12px 0; box-shadow:0 6px 12px #0002; }
.department-submenu button { display:block; width:100%; border:0; padding:10px; background:#fff; font-size:14px; cursor:pointer; color:#334; }
.department-menu-group:hover .department-submenu,.department-menu-group:focus-within .department-submenu { display:block; }
.department-submenu button:hover { background:#e0f2f8; }
.department-reference-visual { background-color:#062e53; background-image:linear-gradient(110deg,rgba(3,31,59,.84),rgba(8,61,105,.74) 58%,rgba(5,43,78,.68)),url('/images/department/design/department-hero.png'); background-position:center; background-size:cover; background-repeat:no-repeat; padding-top:1px; }
.department-reference-title { padding:115px 32px 44px; min-height:400px; color:#e2f3ff; text-shadow:0 2px 12px rgba(0,20,40,.6); }
.department-reference-title > p:first-child { font-size:24px; color:#5de5ff; margin:0 0 12px; }
.department-reference-title h1 { font-size:48px; color:#c9f3ff; margin:0 0 30px; line-height:1.2; }
.department-reference-description { font-size:17px; font-weight:600; line-height:1.8; margin:0; max-width:570px; color:#e2f3ff; }
.department-reference-panels { display:grid; grid-template-columns:1fr 1fr; align-items:end; }
#department #department-notices { background:#014689c9; color:white; margin:0; border:0; border-radius:0; padding:26px 30px; min-height:320px; }
#department #department-notices h2 { color:#ffffcc; font-size:22px; }
#department-notices .department-empty { color:#e5eff9; }
#department-notices .department-post { border-color:#ffffff55; }
#department-notices .department-post time { color:#e0f2f8; }
#department-notices .department-post-content { color:white; }
#department-notices .department-post summary { font-weight:500; }
#department-notices .department-badge { background:transparent; border:1px solid #c0defa; color:#ffffcc; }
.department-intro-panel { min-height:360px; padding:36px; background:#2d66a6 url('/images/department/design/intro-panel.png') center / cover no-repeat; color:#fff; }
.department-intro-panel h2 { color:#d7f2fd; font-size:26px; font-weight:500; margin:0 0 24px; }
.department-intro-panel p { line-height:1.8; font-size:16px; }
.department-intro-panel > div { display:grid; grid-template-columns:1fr 1fr; margin-top:36px; gap:0 24px; max-width:340px; }
.department-intro-panel button { color:white; text-align:left; padding:16px 0; border:0; border-bottom:1px solid #ffffff44; background:none; font-size:15px; cursor:pointer; }
.department-quick { display:flex; align-items:center; gap:24px; padding:46px 30px; }
.department-quick h2 { color:#014689; font-size:26px; line-height:1.3; min-width:125px; }
.department-quick > div { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); width:100%; gap:10px; }
.department-quick a { color:#014689; text-align:center; text-decoration:none; font-size:13px; }
.department-quick a span { display:flex; justify-content:center; align-items:center; margin:0 auto 12px; border-radius:50%; width:60px; height:60px; background:#deeff5; font-size:21px; }
.department-quick a:hover span { background:#0368b1; color:white; }
.department-reference-strips { display:grid; grid-template-columns:1fr 1fr; }
.department-reference-strips section { display:flex; gap:20px; padding:30px; background:#2f7fb4; color:white; }
.department-reference-strips section:nth-child(2) { background:#e0f2f8; color:#014689; }
.department-reference-strips h2 { min-width:105px; font-size:22px; margin:8px 0; }
.department-reference-strips section > div { display:grid; grid-template-columns:1fr 1fr; flex:1; }
.department-reference-strips button { color:inherit; text-align:left; font-size:14px; border:0; border-bottom:1px solid #ffffff55; background:none; padding:14px 8px; cursor:pointer; }
.department-reference-strips section:nth-child(2) button { border-color:#01468944; }
.department-reference-news { display:grid; grid-template-columns:3fr 1fr; gap:28px; padding:48px 30px; background:#f7fcfd; }
#department .department-reference-news .department-block { padding:0; margin:0; border:0; background:transparent; border-radius:0; }
.department-reference-news h2 { color:#014689; font-size:28px; margin:0 0 24px; }
#department .department-activity-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
#department-activities .department-post { display:flex; flex-direction:column; }
#department-activities .department-post > img { order:-1; height:160px; object-fit:cover; border-radius:0; }
#department-activities h3 { font-size:17px; }
#department-video { min-width:0; }
#department-video p { color:#667085; font-size:14px; }
#department-video > a { display:block; margin:16px 0; color:#014689; font-size:14px; }
#department #department-resources { margin:0; border-radius:0; border:0; padding:32px; }
.department-reference-footer { display:flex; justify-content:space-between; gap:24px; background:#244363; color:#fff; padding:32px; font-size:13px; }
.department-reference-footer a { color:white; text-decoration:none; margin-right:22px; }
#department-info { border:1px solid #ccc; border-radius:6px; padding:28px; width:min(660px,calc(100% - 32px)); max-height:80vh; }
#department-info::backdrop { background:#0007; }
#department-info h2 { color:#014689; }
#department-info a { color:#014689; }
#department-info button { display:block; margin-top:24px; padding:8px 20px; cursor:pointer; }
#department .department-feedback { margin:0; padding:10px 25px; }
@media(max-width:900px) {
 .department-reference-header { display:block; padding:20px 16px 0; }
 .department-brand { margin-bottom:12px; }
 .department-menu-group > button { height:54px; font-size:15px; }
 .department-submenu { min-width:130px; }
 .department-menu-group:last-child .department-submenu { left:auto; right:0; }
 .department-reference-title { padding:70px 24px 40px; }
 .department-reference-title h1 { font-size:38px; }
 .department-reference-strips section { display:block; padding:24px; }
 .department-quick { padding:24px; display:block; }
 .department-quick h2 br { display:none; }
 .department-quick > div { grid-template-columns:repeat(3,1fr); row-gap:22px; }
 .department-reference-news { grid-template-columns:1fr; }
}
@media(max-width:600px) {
 .department-reference-panels,.department-reference-strips { grid-template-columns:1fr; }
 .department-reference-title { min-height:350px; padding:65px 22px 35px; background:#00294b44; }
 .department-reference-description { font-size:14px; }
 .department-reference-description br { display:none; }
 .department-reference-title h1 { font-size:34px; }
 .department-reference-title > p:first-child { font-size:18px; }
 .department-intro-panel { min-height:300px; padding:26px; }
 #department .department-activity-grid { grid-template-columns:1fr; }
 .department-reference-footer { flex-direction:column; }
 .department-reference-news { padding:32px 22px; }
 .department-menu-group > button { font-size:13px; padding:0 4px; }
}

.department-brand img { display:block; width:165px; height:auto; margin-bottom:4px; }
.department-quick a span { font-size:0; background-position:center top; background-repeat:no-repeat; background-size:60px auto; }
.department-quick a:hover span { background-position:center bottom; }
.department-quick a:nth-child(1) span { background-image:url("/images/department/design/ico-mshort1.png"); }
.department-quick a:nth-child(2) span { background-image:url("/images/department/design/ico-mshort3.png"); }
.department-quick a:nth-child(3) span { background-image:url("/images/department/design/ico-mshort4.png"); }
.department-quick a:nth-child(4) span { background-image:url("/images/department/design/ico-mshort2.png"); }
.department-quick a:nth-child(5) span { background-image:url("/images/department/design/ico-mshort5.png"); }
.department-quick a:nth-child(6) span { background-image:url("/images/department/design/ico-mshort6.png"); }
@media(max-width:600px) {
 .department-reference-title > p:first-child { font-size:16px; overflow-wrap:anywhere; }
 .department-reference-title h1 { font-size:32px; }
 .department-reference-header { padding:18px 12px 0; }
 .department-menu-group > button { font-size:12px; }
 .department-submenu { min-width:125px; }
}

/* 학과소개 내부 페이지: 참조 사이트의 배너·좌측 메뉴·본문 구성 */
#department-introduction-page { background:#fff; scroll-margin-top:70px; }
.department-sub-banner { min-height:220px; padding:38px 28px; background:#083a61 url('/images/department/design/intro-banner.png') center / cover no-repeat; color:#fff; }
.department-sub-banner > p:first-child { font-size:15px; margin:0 0 8px; }
.department-sub-banner h2 { font-size:38px; line-height:1.2; margin:0 0 14px; color:#fff; }
.department-sub-banner > p:last-child { font-size:16px; line-height:1.5; margin:0; }
.department-sub-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:34px; padding:0 24px 70px; }
.department-side-menu h2 { background:#014689; color:white; font-size:25px; font-weight:600; text-align:center; padding:38px 15px; margin:0; }
.department-side-menu button { width:100%; display:block; text-align:left; border:1px solid #ddd; border-top:0; background:#f6f6f6; padding:20px; cursor:pointer; font:inherit; font-size:15px; color:#222; }
.department-side-menu button[aria-current=page] { background:#369; border-color:#369; color:white; }
.department-side-menu button span { float:right; }
.department-sub-article { min-width:0; }
.department-breadcrumb { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #eee; color:#929292; font-size:12px; gap:12px; min-height:40px; }
.department-breadcrumb button { background:transparent; border:0; color:inherit; padding:8px 6px; cursor:pointer; font:inherit; }
.department-reading-tools { display:flex; flex-shrink:0; }
.department-reading-tools button { border-left:1px solid #eee; }
.department-sub-article > h1 { margin:28px 0 24px; font-size:32px; line-height:1.3; color:#333; }
.department-sub-article > h1:focus { outline:none; }
.department-intro-reading { font-size:16px; line-height:1.7; }
.department-outline-box { padding:26px; border:1px solid #d8d8d8; background:#fff; margin:0; }
.department-outline-box p { margin:0; }
.department-outline-box ul { margin:0; padding-left:20px; }
.department-outline-box li { margin:4px 0; }
.department-intro-section { margin:30px 0; }
.department-intro-section > h2 { color:#102e62; font-size:22px; margin:0 0 20px; }
.department-intro-section > h2::before { content:'◆'; font-size:13px; margin-right:8px; vertical-align:middle; }
.department-goal-columns { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.department-goal-columns h3 { font-size:17px; text-align:center; background:#102e62; color:#fff; margin:0 0 8px; padding:18px 10px; border-radius:3px; }
.department-goal-columns > div:nth-child(2) h3 { background:#2862d5; }
.department-goal-columns dl { border:1px solid #ccc; border-radius:3px; margin:0; padding:12px; height:calc(100% - 70px); }
.department-goal-columns dl > div { display:grid; grid-template-columns:80px 1fr; min-height:100px; padding:12px 0; border-bottom:1px dotted #ddd; align-items:center; }
.department-goal-columns dl > div:last-child { border-bottom:0; }
.department-goal-columns dt { color:#153d7a; font-size:14px; padding:5px; }
.department-goal-columns dd { font-size:.9em; margin:0; padding-left:16px; border-left:1px dotted #ddd; }
.department-capability-heading { background:linear-gradient(90deg,#102e62,#2862d5); padding:17px; color:#fff; text-align:center; margin:16px 0 8px; font-size:17px; font-weight:500; }
.department-capabilities { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.department-capabilities > div { text-align:center; background:#f6f6f6; padding:20px 8px; }
.department-capabilities strong { display:block; color:#2862d5; font-size:clamp(18px,2.5vw,28px); }
.department-capabilities span { display:block; margin-top:6px; font-size:13px; }
.department-practice-title { font-size:19px; font-weight:500; color:#2862d5; }
.department-practice-model { display:flex; flex-direction:column; align-items:center; gap:24px; background:#f6f6f6; padding:35px 22px; }
.department-practice-model > div:first-child,.department-practice-bottom span { background:#596b8c; color:white; padding:14px 18px; text-align:center; font-size:.9em; }
.department-practice-model > strong { display:flex; justify-content:center; align-items:center; width:174px; height:174px; border-radius:50%; background:#2862d5; outline:1px solid #2862d5; outline-offset:9px; border:6px solid #fff; color:white; font-size:23px; line-height:1.4; text-align:center; font-weight:500; margin:8px; }
.department-practice-bottom { display:flex; justify-content:space-between; gap:24px; width:100%; }
.department-practice-bottom span { flex:1; }
.department-intro-source { color:#667085; font-size:13px; }
.department-intro-source a { color:#014689; }
@media(max-width:800px) {
 .department-sub-layout { grid-template-columns:1fr; gap:20px; padding:0 20px 40px; }
 .department-side-menu { display:flex; flex-wrap:wrap; margin-top:20px; }
 .department-side-menu h2 { width:100%; padding:16px; font-size:21px; }
 .department-side-menu button { width:33.333%; padding:14px 8px; font-size:14px; text-align:center; }
 .department-side-menu button span { display:none; }
 .department-sub-banner { padding:30px 20px; }
 .department-sub-banner h2 { font-size:30px; }
 .department-sub-banner br { display:none; }
 .department-goal-columns { grid-template-columns:1fr; gap:20px; }
 .department-capabilities { grid-template-columns:1fr 1fr; }
 .department-practice-bottom { flex-direction:column; gap:10px; }
 .department-breadcrumb { flex-wrap:wrap; gap:0; }
 .department-outline-box { padding:20px; }
}
@media print {
 body:has(#department-introduction-page:not([hidden])) .header,
 body:has(#department-introduction-page:not([hidden])) .intro-section,
 body:has(#department-introduction-page:not([hidden])) .footer,
 body:has(#department-introduction-page:not([hidden])) .department-reference-header,
 body:has(#department-introduction-page:not([hidden])) .department-reference-top,
 body:has(#department-introduction-page:not([hidden])) .department-side-menu,
 body:has(#department-introduction-page:not([hidden])) .department-reading-tools,
 body:has(#department-introduction-page:not([hidden])) .department-reference-footer { display:none !important; }
 .department-sub-layout { display:block; padding:0; }
 .department-sub-banner { min-height:auto; background:none; color:#222; }
 .department-sub-banner h2 { color:#222; }
}
/* 전체 메뉴 공통 내부 페이지 */
.department-menu-group > button[aria-current=true] { color:#bcefff; }
.department-intro-reading > #department-notices,
.department-intro-reading > #department-activities,
.department-intro-reading > #department-resources { margin:0 !important; padding:0 !important; background:white !important; color:#333 !important; border:0 !important; min-height:300px !important; }
#department .department-intro-reading #department-notices h2 { color:#102e62; }
#department .department-intro-reading #department-notices .department-empty,
#department .department-intro-reading #department-notices .department-post-content { color:#333; }
#department .department-intro-reading #department-notices .department-post { border-color:#ddd; }
#department .department-intro-reading #department-notices .department-post time { color:#667085; }
#department .department-intro-reading #department-notices .department-badge { color:#153d7a; border-color:#bdd0e4; }
.department-intro-reading > #department-video { min-height:300px; }
.department-page-topics { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.department-page-topics .department-intro-section { margin:10px 0; }
@media(max-width:800px) {
 .department-side-menu button { width:auto; flex:1 1 33%; }
 .department-page-topics { grid-template-columns:1fr; }
}
