/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

/**
 * Basic styling
 */
body {
  font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111;
  background-color: #fdfdfd;
  
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern"1;
  -moz-font-feature-settings: "kern"1;
  -o-font-feature-settings: "kern"1;
  font-feature-settings: "kern"1;
  font-kerning: normal;
}
body {
  background: #f5f5f7;   /* light grey / off-white */
}

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: 12px;
}

/**
 * Images
 */
img {
  max-width: 100%;
  vertical-align: middle;
}

/**
 * Figures
 */
figure>img {
  display: block;
}

figcaption {
  font-size: 14px;
}

/**
 * Lists
 */
ul, ol {
  margin-left: 24px;
}

li>ul,
li>ol {
  margin-bottom: 0;
}

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

/**
 * Links
 */
a {
  color: #000000;
  text-decoration: none;
}

a:visited {
  color: #000000;
}

a:hover {
  color: #2a3a1e;
  text-decoration: underline;
}

/**
 * Blockquotes
 */
blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 12px;
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic;
}

blockquote> :last-child {
  margin-bottom: 0;
}

/**
 * Code formatting
 */
pre,
code {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef;
}

code {
  padding: 1px 5px;
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
}

pre>code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(900px - (24px * 2));
  max-width: calc(900px - (24px * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

@media screen and (max-width: 900px) {
  .wrapper {
    max-width: -webkit-calc(900px - (24px));
    max-width: calc(900px - (24px));
    padding-right: 12px;
    padding-left: 12px;
  }
}

/**
 * Clearfix
 */
.wrapper:after {
  content: "";
  display: table;
  clear: both;
}

/**
 * Icons
 */
.icon>svg {
  display: inline-block;
  vertical-align: middle;
}

.icon>svg path {
  fill: #828282;
}

.site-title {
  font-size: 26px;
  font-weight: 300;
  margin: 8px 0;
  display: inline-block;
}

.site-title, .site-title:visited {
  color: #424242;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav .page-link {
  color: #111;
  line-height: 1.5;
  padding: 8px 0;
  display: inline-block;
}

.site-nav .page-link:not(:last-child) {
  margin-right: 20px;
}

.site-nav .page-link.active {
  padding-bottom: 7px;
  margin-bottom: -1px;
  border-bottom: 2px solid #424242;
}

@media screen and (max-width: 600px) {
  .site-nav .page-link.active {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: 12px;
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: right;
  }

  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }

  .site-nav .menu-icon>svg path {
    fill: #424242;
  }

  .site-nav .trigger {
    clear: both;
    display: none;
  }

  .site-nav:hover .trigger {
    display: block;
    padding-bottom: 5px;
  }

  .site-nav .page-link {
    display: block;
    padding: 5px 10px;
    margin-left: 20px;
  }

  .site-nav .page-link:not(:last-child) {
    margin-right: 0;
  }
}

.navigation-wrapper.has-logo .navigation-links {
  width: 70%;
  float: left;
}

@media screen and (max-width: 600px) {
  .navigation-wrapper.has-logo .navigation-links {
    width: 100%;
  }
}

.navigation-wrapper.has-logo .navigation-logo {
  width: 30%;
  float: left;
  padding: 12px;
  box-sizing: border-box;
  text-align: right;
  height: 95px;
}

.navigation-wrapper.has-logo .navigation-logo img {
  max-height: 100%;
}

@media screen and (max-width: 600px) {
  .navigation-wrapper.has-logo .navigation-logo {
    display: none;
  }
}

/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 24px 0;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  display: flex;
  justify-content: space-between;
}

.footer-col {
  margin-bottom: 12px;
}

.footer-text {
  border-top: 1px solid #e8e8e8;
  text-align: center;
  font-size: 0.8rem;
  padding: 12px 0;
}

/**
 * Page content
 */
.page-content {
  padding: 24px 0;
}

.page-heading {
  font-size: 20px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}

.post-list>li {
  margin-bottom: 24px;
}

.post-meta {
  font-size: 14px;
  color: #828282;
}

.post-link {
  display: block;
  font-size: 24px;
}

/**
 * Posts
 */
.post-header {
  margin-bottom: 24px;
}

.post-title {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1;
}

@media screen and (max-width: 900px) {
  .post-title {
    font-size: 36px;
  }
}

.post-content {
  display: block;
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 32px;
}

@media screen and (max-width: 900px) {
  .post-content h2 {
    font-size: 28px;
  }
}

.post-content h3 {
  font-size: 26px;
}

@media screen and (max-width: 900px) {
  .post-content h3 {
    font-size: 22px;
  }
}

.post-content h4 {
  font-size: 20px;
}

@media screen and (max-width: 900px) {
  .post-content h4 {
    font-size: 18px;
  }
}

.profile-picture {
  float: left;
  margin-top: 25px;
  margin-right: 25px;
  margin-bottom: 55px;
  max-width: 30%;
  border: 6px solid #ddd;
  border-radius: 50%;
  box-sizing: border-box;
}

@media screen and (max-width: 600px) {
  .profile-picture {
    max-width: 60%;
    display: block;
    float: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

ul.publications {
  list-style: none;
  margin: 0;
}

ul.publications li {
  margin-bottom: 16px;
}

ul.publications .title {
  display: block;
  font-style: italic;
}

ul.publications .authors {
  display: block;
  font-size: 0.9rem;
}

ul.publications .journal-info {
  color: #828282;
  font-size: 0.9rem;
}

ul.publications .year {
  float: right;
  color: #828282;
  font-size: 0.9rem;
}

ul.publications .links {
  display: block;
  font-size: 0.9rem;
}

ul.publications .oral {
  /* color: red; */
  font-style: normal;
  font-weight: bold;
  font-size: 0.8rem;
}

.footnote {
  display: block;
  font-size: 0.9rem;
}

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff;
}

.highlighter-rouge .highlight {
  background: #eef;
}

.highlight .c {
  color: #998;
  font-style: italic;
}

.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}

.highlight .k {
  font-weight: bold;
}

.highlight .o {
  font-weight: bold;
}

.highlight .cm {
  color: #998;
  font-style: italic;
}

.highlight .cp {
  color: #999;
  font-weight: bold;
}

.highlight .c1 {
  color: #998;
  font-style: italic;
}

.highlight .cs {
  color: #999;
  font-weight: bold;
  font-style: italic;
}

.highlight .gd {
  color: #000;
  background-color: #fdd;
}

.highlight .gd .x {
  color: #000;
  background-color: #faa;
}

.highlight .ge {
  font-style: italic;
}

.highlight .gr {
  color: #a00;
}

.highlight .gh {
  color: #999;
}

.highlight .gi {
  color: #000;
  background-color: #dfd;
}

.highlight .gi .x {
  color: #000;
  background-color: #afa;
}

.highlight .go {
  color: #888;
}

.highlight .gp {
  color: #555;
}

.highlight .gs {
  font-weight: bold;
}

.highlight .gu {
  color: #aaa;
}

.highlight .gt {
  color: #a00;
}

.highlight .kc {
  font-weight: bold;
}

.highlight .kd {
  font-weight: bold;
}

.highlight .kp {
  font-weight: bold;
}

.highlight .kr {
  font-weight: bold;
}

.highlight .kt {
  color: #458;
  font-weight: bold;
}

.highlight .m {
  color: #099;
}

.highlight .s {
  color: #d14;
}

.highlight .na {
  color: #008080;
}

.highlight .nb {
  color: #0086B3;
}

.highlight .nc {
  color: #458;
  font-weight: bold;
}

.highlight .no {
  color: #008080;
}

.highlight .ni {
  color: #800080;
}

.highlight .ne {
  color: #900;
  font-weight: bold;
}

.highlight .nf {
  color: #900;
  font-weight: bold;
}

.highlight .nn {
  color: #555;
}

.highlight .nt {
  color: #000080;
}

.highlight .nv {
  color: #008080;
}

.highlight .ow {
  font-weight: bold;
}

.highlight .w {
  color: #bbb;
}

.highlight .mf {
  color: #099;
}

.highlight .mh {
  color: #099;
}

.highlight .mi {
  color: #099;
}

.highlight .mo {
  color: #099;
}

.highlight .sb {
  color: #d14;
}

.highlight .sc {
  color: #d14;
}

.highlight .sd {
  color: #d14;
}

.highlight .s2 {
  color: #d14;
}

.highlight .se {
  color: #d14;
}

.highlight .sh {
  color: #d14;
}

.highlight .si {
  color: #d14;
}

.highlight .sx {
  color: #d14;
}

.highlight .sr {
  color: #009926;
}

.highlight .s1 {
  color: #d14;
}

.highlight .ss {
  color: #990073;
}

.highlight .bp {
  color: #999;
}

.highlight .vc {
  color: #008080;
}

.highlight .vg {
  color: #008080;
}

.highlight .vi {
  color: #008080;
}

.highlight .il {
  color: #099;
}

html {
  scroll-behavior: smooth;
}


/* Add dividers between main sections */
/* .main-content .section {
  padding-top: 1.75rem;
  margin-top: 0.0rem;
  border-top: 1px solid #e3e3e3;  /* adjust color to taste */
/* } */

/* Don’t draw a line above the very first section (About) */
/* .main-content .section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
} */

.highlight {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  background: #fff6f4;
  border: 1px solid #ffd5c7;
  font-size: 0.95rem;
}



.nav-bar {
  background: #fff6f4;               /* pink band */
  border-bottom: 1px solid #ffd5c7;
  border-radius: 0 0 8px 8px;
  margin: 0 -24px;                   /* cancel wrapper's 24px padding */
  padding: 0.8rem 2.5rem;            /* inner padding for title + links */
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.nav-title {
  font-size: 1.4rem;
  font-weight: 500;
}

/* THIS pushes the whole block of links to the right */
.nav-links {
  margin-left: auto;           /* pushes links to the right */
  display: flex;               /* puts links on one row */
  align-items: center;
  justify-content: flex-end;   /* right-align inside the bar */
  gap: 1.5rem;                 /* space between links */
  white-space: nowrap;         /* prevent wrapping to a new line */
}


.nav-links a {
  margin-left: 1.5rem;   /* spacing between About / Publications / CV / Talks */
  text-decoration: none;
}

.nav-links a,
.sidebar-links a {
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.nav-links a:hover,
.sidebar-links a:hover {
  color: #1a73e8;
  text-decoration: underline;
}


/* Two-column layout */
.layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar {
  flex: 0 0 210px;   /* was 260px */
  border-right: 1px solid #e0e0e0;
  padding-right: 1.5rem;
  
}

.article .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #eef2ff;
}
.article .year {
  font-size: 0.8rem;
  color: #888;
}



.pub-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pub-header .title {
  flex: 1;             /* title takes remaining space */
  font-style: italic;  /* if you had this before */
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #eef0ff;
  color: #555;
  white-space: nowrap;
}


/* keep top bar visible */
.site-header {
  border-top: 5px solid #424242;  /* or remove if you don't want it */
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f5f5f7;   /* same as body, so the edges are grey */
  border-bottom: none;
}

/* keep sidebar visible on scroll (desktop) */
.sidebar {
  position: sticky;
  top: 4.5rem;           /* just below the header */
}



.sidebar-picture {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;

  border: 2px solid #2a3a1e;
  /* optional extras: */
  padding: 3px;
  box-shadow: 0 0 4px rgba(0,0,0,0.12);
}

/* small icons */
.sidebar-links li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}



.sidebar-name {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.sidebar-role {
  margin-bottom: 0.15rem;
}



.sidebar-meta,
.sidebar-links {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0;
}

.sidebar-meta li {
  font-size: 0.85rem;
  opacity: 0.8;
}

.sidebar-links li {
  margin-bottom: 0.2rem;
}

/* Main content */
.main-content {
  flex: 1;
  padding-left: 1rem;
}


.section {
  margin-bottom: 2.5rem;
}

/* .section h1 {
  margin-top: 0;
} */

/* Section titles: About / Education / Selected Research */
.section > h1 {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #333;
  margin: 0 0 1rem 0;
  position: relative;
}

/* Colored bar under each title */
.section > h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: #e6a7a6;  /* matches your pink theme; tweak if needed */
  margin-top: 0.5rem;
}


/* Publications list (reuse existing styles if you have them) */
.publications {
  list-style: none;
  padding-left: 0;
}

.article {
  margin-bottom: 1.2rem;
}

.article .title {
  font-weight: 600;
  display: block;
}

.article .authors,
.article .journal-info,
.article .year,
.article .links {
  display: block;
  font-size: 0.9rem;
}

.article .links a {
  margin-right: 0.5rem;
}

/* Footer */
.footer-inner {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

/* Mobile: stack sidebar on top */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid #e3e3e3;
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .main-content {
    max-width: 100%;
    padding-left: 0;
  }
}

.wrapper {
  max-width: 1100px;   /* or whatever you use */
  margin: 0 auto;
}

/* central card */
.layout {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 2rem 2.5rem;
  margin: 0.0rem auto 2.5rem;
}


.sidebar-section-title {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  border-top: 1px solid #e3e3e3;  /* this is the separator line */
}


/* -----------------------------------
   Mobile tweaks
   ----------------------------------- */
@media (max-width: 768px) {
  /* Slightly smaller base text */
  body {
    font-size: 14px;
  }

  /* Top bar */
  .nav-bar {
    padding: 0.6rem 1rem;
  }

  .nav-title {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .nav-links {
    font-size: 0.9rem;
    gap: 1rem;
    justify-content: flex-end;   /* keep them right-aligned */
    white-space: nowrap;         /* extra safety against wrapping */
  }

  /* Card layout */
  .layout {
    flex-direction: column;
    padding: 1.25rem 1.25rem 2rem;
    margin-top: 1rem;
    border-radius: 0;          /* optional: makes it feel more “native” */
    box-shadow: none;          /* lighter look on phones */
  }

  /* Sidebar on top, centered */
  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
  }

  .sidebar-picture {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
  }

  .sidebar-name {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }

  .sidebar-role,
  .sidebar-meta li,
  .sidebar-links li {
    font-size: 0.9rem;
  }

  .sidebar-links {
    align-items: center;
  }

  .sidebar-meta {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #ececec;
  }

  .sidebar-links {
    list-style: none;
    padding-left: 0;
    margin: 0.6rem 0 0;
  }

  .sidebar-links-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777;
    margin-bottom: 0.4rem;
  }

  /* existing, but tuned a bit tighter */
  .sidebar-links li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
  }





  
  /* Tighten vertical spacing for sidebar text blocks */
  .sidebar-role,
  .sidebar-summary,
  .sidebar-location {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
  }


  /* Separator before “Profiles & Contact” */
  .sidebar-section-title {
    font-size: 0.72rem;
  }

  /* Keep links visually grouped below the heading */
  .sidebar-links {
    margin-top: 0.4rem;
  }



  .sidebar-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
  }

  /* Main content */
  .main-content {
    padding-left: 0;
  }

  .section {
    margin-bottom: 2rem;
  }

  .section > h1 {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .section > h1::after {
    width: 40px;
    height: 2px;
  }

  /* Publications text a bit smaller so they fit nicely */
  .publications .title {
    font-size: 1rem;
  }

  .article .authors,
  .article .journal-info,
  .article .links {
    font-size: 0.9rem;
  }

  
}

/* Sidebar text spacing (desktop + mobile) */
.sidebar-role,
.sidebar-summary,
.sidebar-location {
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;   /* much tighter than the global 12px */
}

/* A bit more breathing room below the location line before links */
.sidebar-location {
  margin-bottom: 0.6rem;
}

.sidebar-location {
  margin-top: 0.1rem;
  font-size: 0.9em;
  opacity: 0.85;
}
.section + .section {
  border-top: 1px solid #f0f0f0;
  padding-top: 1.75rem;
}
