@charset "utf-8";
/* ==========================================================
   KOO's Research Group - 2026 renewal stylesheet
   White + Navy theme. This file only restyles existing markup;
   page text, links and images are left as they were.
   ========================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --navy: #14284b;
  --navy-deep: #0d1d38;
  --steel: #2f5d96;
  --sky: #9cc0e8;
  --ink: #1f2838;
  --body: #3a4456;
  --muted: #6b768a;
  --line: #d9e1ec;
  --mist: #f3f6fa;
}

html {
  scrollbar-color: #b9c6d8 transparent;
  scrollbar-width: thin;
}

body {
  background-color: #ffffff !important;
  color: var(--body);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Old <font face="..."> tags (Dotum, Gulim, Arial, Times) follow the new type */
font[face] { font-family: inherit; }

/* Map the old palette onto navy tones */
font[color="teal" i],
font[color="#006666" i],
font[color="#008080" i],
font[color="navy" i],
font[color="#000033" i],
font[color="#003366" i],
font[color="#1f497d" i],
font[color="#400080" i]       { color: var(--navy); }
font[color="black" i],
font[color="#000000" i]       { color: var(--ink); }
font[color="#555555" i],
font[color="#666666" i],
font[color="gray" i]          { color: var(--muted); }
font[color="blue" i]          { color: var(--steel); }
font[color="#8970ff" i]       { color: var(--steel); }
font[color="#cc0099" i],
font[color="#c822ae" i],
font[color="#cc3366" i],
font[color="fuchsia" i]       { color: #2a6db8; }

/* Fonts pasted in from Word (Times, Batang, Gulim...) follow the new type.
   Symbol / Wingdings are left alone because they carry Greek letters and bullets. */
[style*="font-family" i]:not([style*="Symbol" i]):not([style*="Wingdings" i]):not([style*="Webdings" i]) {
  font-family: inherit !important;
}

/* Many paragraphs are fixed at line-height:100%; let larger text inside them
   open the line instead of overlapping the line above. */
p[style*="line-height: 100%" i] *, p[style*="line-height:100%" i] * { line-height: 1.32; }
p[style*="line-height: 100%" i] br, p[style*="line-height:100%" i] br { line-height: inherit; }

/* Links */
a:link, a:visited { color: var(--steel); text-decoration: none; }
a:hover, a:focus  { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 3px; }
a:link font, a:visited font { color: inherit; }
a img { border: 0; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

/* Headings */
h1, h2, h3, h4, h5, h6 { color: var(--navy); letter-spacing: -0.01em; }

/* Ruled tables (border="1" etc.) get light navy hairlines instead of grey bevels */
table[border]:not([border="0"]) { border-collapse: collapse; border-color: var(--line) !important; }
table[border]:not([border="0"]) > tbody > tr > td,
table[border]:not([border="0"]) > tbody > tr > th,
table[border]:not([border="0"]) > tr > td,
table[border]:not([border="0"]) > tr > th {
  border: 1px solid var(--line) !important;
}
th { color: var(--navy); }

hr { border: 0; border-top: 1px solid var(--line); height: 0; }

/* Form controls that appear on a few pages */
input[type="text"], input:not([type]), select, textarea {
  border: 1px solid #c3cedd; border-radius: 4px; padding: 4px 8px;
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
input[type="submit"], input[type="button"], button {
  border: 1px solid var(--navy); border-radius: 4px; padding: 4px 12px;
  background: var(--navy); color: #fff; font: inherit; font-size: 14px; cursor: pointer;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover { background: var(--steel); border-color: var(--steel); }

::selection { background: #cfe0f5; color: var(--navy-deep); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================
   Rebuilt pages (body.kp)
   ========================================================== */
body.kp { margin: 0; padding: 0; color: var(--body); font-size: 15.5px; line-height: 1.7; }
.kp a:link, .kp a:visited { color: var(--steel); }
.kp img { max-width: 100%; height: auto; }
.kp-wrap { max-width: 1120px; margin: 0 auto; padding: 44px 48px 96px; box-sizing: border-box; }
.kp-head { margin: 0 0 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.kp-head h1, .pf-id h1 {
  margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 400; font-size: 36px; line-height: 1.15; color: var(--navy); letter-spacing: -0.01em;
}
.kp-sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.kp h2 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 52px 0 18px; line-height: 1.45; }
.kp-wrap > h2:first-of-type, .kp-head + h2 { margin-top: 0; }
.kp p { margin: 0 0 16px; max-width: 78ch; }
.kp-figs { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 32px; }
.kp-figs figure { margin: 0; flex: 1 1 320px; max-width: 100%; }
.kp-figs figure img { display: block; width: 100%; height: auto; border-radius: 3px; }
.kp-flow .kp-figs figure:only-child { flex: 0 1 auto; }
.kp-flow .kp-figs figure:only-child img { width: auto; max-width: 100%; }

/* ---------- Home ---------- */
.hm-hero {
  position: relative; text-align: center; padding: 56px 24px 40px;
  background: linear-gradient(180deg, #f3f6fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hm-mol { display: flex; justify-content: center; }
.hm-mol svg { width: min(760px, 92%); height: auto; }
.hm-name {
  margin: 18px 0 0; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 26px; color: var(--navy); letter-spacing: 0.01em;
}
.hm-search { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; }
.hm-search input[type="text"] { width: 220px; height: 36px; box-sizing: border-box; border-radius: 4px; }
.hm-search input[type="submit"] { height: 36px; padding: 0 16px; }
.hm-details { font-size: 14px; margin-left: 6px; }
.hm .hm-label {
  margin: 0 0 22px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400; font-size: 28px; color: var(--navy);
}
.hm-news { margin: 0 0 72px; }
.hm-news article { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.hm-news-img { margin: 0; }
.hm-news-img img { display: block; width: 100%; height: auto; border-radius: 4px; }
.hm-news-body h3 { margin: 0 0 16px; font-size: 21px; line-height: 1.45; color: var(--ink); }
.hm-news-body p { font-size: 15px; color: var(--body); }
.hm-sources { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hm-sources li { margin: 0 0 6px; word-break: break-all; }
.hm-publist, .pb-list { list-style: none; margin: 0; padding: 0; }
.hm-publist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hm-publist li:last-child { border-bottom: 1px solid var(--line); }
.hm-publist .yr { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; padding-top: 1px; }
.hm-publist a, .pb-t a { word-break: break-all; }

/* ---------- Professor ---------- */
.pf-card { display: flex; gap: 36px; align-items: flex-start; padding-bottom: 36px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.pf-photo img { display: block; width: 168px; height: auto; border-radius: 4px; }
.pf-aff { list-style: none; margin: 14px 0 0; padding: 0; color: var(--body); font-size: 15px; line-height: 1.75; }
.pf-aff li:nth-child(-n+3) { color: var(--navy); font-weight: 600; }
.pf-sec h2 { margin-top: 44px; }
.pf-tl { margin: 0; }
.pf-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 9px 0; border-top: 1px solid #eef2f7; }
.pf-row dt { margin: 0; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.pf-row dd { margin: 0; }
.pf-research { margin: 0; padding-left: 22px; }
.pf-research li { padding-left: 6px; margin-bottom: 18px; }
.pf-research li::marker { color: var(--navy); font-weight: 700; }
.pf-research p { margin: 0; }

/* ---------- Members ---------- */
.mb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 22px; }
.mb-card { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none !important; color: inherit; }
.mb-photo { display: flex; align-items: center; justify-content: center; width: 116px; height: 140px; overflow: hidden; border-radius: 4px; background: var(--mist); }
.mb-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .25s; }
a.mb-card:hover .mb-photo img, a.mb-card:focus-visible .mb-photo img { filter: none; }
.mb-initial { font-size: 34px; color: #9fb0c8; font-family: Georgia, serif; }
.mb-name { margin-top: 12px; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.35; }
a.mb-card:hover .mb-name { color: var(--steel); }
.mb-role { margin-top: 2px; font-size: 13px; color: var(--muted); }
.mb-group { margin-top: 56px; }

/* ---------- Publications / patents ---------- */
.pb-sec + .pb-sec { margin-top: 12px; }
.pb-list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.pb-list > li:last-child { border-bottom: 1px solid var(--line); }
.pb-n { color: var(--navy); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pb-sub { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--body); }
.pb-sub li { padding: 2px 0; }

/* ---------- Database ---------- */
.db-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.db-card { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none !important; color: var(--body) !important; height: 100%; box-sizing: border-box; background: #fff; }
a.db-card:hover { border-color: var(--steel); }
.db-logo { flex: 0 0 120px; display: flex; align-items: center; justify-content: center; }
.db-logo img { max-width: 120px; max-height: 36px; width: auto; height: auto; }
.db-desc { font-size: 14px; line-height: 1.55; }

/* ---------- Teaching ---------- */
.tc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tc-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none !important; height: 100%; box-sizing: border-box; }
.tc-card:hover { border-color: var(--navy); background: var(--mist); }
.tc-kind { font-size: 12px; font-weight: 700; color: var(--steel); }
.tc-name { font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* ---------- Board ---------- */
.fb-frame { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; justify-content: center; }
.fb-frame iframe { max-width: 100%; }

@media (max-width: 860px) {
  .kp-wrap { padding: 28px 20px 64px; }
  .hm-news article { grid-template-columns: 1fr; }
  .pf-card { flex-direction: column; }
  .pf-row { grid-template-columns: 1fr; gap: 2px; }
}
.hm-hero p { max-width: none; }
.pf-aff-label { margin: 14px 0 0 !important; font-size: 13px; font-weight: 700; color: var(--muted); }
.pf-aff-label + .pf-aff { margin-top: 2px; }
.mb-card a { text-decoration: none !important; }
.mb-card a.mb-photo:hover img, .mb-card a.mb-photo:focus-visible img { filter: none; }
.mb-card a.mb-name { color: var(--ink) !important; }
.mb-card a.mb-name:hover { color: var(--steel) !important; }
.kp-legacy { display: none !important; }
