p {
  line-height: 1.4;
}

a {
  border-bottom: dotted currentColor;
}

h3 {
  margin-top: 2em !important;
}

/* for the images in utm */
.image-container {
  text-align: center;
}

/* For charts in project write-ups */
  .chart-caption {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 0.25rem;
    margin-bottom: 2rem; /* optional: space before next content */
  }
    html.day .chart-caption {
      color: #555; }
    html.night .chart-caption {
      color: #bbb; }

  .chart-container {
    display: block;
    width: 100%;
    max-width: 650px;
    margin: 2rem auto 0.5rem;
    min-height: 400px;
    max-height: 500px;
    position: relative;
  }

  canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }

.article-link:hover {
  text-decoration: underline dotted;
}

.article-link:hover .full-underline {
  text-decoration: underline;
}

/* For tables */
  .data-table {
    width: 80%;
    max-width: 700px;
    border-collapse: collapse;
    margin: 2rem auto;
    font-size: 0.95rem;
  }

  .data-table caption {
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .data-table th,
  .data-table td {
    border: 1px solid currentColor;
    padding: 0.5rem 0.75rem;
    text-align: left;
  }

  .data-table thead {
    background-color: rgba(0, 0, 0, 0.05);
  }

  html.night .data-table thead {
    background-color: rgba(255, 255, 255, 0.1);
  }
