@import url('https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg: #fdfdfd;
  --panel: #ffffff;
  --text: #111111;
  --muted: #424242;
  --accent: #2a7ae2;
  --accent-2: #2a7ae2;
  --border: #e8e8e8;
}



* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vollkorn', serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  /* Force consistent rendering across different displays */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
  /* Force consistent positioning across displays */
  position: relative;
  left: 0;
  transform: translateX(0);
}
.container:after { content: ""; display: table; clear: both; }

@media screen and (max-width: 800px) {
  .container { max-width: 800px; padding-right: 15px; padding-left: 15px; }
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 { font-weight: 400; font-family: 'Vollkorn', serif; letter-spacing: 0; }
h4 { font-size: 14px; }
/* Tighter vertical rhythm */
p { margin: 0 0 12px; }
h2, h3 { margin-bottom: 10px; font-size: 1em; }

/* Left-align body paragraphs for consistent layout */
.section p,
.intro p,
.intro-copy p { text-align: left; text-justify: auto; hyphens: auto; }
h1 + .news-list,
h2 + .news-list,
h3 + .news-list,
.intro + .news-list,
.section .news-list { margin-left: 0; padding-left: 0; }
h2, h3 { margin-bottom: 10px; }

/* Ensure headings align left with the content column */
h1, h2, h3 { text-align: left; margin-left: 0; }
/* Reference-style hero heading */
h1 { font-size: 24px; font-weight: 700; letter-spacing: 0; font-family: 'Vollkorn', serif; }

/* Ensure hero heading is truly bold like section headings */
.intro h1 { font-weight: 500; margin-top: 0; margin-bottom: 6px; }

.site-header { 
  background: #ffffff; 
  border-bottom: 1px solid var(--border); 
  min-height: auto; 
  padding: 2px 0; 
  position: relative; 
}

.site-header .container {
  max-width: 760px;
  margin: 0 auto;
  padding-right: 30px;
  padding-left: 30px;
}

.nav-menu {
  margin-left: auto;
  padding-right: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 0;
}

.brand { color: #424242; font-weight: 400; text-decoration: none; font-size: 24px; line-height: 48px; display: inline-block; }
.site-logo { height: 80px; width: auto; display: block; }
/* Use text title instead of image for proper left alignment */
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.site-title-text { font-family: 'Vollkorn', serif; font-weight: 700; font-size: 28px; line-height: 32px; color: #000000; display: inline-block; }
.site-logo { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
}

.icon-hamburger { display: block; }

.nav-menu {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 48px;
  margin-left: auto;
}

.nav-menu a { color: var(--text); text-decoration: none; }
.nav-menu a:hover { color: var(--text); text-decoration: underline; }

.hero { padding: 16px 0; border-bottom: 1px solid var(--border); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.hero h1 { font-size: 24px; line-height: 1.2; margin: 0 0 10px 0; font-weight: 400; font-family: 'Vollkorn', serif; }

.hero-media { display: flex; justify-content: center; }

.hero-image-placeholder { width: 240px; height: 240px; border-radius: 4px; background: #ddd; border: 1px solid var(--border); }

.section { padding: 24px 0 4px; border-bottom: 1px solid var(--border); }

h2 { margin-top: 0; font-weight: 600; font-family: 'Vollkorn', serif; font-size: 1em; }
h3 { font-weight: 600; font-family: 'Vollkorn', serif; font-size: 1em; }

.news-list { margin-left: 0; padding-left: 2.2em; list-style-position: outside; list-style-type: disc; text-align: left; }
.news-list li > ul { margin-top: 6px; padding-left: 2.8em; list-style-position: outside; list-style-type: circle; }

/* Details/summary styling for Older updates */
details.older-updates {
  margin-top: 8px;
}

details.older-updates > summary {
  cursor: pointer;
  color: var(--accent);
  list-style: none;
  margin: 6px 0 10px;
  font-weight: 600;
  font-size: 1em;
  text-transform: none;
}

details.older-updates > summary:hover {
  text-decoration: underline;
}

/* Remove default triangle for consistent look across browsers */
details.older-updates > summary::-webkit-details-marker {
  display: none;
}



/* Details/summary styling for Bio section */
details.bio-section {
  margin-top: 8px;
}

details.bio-section > summary {
  cursor: pointer;
  color: var(--text);
  list-style: none;
  margin: 6px 0 10px;
  font-weight: 600;
  font-size: 1em;
  font-family: 'Vollkorn', serif;
  display: flex;
  align-items: center;
  gap: 2px;
}

details.bio-section > summary:hover {
  color: var(--accent);
}

/* Remove default triangle for consistent look across browsers */
details.bio-section > summary::-webkit-details-marker {
  display: none;
}

/* Custom plus symbol styling */
details.bio-section > summary::before {
  content: "➕";
  font-size: 0.6em;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
  margin-right: 2px;
  transform: translateY(1px);
}

/* Rotate plus to minus when expanded */
details.bio-section[open] > summary::before {
  transform: rotate(45deg);
}

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

.contact-list li,
.social-list li { margin: 8px 0; }

.social-list a,
.contact-list a { color: var(--accent); text-decoration: none; }

.social-list a:hover,
.contact-list a:hover { color: var(--text); text-decoration: underline; }

/* Bottom section layout to match reference */
.contact-follow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 10px;
}

.contact-col h2,
.follow-col h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* Make bottom links and icons smaller like reference */
#contact .social-list a,
#contact .contact-list a { font-size: 12px; }

#contact .icon { width: 14px; height: 14px; margin-right: 6px; }

#contact .social-list li,
#contact .contact-list li { margin: 6px 0; }

@media (max-width: 800px) {
  .contact-follow { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }
}

.site-footer { padding: 24px 0 48px; color: #828282; }

.icon { width: 16px; height: 16px; vertical-align: middle; margin-right: 6px; }

img.headshot { width: 99px; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 4px; display: block; margin: 0; }

/* Mobile profile photo spacing */
@media (max-width: 800px) {
  img.headshot {
    margin-top: -20px;
    margin-bottom: 15px;
  }
}

/* Intro block: text left, photo right aligned to top */
.intro { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: start; margin-bottom: 20px; }
.intro .headshot { align-self: start; margin-top: 0; }
.intro > div:first-child { margin-top: 12px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; column-gap: 12px; }
  .intro .headshot { justify-self: start; margin: 0 0 12px 0; width: 120px; max-width: 100%; order: 0; }
  .intro > div:first-child { margin-top: 0; }

  /* Make mobile header less cramped */
  .site-header { padding: 24px 0 36px; position: relative; z-index: 100; }
  .nav { padding: 8px 0 12px; position: relative; }
  .brand { flex: 1; }
  .intro > div:first-child { order: 1; }
  .site-title-text { font-size: 14px; line-height: 14px; }

  /* Extra spacing before the Recent news section on the homepage */
  .news-heading { margin-top: 24px; }
  
  .nav-toggle { 
    display: inline-block; 
    margin-left: auto; 
    margin-bottom: 4px; 
    font-size: 20px; 
    padding: 12px 18px; 
    border-radius: 12px; 
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    line-height: 1.4;
    z-index: 1000;
    min-width: 120px;
    pointer-events: auto;
    width: auto;
    max-width: 200px;
  }
  
  .nav-menu.show { display: block; }
  .nav-menu li { 
    list-style: none; 
    margin: 0; 
    position: relative;
    z-index: 1001;
  }
  .nav-menu a { 
    display: block; 
    padding: 10px 14px; 
    white-space: nowrap; 
    color: var(--text); 
    text-decoration: none; 
    cursor: pointer;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
  }
  .nav-menu a:hover { 
    color: var(--text); 
    text-decoration: underline; 
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Ensure menu items are properly clickable */
  .nav-menu li a {
    position: relative;
    z-index: 1003;
    pointer-events: auto;
    touch-action: manipulation;
  }
  
  /* Ensure main content doesn't interfere with mobile menu */
  .site-main {
    position: relative;
    z-index: 1;
  }
}

/* Header container now matches content container padding */



.news-list { margin-left: 0; padding-left: 0; list-style-position: outside; text-align: left; }
.news-list p { text-align: left; text-justify: auto; }
.news-list li > ul { margin-left: 18px; }

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

.contact-list li,
.social-list li {
  margin: 8px 0;
}

.social-list a,
.contact-list a { color: var(--accent); text-decoration: none; }

.social-list a:hover,
.contact-list a:hover { color: var(--text); text-decoration: underline; }

.site-footer { padding: 24px 0 48px; color: #828282; }

.icon { width: 16px; height: 16px; vertical-align: middle; margin-right: 6px; }

img.headshot { width: 192px; height: auto; border: 1px solid var(--border); border-radius: 4px; display: block; }


/* Force left alignment for all text inside Recent news lists */
.section .news-list,
.section .news-list li,
.section .news-list p { text-align: left; text-justify: auto; }

/* Final alignment: match reference bullets while keeping flush-left headings */
.section .news-list { margin-left: 0; padding-left: 2.2em; list-style-position: outside !important; list-style-type: disc; }
.section .news-list li { margin-left: 0; padding-left: 0; }

/* Allow normal indentation for lists in content; don't override padding generically */
.section ul:not(.contact-list):not(.social-list) {
  margin-left: 0;
  padding-left: 2.2em;
  list-style-position: outside;
}
.section ul:not(.contact-list):not(.social-list) li { margin-left: 0; }

/* Ensure Older updates bullets are solid discs at top level */
details.older-updates ul { list-style-type: disc !important; margin-left: 0; padding-left: 2.2em; list-style-position: outside; }
details.older-updates ul li { margin-left: 0; padding-left: 0; }
details.older-updates ul ul { list-style-type: circle !important; margin-left: 0; padding-left: 2.8em; list-style-position: outside; }

/* Indent nested lists (hollow bullets) under Recent news */
.section .news-list li > ul {
  margin-left: 0;
  padding-left: 2.8em;
  list-style-position: outside !important;
  list-style-type: circle;
}

/* Also cover nested lists rendered with paragraph wrappers */
.section .news-list ul,
.section .news-list li ul { 
  margin-left: 0; 
  padding-left: 2.8em; 
  list-style-position: outside; 
  list-style-type: circle;
}

/* Final unifying overrides: make Recent news and Older updates align exactly */
.section .news-list { padding-left: 2.2em !important; margin-left: 0 !important; list-style-type: disc !important; }
.section .news-list > li { margin-left: 0 !important; padding-left: 0 !important; }
details.older-updates ul.news-list { padding-left: 2.2em !important; margin-left: 0 !important; list-style-type: disc !important; }
details.older-updates ul.news-list li > ul { padding-left: 2.8em !important; }

/* Absolute final list alignment: apply to any .news-list anywhere */
.news-list { margin-left: 0 !important; padding-left: 2.2em !important; list-style-position: outside !important; list-style-type: disc !important; }
.news-list > li { margin-left: 0 !important; padding-left: 0 !important; }
.news-list li > ul { margin-left: 0 !important; padding-left: 2.8em !important; list-style-position: outside !important; list-style-type: circle !important; }

/* Consistent custom bullets to ensure exact alignment across sections */
.news-list { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }
.news-list > li { position: relative; padding-left: 1.4rem; }
.news-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.35rem;
  height: 0.35rem;
  background: currentColor;
  border-radius: 50%;
}

.news-list > li > ul { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.news-list > li > ul > li { position: relative; padding-left: 1.4rem; }
.news-list > li > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.35rem;
  height: 0.35rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

/* Mobile: keep title on a single line and size appropriately */
@media (max-width: 800px) {
  .site-title-text { 
    white-space: nowrap; 
    font-size: 20px; 
    line-height: 22px; 
  }
  .brand { flex: 0 1 auto; }
  
  .site-header {
    padding: 1px 0;
  }
  
  .nav {
    padding: 0px 0;
  }
  
  .site-header .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Cards and intro hero layout */
.card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 12px 0 16px;
}

/* Job market box styling */
.job-market-box {
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px 20px;
  margin: 16px 0 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  min-height: 60px;
}

.intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text image";
  column-gap: 20px;
  align-items: start;
}

.intro-hero .intro-copy { min-width: 0; grid-area: text; }
.intro-hero .headshot { grid-area: image; }

.intro-hero .headshot {
  width: 208px;
  max-width: 30.4vw;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.intro-hero .intro-copy h1 { margin-top: 0; margin-bottom: 8px; font-weight: 900; }

@media (max-width: 800px) {
  .intro-hero { grid-template-columns: 1fr; grid-template-areas: "image" "text"; }
  .intro-hero .headshot { width: 50%; max-width: 50%; justify-self: start; }
}

/* CV Page Styles */
.cv-container {
  width: 100%;
  height: calc(100vh - 200px); /* Full viewport height minus header/navigation space */
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cv-container object {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile responsive adjustments for CV */
@media (max-width: 800px) {
  .cv-container {
    height: calc(100vh - 150px);
    min-height: 500px;
    margin-top: 15px;
  }
}

