/* =========================================================================
   Sogang University College of Engineering — public site styles
   Brand: Sogang Cardinal (PANTONE 704C ≈ #861F1C), 1805C (#B11116), Cool Gray 5C
   ========================================================================= */
:root {
  --cardinal: #861F1C;
  --cardinal-600: #741918;
  --cardinal-700: #5C1312;
  --cardinal-800: #3F0D0C;
  --cardinal-50: #FBF4F3;
  --cardinal-100: #F3E2E0;
  --cardinal-200: #E6C4C1;
  --red: #B11116;
  --ink: #18181B;
  --ink-2: #34343A;
  --ink-3: #55555D;
  --muted: #71717A;
  --line: #E7E4E1;
  --line-2: #D8D4D0;
  --soft: #F6F4F2;
  --soft-2: #EFEBE8;
  --gray: #B1B3B6;
  --silver: #A7A9AC;       /* Sogang silver */
  --silver-200: #DEDFE1;
  --silver-50: #F4F4F5;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(24, 12, 10, .06);
  --shadow: 0 12px 34px rgba(24, 12, 10, .09);
  --shadow-lg: 0 24px 60px rgba(24, 12, 10, .16);
  --container: 1280px;
  --gutter: 24px;
  --hd-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
@media (max-width: 1100px) { :root { --hd-h: 68px; } }
@media (max-width: 640px) { :root { --gutter: 18px; --hd-h: 60px; } }
/* a phone with a notch, held sideways (the page is drawn edge to edge: viewport-fit=cover): the side gutters grow to
   the safe area, so the logo, the menu button and the text stay clear of the notch while backgrounds fill the screen */
@supports (padding: max(0px)) {
  :root { --safe-x: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --gutter: max(24px, var(--safe-x)); }
  @media (max-width: 640px) { :root { --gutter: max(18px, var(--safe-x)); } }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 60px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-sub { padding-top: var(--hd-h); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ico { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--cardinal); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--cardinal); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }

/* ---- buttons, chips, badges -------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn-primary { background: var(--cardinal); color: #fff; }
.btn-primary:hover { background: var(--cardinal-700); }
.btn-line { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--cardinal); color: var(--cardinal); }
.btn-block { width: 100%; }
.btn-hero { margin-top: 36px; background: #fff; color: var(--ink); height: 54px; padding: 0 28px; }
.btn-hero:hover { background: var(--cardinal); color: #fff; }
.btn-hero .ico { transition: transform .2s; }
.btn-hero:hover .ico { transform: translateX(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: all .2s; }
.chip:hover { border-color: var(--cardinal); color: var(--cardinal); }
.chip.is-active { background: var(--cardinal); border-color: var(--cardinal); color: #fff; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-right: 8px; border-radius: 6px; background: var(--cardinal); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; vertical-align: 2px; letter-spacing: 0; }
.new { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; vertical-align: 2px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.alert-error { background: #FDECEC; color: #9B1C1C; }

/* ---- header ---------------------------------------------------------------- */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hd-h); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, box-shadow .3s; }
.hd::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--cardinal); z-index: 3; }
.hd-in { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; height: 100%; max-width: calc(1440px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.hd-logo { display: flex; align-items: center; gap: 14px; flex: none; color: var(--ink); }
.hd-logo img { width: auto; height: 46px; }
.hd-logo-w { display: none; }
.hd-sep { width: 1px; height: 30px; background: var(--line-2); }
.hd-college { display: flex; flex-direction: column; line-height: 1.2; }
.hd-college strong { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.hd-college small { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }
.gnb { margin-left: auto; height: 100%; }
.gnb-ul { display: flex; height: 100%; }
.gnb-li { position: relative; min-width: 150px; padding: 0 8px; height: 100%; }
.gnb-a { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 17.5px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); position: relative; transition: color .2s; white-space: nowrap; }
.gnb-a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--cardinal); transition: width .25s var(--ease), left .25s var(--ease); }
.gnb-li:hover .gnb-a, .gnb-li:focus-within .gnb-a, .gnb-li.is-active .gnb-a { color: var(--cardinal); }
.gnb-li:hover .gnb-a::after, .gnb-li.is-active .gnb-a::after { width: 40%; left: 30%; }
.gnb-sub { position: absolute; top: 100%; left: 0; width: 100%; padding: 22px 8px 26px; opacity: 0; visibility: hidden; transition: opacity .2s; text-align: center; }
/* a name wider than its column (시스템반도체공학과, “Semiconductor”) stays centred under its menu instead of leaning right */
.gnb-sub li { display: flex; justify-content: center; }
.gnb-sub li + li { margin-top: 4px; }
.gnb-sub a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; font-size: 15px; color: var(--ink-3); border-radius: 8px; line-height: 1.4; transition: color .15s, background .15s; }
.gnb-sub a:hover, .gnb-sub a:focus-visible { color: var(--cardinal); background: var(--cardinal-50); }
.gnb-sub .lock, .gnb-sub .ext { display: inline-flex; color: var(--gray); }
.hd-panel { position: absolute; left: 0; right: 0; top: 100%; height: 0; background: #fff; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .18); border-top: 1px solid var(--line); transition: height .25s var(--ease); overflow: hidden; z-index: 1; }
.hd.is-mega .gnb-sub { opacity: 1; visibility: visible; }
.hd.is-mega .hd-panel { height: var(--mega-h, 240px); }
.hd-util { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.hd-lang { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: all .2s; }
.hd-lang:hover { border-color: var(--cardinal); color: var(--cardinal); }
.hd-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 50%; transition: background .2s, color .2s; }
.hd-icon:hover { background: var(--cardinal-50); color: var(--cardinal); }
.hd-menu { display: none; }
/* transparent header over the home hero */
.hd--over:not(.is-scrolled):not(.is-mega) { background: linear-gradient(180deg, rgba(10, 6, 6, .55), rgba(10, 6, 6, 0)); border-color: transparent; color: #fff; }
.hd--over:not(.is-scrolled):not(.is-mega)::before { opacity: 0; }
.hd--over:not(.is-scrolled):not(.is-mega) .hd-logo, .hd--over:not(.is-scrolled):not(.is-mega) .gnb-a, .hd--over:not(.is-scrolled):not(.is-mega) .hd-icon { color: #fff; }
.hd--over:not(.is-scrolled):not(.is-mega) .hd-logo-c { display: none; }
.hd--over:not(.is-scrolled):not(.is-mega) .hd-logo-w { display: block; }
.hd--over:not(.is-scrolled):not(.is-mega) .hd-sep { background: rgba(255, 255, 255, .45); }
.hd--over:not(.is-scrolled):not(.is-mega) .hd-college small { color: rgba(255, 255, 255, .8); }
.hd--over:not(.is-scrolled):not(.is-mega) .hd-lang { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hd--over:not(.is-scrolled):not(.is-mega) .hd-icon:hover { background: rgba(255, 255, 255, .15); }
.hd--over:not(.is-scrolled):not(.is-mega) .gnb-a::after { background: #fff; }
.hd.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
@media (max-width: 1360px) { .gnb-li { min-width: 124px; padding: 0 6px; } .gnb-a { font-size: 16.5px; } }
.hd-college.is-en strong { font-size: 17px; letter-spacing: -0.01em; }
@media (max-width: 1400px) { html[lang="en"] .gnb-li { min-width: 124px; padding: 0 6px; } }
/* English names are longer: between 1201 and 1300px the top menu is a little tighter, so the language and search buttons stay in the window */
@media (min-width: 1201px) and (max-width: 1300px) {
  html[lang="en"] .gnb-sub a { font-size: 13.5px; padding: 6px 4px; }
  html[lang="en"] .hd-in { gap: 16px; }
  html[lang="en"] .gnb-li { min-width: 108px; padding: 0 5px; }
  html[lang="en"] .gnb-a { font-size: 16px; }
  html[lang="en"] .hd-util { margin-left: 2px; }
  html[lang="en"] .hd-lang { padding: 0 11px; }
  .hd-college.is-en strong { font-size: 15px; }
}
/* the top menu with its panel of sub menus needs about 1200px: narrower windows, and tablets held sideways, get the menu button */
@media (max-width: 1200px) {
  .gnb { display: none; }
  .hd-menu { display: inline-grid; }
  .hd-util { margin-left: auto; }
}
@media (max-width: 1100px) {
  .hd-logo img { height: 38px; }
  .hd-college strong { font-size: 17px; }
}
@media (max-width: 640px) {
  .hd-in { gap: 10px; }
  .hd-logo { gap: 10px; }
  .hd-logo img { height: 32px; }
  .hd-sep { height: 22px; }
  .hd-college strong { font-size: 15px; }
  .hd-college small { display: none; }
  .hd-lang { height: 34px; padding: 0 10px; }
  .hd-lang .ico { display: none; }
  .hd-icon { width: 38px; height: 38px; }
  /* English on a phone: “College of Engineering” on two lines, so the search and menu buttons stay on the screen */
  .hd-college.is-en strong { max-width: 6.4em; font-size: 13px; line-height: 1.2; letter-spacing: 0; }
}
@media (max-width: 380px) { .hd-sep, .hd-college { display: none; } }

/* ---- drawer (mobile menu) --------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer[hidden] { display: none; }
.drawer-dim { position: absolute; inset: 0; background: rgba(10, 6, 6, .5); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 90vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; overscroll-behavior: contain; }
.drawer.is-open .drawer-dim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-panel > * { flex: none; }
@supports (padding: max(0px)) { .drawer-panel { padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); border-top: 3px solid var(--cardinal); }
.drawer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.drawer-logo img { height: 32px; width: auto; }
.drawer-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 0; }
.drawer-tools .chip { height: 34px; padding: 0 12px; font-size: 13.5px; }
.drawer-search { display: flex; margin: 14px 20px 8px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.drawer-search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; outline: none; }
.drawer-search button { border: 0; background: var(--cardinal); color: #fff; width: 48px; display: grid; place-items: center; }
.dn { padding: 8px 0 32px; }
.dn-li { border-bottom: 1px solid var(--line); }
.dn-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 20px; border: 0; background: none; font-size: 18px; font-weight: 700; text-align: left; letter-spacing: -0.02em; }
.dn-toggle .ico { transition: transform .25s; color: var(--muted); }
.dn-toggle[aria-expanded="true"] { color: var(--cardinal); }
.dn-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); color: var(--cardinal); }
.dn-sub { padding: 0 20px 16px; background: var(--soft); }
.dn-sub a { display: flex; align-items: center; gap: 6px; padding: 11px 12px; font-size: 16px; color: var(--ink-2); border-radius: 8px; }
.dn-sub a:hover { color: var(--cardinal); background: #fff; }
.dn-sub li:first-child a { margin-top: 10px; }
.dn-sub .lock, .dn-sub .ext { display: inline-flex; color: var(--gray); }

/* ---- search overlay ---------------------------------------------------------- */
.search-ov { position: fixed; inset: 0; z-index: 400; background: rgba(20, 8, 8, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; padding: 18vh var(--gutter) 0; }
.search-ov[hidden] { display: none; }
.search-box { position: relative; width: 100%; max-width: 760px; }
.search-box .btn { flex: none; }
@media (max-width: 480px) { .search-box .btn { width: 48px; padding: 0; } .search-box .btn span { display: none; } }
.search-box form { display: flex; gap: 10px; border-bottom: 2px solid #fff; padding-bottom: 12px; }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: clamp(22px, 4vw, 34px); font-weight: 600; outline: none; }
.search-box input::placeholder { color: rgba(255, 255, 255, .5); }
.search-close { position: absolute; top: max(-70px, calc(6px - 18vh)); right: 0; border: 0; background: none; color: #fff; }

/* ---- hero -------------------------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 980px; background: #6e1a18; color: #fff; overflow: hidden; }
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: #6e1a18; }
.hero-media picture, .hero-img, .hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img, .hero-vid { object-fit: cover; object-position: 62% 50%; }
.hero-img { transform: scale(1.06); transition: transform 8s linear; }
.hero-slide.is-active .hero-img { transform: scale(1); }
.hero-vid { opacity: 0; transition: opacity .9s ease; }
.hero-vid.is-on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48, 10, 9, .42) 0%, rgba(48, 10, 9, .18) 45%, rgba(48, 10, 9, 0) 100%), linear-gradient(0deg, rgba(40, 8, 8, .32) 0%, rgba(40, 8, 8, 0) 38%); }
.hero-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: var(--hd-h); padding-bottom: 120px; max-width: calc(1440px + var(--gutter) * 2); }
.hero-in--center { align-items: center; text-align: center; }
.hero-label { font-size: 13px; font-weight: 700; letter-spacing: .22em; color: rgba(255, 255, 255, .8); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.hero-label::before { content: ''; width: 36px; height: 2px; background: var(--red); }
.hero-in--center .hero-label::before { display: none; }
.hero-title { font-size: clamp(36px, 5.2vw, 72px); font-weight: 800; line-height: 1.18; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.7; color: rgba(255, 255, 255, .88); max-width: 640px; }
.hero-slide .hero-label, .hero-slide .hero-title, .hero-slide .hero-sub, .hero-slide .btn-hero { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-label { opacity: 1; transform: none; transition-delay: .2s; }
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: .35s; }
.hero-slide.is-active .hero-sub { opacity: 1; transform: none; transition-delay: .5s; }
.hero-slide.is-active .btn-hero { opacity: 1; transform: none; transition-delay: .65s; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 118px; z-index: 5; display: flex; align-items: center; gap: 22px; max-width: calc(1440px + var(--gutter) * 2); }
.hero-count { font-size: 14px; letter-spacing: .08em; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.hero-count b { color: #fff; font-size: 16px; margin-right: 6px; }
.hero-count span { margin-right: 6px; }
.hero-bars { display: flex; gap: 8px; }
.hero-bar { width: 56px; height: 22px; padding: 0; border: 0; background: none; display: flex; align-items: center; }
.hero-bar i { position: relative; display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 2px; overflow: hidden; }
.hero-bar i::after { content: ''; position: absolute; inset: 0; width: 0; background: #fff; }
.hero-bar.is-active i::after { animation: heroBar var(--dur, 7s) linear forwards; }
.hero.is-paused .hero-bar.is-active i::after { animation-play-state: paused; }
@keyframes heroBar { to { width: 100%; } }
.hero-btns { display: flex; gap: 8px; margin-left: 6px; }
.hero-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .15); color: #fff; transition: background .2s, border-color .2s; }
.hero-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-btn .i-play { display: none; }
.hero.is-paused .hero-btn .i-play { display: block; }
.hero.is-paused .hero-btn .i-pause { display: none; }
.hero-scroll { position: absolute; left: 50%; bottom: 34px; z-index: 4; width: 1px; height: 54px; background: rgba(255, 255, 255, .25); overflow: hidden; display: none; }
.hero-scroll span { position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: #fff; animation: scrollHint 2s ease-in-out infinite; }
@keyframes scrollHint { to { top: 100%; } }
@media (max-width: 1100px) { .hero { min-height: 560px; max-height: 820px; } .hero-in { padding-bottom: 150px; } .hero-ctrl { bottom: 96px; } }
@media (max-width: 640px) {
  .hero { height: 86svh; min-height: 520px; }
  .hero-in { padding-bottom: 140px; justify-content: flex-end; }
  .hero-title { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-label { font-size: 12px; letter-spacing: .06em; gap: 10px; margin-bottom: 14px; line-height: 1.6; }
  .hero-label::before { display: none; }
  .hero-sub { font-size: 15px; margin-top: 14px; }
  .btn-hero { margin-top: 26px; height: 48px; padding: 0 22px; }
  .hero-ctrl { bottom: 76px; gap: 14px; }
  .hero-bar { width: 28px; }
  .hero-btn { width: 36px; height: 36px; }
  .hero-btn[data-prev] { display: none; }
}

/* ---- departments: five tiles in the university colours (Sogang cardinal and silver) ---------------------- */
.depts { position: relative; z-index: 6; margin-top: -64px; }
.dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dept-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, background-color .35s; }
.dept-main { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 2px 10px; padding: 26px 22px 20px; flex: 1; color: var(--ink); }
.dept-ico { grid-column: 1 / -1; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: var(--cardinal); color: #fff; transition: background-color .35s, color .35s; }
.dept-txt { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dept-name { font-size: 18.5px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.dept-en { font-size: 12.5px; color: var(--muted); line-height: 1.4; transition: color .35s; }
.dept-tag { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--silver-200); font-size: 13px; line-height: 1.55; color: var(--ink-3); transition: color .35s, border-color .35s; }
.dept-go { grid-column: 2; grid-row: 2; align-self: end; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--silver-200); color: var(--cardinal); transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease); }
/* silver foot: the university's second colour */
.dept-home { display: flex; align-items: center; gap: 4px; padding: 12px 22px; font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--silver-50); border-top: 1px solid var(--silver-200); transition: color .35s, background-color .35s, border-color .35s; }
.dept-home:hover { color: var(--cardinal); }
/* pointer or keyboard on a tile: it lifts and turns cardinal */
.dept-card:hover, .dept-card:focus-within { transform: translateY(-6px); background: var(--cardinal); box-shadow: 0 22px 48px rgba(134, 31, 28, .28); }
.dept-card:hover .dept-main, .dept-card:focus-within .dept-main { color: #fff; }
.dept-card:hover .dept-ico, .dept-card:focus-within .dept-ico { background: #fff; color: var(--cardinal); }
.dept-card:hover .dept-en, .dept-card:focus-within .dept-en { color: rgba(255, 255, 255, .75); }
.dept-card:hover .dept-tag, .dept-card:focus-within .dept-tag { color: rgba(255, 255, 255, .9); border-top-color: rgba(255, 255, 255, .25); }
.dept-card:hover .dept-go, .dept-card:focus-within .dept-go { background: #fff; border-color: #fff; color: var(--cardinal); transform: translateX(3px); }
.dept-card:hover .dept-home, .dept-card:focus-within .dept-home { color: rgba(255, 255, 255, .88); background: var(--cardinal-600); border-top-color: rgba(255, 255, 255, .14); }
.dept-card:hover .dept-home:hover, .dept-card:focus-within .dept-home:focus-visible { color: #fff; }
@media (max-width: 1100px) {
  .depts { margin-top: -48px; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .depts { margin-top: -40px; }
  .dept-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px 2px 18px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .dept-grid::-webkit-scrollbar { display: none; }
  .dept-card { scroll-snap-align: start; }
}

/* ---- section heads ----------------------------------------------------------------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.035em; }
.sec-head h3 { font-size: 24px; font-weight: 800; }
.sec-head h3 small { font-size: 16px; color: var(--cardinal); margin-left: 6px; }
.sec-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.sec-more:hover { color: var(--cardinal); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--cardinal); margin-bottom: 14px; }

/* ---- news: 2 × 2 boards, titles only -------------------------------------------------------- */
.news { padding: 88px 0 96px; }
.nbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 64px; }
.nbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.nbox-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.nbox-head h3 a:hover { color: var(--cardinal); }
.nbox-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.nbox-more:hover { color: var(--cardinal); }
.nbox-list li { border-bottom: 1px solid var(--line); }
.nbox-list a { display: flex; align-items: center; gap: 18px; padding: 15px 2px; }
.nbox-t { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.nbox-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbox-t .badge { flex: none; }
.nbox-t .new { flex: none; }
.nbox-list li.is-notice .nbox-t { font-weight: 600; color: var(--ink); }
.nbox-d { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nbox-list a:hover .nbox-t > span { color: var(--cardinal); text-decoration: underline; text-underline-offset: 3px; }
.nbox-empty { padding: 26px 2px; color: var(--muted); font-size: 15px; }
.nbox-empty a { color: var(--cardinal); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .nbox-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
@media (max-width: 640px) {
  .news { padding: 60px 0 68px; }
  .nbox-head h3 { font-size: 20px; }
  .nbox-list a { gap: 12px; padding: 13px 0; align-items: flex-start; }
  .nbox-t { font-size: 15.5px; align-items: flex-start; }
  .nbox-t > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .nbox-t .badge { margin-top: 1px; }
  .nbox-d { font-size: 12.5px; margin-top: 3px; }
}

/* ---- intro ------------------------------------------------------------------------------- */
.intro { position: relative; padding: 96px 0; background: var(--cardinal); color: #fff; overflow: hidden; isolation: isolate; }
.intro::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .10), transparent 45%),
  radial-gradient(circle at 10% 110%, rgba(0, 0, 0, .35), transparent 50%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 80px),
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 80px); }
.intro-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.intro .eyebrow { color: rgba(255, 255, 255, .7); }
.intro h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.intro-text p { margin-top: 20px; font-size: 17px; line-height: 1.85; color: rgba(255, 255, 255, .85); max-width: 640px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 700; padding-bottom: 4px; border-bottom: 2px solid rgba(255, 255, 255, .6); transition: gap .2s, border-color .2s; }
.link-more:hover { gap: 12px; border-color: #fff; }
.intro-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(255, 255, 255, .18); border-radius: var(--radius); overflow: hidden; }
.intro-stats a, .intro-stats .st-box { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; background: rgba(60, 10, 10, .35); padding: 30px 20px; text-align: center; color: #fff; transition: background .2s; }
.intro-stats a:hover, .intro-stats a:focus-visible { background: rgba(60, 10, 10, .6); }
.st-label { font-size: 14px; color: rgba(255, 255, 255, .75); }
.st-num { margin-top: 6px; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-go { position: absolute; top: 14px; right: 14px; color: rgba(255, 255, 255, .45); transition: color .2s, transform .2s; }
.intro-stats a:hover .st-go { color: #fff; transform: translateX(2px); }
/* 학과 소개 page: the home page's department cards, stacked on phones */
.depts-index .dept-grid { margin: 0; }
@media (max-width: 720px) { .depts-index .dept-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; margin: 0; padding: 0; } }
@media (max-width: 1100px) { .intro-in { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .intro { padding: 64px 0; } .intro-stats a, .intro-stats .st-box { padding: 20px 8px; } .st-go { top: 8px; right: 8px; } }

/* ---- quick links ------------------------------------------------------------------------- */
.quick { padding: 96px 0; background: var(--soft); }
.quick-grid { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 14px; }
.quick-grid a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 12px 26px; background: #fff; border-radius: var(--radius); text-align: center; border: 1px solid transparent; transition: all .25s var(--ease); height: 100%; }
.quick-grid a:hover { border-color: var(--cardinal); transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cardinal-50); color: var(--cardinal); transition: background .25s, color .25s; }
.quick-ico img { width: 40px; height: 40px; object-fit: contain; }
.quick-grid a:hover .quick-ico { background: var(--cardinal); color: #fff; }
.quick-label { font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; }
.quick-ext { position: absolute; top: 12px; right: 12px; color: var(--gray); }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .quick { padding: 64px 0; } .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .quick-grid a { padding: 22px 10px 20px; } .quick-ico { width: 54px; height: 54px; } .quick-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); } }
.banner { padding: 0 0 96px; background: var(--soft); }
.banner img { width: 100%; border-radius: var(--radius); display: block; }

/* ---- footer ---------------------------------------------------------------------------- */
.ft { background: #18181B; color: #A1A1AA; font-size: 14.5px; position: relative; }
.ft-links { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ft-links ul { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 18px 0; }
.ft-links li + li::before { content: ''; display: inline-block; width: 1px; height: 11px; background: rgba(255, 255, 255, .2); margin: 0 16px; vertical-align: -1px; }
.ft-links a { color: #E4E4E7; font-weight: 500; }
.ft-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-main { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; padding-top: 44px; padding-bottom: 56px; align-items: start; }
.ft-brand img { height: 50px; width: auto; display: block; }
.ft-info address { font-style: normal; line-height: 1.9; }
.ft-info address span { margin-right: 18px; white-space: nowrap; }
.ft-info address b { color: #D4D4D8; font-weight: 600; margin-right: 4px; }
.ft-info a:hover { color: #fff; }
.ft-copy { margin-top: 14px; font-size: 13px; color: #71717A; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-privacy { color: #F4F4F5; font-weight: 700; }
.family { position: relative; }
.family summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 220px; height: 46px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; cursor: pointer; color: #E4E4E7; font-weight: 600; }
.family summary::-webkit-details-marker { display: none; }
.family[open] summary .ico { transform: rotate(180deg); }
.family ul { position: absolute; bottom: calc(100% + 8px); right: 0; min-width: 100%; background: #26262B; border-radius: 12px; padding: 8px; box-shadow: var(--shadow-lg); z-index: 5; }
.family a { display: block; padding: 9px 12px; border-radius: 8px; color: #E4E4E7; white-space: nowrap; }
.family a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--cardinal); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cardinal-700); }
@supports (padding: max(0px)) { .to-top { right: max(22px, env(safe-area-inset-right, 0px)); bottom: max(22px, env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 1100px) { .ft-main { grid-template-columns: 1fr; gap: 26px; } .family summary { width: 100%; } .family ul { left: 0; right: auto; } }
@media (max-width: 640px) { .ft-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 18px 0; font-size: 13.5px; } .ft-links li + li::before { display: none; } .ft-info address span { display: inline-block; } .to-top { right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; } }

/* ---- sub page frame --------------------------------------------------------------------- */
.subvis { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff; background-color: #2a1111; background-position: center; background-size: cover; background-repeat: no-repeat; isolation: isolate; }
.subvis::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(60, 10, 10, .92) 0%, rgba(96, 18, 16, .72) 45%, rgba(30, 8, 8, .35) 100%); }
.subvis-in { padding-top: 56px; padding-bottom: 52px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
.crumb a:hover { color: #fff; }
.crumb .ico { opacity: .7; }
.subvis-title { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.subvis-desc { margin-top: 10px; font-size: 16px; color: rgba(255, 255, 255, .78); }
.subnav { position: sticky; top: var(--hd-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .25); }
.subnav-ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.subnav-ul > li:first-child { margin-left: auto; }
.subnav-ul > li:last-child { margin-right: auto; }
.subnav-ul::-webkit-scrollbar { display: none; }
.subnav-ul a { position: relative; display: flex; align-items: center; gap: 5px; height: 62px; padding: 0 22px; white-space: nowrap; font-size: 16px; font-weight: 600; color: var(--ink-3); transition: color .2s; }
.subnav-ul a::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; background: var(--cardinal); transform: scaleX(0); transition: transform .25s var(--ease); }
.subnav-ul a:hover { color: var(--ink); }
.subnav-ul a.is-active { color: var(--cardinal); }
.subnav-ul a.is-active::after { transform: none; }
.subnav-ul .ico { color: var(--gray); }
.sub-body { max-width: calc(1080px + var(--gutter) * 2); padding-top: 72px; padding-bottom: 110px; }
.sub-body.is-wide { max-width: calc(var(--container) + var(--gutter) * 2); }
@media (max-width: 900px) { .subnav-ul > li:first-child { margin-left: 0; } .subnav-ul > li:last-child { margin-right: 0; } }
/* a phone held sideways is short: the sub menu scrolls away with the page instead of staying under the header */
@media (max-height: 500px) and (orientation: landscape) { .subnav { position: static; } }
@media (max-width: 640px) { .subvis { min-height: 210px; } .subvis-in { padding-top: 36px; padding-bottom: 32px; } .crumb { font-size: 13px; margin-bottom: 10px; } .subnav-ul a { height: 52px; padding: 0 16px; font-size: 15px; } .subnav-ul a::after { left: 16px; right: 16px; } .sub-body { padding-top: 44px; padding-bottom: 72px; } }

/* ---- rich content ---------------------------------------------------------------------- */
.content { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.content > * + * { margin-top: 1.1em; }
.content p { margin: 0; }
.content p + p { margin-top: .9em; }
.content h1, .content h2 { font-size: 28px; color: var(--ink); margin-top: 1.8em; }
.content h3 { position: relative; font-size: 23px; font-weight: 800; color: var(--ink); margin-top: 2.2em; margin-bottom: .6em; padding-left: 16px; }
.content h3::before { content: ''; position: absolute; left: 0; top: .22em; bottom: .22em; width: 4px; border-radius: 2px; background: var(--cardinal); }
.content h4 { font-size: 19px; color: var(--ink); margin-top: 1.6em; }
.content > h2:first-child, .content > h3:first-child, .content > .page-lead:first-child { margin-top: 0; }
.content a { color: var(--cardinal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.content a:hover { text-decoration-thickness: 2px; }
.content strong, .content b { color: var(--ink); }
.content ul { padding-left: 1.3em; list-style: disc; }
.content ol { padding-left: 1.4em; list-style: decimal; }
.content li + li { margin-top: .35em; }
.content li::marker { color: var(--cardinal); }
.content img { border-radius: 8px; }
/* a picture or box floated to one side inside a post ends with the post: the buttons under it (목록, 이전글/다음글) are not pushed aside */
.content::after { content: ''; display: block; clear: both; }
/* Whatever sizes a post was written with (old posts brought over, text pasted from other programs, pictures
   sized in the editor), it stays inside the page: boxes are at most as wide as the page, a picture given a
   width and a height keeps its shape when it has to shrink, a line that may not wrap does wrap on small screens. */
.content :where(:not(table, thead, tbody, tfoot, tr, td, th, colgroup, col, caption)) { max-width: 100%; }
.content img { height: auto !important; }
.content pre { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px; border-radius: 10px; background: var(--soft); font-size: 14px; line-height: 1.6; white-space: pre; word-break: normal; }
.content [style*="flex"] { flex-wrap: wrap; }
.content :is(p, div, li, dd, dt, blockquote, h1, h2, h3, h4, h5, h6, section, article)[style*="nowrap"] { white-space: normal !important; }
@media (max-width: 1100px) { .content :not(td):not(th)[style*="nowrap"] { white-space: normal !important; } }
/* “keep my line breaks” written on a paragraph (not a <pre> box): the line breaks stay, but long lines wrap */
.content :not(pre)[style*="white-space: pre"]:not([style*="pre-wrap"]):not([style*="pre-line"]) { white-space: pre-wrap !important; }
@media (max-width: 900px) { .content :not(table):not(td):not(th):not(col)[style*="min-width"] { min-width: 0 !important; } }
@media (max-width: 640px) {
  .content [style*="float"] { float: none !important; }
  .content img[style*="float"], .content figure[style*="float"] { display: block; margin-left: 0 !important; margin-right: 0 !important; }
  /* the old way of putting a picture beside the text (align="left|right") */
  .content :is(img, iframe, video)[align="left"], .content :is(img, iframe, video)[align="right"] { float: none !important; display: block; }
}
.content figure { margin: 1.5em 0; }
.content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.content blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--soft); border-left: 4px solid var(--cardinal); border-radius: 0 12px 12px 0; }
.content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.content iframe { width: 100%; max-width: 100%; border: 0; border-radius: 12px; }
.content iframe[src*="youtube"], .content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.content .se-video-container figure { height: auto !important; padding-bottom: 0 !important; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.3em 0; border-top: 2px solid var(--ink);
  background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)), linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0)) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.65; min-width: 520px; }
.content table:not(:has(tr > :nth-child(2))) { min-width: 0; }
@media (max-width: 640px) { .content table:not(:has(tr > :nth-child(3))) { min-width: 0; } }
.content th, .content thead td { background: var(--soft); color: var(--ink); font-weight: 700; text-align: center; }
.content th, .content td { padding: 13px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: middle; }
.content tr > :last-child { border-right: 0; }
.content td p + p { margin-top: .3em; }
.content tbody td:first-child { font-weight: 600; color: var(--ink); }
.content .page-lead { font-size: 22px; line-height: 1.6; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 1.2em; }
.content h2.page-lead { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.content .signature { margin-top: 2.4em; text-align: right; font-size: 17px; }
.content .signature strong { font-size: 22px; margin-left: 8px; }
.content .callout { position: relative; padding: 26px 30px; background: var(--cardinal-50); border-radius: var(--radius); color: var(--cardinal-700); font-size: 19px; font-weight: 700; text-align: center; line-height: 1.6; }
.content .pillars { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.6em 0; }
.content .pillars li { margin: 0; padding: 30px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: #fff; }
.content .pillars li strong { display: block; font-size: 19px; color: var(--cardinal); }
.content .pillars li span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.content ol.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 1.4em 0; }
.content ol.steps li { counter-increment: step; margin: 0; position: relative; padding: 58px 20px 24px; border-radius: var(--radius); background: var(--soft); min-height: 130px; }
.content ol.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 18px; left: 20px; font-size: 22px; font-weight: 800; color: var(--cardinal); letter-spacing: -0.02em; }
.content ol.steps li strong { font-size: 17px; line-height: 1.5; }
/* industry programmes (cards from 관리자 › 산학협력프로그램) */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.prog { display: flex; flex-direction: column; padding: 26px 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .3s, border-color .3s; }
.prog:hover { box-shadow: var(--shadow); border-color: transparent; }
/* head: company logo | 협력 기업 / company name */
.prog-head { display: flex; align-items: center; gap: 24px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.prog-mark { flex: none; width: 112px; height: 60px; display: flex; align-items: center; justify-content: center; padding-right: 24px; border-right: 1px solid var(--line-2); box-sizing: content-box; }
.prog-mark img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.prog-mark.is-empty .ico { width: 60px; height: 60px; padding: 16px; border-radius: 14px; background: var(--soft); color: var(--gray); box-sizing: border-box; }
.prog-co { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prog-co small { font-size: 13.5px; font-weight: 700; color: var(--cardinal); letter-spacing: .02em; }
.prog-co b { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.35; }
.prog-title { font-size: 19px; font-weight: 800; color: var(--cardinal); line-height: 1.45; margin-bottom: 14px; letter-spacing: -0.02em; }
.prog-dl { display: grid; gap: 10px; margin: 0 0 20px; font-size: 15px; line-height: 1.65; }
.prog-dl div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.prog-dl dt { font-weight: 700; color: var(--ink); }
.prog-dl dd { margin: 0; color: var(--ink-3); }
.prog-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--cardinal); padding: 8px 14px; border-radius: 8px; background: var(--cardinal-50); transition: background .2s, color .2s; }
.prog-link:hover { background: var(--cardinal); color: #fff; }
@media (max-width: 760px) { .programs { grid-template-columns: minmax(0, 1fr); margin-top: 28px; } .prog { padding: 22px 20px; } .prog-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .prog-head { gap: 18px; } .prog-mark { width: 92px; height: 52px; padding-right: 18px; } .prog-mark.is-empty .ico { width: 52px; height: 52px; padding: 13px; } .prog-co b { font-size: 18px; } }
@media (max-width: 720px) {
  .content { font-size: 16px; line-height: 1.8; }
  .content h3 { font-size: 20px; }
  .content .pillars { grid-template-columns: 1fr; }
  .content .callout { font-size: 17px; padding: 20px; }
  .content .page-lead { font-size: 19px; }
  .content table { font-size: 14.5px; min-width: 620px; }
  .content th, .content td { padding: 10px 12px; }
}

/* ---- department page ----------------------------------------------------------------- */
.dept-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 30px 32px; border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 9%, white), #fff 70%); border: 1px solid var(--line); margin-bottom: 48px; position: relative; overflow: hidden; }
.dept-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.dept-hero-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--c); color: #fff; }
.dept-hero-en { font-size: 14px; color: var(--muted); font-weight: 600; }
.dept-hero-name { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 6px; }
.dept-hero-sum { color: var(--ink-3); font-size: 16px; line-height: 1.6; }
.dept-fac { margin-top: 80px; }
@media (max-width: 800px) { .dept-hero { grid-template-columns: 1fr; padding: 24px; gap: 14px; } .dept-hero-ico { width: 56px; height: 56px; border-radius: 16px; } .dept-hero .btn { justify-self: start; } .dept-hero-name { font-size: 24px; } }

/* ---- faculty ----------------------------------------------------------------------------- */
.fac-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 26px; }
.fac-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; min-width: 300px; color: var(--muted); background: #fff; margin: 0; }
.fac-search:focus-within { border-color: var(--cardinal); color: var(--cardinal); }
.fac-search input { border: 0; outline: none; flex: 1; min-width: 0; color: var(--ink); background: transparent; }
/* research topics: quick filters under the department buttons */
.fac-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -8px 0 22px; }
.fac-topics-l { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.topic { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 14px; transition: background .2s, color .2s; }
.topic small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topic:hover { background: var(--cardinal-50); color: var(--cardinal); }
.topic.is-active { background: var(--cardinal); color: #fff; }
.topic.is-active small { color: rgba(255, 255, 255, .8); }
.fac-count { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.fac-count b { color: var(--cardinal); font-size: 17px; }
.fac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fac { display: flex; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .3s, border-color .3s; }
.fac:hover { box-shadow: var(--shadow); border-color: transparent; }
.fac[hidden] { display: none; }
.fac-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.fac-lab { align-self: flex-start; }
.fac-depts { font-size: 12.5px; color: var(--cardinal); font-weight: 700; margin-bottom: 4px; line-height: 1.45; }
.fac-name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.fac-name span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.fac-role { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fac-role span { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--soft); color: var(--ink-3); }
/* department roles (학과장 …) in the card's right column */
.fac-badges { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: 12px; max-width: 40%; }
.fac-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; max-width: 100%; padding: 10px 12px 9px; border-radius: 14px; background: var(--cardinal); color: #fff; text-align: center; box-shadow: 0 8px 18px rgba(134, 31, 28, .22); }
.fac-badge > * { max-width: 100%; overflow-wrap: anywhere; }
.fac-badge b { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.fac-badge small { font-size: 11.5px; font-weight: 600; opacity: .82; line-height: 1.3; }
.fac-badge em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .92; line-height: 1.35; margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .28); }
.fac.has-role { border-color: color-mix(in srgb, var(--cardinal) 28%, var(--line)); }
.fac-research { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.fac-meta { margin-top: 12px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-3); }
.fac-meta li { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.fac-meta li .ico { color: var(--gray); flex: none; margin-top: 4px; margin-top: calc((1lh - 15px) / 2); }
/* a long e-mail address or two phone numbers go on to the next line instead of being cut off (a narrow card on a phone) */
.fac-meta a, .fac-meta span { min-width: 0; overflow-wrap: anywhere; }
.fac-meta a:hover { color: var(--cardinal); text-decoration: underline; }
.fac-lab { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--cardinal); padding: 7px 12px; border-radius: 8px; background: var(--cardinal-50); transition: background .2s, color .2s; }
.fac-lab:hover { background: var(--cardinal); color: #fff; }
@media (max-width: 1180px) { .fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .fac-grid { grid-template-columns: minmax(0, 1fr); } .fac { padding: 18px 20px; } .fac-search { min-width: 0; width: 100%; } .fac-topics { margin-top: -10px; } .topic { height: 30px; padding: 0 10px; font-size: 13.5px; } .fac-tools .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; } .fac-tools .chip { flex: none; } }

/* ---- history ------------------------------------------------------------------------------ */
.hist .chips { margin-bottom: 40px; }
.timeline { position: relative; }
.tl-year { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 30px 0; border-top: 1px solid var(--line); }
.tl-year[hidden] { display: none; }
.tl-y { font-size: 40px; font-weight: 800; color: var(--cardinal); letter-spacing: -0.04em; line-height: 1; position: sticky; top: calc(var(--hd-h) + 80px); align-self: start; }
.tl-items li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 7px 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.tl-m { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .tl-year { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; } .tl-y { position: static; font-size: 30px; } .tl-items li { font-size: 15.5px; grid-template-columns: 34px 1fr; } }

/* ---- sitemap & search -------------------------------------------------------------------- */
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.sm-col { border-top: 3px solid var(--cardinal); padding-top: 18px; }
.sm-col h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.sm-col li a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; color: var(--ink-3); }
.sm-col li a:hover { color: var(--cardinal); }
.search-form { display: flex; gap: 10px; margin-bottom: 30px; }
.search-form input { flex: 1; min-width: 0; height: 56px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; font-size: 18px; outline: none; }
.search-form input:focus { border-color: var(--cardinal); }
.search-form .btn { height: 56px; padding: 0 28px; }
.search-sum { font-size: 17px; margin-bottom: 30px; }
.search-sum b { color: var(--cardinal); }
.sr-group { margin-bottom: 44px; }
.sr-group h2 { font-size: 20px; font-weight: 800; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.sr-list li { border-bottom: 1px solid var(--line); }
.sr-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px; }
.sr-list em { font-style: normal; font-size: 13px; color: var(--cardinal); font-weight: 700; }
.sr-list strong { font-size: 17px; }
.sr-list span { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.sr-list a:hover strong { color: var(--cardinal); }
mark { background: #FFE9A8; color: inherit; padding: 0 2px; border-radius: 3px; }
@media (max-width: 640px) { .search-form .btn span { display: none; } .search-form .btn { padding: 0 18px; } .search-form input { height: 50px; font-size: 16px; } .search-form .btn { height: 50px; } }

/* ---- boards -------------------------------------------------------------------------------- */
.board-desc { display: flex; gap: 10px; align-items: flex-start; padding: 16px 20px; background: var(--soft); border-radius: 12px; color: var(--ink-3); font-size: 15px; margin-bottom: 28px; }
.board-desc .ico { color: var(--cardinal); margin-top: 3px; }
/* pinned notice at the top of a board (a link card) */
.board-note { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 28px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); font-size: 16px; transition: border-color .2s, color .2s, box-shadow .2s; }
.board-note b { flex: 1; min-width: 0; font-weight: 700; }
.board-note-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--cardinal); color: #fff; }
.board-note-go { flex-shrink: 0; color: var(--cardinal); transition: transform .2s; }
a.board-note:hover, a.board-note:focus-visible { border-color: var(--cardinal); color: var(--cardinal); box-shadow: var(--shadow); }
a.board-note:hover .board-note-go { transform: translateX(3px); }
/* member-only board: who is signed in + sign-out */
.member-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; margin-bottom: 16px; border: 1px solid var(--cardinal-100); background: var(--cardinal-50); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); }
.member-bar > .ico { color: var(--cardinal); flex-shrink: 0; }
.member-bar > span { flex: 1; min-width: 0; }
.member-out { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--cardinal-200); color: var(--cardinal); font-weight: 700; font-size: 14px; transition: background-color .2s, color .2s; }
.member-out:hover, .member-out:focus-visible { background: var(--cardinal); color: #fff; border-color: var(--cardinal); }
@media (max-width: 560px) { .member-bar { flex-wrap: wrap; } .member-out { margin-left: auto; } }
.board-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.board-total { font-size: 15px; color: var(--ink-3); }
.board-total b { color: var(--cardinal); }
.board-search { display: flex; align-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.board-search select { border: 0; height: 100%; padding: 0 12px 0 18px; background: transparent; color: var(--ink-3); outline: none; border-right: 1px solid var(--line); }
.board-search input { border: 0; outline: none; height: 100%; padding: 0 12px; width: 220px; }
.board-search button { border: 0; background: none; width: 46px; height: 100%; color: var(--ink-3); }
.board-search:focus-within { border-color: var(--cardinal); }
.blist { border-top: 2px solid var(--ink); }
.brow { display: grid; grid-template-columns: 80px minmax(0, 1fr) 160px 110px 80px; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
.brow > * { padding: 12px 8px; }
.brow-head { min-height: 54px; font-weight: 700; color: var(--ink); background: var(--soft); }
.brow-head > * { text-align: center; }
.brow-head .c-title { text-align: center; }
.c-no, .c-author, .c-date, .c-views { text-align: center; font-variant-numeric: tabular-nums; }
.c-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-title { display: flex; align-items: center; gap: 2px; color: var(--ink); font-size: 16.5px; font-weight: 500; min-width: 0; }
.c-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-title > .new, .c-title > .ico, .c-title > .badge { flex: none; }
a.c-title:hover > span { color: var(--cardinal); text-decoration: underline; text-underline-offset: 3px; }
.c-clip { color: var(--gray); margin-left: 6px; }
.brow.is-notice { background: var(--cardinal-50); }
.brow.is-notice .c-title { font-weight: 700; }
.brow .badge { margin: 0; }
.blist > li.empty { border-bottom: 1px solid var(--line); }
.blist--notice { margin-bottom: 28px; }
.blist--noauthor .brow { grid-template-columns: 80px minmax(0, 1fr) 110px 80px; }
.board-lang, .post-lang { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); margin-bottom: 18px; }
.board-lang .ico, .post-lang .ico { color: var(--cardinal); margin-top: 3px; }
.board-lang a { color: var(--cardinal); text-decoration: underline; text-underline-offset: 3px; }
.post-lang { margin: 22px 0 0; padding: 12px 16px; background: var(--cardinal-50); border-radius: 10px; color: var(--cardinal-700); }
.m-only { display: none; }
@media (max-width: 800px) {
  .brow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 15px 4px; min-height: 0; }
  .brow.brow-head { display: none; }
  .brow > * { padding: 0; text-align: left; }
  .brow .c-no { display: none; }
  .brow.is-notice .c-no { display: inline-flex; }
  .c-title { flex: 1 1 100%; font-size: 16px; }
  .brow.is-notice { align-items: flex-start; }
  .brow.is-notice .c-no { margin-top: 2px; }
  .brow.is-notice .c-title { flex: 1 1 calc(100% - 64px); }
  .c-title > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .c-author, .c-date, .c-views { font-size: 13px; color: var(--muted); }
  .c-author { max-width: 45%; }
  .m-only { display: inline; }
  .board-search { width: 100%; }
  .board-search input { width: auto; flex: 1; min-width: 0; }
}
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gcard a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .3s, transform .3s var(--ease); }
.gcard a:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.gcard-img { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--cardinal-50), var(--soft-2)); overflow: hidden; }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.gcard-body strong { font-size: 17px; line-height: 1.45; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-desc { font-size: 14px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-date { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
/* Dean's List (views/deanslist.js): an honor roll — a certificate-like band, a card a semester, names by department */
.dl-hero { position: relative; overflow: hidden; margin: 0 0 28px; padding: 46px 28px 40px; border-radius: var(--radius); text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #7a1d1a 0%, var(--cardinal-700) 55%, var(--cardinal-800) 100%); box-shadow: var(--shadow); }
.dl-hero::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(222, 223, 225, .28); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.dl-hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); pointer-events: none; }
.dl-laurel { display: block; }
.dl-hero-laurel { width: 132px; height: auto; margin: 0 auto 6px; color: var(--silver-200); opacity: .85; }
.dl-hero-k { position: relative; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--silver-200); }
.dl-hero-t { position: relative; margin: 6px 0 0; font-family: Georgia, 'Times New Roman', 'Noto Serif KR', serif; font-weight: 400; font-size: clamp(38px, 6.4vw, 64px); line-height: 1.05; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff 0%, #eceef0 55%, #c9cbce 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-guides { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.dl-guides a { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--soft); color: var(--ink-2); font-weight: 600; }
.dl-guides a span { flex: 1; min-width: 0; }
.dl-guides a .ico:first-child { color: var(--cardinal); flex: none; }
.dl-guides a:hover { color: var(--cardinal); }
.dl-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.dl-hint .ico { flex: none; color: var(--cardinal); }
.dl-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.dl-term a { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px 24px 20px; border: 1px solid var(--line); border-top: 3px solid var(--silver); border-radius: var(--radius); background: #fff; color: var(--ink); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.dl-term a:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.dl-term.is-latest a { border-color: var(--cardinal-200); border-top-color: var(--cardinal); background: linear-gradient(180deg, var(--cardinal-50), #fff 60%); }
.dl-term-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.dl-new { order: -1; flex-basis: 100%; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cardinal); }
.dl-term-year { font-family: Georgia, 'Times New Roman', serif; font-size: 40px; line-height: 1; color: var(--cardinal-700); font-variant-numeric: lining-nums; }
.dl-term-term { font-size: 17px; font-weight: 700; color: var(--ink-2); }
.dl-term-depts { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.dl-term-depts span { display: flex; align-items: baseline; gap: 8px; }
.dl-term-depts i { font-style: normal; min-width: 0; }
.dl-term-depts span::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.dl-term-depts b { order: 2; font-weight: 700; color: var(--cardinal); font-variant-numeric: tabular-nums; }
.dl-term-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cardinal); }
@media (max-width: 1000px) { .dl-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dl-terms { grid-template-columns: 1fr; } .dl-hero { padding: 38px 18px 32px; } }
.dl-roll { margin: 6px 0 0; }
.dl-roll-head { position: relative; overflow: hidden; padding: 34px 22px 30px; border-radius: var(--radius); text-align: center; color: #fff; background: radial-gradient(120% 100% at 50% 0%, #7a1d1a 0%, var(--cardinal-700) 60%, var(--cardinal-800) 100%); }
.dl-roll-head::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(222, 223, 225, .28); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.dl-roll-laurel { width: 96px; height: auto; margin: 0 auto 4px; color: var(--silver-200); opacity: .85; }
.dl-roll-k { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; letter-spacing: .06em; color: var(--silver-200); }
.dl-roll-t { margin: 4px 0 8px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.dl-roll-s { margin: 0; font-size: 15.5px; color: rgba(255, 255, 255, .86); }
.dl-roll-s b { font-size: 19px; color: #fff; }
.dl-dept { margin-top: 34px; }
.dl-dept-t { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.dl-dept-t::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--silver), transparent); }
.dl-dept-t small { order: 1; padding: 2px 10px; border-radius: 999px; background: var(--cardinal-50); color: var(--cardinal); font-size: 13px; font-weight: 700; }
.dl-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dl-names li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--silver-200); border-radius: 12px; background: linear-gradient(180deg, #fff, var(--silver-50)); }
.dl-medal { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cardinal-50); color: var(--cardinal); box-shadow: inset 0 0 0 1px var(--cardinal-100); }
.dl-names b { font-size: 18px; font-weight: 800; letter-spacing: .12em; color: var(--ink); line-height: 1.3; }
.dl-names small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dl-names small em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cardinal); }
.dl-names li.is-first { border-color: var(--cardinal-200); background: linear-gradient(180deg, var(--cardinal-50), #fff); }
.dl-names li.is-first .dl-medal { background: var(--cardinal); color: #fff; box-shadow: none; }
.dl-roll-cheer { margin: 40px 0 0; padding: 22px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-family: Georgia, 'Times New Roman', 'Noto Serif KR', serif; font-size: 17px; color: var(--cardinal-700); }
.dl-original { margin: 26px 0 40px; }
.dl-original > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-3); cursor: pointer; list-style: none; }
.dl-original > summary::-webkit-details-marker { display: none; }
.dl-original[open] > summary { margin-bottom: 16px; color: var(--cardinal); border-color: var(--cardinal-200); }
@media (max-width: 560px) { .dl-names { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; } .dl-names li { padding: 12px; column-gap: 10px; } .dl-medal { width: 32px; height: 32px; } .dl-names b { font-size: 16px; letter-spacing: .08em; } }

/* a board shown by year (e뉴스레터): year shortcuts, then a heading and its cards per year */
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); }
.year-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .2s, border-color .2s; }
.year-nav a:hover, .year-nav a:focus-visible { color: var(--cardinal); border-color: var(--cardinal); }
.year-group { margin-top: 40px; scroll-margin-top: 20px; }
.year-title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.year-title small { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--cardinal-50); color: var(--cardinal); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* an issue per season: the four of a year side by side on a wide screen */
@media (min-width: 1001px) {
  .year-group .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .year-group .gcard-body { padding: 16px 16px 18px; }
  .year-group .gcard-body strong { font-size: 16px; }
}
@media (max-width: 560px) { .year-nav { padding: 12px; gap: 6px; } .year-nav a { min-width: 58px; padding: 0 10px; } .year-title { font-size: 21px; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager strong { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pager a:hover { background: var(--soft); color: var(--cardinal); }
.pager strong { background: var(--cardinal); color: #fff; }
.board-actions { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ---- post view -------------------------------------------------------------------------- */
.post-head { border-top: 2px solid var(--ink); padding: 32px 4px 22px; border-bottom: 1px solid var(--line); }
.post-head .badge { margin-bottom: 12px; }
.post-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.post-meta li { display: inline-flex; align-items: center; gap: 6px; }
.post-files { margin: 22px 0 0; padding: 18px 22px; background: var(--soft); border-radius: 12px; }
.post-files-t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.post-files-t b { color: var(--cardinal); }
.post-files li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-files li { min-width: 0; }
.post-files li > a:first-child { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink-2); font-size: 15px; min-width: 0; max-width: 100%; }
.post-files li > a:first-child > span { min-width: 0; overflow-wrap: anywhere; }
.post-files li > a:first-child > .ico, .post-files li > a:first-child > small { flex: none; }
.post-files li > a:first-child:hover { color: var(--cardinal); text-decoration: underline; }
.post-files li > a:first-child .ico { color: var(--cardinal); }
.post-files small { color: var(--muted); font-size: 12.5px; }
.post-file-view { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-3); }
.post-file-view:hover { border-color: var(--cardinal); color: var(--cardinal); }
.post-body { padding: 40px 4px 56px; min-height: 180px; }
.post-body img { display: inline-block; }
.post-nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.post-nav-row { display: flex; align-items: center; gap: 12px; padding: 16px 8px; font-size: 15px; }
.post-nav-row + .post-nav-row { border-top: 1px solid var(--line); }
.post-nav-row .ico { color: var(--gray); }
.post-nav-k { flex: none; width: 56px; font-weight: 700; color: var(--ink-3); }
.post-nav-row a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.post-nav-row a:hover { color: var(--cardinal); }
.post-actions { display: flex; justify-content: center; margin-top: 36px; }

/* ---- login & write ----------------------------------------------------------------------- */
.login-card { max-width: 440px; margin: 10px auto; padding: 44px 40px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); text-align: center; background: #fff; }
.login-ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--cardinal-50); color: var(--cardinal); }
.login-card h2 { font-size: 24px; font-weight: 800; }
.login-card > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.login-card .alert { margin-top: 18px; }
.login-form { margin-top: 26px; display: grid; gap: 14px; text-align: left; }
.login-form label span, .write-form label > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.login-form input, .write-form input:not([type="file"]), .write-form textarea { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; outline: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.write-form textarea { height: auto; padding: 14px 16px; line-height: 1.7; resize: vertical; }
.login-form input:focus, .write-form input:focus, .write-form textarea:focus { border-color: var(--cardinal); box-shadow: 0 0 0 4px var(--cardinal-50); }
.login-form .btn { margin-top: 8px; height: 52px; border-radius: 12px; font-size: 16px; }
.write-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.write-form input[type="file"] { max-width: 100%; }
.write-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---- errors -------------------------------------------------------------------------------- */
.err-page { padding: 120px var(--gutter) 140px; text-align: center; }
.err-code { font-size: 96px; font-weight: 800; color: var(--cardinal-100); letter-spacing: -0.04em; line-height: 1; }
.err-page h1 { margin-top: 18px; font-size: 28px; }
.err-page p:not(.err-code) { margin: 12px 0 28px; color: var(--muted); }

/* ---- popups --------------------------------------------------------------------------------- */
.popups { position: fixed; z-index: 250; top: calc(var(--hd-h) + 24px); left: var(--gutter); right: var(--gutter); pointer-events: none; }
/* each popup stays inside the window: as wide and as tall as there is room after its step in the cascade; a long one scrolls inside */
.popup { position: absolute; top: calc(var(--i) * 28px); left: calc(var(--i) * 28px); width: var(--w); max-width: calc(100% - var(--i) * 28px); display: flex; flex-direction: column;
  max-height: calc(100vh - var(--hd-h) - 48px - var(--i) * 28px); max-height: calc(100dvh - var(--hd-h) - 48px - var(--i) * 28px);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; pointer-events: auto; }
.popup[hidden] { display: none; }
.popup-body { flex: 0 1 auto; min-height: 0; max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.popup-body img { display: block; width: 100%; }
.popup-html { padding: 22px 24px; font-size: 15.5px; }
.popup-foot { flex: none; display: flex; justify-content: space-between; background: #18181B; }
.popup-foot button { border: 0; background: none; color: #fff; font-size: 14px; padding: 13px 18px; display: inline-flex; align-items: center; gap: 6px; }
/* only where there is a real pointer: on a touch screen the highlight would stay on the next popup's button after a tap */
@media (hover: hover) { .popup-foot button:hover { background: rgba(255, 255, 255, .1); } }
.popup-foot button:focus-visible { background: rgba(255, 255, 255, .1); }
/* phones, and any short window (a phone on its side): one popup at a time — closing it shows the next */
@media (max-width: 640px), (max-height: 520px) {
  .popups { top: calc(var(--hd-h) + 12px); }
  .popup { max-width: 100%; left: 0; top: 0; max-height: calc(100vh - var(--hd-h) - 24px); max-height: calc(100dvh - var(--hd-h) - 24px); }
  .popup:not([hidden]) ~ .popup:not([hidden]) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .hd, .drawer, .ft, .subnav, .to-top, .popups, .search-ov { display: none !important; }
  body.is-sub { padding-top: 0; }
  .subvis { min-height: 0; background: none !important; color: #000; }
  .subvis::before { display: none; }
}

/* ---- English site: Latin typography ------------------------------------------------------------ */
html[lang="en"] body { word-break: normal; }
html[lang="en"] .hero-title { font-size: clamp(34px, 4.5vw, 66px); line-height: 1.12; letter-spacing: -0.025em; }
html[lang="en"] .hero-sub { max-width: 820px; }
html[lang="en"] .gnb-a { font-size: 16.5px; letter-spacing: -0.01em; }
html[lang="en"] .gnb-sub a { font-size: 14.5px; }
html[lang="en"] .dept-name { font-size: 17px; letter-spacing: -0.015em; }
html[lang="en"] .intro h2, html[lang="en"] .subvis-title, html[lang="en"] .sec-head h2 { letter-spacing: -0.02em; }
html[lang="en"] .content { line-height: 1.75; }
@media (max-width: 1360px) { html[lang="en"] .gnb-a { font-size: 15.5px; } }

/* ---- 첫 화면 “최신 소식” (right side of the main slide; below it on smaller screens) ---- */
.home-top { position: relative; }
.hero-news { position: relative; z-index: 6; width: min(420px, calc(100% - var(--gutter) * 2)); margin: -56px auto 0; padding: 22px 24px 18px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 18px 44px rgba(20, 10, 10, .16); }
.home-top:not(.has-hero) .hero-news { margin-top: calc(var(--hd-h) + 24px); }
.hero-news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hero-news-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.hero-news-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--cardinal); }
.hero-news ul { list-style: none; margin: 0; padding: 0; }
.hero-news li + li { border-top: 1px solid var(--line); }
.hero-news li a { display: grid; gap: 4px; padding: 11px 2px; color: inherit; }
.hero-news li a:hover .hn-title { color: var(--cardinal); text-decoration: underline; text-underline-offset: 3px; }
.hn-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; }
.hn-board { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--cardinal); }
.hn-due, .hn-pin { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--soft); color: var(--ink-2); }
.hn-due.is-soon { background: var(--cardinal); color: #fff; }
.hn-title { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the date sits at the right end of the first line, so the title has two full lines */
.hn-date { flex: none; margin-left: auto; padding-left: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hn-empty { font-size: 14px; color: var(--muted); padding: 10px 0; }
.hero-news .new { flex: none; margin-left: 2px; }
/* below 1101px the panel sits under the slides: department cards start below it instead of overlapping it */
@media (max-width: 1100px) { .home-top + .depts { margin-top: 28px; } }
/* browsers without the blur keep the box almost solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-top.has-hero .hero-news { background: rgba(255, 255, 255, .95) !important; }
}
@media (min-width: 1101px) {
  /* top in line with the top of the slide text (site.js measures it; this is the usual spot until then), clear of the department cards below */
  .home-top.has-hero .hero-news { position: absolute; top: calc((var(--hd-h) + 100% - 120px) / 2 - 97px - min(6.1vw, 85px)); right: max(var(--gutter), calc((100% - 1440px) / 2)); width: 400px; margin: 0; max-height: calc(100% - var(--hd-h) - 108px); overflow: auto;
    background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
  /* see-through: the slide shows faintly behind; small grey text a step darker so it stays easy to read */
  .home-top.has-hero .hero-news li + li { border-top-color: rgba(60, 20, 20, .12); }
  .home-top.has-hero .hn-date { color: var(--ink-3); }
  .home-top.has-hero .hn-due:not(.is-soon), .home-top.has-hero .hn-pin { background: rgba(255, 255, 255, .75); }
  .hero.has-news .hero-in { padding-right: 460px; }
  .home-top.has-hero .hero-news li a { padding: 10px 2px; }
  .hero.has-news .hero-sub { max-width: 560px; }
}
/* closing date after a pinned notice in board lists */
.c-due { flex: none; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.c-due.is-soon { color: var(--cardinal); }
/* 전체 소식: board name in the first column */
.blist--news .brow { grid-template-columns: 130px minmax(0, 1fr) 110px 80px; }
.c-board { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--cardinal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-head .c-board { color: var(--ink); }
@media (max-width: 800px) {
  .blist--news .brow .c-board { flex: 1 1 100%; text-align: left; font-size: 12.5px; }
}

/* ---- 다가오는 행사 (home) ---- */
.events { padding: 0 0 96px; }
.ev-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cardinal); white-space: nowrap; }
.ev-more:hover { gap: 10px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.ev-card { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ev-card:hover { border-color: var(--cardinal); box-shadow: var(--shadow); transform: translateY(-2px); }
.ev-date { flex: none; display: grid; justify-items: center; width: 62px; padding: 8px 0 7px; border-radius: 12px; background: var(--cardinal-50); color: var(--cardinal); line-height: 1.1; }
.ev-date b { font-size: 12.5px; font-weight: 700; }
.ev-date strong { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ev-date small { font-size: 12px; color: var(--ink-3); }
.ev-body { display: grid; gap: 8px; min-width: 0; }
.ev-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card:hover .ev-title { color: var(--cardinal); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.ev-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.ev-board { color: var(--cardinal); font-weight: 600; }
@media (max-width: 640px) { .events { padding-bottom: 64px; } .ev-grid { grid-template-columns: 1fr; } }

/* ---- event box on a post ---- */
.post-event { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 22px; padding: 14px 18px; border-radius: 12px; background: var(--cardinal-50); color: var(--ink-2); font-size: 15px; }
.post-event > svg { color: var(--cardinal); }
.post-event b { color: var(--cardinal); margin-right: 6px; }

/* ---- 마감·행사 달력 ---- */
.cal-soon { margin-bottom: 30px; padding: 20px 24px; border-radius: var(--radius); background: var(--soft); }
.cal-soon h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin-bottom: 10px; color: var(--cardinal); }
.cal-soon ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.cal-soon a { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: inherit; }
.cal-soon a:hover .cal-st { color: var(--cardinal); text-decoration: underline; text-underline-offset: 3px; }
.cal-dd { flex: none; min-width: 52px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #fff; color: var(--ink-2); }
.cal-dd.is-soon { background: var(--cardinal); color: #fff; }
.cal-st { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-soon small { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.cal-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; min-width: 140px; text-align: center; }
.cal-nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); }
.cal-nav:hover { border-color: var(--cardinal); color: var(--cardinal); }
.cal-legend { margin-left: auto; display: flex; gap: 14px; font-size: 13.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.is-due { background: var(--cardinal); }
.dot.is-event { background: #2F4B7C; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.cal-head span { padding: 10px 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.cal-head .is-sun, .cal-day.is-sun .cal-d b { color: var(--cardinal); }
.cal-head .is-sat, .cal-day.is-sat .cal-d b { color: #2F4B7C; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.cal-day { min-height: 118px; padding: 8px 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal-day.is-out { background: var(--soft); }
.cal-d { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 6px; }
.cal-d b { font-weight: 700; }
.cal-d .cal-dfull { display: none; }
.cal-d em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--cardinal); border-radius: 999px; padding: 1px 7px; }
.cal-day.is-today { background: var(--cardinal-50); }
.cal-day ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.cal-day li { min-width: 0; }
.cal-item { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; padding: 2px 6px; border-radius: 6px; color: var(--ink-2); background: #fff; border-left: 3px solid var(--cardinal); }
.cal-item.is-event { border-left-color: #2F4B7C; }
.cal-item:hover { background: var(--soft); color: var(--cardinal); }
.cal-k { font-weight: 700; margin-right: 5px; color: var(--cardinal); }
.cal-item.is-event .cal-k { color: #2F4B7C; }
.cal-empty { margin-top: 20px; }
@media (max-width: 800px) {
  .cal-head { display: none; }
  .cal-grid { display: block; border: 0; border-top: 2px solid var(--ink); }
  .cal-day { min-height: 0; border-right: 0; padding: 12px 2px; }
  .cal-day.is-out, .cal-day:not(.has-items):not(.is-today) { display: none; }
  .cal-d b { display: none; }
  .cal-d .cal-dfull { display: inline; font-weight: 700; }
  .cal-item { display: block; word-break: keep-all; font-size: 14px; padding: 6px 10px; }
  .cal-title { font-size: 22px; min-width: 0; }
  .cal-legend { margin-left: 0; width: 100%; }
}
/* phones: in “이번 주 마감” the title goes under the D-day and the date and may take two lines (on one line it was cut after a few letters) */
@media (max-width: 640px) {
  .cal-soon { padding: 16px 18px; }
  .cal-soon a { flex-wrap: wrap; gap: 4px 10px; padding: 8px 0; }
  .cal-soon small { margin-left: auto; }
  .cal-st { order: 3; flex: 1 1 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.err-ref { margin-top: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- 공과대학 공식 학회 (/page/societies) ---- */
.soc-wrap { margin-top: 34px; }
/* every society by name: a row per kind (label + count on the left, the names as links to the cards) */
.soc-dir { display: grid; grid-template-columns: max-content minmax(0, 1fr); padding: 4px 26px; border-radius: var(--radius); background: var(--soft); }
.soc-dir-row { display: contents; }
.soc-dir-row > * { padding: 16px 0; }
.soc-dir-row + .soc-dir-row > * { border-top: 1px solid var(--line-2); }
.soc-dir-kind { display: flex; align-items: center; gap: 9px; align-self: start; min-height: 40px; box-sizing: content-box; padding-right: 26px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; transition: color .2s; }
.soc-dir-kind b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--cardinal); display: inline-flex; align-items: center; justify-content: center; }
.soc-dir-kind:hover, .soc-dir-kind:focus-visible { color: var(--cardinal); }
.soc-dir ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; list-style: none; min-width: 0; }
.soc-dir li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, box-shadow .2s; }
.soc-dir li a:hover, .soc-dir li a:focus-visible { border-color: var(--cardinal); color: var(--cardinal); box-shadow: var(--shadow-sm); }
.soc-group { margin-top: 46px; scroll-margin-top: 20px; }
.soc-group-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.soc-group-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.soc-group-head p { font-size: 15px; color: var(--muted); word-break: keep-all; }
.soc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.soc { display: flex; flex-direction: column; min-width: 0; padding: 26px 28px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .3s, border-color .3s; scroll-margin-top: 20px; }
.soc:hover, .soc:target { box-shadow: var(--shadow); border-color: transparent; }
.soc-head { display: flex; align-items: center; gap: 18px; }
.soc-mark { flex: none; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--cardinal-50); color: var(--cardinal); }
.soc-culture .soc-mark { background: var(--silver-50); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--silver-200); }
.soc-mark.has-img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; padding: 6px; }
.soc-mark img { width: 100%; height: 100%; object-fit: contain; }
.soc-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.soc-kind { font-size: 12.5px; font-weight: 700; color: var(--cardinal); letter-spacing: .02em; }
.soc-culture .soc-kind { color: var(--ink-3); }
.soc-name h3 { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.soc-name small { font-size: 13.5px; color: var(--muted); line-height: 1.5; word-break: keep-all; }
.soc-sum { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }
.soc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.soc-tags li { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--soft); border-radius: 999px; padding: 4px 11px; line-height: 1.5; }
.soc-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.soc-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--cardinal); padding: 8px 0; }
.soc-more summary::-webkit-details-marker { display: none; }
.soc-more summary .ico { transition: transform .25s var(--ease); }
.soc-more[open] summary .ico { transform: rotate(180deg); }
.soc-more summary:focus-visible { outline: 2px solid var(--cardinal); outline-offset: 2px; border-radius: 4px; }
.soc-body { margin-top: 6px; font-size: 15.5px; line-height: 1.75; }
.soc-body > :first-child { margin-top: 0; }
.soc-body h3 { font-size: 17px; margin-top: 1.5em; margin-bottom: .5em; padding-left: 12px; }
.soc-body h3::before { width: 3px; }
.soc-body h4 { font-size: 15.5px; margin-top: 1.2em; margin-bottom: .3em; }
.soc-link { margin-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--cardinal); padding: 8px 14px; border-radius: 8px; background: var(--cardinal-50); transition: background .2s, color .2s; }
.soc-link:hover { background: var(--cardinal); color: #fff; }
@media (max-width: 760px) {
  .soc-dir { display: block; padding: 2px 18px; }
  .soc-dir-row { display: block; padding: 14px 0 16px; }
  .soc-dir-row > * { padding: 0; }
  .soc-dir-row + .soc-dir-row > * { border-top: 0; }
  .soc-dir-row + .soc-dir-row { border-top: 1px solid var(--line-2); }
  .soc-dir-kind { min-height: 0; padding-right: 0; margin-bottom: 10px; font-size: 15px; }
  .soc-dir li a { padding: 0 15px; font-size: 14.5px; }
  .soc-grid { grid-template-columns: minmax(0, 1fr); }
  .soc { padding: 22px 20px 16px; }
  .soc-head { gap: 14px; }
  .soc-mark { width: 52px; height: 52px; border-radius: 14px; }
  .soc-name h3 { font-size: 20px; }
  .soc-group { margin-top: 36px; }
  .soc-group-head h2 { font-size: 21px; }
}

/* ---- touch screens: small links are easier to hit (the look stays the same) ---- */
@media (pointer: coarse) {
  .ft-links ul { row-gap: 10px; }
  .ft-links a { display: inline-block; padding: 5px 0; margin: -5px 0; }
  .ft-privacy { display: inline-block; padding: 5px 0; margin: -5px 0; }
  .crumb a { display: inline-flex; align-items: center; padding: 4px 3px; margin: -4px -3px; }
  .nbox-more, .hero-news-head a, .ev-more { padding: 9px 0 9px 10px; margin: -9px 0 -9px -10px; }
  .hero-bar { height: 34px; }
  .fac-meta a { padding: 3px 0; }
  .post-nav-row a { padding: 6px 0; }
}
