/* Cyber-rainbow theme */

:root {
  --bg-0: #070b16;
  --bg-1: #0d1428;
  --bg-2: #121f39;
  --fg-0: #e8f1ff;
  --fg-muted: #b8c9e8;
  --neon-cyan: #9ef8ff;
  --neon-magenta: #ff4ecd;
  --neon-lime: #9cff57;
  --neon-amber: #ffd166;
  --neon-violet: #b48bff;
}

html {
  min-height: 100%;
  background-color: #060912;
}

body {
  min-height: 100vh;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  color: var(--fg-0);
  background-color: #060912;
}


/* Navbar */
.navbar {
  background: rgba(7, 11, 22, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(98, 242, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Override Quarto headroom auto-hide */
#quarto-header.headroom--unpinned {
  transform: translateY(0) !important;
  position: sticky !important;
  top: 0 !important;
}

.navbar>.container-fluid {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: baseline;
}

/* Widen the Quarto article grid body-content column */
#quarto-content.page-layout-article {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns:
    [screen-start] 1.5rem [screen-start-inset] 0px [page-start page-start-inset] 0px [body-start-outset] 0px [body-start] 0px [body-content-start] 1fr [body-content-end] 0px [body-end] 0px [body-end-outset] 0px [page-end-inset] 0px [page-end] 0px [screen-end-inset] 1.5rem [screen-end] !important;
}

#quarto-content,
main.content {
  max-width: 900px;
}

/* Force main content to fill its grid column, not center at 888px */
main.content {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}

.navbar .navbar-brand-container {
  margin-left: 0 !important;
  margin-right: 1.5rem !important;
}

.navbar .navbar-collapse,
.navbar .navbar-nav {
  align-items: baseline;
}

.navbar .navbar-brand {
  color: #e8f1ff !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0;
  padding-left: 0;
}

.navbar .nav-link {
  color: #d9e8ff !important;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 10px rgba(98, 242, 255, 0.5);
}

#quarto-content,
main.content,
.page-columns,
footer.footer {
  position: relative;
  z-index: 1;
  text-align: left;
}

h1,
h2,
h3 {
  letter-spacing: 0.03em;
  text-wrap: balance;
  text-align: left;
}

h1 {
  color: var(--neon-cyan);
}

h2 {
  color: #8dd7ff;
  border-bottom: 1px solid rgba(141, 215, 255, 0.25);
  padding-bottom: 0.25rem;
}

h3 {
  color: #7cfbdb;
}

p,
li {
  color: var(--fg-muted);
  line-height: 1.7;
  text-align: left;
}

a {
  color: var(--neon-amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(98, 242, 255, 0.5);
}

.home-ocean-page .quarto-title-block {
  display: none;
}

.home-ocean-page #quarto-document-content {
  max-width: none;
}

.ocean-shell {
  position: relative;
  width: 100%;
  height: clamp(380px, 72vh, 760px);
  margin: 0.4rem 0 1.3rem;
  border: 1px solid rgba(255, 122, 208, 0.55);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0419;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(255, 122, 208, 0.2),
    0 0 22px rgba(105, 239, 255, 0.16);
}

.ocean-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

#cyber-ocean {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.ocean-overlay {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 3;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 154, 225, 0.4);
  background: rgba(16, 7, 34, 0.66);
  color: #ffd2f1;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ocean-overlay::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.42rem;
  border-radius: 999px;
  background: #ffd780;
  box-shadow: 0 0 10px rgba(255, 215, 128, 0.8);
  animation: cursor-blink 1.2s steps(2, start) infinite;
}

.ocean-quote {
  max-width: 960px;
  margin: 1.2rem auto 0;
  border-left-color: #ff7ad0;
}

.cyber-hero {
  margin: 1rem 0 1.8rem;
  padding: 1.2rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(98, 242, 255, 0.4);
  background: rgba(18, 31, 57, 0.6);
  box-shadow: 0 0 30px rgba(98, 242, 255, 0.08);
}

.bitstream {
  position: relative;
  overflow: hidden;
  margin: 1rem 0 1.2rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(98, 242, 255, 0.3);
  background: rgba(8, 15, 30, 0.7);
  color: #86ffee;
  font-size: 0.8rem;
  white-space: nowrap;
}

.bitstream::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(98, 242, 255, 0.08);
  animation: bit-scan 5s linear infinite;
}

.terminal-panel {
  position: relative;
  margin: 1rem 0 1.6rem;
  padding: 0.8rem 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(156, 255, 87, 0.35);
  background: rgba(4, 10, 20, 0.84);
  box-shadow:
    0 0 28px rgba(156, 255, 87, 0.08),
    inset 0 0 22px rgba(156, 255, 87, 0.04);
}

.terminal-panel pre {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent !important;
}

.terminal-panel::after {
  content: "_";
  position: absolute;
  right: 1rem;
  bottom: 0.45rem;
  color: var(--neon-lime);
  animation: cursor-blink 1s steps(2, start) infinite;
}

.cyber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.cyber-card,
.project-card {
  margin: 1rem 0;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(180, 139, 255, 0.35);
  background: rgba(13, 20, 40, 0.88);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.cyber-card h3,
.project-card h3 {
  margin-top: 0;
}

.project-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(98, 242, 255, 0.6);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(98, 242, 255, 0.12);
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--neon-cyan);
}

.card-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip {
  display: inline-block;
  margin: 0 0.35rem 0.45rem 0;
  padding: 0.18rem 0.52rem;
  border: 1px solid rgba(98, 242, 255, 0.45);
  border-radius: 999px;
  color: #caf8ff;
  background: rgba(98, 242, 255, 0.12);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gem-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--neon-magenta);
  border-radius: 8px;
  color: #ffdff5;
  background: rgba(255, 78, 205, 0.1);
  box-shadow: 0 0 22px rgba(255, 78, 205, 0.1);
}

pre,
div.sourceCode {
  border-radius: 10px;
  border: 1px solid rgba(98, 242, 255, 0.25);
  background: #070d1f !important;
  box-shadow: inset 0 0 22px rgba(98, 242, 255, 0.06);
}

code {
  padding: 0.08rem 0.35rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe29b;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

/* Rainbow syntax accents */
code span.kw,
code span.cf {
  color: #ff6bcb !important;
}

code span.fu {
  color: #69f3ff !important;
}

code span.dt,
code span.at {
  color: #9dff6d !important;
}

code span.st,
code span.ch {
  color: #ffd875 !important;
}

code span.dv,
code span.fl,
code span.bn {
  color: #caa0ff !important;
}

code span.op {
  color: #70ffe4 !important;
}

code span.va {
  color: #ffa6df !important;
}

code span.co {
  color: #8aa1c5 !important;
  font-style: italic;
}

code span.er {
  color: #ff5e5e !important;
  font-weight: 700;
}

.quarto-listing .quarto-post {
  border: 1px solid rgba(98, 242, 255, 0.26);
  border-radius: 12px;
  background: rgba(13, 20, 40, 0.88);
  padding: 0.8rem 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quarto-listing .quarto-post:hover {
  border-color: rgba(255, 78, 205, 0.5);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 78, 205, 0.08);
}

.quarto-listing .listing-title {
  margin-bottom: 0.1rem;
}

.quarto-listing .listing-title a {
  color: #79efff;
}

.quarto-listing .listing-title a:hover {
  color: #ff84d9;
  text-decoration: none;
}

.projects-page .quarto-listing .listing-title a:hover {
  color: #79efff;
}

.quarto-listing .listing-description {
  color: #c5d7f5;
  margin-top: 0.3rem;
}

.quarto-listing .listing-date {
  color: #89a9d9;
  font-size: 0.8em;
  text-align: right;
  margin-top: 0.1rem;
}

.quarto-listing .listing-category,
.quarto-listing-category .category {
  border: 1px solid rgba(98, 242, 255, 0.38);
  border-radius: 999px;
  background: rgba(98, 242, 255, 0.12);
  color: #c7f8ff;
  padding: 0.18rem 0.55rem;
  margin: 0.15rem 0.35rem 0.15rem 0;
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.projects-page .quarto-listing .quarto-post:hover {
  transform: translateY(-2px);
}

.projects-page .quarto-listing .quarto-post {
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.8rem;
}

.projects-page .listing-description p {
  margin-bottom: 0;
}

.projects-page .listing-description a {
  color: inherit;
}

/* Hide 'Published' text in metadata block of individual gems */
.quarto-title-meta-heading {
  display: none !important;
}

/* Hide title blocks for about and projects pages */
.about-page .quarto-title-block,
.projects-page .quarto-title-block {
  display: none !important;
}

/* Ensure categories/tags are completely hidden on projects */
.projects-page .listing-categories {
  display: none !important;
}

/* ── Posts page: clean blog listing ── */

.blog-page .quarto-title-block .quarto-title {
  margin-bottom: 0.5rem;
}

.blog-page .quarto-listing .quarto-post {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(98, 242, 255, 0.12);
  box-shadow: none;
  transition: none;
}

.blog-page .quarto-listing .quarto-post:first-child {
  border-top: none;
  padding-top: 0 !important;
}

.blog-page .quarto-listing .quarto-post:hover {
  border-color: rgba(98, 242, 255, 0.12);
  box-shadow: none;
  transform: none;
}

.blog-page .quarto-listing-default .quarto-post {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0 0.8rem !important;
}

.blog-page .quarto-listing-default .quarto-post .body {
  display: contents !important;
}

.blog-page .quarto-listing-default .quarto-post .body>h3.listing-title {
  order: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-right: auto !important;
}

.blog-page .quarto-listing-default .quarto-post .body>.listing-categories {
  order: 2 !important;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-page .quarto-listing-default .quarto-post .metadata {
  order: 3 !important;
  margin-left: 0 !important;
  padding-top: 0 !important;
  text-align: right !important;
  width: auto !important;
  flex: 0 0 auto !important;
}

.blog-page .quarto-listing-default .quarto-post .body>.listing-description {
  order: 4 !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.blog-page .quarto-listing .listing-title {
  margin-bottom: 0;
}

.blog-page .quarto-listing .listing-title a {
  color: var(--fg-0);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.blog-page .quarto-listing .listing-title a:hover {
  color: var(--neon-cyan);
  text-decoration: none;
}

.blog-page .quarto-listing .listing-date {
  color: var(--fg-muted);
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.blog-page .quarto-listing .listing-description {
  color: var(--fg-muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

.blog-page .quarto-listing .listing-description p {
  margin-bottom: 0 !important;
}

.blog-page .quarto-listing .listing-categories {
  margin-top: 0.35rem;
}

.blog-page .quarto-listing .listing-category,
.blog-page .quarto-listing-category .category {
  border: 1px solid rgba(98, 242, 255, 0.25);
  border-radius: 4px;
  background: rgba(98, 242, 255, 0.08);
  color: #9ce8ff;
  padding: 0.1rem 0.4rem;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-page .quarto-listing .listing-category {
  pointer-events: none;
}

.blog-page .listing-description a {
  color: inherit;
  text-decoration: none;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--neon-cyan);
  background: rgba(98, 242, 255, 0.08);
}

hr {
  border-color: rgba(98, 242, 255, 0.2);
}

@media (max-width: 767px) {
  .ocean-shell {
    height: clamp(320px, 60vh, 560px);
  }

  .ocean-overlay {
    left: 0.7rem;
    right: 0.7rem;
    font-size: 0.66rem;
  }

  .cyber-hero,
  .bitstream,
  .terminal-panel,
  .cyber-card,
  .project-card,
  .gem-quote {
    padding: 0.9rem;
  }
}

@keyframes bit-scan {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes cursor-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Projects Adjustments */
.projects-page .quarto-listing-default .quarto-post {
  display: flex;
  flex-direction: column;
}

.projects-page .quarto-listing-default .quarto-post .body {
  width: 100%;
}

.projects-page .quarto-listing-default .listing-title,
.projects-page .quarto-listing-default a,
.projects-page .quarto-listing-default .listing-description,
.projects-page .quarto-listing-default .listing-categories {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

/* ── Publications page ── */

.pub-intro {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--neon-violet);
  background: rgba(180, 139, 255, 0.07);
  border-radius: 0 8px 8px 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pub-intro p {
  margin: 0;
}

/* Timeline container */
.pub-timeline {
  position: relative;
  margin: 0.5rem 0 2rem;
}

/* Continuous amber vertical line */
.pub-timeline::before {
  content: "";
  position: absolute;
  left: calc(3rem + 0.75rem - 0.5px);
  /* center on the dot: year-col + half-gap - half-linewidth */
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 209, 102, 0.25);
  pointer-events: none;
}

/* Year group */
.pub-year-block {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.5rem;
  margin-bottom: 0;
}

.pub-year-label {
  padding-top: 1.05rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-amber);
  letter-spacing: 0.06em;
  text-align: right;
  position: relative;
}

.pub-year-label::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-amber);
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.7);
  transform: translateX(50%);
}

.pub-year-entries {
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Individual publication card (also used as <a> or div+onclick) */
.pub-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.6rem 0 0.9rem;
  padding: 0.85rem 1rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(180, 139, 255, 0.25);
  background: rgba(13, 20, 40, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none !important;
}

a.pub-card,
div.pub-card[onclick] {
  cursor: pointer;
}

a.pub-card:hover,
div.pub-card[onclick]:hover {
  border-color: rgba(98, 242, 255, 0.45);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3), 0 0 18px rgba(98, 242, 255, 0.07);
  transform: translateY(-2px);
}

/* Highlighted (high-citation) cards */
.pub-card-highlight {
  border-color: rgba(98, 242, 255, 0.38);
  background: rgba(12, 28, 50, 0.9);
  box-shadow: 0 0 14px rgba(98, 242, 255, 0.06);
}

a.pub-card-highlight:hover,
div.pub-card-highlight[onclick]:hover {
  border-color: rgba(98, 242, 255, 0.7);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(98, 242, 255, 0.14);
}

/* Thesis cards */
.pub-card-thesis {
  border-color: rgba(156, 255, 87, 0.3);
  background: rgba(10, 22, 14, 0.9);
}

a.pub-card-thesis:hover,
div.pub-card-thesis[onclick]:hover {
  border-color: rgba(156, 255, 87, 0.6);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(156, 255, 87, 0.08);
}

/* Conference cards */
.pub-card-conf {
  border-color: rgba(255, 78, 205, 0.22);
  background: rgba(22, 8, 30, 0.88);
}

/* Preprint card */
.pub-card-preprint {
  border-color: rgba(180, 139, 255, 0.28);
  background: rgba(18, 10, 35, 0.85);
}

/* Meta row: journal + year tag + badge */
.pub-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.pub-journal {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neon-cyan);
}

.pub-journal-ref {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-left: 0.1rem;
}

.pub-year-tag {
  display: none;
}

/* ── Type badges (Article / Thesis / Conference / Talk) ── */
.pub-type-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.pub-type-article {
  border: 1px solid rgba(98, 242, 255, 0.45);
  background: rgba(98, 242, 255, 0.08);
  color: var(--neon-cyan);
}

.pub-type-preprint {
  border: 1px solid rgba(180, 139, 255, 0.45);
  background: rgba(180, 139, 255, 0.08);
  color: var(--neon-violet);
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s;
  cursor: pointer;
}

.pub-type-preprint:hover {
  background: rgba(180, 139, 255, 0.2);
  border-color: rgba(180, 139, 255, 0.9);
  color: var(--neon-violet);
}

.pub-type-thesis {
  border: 1px solid rgba(156, 255, 87, 0.45);
  background: rgba(156, 255, 87, 0.08);
  color: var(--neon-lime);
}

.pub-type-conf {
  border: 1px solid rgba(255, 78, 205, 0.45);
  background: rgba(255, 78, 205, 0.08);
  color: var(--neon-magenta);
}

.pub-type-talk {
  border: 1px solid rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.08);
  color: var(--neon-amber);
}

.pub-type-poster {
  border: 1px solid rgba(87, 255, 220, 0.45);
  background: rgba(87, 255, 220, 0.07);
  color: #57ffdc;
}

.pub-type-award {
  border: 1px solid rgba(255, 200, 60, 0.6);
  background: rgba(255, 200, 60, 0.1);
  color: #ffc83c;
}

.pub-type-report {
  border: 1px solid rgba(180, 160, 120, 0.45);
  background: rgba(180, 160, 120, 0.08);
  color: #c8b48a;
}

/* Legacy badge (PhD marker, etc) */
.pub-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.1);
  color: var(--neon-amber);
}

/* Title */
.pub-title {
  margin: 0 0 0.3rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--fg-0);
  line-height: 1.45;
  border: none;
  padding: 0;
  letter-spacing: 0;
  width: 100%;
  display: block;
}

/* Authors */
.pub-authors {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Footer row inside card (preprint btn etc) */
.pub-footer-row {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}


@media (max-width: 600px) {
  .pub-timeline::before {
    left: calc(2.5rem + 0.4rem - 0.5px);
  }

  .pub-year-block {
    grid-template-columns: 2.5rem 1fr;
    gap: 0 0.8rem;
  }

  .pub-year-label {
    font-size: 0.78rem;
  }

  .pub-year-label::after {
    right: -0.4rem;
  }

  .pub-year-entries {
    padding-left: 1rem;
  }

  .pub-card {
    padding: 0.7rem 0.75rem;
  }
}

/* ── Dropdown select styling ── */
.cyber-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(13, 20, 40, 0.88);
  color: var(--neon-cyan);
  border: 1px solid rgba(98, 242, 255, 0.38);
  border-radius: 8px;
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 15px rgba(98, 242, 255, 0.05);
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2362f2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem top 50%;
  background-size: 0.65rem auto;
}

.cyber-select:hover,
.cyber-select:focus {
  border-color: rgba(255, 78, 205, 0.6);
  box-shadow: 0 0 20px rgba(255, 78, 205, 0.15);
  color: var(--neon-magenta);
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff4ecd%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

.cyber-select option {
  background-color: #0d1428;
  color: #c7f8ff;
  font-weight: 500;
}

/* Hide categories on individual blog post pages */
.quarto-categories {
  display: none !important;
}

/* Hide default margin sidebar on blog page and fix layout */
.blog-page #quarto-margin-sidebar {
  display: none !important;
}

.blog-page .quarto-grid-item {
  grid-column: page-start / page-end !important;
}

/* ── Hero section ── */
/* ── About page: subtitle callout ── */
.hero-subtitle {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--neon-amber);
  letter-spacing: 0.02em;
  margin: 0 0 2.2rem;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--neon-amber);
  background: rgba(255, 209, 102, 0.06);
  border-radius: 0 8px 8px 0;
}

/* ── About page: narrative sections ── */
.about-narrative {
  margin: 0 0 1rem;
}

.about-narrative > p {
  color: var(--fg-1);
  line-height: 1.75;
  margin: 0 0 1.8rem;
  font-size: 1rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(98, 242, 255, 0.15);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.03em;
}

.section-heading:first-child {
  margin-top: 0;
}

.heading-icon {
  font-size: 1.1rem;
}

/* ── About page: call to action ── */
.about-cta {
  margin: 2.5rem 0 0.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.05);
  text-align: center;
}

.about-cta > p {
  margin: 0 0 0.7rem;
  color: var(--fg-1);
  font-size: 1rem;
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cta-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(98, 242, 255, 0.35);
  background: rgba(98, 242, 255, 0.08);
  color: var(--neon-cyan);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cta-links a:hover {
  background: rgba(98, 242, 255, 0.18);
  border-color: rgba(98, 242, 255, 0.6);
  transform: translateY(-1px);
  text-shadow: none;
}

.hero-section {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 2rem 0 2.5rem;
  padding: 0;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 205px;
  height: 205px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: none;
  box-shadow: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.hero-title {
  margin: 0 0 0.2rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg-0);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-title a {
  color: #d96c00;
  font-size: 1.3rem;
  transition: color 0.2s ease;
}

.hero-title a:hover {
  color: #ff8c1a;
  text-shadow: none;
}

.hero-bio {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.hero-bio a {
  color: var(--neon-amber);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hero-bio a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(98, 242, 255, 0.5);
}

.hero-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.6rem;
}

.hero-socials a {
  color: var(--fg-muted);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-socials a:hover {
  color: var(--fg-0);
  transform: translateY(-2px);
  text-shadow: none;
}

@media (max-width: 700px) {
  body {
    font-size: 0.95rem;
  }

  .navbar>.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar .navbar-brand {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }

  .navbar .nav-link {
    font-size: 0.9rem;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .hero-title {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }
}