/* blog post body */
.post-body {
  max-width: 680px;
  text-align: justify;
}

.post-body h1, .post-body h2, .post-body h3 {
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}

.post-meta {
  color: #777;
  font-size: 0.88em;
  margin-top: 0.2em;
  margin-bottom: 1.4em;
}

.post-body p {
  margin: 0.7em 0;
}

.post-body pre {
  background: #f4f4f4;
  padding: 0.8em 1em;
  overflow-x: auto;
  font-size: 0.88em;
  border-left: 3px solid #ccc;
}

.post-body code {
  font-size: 0.88em;
  background: #f4f4f4;
  padding: 1px 4px;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body blockquote {
  border-left: 3px solid #ccc;
  margin-left: 0;
  padding-left: 1em;
  color: #555;
  font-style: italic;
}

/* publication table */
table.pubs {
  width: 100%;
}

table.pubs td:first-child {
  white-space: nowrap;
  color: #666;
  font-size: 0.9em;
  min-width: 80px;
}

table.pubs td:nth-child(3) {
  font-style: italic;
  min-width: 120px;
}

/* updates box */
.news-box {
  background-color: #ECEDEE;
  padding: 0.8em 1em;
  margin-top: 0.5em;
}

#scrollbox {
  overflow-y: scroll;
  height: 200px;
  width: 100%;
}

#scrollbox::-webkit-scrollbar {
  width: 7px;
}

#scrollbox::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
}

ul.updates {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.updates li {
  padding: 5px 0;
  border-bottom: 1px solid #d8d9da;
  font-size: 0.93em;
}

ul.updates li:last-child {
  border-bottom: none;
}

ul.updates .date {
  color: #555;
  font-size: 0.88em;
  display: inline-block;
  min-width: 7em;
}

/* fun page widgets */
.widget-box {
  margin: 1em 0;
  padding: 0;
}

.widget-box img {
  max-width: 100%;
  display: block;
  border-radius: 4px;
}

.strava-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.6em 1em;
  text-decoration: none;
  color: #222;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.95em;
}

.strava-card:hover {
  border-color: #fc4c02;
  background: #fff7f5;
  color: #000;
}

.strava-card .strava-icon {
  color: #fc4c02;
  font-size: 1.2em;
  font-weight: bold;
}
