
body {
  font-family: Georgia, "Times New Roman", serif;
  color: #222;
  padding-bottom: 2rem;
}

.navbar {
  border-bottom: 1px solid #ddd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}
.navbar-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  font-size: 1.15rem;
  color: #333 !important;
}
.nav-link {
  color: #527bbd !important;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
}
.nav-link:hover {
  color: #224b8d !important;
}
.nav-link.active {
  color: #022b6d !important;
  font-weight: 600;
  border-bottom: 2px solid #527bbd;
}

h1, h2, h3 {
  color: #527bbd;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #aaa;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}
h1 { font-size: 1.65em; }
h2 { font-size: 1.25em; }
h3 { font-size: 1.1em; border-bottom: none; }
h1.no-border, h2.no-border, h3.no-border { border-bottom: none; }

.profile-section + h2 { margin-top: 1em; }

a { color: #224b8d; text-decoration: none; }
a:hover { text-decoration: underline; }

p { line-height: 1.45; margin-bottom: 0.8em; }

.profile-img {
  width: 100%;
  border-radius: 4px;
}

img.iconlabel {
  vertical-align: middle;
  height: 16px;
  padding-right: 4px;
}

img.icon, img.pubicon {
  vertical-align: middle;
  height: 18px;
}
img.pubicon {
  padding-left: 2px;
  padding-right: 2px;
}

div.blocktitle {
  font-weight: bold;
  color: #527bbd;
  margin-top: 1.2em;
  margin-bottom: 0.3em;
}

div.blockcontent {
  border: 1px solid silver;
  padding: 0.3em 0.5em;
}

div.codeblock, div.infoblock {
  margin-top: 1.2em;
  margin-bottom: 1.3em;
  max-width: 1000px;
}

div.infoblock > div.blockcontent {
  background: #ffffee;
}

div.infoblock p {
  margin-bottom: 0;
  text-align: justify;
}

div.infoblock p + p {
  margin-top: 0.8em;
}

div.codeblock > div.blockcontent {
  background: #f6f6f6;
}

span.button {
  color: white;
  border-radius: 0.25rem;
  font-size: 70%;
  font-weight: 800;
  margin-right: 3px;
}
span.button-1 {
  background-color: purple;
  padding: .25em .4em;
}
span.button-2 {
  background-color: seagreen;
  padding: .25em .4em;
}
span.button-talk {
  background-color: seagreen;
  padding: .1em .4em;
  margin-left: .5em;
}

.smallcaps {
  font-variant: small-caps;
}

.talk-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1.5rem;
}
.talk-card {
  background: #fff;
  border: 1px solid #dde3ec;
  border-left: 4px solid #527bbd;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-sizing: border-box;
}
.talk-card-title {
  font-weight: bold;
  color: #333;
  font-size: 1.0rem;
  margin-bottom: 0.5em;
}
.talk-venues {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.talk-venue-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  line-height: 1.5;
}
.talk-venue-info {
  flex: 1;
  min-width: 0;
}
.talk-venue-name {
  margin-right: 0.5em;
}
.talk-meta {
  color: #888;
  font-size: 0.85em;
}
.talk-sep {
  color: #aaa;
  margin: 0 0.1em;
}
.talk-icons {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.talk-icons a {
  display: inline-flex;
  padding: 2px;
  border-radius: 4px;
  text-decoration: none;
  border-bottom: none;
  transition: background-color 0.15s;
}
.talk-icons a:hover {
  background-color: #d4edda;
  text-decoration: none;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1.5rem;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin-bottom: 1.5rem;
}
.course-grid .course-card {
  border-left: 1px solid #dde3ec;
}
@media (max-width: 600px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}
.course-card {
  background: #fff;
  border: 1px solid #dde3ec;
  border-left: 4px solid #527bbd;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-sizing: border-box;
}
.course-title {
  font-weight: bold;
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}
.course-desc {
  color: #444;
  line-height: 1.5;
  margin-bottom: 0.6em;
}
.semester-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.3em;
}
a.semester-btn {
  display: inline-block;
  padding: 0.3em 0.8em;
  border: 1px solid #527bbd;
  border-radius: 4px;
  background: #fff;
  color: #527bbd;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
}
a.semester-btn:hover {
  background: #527bbd;
  color: #fff;
  text-decoration: none;
}
a.semester-btn[data-role]::after {
  content: attr(data-role);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.3em;
  padding: 0.25em 0.6em;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: normal;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
a.semester-btn[data-role]:hover::after {
  opacity: 1;
}
.semester-btn-inactive {
  display: inline-block;
  padding: 0.3em 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f6f6f6;
  color: #999;
  font-size: 0.85rem;
  font-weight: bold;
}

span.award {
  color: #0080ff;
}

.content-wrapper {
  max-width: 860px;
  margin-top: 1.5rem;
}

.navbar-wrapper {
  max-width: 1250px;
}
