/* ==========================================================================
   Caroline Myers — simple academic theme
   No build step. Edit freely.
   ========================================================================== */

:root{
  /* Typography (Avenir everywhere where possible) */
  --font-sans: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Blues: white background with layered royal/light/navy */
  --bg: #fbfcff;
  --surface: #ffffff;
  --surface-2: #f2f6ff;
  --surface-3: #e9f0ff;

  --text: #0f172a;          /* navy ink */
  --muted: #3b4a66;

  --border: rgba(15, 23, 42, 0.12);

  --royal: #2f5bff;         /* royal blue */
  --light: #6aa6ff;         /* light blue */
  --navy: #0b1b4a;          /* deep navy */

  --accent: var(--royal);
  --accent-2: #1f3fd6;
  --accent-soft: rgba(47, 91, 255, 0.12);

  --shadow-sm: 0 1px 2px rgba(2, 8, 23, 0.06);
  --shadow-md: 0 12px 34px rgba(2, 8, 23, 0.10);

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --maxw: 1120px;
}@media (prefers-color-scheme: dark){
  :root{
  /* Typography (Avenir everywhere where possible) */
  --font-sans: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Blues: white background with layered royal/light/navy */
  --bg: #fbfcff;
  --surface: #ffffff;
  --surface-2: #f2f6ff;
  --surface-3: #e9f0ff;

  --text: #0f172a;          /* navy ink */
  --muted: #3b4a66;

  --border: rgba(15, 23, 42, 0.12);

  --royal: #2f5bff;         /* royal blue */
  --light: #6aa6ff;         /* light blue */
  --navy: #0b1b4a;          /* deep navy */

  --accent: var(--royal);
  --accent-2: #1f3fd6;
  --accent-soft: rgba(47, 91, 255, 0.12);

  --shadow-sm: 0 1px 2px rgba(2, 8, 23, 0.06);
  --shadow-md: 0 12px 34px rgba(2, 8, 23, 0.10);

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --maxw: 1120px;
}}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(900px 600px at 10% 0%, rgba(43,95,217,.10), transparent 50%),
              radial-gradient(800px 500px at 90% 10%, rgba(107,76,230,.10), transparent 55%),
              var(--bg);
  line-height: 1.55;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
}

.container{
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  padding:.6rem .8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.skip-link:focus{ left: .75rem; top:.75rem; z-index:9999; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-grid{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1rem;
}

.brand{ display:flex; align-items:center; gap:.75rem; min-width: 220px; }
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px rgba(43,95,217,.25);
}
.brand-name{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 1.05rem;
}
.brand-tagline{ color: var(--muted); font-size: .9rem; margin-top: .05rem; }

.site-nav{ display:flex; align-items:center; gap:.6rem; }
.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: .55rem .65rem;
}
.nav-toggle-bars{
  display:block;
  width: 18px; height: 12px;
  background:
    linear-gradient(var(--text), var(--text)) 0 0/100% 2px,
    linear-gradient(var(--text), var(--text)) 0 50%/100% 2px,
    linear-gradient(var(--text), var(--text)) 0 100%/100% 2px;
  background-repeat:no-repeat;
  opacity:.9;
}
.nav-list{
  display:flex;
  align-items:center;
  gap: .35rem;
  list-style:none;
  padding:0;
  margin:0;
}
.nav-list a{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  color: var(--text);
  font-size: .95rem;
}
.nav-list a:hover{
  background: color-mix(in srgb, var(--card) 76%, transparent);
  text-decoration:none;
}
.nav-list a[aria-current="page"]{
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
}

.section{ padding: 3.2rem 0; }
.section.alt{
  background: color-mix(in srgb, var(--bg-alt) 72%, transparent);
  border-block: 1px solid var(--border);
}
.section-head{ margin-bottom: 1.2rem; }
.section-head h2{
  font-family: var(--serif);
  font-size: 1.85rem;
  margin: 0 0 .2rem 0;
}
.muted{ color: var(--muted); }

.hero{ padding-top: 2.6rem; }
.hero-grid{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 2.2rem;
  align-items: start;
}
.profile{
  margin:0;
  padding: .85rem;
  background: color-mix(in srgb, var(--card) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile img{
  width:100%;
  height:auto;
  display:block;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.profile figcaption{ margin-top:.6rem; font-size:.9rem; }

.hero-copy h1{
  font-family: var(--serif);
  font-size: clamp(2.0rem, 3.2vw, 2.6rem);
  margin: 0 0 .5rem 0;
}
.hero-links{
  display:flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .9rem;
}
.button, .chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding: .55rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration:none;
}
.button:hover, .chip:hover{ text-decoration:none; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.button.primary{
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 75%, #fff), color-mix(in srgb, var(--accent-2) 70%, #fff));
  border-color: rgba(43,95,217,0.25);
  color: #0b0e13;
}
@media (prefers-color-scheme: dark){
  .button.primary{ color: #0b0e13; }
}

.badge-row{
  display:flex;
  flex-wrap: wrap;
  gap:.65rem;
  margin-top: 1.3rem;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: .5rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 76%, transparent);
  color: var(--text);
}
.badge img{ width: 18px; height: 18px; opacity: .9; }

.card{
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.card-row{ display:flex; gap: .8rem; align-items:center; flex-wrap: wrap; }

.toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem 0;
}
.search input{
  width: min(520px, 80vw);
  padding: .65rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.chips{ display:flex; flex-wrap: wrap; gap: .5rem; }
.chip[aria-pressed="true"]{
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
}

.pub-list{
  margin:0;
  padding:0;
  list-style: none;
  display:grid;
  gap: .85rem;
}
.pub{
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
}
.pub .meta{ display:flex; align-items:center; gap:.6rem; flex-wrap: wrap; }
.pub .title{
  font-weight: 700;
  font-family: var(--serif);
  margin: .25rem 0 .25rem 0;
  font-size: 1.08rem;
}
.pub .citation{ color: var(--muted); margin: .15rem 0 .5rem 0; }
.pub .links{ display:flex; flex-wrap: wrap; gap:.55rem; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.grid .tile{
  grid-column: span 6;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
}
.tile h3{
  font-family: var(--serif);
  margin: 0 0 .35rem 0;
}
.tile p{ margin:0 0 .65rem 0; color: var(--muted); }

.stack{ display:flex; flex-direction: column; gap: .85rem; }
.stack .item{
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
}
.item .kicker{ color: var(--muted); font-size: .95rem; }
.item .item-title{ font-family: var(--serif); font-weight: 700; margin: .25rem 0 .35rem 0; }
.item .item-links{ display:flex; flex-wrap: wrap; gap: .55rem; margin-top: .55rem; }

.pdf-embed{
  margin-top: 1rem;
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.pdf-embed iframe{
  width: 100%;
  height: min(72vh, 820px);
  border:0;
}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.h4{ font-size: 1rem; margin: 0 0 .35rem 0; }
.link-list{ margin: .25rem 0 0 0; padding-left: 1.1rem; }
.site-footer{ margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Responsive */
@media (max-width: 820px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid .tile{ grid-column: span 12; }
  .contact-grid{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; }
  .nav-list{
    display:none;
    position:absolute;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: .4rem;
    box-shadow: var(--shadow);
    min-width: 220px;
  }
  .nav-list.open{ display:flex; }
  .nav-list a{ padding: .6rem .8rem; }
}



/* ===== Theme overrides (v2) ===== */
html, body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
}
a{ color: var(--accent); }
a:hover{ color: var(--accent-2); }

.container{ max-width: var(--maxw); }

.site-header{
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav a{
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
}
.nav a.active{
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(27,111,122,0.18);
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 140ms ease, transform 140ms ease;
}
.card:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

h1,h2,h3{
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
}
.hero h1{ font-size: clamp(34px, 4vw, 46px); }

.badge{
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.badge:hover{
  border-color: rgba(27,111,122,0.30);
  background: rgba(27,111,122,0.08);
}

.button, button, .btn{
  background: var(--accent);
  color: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  padding: 10px 14px;
}
.button:hover, button:hover, .btn:hover{ background: var(--accent-2); }

.small, .muted{ color: var(--muted); }

/* Publications layout with optional thumbnail
.pub-entry.pub-item{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
}
.pub-thumb{
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  object-fit: cover;
}
@media (max-width: 640px){
  .pub-entry.pub-item{ grid-template-columns: 1fr; }
  .pub-thumb{ width: 100%; height: 180px; }
} */

/* Publication list layout */
.pub-entry.pub-item{
  display: grid;
  grid-template-columns: 200px 1fr; /* FIXED column → consistent alignment */
  column-gap: 16px;
  align-items: center;
}

/* Rectangular thumbnail box */
.pub-thumb{
  width: 200px;
  height: 100px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  object-fit: cover;   /* image fills box without affecting layout */
}

/* Placeholder when no image */
.pub-thumb--empty{
  background: linear-gradient(
    135deg,
    var(--surface-2),
    var(--surface-3)
  );
}

/* Right-hand text block */
.pub-content{
  display: block;
}


/* ===== Presentations (v3) ===== */
.presentation-card .meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 6px 0 10px;
}
.presentation-card .meta .pill{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.embed-frame{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  overflow: hidden;
}

/* 16:9 ratio container */
.ratio-16x9{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.ratio-16x9 > iframe,
.ratio-16x9 > embed,
.ratio-16x9 > object{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}



/* ===== Visual refresh (v4) ===== */
html, body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
}
code, pre{ font-family: var(--font-mono); }

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

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand-link{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
}
.brand-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(47, 91, 255, 0.22);
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.10);
}
.brand-name{ font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; }
.brand-tagline{ color: var(--muted); }

.hero{
  background: radial-gradient(900px 400px at 10% 0%, rgba(47, 91, 255, 0.16), rgba(47, 91, 255, 0.0) 55%),
              radial-gradient(700px 420px at 85% 10%, rgba(106, 166, 255, 0.18), rgba(106, 166, 255, 0.0) 55%);
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 91, 255, 0.20);
}

/* Buttons */
.button, .btn, button{
  background: linear-gradient(135deg, var(--royal), var(--accent-2));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
}
.button:hover, .btn:hover, button:hover{
  filter: brightness(1.03);
}

/* Nav */
.nav a{ color: var(--muted); }
.nav a.active{
  color: var(--navy);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 91, 255, 0.22);
}

/* Icon tiles */
.icon-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 840px){ .icon-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.icon-tile{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  text-decoration:none;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(2,8,23,0.02);
}
.icon-tile:hover{
  border-color: rgba(47, 91, 255, 0.26);
  box-shadow: 0 12px 26px rgba(2,8,23,0.10);
  transform: translateY(-1px);
}
.icon-tile svg{
  width: 26px;
  height: 26px;
  stroke: var(--navy);
}
.icon-tile .label{
  font-size: 13px;
  color: var(--muted);
  text-align:center;
}

/* badge-row → icon grid aesthetic */
.badge-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.badge{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 16px;
}
.badge img{
  width: 40px;
  height: 40px;
  opacity: 0.95;
}
.badge span{
  font-size: 13px;
  color: var(--muted);
  text-align:center;
}
/* ===== Hero alignment cleanup (v1) ===== */
.hero-stack{
  max-width: 980px;
}

.hero-photo{
  margin: 0 0 18px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* .hero-photo img{
  width: 100%;
  height: auto;
  display: block;
} */

/* ===== Landing intro: aligned + professional ===== */

.hero-row{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  max-width: 900px;
}

.hero-image img{
  width: 180px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}


/* Mobile: stack cleanly */
@media (max-width: 700px){
  .hero-row{
    grid-template-columns: 1fr;
  }
  .hero-image img{
    width: 220px;
  }
}

/* ===== Center landing intro (image + text), keep it reasonably wide ===== */
.hero .hero-row{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 1100px;   /* makes the intro feel wide, not cramped */
  margin: 0 auto;
  text-align: center;  /* centers name + paragraphs */
}


/* ===== v5 landing + button sanity (paste at end) ===== */

/* 1) Fix variable mismatches used earlier in the file */
:root{
  --sans: var(--font-sans);
  --serif: var(--font-sans);
  --card: var(--surface);
  --bg-alt: var(--surface-2);
  --radius: var(--r-xl);
  --shadow: var(--shadow-sm);
}

/* 2) Make the hero feel calmer + consistent */
.hero{
  background: none; /* removes the strong radial hero gradients */
}

/* Keep the centered landing you wanted, but wide */
.hero .hero-row{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}


.hero .hero-image img{
  width: 320px;        /* <-- CONTROL IMAGE SIZE HERE */
  max-width: 90vw;     /* responsive on small screens */
  height: auto;        /* preserves 4565 × 2259 ratio */
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Let intro text be wide, centered */


/* 3) IMPORTANT: stop making every <button> a glossy primary button */
button{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
}
button:hover{
  background: var(--surface-2);
}

/* Keep your real CTA buttons looking like buttons */
a.button, .button{
  background: linear-gradient(135deg, var(--royal), var(--accent-2));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
}
a.button:hover, .button:hover{
  filter: brightness(1.03);
  text-decoration: none;
}

/* 4) Make research questions look “academic nice”, not UI toys */
.rq{
  margin-top: 18px;
}
.rq-title{
  font-weight: 700;
  margin-bottom: 8px;
}
.rq-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.rq-link{
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(2,8,23,0.03);
}
.rq-link:hover{
  border-color: rgba(47, 91, 255, 0.22);
  background: var(--surface-2);
  text-decoration: none;
}

/* 5) Badge icons: bigger without making the badge itself huge */
.badge img{
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Match Publications width + calmer name styling */


.hero .hero-copy{
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  font-size: 1rem; /* lock it to normal body size */
}


/* Force name to match section headers exactly */
/* Force name to match section headers exactly */
.hero-name{
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 12px 0 10px 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
}


.hero .hero-copy h1{ font-size: 1.85rem !important; }

/* ===== Tag pills rows (fix smushed tags) ===== */
.pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pill-row .pill{
  display: inline-block;
}
.pill-tag{
  cursor: pointer;
  user-select: none;
}
.pill-tag:hover{
  border-color: rgba(47, 91, 255, 0.22);
  background: var(--surface-2);
  color: var(--text);
}


/* ===== Demo / tile link buttons (global) ===== */
.links{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .55rem;
}

.link{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
}

.link:hover{
  background: var(--surface-2);
  border-color: rgba(47, 91, 255, 0.22);
  text-decoration: none;
}

/* Reduce the perceived gap when a non-alt section follows an alt section (CV -> Demos) */
.section.alt + .section{
  padding-top: 2.6rem;
}
