/* ---- Noraldim: additions for Projects / Papers / Articles ---- */

:root {
  --nk-accent: #2d96bd;
  --nk-muted: #a9a9b3;
  --nk-border: rgba(22, 18, 9, 0.10);
  --nk-card-bg: transparent;
  --nk-chip-bg: rgba(45, 150, 189, 0.10);
}
[theme=dark] {
  --nk-border: rgba(255, 255, 255, 0.12);
  --nk-card-bg: #2f3033;
  --nk-chip-bg: rgba(45, 150, 189, 0.18);
}

/* section intro under a page title */
.nk-lead {
  color: var(--nk-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin: .2rem 0 1.6rem;
  max-width: 46rem;
}

/* year / group heading, same feel as .group-title */
.nk-group {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 2.2rem 0 .6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--nk-border);
}
.nk-group:first-of-type { margin-top: 1rem; }

/* card grid */
.nk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}
.nk-card {
  border: 1px solid var(--nk-border);
  border-radius: .5rem;
  background: var(--nk-card-bg);
  padding: 1.1rem 1.2rem 1.2rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nk-card:hover {
  border-color: var(--nk-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}
.nk-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.nk-card h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.4;
}
.nk-card h3 a { color: inherit; }
.nk-card h3 a:hover { color: var(--nk-accent); }
.nk-date {
  flex: none;
  font-size: .8rem;
  color: var(--nk-muted);
  white-space: nowrap;
}
.nk-role {
  margin: .3rem 0 0;
  font-size: .82rem;
  color: var(--nk-accent);
  letter-spacing: .02em;
}
.nk-card p.nk-desc {
  margin: .55rem 0 0;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--nk-muted);
}
.nk-tags { margin-top: .8rem; }
.nk-tags span {
  display: inline-block;
  margin: 0 .3rem .3rem 0;
  padding: .12rem .5rem;
  font-size: .72rem;
  border-radius: .5rem;
  background: var(--nk-chip-bg);
  color: var(--nk-accent);
}
.nk-links { margin-top: .8rem; font-size: .84rem; }
.nk-links a {
  margin-right: .9rem;
  color: var(--nk-muted);
  white-space: nowrap;
}
.nk-links a:hover { color: var(--nk-accent); }
.nk-links i { margin-right: .3rem; }

/* plain list rows (articles / papers) */
.nk-row {
  display: block;
  padding: .95rem 0;
  border-bottom: 1px solid var(--nk-border);
}
.nk-row:last-child { border-bottom: none; }
.nk-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.nk-row-title { font-size: 1rem; font-weight: 600; }
.nk-row-title a:hover { color: var(--nk-accent); }
.nk-row p {
  margin: .35rem 0 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--nk-muted);
}

/* small footnote line at the bottom of a section */
.nk-note {
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--nk-muted);
}

/* home page: fact rows + skills */
.nk-facts { margin: .5rem 0 0; }
.nk-fact {
  display: flex;
  gap: 1rem;
  padding: .55rem 0;
  font-size: .92rem;
  border-bottom: 1px solid var(--nk-border);
}
.nk-fact:last-child { border-bottom: none; }
.nk-fact b { flex: 0 0 9rem; font-weight: 600; }
.nk-fact span { color: var(--nk-muted); }

@media only screen and (max-width: 680px) {
  .nk-grid { grid-template-columns: 1fr; }
  .nk-card-head, .nk-row-head { flex-direction: column; gap: .15rem; }
  .nk-fact { flex-direction: column; gap: .1rem; }
  .nk-fact b { flex: none; }
}

/* wider column for the card-based sections */
.page.nk-wide { max-width: 1120px; width: 88%; }
@media only screen and (max-width: 1080px) { .page.nk-wide { width: 92%; } }
@media only screen and (max-width: 680px)  { .page.nk-wide { width: 100%; } }
.nk-wide .single-title { text-align: left; }
