/* general body properties */

body {
    /* This defaults to Helvetica Neue if the viewer has it installed (e.g., Macs)
       and use a lighter font weight. If they don't have it, we use a decent font from Google Web Fonts. */

    /* Warning: if you want alternate font weights, you need to go back to Google Web Fonts and include them in the collection that gets included via <link> */
    font-weight: 300;
    font-family: 'Helvetica Neue', 'Source Sans Pro', 'Open Sans',Helvetica,Arial,sans-serif;
    font-size: 16px;
}

a,a:hover {
    color: #990615;
}

p {
    margin: 0 0 1em;
}

h5 {
  font-size: 16px;
  font-weight: 300;
}

.label-msb {
    background-color: #990615;
}

/* bootstrap properties */

#msbnav {
  background-color: #7D0612;
  background-image: none;
  background-repeat: no-repeat;
  filter: none;
  border-color: #777777;
}

#msbnav .navbar-brand {
    color: #DCDCDC;
    font-size: 2.5em;
    font-family:"Oswald",'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    margin-left: -15px;
}

#msbnav .navbar-brand a {
    color: #DCDCDC;
}

#msbnav .navbar-brand a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.navbar-brand,.navbar-nav li a {
    line-height: 1.5em;
    height: 1.5em;
    padding-top: 0;
}

.sidenav {
  margin-top: 20px;
}

/* Adapted from the Bootstrap docs for sidebar navigation + scrollspy */
.sidenav .nav > li > a {
  display: block;
  padding: 2px 20px;      /* compact: 23 entries (CV + 22 years) fit a laptop viewport when pinned */
  font-size: 14px;
}
.sidenav.affix {
  max-height: calc(100vh - 101px);   /* pinned 81px below the top; scroll inside if the viewport is shorter still */
  overflow-y: auto;
}
.sidenav .nav > li > a:hover,
.sidenav .nav > li > a:focus {
  text-decoration: none;
  background-color: #e5e3e9;
  border-right: 1px solid #990615;
}
.sidenav .nav > .active > a,
.sidenav .nav > .active:hover > a,
.sidenav .nav > .active:focus > a {
  font-weight: bold;
  background-color: transparent;
  border-right: 1px solid #990615;
}

/* Nav: second level */
.sidenav .nav .nav {
    margin-bottom: 8px;
}

.sidenav .nav .nav > li > a {
  padding-top:    3px;
  padding-bottom: 3px;
  padding-left: 30px;
  font-size: 90%;
}

@media(max-width:1000px){
  .sidenav.affix {
    position: static;
    width: auto;
    top: 0;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 991px) {
  /* Publications page only (.sidenav-years): the year navigation sits above the list here, so lay it out as a wrapping row of chips
     instead of a 23-line column. Scrollspy's active state is not visible at the top of the
     page, so the right-border indicator is dropped. */
  .sidenav-years { margin-top: 1em; }
  .sidenav-years .nav { display: flex; flex-wrap: wrap; }
  .sidenav-years .nav > li { float: none; }
  .sidenav-years .nav > li + li { margin-top: 0; }
  .sidenav-years .nav > li:first-child { flex-basis: 100%; }      /* the CV link keeps its own line */
  .sidenav-years .nav > li > a { padding: 3px 10px; }
  .sidenav-years .nav > .active > a,
  .sidenav-years .nav > .active:hover > a,
  .sidenav-years .nav > .active:focus > a,
  .sidenav-years .nav > li > a:hover,
  .sidenav-years .nav > li > a:focus { border-right: 0; }
}

.nav-list > .active > a,
.nav-list > .active > a:hover {
  background-color: #7D0612;
}



.text-success {
    font-variant:small-caps;
}

.label {
    font-weight: normal;
}

.paperimage {
    /*border: 1px solid #787878;*/
    width: 100%;
    overflow: hidden;
}

.papers .old {
    display: none;
}

.papers .paper-row {
    margin-bottom: 2em;
    vertical-align: top;
    padding-left: 0px;
}

h5.title {
  margin-top: 0px;
}

.vital-info {
    margin-top: 1em;
}

.vital-info h5 {
    margin-bottom: 0;
}

.olddate, .olddate a {
    color: #AAAAAA;
}

.bio {
    margin-top: 15px;
}

.btn-link {
    padding: 2em 0px 2em 0px;
    color: #990615;
    font-weight: 300;
}

.past-course {
    display: none;
}

.award {
 /* more in label-msb */
 margin: 0 8px 0 8px;
 display: inline-block;   /* long badges move to their own line and wrap inside the badge instead of overflowing */
 white-space: normal;
 line-height: 1.2;
 text-align: left;
}

.publication-files {
  margin-top: 10px;
}

.coauthor {
  /*white-space: nowrap;*/
}

.groupmoji {
  height: 1.5em;
  width: 1.5em;
  margin-right: 4px;
  object-fit: cover;
  filter: grayscale(70%);
}

.highlight {
  margin-bottom: 20px;
}

/* In author lists, avatars must not change the line height: shrink their layout box
   (negative vertical margins) so it fits inside the line, and center them on the text.
   The sidebar people lists are excluded on purpose; their row spacing comes from the avatar. */
.papers .groupmoji {
  vertical-align: middle;
  margin-top: -4px;
  margin-bottom: -4px;
}

/* Everything under the title (authors, venue, links) shares one slightly larger leading,
   so avatars on consecutive lines have a few pixels between them and the venue line
   sits on the same rhythm as the author lines. */
.papers .title ~ div {
  line-height: 1.7;
}

.nowrap {
  white-space: nowrap;
}


/* ---------------------------------------------------------------------------
   Added 2026-09-18: heading hierarchy and home-page layout
   --------------------------------------------------------------------------- */

/* h1 = the name in the nav bar (visual style comes from .navbar-brand above) */
#msbnav h1.navbar-brand { margin-top: 0; margin-bottom: 0; }

/* h2 = page sections (Bio, Publications)
   h3 = sidebar sections (Teaching, Ph.D. students, ...)
   h4 = year sub-heads under Teaching (inside .past-course) */
h2.section-heading, .vital-info h3 {
    font-family: "Oswald", 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
h2.section-heading { font-size: 20px; color: #333; margin: 1.6em 0 0.6em; }   /* 32px above, 12px below */
.col-md-9 > h2.section-heading:first-child { margin-top: 20px; }   /* publications page: level with the side nav */
.vital-info h3 { font-size: 13px; color: #777; margin: 0 0 0.4em; }
.vital-info > h3:not(:first-child) { margin-top: 2em; }   /* e.g. "Postdoc alumni" after the Ph.D. alumni list */
.past-course h4 { font-size: 15px; font-weight: 300; color: #888; margin: 1.2em 0 0.15em; }

/* room between the nav bar and the first content (nav already has 20px below it) */
#main-row { margin-top: 0.75em; }   /* 32px total below the nav bar */

/* "Previous courses" is a button (no navigation, no page jump), styled as a link */
button.more-courses { padding: 0; border: 0; background: none; color: #990615; cursor: pointer; }
button.more-courses:hover, button.more-courses:focus { text-decoration: underline; }

/* Phones and tablets: photo + contact card first, then Research/Bio/Publications,
   then the rest of the sidebar (office hours, teaching, people) with a divider */
@media (max-width: 991px) {
    #main-row { display: flex; flex-direction: column; }
    #main-row > .col-md-3 { display: contents; }
    #main-row .sidebar-top, #main-row .sidebar-bottom { padding-left: 15px; padding-right: 15px; }
    #main-row .sidebar-top { order: -1; margin-bottom: 1.25em; }
    #main-row .sidebar-bottom { margin-top: 1em; border-top: 1px solid #ddd; padding-top: 0.75em; }   /* + the first block's 1em margin = 28px, matching the 27px above the rule */
    #main-row .sidebar-bottom > hr:first-child { display: none; }
}

/* Prose pages (.faq, .guide): one heading voice for the whole site (Oswald, uppercase),
   with hierarchy carried by size and color: h2 sections 26px dark, h3 subsections 17px gray.
   (Sidebar labels on the home page are the same voice at 13px.) */
.faq h2, .guide h2, .faq h3, .guide h3 {
    font-family: "Oswald", 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
}
.faq h2, .guide h2 { font-size: 26px; letter-spacing: 0.06em; color: #333; margin: 1.5em 0 0.5em; }
.faq h3, .guide h3 { font-size: 17px; letter-spacing: 0.08em; color: #555; margin: 1.75em 0 0.5em; }
.faq > .sidenav-anchor:first-child > h2:first-child,
.guide > h2:first-child { margin-top: 20px; }   /* level with the side nav */

/* Getting Started: the readiness form */
.guide .checkbox { margin-top: 0; margin-bottom: 8px; }
.guide .checkbox label { font-weight: 300; }          /* statements read as text, not as bold labels */
.guide .form-group > label { font-weight: 500; }
.guide #readybtn { white-space: normal; }             /* the long button caption wraps instead of overflowing */
@media (max-width: 767px) { .guide #readybtn { width: 100%; } }

/* Phones: thumbnail and title share the first row; authors, venue, and links start a
   full-width row below. The text column dissolves (display: contents) so its children
   become grid items directly. */
@media (max-width: 767px) {
    .papers .paper-row:not(.old) { display: grid; grid-template-columns: 88px 1fr; column-gap: 12px; align-items: center; padding: 0 15px; margin-bottom: 1.5em; }
    .papers .paper-row:before, .papers .paper-row:after { display: none; }   /* Bootstrap's clearfix would become grid items */
    .papers .paper-row > .col-xs-4 { float: none; width: auto; min-height: 0; padding: 0; }
    .papers .paper-row > .col-xs-8 { display: contents; }
    .papers .paper-row .paperimage { width: auto; max-width: 88px; max-height: 72px; }
    .papers .paper-row > .col-xs-8 > div:not(.title) { grid-column: 1 / -1; }
    .papers .paper-row .title + div { margin-top: 6px; }              /* a little air under the thumbnail row */
    .papers .paper-row .publication-files { margin-top: 0; }          /* links sit on the same rhythm as the venue line */
    .papers .paper-row .publication-files:empty { display: none; }
    .papers + a.btn-link { padding: 0.25em 0 0.75em; }               /* "More publications" keeps the list's 24-28px seams */
}
