/*
 * Formatting for editor-written content: blog posts (.blog-contain), CMS pages (.cms-content) and project text.
 * The site reset (bulma) removes table borders, cell padding, list bullets and paragraph and heading spacing,
 * so text written in the admin ran together. These rules restore normal reading spacing.
 */
.blog-contain p,
.cms-content p {
  margin: 0 0 16px;
}

.blog-contain h2,
.cms-content h2 {
  margin: 32px 0 12px;
}

.blog-contain h3,
.cms-content h3 {
  margin: 24px 0 8px;
}

.blog-contain ul,
.cms-content ul {
  list-style: disc;
  padding-left: 26px;
  margin: 0 0 16px;
}

.blog-contain ol,
.cms-content ol {
  list-style: decimal;
  padding-left: 26px;
  margin: 0 0 16px;
}

.blog-contain li,
.cms-content li {
  margin: 0 0 6px;
}

.blog-contain table,
.cms-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  border: 1px solid rgba(176, 148, 84, 0.55);
}

.blog-contain th,
.blog-contain td,
.cms-content th,
.cms-content td {
  border: 1px solid rgba(176, 148, 84, 0.55);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.blog-contain th,
.cms-content th {
  background: rgba(176, 148, 84, 0.16);
  font-weight: 600;
}

.blog-contain tbody tr:nth-child(even) td,
.cms-content tbody tr:nth-child(even) td {
  background: rgba(176, 148, 84, 0.06);
}

/* the last element in a block does not need the extra gap */
.blog-contain > :last-child,
.cms-content > :last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .blog-contain table,
  .cms-content table {
    display: block;
    overflow-x: auto;
  }
  .blog-contain table th,
  .blog-contain table td,
  .cms-content table th,
  .cms-content table td {
    min-width: 150px;
  }
}
