@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* =========================================================
   Tokens
   ========================================================= */
:root {
  /* palette — drafting paper & navy ink */
  --ink:        #0b1d2e;
  --ink-70:     #22364a;
  --ink-45:     #4a6076;
  --paper:      #eef1f4;
  --surface:    #ffffff;
  --rule:       #d3dbe3;
  --rule-soft:  #e4e9ee;
  --signal:     #0f766e;
  --signal-lo:  #e2efed;
  --signal-up:  #7fd1c4;
  --mark:       #1d4ed8;
  --mark-lo:    #e4ecfb;

  /* dark panel */
  --panel:      #0b1d2e;
  --panel-2:    #10293d;
  --panel-text: #e8eef4;
  --panel-mute: #b5c6d6;
  --panel-rule: #1e3c55;

  /* type */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;

  --fs-display: clamp(1.6rem, 8.6vw, 5rem);
  --fs-h2:      clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-h3:      clamp(1.15rem, 1.05rem + 0.45vw, 1.375rem);
  --fs-body:    clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-small:   clamp(0.9rem, 0.86rem + 0.15vw, 0.975rem);

  /* layout */
  --wrap: 68rem;
  --gutter: clamp(1.125rem, 0.6rem + 2.6vw, 2.75rem);
  --bar-h: 3.75rem;
  --radius: 10px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  /* 내용이 짧아 스크롤바가 없는 페이지도 스크롤바 자리를 비워 두어 정렬이 흔들리지 않게 */
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
}

body {
  margin: 0;
  overflow-x: clip;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  /* 한글이 단어 중간에서 끊기지 않도록 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  word-break: keep-all;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip:focus { top: 0.75rem; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: tabular-nums; }

/* =========================================================
   Top bar
   ========================================================= */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 241, 244, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.bar__inner {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--ink-45); font-weight: 500; font-size: var(--fs-small); }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.nav a {
  position: relative;
  display: block;
  padding: 0.35rem 0;
  color: var(--ink-70);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--signal);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.15s ease;
}
.nav-toggle span { margin-inline: auto; position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(11, 29, 46, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
body.nav-open .scrim { opacity: 1; visibility: visible; }

@media (max-width: 60rem) {
  .nav-toggle { display: block; }

  /* backdrop-filter가 fixed 자손의 기준 박스가 되어 메뉴가 잘리므로 모바일에서는 해제 */
  .bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }

  .nav {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: min(80vw, 19rem);
    padding: calc(var(--bar-h) + 1.25rem) 1.5rem 2rem;
    background: var(--surface);
    border-left: 1px solid var(--rule);
    transform: translateX(101%);
    transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
  }
  body.nav-open .nav { transform: translateX(0); }

  .nav ul { display: block; }
  .nav li + li { border-top: 1px solid var(--rule-soft); }
  .nav a { padding: 0.9rem 0; font-size: 1.0625rem; }
  .nav a[aria-current="page"]::after { inset: auto auto 0.55rem 0; width: 1.25rem; right: auto; }
}

/* =========================================================
   Hero (index)
   ========================================================= */
.hero {
  position: relative;
  background: var(--panel);
  color: var(--panel-text);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(127, 209, 196, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127, 209, 196, 0.13) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  -webkit-mask-image: radial-gradient(105% 85% at 78% 8%, #000 0%, transparent 72%);
  mask-image: radial-gradient(105% 85% at 78% 8%, #000 0%, transparent 72%);
}

.hero__inner {
  padding-block: clamp(2.5rem, 1.25rem + 5vw, 4.75rem) clamp(2rem, 1.25rem + 3vw, 3.25rem);
}

.hero__name {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.hero__ko {
  margin-left: 0.3em;
  font-size: 0.52em;
  font-weight: 600;
  color: var(--signal-up);
  letter-spacing: 0;
  vertical-align: baseline;
}

.ongoing,
.coauthor { color: var(--mark); }

.table tr.is-ongoing .c-period,
.table tbody tr.is-ongoing:nth-child(even) .c-period {
  color: var(--mark);
  background-color: var(--mark-lo);
  border-right-color: var(--mark);
}
@media (max-width: 48rem) {
  .table tr.is-ongoing .c-period,
  .table tbody tr.is-ongoing:nth-child(even) .c-period { border-left-color: var(--mark); }
  .table tr.is-ongoing .c-period::before { color: var(--mark); }
}

.hero__lede {
  margin-top: clamp(1rem, 0.8rem + 0.6vw, 1.25rem);
  font-size: min(1.25rem, 3.6vw);
  white-space: nowrap;
  line-height: 1.65;
  color: #dde6ee;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--solid { background: var(--signal-up); color: #06251f; }
.btn--solid:hover { background: #a5e1d7; color: #06251f; }
.btn--ghost { border-color: var(--panel-rule); color: var(--panel-text); }
.btn--ghost:hover { border-color: var(--signal-up); color: var(--signal-up); }

/* ledger strip */
.ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: clamp(1.75rem, 1.25rem + 2vw, 2.5rem) 0 0;
}
.ledger div {
  padding: 1rem 0.6rem 0.9rem;
  border: 1px solid var(--panel-rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.ledger dd {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--signal-up);
  font-variant-numeric: tabular-nums;
}
.ledger dt {
  margin-top: 0.35rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--panel-text);
}
.ledger__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--panel-mute);
  word-break: keep-all;
}

/* 태블릿: 3칸 + 2칸 */
@media (max-width: 48rem) {
  .ledger { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ledger div { grid-column: span 2; }
  .ledger div:nth-child(n + 4) { grid-column: span 3; }
}
/* 모바일: 2칸 + 3칸 (논문·연구과제를 넓게) */
@media (max-width: 34rem) {
  .ledger div:nth-child(-n + 2) { grid-column: span 3; }
  .ledger div:nth-child(n + 3) { grid-column: span 2; }
}

/* =========================================================
   Deck (slideshow)
   ========================================================= */
.deck {
  position: relative;
  margin-top: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
}

.deck__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--panel-rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: #061421;
  touch-action: pan-y;
}

/* 창 크기는 고정, 사진은 원본 비율 그대로 안에 맞춤 (잘리지 않음) */
.deck__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.deck__slide.is-on { opacity: 1; }

.deck__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(232, 238, 244, 0.28);
  border-radius: 50%;
  background: rgba(11, 29, 46, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s ease;
}
.deck__btn:hover { background: rgba(11, 29, 46, 0.85); }
@media (max-width: 36rem) {
  .deck__btn { width: 2rem; height: 2rem; font-size: 0.85rem; }
}
.deck__btn--prev { left: 0.75rem; }
.deck__btn--next { right: 0.75rem; }

.deck__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.deck__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--panel-rule);
  cursor: pointer;
  transition: background-color 0.15s ease, width 0.2s ease;
}
.deck__dot[aria-selected="true"] { width: 1.4rem; border-radius: 1rem; background: var(--signal-up); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); }
.section + .section { padding-top: 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding-bottom: 0.45rem;
  margin-bottom: clamp(0.75rem, 0.6rem + 0.5vw, 1.1rem);
  border-bottom: 1px solid var(--rule);
}
.section__head h2 { font-size: var(--fs-h2); }
.section__head p {
  margin-left: auto;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--signal);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 36rem) {
  .section__head p { margin-left: 0; width: 100%; text-align: left; font-size: var(--fs-body); }
}

.prose {
  max-width: 60ch;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-70);
}
.prose strong { color: var(--ink); font-weight: 600; }

.contact {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  max-width: 60ch;
}
.contact div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  font-size: var(--fs-small);
}
.contact dt { color: var(--ink-45); }
.contact dd { margin: 0; }
.contact dd { overflow-wrap: anywhere; }

/* tag list */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags li {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-70);
}

/* =========================================================
   Profile
   ========================================================= */
.pcard {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(1.75rem, 1.25rem + 2.5vw, 3rem);
}

@media (max-width: 44rem) {
  .pcard { grid-template-columns: minmax(0, 1fr); }
}

.pcard__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--surface);
}

@media (max-width: 44rem) {
  .pcard__photo { max-width: 13rem; aspect-ratio: 1 / 1; }
}

.pcard__name {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  overflow-wrap: anywhere;
  letter-spacing: -0.035em;
}
.pcard__title {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-70);
}
.pcard__role {
  margin-top: 0.4rem;
  color: var(--ink-45);
  font-size: var(--fs-small);
}
.pcard__note {
  max-width: 48ch;
  margin-top: 0.75rem;
  color: var(--ink-70);
}

.email { color: var(--signal); font-weight: 500; }

.pcard__info {
  display: grid;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}
.pcard__info div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}
.pcard__info dt { font-size: var(--fs-small); font-weight: 600; color: var(--ink-45); }
.pcard__info dd { margin: 0; color: var(--ink); line-height: 1.5; }


@media (max-width: 30rem) {
  .pcard__info div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

/* timeline */
.timeline { display: grid; }
.timeline li {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule-soft);
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time {
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--signal);
  white-space: nowrap;
}
.timeline h3 { font-size: var(--fs-h3); }
.timeline .degree { margin-left: 0.35rem; font-size: var(--fs-small); font-weight: 500; color: var(--ink-70); }
.timeline p { margin-top: 0.15rem; font-size: var(--fs-small); color: var(--ink-70); }

@media (max-width: 40rem) {
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
}

/* awards */
.awards { display: grid; }
.awards li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule-soft);
}
.awards li:first-child { border-top: 0; }
.awards b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--signal);
  font-size: var(--fs-small);
  padding-top: 0.15rem;
}
.awards span { color: var(--ink-70); }

@media (max-width: 30rem) {
  .awards li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 0.75rem;
}
.gallery button {
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 0.35rem;
  transition: transform 0.25s ease;
}
.gallery button:hover img { transform: scale(1.03); }

dialog.lightbox {
  width: min(92vw, 62rem);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(11, 29, 46, 0.82); }
dialog.lightbox img {
  width: 100%;
  max-height: 82dvh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
}
dialog.lightbox .lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* =========================================================
   Tables (projects)
   ========================================================= */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.table {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.table thead th {
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.table thead th:last-child { border-right: 0; }

.table tbody tr { border-top: 1px solid var(--rule-soft); }
.table tbody tr:nth-child(even) td { background-color: #f6f8fa; }

.table td {
  padding: 0.6rem 1rem;
  vertical-align: top;
  color: var(--ink-70);
  border-right: 1px solid var(--rule);
}
.table td:last-child { border-right: 0; }

.table .c-period {
  width: 11.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--signal);
  background-color: var(--signal-lo);
  border-right: 2px solid var(--signal);
}
.table tbody tr:nth-child(even) .c-period { background-color: #d6e8e5; }

.table .c-title {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.5;
}
.table .c-num { width: 10.5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .c-org { width: 13rem; color: var(--ink); }
.table .c-org span { display: block; }
.table .c-org span + span { color: var(--ink-70); font-weight: 400; }
.table .c-org span:first-child { font-weight: 600; }

/* 모바일: 표를 카드형 정의 목록으로 전환 */
@media (max-width: 48rem) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .table { border: 0; background: transparent; overflow: visible; }

  .table tbody tr,
  .table tbody tr:nth-child(even) td {
    background: var(--surface);
  }
  .table tbody tr {
    margin-bottom: 0.65rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .table td {
    padding: 0.55rem 0.9rem;
    border-right: 0;
    border-top: 1px solid var(--rule-soft);
  }
  .table td:first-child { border-top: 0; }

  .table td { overflow-wrap: anywhere; }
  .table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 4.5rem;
    margin-right: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-45);
  }

  .table .c-period,
  .table tbody tr:nth-child(even) .c-period {
    width: auto;
    white-space: normal;
    background-color: var(--signal-lo);
    border-right: 0;
    border-left: 3px solid var(--signal);
  }
  .table .c-period::before { color: var(--signal); }
  .table .c-org,
  .table .c-num { width: auto; white-space: normal; }
  .table .c-org span { display: inline; }
  .table .c-org span + span::before { content: " / "; }
  .table .c-title { font-size: 1rem; padding-block: 0.7rem; }
  .table .c-title::before { content: none; }
}

/* =========================================================
   Publications
   ========================================================= */
.pubs { display: grid; }

.pubs > li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule-soft);
}
.pubs > li:first-child { border-top: 0; padding-top: 0; }

.pubs > li > time,
.pubs time {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--signal);
  padding-top: 0.2rem;
}

.pub__title {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.pub__meta {
  margin-top: 0.2rem;
  font-size: var(--fs-small);
  color: var(--ink-70);
}
.pub__venue { color: var(--ink-45); }
.me {
  font-weight: 700;
  color: var(--ink);
  box-shadow: inset 0 -0.45em 0 var(--signal-lo);
}

@media (max-width: 36rem) {
  .pubs > li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .pubs time { padding-top: 0; }
}

/* =========================================================
   Footer
   ========================================================= */
.foot {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding-block: 1.1rem;
  font-size: var(--fs-small);
  color: var(--ink-45);
}
.foot a { color: var(--ink-70); text-decoration: none; }
.foot a:hover { color: var(--signal); text-decoration: underline; }

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   Vulnerabilities
   ========================================================= */
.table--vuln .c-id { width: 10.5rem; }
.table--vuln .c-product {
  width: 14rem;
  font-weight: 600;
  color: var(--ink);
}
.table--vuln .ver { white-space: nowrap; }
.table--vuln .c-summary {
  color: var(--ink-70);
  line-height: 1.6;
}
.table--vuln .c-lead { width: 8.5rem; white-space: nowrap; }
.table--vuln .c-link { width: 4.5rem; white-space: nowrap; text-align: center; }
.table--vuln .c-link a { font-weight: 600; }

.table--vuln code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--rule-soft);
  color: var(--ink);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 태블릿 폭: 보조 열을 줄여 Summary 칸 확보 */
@media (max-width: 64rem) {
  .table--vuln .c-id { width: auto; }
  .table--vuln .c-product { width: 8.5rem; }
  .table--vuln .c-lead { width: auto; }
}

@media (max-width: 48rem) {
  .table--vuln .c-id,
  .table--vuln .c-product,
  .table--vuln .c-lead,
  .table--vuln .c-link { width: auto; white-space: normal; text-align: left; }
  .table--vuln .c-summary::before { display: block; margin-bottom: 0.2rem; }
}

/* 내용이 짧은 페이지에서도 푸터가 화면 하단에 붙도록 */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }

/* 표 제목 아래 보조 설명 (예: 지원 사업) */
.table .c-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-70);
}

/* 수행중 과제 기간 아래 (현재) 표시 */
.table tr.is-ongoing .c-period .c-sub { color: var(--mark); font-weight: 600; }
@media (max-width: 48rem) {
  /* 카드형에서는 라벨 폭만큼 들여서 날짜 바로 아래에 맞춤 */
  .table .c-period .c-sub { margin-left: 5.1rem; }
}

/* 취약점 표: 제품 아래 설명은 일반 굵기 */
.table .c-desc { font-weight: 400; line-height: 1.5; margin-top: 0.3rem; }

/* 취약점 표: NVD / CVE 링크를 위아래로 */
.table--vuln .c-link a { display: block; }
.table--vuln .c-link a + a { margin-top: 0.25rem; }
@media (max-width: 48rem) {
  .table--vuln .c-link a:first-of-type { display: inline; }
  .table--vuln .c-link a + a { margin: 0.25rem 0 0 5.1rem; width: max-content; }
}

/* =========================================================
   Background — 도면 격자
   ========================================================= */
:root { --paper: #f5f7f9; }
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(11, 29, 46, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 29, 46, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.bar { background: rgba(245, 247, 249, 0.9); }

/* =========================================================
   Page head — 하위 페이지 상단 띠
   ========================================================= */
.pagehead {
  position: relative;
  background: var(--panel);
  color: var(--panel-text);
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(127, 209, 196, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127, 209, 196, 0.13) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  -webkit-mask-image: radial-gradient(90% 140% at 85% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(90% 140% at 85% 0%, #000 0%, transparent 70%);
}
.pagehead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  padding-block: clamp(1.1rem, 0.8rem + 1.2vw, 1.7rem) clamp(1rem, 0.75rem + 1vw, 1.5rem);
}
.pagehead__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.pagehead__ko {
  margin: 0;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem);
  font-weight: 600;
  color: var(--signal-up);
}
