/* ==========================================================================
   Kunal Baxi, Ph.D. — site styles
   Light and dark themes, responsive, no framework.
   ========================================================================== */

:root {
  --ink:        #0c1726;
  --ink-soft:   #2b3a4d;
  --body:       #475569;
  --muted:      #74839a;
  --faint:      #9aa7b8;

  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;
  --surface:    #ffffff;
  --rule:       #e3e9f1;
  --rule-soft:  #eef2f7;

  --accent:     #0f766e;
  --accent-ink: #0b5a54;
  --accent-bg:  #eafaf7;
  --accent-2:   #4338ca;

  --shadow-sm:  0 1px 2px rgba(12, 23, 38, 0.05);
  --shadow:     0 4px 16px -4px rgba(12, 23, 38, 0.10), 0 1px 3px rgba(12, 23, 38, 0.04);
  --shadow-lg:  0 18px 40px -12px rgba(12, 23, 38, 0.18), 0 2px 6px rgba(12, 23, 38, 0.05);

  --max: 980px;
  --narrow: 760px;
  --radius: 14px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #f1f5fa;
    --ink-soft:   #d6dee9;
    --body:       #a9b6c7;
    --muted:      #8593a6;
    --faint:      #6b7a8e;

    --bg:         #0a1018;
    --bg-alt:     #0e1621;
    --surface:    #111b27;
    --rule:       #1f2c3b;
    --rule-soft:  #18232f;

    --accent:     #4ddbc4;
    --accent-ink: #7fe8d6;
    --accent-bg:  #0f2b29;
    --accent-2:   #a5a0ff;

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:     0 4px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg:  0 18px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow { max-width: var(--narrow); }

/* ==========================================================================
   Header
   ========================================================================== */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  header.site { background: var(--bg); }
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.monogram {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .monogram { color: #06120f; }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-size: 1.01rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-role {
  font-size: 0.77rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

nav.site {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -6px;
  padding: 0 6px;
}

nav.site::-webkit-scrollbar { display: none; }

nav.site a {
  position: relative;
  color: var(--body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

nav.site a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

nav.site a.here {
  color: var(--accent-ink);
  background: var(--accent-bg);
  font-weight: 600;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-alt);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.hero::before {
  width: 420px; height: 420px;
  top: -200px; right: -120px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.hero::after {
  width: 340px; height: 340px;
  bottom: -190px; left: -110px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  opacity: 0.22;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6.2vw, 3.3rem);
  line-height: 1.1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 24ch;
}

h1 .em {
  font-style: italic;
  color: var(--accent-ink);
}

.lede {
  font-size: clamp(1.06rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 26px;
}

/* page heads on inner pages */

.pagehead {
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--rule-soft);
}

.pagehead h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-bottom: 14px;
}

.pagehead .lede { margin-bottom: 0; }

/* ==========================================================================
   Type
   ========================================================================== */

main { padding-bottom: 20px; }

section { padding: 48px 0 8px; }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.4vw, 1.68rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 26px;
}

h3 {
  font-size: 1.04rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}

p { margin: 0 0 18px; }

a {
  color: var(--accent-ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

strong { color: var(--ink); font-weight: 650; }

ul { margin: 0 0 18px; padding-left: 0; list-style: none; }

li { margin-bottom: 11px; }

.ticks li {
  position: relative;
  padding-left: 26px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.flag {
  background: color-mix(in srgb, #facc15 22%, transparent);
  border-left: 3px solid #eab308;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 0;
}

.stat {
  background: var(--surface);
  padding: 22px 20px;
}

.stat .figure {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: block;
}

.stat .figure .unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

.stat .caption {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--rule));
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.card .idx {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.card.flush { padding: 26px 24px; }

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  margin: 10px 0 0;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--rule) 85%);
  opacity: 0.55;
  border-radius: 2px;
}

.role {
  position: relative;
  padding: 0 0 34px;
}

.role::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.role.secondary::before {
  border-color: var(--faint);
  width: 12px;
  height: 12px;
  left: -28px;
  top: 11px;
}

.role:last-child { padding-bottom: 6px; }

.role .org {
  display: block;
  font-size: 1.12rem;
  font-weight: 680;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.role .title {
  display: block;
  font-weight: 600;
  color: var(--accent-ink);
  font-size: 0.99rem;
  margin-top: 1px;
}

.role .meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.005em;
  margin: 5px 0 14px;
}

.role ul:last-child { margin-bottom: 0; }

.role ul li {
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ==========================================================================
   Tags
   ========================================================================== */

.tag-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list li {
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 28px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--accent-ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .btn { color: #04110f; }
  .btn:hover { color: #04110f; }
}

.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--accent);
}

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--rule));
}

.contact-card .glyph {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.contact-card .label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 650;
}

.contact-card .value {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 550;
  margin-top: 2px;
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site {
  border-top: 1px solid var(--rule-soft);
  background: var(--bg-alt);
  margin-top: 56px;
  padding: 30px 0 44px;
  font-size: 0.89rem;
  color: var(--muted);
}

footer.site .foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover { color: var(--accent); }

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

/* A one-off entrance animation on load. It runs from CSS alone, so content
   can never be left invisible by a script that did not load or run. */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal:nth-child(2) { animation-delay: 0.07s; }
.reveal:nth-child(3) { animation-delay: 0.14s; }
.reveal:nth-child(4) { animation-delay: 0.21s; }
.reveal:nth-child(5) { animation-delay: 0.28s; }
.reveal:nth-child(6) { animation-delay: 0.35s; }
.reveal:nth-child(n + 7) { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .card:hover, .btn:hover, a.contact-card:hover { transform: none; }
}

@media print {
  header.site, footer.site, .btn-row, .hero::before, .hero::after { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
  .card, .contact-card { box-shadow: none; }
}

/* ==========================================================================
   Publications and presentations
   ========================================================================== */

.pub-list { margin: 10px 0 0; padding: 0; counter-reset: pub; }

.pub {
  position: relative;
  padding: 18px 0 18px 42px;
  border-bottom: 1px solid var(--rule-soft);
  margin: 0;
}

.pub:last-child { border-bottom: none; }

.pub::before {
  counter-increment: pub;
  content: counter(pub);
  position: absolute;
  left: 0;
  top: 19px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.pub-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 5px;
}

.pub-authors {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 4px;
}

.pub-authors b { color: var(--ink); font-weight: 700; }

.pub-meta {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
}

.pub-meta a {
  color: var(--accent-ink);
  text-decoration: none;
  word-break: break-word;
}

.pub-meta a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 7px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 9px;
  white-space: nowrap;
}

.talk-list { margin: 10px 0 0; padding: 0; }

.talk {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  margin: 0;
}

.talk:last-child { border-bottom: none; }

.talk-year {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.talk-title {
  display: block;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.5;
  font-size: 0.99rem;
}

.talk-venue {
  display: block;
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 3px;
}

@media (min-width: 680px) {
  .talk {
    grid-template-columns: 74px 1fr;
    gap: 0 18px;
  }
  .talk-year { padding-top: 1px; }
}

/* ==========================================================================
   Delivery routes figure
   ========================================================================== */

.figure-wrap {
  margin: 26px 0 8px;
  max-width: 560px;
}

.figure-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.figure-wrap figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* figure internals */
.figure-wrap rect {
  fill: var(--surface);
  stroke-width: 1.5;
}

.figure-wrap .lane-a rect { stroke: var(--accent); }
.figure-wrap .lane-b rect { stroke: var(--accent-2); }
.figure-wrap .shared rect { stroke: var(--faint); fill: var(--bg-alt); }

.figure-wrap .lane-a.solid rect { fill: var(--accent); stroke: var(--accent); }
.figure-wrap .lane-b.solid rect { fill: var(--accent-2); stroke: var(--accent-2); }

.figure-wrap text {
  font-family: var(--sans);
  text-anchor: middle;
}

.figure-wrap .box-label {
  font-size: 19px;
  font-weight: 600;
  fill: var(--ink);
}

.figure-wrap .box-label.out { fill: #ffffff; }

.figure-wrap .box-sub {
  font-size: 15px;
  fill: var(--muted);
}

.figure-wrap .shared-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  fill: var(--faint);
}

.figure-wrap .flow {
  fill: none;
  stroke-width: 2;
}

.figure-wrap .flow.a { stroke: var(--accent); }
.figure-wrap .flow.b { stroke: var(--accent-2); }
.figure-wrap .flow.s { stroke: var(--faint); }

.figure-wrap .arrowhead { fill: currentColor; }
.figure-wrap .flow.a { color: var(--accent); }
.figure-wrap .flow.b { color: var(--accent-2); }
.figure-wrap .flow.s { color: var(--faint); }

.figure-wrap .rule { stroke: var(--rule); stroke-width: 1; }

.figure-wrap .readout-head {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: var(--accent-ink);
  text-anchor: start;
}

.figure-wrap .readout {
  font-size: 16px;
  fill: var(--body);
  text-anchor: start;
}

/* ==========================================================================
   Phone layout
   ========================================================================== */

@media (max-width: 660px) {
  .wrap { padding: 0 18px; }

  /* stack the brand and the nav so no link is cut off */
  .bar {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 12px 0 9px;
  }

  nav.site {
    justify-content: space-between;
    gap: 0;
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }

  nav.site a {
    font-size: 0.8rem;
    padding: 6px 7px;
    letter-spacing: -0.01em;
  }

  .hero { padding: 42px 0 40px; }
  .pagehead { padding: 34px 0 24px; }
  section { padding: 34px 0 6px; }

  .eyebrow { margin-bottom: 18px; font-size: 0.72rem; padding: 5px 11px; }

  .btn-row { gap: 9px; }
  .btn { padding: 11px 17px; font-size: 0.92rem; }

  .stat { padding: 18px 16px; }
  .stat .figure { font-size: 1.6rem; }

  .card { padding: 20px 18px; }

  /* timeline needs less indent on a narrow screen */
  .timeline { padding-left: 24px; }
  .role::before { left: -24px; width: 14px; height: 14px; }
  .role.secondary::before { left: -23px; width: 11px; height: 11px; }
  .timeline::before { left: 6px; }

  /* publications: tighter numbering gutter */
  .pub { padding-left: 34px; }
  .pub::before { width: 24px; height: 24px; font-size: 0.72rem; top: 20px; }
  .pub-authors { font-size: 0.84rem; }
  .pub-meta { font-size: 0.81rem; }

  .badge { font-size: 0.63rem; padding: 2px 7px; margin-left: 5px; }

  /* the figure scales down, so scale its type up to compensate */
  .figure-wrap .box-label { font-size: 23px; }
  .figure-wrap .box-sub { font-size: 18px; }
  .figure-wrap .readout { font-size: 19px; }
  .figure-wrap .readout-head { font-size: 17px; }
  .figure-wrap .shared-tag { font-size: 15px; }
  .figure-wrap figcaption { font-size: 0.85rem; }

  footer.site .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 400px) {
  nav.site a { font-size: 0.76rem; padding: 6px 5px; }
}

/* identifier links (ORCID, Scholar) */
.idlinks {
  list-style: none;
  padding: 0;
  margin: -10px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.idlinks li { margin: 0; }

.idlinks a {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.idlinks a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
