/* 진입 화면 전용 스타일 (index.html 의 landing 레이아웃에서만 불러옴) */

:root {
  --lp-night: #050f26;
  --lp-deep: #0e2a66;
  --lp-signal: #3d7bff;
  --lp-glow: #9cc8ff;
  --lp-on-dark: #e8eef9;
  --lp-paper: #f7f9fc;
  --lp-ink: #1c2840;
  --lp-muted: #5d6c86;
  --lp-line: #dde5f1;
  --lp-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

/* ---------- 소개 화면 ---------- */
.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--lp-on-dark);
  background:
    radial-gradient(110% 90% at 78% 38%, #12347a 0%, #0a1f4d 42%, var(--lp-night) 100%);
  font-family: var(--lp-font);
  overflow: hidden;
  isolation: isolate;
  word-break: keep-all;
}

.lp-hero__graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  cursor: crosshair;
}

/* 글자가 놓이는 왼쪽만 살짝 어둡게 */
.lp-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 15, 38, 0.82) 0%, rgba(5, 15, 38, 0.55) 38%, rgba(5, 15, 38, 0) 68%);
}

.lp-hero a { color: inherit; }
.lp-hero a:focus-visible,
.lp-posts a:focus-visible {
  outline: 2px solid var(--lp-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

.lp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4.5rem);
}
.lp-bar__home {
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.lp-bar__nav { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); }
.lp-bar__nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(232, 238, 249, 0.72);
  transition: color 0.15s;
}
.lp-bar__nav a:hover { color: #fff; }

.lp-id {
  align-self: center;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  width: 100%;
  max-width: 1180px;
  padding: 2rem clamp(1.25rem, 5vw, 4.5rem);
  box-sizing: border-box;
  pointer-events: none; /* 빈 곳에서도 그래프와 상호작용 */
}
.lp-id a, .lp-id img { pointer-events: auto; }

.lp-id__photo {
  width: clamp(120px, 13vw, 176px);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(156, 200, 255, 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

.lp-id__text { max-width: 40rem; }

.lp-id__name {
  margin: 0;
  font-family: var(--lp-font);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
}
.lp-id__ko {
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--lp-glow);
  vertical-align: 0.42em;
}

.lp-id__role {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 550;
  color: var(--lp-on-dark);
}
.lp-id__advisor {
  margin-left: 0.75em;
  padding-left: 0.75em;
  border-left: 1px solid rgba(156, 200, 255, 0.4);
  font-weight: 400;
  color: rgba(232, 238, 249, 0.68);
}


.lp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.lp-links li { margin: 0; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.62em 1em;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(156, 200, 255, 0.35);
  background: rgba(10, 31, 77, 0.55);
  backdrop-filter: blur(4px);
  transition: border-color 0.15s, background-color 0.15s;
}
.lp-btn:hover { border-color: var(--lp-glow); background: rgba(30, 70, 150, 0.55); }
.lp-btn--primary {
  background: var(--lp-signal);
  border-color: var(--lp-signal);
  color: #fff !important;
}
.lp-btn--primary:hover { background: #5a90ff; border-color: #5a90ff; }

.lp-hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4.5rem) 1.75rem;
}
.lp-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--lp-on-dark);
}
.lp-scroll i { transition: transform 0.2s; }
.lp-scroll:hover i { transform: translateY(3px); }
.lp-hint {
  margin: 0;
  max-width: 26rem;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: right;
  color: rgba(156, 200, 255, 0.62);
}

/* ---------- 연구 관심사 ---------- */
.lp-research {
  word-break: keep-all;
  background: #edf2fa;
  color: var(--lp-ink);
  font-family: var(--lp-font);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 5vw, 4.5rem);
}
.lp-research__inner { max-width: 68rem; margin: 0 auto; }
.lp-research h2 {
  margin: 0 0 1rem;
  font-family: var(--lp-font);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
  border: 0;
  padding: 0;
}
.lp-research__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-research__item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  margin: 0;
}
.lp-research__item .lp-research__fig { grid-row: 1 / span 2; align-self: center; }
.lp-research__item h3 { align-self: end; }
.lp-research__item p { align-self: start; }
.lp-research__fig {
  height: 128px;
  padding: 0.4rem 0.5rem;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d6e1f3;
}
.lp-research__item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--lp-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--lp-ink);
}
.lp-research__item p {
  margin: 0;
  max-width: 30em;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--lp-muted);
}

@media (max-width: 900px) {
  .lp-research__list { grid-template-columns: minmax(0, 1fr); }
  .lp-research__item { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
}

/* 그림 공통 */
.lp-fig { display: block; width: 100%; height: 100%; overflow: visible; }
.lp-fig line, .lp-fig path, .lp-fig polygon { stroke-linecap: round; stroke-linejoin: round; }
.lp-fig__outer line { stroke: #9fbbe8; stroke-width: 1.6; stroke-dasharray: 4 4; }
.lp-fig__hull { fill: #e6eefc; stroke: #3d7bff; stroke-width: 1.4; }
.lp-fig__cluster line { stroke: #2f6fe4; stroke-width: 1.4; }
.lp-fig__cluster circle:not(.lp-fig__hull),
.lp-fig__nodes circle { fill: #1f4fb8; }
.lp-fig__face polygon { fill: rgba(61, 123, 255, 0.16); stroke: none; }
.lp-fig__edges line { stroke: #2f6fe4; stroke-width: 1.4; }
.lp-fig__hole { fill: none; stroke: #9fbbe8; stroke-width: 1.2; stroke-dasharray: 3 4; }
.lp-fig__links path { fill: none; stroke: #2f6fe4; stroke-width: 1.5; }
.lp-fig__return path { fill: none; stroke: #9fbbe8; stroke-width: 1.3; stroke-dasharray: 4 4; }
.lp-fig__arrowhead { fill: #2f6fe4; }
.lp-fig__hub { fill: #1f4fb8; }
.lp-fig__hubdot { fill: #9cc8ff; }
.lp-fig__agents rect { fill: #e6eefc; stroke: #3d7bff; stroke-width: 1.4; }

/* 마우스를 올리면 그림이 살짝 살아남 */
.lp-fig * { transition: stroke 0.2s, fill 0.2s; }
.lp-research__item:hover .lp-fig__outer line,
.lp-research__item:hover .lp-fig__return path { stroke: #3d7bff; }
.lp-research__item:hover .lp-fig__hull,
.lp-research__item:hover .lp-fig__agents rect { fill: #d8e6ff; }
.lp-research__item:hover .lp-fig__face polygon { fill: rgba(61, 123, 255, 0.26); }
.lp-research__item:hover .lp-fig__hole { stroke: #3d7bff; }
@media (prefers-reduced-motion: no-preference) {
  .lp-research__item:hover .lp-fig__outer line,
  .lp-research__item:hover .lp-fig__return path,
  .lp-research__item:hover .lp-fig__hole { animation: lp-flow 1.2s linear infinite; }
}
@keyframes lp-flow { to { stroke-dashoffset: -16; } }

/* ---------- 프로젝트 ---------- */
.lp-projects,
.lp-pdetail,
.lp-admin {
  word-break: keep-all;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: var(--lp-font);
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem) 0;
}
.lp-projects--page { padding-bottom: 3rem; }
.lp-projects__inner { max-width: 68rem; margin: 0 auto; }
.lp-empty { margin: 1.25rem 0 0; color: var(--lp-muted); font-size: 0.95rem; }


.lp-meter {
  position: relative;
  flex: 1;
  height: 6px;
  min-width: 3rem;
  border-radius: 99px;
  background: #dfe7f4;
  overflow: hidden;
}
.lp-meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--lp-signal); }
.lp-meter--wide { max-width: 14rem; display: inline-block; vertical-align: middle; margin-right: 0.6rem; flex: none; width: 14rem; }

.lp-status {
  display: inline-block;
  padding: 0.18em 0.6em;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.lp-status--active  { background: #dce8ff; color: #1f4fb8; }
.lp-status--planned { background: #eceff5; color: #4a5872; }
.lp-status--paused  { background: #ebe8f6; color: #554a86; }
.lp-status--done    { background: #dcf1e5; color: #1d6b45; }

.lp-tag {
  display: inline-block;
  padding: 0.12em 0.5em;
  border-radius: 4px;
  background: #eef2f8;
  color: #3b4a66;
  font-size: 0.76rem;
  line-height: 1.5;
}
.lp-tag--cat { background: #1f4fb8; color: #fff; }

/* 프로젝트 상세 */
.lp-pdetail { padding-bottom: 3rem; }
.lp-pdetail__inner { max-width: 46rem; margin: 0 auto; }
.lp-back { font-size: 0.88rem; text-decoration: none; color: var(--lp-muted) !important; }
.lp-back:hover { color: #2457c5 !important; }
.lp-pdetail h1 {
  margin: 1rem 0 0.4rem;
  font-family: var(--lp-font);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.lp-pdetail__sum { margin: 0; color: var(--lp-muted); font-size: 1.02rem; }
.lp-props {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.7rem 1rem;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
  font-size: 0.92rem;
}
.lp-props dt { margin: 0; color: var(--lp-muted); font-weight: 400; }
.lp-props dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; font-variant-numeric: tabular-nums; }
.lp-pdetail__body { margin-top: 2rem; font-size: 1rem; line-height: 1.75; }
.lp-pdetail__body h2 {
  margin: 0 0 0.6rem;
  font-family: var(--lp-font);
  font-size: 1.15rem;
  font-weight: 700;
  border: 0;
  padding: 0;
}
.lp-log { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--lp-line); }
.lp-log li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; margin: 0; padding: 0.35rem 0 0.35rem 1.1rem; font-size: 0.94rem; }
.lp-log li::before { content: ""; position: absolute; left: -5px; top: 0.85em; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-signal); }
.lp-log time { color: var(--lp-muted); font-variant-numeric: tabular-nums; }

/* 관리 페이지 */
.lp-admin { padding-bottom: 3rem; }
.lp-admin__inner { max-width: 68rem; margin: 0 auto; }
.lp-admin h3 { margin: 0 0 0.75rem; font-family: var(--lp-font); font-size: 1.05rem; font-weight: 700; }
.lp-admin__existing { margin: 1.5rem 0 2rem; }
.lp-admin__list { list-style: none; margin: 0; padding: 0; }
.lp-admin__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--lp-line); font-size: 0.95rem;
}
.lp-admin__actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.lp-admin__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.lp-form { display: grid; gap: 1rem; }
.lp-field { display: grid; gap: 0.35rem; margin: 0; font-size: 0.85rem; color: var(--lp-muted); }
.lp-field em { font-style: normal; opacity: 0.8; }
.lp-field output { color: var(--lp-ink); font-weight: 600; margin-left: 0.3em; }
.lp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lp-form input[type="text"], .lp-form input[type="date"], .lp-form select, .lp-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cfd9ea;
  border-radius: 6px;
  background: #fff;
  color: var(--lp-ink);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: none;
}
.lp-form textarea { resize: vertical; line-height: 1.6; }
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus { outline: 2px solid var(--lp-signal); outline-offset: 0; border-color: var(--lp-signal); }
.lp-field--title input[type="text"] { font-size: 1.3rem; font-weight: 700; padding: 0.5rem 0.7rem; }
.lp-form input[type="range"] { width: 100%; accent-color: var(--lp-signal); margin: 0.5rem 0; }
.lp-form input[readonly] { background: #f0f3f8; color: var(--lp-muted); }

.lp-updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.lp-updates li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 0.4rem; margin: 0; }
.lp-field > .lp-abtn { justify-self: start; }

.lp-abtn {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.5em 0.85em;
  border: 1px solid #cfd9ea;
  border-radius: 6px;
  background: #fff;
  color: var(--lp-ink) !important;
  font: inherit; font-size: 0.85rem; font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
.lp-abtn:hover { border-color: var(--lp-signal); }
.lp-abtn:focus-visible { outline: 2px solid var(--lp-signal); outline-offset: 2px; }
.lp-abtn--primary { background: var(--lp-signal); border-color: var(--lp-signal); color: #fff !important; }
.lp-abtn--primary:hover { background: #2f6fe4; }
.lp-abtn--quiet { border-color: transparent; background: transparent; color: var(--lp-muted) !important; }
.lp-abtn--quiet:hover { border-color: #cfd9ea; color: var(--lp-ink) !important; }

.lp-form__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lp-form__error { margin: 0; padding: 0.6rem 0.8rem; border-radius: 6px; background: #fdecec; color: #a12a2a; font-size: 0.88rem; }
.lp-form__note { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--lp-muted); }

.lp-preview { position: sticky; top: 1.5rem; }
.lp-preview__file { margin-top: 1rem; font-size: 0.85rem; }
.lp-preview__file summary { cursor: pointer; color: var(--lp-muted); }
.lp-preview__file pre { margin: 0.6rem 0 0; padding: 0.9rem; max-height: 22rem; overflow: auto; border-radius: 6px; background: #0b1f4a; color: #dce8ff; font-size: 0.78rem; line-height: 1.55; white-space: pre-wrap; }

/* ---------- 노션 스타일 프로젝트 데이터베이스 ---------- */
.nt { --nt-line: #e3e9f3; --nt-head: #6b7a94; margin-top: 0.5rem; font-size: 0.9rem; }

.nt-tabs { display: flex; gap: 0.25rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--nt-line); }
.nt-tabs button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0; padding: 0.35rem 0.6rem;
  border: 0; border-radius: 5px; background: transparent;
  font: inherit; font-size: 0.85rem; color: var(--nt-head); cursor: pointer;
}
.nt-tabs button i { font-size: 0.8em; }
.nt-tabs button:hover { background: #eef2f9; }
.nt-tabs button[aria-selected="true"] { color: var(--lp-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--lp-ink); border-radius: 5px 5px 0 0; }
.nt-tabs button:focus-visible { outline: 2px solid var(--lp-signal); outline-offset: 1px; }

/* 그룹 (접기/펴기) */
.nt-group { margin: 1.25rem 0 0; }
.nt-group > summary {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.25rem; margin-left: -0.25rem;
  list-style: none; cursor: pointer; border-radius: 5px;
}
.nt-group > summary::-webkit-details-marker { display: none; }
.nt-group > summary:hover { background: #eef2f9; }
.nt-group > summary:focus-visible { outline: 2px solid var(--lp-signal); }
.nt-caret { width: 0.9em; color: var(--nt-head); transition: transform 0.15s; }
.nt-group:not([open]) .nt-caret { transform: rotate(-90deg); }
.nt-count { color: var(--nt-head); font-size: 0.85rem; }

.nt-scroll { overflow-x: auto; margin-top: 0.35rem; }
.nt-table { min-width: 54em; }
.nt-panel[hidden] { display: none !important; }
.nt-nw { white-space: nowrap; }
.nt-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.75fr) minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
  align-items: stretch;
  border-bottom: 1px solid var(--nt-line);
  text-decoration: none !important;
  color: var(--lp-ink) !important;
  transition: background-color 0.12s;
}
.nt-row--head { border-top: 1px solid var(--nt-line); color: var(--nt-head) !important; font-size: 0.8rem; }
.nt-cell {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  min-width: 0; padding: 0.5rem 0.6rem;
  border-right: 1px solid var(--nt-line);
}
.nt-cell:last-child { border-right: 0; }
.nt-row--head .nt-cell { flex-wrap: nowrap; white-space: nowrap; gap: 0.4rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.nt-row--head i { font-size: 0.85em; opacity: 0.8; }
.nt-hicon { font-size: 0.78em; font-weight: 600; letter-spacing: -0.02em; opacity: 0.8; }
a.nt-row:hover { background: #eef3fc; }

.nt-cell--title { flex-wrap: nowrap; gap: 0.45rem; }
.nt-icon { flex: none; width: 1.1em; text-align: center; color: #7d8aa3; }
.nt-title { flex: none; max-width: 100%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid rgba(28, 40, 64, 0.18); line-height: 1.35; }
a.nt-row:hover .nt-title { color: #1f4fb8; border-bottom-color: currentColor; }
.nt-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nt-head); font-size: 0.82rem; }
.nt-date { font-variant-numeric: tabular-nums; font-size: 0.82rem; color: #3b4a66; }
.nt-role { font-size: 0.85rem; color: #3b4a66; }

.nt-prog { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
.nt-meter { position: relative; flex: 1; height: 5px; min-width: 2.5rem; border-radius: 99px; background: #dfe7f4; overflow: hidden; }
.nt-meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #1f4fb8, #3d7bff); }
.nt-pct { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--nt-head); min-width: 2.4em; text-align: right; }

/* 상태: 점이 있는 알약 */
.nt-status {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.12em 0.55em 0.12em 0.45em;
  border-radius: 99px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.nt-status::before { content: ""; width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; }
.nt-status--active  { background: #dce8ff; color: #1f4fb8; }
.nt-status--planned { background: #e9edf4; color: #52617c; }
.nt-status--paused  { background: #e7e4f7; color: #51468f; }
.nt-status--done    { background: #d8efec; color: #12655b; }

/* 태그: 딥블루와 어울리는 다섯 색 */
.nt-tags { gap: 0.3rem; }
.nt-tag { display: inline-block; max-width: 100%; padding: 0.08em 0.45em; border-radius: 4px; font-size: 0.78rem; line-height: 1.5; }
.nt-c0 { background: #dbe6fd; color: #1e4aa8; }
.nt-c1 { background: #d6eef6; color: #0e5f73; }
.nt-c2 { background: #e3e0fa; color: #47399e; }
.nt-c3 { background: #e1e8f2; color: #2c4466; }
.nt-c4 { background: #d5eee8; color: #12604f; }

.nt-foot { padding: 0.45rem 0.6rem; font-size: 0.76rem; color: var(--nt-head); }
.nt-foot b { color: var(--lp-ink); font-weight: 600; }

/* 보드 */
.nt-board { display: grid; grid-template-columns: repeat(4, minmax(13rem, 1fr)); gap: 0.9rem; margin-top: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.nt-col { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.6rem; border-radius: 8px; background: #eef2f9; }
.nt-col__head { display: flex; align-items: center; gap: 0.45rem; padding: 0.1rem 0.15rem 0.2rem; }
.nt-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0.75rem 0.8rem;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 60, 120, 0.08), 0 1px 2px rgba(30, 60, 120, 0.08);
  text-decoration: none !important;
  color: var(--lp-ink) !important;
  transition: box-shadow 0.12s;
}
.nt-card:hover { box-shadow: 0 0 0 1px #9cc0ff, 0 3px 10px -4px rgba(31, 79, 184, 0.35); }
.nt-card__title { display: flex; gap: 0.45rem; font-weight: 600; line-height: 1.4; }
.nt-card__sum { font-size: 0.82rem; color: var(--nt-head); line-height: 1.45; }
.nt-card .nt-tags { display: flex; flex-wrap: wrap; }
.nt-card .nt-date { font-size: 0.78rem; color: var(--nt-head); }
.nt-none { margin: 0.2rem 0.2rem 0.3rem; font-size: 0.8rem; color: #9aa6bb; }

@media (prefers-reduced-motion: reduce) {
  .nt-caret { transition: none; }
}

/* ---------- 글 목록 ---------- */
.lp-posts {
  word-break: keep-all;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: var(--lp-font);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem) 2rem;
}
.lp-posts--paged { padding-top: 2.5rem; }
.lp-posts__inner { max-width: 68rem; margin: 0 auto; }

.lp-posts__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--lp-ink);
}
.lp-posts__head h2 {
  margin: 0;
  font-family: var(--lp-font);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
  border: 0;
  padding: 0;
}
.lp-posts__head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--lp-muted);
}
.lp-posts__browse a {
  margin-left: 1rem;
  color: #2457c5;
}

.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li { margin: 0; border-bottom: 1px solid var(--lp-line); }

.lp-item {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  column-gap: 1.25rem;
  row-gap: 0.25rem;
  padding: 1.05rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--lp-ink) !important;
  transition: background-color 0.15s;
}
.lp-item:hover { background: #eaf1fd; }
.lp-item time {
  grid-row: 1 / span 2;
  padding-top: 0.2rem;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--lp-muted);
}
.lp-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.lp-item:hover .lp-item__title { color: #2457c5; }
.lp-item__cat {
  font-size: 0.8rem;
  color: var(--lp-muted);
}

.lp-posts .pagination { margin-top: 2rem; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 760px) {
  .lp-hero__shade {
    background: linear-gradient(180deg, rgba(5, 15, 38, 0.35) 0%, rgba(5, 15, 38, 0.78) 45%, rgba(5, 15, 38, 0.55) 100%);
  }
  .lp-bar__nav a:nth-child(n+4) { display: none; }
  .lp-id { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
  .lp-id__photo { width: 108px; }
  .lp-id__ko { display: block; margin: 0.6rem 0 0; font-size: 0.4em; vertical-align: 0; }
  .lp-id__advisor { display: block; margin: 0.25rem 0 0; padding: 0; border: 0; }
  .lp-btn { font-size: 0.85rem; }
  .lp-hero__foot { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .lp-hint { text-align: left; }
  .lp-item { grid-template-columns: 1fr; }
  .lp-admin__grid, .lp-field-row { grid-template-columns: 1fr; }
  .lp-preview { position: static; }
  .lp-updates li { grid-template-columns: 1fr auto; }
  .lp-updates li input[type="date"] { grid-column: 1 / -1; }
  .lp-props { grid-template-columns: 1fr; gap: 0.2rem; }
  .lp-props dd { margin-bottom: 0.6rem; }
  .lp-meter--wide { width: 9rem; }
  .lp-item time { grid-row: auto; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-scroll i, .lp-btn, .lp-item, .nt-row, .nt-card, .lp-fig * { transition: none; }
}

/* 관리 페이지 미리보기와 아이콘 칸 */
.nt-col--single { max-width: 22rem; }
.lp-field-row--icon { grid-template-columns: 5rem 1fr; }
.lp-field-row--icon input[name="icon"] { text-align: center; font-size: 1.2rem; }
.lp-pdetail__icon { margin-right: 0.35em; }
.lp-admin .lp-form { background: transparent; padding: 0; }
@media (max-width: 760px) {
  .nt-board { grid-template-columns: repeat(4, minmax(15rem, 80vw)); }
  .lp-field-row--icon { grid-template-columns: 4.5rem 1fr; }
}

/* ---------- 프로젝트 표: 얇고 샤프하게 (한 줄 행) ---------- */
.nt { font-size: 0.8rem; }
.nt-tabs button { font-size: 0.76rem; padding: 0.28rem 0.55rem; }
.nt-group { margin-top: 0.9rem; }
.nt-group > summary { padding: 0.2rem 0.25rem; }
.nt-count { font-size: 0.76rem; }
.nt-scroll { margin-top: 0.25rem; }
.nt-row { grid-template-columns: minmax(0, 1.95fr) minmax(0, 0.68fr) minmax(0, 1.42fr) minmax(0, 0.82fr) minmax(0, 0.95fr) minmax(0, 1.05fr) minmax(0, 1.55fr); }
.nt-row--head { font-size: 0.7rem; }
.nt-cell { flex-wrap: nowrap; overflow: hidden; padding: 0.32rem 0.55rem; }
.nt-row--head .nt-cell { padding-top: 0.28rem; padding-bottom: 0.28rem; }
.nt-title { font-size: 0.8rem; border-bottom-width: 0; }
.nt-sub { font-size: 0.72rem; }
.nt-date { font-size: 0.74rem; white-space: nowrap; }
.nt-role { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.9; }
.nt-pct { font-size: 0.7rem; }
.nt-meter { height: 4px; }
.nt-status { font-size: 0.68rem; padding: 0.05em 0.5em 0.05em 0.4em; }
.nt-tag { font-size: 0.7rem; padding: 0.02em 0.4em; white-space: nowrap; flex: none; }
.nt-cell.nt-tags { gap: 0.25rem; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.nt-foot { padding: 0.3rem 0.55rem; font-size: 0.68rem; }
.nt-table { min-width: 50em; }
a.nt-row:focus { outline: none; }
a.nt-row:focus-visible { outline: 2px solid var(--lp-signal); outline-offset: -2px; }

/* 보드도 같은 밀도로 */
.nt-card { padding: 0.6rem 0.7rem; gap: 0.4rem; }
.nt-card__title { font-size: 0.82rem; }
.nt-card__sum { font-size: 0.72rem; }
.nt-card .nt-date { font-size: 0.7rem; }
