body {
  background-color: #fff;
  padding:50px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color:#595959;
  font-weight:400;
}

h1, h2, h3, h4, h5, h6 {
  color:#222;
  margin:0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin:0 0 0px;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:28px;
  font-weight: 500;
}

h2 {
  color:#393939;
  font-weight: 500;
}

h3, h4, h5, h6 {
  color:#494949;
  font-weight: 500;
}

a {
  color:#39c;
  text-decoration:none;
}

a:hover {
  color:#069;
}

a small {
  font-size:11px;
  color:#777;
  margin-top:-0.3em;
  display:block;
}

a:hover small {
  color:#777;
}

.wrapper {
  width:860px;
  margin:0 auto;
}


blockquote {
  border-left:1px solid #e5e5e5;
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color:#333;
}

pre {
  padding:8px 15px;
  background: #f8f8f8;
  border-radius:5px;
  border:1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:left;
  padding:5px 10px;
  border-bottom:1px solid #e5e5e5;
}

dt {
  color:#444;
  font-weight:500;
}

th {
  color:#444;
}

img {
  max-width:100%;
}

header {
  width:270px;
  float:left;
  position:fixed;
  -webkit-font-smoothing:subpixel-antialiased;
}

header ul {
  list-style:none;
  height:40px;
  padding:0;
  background: #f4f4f4;
  border-radius:5px;
  border:1px solid #e0e0e0;
  width:270px;
}

header li {
  width:89px;
  float:left;
  border-right:1px solid #e0e0e0;
  height:40px;
}

header li:first-child a {
  border-radius:5px 0 0 5px;
}

header li:last-child a {
  border-radius:0 5px 5px 0;
}

header ul a {
  line-height:1;
  font-size:11px;
  color:#999;
  display:block;
  text-align:center;
  padding-top:6px;
  height:34px;
}

header ul a:hover {
  color:#999;
}

header ul a:active {
  background-color:#f0f0f0;
}

strong {
  color:#222;
  font-weight:500;
}

header ul li + li + li {
  border-right:none;
  width:89px;
}

header ul a strong {
  font-size:14px;
  display:block;
  color:#222;
}

section {
  width:600px;
  float:right;
  padding-bottom:50px;
}

small {
  font-size:11px;
}

hr {
  border:0;
  background:#e5e5e5;
  height:1px;
  margin:0 0 20px;
}

footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
  -webkit-font-smoothing:subpixel-antialiased;
}

@media print, screen and (max-width: 960px) {

  div.wrapper {
    width:auto;
    margin:0;
  }

  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }

  header {
    padding-right:320px;
  }

  section {
    border:1px solid #e5e5e5;
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
  }

  header a small {
    display:inline;
  }

  header ul {
    position:absolute;
    right:50px;
    top:52px;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap:break-word;
  }

  header {
    padding:0;
  }

  header ul, header p.view {
    position:static;
  }

  pre, code {
    word-wrap:normal;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding:15px;
  }

  header ul {
    width:99%;
  }

  header li, header ul li + li + li {
    width:33%;
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }
}




/* TAB */


body {font-family: "Lato", sans-serif;}

ul.tab {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: none;
}

/* Float the list items side by side */
ul.tab li {float: left;}

/* Style the links inside the list items */
ul.tab li a {
    display: inline-block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}

/* Change background color of links on hover */
ul.tab li a:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
ul.tab li a:focus, .active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    -webkit-animation: fadeEffect 1s;
    animation: fadeEffect 1s;
}

@-webkit-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}


.highlight-announcement {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 900px;
  /* font-size: 1.1rem; */
  box-shadow: 0 2px 8px rgba(255, 229, 143, 0.15);
} 

/* ---- additions for Xian Li's site (not in the upstream minimal theme) ---- */

.me-pic {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 1.2rem auto;
  border-radius: 8px;
}

/* research page: project cards (figure on top, or beside the text for .project-side) */
.project {
  margin: 0 0 1.3rem 0;
  padding: 14px 16px 12px 16px;
  background: #fafbfc;
  border: 1px solid #e8ecef;
  border-radius: 8px;
}
.project .project-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f3a52;
  padding-bottom: 6px;
  border-bottom: 1px solid #e3e8ec;
}
.project-figure {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 10px auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-align: center;
}
.project-figure img {
  display: inline-block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
}
.project-figure figcaption {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
  text-align: center;
}
.project .project-text { font-size: 14px; line-height: 1.55; }
.project-links { margin-top: 8px; }
.project-links a {
  display: inline-block;
  font-size: 13px;
  padding: 3px 11px;
  margin: 4px 6px 0 0;
  color: #1f5f8b;
  background: #eef5fa;
  border: 1px solid #cfe0ec;
  border-radius: 14px;
  text-decoration: none;
}
.project-links a:hover { background: #dcebf5; color: #0f3f61; }
/* figure beside the text (portrait figures and icons) */
.project-side {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-column-gap: 16px;
  column-gap: 16px;
  align-items: center;
}
.project-side .project-title { grid-column: 1 / -1; }
.project-side .project-figure { margin-bottom: 0; width: auto; }
.project-side .project-figure-tall img { max-height: none; width: 100%; }
.project-side .project-figure-small { padding: 12px; }
.project-side .project-figure-small img { width: 100%; border-radius: 50%; }
@media print, screen and (max-width: 720px) {
  .project-side { display: block; }
  .project-side .project-figure { margin-bottom: 14px; }
  .project-side .project-figure-tall img { max-width: 70%; }
  .project-side .project-figure-small img { max-width: 160px; }
}

.news-date { color: #999; }

.demo-frame {
  width: 100%;
  height: 560px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}
section h4 { margin-top: 1.25rem; }
.project h4 { margin-top: 0; }

/* news hashtags and filter sub-tabs (Home page) */
.news-filters { display: inline-block; margin-left: 8px; }
.news-filter {
  display: inline-block;
  font-size: 12px;
  color: #666;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2px 9px;
  margin: 2px 2px 2px 0;
}
.news-filter:hover { color: #222; background: #eaeaea; }
.news-filter.active { color: #fff; background: #39c; border-color: #39c; }
.news-list { margin-top: 8px; }
.news-item { margin-bottom: 6px; }
.hashtag { font-size: 12px; color: #999; margin-left: 4px; white-space: nowrap; }
.hashtag:hover { color: #39c; }

/* demo restart toolbar */
.demo-toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px 0; }
.demo-restart { font: inherit; font-size: 14px; padding: 5px 12px; border: 1px solid #c9d3dc; border-radius: 4px;
  background: #f4f7f9; color: #1f3a52; cursor: pointer; }
.demo-restart:hover { background: #e6edf2; }
.demo-toolbar-hint { font-size: 13px; color: #888; }
/* research page: branches of the research program */
.branch { margin-top: 1.6rem; padding-top: 0.5rem; border-top: 1px solid #e5e5e5; }
.branch h3 { margin-bottom: 0.25rem; }
.branch .branch-lead { color: #555; margin-bottom: 0.7rem; }
.earlier li { margin-bottom: 0.4rem; }
/* home page: lede question and findings list */
.lede { font-size: 17px; font-weight: 600; color: #1f3a52; line-height: 1.4; margin-bottom: 0.6rem; }
ul.highlights { margin: 0.4rem 0 0 0; padding-left: 1.1rem; }
ul.highlights li { margin-bottom: 0.55rem; line-height: 1.5; }
/* compact lists and leads used on the Teaching and Demo pages */
.page-lead { color: #444; margin-bottom: 0.9rem; }
ul.compact { margin: 0; padding-left: 1.1rem; }
ul.compact li { margin-bottom: 4px; line-height: 1.5; }
ul.compact .when { color: #888; font-size: 13px; margin-right: 6px; white-space: nowrap; }
.project ul.compact { font-size: 14px; }
.demo-note { margin: 10px 0 0 0; font-size: 14px; color: #333; }

/* small app icon inline in a project title (narRaters card) */
.project-title .tool-icon { width: 28px; height: 28px; vertical-align: -7px; margin-right: 6px; border-radius: 6px; }
.project .project-text code { font-size: 12.5px; }
.news-more { display: inline-block; margin-top: 6px; font-size: 13px; }

/* sidebar icon links: two columns */
header p.icon-links { display: grid; grid-template-columns: repeat(2, 40px); gap: 12px 16px; margin: 0; }
header p.icon-links a { display: block; line-height: 0; }
header p.icon-links img { width: 40px; height: 40px; object-fit: contain; display: block; }
@media print, screen and (max-width: 720px) { header p.icon-links { grid-template-columns: repeat(4, 40px); } }

/* Home: photo on the left, key questions and quick links on the right (layout idea from gabrielkp.com) */
.hero { display: grid; grid-template-columns: 200px 1fr; column-gap: 26px; align-items: center;
        margin: 0 0 1.4rem 0; padding-bottom: 1.3rem; border-bottom: 1px solid #e5e5e5; }
.hero-pic { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; display: block; }
.hero-text p { margin: 0; }
.hero-question { font-size: 21px; line-height: 1.3; font-weight: 600; color: #1f3b5c; }
.hero-text p.hero-role { margin-top: 5px; font-size: 13.5px; color: #777; }
ul.hero-questions { list-style: none; margin: 12px 0 0 0; padding: 0; }
ul.hero-questions li { margin: 0 0 5px 0; padding-left: 12px; border-left: 3px solid #d5dee8; font-size: 14px; line-height: 1.4; }
ul.hero-questions li a { color: #444; font-weight: 400; }
ul.hero-questions li a b { color: #1f3b5c; }
ul.hero-questions li a:hover { color: #069; }
.hero-text p.hero-links { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px 6px; }
.hero-links a { font-size: 12.5px; padding: 3px 10px; border: 1px solid #cfdbe8; border-radius: 999px; background: #f2f6fa; color: #1f3b5c; font-weight: 400; white-space: nowrap; }
.hero-links a:hover { background: #e3edf6; color: #069; }
@media print, screen and (max-width: 720px) {
  .hero { grid-template-columns: 1fr; row-gap: 14px; justify-items: center; }
  .hero-text { width: 100%; }
}
