/* ─── Google Fonts ────────────────────────────────────────────────── */
  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Lato:wght@300;400;700&display=swap');

/* ─── Base ───────────────────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; }

html {
  background-color: #fefefe !important;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1e1e1e;
    background-color: #fefefe !important;
    line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
  main {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 0 5rem;
    background-color: #fefefe;
  }

#quarto-content {
background-color: #fefefe !important;
  max-width: 100% !important;
width: 100% !important;
}

#quarto-document-content {
background-color: #fefefe;
  width: 100%;
max-width: 100%;
padding: 0;
}

/* Full layout pages */
  #quarto-content.page-layout-full {
  padding: 0 6rem;
max-width: 100%;
width: 100%;
background-color: #fefefe;
  }

#quarto-content.page-layout-full #quarto-document-content {
width: 100%;
max-width: 100%;
padding: 0;
}

#quarto-content.page-layout-full .page-columns {
max-width: 100%;
width: 100%;
}

#quarto-content.page-layout-full .column-body {
max-width: 100%;
width: 100%;
}

/* Article layout pages (publications) */
  #quarto-content.page-layout-article {
  display: grid !important;
grid-template-columns: 1fr 160px !important;
grid-template-rows: auto !important;
gap: 3rem !important;
padding: 2rem 6rem !important;
max-width: 1400px !important;
width: 100% !important;
margin: 0 auto !important;
align-items: start !important;
background-color: #fefefe;
  }

#quarto-content.page-layout-article #quarto-sidebar {
display: none !important;
}

#quarto-content.page-layout-article #quarto-margin-sidebar {
grid-column: 2 !important;
grid-row: 1 !important;
width: 160px !important;
position: sticky !important;
top: 4rem !important;
display: block !important;
background-color: #fefefe;
  }

#quarto-content.page-layout-article main {
grid-column: 1 !important;
grid-row: 1 !important;
max-width: 100% !important;
width: 100% !important;
min-width: 0 !important;
padding: 0 !important;
background-color: #fefefe;
  }

/* ─── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  background-color: #fefefe !important;
  border-bottom: 1px solid #e8e2dc;
  padding: 0.75rem 2rem;
}

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

.navbar .navbar-brand-container.mx-auto {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.navbar .navbar-collapse {
  margin-left: 0.5rem !important;
}

.navbar .navbar-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: #1e1e1e !important;
  letter-spacing: 0;
  margin-right: 0.5rem;
}

.navbar .nav-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #6b6560 !important;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #1e1e1e !important;
}

/* ─── Typography ─────────────────────────────────────────────────── */
  h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.3;
    color: #1e1e1e;
      margin-top: 2rem;
    margin-bottom: 0.75rem;
  }

h1 { font-size: 1.6rem; }

h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid #e8e2dc;
  padding-bottom: 0.4rem;
}

h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6560;
    margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6560;
}

p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1e1e1e;
    margin-bottom: 1.25rem;
}

li, td, th {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1e1e1e;
    margin-bottom: 0.4rem;
}

a {
  color: #5a4a42;
    text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: #3d3530;
    text-decoration: underline;
}

blockquote {
  border-left: 2px solid #e8e2dc;
  padding-left: 1.25rem;
  color: #6b6560;
    font-style: italic;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

hr {
  border: none;
  border-top: 1px solid #e8e2dc;
  margin: 2.5rem 0;
}

/* ─── Table of contents ──────────────────────────────────────────── */
  #TOC {
  font-size: 0.8rem;
padding-left: 1rem;
}

#TOC .nav-link {
font-family: 'DM Sans', system-ui, sans-serif;
font-size: 0.8rem;
color: #6b6560;
  text-transform: none;
letter-spacing: 0;
padding: 0.2rem 0.5rem;
}

#TOC .nav-link:hover,
#TOC .nav-link.active {
color: #1e1e1e;
  }

/* ─── Footer ─────────────────────────────────────────────────────── */
  footer {
    margin-top: 5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e2dc;
    color: #a09890;
      font-size: 0.8rem;
    text-align: center;
    background-color: #fefefe;
  }

footer a {
  color: #a09890;
    text-decoration: none;
}

footer a:hover {
  color: #1e1e1e;
}

/* ─── Language toggle (about page) ──────────────────────────────── */
  .lang-toggle {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

.lang-toggle a {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6560;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #e8e2dc;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.lang-toggle a:hover,
.lang-toggle a.active {
  color: #1e1e1e;
    border-color: #6b6560;
    text-decoration: none;
}

/* ─── About page ─────────────────────────────────────────────────── */
  .about-content {
    max-width: 680px;
  }

/* ─── Landing page ───────────────────────────────────────────────── */
  .landing-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 4rem 0 3rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }

.landing-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 240px;
}

.landing-socials {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  font-size: 1rem;
}

.landing-socials a {
  color: #6b6560;
    text-decoration: none;
  transition: color 0.15s ease;
}

.landing-socials a:hover {
  color: #1e1e1e;
}

.landing-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.landing-tag {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #6b6560;
    margin-bottom: 0.75rem;
  display: block;
}

.landing-bio {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.75;
  color: #1e1e1e;
    margin-bottom: 1.75rem;
  max-width: 520px;
}

.landing-bio a {
  color: #5a4a42;
    text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.landing-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-main {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  padding: 6px 16px;
  background-color: #1e1e1e;
    color: #fefefe;
    text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.btn-main:hover {
  background-color: #3d3530;
    color: #fefefe;
    text-decoration: none;
}

.btn-main {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  padding: 6px 16px;
  background-color: #1e1e1e;
  color: #fefefe;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.btn-outline {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  padding: 6px 16px;
  border: 1px solid #e8e2dc;
  color: #6b6560;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s ease;
}

/* ─── Landing sections ───────────────────────────────────────────── */
  .landing-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2.5rem 0 2rem;
    border-top: 1px solid #e8e2dc;
    margin-top: 0.5rem;
    width: 100%;
  }

.landing-section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a09890;
    margin-bottom: 1rem;
}

.landing-position {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  align-items: baseline;
}

.landing-position-year {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #a09890;
    white-space: nowrap;
}

.landing-position-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #6b6560;
    line-height: 1.5;
}

.landing-pub {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e2dc;
}

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

.landing-pub-title {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1e1e1e;
  margin-bottom: 0.2rem;
}

.landing-pub-title a {
  color: #1e1e1e;
    text-decoration: none;
  border-bottom: 1px solid #e8e2dc;
  padding-bottom: 1px;
}

.landing-pub-title a:hover {
  color: #5a4a42;
    border-color: #5a4a42;
}

.landing-pub-venue {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #6b6560;
  margin-bottom: 0.2rem;
}

.landing-pub-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b6560;
    text-decoration: none;
  border-bottom: 1px solid #e8e2dc;
  padding-bottom: 1px;
}

.landing-pub-links a:hover {
  color: #1e1e1e;
    border-color: #1e1e1e;
}

/* ─── Publications page ──────────────────────────────────────────── */
  #quarto-document-content h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
font-size: 0.85rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #a09890;
  border-bottom: 1px solid #e8e2dc;
padding-bottom: 0.4rem;
margin-top: 3rem;
margin-bottom: 1.25rem;
}

.pub {
  margin-bottom: 0.1rem;
  padding-bottom: 0.1rem;
  border-bottom: none;
}

.pub-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1e1e1e;
    margin-bottom: 0.2rem;
  hyphens: none;
}

.pub-venue {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #6b6560;
    margin-bottom: 0.25rem;
}

.pub-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b6560;
    text-decoration: none;
  margin-right: 0.75rem;
  border-bottom: 1px solid #e8e2dc;
  padding-bottom: 1px;
}

.pub-links a:hover {
  color: #1e1e1e;
    border-color: #1e1e1e;
}

.pub-awards {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.pub-awards li {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #6b6560;
    padding-left: 1rem;
  position: relative;
  margin-bottom: 0.15rem;
}

.pub-awards li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #a09890;
}

/* ─── Teaching page ──────────────────────────────────────────────── */
  .teaching-list {
    width: 100%;
    max-width: 100%;
  }

.teaching-list h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6560;
    border-bottom: 1px solid #e8e2dc;
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.teaching-list p {
  font-size: 1rem;
  color: #1e1e1e;
    line-height: 1.75;
}

.teaching-list ul {
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.teaching-list li {
  font-size: 1rem;
  color: #1e1e1e;
    line-height: 1.75;
  margin-bottom: 0.25rem;
}

.teaching-list li em {
  display: block;
  font-size: 0.9rem;
  color: #6b6560;
    margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* ─── Media page ─────────────────────────────────────────────────── */
  .media-list h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
  }

.media-list h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.media-entry {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8e2dc;
}

.media-entry:last-child {
  border-bottom: none;
}

.media-type {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a09890;
    margin-bottom: 0.3rem;
}

.media-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1e1e1e;
    margin-bottom: 0.2rem;
}

.media-meta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #6b6560;
    margin-bottom: 0.5rem;
}

.media-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 0.75rem;
}

.media-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 2px;
}

.media-audio {
  margin-top: 0.75rem;
}

.media-audio audio {
  width: 100%;
  height: 36px;
}

/* ─── Atlas of Finance page ──────────────────────────────────────── */
  .aof-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    max-width: 100%;
    padding-top: 2rem;
    flex-wrap: wrap;
  }

.aof-images {
  flex-shrink: 0 !important;
  width: 260px !important;
  max-width: 260px !important;
}

.aof-images img {
  display: block;
  width: 260px !important;
  max-width: 260px !important;
  height: auto !important;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  margin-bottom: 1.5rem;
}

.aof-images img:last-child {
  margin-bottom: 0;
}

.aof-text {
  flex: 1;
  min-width: 280px;
}

.aof-text blockquote {
  border-left: 2px solid #e8e2dc;
  padding-left: 1.25rem;
  color: #6b6560;
    font-style: italic;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.aof-text blockquote p {
  margin-bottom: 0.25rem;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
  @media screen and (max-width: 900px) {
    #quarto-content.page-layout-full {
    padding: 0 2rem;
  }

#quarto-content.page-layout-article {
padding: 2rem 2rem !important;
}
}

@media screen and (max-width: 768px) {
  #quarto-content.page-layout-full {
  padding: 0 1.5rem;
}

#quarto-content.page-layout-article {
grid-template-columns: 1fr !important;
padding: 2rem 1.5rem !important;
}

#quarto-content.page-layout-article #quarto-margin-sidebar {
display: none !important;
}

main {
  padding: 2rem 0 4rem;
}

.landing-container {
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0;
  gap: 2rem !important;
}

.landing-left { width: 180px; }

.landing-text { min-width: unset; }

.landing-sections {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.navbar .nav-link {
  font-size: 1.rem;
  padding: 0.2rem 0.4rem;
}

.aof-container {
  flex-direction: column;
  align-items: center;
}

.aof-images {
  width: 200px !important;
  max-width: 200px !important;
}

.aof-images img {
  width: 200px !important;
  max-width: 200px !important;
}
}