/* Plain, tabbed layout used by the Home and Bio pages. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a { color: #337ab7; text-decoration: none; }
a:hover { color: #23527c; text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header.container { padding-top: 20px; padding-bottom: 20px; }

.header-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 30px;
}

.site-name {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #222;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #ddd;
  flex: 1 1 auto;
}
.nav-tabs li { margin-bottom: -1px; }
.nav-tabs li a {
  display: block;
  padding: 10px 15px;
  margin-right: 2px;
  line-height: 1.4;
  color: #337ab7;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}
.nav-tabs li a:hover {
  background: #eee;
  border-color: #eee #eee #ddd;
  text-decoration: none;
}
.nav-tabs li.active a,
.nav-tabs li.active a:hover {
  color: #555;
  background: #fff;
  border-color: #ddd #ddd transparent;
  cursor: default;
}

.social a { margin-left: 12px; font-size: 14px; display: inline-block; vertical-align: middle; line-height: 0; }
.social svg { display: block; }

/* Content */
section.container { padding-top: 10px; padding-bottom: 20px; }

.cols {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.col-main { flex: 3 1 0; min-width: 0; }
.col-side { flex: 1 1 0; min-width: 200px; }
.col-side img { display: block; width: 100%; margin-bottom: 15px; }
.col-side h4 { font-size: 16px; font-weight: 400; margin: 10px 0; }

h2 { font-size: 28px; font-weight: 400; margin: 30px 0 15px; }
h4 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
h5 { font-size: 15px; font-weight: 400; margin: 0 0 6px; color: #555; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 40px; }

/* Bio rows: logo on the left, text on the right */
.entry {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}
.entry .logo {
  flex: 0 0 28%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.entry .logo img { max-height: 60px; width: auto; max-width: 220px; }
.entry .text { flex: 1 1 0; min-width: 0; }
.entry .text p { margin-bottom: 0; }

footer.container {
  font-size: 12px;
  padding-top: 20px;
  padding-bottom: 30px;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-row p { margin: 0; }

/* List pages (Publications, Talks, Teaching, Projects) */
h3 { font-size: 22px; font-weight: 400; margin: 25px 0 12px; }
ol.items, ul.items { padding-left: 40px; }
ol.items li, ul.items li { margin-bottom: 14px; }
.items .meta { color: #666; font-size: 14px; }
.items .desc p { margin: 4px 0 0; }
.empty { color: #666; }

@media (max-width: 768px) {
  .cols { flex-direction: column; }
  .col-side { width: 100%; max-width: 280px; }
  .entry { flex-direction: column; align-items: flex-start; gap: 8px; }
  .entry .logo { justify-content: flex-start; }
  .social { margin-left: 0; }
}

