/* NMLab site — design tokens follow the renewal mockup (Packet Ledger). */

:root {
  --ink: #14171C;
  --ink-2: #3A404A;
  --muted: #565D69;
  --line: #E3E6EA;
  --line-2: #DADDE2;
  --soft: #FAF8F6;
  --accent: #A3203A;
  --white: #FFFFFF;
  --c-journal: #A3203A;
  --c-journal-tint: #FBEFF1;
  --c-conf: #335C9E;
  --c-conf-tint: #EBF1FA;
  --c-patent: #85570F;
  --c-patent-tint: #FBF3E6;
  --maxw: 1360px;
  --gutter: clamp(20px, 12vw - 44px, 108px);
  --font-body: 'Noto Sans KR', sans-serif;
  --font-head: 'Poppins', 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }   /* same layout width on short pages that do not scroll */

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 { margin: 0; font-family: var(--font-head); word-break: keep-all; letter-spacing: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 8px; padding: 8px 12px; background: var(--ink); color: var(--white); z-index: 10; }
.skip-link:focus { left: 8px; }

.eyebrow { font-size: 13px; letter-spacing: 1.5px; font-weight: 500; color: var(--accent); }
.section-title { font-size: 36px; font-weight: 700; }
.lead { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2A2F37; color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #8A1A31; color: var(--white); }
.btn--outline { border-color: #C9CED6; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { flex: 0 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand__logo { flex: 0 0 auto; width: 96px; height: 40px; }   /* drawn at exactly this size: keep it 1:1 so edges stay sharp */
/* Real text, not part of the logo image, so it stays sharp at this small size */
.brand__sub { font-family: Arial, Arimo, "Liberation Sans", Helvetica, sans-serif; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: #5D5C5C; white-space: nowrap; transform: translateY(-0.12em); } /* the classic logo's subtitle; second line sits on the letters' baseline */
.brand:hover .brand__sub { color: var(--ink-2); }
@media (max-width: 400px) { .brand__sub { font-size: 11.5px; } }
@media (max-width: 340px) { .brand { gap: 7px; } .brand__sub { font-size: 10px; } }   /* keeps the menu button on the same line */
.site-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-left: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { padding: 10px 0; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* Mobile: three-line button on the right opens the menu below the logo (menu.js).
   Without JS the menu simply stays open. */
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1101px) and (max-width: 1280px) {
  .brand__sub { font-size: 12px; }
  .site-menu { column-gap: 22px; }
  .site-nav { column-gap: 22px; }
}
@media (max-width: 1100px) {
  .site-header__inner { flex-wrap: wrap; gap: 0; padding-top: 12px; padding-bottom: 12px; }
  .js .menu-toggle { display: block; }
  .site-menu { flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 12px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
  .js .site-menu:not(.is-open) { display: none; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .site-nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .site-menu .btn { align-self: flex-start; margin: 16px 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }

/* Hero: full-bleed slideshow of the latest news photos (uniform tint keeps white text readable) */
/* Hero: deep-navy panel (same colour as the sub-page title band) on the left, news photos on the right */
.hero { --hero-bg: #1F334A; display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); height: clamp(460px, 68vh, 680px); background: var(--hero-bg); color: var(--white); }
.hero__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 72px 48px 36px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.hero__text { display: flex; flex-direction: column; gap: 16px; margin: auto 0; }
.hero__eyebrow { font-size: 13px; letter-spacing: 2px; font-weight: 500; color: #8FB7FF; }
.hero__title { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.15; font-weight: 600; color: var(--white); }
.hero__sub { font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.hero__footer-row { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hero__news { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--white); }
.hero__news:hover { color: var(--white); opacity: 0.85; }
.hero__news-meta { font-family: var(--font-head); font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.hero__news-title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__controls { display: flex; align-items: center; gap: 4px; }
.hero__bars { display: flex; gap: 6px; margin-right: 12px; }
.hero__bar { width: 28px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.hero__bar span { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.hero__bar[aria-current="true"] span { background: #8FB7FF; }
.hero__counter { min-width: 60px; font-family: var(--font-head); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.hero__btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero__btn:hover { background: rgba(255, 255, 255, 0.12); }
.hero__slides { position: relative; overflow: hidden; background: #16263A; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity 0.9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__icon-play { display: none; }
.hero.is-paused .hero__icon-play { display: block; }
.hero.is-paused .hero__icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* Split section: intro column + content column */
.section { padding: 72px 0; }
/* Content-width divider at the top of a section (same line as .about-facts) */
.section--ruled { padding-top: 0; }
.section--ruled > .container { position: relative; padding-top: 72px; }
.section--ruled > .container::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 32px 0; }
.split__intro { flex: 1 1 260px; padding-right: 40px; display: flex; flex-direction: column; gap: 14px; }
.split__body { flex: 3 1 600px; min-width: 0; border-left: 1px solid var(--line-2); }
/* Home 최근 논문: list on the left, title block on the right with a short accent rule under the title */
.split--reverse { flex-direction: row-reverse; }
.split--reverse .split__intro { padding-right: 0; padding-left: 40px; }
.split--reverse .split__body { border-left: 0; border-right: 1px solid var(--line-2); }
.split--reverse .pub-list { padding: 0 40px 0 0; }
.split__title { align-self: flex-start; display: flex; flex-direction: column; gap: 14px; width: max-content; max-width: 100%; margin-bottom: 4px; }

/* Research */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.research-item { padding: 26px 32px; display: flex; gap: 18px; align-items: flex-start; }
.research-item:nth-child(even) { border-left: 1px solid var(--line-2); }
.research-item:nth-child(n+3) { border-top: 1px solid var(--line-2); }
.research-item:nth-child(-n+2) { padding-top: 6px; }
.research-item:nth-last-child(-n+2) { padding-bottom: 6px; }
.research-item svg { flex: 0 0 auto; }
/* Home: research areas and recent papers use the same heading as 연구실 소식 (title, pill link, accent rule) */
.research-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.research-grid--wide .research-item { padding: 26px 28px; border: 0; }
.research-grid--wide .research-item:not(:nth-child(3n+1)) { border-left: 1px solid var(--line-2); }
.research-grid--wide .research-item:nth-child(n+4) { border-top: 1px solid var(--line-2); }
.research-grid--wide .research-item:nth-child(3n+1) { padding-left: 0; }
.research-grid--wide .research-item:nth-child(-n+3) { padding-top: 6px; }
.research-grid--wide .research-item:nth-last-child(-n+3) { padding-bottom: 6px; }
.pub-list--wide { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.pub-list--wide .pub-item:first-child, .pub-list--wide .pub-item:nth-child(2) { padding-top: 4px; }
.pub-list--wide .pub-item:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 4px; }
.research-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.research-item p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Publications */
.pub-list { list-style: none; margin: 0; padding: 0 0 0 40px; }
.pub-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pub-item:first-child { padding-top: 4px; }
.pub-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.badge { padding: 3px 8px; border-radius: 3px; background: var(--accent); color: var(--white); font-weight: 600; font-size: 12px; }
.pub-title { font-size: 18px; font-weight: 600; line-height: 1.45; }
.more-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 12px; font-weight: 600; font-size: 16px; }

/* News */
.news-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.news-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pill-link { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 500; }
.rule { position: relative; height: 1px; background: var(--line-2); }
.rule::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 3px; background: var(--accent); }
.news-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.news-stack { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.news-card { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.news-card:hover { color: var(--ink); border-color: #C9CED6; }
.news-card--lead { flex: 1 1 460px; min-width: 0; flex-direction: column; }
.news-card--lead .news-card__img { width: 100%; height: 340px; }
.news-card--lead .news-card__body { padding: 24px 32px 32px; }
.news-card--lead .news-card__title { font-size: 26px; line-height: 1.4; }
.news-card--side { flex: 1 1 auto; flex-wrap: wrap; }
/* The frame stretches to the card's height; the photo just fills it, so portrait photos can't make the card taller. */
.news-card__media { position: relative; flex: 1 1 200px; min-width: 0; min-height: 220px; background: var(--soft); }
.news-card__media .news-card__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-card--side .news-card__body { flex: 1 1 220px; padding: 28px; }
.news-card--side .news-card__title { font-size: 21px; line-height: 1.45; }
.news-card__img { object-fit: cover; background: var(--soft); }
.news-card__body { display: flex; flex-direction: column; gap: 10px; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 13px; color: var(--muted); }
.news-card__title { font-family: var(--font-head); font-weight: 600; word-break: keep-all; }
/* Body preview: excerpt-fit.js trims it to the space available and ends it with "...";
   the line-clamp below is only the fallback before/without the script. */
.news-card__excerpt { font-size: 15px; line-height: 1.65; color: var(--muted); }
.news-card__excerpt:not(.is-fitted) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.news-card--lead .news-card__excerpt:not(.is-fitted) { -webkit-line-clamp: 3; line-clamp: 3; }

/* Join */
.join__card { background: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: 28px 0; }
.join__main { flex: 999 1 520px; min-width: 0; padding-right: 40px; display: flex; flex-direction: column; gap: 14px; }
.join__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.join__line { width: 32px; height: 2px; background: var(--accent); }
.join__kicker { font-size: 12px; letter-spacing: 3px; font-weight: 500; color: var(--accent); }
.join__pill { padding: 3px 12px; border: 1px solid var(--accent); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--accent); }
.join__title { font-size: 30px; font-weight: 700; line-height: 1.35; }
.join__title em { font-style: normal; color: var(--accent); }
.join__text { font-size: 15px; color: var(--muted); }
.join__more { align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--ink); }
.join__more:hover { color: var(--muted); }
.join__contact { flex: 1 1 300px; padding-left: 40px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.join__mail { display: flex; align-items: flex-start; gap: 14px; }
.join__mail svg { flex: 0 0 auto; }
.join__mail-label { display: block; font-size: 13px; color: var(--muted); }
.join__mail-addr { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
a.join__mail-addr:hover { color: var(--accent); }
.join .btn { min-height: 52px; }

/* Members */
.muted { color: var(--muted); }
.block-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.block-head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.group-title { font-size: 18px; font-weight: 700; margin: 32px 0 16px; }
.group-title:first-of-type { margin-top: 0; }
.group-title span { font-family: var(--font-head); font-weight: 500; color: var(--accent); margin-left: 4px; }

.professor { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.professor__photo { flex: 0 0 240px; width: 240px; height: auto; aspect-ratio: 480 / 615; object-fit: cover; border-radius: 12px; }
.professor__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.professor__name { font-size: 32px; font-weight: 700; }
.professor__name span { font-size: 20px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.professor__role { font-size: 17px; color: var(--ink-2); }
.professor__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; color: var(--ink-2); }
.professor__links { display: flex; flex-wrap: wrap; gap: 8px; }
.professor__history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.professor__label { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.timeline { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.6; }
.timeline dt { color: var(--muted); font-family: var(--font-head); font-size: 13px; }
.timeline dd { margin: 0; color: var(--ink-2); }

/* Student cards: two per row on desktop, larger photo and type */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 20px; }
.member { display: flex; gap: 26px; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.member__photo { flex: 0 0 124px; width: 124px; height: 152px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.member__photo--empty { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: var(--muted); }
.member__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.member__name { font-size: 22px; font-weight: 700; }
.member__name span { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.member__program { font-size: 14px; color: var(--accent); }
.member__role { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.member__paper { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.member__paper-label { font-size: 13px; color: var(--muted); }
.member__paper-title { font-size: 15px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.member__email { margin-top: 8px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.member__name a:hover { color: var(--accent); }
.member__resume { align-self: flex-start; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.member__resume:hover { color: #8A1A31; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; }
.chips span { font-family: var(--font-head); font-weight: 600; color: var(--accent); margin-left: 2px; }
/* Members: 재학생 / 졸업생 tabs (the underline style of the Publications tabs) */
.member-tabs { margin-bottom: 36px; }
.member-panel[hidden] { display: none; }
/* Arriving with #students / #alumni: the browser scrolls to the panel; keep the tabs above it in view. */
.member-panel { scroll-margin-top: 110px; }
html:not(.has-member-tabs) .member-panel + .member-panel { margin-top: 56px; }
.alumni-dest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 36px; }
.alumni-dest__title { font-size: 14px; font-weight: 600; color: var(--muted); }
/* Alumni cards: the old photos are about 123x143, so they are shown at most about that size to stay sharp */
.alumni-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.alum { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.alum__photo { flex: 0 0 106px; width: 106px; height: 124px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.alum__photo--empty { display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: var(--muted); }
.alum__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.alum__name { font-size: 17px; font-weight: 700; }
.alum__name span { display: block; margin-top: 1px; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); }
.alum__degree { font-size: 13px; line-height: 1.45; color: var(--accent); }
.alum__degree span { display: block; color: var(--muted); }
.alum__org { font-size: 14px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }

/* Publications */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pub-filters { display: flex; flex-direction: column; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pub-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Kind: underline tabs */
.pub-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pub-tabs__tab { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 6px; margin-bottom: -1px; padding: 6px 0 14px; border-bottom: 2px solid transparent; font-size: 17px; font-weight: 600; color: var(--muted); }
.pub-tabs__tab span { font-family: var(--font-head); font-size: 13px; font-weight: 500; color: #8A919C; }
.pub-tabs__tab:hover { color: var(--ink); }
.pub-tabs__tab.is-on { color: var(--accent); border-bottom-color: var(--accent); }
.pub-tabs__tab.is-on span { color: var(--accent); }
/* Scope: one segmented control */
.pub-seg { display: inline-flex; flex: 0 0 auto; height: 44px; border: 1px solid #C9CED6; border-radius: 6px; overflow: hidden; }
.pub-seg__item { display: inline-flex; align-items: center; padding: 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pub-seg__item + .pub-seg__item { border-left: 1px solid #C9CED6; }
.pub-seg__item:hover { background: #F5F6F8; color: var(--ink); }
.pub-seg__item.is-on { background: var(--ink-2); color: var(--white); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #C9CED6; background: var(--white); font-size: 15px; font-weight: 600; }
.pill span { font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--muted); }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-on { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pill.is-on span { color: #F4D9DE; }
.pill--small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.pub-search { position: relative; display: flex; flex: 1 1 280px; min-width: 0; }
.pub-search input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 48px 0 14px; border: 1px solid #C9CED6; border-radius: 6px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); }
.pub-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pub-search__btn { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.pub-search__btn:hover { color: var(--accent); }
.pub-ack { display: flex; flex: 0 1 280px; min-width: 0; }
.pub-ack select { width: 100%; max-width: 100%; height: 44px; padding: 0 12px; border: 1px solid #C9CED6; border-radius: 6px; background: var(--white); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.pub-ack select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Two columns: the list, and a summary of what the filter matches with the years on this page */
.pubs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "main side"; column-gap: 56px; align-items: start; }
.pubs-main { grid-area: main; min-width: 0; }
.pub-side { grid-area: side; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; margin-top: 24px; padding-left: 32px; border-left: 1px solid var(--line); }
.pub-side__title { margin: 0 0 12px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.pub-side__title + .pub-side__total { margin-top: -4px; }
.pub-side__total { display: flex; align-items: baseline; gap: 2px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.pub-side__total strong { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--ink); margin-right: 2px; }
.pub-side__total span { margin-left: 8px; font-family: var(--font-head); font-size: 13px; }
.pub-side__stats { margin: 0 0 32px; }
.pub-side__stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid #EEF0F2; font-size: 14px; color: var(--ink-2); }
.pub-side__stats dd { margin: 0; font-size: 13px; color: var(--muted); }
.pub-side__stats strong { margin-right: 2px; font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--ink); }
.pub-side__years { list-style: none; margin: 0; padding: 0; }
.pub-side__years a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 5px 0; font-family: var(--font-head); font-size: 13px; color: var(--ink-2); }
.pub-side__bar { position: relative; height: 6px; border-radius: 3px; background: #F0F2F4; }
.pub-side__bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 6px; border-radius: 3px; background: #C9CED6; transition: background 0.15s ease; }
.pub-side__n { text-align: right; font-size: 12px; color: var(--muted); }
.pub-side__years a:hover { color: var(--ink); }
.pub-side__years a:hover .pub-side__bar::before { background: var(--ink-2); }
.pub-side__years a.is-current { color: var(--accent); font-weight: 600; }
.pub-side__years a.is-current .pub-side__bar::before { background: var(--accent); }
.pub-side__older summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 0; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; }
.pub-side__older summary::-webkit-details-marker { display: none; }
.pub-side__older summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.pub-side__older[open] summary { margin-bottom: 4px; }
.pub-side__older[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.pub-side__older-close, .pub-side__older[open] .pub-side__older-open { display: none; }
.pub-side__older[open] .pub-side__older-close { display: inline; }
.pub-side__ack { margin-bottom: 28px; padding: 14px 16px; border-radius: 10px; background: #FBEFF1; }
.pub-side__ack .pub-side__title { margin-bottom: 8px; color: var(--accent); }
.pub-side__ack-name { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.pub-side__ack-meta { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.pub-side__ack .pub-side__more { margin-top: 8px; }
.pub-side__more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
@media (min-width: 1101px) {
  .pubs-layout .pub-toolbar__jump { display: none; } /* the side panel lists the years */
}
@media (max-width: 1100px) {
  .pubs-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
  .pub-side { display: none; }
}
/* Result count + year jump, one compact row that stays on screen */
.pub-toolbar { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.pub-toolbar__count { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pub-toolbar__count strong { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink); margin-right: 2px; }
.pub-toolbar__count a { color: var(--accent); font-weight: 600; }
.pub-toolbar__jump { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
/* 내려받기: a small menu of download formats, pushed to the right of the count */
.pub-export { position: relative; order: 1; margin-left: auto; }   /* after the year menu, so the two share a row on phones */
.pub-export__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #C9CED6; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; user-select: none; }
.pub-export__btn::-webkit-details-marker { display: none; }
.pub-export__btn:hover, .pub-export[open] .pub-export__btn { border-color: var(--ink); color: var(--ink); }
.pub-export__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pub-export__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: 250px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 10px 28px rgba(17, 24, 39, .12); }
.pub-export__note { padding: 8px 10px 6px; font-size: 12.5px; color: var(--muted); }
.pub-export__menu a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; }
.pub-export__menu a:hover, .pub-export__menu a:focus-visible { background: var(--soft); outline: 0; }
.pub-export__menu strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.pub-export__menu span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 480px) { /* year menu and 내려받기 side by side on a phone */
  .pub-toolbar { column-gap: 10px; }
  .pub-toolbar__jump { gap: 8px; }
  .pub-export__btn { padding: 0 12px; }
}
.pub-toolbar__jump select { height: 40px; padding: 0 36px 0 12px; border: 1px solid #C9CED6; border-radius: 6px; background: var(--white); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.pub-toolbar__jump select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pub-year { padding-top: 36px; scroll-margin-top: 48px; }
/* Year as a divider: number, then a hairline running to the right edge */
.pub-year__label { display: flex; align-items: center; gap: 20px; font-size: 26px; font-weight: 600; }
.pub-year__label::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line-2); }
.pub-year__list { list-style: none; margin: 0; padding: 0; }
.pub-entry { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid #EEF0F2; }
/* Serial number in front of the title (J = journal, C = conference, P = patent), aligned with the title line */
.pub-entry__no { padding-top: 29px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.kind-journal .pub-entry__no { color: var(--c-journal); }
.kind-conference .pub-entry__no { color: var(--c-conf); }
.kind-patent .pub-entry__no { color: var(--c-patent); }
.pub-entry:last-child { border-bottom: 0; }
.pub-entry__kind { font-weight: 600; }
.kind-journal .pub-entry__kind { color: var(--c-journal); }
.kind-conference .pub-entry__kind { color: var(--c-conf); }
.kind-patent .pub-entry__kind { color: var(--c-patent); }
.pub-entry__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pub-entry__date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.pub-entry__date > span + span::before { content: "·"; margin: 0 8px; color: #C9CED6; }
.pub-entry__date > .badge { margin-left: 10px; font-family: var(--font-body); }
.pub-entry__date > .badge::before { content: none; }
.pub-entry__title { font-family: var(--font-body); font-size: 19px; font-weight: 600; line-height: 1.5; } /* English titles in Noto Sans KR, as on the old site */
.pub-entry__authors { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; } /* same colour as the venue line */
.pub-entry__authors strong { color: inherit; font-weight: inherit; } /* all authors look the same */
.pub-hit { background: none; color: var(--accent, #A3203A); font-weight: 700; } /* the searched author */
.pub-entry__venue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: 14px; color: var(--ink-2); }
.pub-entry__venue > span + span::before { content: "·"; margin: 0 8px; color: #C9CED6; font-style: normal; }
.pub-entry__where { font-style: italic; }
.pub-entry__scope { font-size: 13px; color: var(--muted); }
.pub-entry__link:hover { color: var(--accent); }
.pub-entry__title .pub-entry__index { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1.6; vertical-align: 2px; white-space: nowrap; }
.pub-entry__index.is-intl { background: var(--c-journal-tint); color: var(--c-journal); }
.pub-entry__index.is-kr { background: var(--c-conf-tint); color: var(--c-conf); }
.pub-entry__index.is-patent { background: var(--c-patent-tint); color: var(--c-patent); }
.pub-entry__pdf { margin-top: 23px; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid #E3B8BF; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--white); white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; } /* margin: centred on the first title line, level with the number */
.pub-entry__pdf:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* News page */
.news-featured { padding-top: 32px; }
.news-grid-all { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; padding-top: 20px; }
.news-grid-all .news-tile__media { aspect-ratio: 3 / 4; }   /* tall photos, four to a row */
/* Borderless tiles: rounded photo, then category · date and the title */
.news-tile { display: flex; flex-direction: column; }
.news-tile:hover { color: var(--ink); }
.news-tile__media { display: block; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; border-radius: 10px; }
.news-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-tile:hover .news-tile__media img { transform: scale(1.03); }
.news-tile__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 2px 0; }
.news-tile__meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 13px; color: var(--muted); }
.news-tile__meta > span + span::before { content: "·"; margin-right: 8px; color: #C9CED6; }
/* News categories, three clearly different hues from the swatch set (a shade darker):
   blue gray (학회), sage gray (세미나·학위), soft peach (행사) */
.cat-conf { --cat-bg: #CCDAEA; --cat-ink: #1F3A57; --cat-dot: #5B82AD; }
.cat-seminar { --cat-bg: #D2E0C9; --cat-ink: #2D4524; --cat-dot: #6F9A5C; }
.cat-event { --cat-bg: #F3DAC8; --cat-ink: #6A3618; --cat-dot: #D08A5C; }
.cat-notice { --cat-bg: #E3D9F0; --cat-ink: #45306B; --cat-dot: #8C72BA; }
.cat-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--cat-bg, var(--soft)); color: var(--cat-ink, var(--ink-2)); font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.news-tile__meta > .cat-badge + span::before, .article__meta > .cat-badge + span::before { content: none; }
.news-tile__meta > .cat-badge + span, .article__meta > .cat-badge + span { margin-left: 2px; }
/* Category pills wear the category colour; the chosen one turns to its dark ink, like the solid 전체 pill. */
.pill--cat { background: var(--cat-bg); border-color: var(--cat-bg); color: var(--cat-ink); }
.pill--cat span { color: var(--cat-ink); opacity: 0.75; }
.pill--cat:hover { border-color: var(--cat-ink); color: var(--cat-ink); }
.pill--cat.is-on { background: var(--cat-ink); border-color: var(--cat-ink); color: var(--white); }
.pill--cat.is-on span { color: var(--white); }
/* News list: one sticky bar with the category pills and the year jump */
.news-bar { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 0; background: var(--white); border-bottom: 1px solid var(--line); }
/* Category counts look like the Publications tab counts: sitting on the label's baseline,
   lighter than the label, and the label's own color when selected.
   (wrap + align-content keeps the baseline-aligned line centered in the pill's height) */
.news-bar .pill { flex-wrap: wrap; align-content: center; align-items: baseline; }
.news-bar .pill:not(.pill--cat) span { color: #8A919C; }
.news-bar .pill.is-on span { color: var(--white); opacity: 1; }
.news-bar__jump select { height: 38px; padding: 0 32px 0 12px; border: 1px solid #C9CED6; border-radius: 999px; background: var(--white); font-family: var(--font-head); font-size: 14px; color: var(--ink); cursor: pointer; }
.news-bar__jump select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.news-year { padding-top: 56px; }
.news-year__label { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; }
.news-year__label span { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); }
.news-year__label::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
/* Page numbers (news, publications): square boxes, the current page in the page-head navy */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 64px; }
.pager__num, .pager__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px; background: #F0F0F0; color: var(--ink); font-family: var(--font-head); font-size: 15px; font-weight: 500; }
.pager__num:hover { background: #E2E5EA; }
.pager__num.is-on { background: #1F334A; color: var(--white); }
/* Photo-less items (notices): a tinted panel with an icon in place of the photo */
.news-tile__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; background: var(--cat-bg, var(--soft)); color: var(--cat-ink, var(--muted)); }
.news-tile__placeholder span { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.news-tile--text .news-tile__media { background: var(--cat-bg, var(--soft)); }
/* Pinned items above the list */
.news-pinned { list-style: none; margin: 24px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.news-pinned li + li { border-top: 1px solid var(--line); }
.news-pinned--home { margin: 0 0 24px; }
.news-pinned__item { display: flex; align-items: center; gap: 12px; padding: 16px 22px; box-shadow: inset 4px 0 0 var(--cat-dot, var(--accent)); }
.news-pinned__item:hover { background: var(--soft); color: var(--ink); }
.news-pinned__pin { display: inline-flex; color: var(--cat-ink, var(--muted)); }
.news-pinned__title { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-pinned__date { font-family: var(--font-head); font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .news-pinned__item { flex-wrap: wrap; padding: 14px 16px; }
  .news-pinned__title { flex-basis: 100%; order: 3; white-space: normal; }
}
.news-tile__title { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.45; word-break: keep-all; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.news-tile__excerpt { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.news-tile__excerpt:not(.is-fitted) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.news-tile__more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
/* Lead story: photo left, text right */
.news-tile--lead { flex-direction: row; flex-wrap: wrap; gap: 20px 40px; }
.news-tile--lead .news-tile__title { display: block; }
/* News list titles below the lead story: same type as the old site's News photo list
   (Noto Sans KR 15px Light, #5F5C5C, 21px line, -0.4px tracking) */
.news-grid-all .news-tile__title { font-family: var(--font-body); font-size: 15px; font-weight: 300; line-height: 21px; letter-spacing: -0.4px; color: #5F5C5C; }
.news-tile__meta--title { align-items: flex-start; gap: 8px 10px; }
.news-tile__meta--title > .cat-badge, .news-tile__meta--title > .news-tile__date { flex: 0 0 auto; margin-top: 1px; white-space: nowrap; }
.news-tile__meta--title > .news-tile__date { line-height: 21px; margin-top: 0; }
.news-tile__meta--title > .news-tile__title { flex: 1 1 auto; min-width: 0; }
.news-tile__meta--title > .news-tile__title::before { content: none; }
.news-tile--lead .news-tile__media { flex: 3 1 520px; aspect-ratio: auto; min-height: 340px; position: relative; }
.news-tile--lead .news-tile__media img { position: absolute; inset: 0; }
.news-tile--lead .news-tile__body { flex: 2 1 340px; justify-content: center; padding: 8px 0; gap: 12px; }
.news-tile--lead .news-tile__title { font-size: 26px; line-height: 1.4; }
.news-tile--lead .news-tile__excerpt { font-size: 15.5px; }

/* News detail */
/* One column for title, text, photos and prev/next so their edges line up */
.article { max-width: 1040px; display: flex; flex-direction: column; gap: 16px; }
.article__draft { padding: 10px 14px; border-radius: 6px; background: #FBEFF1; color: var(--accent); font-size: 14px; font-weight: 500; }
.article__draft a { color: var(--accent); font-weight: 700; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-family: var(--font-head); font-size: 14px; color: var(--muted); }
.article__meta > span + span::before { content: "·"; margin: 0 10px; color: #C9CED6; }
.article__title { margin-top: 20px; font-size: 32px; font-weight: 700; line-height: 1.35; }
/* Detail page: cover photo first, then title, a short rule, a meta bar, the text and the remaining photos */
.article__cover { display: block; border-radius: 6px; overflow: hidden; background: var(--soft); }
.article__cover img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; transition: opacity 0.2s ease; }
.article__cover:hover img { opacity: 0.94; }
.article__rule { width: 36px; height: 2px; background: var(--ink); margin-top: -2px; }
.article__metabar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.article__back { font-size: 14px; color: var(--muted); }
.article__back:hover { color: var(--ink); }
.article__sub { margin-top: 32px; font-size: 18px; font-weight: 700; }
.article__sub span { margin-left: 6px; font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--muted); }
.gallery.gallery--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 4px; }
.gallery--grid::after { content: none; }
.gallery--grid .gallery__item { flex: none; aspect-ratio: 1 / 1; max-height: none; border-radius: 4px; }
.article__text { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); text-align: justify; }
/* Justified rows: each photo's width share follows its aspect ratio (--r = width / height), so every row
   has one height and fills the width; the spacer keeps the last row from stretching. */
.gallery { --row: 230px; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 32px; }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery__item { --r: 1.5; display: block; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); max-height: calc(var(--row) * 1.6); border-radius: 8px; overflow: hidden; background: var(--soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease, opacity 0.2s ease; }
.gallery__item:hover img { transform: scale(1.03); opacity: 0.92; }
.article-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav__link { display: flex; flex-direction: column; gap: 4px; font-weight: 600; line-height: 1.45; min-width: 0; }
.article-nav__link span { font-size: 13px; font-weight: 500; color: var(--muted); }
.article-nav__link--older { text-align: right; align-items: flex-end; }
.article-nav__link:hover { color: var(--accent); }
/* Photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 12, 16, 0.94); color: var(--white); }
.lightbox::backdrop { background: rgba(10, 12, 16, 0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 4px; }
.lightbox__count { position: absolute; top: 24px; left: 28px; margin: 0; font-family: var(--font-head); font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close { top: 18px; right: 22px; }
.lightbox__prev { left: 24px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 24px; top: 50%; margin-top: -24px; }

/* Back-to-top button (shown by to-top.js after one screen of scrolling) */
.site-header:focus { outline: none; }
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 20;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 14px rgba(20, 23, 28, 0.18);
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.to-top.is-visible { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.to-top:hover { background: #8A1A31; color: var(--white); }
.to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Footer */
.site-footer { background: #F1EEEA; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__title { color: var(--ink); font-size: 16px; }
.site-footer__label { font-size: 12px; color: var(--muted); }
.site-footer__copy { padding-bottom: 32px; font-size: 13px; color: var(--muted); }

.empty-note { color: var(--muted); padding: 24px 0; }

/* Sub-page header: big English word + Korean title block, accent rule below */
.page-head { --head-bg: #1F334A; --head-accent: #3D8BFF; background: var(--head-bg); color: var(--white); padding: 64px 0 52px; }
/* Same grid on every page: the English word sits at the bottom left, the Korean title block is pinned to the
   top right, and the row keeps one height (room for a 3-line lead), so titles and the rule line up across pages. */
.page-head__row { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px 48px; min-height: 168px; padding-bottom: 36px; }
.page-head__en { align-self: end; font-family: var(--font-head); font-size: clamp(44px, 6.2vw, 88px); font-weight: 600; line-height: 0.95; letter-spacing: -0.03em; color: var(--white); white-space: nowrap; }
.page-head__en span { color: var(--head-accent); }
.page-head__side { align-self: start; display: flex; flex-direction: column; gap: 10px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.page-head__title { font-size: 30px; font-weight: 700; line-height: 1.3; }
.page-head__lead { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
/* Title section sits on deep navy: light breadcrumb, faint rule, brighter accent */
.page-head .breadcrumb, .page-head .breadcrumb a { color: rgba(255, 255, 255, 0.62); }
.page-head .breadcrumb a:hover { color: var(--white); }
.page-head .rule { background: rgba(255, 255, 255, 0.18); }
.page-head .rule::before { background: var(--head-accent); }
.page-head a:focus-visible { outline-color: var(--white); }

/* About */
.about-intro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.about-intro__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-intro__text > p { font-size: 17px; line-height: 1.85; color: var(--ink-2); text-align: justify; }
/* Title gets its own full-width row so the photo's top lines up with the first paragraph;
   the negative margin keeps the old 26px title-to-text spacing (48px row gap - 22px) */
.about-intro__title { flex: 1 1 100%; font-size: 30px; font-weight: 700; line-height: 1.4; margin-bottom: -22px; }
/* Facts row spans text + photo: one line of four evenly spaced items */
/* Facts band: same height as before (from the top rule down to the next section's rule), tinted, with dividers */
.about-facts { flex: 1 1 100%; margin: 0 0 -72px; padding: 0; border-top: 1px solid var(--line); background: var(--soft); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-facts div { display: flex; flex-direction: column; gap: 4px; padding: 28px 28px 72px; border-left: 1px solid var(--line-2); }
.about-facts div:first-child { border-left: 0; }
.about-facts dt { font-size: 13px; color: var(--accent); font-weight: 500; }
.about-facts dd { margin: 0; font-size: 17px; font-weight: 600; white-space: nowrap; }
.about-intro__photo { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about-intro__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.about-intro__photo figcaption { font-size: 13px; color: var(--muted); }

/* Join (join.php) */
.join-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.join-track { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; background: var(--white); }
.join-track__tag { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 2px; color: #3D5F80; }
.join-track__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 26px; font-weight: 700; }
.join-track__badge { padding: 3px 10px; border-radius: 999px; background: #D0DCE7; color: #22384D; font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.join-track__who { font-size: 16px; font-weight: 600; line-height: 1.6; }
.join-track__who span { font-size: 14px; font-weight: 400; color: var(--muted); }
.join-track__text { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.join-track__cta { align-self: flex-start; margin-top: auto; }
.join-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.join-perks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 11px; border-radius: 999px; background: #D2E0C9; color: #2D4524; font-size: 14px; font-weight: 600; }
.join-track__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.join-track__links a { font-size: 14px; font-weight: 700; color: var(--ink); }
.join-track__links a:hover { color: var(--muted); }
.join-recruit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px 48px; align-items: start; }
/* Heading spans both columns so the 지원 방법 box starts level with the table's top rule */
.join-recruit__head { grid-column: 1 / -1; margin-bottom: -16px; }
.join-facts { margin: 0; border-top: 2px solid var(--ink); }
.join-facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.join-facts dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.join-facts dd { margin: 0; font-size: 16px; color: var(--ink); }
.join-bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.join-more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.join-facts .join-more { margin-left: 18px; color: var(--accent); }
.join-facts .join-more:hover { color: #8A1A31; }
.join-sub { margin: 36px 0 16px; font-size: 20px; font-weight: 700; }
.join-support { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.join-support li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 10px; background: var(--soft); }
.join-support__no { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #3D5F80; }
.join-support strong { font-size: 16px; }
.join-support p { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
/* The box runs the full height of the table and support cards beside it; the button sits at its foot. */
.join-apply { align-self: stretch; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 14px; background: #1F334A; color: var(--white); }
.join-apply__title { font-size: 20px; font-weight: 700; }
.join-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.join-steps li { counter-increment: step; position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 2px; }
.join-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.join-steps strong { font-size: 15px; }
.join-steps span { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.join-apply__btn { align-self: center; min-height: 40px; padding: 0 18px; font-size: 14px; background: #056AE8; color: var(--white); }
.join-apply__btn:hover { background: #0559C2; color: var(--white); }
.join-apply__info { margin: 2px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 10px; }
.join-apply__info dt { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.join-apply__info dd { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); overflow-wrap: anywhere; }
.join-apply__note { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.join-apply__label { flex-basis: 100%; }
.join-apply a:focus-visible { outline-color: var(--white); }
.join-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.join-contact__item { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; }
.join-contact__item--full { grid-column: 1 / -1; }
.join-contact__label { font-size: 13px; color: var(--muted); }
.join-contact__value { font-family: var(--font-head); font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.join-contact__value--text { font-family: var(--font-body); font-size: 16px; }
/* Numbers strip on a blue-gray ground (swatch 블루 그레이 #E7EDF2) */
.join-numbers { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }   /* same colours as .about-facts */
.join-numbers div { padding: 24px 26px; border-left: 1px solid var(--line-2); }
.join-numbers div:first-child { border-left: 0; }
.join-numbers dt { font-size: 13px; font-weight: 500; color: var(--accent); }
.join-numbers dd { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.join-numbers strong { font-family: var(--font-head); font-size: 32px; font-weight: 600; color: var(--ink); margin-right: 2px; }
.join-numbers small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.join-lead { margin: -12px 0 24px; font-size: 15px; color: var(--ink-2); }
.join-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.join-areas a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.join-areas a:hover { border-color: #C9CED6; color: var(--ink); }
.join-areas__title { font-size: 17px; }
.join-areas a.area-tone--sage, .join-areas a.area-tone--mint, .join-areas a.area-tone--blue { border-top: 3px solid var(--area); }
.join-areas__text { font-size: 14px; line-height: 1.7; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.join-careers li { font-size: 14px; padding: 7px 14px; }
.news-tile__place { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.news-tile__place svg { flex: 0 0 auto; color: var(--accent); }
@media (max-width: 900px) {
  .research-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid--wide .research-item:nth-child(n) { padding: 22px 24px; border-left: 0; border-top: 1px solid var(--line-2); }
  .research-grid--wide .research-item:nth-child(even) { border-left: 1px solid var(--line-2); }
  .research-grid--wide .research-item:nth-child(odd) { padding-left: 0; }
  .research-grid--wide .research-item:nth-child(-n+2) { border-top: 0; padding-top: 6px; }
  .join-tracks, .join-recruit, .join-contact { grid-template-columns: minmax(0, 1fr); }
  .join-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-numbers div:nth-child(3) { border-left: 0; }
  .join-numbers div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .join-support { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .join-track { padding: 24px 20px; }
  .join-areas { grid-template-columns: minmax(0, 1fr); }
  .join-facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Join: application form (#apply) and copy buttons */
.apply .apply-form, .apply .join-lead, .apply-done, .apply-error { max-width: 880px; }
.req { color: var(--accent); }
.apply-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.apply-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.apply-field--wide { grid-column: 1 / -1; }
.apply-field > span, .apply-field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.apply-field legend { margin-bottom: 8px; }
.apply-field legend small, .apply-field > span small { margin-left: 6px; font-weight: 400; color: var(--muted); }
.apply-field input, .apply-field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #C9CED6; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; }
.apply-field textarea { line-height: 1.7; resize: vertical; }
.apply-field input:focus, .apply-field textarea:focus { outline: 2px solid #3D5F80; outline-offset: 1px; border-color: #3D5F80; }
.apply-field.is-invalid input, .apply-field.is-invalid textarea { border-color: var(--accent); background: #FDF5F6; }
.apply-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.apply-choice { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.apply-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apply-choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid #C9CED6; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--white); }
.apply-choice input:checked + span { background: #1F334A; border-color: #1F334A; color: var(--white); }
.apply-choice input:focus-visible + span { outline: 2px solid #3D5F80; outline-offset: 2px; }
.apply-choice--check input:checked + span::before { content: "✓"; margin-right: 6px; }
.is-invalid .apply-choice span { border-color: var(--accent); }
.apply-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-consent { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 10px; background: var(--soft); font-size: 13.5px; color: var(--ink-2); }
.apply-consent ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.apply-consent .apply-choice { align-self: flex-start; }   /* only the pill is clickable, not the whole row */
.apply-consent .apply-choice span { min-height: 38px; font-size: 14px; }
.apply-consent.is-invalid { outline: 1px solid var(--accent); }
.apply-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.apply-actions .btn { min-width: 200px; }
.apply-actions .btn--outline { min-width: 0; }
.apply-done, .apply-error { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 12px; font-size: 15px; }
.apply-done { background: #E8F1E3; color: #2D4524; }
.apply-done strong { font-size: 18px; }
.apply-error { margin-bottom: 24px; background: #FDF0F2; color: #7A1A2D; }
.apply-error ul { margin: 0; padding-left: 18px; }
.copy-btn { flex: 0 0 auto; height: 30px; padding: 0 12px; border: 1px solid #C9CED6; border-radius: 999px; background: var(--white); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.copy-btn.is-done { background: #E8F1E3; border-color: #B9D1AB; color: #2D4524; }
.copy-btn--dark { height: 26px; margin-left: 4px; border-color: rgba(255, 255, 255, 0.35); background: transparent; color: var(--white); }
.copy-btn--dark:hover { border-color: var(--white); color: var(--white); }
.join-contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.join-apply__mail { color: var(--white); font-weight: 600; }
@media (max-width: 640px) {
  .apply-form { grid-template-columns: minmax(0, 1fr); }
  .apply-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* Application form popup (join.php) */
html.is-modal { overflow: hidden; }
.apply-dialog { width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgba(20, 23, 28, 0.28); }
.apply-dialog[open] { display: flex; flex-direction: column; }
.apply-dialog::backdrop { background: rgba(20, 23, 28, 0.55); }
.apply-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.apply-dialog__title { margin-top: 6px; font-size: 22px; font-weight: 700; }
.apply-dialog__close { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.apply-dialog__close:hover { background: var(--soft); color: var(--ink); }
.apply-dialog__body { overflow-y: auto; padding: 22px 28px 28px; }
.apply-dialog__body .join-lead { margin: 0 0 20px; }
.apply-actions { gap: 10px; }
/* Without JS or <dialog> support: show the form in the page when #apply is targeted. With them the form only
   appears as the popup: after it is closed the URL may still target #apply, and the form must not stay in the page. */
html:not(.has-dialog) .apply-dialog:not([open]):target { display: block; position: static; margin: 40px auto; box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .apply-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .apply-dialog__head, .apply-dialog__body { padding-left: 20px; padding-right: 20px; }
}

/* Professor CV (professor.php) */
.cv { display: flex; flex-direction: column; gap: 56px; }
.cv-profile { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px 56px; }
.cv-profile__photo { flex: 0 0 240px; width: 240px; height: auto; aspect-ratio: 480 / 615; object-fit: cover; border-radius: 12px; }
.cv-profile__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cv-profile__name { font-size: 34px; font-weight: 700; }
.cv-profile__name span { margin-left: 8px; font-size: 20px; font-weight: 500; color: var(--muted); }
.cv-profile__role { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.cv-profile__role span { font-size: 14px; color: var(--muted); }
.cv-contact { margin: 6px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cv-contact div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.cv-contact dt { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 1px; }
.cv-contact dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.cv-profile__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cv-stats { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cv-stats div { padding: 22px 20px; border-left: 1px solid var(--line); }
.cv-stats div:first-child { border-left: 0; }
.cv-stats dt { font-size: 13px; color: var(--muted); }
.cv-stats dd { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.cv-stats strong { font-family: var(--font-head); font-size: 32px; font-weight: 600; color: var(--ink); margin-right: 2px; }
.cv-stats small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.cv-block { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cv-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.cv-block__title { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 21px; font-weight: 700; }
.cv-block__head .cv-block__title { flex: 1 1 auto; }
.cv-block__head .cv-block__title { border-bottom: 0; padding-bottom: 0; }
.cv-block__head { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cv-block__title span { margin-left: 8px; font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--muted); }
.cv-more { font-size: 14px; color: var(--muted); white-space: nowrap; }
.cv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; align-items: start; }
.cv-thesis { display: block; margin-top: 2px; font-size: 13px; font-style: italic; color: var(--muted); }
.cv-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cv-areas a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.cv-areas a:hover { border-color: #C9CED6; color: var(--ink); }
.cv-areas__no { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #3D5F80; }
.cv-areas small { flex-basis: 100%; font-size: 12px; font-weight: 400; color: var(--muted); }
.cv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cv-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv-list li:first-child { padding-top: 2px; }
.cv-list__year { font-family: var(--font-head); font-size: 13px; color: var(--muted); padding-top: 2px; }
.cv-list--compact li { grid-template-columns: 76px minmax(0, 1fr); }
.cv-list__title { font-size: 15px; font-weight: 600; line-height: 1.55; }
.cv-list__title a:hover { color: var(--muted); }
.cv-list__meta { margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.cv-list__meta em { font-style: normal; color: var(--ink-2); }
.cv-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.cv-back { padding-top: 8px; }
/* Student resume (student.php) */
.cv-profile__photo--empty { display: flex; align-items: center; justify-content: center; background: var(--soft); border: 1px solid var(--line); font-size: 64px; font-weight: 700; color: #9AA2AE; }
.cv-keywords { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-keywords li { padding: 3px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.cv-list__authors strong { color: var(--ink); font-weight: 700; }   /* the student's own name */
.cv-tag--role { border-color: var(--accent); color: var(--accent); }
.cv-tag--award { border-color: var(--accent); background: var(--accent); color: var(--white); }
.timeline .cv-tag--award { margin: 0 6px 0 0; }
.cv-award__paper { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* Patents and projects: one full-width block each, so long titles stay on one line */
.cv-wide { display: flex; flex-direction: column; gap: 56px; }
.cv-print-foot { display: none; }
.professor__more { margin-top: 4px; }
@media (max-width: 900px) {
  .cv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cv-stats div:nth-child(4) { border-left: 0; }
  .cv-stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cv-two { grid-template-columns: minmax(0, 1fr); }
  .cv-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cv-profile__photo { flex-basis: 160px; width: 160px; }
  .cv-profile__name { font-size: 28px; }
  .cv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-stats div:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .cv-stats div:nth-child(odd) { border-left: 0; }
  .cv-stats div:nth-child(-n+2) { border-top: 0; }
  .cv-areas { grid-template-columns: minmax(0, 1fr); }
}

/* Research areas (Research page) */
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.map-bar__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.map-bar__text strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); }
.map-bar__btn { flex: 0 0 auto; }
/* Diagram popup: the picture keeps its width and scrolls inside, so its small labels stay readable. */
.map-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgba(20, 23, 28, 0.28); overflow: hidden; }
.map-dialog[open] { display: flex; flex-direction: column; }
.map-dialog::backdrop { background: rgba(20, 23, 28, 0.55); }
.map-dialog__bar { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.map-dialog__title { flex: 1 1 auto; margin: 0; font-size: 17px; font-weight: 700; }
.map-dialog__link { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.map-dialog__link:hover { color: var(--ink); }
.map-dialog__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.map-dialog__close:hover { background: #F2F4F7; }
.map-dialog__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.map-dialog__body img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .map-bar { flex-direction: column; align-items: stretch; padding: 18px 18px; }
  .map-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .map-dialog__bar { padding-left: 16px; }
  /* On a phone the full-width picture would shrink its text to a few pixels: keep it wider and scroll sideways. */
  .map-dialog__body img { width: 760px; max-width: none; }
}
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.area-card { scroll-margin-top: 24px; }
.area-card:target { box-shadow: 0 0 0 2px var(--area); }
.area-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.area-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Representative paper figure across the top of the card (edge to edge) */
.area-card { overflow: hidden; }
.area-card__figure { margin: -28px -30px 4px; border-bottom: 1px solid var(--line); background: var(--white); }
.area-card__figure a { display: block; padding: 18px 20px 8px; }
.area-card__figure img { width: 100%; height: 240px; object-fit: contain; }
.area-card__figure figcaption { padding: 0 20px 12px; font-size: 12px; color: var(--muted); text-align: center; }
/* Area accent: a thin coloured line across the top of the card and a coloured number; the title itself
   stays plain. Tones: sage gray, mist mint, blue gray (darker shades of the swatches), in turn. */
.area-tone--sage { --area: #7E9A72; --num-ink: #4F6845; }
.area-tone--mint { --area: #66A08A; --num-ink: #3C6B5A; }
.area-tone--blue { --area: #6F8FAE; --num-ink: #3D5F80; }
.area-card.area-tone--sage, .area-card.area-tone--mint, .area-card.area-tone--blue { border-top: 3px solid var(--area); }
.area-card__num { font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--num-ink, var(--accent)); }
.area-card__title { display: flex; align-items: baseline; gap: 12px; color: var(--ink); font-size: 21px; font-weight: 700; line-height: 1.35; }
.area-card__en { display: block; padding-left: 31px; font-size: 13px; color: var(--muted); }
.area-card__text { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.area-card__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.area-card__tags li { padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.area-card__papers { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.area-card__label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }
.area-card__papers ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.area-card__papers li { display: flex; flex-direction: column; gap: 4px; }
.area-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.area-card__paper { font-size: 14px; font-weight: 600; line-height: 1.5; }
.badge--sm { padding: 1px 6px; font-size: 11px; }

/* Contact */
.contact { padding-left: 40px; display: flex; flex-direction: column; gap: 28px; }
.contact__info { display: flex; flex-direction: column; }
.contact__row { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.contact__row:first-child { padding-top: 0; }
.contact__label { flex: 0 0 72px; font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.contact__row p { font-size: 16px; line-height: 1.7; }
.contact__row p.contact__en { margin-top: 6px; font-size: 14px; color: var(--muted); }
.contact__mails { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.contact__mails a { font-weight: 600; }
.contact__mails span { color: var(--muted); font-size: 14px; }
.contact__map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.contact__map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Tablet and below */
/* Projects */
.proj-filter__summary { margin-bottom: 20px; font-size: 15px; color: var(--ink-2); }
.proj-filter__summary a { margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
/* Completed projects: the list, and the Publications side panel listing the sponsors. Names are long, so each
   row is the name and count with the bar under them. */
.proj-layout { scroll-margin-top: 24px; }
.proj-layout .pubs-main > .proj-year:first-child { border-top: 0; padding-top: 0; }
.proj-layout .proj-year { grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; }
.proj-layout .proj-item { grid-template-columns: 132px minmax(0, 1fr); gap: 4px 14px; }
.pub-side.proj-side { margin-top: 0; }
.proj-side .pub-side__years a { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 7px 0; font-family: var(--font-body); }
.proj-side .pub-side__year { grid-area: 1 / 1; line-height: 1.4; overflow-wrap: anywhere; }
.proj-side .pub-side__n { grid-area: 1 / 2; font-family: var(--font-head); }
.proj-side .pub-side__bar { grid-area: 2 / 1 / 3 / 3; }
@media (max-width: 1100px) {   /* no room beside the list: the sponsors go above it */
  .pubs-layout.proj-layout { grid-template-areas: "side" "main"; row-gap: 32px; }
  .pub-side.proj-side { display: block; position: static; max-height: none; overflow: visible; padding-left: 0; border-left: 0; }
  .proj-side__summary { display: none; }
}
.proj-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.proj-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 26px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; background: var(--white); }
.proj-card__period { font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--accent); }
.proj-card__title { font-size: 20px; font-weight: 700; line-height: 1.5; }
.proj-card__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); }
.proj-card__meta > span + span::before { content: "·"; margin: 0 8px; color: #C9CED6; }
.proj-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.block-head + .proj-year { border-top: 0; padding-top: 0; }
.proj-year__label { font-size: 26px; font-weight: 600; line-height: 1.3; }
.proj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.proj-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; align-items: baseline; }
.proj-item__period { font-family: var(--font-head); font-size: 13px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.proj-item__title { font-size: 16px; font-weight: 500; line-height: 1.55; color: var(--ink); }
/* "과제명 / 수행기관" on one line */
.proj-item__body { font-size: 16px; line-height: 1.55; }
.proj-item__sep { color: #C9CED6; }
.proj-item__sponsor { font-size: 15px; color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; }
  .hero__slides { order: -1; height: 56vw; max-height: 420px; }
  .hero__panel { padding: 36px var(--gutter) 28px; }
  .hero__title { font-size: 40px; }
  .split__intro { padding-right: 0; }
  .split__body { border-left: 0; }
  .pub-list { padding-left: 0; }
  .split--reverse .split__intro { padding-left: 0; }
  .split--reverse .split__body { border-right: 0; }
  .split--reverse .pub-list { padding-right: 0; }
  .join__main { padding-right: 0; }
  .join__contact { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .contact { padding-left: 0; }
  .professor__history { grid-template-columns: minmax(0, 1fr); }
  .news-grid-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
  .about-facts div { padding: 22px 24px; }
  .about-facts div:nth-child(3) { border-left: 0; }
  .about-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .page-head { padding-top: 44px; padding-bottom: 40px; }
  .page-head__row { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .page-head__en { order: -1; }
  .page-head__title { font-size: 26px; }
}

/* Phone */
/* Join shows four trips; on the three-column grid the fourth would sit alone on a second row. */
@media (min-width: 641px) and (max-width: 900px) {
  .join-activities > :nth-child(4) { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section--ruled { padding-top: 0; }
  .section--ruled > .container { padding-top: 56px; }
  .section-title { font-size: 30px; }
  .hero__title { font-size: 34px; }
  .research-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-list--wide { grid-template-columns: minmax(0, 1fr); }
  .pub-list--wide .pub-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pub-list--wide .pub-item:nth-child(2) { padding-top: 18px; }
  .area-card { padding: 22px 20px; }
  .area-card__title { font-size: 19px; }
  .area-card__figure { margin: -22px -20px 4px; }
  .area-card__figure img { height: 200px; }
  .research-item, .research-item:nth-child(n) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .research-grid--wide .research-item:nth-child(n) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .research-grid--wide .research-item:first-child { border-top: 0; padding-top: 0; }
  .research-item:first-child { border-top: 0; padding-top: 0; }
  .news-card--lead .news-card__img { height: 240px; }
  .news-card__media { flex-basis: 100%; height: 220px; }
  .news-card--lead .news-card__title { font-size: 22px; }
  .join__title { font-size: 24px; }
  .contact__row { flex-direction: column; gap: 6px; }
  .contact__label { flex-basis: auto; }
  .about-intro__title { font-size: 24px; }
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .about-facts div { border-left: 0; padding: 16px 20px; }
  .about-facts div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .about-facts dd { white-space: normal; }
  .professor__photo { flex-basis: 160px; width: 160px; }
  .professor__name { font-size: 26px; }
  .member-grid { grid-template-columns: minmax(0, 1fr); }
  .member { gap: 18px; padding: 20px; }
  .member__photo { flex-basis: 96px; width: 96px; height: 118px; }
  .member__name { font-size: 19px; }
  .pub-search { flex-basis: 100%; }
  .pub-ack { flex: 1 1 0; }
  .pub-tabs { gap: 22px; }
  .pub-tabs__tab { font-size: 16px; }
  .pub-year__label { font-size: 22px; }
  .pub-entry { grid-template-columns: 52px minmax(0, 1fr); }
  .pub-entry__no { font-size: 13px; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .news-grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .news-tile__meta--title { flex-wrap: wrap; }
  .news-tile__meta--title > .news-tile__title { flex-basis: 100%; }   /* narrow tiles: title under the date */
  .article__title { font-size: 24px; }
  .gallery.gallery--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .article__text { font-size: 16px; }
  .gallery { --row: 130px; gap: 6px; }
  .article-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .article-nav__list { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .lightbox__img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin-top: 0; }
  .news-tile--lead .news-tile__media { min-height: 220px; }
  .news-tile--lead .news-tile__body { padding: 0; }
  .news-tile--lead .news-tile__title { font-size: 22px; }
  .pub-entry__pdf { grid-column: 2; }
  .pub-entry__pdf { justify-self: start; margin-top: 0; }
  .timeline div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .proj-year, .proj-layout .proj-year { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .proj-item, .proj-layout .proj-item { grid-template-columns: minmax(0, 1fr); }

  .proj-card { padding: 22px; }
}

/* Printed pages (professor CV and any other page): A4 with plain margins; works in every Chrome version.
   Set the print dialog's 여백 to 기본 and turn off 머리글과 바닥글 for a clean page. */
/* Print margins are drawn by the page itself: the body's padding repeats on every printed page (clone), so the
   margins stay the same whatever the print dialog's "여백" setting is (기본값 / 없음 / 최소). */
@page { size: A4; margin: 0; }
@media print {
  body { padding: 14mm 15mm 15mm; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}

/* Printing the professor CV (professor.php): A4, compact, about two pages.
   Kept last so it wins over the narrow-screen rules (a printed page is ~700px wide). */
@media print {
  .cv.container { padding: 0; max-width: none; width: auto; }
  .cv { overflow-wrap: anywhere; }
  .cv-profile__body, .cv-block, .cv-two > * { min-width: 0; }
  .cv-print-foot { margin-bottom: 0; }
  .site-header, .site-footer, .to-top, .skip-link, .page-head, .cv-profile__links, .cv-more, .cv-back, .apply-dialog { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit !important; text-decoration: none !important; }
  .section { padding: 0 !important; }
  .container { max-width: none; padding: 0; }
  .cv { gap: 6mm; }
  .cv-profile { flex-wrap: nowrap; gap: 6mm; align-items: center; padding-bottom: 4mm; border-bottom: 1.5pt solid #1F334A; }
  .cv-profile__photo { flex: 0 0 26mm; width: 26mm; border-radius: 2mm; }
  .cv-profile__body { gap: 1.5mm; }
  .cv-profile .eyebrow { font-size: 7pt; letter-spacing: 1.5pt; }
  .cv-profile__name { font-size: 19pt; }
  .cv-profile__name span { font-size: 11pt; }
  .cv-profile__role { font-size: 9pt; line-height: 1.45; }
  .cv-profile__role span { font-size: 8pt; }
  .cv-contact { flex-direction: row; flex-wrap: wrap; gap: 1mm 6mm; margin: 1mm 0 0; padding: 0; border: 0; }
  .cv-contact div { display: flex; gap: 1.5mm; font-size: 8.5pt; }
  .cv-contact dt { font-size: 7.5pt; }
  .cv-stats { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; border-radius: 0; }
  .cv-stats div, .cv-stats div:nth-child(n) { padding: 2.5mm 3mm; border-top: 0 !important; border-left: 1px solid var(--line) !important; }
  .cv-stats div:first-child { border-left: 0 !important; }
  .cv-stats dt { font-size: 7.5pt; }
  .cv-stats dd { margin-top: 0.5mm; font-size: 8pt; }
  .cv-stats strong { font-size: 15pt; }
  .cv-stats small { font-size: 7pt; }
  .cv-block { gap: 2.5mm; }
  .cv-block__title, .cv-block__head { padding-bottom: 1.5mm; border-bottom-width: 1pt; font-size: 11pt; }
  .cv-block__title span { font-size: 8pt; }
  .cv-areas { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 2mm; }
  .cv-areas a { padding: 2mm 3mm; border-radius: 1.5mm; font-size: 8.5pt; gap: 0.5mm 2mm; }
  .cv-areas small { font-size: 7pt; }
  .cv-two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7mm 8mm; }
  .cv-two--history { grid-template-columns: minmax(0, 1fr) !important; gap: 6mm; }
  .cv-wide { gap: 6mm; }
  .timeline { gap: 1.2mm; }
  .timeline div { grid-template-columns: 32mm minmax(0, 1fr); gap: 3mm; font-size: 8.5pt; line-height: 1.45; }
  .timeline dt { white-space: nowrap; }
  .timeline dt { font-size: 7.5pt; }
  .cv-thesis { font-size: 7.5pt; }
  .cv-list li, .cv-list--compact li { grid-template-columns: 14mm minmax(0, 1fr); gap: 2mm; padding: 1.6mm 0; }
  .cv-list--compact li { grid-template-columns: 16mm minmax(0, 1fr); }
  .cv-list__year { font-size: 7.5pt; padding-top: 0.3mm; }
  .cv-list__title { font-size: 8.5pt; line-height: 1.4; }
  .cv-list__meta { margin-top: 0.3mm; font-size: 7.5pt; line-height: 1.4; }
  .cv-tag { font-size: 6.5pt; padding: 0 1.2mm; }
  .cv-tag--award { background: none; color: var(--accent); }   /* backgrounds are usually not printed */
  .cv-award__paper { font-size: 7.5pt; }
  /* Whole sections may continue on the next page (keeping them in one piece pushed big blocks to an extra
     page when fonts measured slightly differently); single entries, the header and the numbers stay whole. */
  .cv-list li, .cv-stats, .cv-profile, .cv-areas, .timeline div { break-inside: avoid; }
  .cv-print-foot { break-before: avoid; break-inside: avoid; }
  .cv-block__title, .cv-block__head { break-after: avoid; }
  .cv-print-foot { display: flex !important; justify-content: space-between; margin-top: 4mm; padding-top: 2mm; border-top: 1px solid var(--line); font-size: 7pt; color: var(--muted); }
}

