/* John A. Gemmer website — refined original layout
   This layer keeps the original page structures and resource links while
   standardizing typography, spacing, header color, and responsive behavior. */
:root {
  --wfu-black: #000000;
  --wfu-gold: #9a7b35;
  --wfu-gold-light: #b89a59;
  --text: #252525;
  --muted: #66615a;
  --paper: #ffffff;
  --page: #f3f2ef;
  --line: #dedad1;
  --soft: #f8f7f3;
  --content-width: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site-page {
  margin: 0 !important;
  background: var(--page) !important;
  color: var(--text) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 17px;
  line-height: 1.62;
}
body.site-page .container {
  width: min(94%, var(--content-width)) !important;
  max-width: var(--content-width) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: var(--paper) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  overflow: hidden;
}

/* ---------- One uniform black header on every page ---------- */
body.site-page header,
body.site-page .primary_header,
body.site-page .secondary_header {
  background: var(--wfu-black) !important;
  background-color: var(--wfu-black) !important;
  color: #ffffff !important;
  border: 0 !important;
}
body.site-page header {
  width: 100%;
  border-bottom: 3px solid var(--wfu-gold) !important;
}
body.site-page .primary_header {
  width: 100% !important;
  min-height: 78px;
  padding: 10px 28px 5px !important;
  display: flex !important;
  align-items: center;
  gap: 20px;
  clear: both !important;
}
body.site-page .primary_header img.floatLeft {
  float: none !important;
  display: block;
  width: auto !important;
  height: 55px !important;
  max-width: min(46vw, 400px) !important;
  margin: 0 !important;
  object-fit: contain;
}
body.site-page header .title,
body.site-page .primary_header .title,
body.site-page .primary_header h1,
body.site-page .primary_header h1.title {
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--wfu-gold-light) !important;
  background: transparent !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.65rem, 3vw, 2.15rem) !important;
  font-weight: 600 !important;
  letter-spacing: .025em !important;
  text-align: right !important;
}
body.site-page .secondary_header {
  width: 100% !important;
  padding: 0 18px 9px !important;
  clear: both !important;
}
body.site-page .secondary_header ul {
  width: 100% !important;
  max-width: 1000px;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  list-style: none !important;
}
body.site-page .secondary_header ul li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1rem !important;
  text-align: center;
}
body.site-page .secondary_header a,
body.site-page .secondary_header a:link,
body.site-page .secondary_header a:visited {
  display: block;
  padding: 10px 16px 9px;
  color: #f4f1ea !important;
  background: transparent !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
}
body.site-page .secondary_header a:hover,
body.site-page .secondary_header a:focus-visible,
body.site-page .secondary_header a[aria-current="page"] {
  color: #ffffff !important;
  background: #151515 !important;
  border-bottom-color: var(--wfu-gold-light);
}

/* ---------- Shared content styling ---------- */
body.site-page .left_article {
  background: var(--paper) !important;
  color: var(--text) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1rem;
  line-height: 1.68;
}
body.site-page .left_article p {
  color: var(--text) !important;
  line-height: 1.7 !important;
}
body.site-page .left_article h1,
body.site-page .left_article h2,
body.site-page .left_article h3,
body.site-page .left_article h4 {
  color: #24221f !important;
  font-family: Georgia, "Times New Roman", serif !important;
  line-height: 1.22;
}
body.site-page .left_article h2 {
  margin-top: 1.45em;
  margin-bottom: .55em;
  color: #6f551e !important;
  font-weight: 600;
}
body.site-page a,
body.site-page a:link,
body.site-page a:visited {
  color: #806326 !important;
  text-decoration: none;
}
body.site-page .left_article a:hover,
body.site-page .left_article a:focus-visible {
  color: #3f3115 !important;
  text-decoration: underline;
  text-underline-offset: .14em;
}
body.site-page hr {
  border: 0 !important;
  height: 1px !important;
  background: var(--line) !important;
  margin: 14px 0 20px !important;
}
body.site-page img { max-width: 100%; height: auto; }
body.site-page table { max-width: 100%; }
body.site-page td, body.site-page th { font-family: Georgia, "Times New Roman", serif !important; }

/* Force old inline black text to remain visible only in page content, never header. */
body.site-page .left_article font,
body.site-page .left_article span { background-color: transparent !important; }
body.site-page header font,
body.site-page header span { color: inherit !important; }

/* ---------- Home: original two-column composition ---------- */
body.site-page.home-page .container > section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  column-gap: clamp(28px, 4vw, 48px);
  row-gap: 14px;
  padding: clamp(34px, 5vw, 58px) clamp(28px, 5vw, 58px) 54px;
  align-items: start;
}
body.site-page.home-page .container > section > .noDisplay { display: none !important; }
body.site-page.home-page .left_article {
  float: none !important;
  width: auto !important;
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 0 !important;
  text-align: left;
}
body.site-page.home-page .left_article > br:first-child { display: none; }
body.site-page.home-page .left_article p {
  padding: 0 !important;
  margin: 1.15em 0 0 !important;
  text-align: left !important;
}
body.site-page.home-page .left_article font:first-of-type {
  display: inline-block;
  margin-bottom: 2px;
}
body.site-page.home-page .right_article {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text) !important;
}
body.site-page.home-page .right_article .placeholder {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  object-fit: cover;
}
body.site-page.home-page .right_article + .right_article { margin-top: 4px !important; }

/* ---------- Research: retain portrait/research image on the right ---------- */
body.site-page.research-page .left_article,
body.site-page.standard-page .left_article,
body.site-page.teaching-page .left_article,
body.site-page.course-page .left_article {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 32px clamp(28px, 5vw, 58px) 54px !important;
}
body.site-page.research-page .image img,
body.site-page.research-page img[align="right"].research-portrait {
  float: right !important;
  width: min(34%, 340px) !important;
  height: auto !important;
  margin: 2px 0 24px 36px !important;
  padding: 0 !important;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}
body.site-page.research-page .box {
  padding: 4px 0 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
body.site-page.research-page .box:last-child { border-bottom: 0; }
body.site-page.research-page .box img {
  border-radius: 3px;
}
body.site-page.research-page .box p { text-align: left !important; }
body.site-page.research-page .left_article::after,
body.site-page.course-page .left_article::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Teaching overview ---------- */
body.site-page.teaching-page .left_article table {
  width: 100% !important;
  border-collapse: collapse;
}
body.site-page.teaching-page .left_article td { padding: 6px 12px 8px 0; }
body.site-page.teaching-page .left_article table img {
  display: block;
  max-width: 350px;
  margin-left: auto;
  border-radius: 4px;
  box-shadow: 0 7px 18px rgba(0,0,0,.08);
}
body.site-page.teaching-page .left_article ul { line-height: 1.6; }

/* ---------- Course pages: preserve each course image on the right ---------- */
body.site-page.course-page .left_article {
  max-width: 1080px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}
body.site-page.course-page .left_article img[align="right"] {
  float: right !important;
  display: block;
  width: auto !important;
  max-width: min(38%, 380px) !important;
  height: auto !important;
  margin: 4px 0 22px 34px !important;
  padding: 0 !important;
  object-fit: contain;
}
body.site-page.course-page .left_article img[align="left"] {
  float: left !important;
  width: auto !important;
  max-width: min(38%, 360px) !important;
  height: auto !important;
  margin: 4px 30px 18px 0 !important;
}
body.site-page.course-page .left_article font[size="+3"] {
  line-height: 1.2;
}
body.site-page.course-page .left_article p { text-align: left !important; }
body.site-page.course-page .left_article a { overflow-wrap: anywhere; }

/* ---------- Publications/projects/other pages ---------- */
body.site-page.standard-page .left_article ol > li { margin-bottom: .75em; }
body.site-page.standard-page .left_article img[align="right"] {
  float: right;
  margin: 4px 0 22px 32px;
}

.noDisplay {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 820px) {
  body.site-page { font-size: 16px; }
  body.site-page .container { width: 100% !important; box-shadow: none; }
  body.site-page .primary_header {
    min-height: 0;
    padding: 12px 16px 7px !important;
    flex-direction: column;
    gap: 3px;
  }
  body.site-page .primary_header img.floatLeft {
    height: 47px !important;
    max-width: 88% !important;
  }
  body.site-page header .title,
  body.site-page .primary_header .title,
  body.site-page .primary_header h1.title { text-align: center !important; }
  body.site-page .secondary_header { padding: 0 0 7px !important; }
  body.site-page .secondary_header ul li { flex: 1 1 33.333%; }
  body.site-page .secondary_header a { padding: 9px 7px 8px !important; font-size: .94rem; }

  body.site-page.home-page .container > section {
    display: block;
    padding: 30px 22px 42px;
  }
  body.site-page.home-page .right_article { margin-top: 26px !important; }
  body.site-page.home-page .right_article .placeholder {
    width: min(100%, 430px) !important;
    margin: 0 auto !important;
  }

  body.site-page.research-page .left_article,
  body.site-page.standard-page .left_article,
  body.site-page.teaching-page .left_article,
  body.site-page.course-page .left_article { padding: 28px 22px 42px !important; }

  body.site-page.research-page .image img,
  body.site-page.course-page .left_article img[align="right"],
  body.site-page.course-page .left_article img[align="left"],
  body.site-page.standard-page .left_article img[align="right"] {
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: min(100%, 430px) !important;
    margin: 16px auto 24px !important;
  }

  body.site-page.teaching-page .left_article table,
  body.site-page.teaching-page .left_article tbody,
  body.site-page.teaching-page .left_article tr,
  body.site-page.teaching-page .left_article td {
    display: block;
    width: 100% !important;
  }
  body.site-page.teaching-page .left_article table img { margin: 18px auto 8px; }
}

@media (max-width: 520px) {
  body.site-page .secondary_header ul li { flex-basis: 50%; }
  body.site-page .secondary_header a { font-size: .9rem; }
}


/* ---------- Final consistency fixes ---------- */
/* The entire masthead is one continuous black banner. */
body.site-page header,
body.site-page .primary_header,
body.site-page .secondary_header,
body.site-page #menu {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* Legacy inline styles must never make masthead text disappear. */
body.site-page .primary_header,
body.site-page .primary_header p,
body.site-page .primary_header span,
body.site-page .primary_header font,
body.site-page .secondary_header,
body.site-page .secondary_header li,
body.site-page .secondary_header span,
body.site-page .secondary_header font {
  color: #ffffff !important;
}
body.site-page .primary_header h1.title,
body.site-page .primary_header .title {
  color: var(--wfu-gold-light) !important;
}
body.site-page .secondary_header a,
body.site-page .secondary_header a:link,
body.site-page .secondary_header a:visited {
  color: #f7f4ed !important;
}

/* Keep all legacy course artwork on the right on desktop, regardless of
   capitalization used in old ALIGN attributes. */
body.site-page.course-page .left_article img[align="right" i] {
  float: right !important;
  display: block !important;
  width: auto !important;
  max-width: min(38%, 380px) !important;
  height: auto !important;
  margin: 4px 0 22px 34px !important;
  object-fit: contain !important;
}

/* Homepage portrait and research slideshow share the right column, but the
   changing research images are contained in a fixed frame so differently
   shaped images never spill out or appear oversized. */
body.site-page.home-page .right_article {
  min-width: 0;
}
body.site-page.home-page .right_article .placeholder {
  max-width: 360px !important;
}
body.site-page.home-page #img2 {
  width: 100% !important;
  max-width: 360px !important;
  height: 225px !important;
  max-height: 225px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
}

@media (max-width: 820px) {
  body.site-page.course-page .left_article img[align="right" i] {
    float: none !important;
    max-width: min(100%, 430px) !important;
    margin: 16px auto 24px !important;
  }
  body.site-page.home-page #img2 {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    height: min(62vw, 260px) !important;
    max-height: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---------- Focused homepage and research-page refresh ---------- */
body.site-page.home-focused .home-main,
body.site-page.research-focused .research-main {
  padding: 0;
}

body.site-page .eyebrow {
  margin: 0 0 .45rem !important;
  color: var(--wfu-gold) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

body.site-page.home-focused .home-intro,
body.site-page.research-focused .research-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
  padding: clamp(44px, 6vw, 70px) clamp(30px, 6vw, 68px) 46px;
}

body.site-page.home-focused .home-copy h2,
body.site-page.research-focused .research-intro-copy h2 {
  margin: 0 0 .28rem;
  color: #222 !important;
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
}

body.site-page.home-focused .home-role {
  margin: 0 0 1.5rem;
  color: var(--muted) !important;
  font-size: 1.18rem;
}

body.site-page.home-focused .home-contact {
  margin: 1.4rem 0 1.65rem;
  padding: 1rem 1.15rem;
  background: var(--soft);
  border-left: 3px solid var(--wfu-gold);
}
body.site-page.home-focused .home-contact p {
  margin: 0 0 .7rem;
  line-height: 1.5;
}
body.site-page.home-focused .home-contact p:last-child { margin-bottom: 0; }

body.site-page.home-focused .home-summary p,
body.site-page.home-focused .home-about p,
body.site-page.research-focused .research-intro-copy p,
body.site-page.research-focused .research-project-copy p {
  margin: 0 0 1rem;
  color: var(--text) !important;
  line-height: 1.72;
}

body.site-page.home-focused .home-portrait,
body.site-page.research-focused .research-main-image {
  margin: 0;
}
body.site-page.home-focused .home-portrait img,
body.site-page.research-focused .research-main-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
body.site-page.home-focused .home-portrait img {
  max-height: 430px;
  object-fit: cover;
  object-position: center top;
}

body.site-page.home-focused .home-about {
  margin: 0 clamp(30px, 6vw, 68px) 60px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}
body.site-page.home-focused .home-about h2,
body.site-page.research-focused .section-heading h2 {
  margin: 0 0 1rem;
  color: #27241f !important;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem) !important;
  font-weight: 500;
}

body.site-page.research-focused .research-main-image img {
  max-height: 470px;
  object-fit: contain;
  background: #fff;
}

body.site-page.research-focused .research-presentations,
body.site-page.research-focused .research-projects {
  margin: 0 clamp(30px, 6vw, 68px);
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}
body.site-page.research-focused .research-presentations ol {
  margin: .5rem 0 2.8rem 1.35rem;
  padding: 0;
}
body.site-page.research-focused .research-presentations li {
  margin: 0 0 .72rem;
  padding-left: .2rem;
  line-height: 1.55;
}

body.site-page.research-focused .research-projects {
  padding-bottom: 60px;
}
body.site-page.research-focused .section-heading {
  margin-bottom: 1.35rem;
}
body.site-page.research-focused .research-project-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
  margin: 0 0 20px;
  padding: 24px;
  background: #fbfaf7;
  border: 1px solid #e4e0d7;
  border-radius: 5px;
}
body.site-page.research-focused .research-project-image img {
  display: block;
  width: 100%;
  height: 185px;
  margin: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
}
body.site-page.research-focused .research-project-copy h3 {
  margin: 0 0 .65rem;
  color: #6f551e !important;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}
body.site-page.research-focused .research-project-copy p:last-child { margin-bottom: 0; }
body.site-page.research-focused .linked-card .research-project-image a {
  display: block;
}
body.site-page.research-focused .linked-card .research-project-image a:hover img {
  opacity: .88;
}

@media (max-width: 820px) {
  body.site-page.home-focused .home-intro,
  body.site-page.research-focused .research-intro {
    display: flex;
    flex-direction: column;
    padding: 34px 22px 34px;
  }
  body.site-page.home-focused .home-portrait,
  body.site-page.research-focused .research-main-image {
    width: min(100%, 430px);
    margin: 0 auto;
    order: 2;
  }
  body.site-page.home-focused .home-about,
  body.site-page.research-focused .research-presentations,
  body.site-page.research-focused .research-projects {
    margin-left: 22px;
    margin-right: 22px;
  }
  body.site-page.research-focused .research-project-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  body.site-page.research-focused .research-project-image {
    width: min(100%, 420px);
  }
  body.site-page.research-focused .research-project-image img {
    height: auto;
    max-height: 240px;
  }
}

/* ---------- Live-page consistency refinement ---------- */
/* Gold navigation, matching the original site aesthetic. */
body.site-page .secondary_header a,
body.site-page .secondary_header a:link,
body.site-page .secondary_header a:visited {
  color: var(--wfu-gold-light) !important;
  font-weight: 600;
}
body.site-page .secondary_header a:hover,
body.site-page .secondary_header a:focus-visible,
body.site-page .secondary_header a[aria-current="page"] {
  color: #d8c28b !important;
  background: #111111 !important;
  border-bottom-color: #d8c28b !important;
}

/* Shared heading language: dark text on white, restrained gold rule. */
body.site-page .page-heading,
body.site-page .section-heading {
  margin: 0 0 1.35rem;
  padding: 0 0 .7rem;
  border-bottom: 2px solid var(--wfu-gold);
}
body.site-page .page-heading h2,
body.site-page .section-heading h2,
body.site-page.home-focused .home-copy h2,
body.site-page.home-focused .home-about h2,
body.site-page.research-focused .research-intro-copy h2,
body.site-page.research-focused .research-project-copy h3,
body.site-page.projects-page .left_article h2 {
  background: transparent !important;
  color: #24221f !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
body.site-page .page-heading h2,
body.site-page .section-heading h2 {
  margin: 0 !important;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem) !important;
  line-height: 1.18 !important;
}
body.site-page.projects-page .left_article > h2 {
  margin-top: 1.55rem !important;
  color: #6f551e !important;
  font-size: 1.35rem !important;
}

/* The main image remains on the right, but text is allowed to flow beneath it
   rather than being trapped forever in a narrow left grid column. */
body.site-page.home-focused .home-intro,
body.site-page.research-focused .research-intro {
  display: block !important;
  padding: clamp(42px, 5vw, 62px) clamp(30px, 5vw, 58px) 38px !important;
}
body.site-page.home-focused .home-intro::after,
body.site-page.research-focused .research-intro::after {
  content: "";
  display: table;
  clear: both;
}
body.site-page.home-focused .home-portrait,
body.site-page.research-focused .research-main-image {
  float: right !important;
  width: min(34%, 350px) !important;
  margin: 2px 0 24px clamp(28px, 4vw, 48px) !important;
}
body.site-page.home-focused .home-copy,
body.site-page.research-focused .research-intro-copy {
  display: block;
  width: auto !important;
}
body.site-page.home-focused .home-copy h2,
body.site-page.research-focused .research-intro-copy h2 {
  margin: 0 0 .4rem !important;
  font-size: clamp(2rem, 3.7vw, 2.8rem) !important;
  line-height: 1.1 !important;
}
body.site-page.home-focused .home-about {
  margin: 0 clamp(30px, 5vw, 58px) 58px !important;
  padding: 30px 0 0 !important;
}
body.site-page.home-focused .home-about h2 {
  margin: 0 0 1.2rem !important;
  padding: 0 0 .65rem !important;
  border-bottom: 2px solid var(--wfu-gold);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem) !important;
}

/* Research sections use the full content width. */
body.site-page.research-focused .research-presentations,
body.site-page.research-focused .research-projects {
  margin-left: clamp(30px, 5vw, 58px) !important;
  margin-right: clamp(30px, 5vw, 58px) !important;
}
body.site-page.research-focused .research-project-copy h3 {
  font-size: 1.32rem !important;
  border-left: 3px solid var(--wfu-gold);
  padding-left: .7rem;
}

/* Student Projects uses the same page/section heading treatment. */
body.site-page.projects-page .left_article {
  padding-top: 38px !important;
}
body.site-page.projects-page .page-heading {
  margin-bottom: 1.55rem;
}
body.site-page.projects-page .section-heading {
  margin-top: 2.3rem;
}
body.site-page.projects-page .left_article > br {
  display: none;
}

@media (max-width: 820px) {
  body.site-page.home-focused .home-intro,
  body.site-page.research-focused .research-intro {
    padding: 32px 22px 32px !important;
  }
  body.site-page.home-focused .home-portrait,
  body.site-page.research-focused .research-main-image {
    float: none !important;
    width: min(100%, 430px) !important;
    margin: 0 auto 28px !important;
  }
  body.site-page.home-focused .home-about,
  body.site-page.research-focused .research-presentations,
  body.site-page.research-focused .research-projects {
    margin-left: 22px !important;
    margin-right: 22px !important;
  }
}


/* ---------- Research visual mosaics and publication subpages ---------- */
body.site-page.research-focused .research-project-card {
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  align-items: stretch;
}
body.site-page.research-focused .research-project-image,
body.site-page.research-focused .research-figure-mosaic {
  min-height: 220px;
}
body.site-page.research-focused .research-project-image > img,
body.site-page.research-focused .research-project-image > a > img {
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  background: #fff;
}
body.site-page.research-focused .research-figure-mosaic {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  overflow: hidden;
  background: #eeeae2;
  border-radius: 4px;
}
body.site-page.research-focused .research-figure-mosaic a,
body.site-page.research-focused .research-figure-mosaic span { display: contents; }
body.site-page.research-focused .research-figure-mosaic img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  background: #fff;
  border-radius: 0 !important;
}
body.site-page.research-focused .research-figure-mosaic img:first-child {
  grid-row: 1 / span 2;
}
body.site-page.research-focused .research-figure-mosaic.two-up {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
body.site-page.research-focused .research-figure-mosaic.two-up img:first-child { grid-row: auto; }
body.site-page.research-focused .research-project-copy .project-links {
  margin-top: .8rem;
  font-size: .94rem;
}
body.site-page.research-focused .research-project-copy .project-links a {
  font-weight: 600;
}

body.site-page.research-detail .research-detail-main {
  padding: clamp(38px, 5vw, 58px) clamp(30px, 5vw, 58px) 64px;
}
body.site-page.research-detail .research-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(32px, 5vw, 58px);
  align-items: start;
  margin-bottom: 38px;
}
body.site-page.research-detail .research-detail-hero h2 {
  margin: 0 0 .8rem;
  color: #24221f !important;
  font-size: clamp(2rem, 3.6vw, 2.8rem) !important;
  line-height: 1.1;
}
body.site-page.research-detail .research-detail-hero p { line-height: 1.7; }
body.site-page.research-detail .detail-visual {
  padding: 10px;
  background: #fbfaf7;
  border: 1px solid #e4e0d7;
  border-radius: 5px;
}
body.site-page.research-detail .detail-visual img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #fff;
}
body.site-page.research-detail .detail-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
body.site-page.research-detail .detail-section h3 {
  margin: 0 0 .8rem;
  padding-left: .75rem;
  border-left: 3px solid var(--wfu-gold);
  color: #24221f !important;
  font-size: 1.45rem;
}
body.site-page.research-detail .detail-section p,
body.site-page.research-detail .detail-section li { line-height: 1.72; }
body.site-page.research-detail .publication-box {
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  background: var(--soft);
  border-left: 3px solid var(--wfu-gold);
}
body.site-page.research-detail .publication-box p { margin: .25rem 0; }
body.site-page.research-detail mjx-container[jax="CHTML"][display="true"] {
  margin: 1.1em 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
}
@media (max-width: 820px) {
  body.site-page.research-focused .research-project-card,
  body.site-page.research-detail .research-detail-hero { grid-template-columns: 1fr; }
  body.site-page.research-focused .research-figure-mosaic { min-height: 250px; }
}

/* ---------- Research subpage figure sizing ----------
   Keep floated figures modest on laptop/desktop displays so that the
   surrounding prose retains a comfortable measure. Figures stack on
   narrower screens, where horizontal space is at a premium. */
body.site-page.standard-page .left_article img[align="right" i],
body.site-page.standard-page .left_article img.subpage-float {
  float: right !important;
  width: auto !important;
  max-width: min(24%, 250px) !important;
  height: auto !important;
  margin: 6px 0 20px 28px !important;
  object-fit: contain !important;
}
body.site-page.standard-page .left_article .research-figure-centered {
  display: block !important;
  width: auto !important;
  max-width: min(100%, 720px) !important;
  height: auto !important;
  margin: 22px auto 28px !important;
}
body.site-page.standard-page .left_article .research-figure-wide {
  display: block !important;
  width: auto !important;
  max-width: min(100%, 820px) !important;
  height: auto !important;
  margin: 22px auto 28px !important;
}
@media (max-width: 1100px) and (min-width: 821px) {
  body.site-page.standard-page .left_article img[align="right" i],
  body.site-page.standard-page .left_article img.subpage-float {
    max-width: min(21%, 220px) !important;
    margin-left: 24px !important;
  }
}
@media (max-width: 820px) {
  body.site-page.standard-page .left_article img[align="right" i],
  body.site-page.standard-page .left_article img.subpage-float {
    float: none !important;
    display: block !important;
    max-width: min(100%, 430px) !important;
    margin: 18px auto 26px !important;
  }
}


/* Responsive multi-figure groups on research subpages. */
body.site-page.standard-page .research-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  margin: 24px auto 30px;
  max-width: 820px;
}
body.site-page.standard-page .research-figure-grid img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain;
}
@media (max-width: 700px) {
  body.site-page.standard-page .research-figure-grid { grid-template-columns: 1fr; max-width: 520px; }
}

body.site-page.standard-page .figure-note {
  max-width: 760px;
  margin: -14px auto 26px !important;
  color: var(--muted) !important;
  font-size: .94rem;
  text-align: center;
}

/* Compact square composition for the three SPORA network snapshots. */
body.site-page.standard-page .left_article .epidemic-network-triangle {
  max-width: min(100%, 520px) !important;
  margin: 20px auto 28px !important;
}
@media (max-width: 820px) {
  body.site-page.standard-page .left_article .epidemic-network-triangle { max-width: min(100%, 440px) !important; }
}

/* Standardized content pages: teaching, publications, and student projects */
body.site-page.teaching-page .page-heading,
body.site-page.publications-page .page-heading,
body.site-page.projects-page .page-heading {
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(145,116,54,.45);
}
body.site-page.teaching-page .page-heading h2,
body.site-page.publications-page .page-heading h2,
body.site-page.projects-page .page-heading h2 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  color: #1f1f1f;
}
body.site-page.teaching-page .page-heading .eyebrow,
body.site-page.publications-page .page-heading .eyebrow,
body.site-page.projects-page .page-heading .eyebrow {
  margin: 0 0 7px;
  color: #917436;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.site-page.teaching-page .section-heading,
body.site-page.projects-page .section-heading {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(145,116,54,.30);
}
body.site-page.publications-page .publication-intro { margin-bottom: 1.5rem; }
body.site-page.publications-page .publication-list { padding-left: 1.65rem; }
body.site-page.publications-page .publication-list li {
  margin: 0 0 1.05rem;
  padding-left: .25rem;
  line-height: 1.58;
}


/* ---------- September 2026 research-page image audit ----------
   Research figures should never force body text into a narrow newspaper
   column on ordinary laptop displays. Small portrait/square figures may
   float, but wide scientific plots are centered between paragraphs. */
body.site-page.standard-page .left_article img[align="right" i],
body.site-page.standard-page .left_article img.subpage-float {
  max-width: min(20%, 210px) !important;
  margin-left: 24px !important;
}
@media (max-width: 1100px) and (min-width: 821px) {
  body.site-page.standard-page .left_article img[align="right" i],
  body.site-page.standard-page .left_article img.subpage-float {
    max-width: min(18%, 185px) !important;
    margin-left: 20px !important;
  }
}
body.site-page.standard-page .left_article .research-figure-medium {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: min(100%, 560px) !important;
  height: auto !important;
  margin: 22px auto 28px !important;
}
body.site-page.standard-page .left_article .research-figure-compact {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: min(100%, 440px) !important;
  height: auto !important;
  margin: 22px auto 28px !important;
}
body.site-page.standard-page .left_article .research-figure-portrait {
  display: block !important;
  width: auto !important;
  max-width: min(100%, 390px) !important;
  height: auto !important;
  margin: 22px auto 28px !important;
}
body.site-page.standard-page .left_article .beam-primary-figure {
  max-width: min(100%, 520px) !important;
}
body.site-page.standard-page .left_article .selfsimilar-pattern-figure {
  max-width: min(100%, 390px) !important;
}

/* Teaching and student-project pages use the same typographic hierarchy as
   the refreshed Welcome, Research, and Publications pages. */
body.site-page.teaching-page .left_article,
body.site-page.projects-page .left_article,
body.site-page.publications-page .left_article {
  padding: 42px clamp(28px, 5vw, 58px) 58px !important;
}
body.site-page.teaching-page .page-heading,
body.site-page.projects-page .page-heading,
body.site-page.publications-page .page-heading {
  margin: 0 0 30px !important;
  padding: 0 0 15px !important;
  border-bottom: 2px solid var(--wfu-gold) !important;
}
body.site-page.teaching-page .page-heading h2,
body.site-page.projects-page .page-heading h2,
body.site-page.publications-page .page-heading h2 {
  margin: 0 !important;
  color: #24221f !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2rem, 3.7vw, 2.8rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
  line-height: 1.1 !important;
}
body.site-page.teaching-page .section-heading,
body.site-page.projects-page .section-heading {
  margin: 36px 0 18px !important;
  padding: 0 0 9px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(145,116,54,.5) !important;
}
body.site-page.teaching-page .section-heading h2,
body.site-page.projects-page .section-heading h2 {
  margin: 0 !important;
  color: #24221f !important;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem) !important;
  font-weight: 500 !important;
}
body.site-page.teaching-page .subsection-title,
body.site-page.projects-page .subsection-title {
  margin: 1.5rem 0 .55rem !important;
  color: #6f551e !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.22rem !important;
  font-weight: 600 !important;
}
body.site-page.teaching-page .current-course-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 145px;
  gap: clamp(22px,3vw,34px);
  align-items: start;
  margin-bottom: 30px;
}
body.site-page.teaching-page .current-course-layout img {
  display: block;
  width: 145px;
  max-width: 100%;
  height: auto;
  margin: 4px 0 0 auto;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
@media (max-width: 560px) {
  body.site-page.teaching-page .current-course-layout {
    grid-template-columns: minmax(0,1fr) 105px;
    gap: 18px;
  }
  body.site-page.teaching-page .current-course-layout img { width: 105px; }
}
@media (max-width: 400px) {
  body.site-page.teaching-page .current-course-layout { grid-template-columns: 1fr; }
  body.site-page.teaching-page .current-course-layout img {
    width: 130px;
    margin: 8px auto 0;
  }
}
@media (max-width: 820px) {
  body.site-page.teaching-page .left_article,
  body.site-page.projects-page .left_article,
  body.site-page.publications-page .left_article { padding: 32px 22px 46px !important; }
}
