﻿html {
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 80%;
}

body {
  margin: 0 auto;
  max-width: 1100px;
  padding: 20px;
  font-family: inherit;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1 0 auto;
}

.site-copyright {
  margin-top: 28px;
  padding-top: 16px;
  border-top: none;
  font-size: 1rem;
  line-height: 1.4;
  color: #667085;
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
}
nav ul {
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  padding: 0;
  list-style: none;
  font-weight: bold;
}
nav ul li {
  display: inline;
  margin-right: 20px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav-links,
.top-profile-links {
  margin: 0;
}

.top-profile-links {
  display: flex;
  gap: 8px;
}

.top-profile-links li {
  margin: 0;
}

.top-profile-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #c7d0dd;
  border-radius: 999px;
  color: #1f2937;
  background: #ffffff;
}

.top-profile-links a:hover {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.top-profile-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Make nav links easier to tap on touch devices */
nav ul li a {
  display: inline-block;
  padding: 8px 12px;
}

a {
  text-decoration: none;
  color: #1a1a1a; /* improved contrast */
}

a:hover {
  background-color: #1a1a1a;
  color: white;
}

a:focus {
  outline: 3px solid #0a66c2; /* visible focus ring */
  outline-offset: 2px;
}

/* Prefer `:focus-visible` where supported to avoid showing focus styles on mouse click */
a:focus-visible {
  outline: 3px solid #0a66c2;
  outline-offset: 2px;
}

a.cv {
    text-decoration: none;
}
a.cv:hover {
    text-decoration: none;
}

h1 {
  font-size: 2.9em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}
h2 {
  font-size: 1.92em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

h3 {
  font-size: 1.44em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

ul {
  font-size: 1.44em;
  line-height: 1.5em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}
ul ul {
  font-size: 1em;
  line-height: 1.5em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

ol {
  font-size: 1.44em;
  line-height: 1.5em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

ol ul{
  font-size: 1em;
  line-height: 1.5em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

h1.cv {
  text-align: center;
  font-size: 3em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}
h2.cv {
  font-size: 2em;
  line-height: 1em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}
h3.cv {
  padding-top: 16px;
  line-height: 1em;
  font-size: 1em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}
h4.cv {
  line-height: 1em;
  font-size: .8em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

p {
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 1.44em;
  line-height: 1.5em;
  color: #333;
}

p.cv {
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: .8em;
  line-height: 1em;
  color: #333;
}

hr {
  display: block;
  margin-top: 0.1em;
  margin-bottom: 0.25em;
  margin-left: auto;
  margin-right: auto;
  border-style: inset;
  border-width: 4px;
}

ul.cv {
  font-size: 1em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}
ol.cv {
  font-size: 1em;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

/* BLOG */
.blog-page,
.blog-post-page {
  max-width: none;
  margin: 0;
}

.blog-page {
  padding-top: 24px;
}

.blog-page-title {
  margin: 0 0 18px;
}

.blog-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-list-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 0;
  border-bottom: 1px solid #e7ecf2;
}

.blog-list-item:last-child {
  border-bottom: none;
}

.blog-list-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
}

.blog-list-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
  text-decoration: none;
}

.blog-list-title:hover {
  color: #0a66c2;
  background: transparent;
}

.blog-post-page {
  padding: 24px 0 20px;
}

.blog-post-header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7ecf2;
}

.blog-post-title {
  margin: 0 0 8px;
  line-height: 1.2;
}

.blog-post-meta {
  margin: 0;
}

.blog-post-date {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #667085;
  background: #f8fbff;
}

.blog-post-content {
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  font-size: 1.44em;
  line-height: 1.75;
  color: #344054;
}

.blog-post-content p,
.blog-post-content li,
.blog-post-content ol,
.blog-post-content ul {
  font-size: 1em;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
}

.blog-post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}

.blog-post-content figure {
  margin: 16px auto;
}

.blog-post-content figure img {
  margin: 0 auto;
}


.avatar {
  margin: 30px auto;
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  display: block;
}

/* PROJECT PAGES */
.project-page {
  max-width: none;
  margin: 0;
  padding-top: 24px;
}

.project-page h1 {
  margin: 0 0 12px;
}

.project-page h2 {
  margin: 30px 0 12px;
  border-bottom: 1px solid #e7ecf2;
  padding-bottom: 10px;
}

.project-page h3 {
  margin: 22px 0 10px;
}

.project-page .service-link {
  display: inline;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.project-page .service-link:hover {
  background: transparent;
  color: #0a66c2;
}

.project-page .service-link:focus,
.project-page .service-link:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 2px;
}

.project-page p {
  margin: 12px 0;
}

.project-page ul,
.project-page ol {
  margin: 14px 0;
}

.project-page img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 10px;
}

.project-page figure {
  margin: 16px auto;
}

.project-page figure img {
  margin: 0 auto;
}

.project-page .project-hero {
  width: min(100%, 760px);
  margin: 12px auto 18px;
  border-radius: 14px;
}

.project-page .project-meta {
  margin: 0 0 20px;
  color: #667085;
  font-style: italic;
}

/* Create three equal columns that float next to each other */
.column {
  float: left;
}

/* Left and right column */
.column.side {
  width: 25%;
}

/* Middle column */
.column.main {
  width: 75%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other on smaller screens (600px wide or less) */
@media screen and (max-width: 600px) {
  .column.side, .column.main {
    width: 100%;
  }

  /* Keep page links on one row, move profile links to a second row */
  .site-nav {
    justify-content: center;
    row-gap: 10px;
  }

  .site-nav-links {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .site-nav-links li {
    display: inline;
    margin: 0;
  }

  .site-nav-links li a {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .top-profile-links {
    width: 100%;
    justify-content: center;
  }

  .top-profile-links li {
    display: inline;
    margin: 0;
  }

  /* Make project columns full width on small screens */
  .column.projects {
    width: 100%;
  }
}


/* PROJECT CARDS */
.row.projects:after {
  content: "";
  display: table;
  clear: both;
}

.column.projects {
  /* Legacy hook kept for compatibility with older markup. */
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

h4.projects {
  font-size: 1.05em;
  line-height: 1.35;
  margin: 0;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
}

p.projects {
  margin: 8px 0 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #667085;
  font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
  display: block;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card.projects {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card.projects:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(18, 38, 63, 0.1);
  border-color: #c9d3e1;
}

/* Project grid: responsive equal-height cards */
.row.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.card.projects img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Card link structure: let the anchor fill the card and stack image + container */
.card.projects > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Ensure the text container occupies remaining space so hover fills it */
.card.projects .container.projects {
  background: #fff;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px 18px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Keep interaction subtle and consistent with CV sections */
.card.projects > a:hover .container.projects {
  background: #f8fbff;
}

.card.projects > a:hover .container.projects h4.projects,
.card.projects > a:hover .container.projects p.projects {
  color: inherit;
}

.card .container.projects h4.projects {
  margin: 0;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary {
  background: #0a66c2;
  color: white;
}
.btn-primary:hover {
  background: #0952a3;
}

/* Active nav style */
nav ul li a.active {
  color: #0a66c2;
  border-bottom: 2px solid #0a66c2;
  padding-bottom: 4px;
}

/* Removed legacy absolute-overlay link rules to avoid layout conflicts with card grid */

@media screen and (max-width: 600px) {
  .column.projects {
    width: 100%;
  }

  .row.projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card.projects img {
    height: 120px;
  }

  h4.projects {
    font-size: 0.96em;
  }

  p.projects {
    font-size: 0.88em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* CV PREVIEW PAGE */
/* â”€â”€ CV PREVIEW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cv-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 0 56px;
}

/* Hero */
.cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr);
  gap: 24px;
  padding: 32px;
  border: 1px solid #d9dee7;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #f3f5f8 100%);
  box-shadow: 0 16px 34px rgba(18, 38, 63, 0.08);
}

.cv-name {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
}

.cv-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: #425466;
  font-weight: 700;
}

.cv-summary {
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #344054;
}

/* Focus chips */
.cv-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cv-chip-list li {
  margin: 0;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #d9dee7;
  font-size: 0.88rem;
  color: #344054;
}

/* Profile links â€” visually distinct from chips */
.cv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.cv-links li {
  margin: 0;
}

.cv-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c7d0dd;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cv-links a:hover {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.cv-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Sidebar */
.cv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-stat-card,
.cv-section,
.cv-mini-card {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
}

.cv-stat-card {
  padding: 20px;
}

.cv-stat-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
}

.cv-stat-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
}

/* Layout */
.cv-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

.cv-section {
  padding: 28px;
}

.cv-section-header {
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid #e7ecf2;
}

.cv-section-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

/* Experience entries */
.cv-entry-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cv-entry {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf1f6;
}

.cv-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cv-entry.cv-placeholder {
  border: 1px dashed #c7d0dd;
  border-radius: 12px;
  padding: 16px;
  background: #fafcff;
}

.cv-role {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.cv-org,
.cv-date,
.cv-location,
.cv-topic {
  margin: 5px 0 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #667085;
}

.cv-topic {
  font-style: italic;
  color: #425466;
}

/* Bullets and lists */
.cv-bullets,
.cv-list,
.cv-publications {
  margin: 0;
  padding-left: 20px;
}

.cv-bullets li,
.cv-list li,
.cv-publications li {
  margin: 0 0 10px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #344054;
}

.cv-bullets li:last-child,
.cv-list li:last-child,
.cv-publications li:last-child {
  margin-bottom: 0;
}

.cv-publications a {
  color: #0a66c2;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 102, 194, 0.35);
}

.cv-list a {
  color: #0a66c2;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 102, 194, 0.35);
}

.cv-mini-card a {
  color: #0a66c2;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 102, 194, 0.35);
}

.cv-mini-card a:hover {
  color: #084f9a;
  border-bottom-color: rgba(8, 79, 154, 0.55);
}

.cv-publications a:hover {
  color: #084f9a;
  border-bottom-color: rgba(8, 79, 154, 0.55);
}

.cv-list a:hover {
  color: #084f9a;
  border-bottom-color: rgba(8, 79, 154, 0.55);
  background: transparent;
}

/* Education grid */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cv-mini-card {
  padding: 20px;
}

.cv-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.cv-mini-card p {
  margin: 4px 0 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #667085;
}

/* Two-column scholarly */
.cv-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cv-subsection-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

/* Show-more toggle */
.cv-hidden {
  display: none;
}

.cv-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: transparent;
  color: #0a66c2;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cv-show-more-btn:hover {
  background: #e8f1fb;
}

.cv-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-style: normal;
}

.cv-chevron-up {
  transform: rotate(180deg);
}

/* Misc */
.cv-muted {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #667085;
}

.cv-muted a {
  color: #0a66c2;
}

/* Responsive */
@media screen and (max-width: 820px) {
  .cv-hero,
  .cv-entry {
    grid-template-columns: 1fr;
  }

  .cv-columns {
    grid-template-columns: 1fr;
  }

  .cv-section,
  .cv-hero {
    padding: 20px;
  }
}


/* ── CODE BLOCKS & SYNTAX HIGHLIGHTING ──────────────────────── */

/* Inline code */
code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  background: #f1f3f5;
  border-radius: 4px;
  color: #1f2937;
}

/* Reset inline code inside pre (fenced blocks) */
pre code {
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* Fenced code blocks */
pre,
.highlighter-rouge pre.highlight {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 16px 20px;
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 10px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #313244;
}

/* Ensure consistent sizing inside lists */
ol .highlighter-rouge pre.highlight,
ul .highlighter-rouge pre.highlight,
ol pre,
ul pre {
  font-size: 0.92rem;
}

/* Rouge wrapper — remove extra margins */
.highlighter-rouge {
  margin: 16px 0;
}

div.highlighter-rouge {
  border-radius: 10px;
  overflow: hidden;
}

/* Inside lists, let the wrapper sit flush with the text */
ol .highlighter-rouge,
ul .highlighter-rouge {
  margin: 10px 0;
}

/* ── Rouge / Catppuccin Mocha-inspired tokens ─────────────── */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs { color: #6c7086; font-style: italic; }  /* comments */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt { color: #cba6f7; }                       /* keywords */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .sh,
.highlight .sx { color: #a6e3a1; }                        /* strings */
.highlight .nf,
.highlight .nb { color: #89b4fa; }                        /* functions / builtins */
.highlight .nv,
.highlight .vi,
.highlight .vc,
.highlight .vg { color: #f38ba8; }                        /* variables */
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo,
.highlight .il { color: #fab387; }                        /* numbers */
.highlight .o,
.highlight .ow { color: #89dceb; }                        /* operators */
.highlight .p { color: #cdd6f4; }                          /* punctuation */
.highlight .na { color: #f9e2af; }                         /* attribute names */
.highlight .nt { color: #f38ba8; }                         /* tag names */
.highlight .nc { color: #f9e2af; }                         /* class names */
.highlight .err { color: #f38ba8; }                        /* errors */
.highlight .gd { color: #f38ba8; background: rgba(243,139,168,0.1); } /* diff deleted */
.highlight .gi { color: #a6e3a1; background: rgba(166,227,161,0.1); } /* diff inserted */

