.post h2 {
  font-size: 1.5rem;
}

.post h3 {
  font-size: 1.1rem;
}

.blog.content {
  max-width: 75ch;
  font-size: 1.25rem;
}

.blog.content img:not(.avatar) {
  max-width: min(75ch, 80vw);
  display: block;
  margin: auto;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px var(--grey-8) solid;
}

.blog.content blockquote img {
  width: 100%;
}

.blog .card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

a.post-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;

}
.blog .card {
  background-color: var(--bg-1);
  position: relative;
}

div[float]:nth-of-type(odd), div[float="left"]:nth-of-type(n) {
  float: left;
  margin-right: 1rem;
}

div[float]:nth-of-type(even), div[float="right"]:nth-of-type(n) {
  float: right;
  margin-left: 1rem;
}

div[float] {
  overflow: hidden;
}

div[float] p {
  margin: 0;
  height: 100%;
}

.blog.content div[float] img:not(.avatar) {
  max-width: min(25ch, 25vw);
}

.cover-image {
  overflow: hidden;
  display: flex;
  opacity: 0.4;
  height: 4rem;
  max-width: 100vw;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px #b9b9b9 solid;
}

.cover-image img {
  width: 100vw;
  border-radius: 0;
}

@media(max-width : 420px) {
  div[float] {
    float: unset !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }
}

/* Table styling adapted from Semantic-UI */

table {
  width: 100%;
}

table, table th, table tr, table td {
  border-collapse: collapse;
}

table thead {
  border-bottom: 1px solid rgb(0, 0, 0, 0.03);
}

table tfoot th {
  background-color: rgb(0, 0, 0, 0.03);
}

table th {
  cursor: auto;
  background-color: rgb(0, 0, 0, 0.05);
  text-align: left;
  padding: 0.5em 0.7em;
  vertical-align: bottom;
}

table thead th:first-child {
  border-radius: 5px 0px 0px 0px;
}

table thead th:last-child {
  border-radius: 0px 5px 0px 0px;
}

table tfoot th:first-child {
  border-radius: 0px 0px 0px 5px;
}

table tfoot th:last-child {
  border-radius: 0px 0px 5px 0px;
}

table tfoot th:only-child {
  border-radius: 0px 0px 5px 5px;
}

table td {
  padding: 0.40em 0.7em;
  vertical-align: top;
}

table tfoot {
  border-top: 1px solid rgb(0, 0, 0, 0.03);
}
table tfoot th {
  font-weight: normal;
  font-style: italic;
}

table tbody tr:nth-child(2n) {
  background-color: #f9f9fa;
}

@media only screen and (max-width : 768px) {
  table {
    display: block;
    padding: 0em;
  }
  table thead, table tfoot {
    display: none;
  }
  table tbody {
    display: block;
  }
  table tr {
    display: block;
  }
  table tr > td {
    width: 100% !important;
    display: block;
    border: none !important;
    padding: 0.25em 0.75em;
    box-shadow: 0px 1px 0px 0px rgb(0, 0, 0, 0.05) !important;
  }
  table td:first-child {
    font-weight: bold;
    padding-top: 1em;
  }
  table td:last-child {
    box-shadow: 0px -1px 0px 0px rgb(0, 0, 0, 0.1) inset !important;
    padding-bottom: 1em;
  }
  /* Clear BG Colors */
  table tr > td.warning,
  table tr > td.error,
  table tr > td.active,
  table tr > td.positive,
  table tr > td.negative {
    background-color: transparent !important;
  }
}

.blog.content a {
  color: var(--purple-5);
}

.blog.content a:hover {
  color: var(--purple-4);
}

/*
Copied from Reviewable diff-viewer component
Colorbrewer theme from HighlightJS
*/
.hljs {
  color: var(--text-color-normal);
}

.hljs-subst {
  /* default */
}

.hljs-string,
.hljs-meta,
.hljs-symbol,
.hljs-template-tag,
.hljs-template-variable {
  color: #756BB1;
}

.hljs-comment,
.hljs-quote {
  color: #636363;
}

.hljs-number,
.hljs-regexp,
.hljs-literal,
.hljs-bullet,
.hljs-link {
  color: #31A354;
}

.hljs-variable {
  color: #88F;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-title,
.hljs-section,
.hljs-built_in,
.hljs-doctag,
.hljs-type,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-strong {
  color: #3182BD;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-attribute {
  color: #E6550D;
}

.hljs-addition {
  color: var(--green-3);
  background: var(--green-6);
}

.hljs-deletion {
  color: var(--red-5);
  background: var(--red-7);
}

pre {
  border-radius: 5px;
  background: var(--white-2);
  padding: 2rem;
}

code, a > code {
  background: var(--grey-3);
  border-radius: 3px;
  padding-inline: 0.25rem;
  padding-block: 0.1rem;
  color: var(--white-4);
}

pre code {
  background: var(--bg-1);
  border-radius: 0;
  padding-inline: 0;
  color: var(--text-color-normal);
  background: var(--white-2);
}

.blog.content a, .blog.content a:hover {
  text-decoration: underline !important;
}
