/* General */
a.social img[alt="printables"] {
  border-radius: 0;
}
.right-nav {
  font-family: monospace;
  font-size: 1.4em;
}

/* Post list */
main.post-list .post-header p {
  margin-top: 0;
  margin-bottom: 0;
}
main.post-list .post-header .description code {
  font-size: 0.9em;
}

/* Article */
article p:has(+ ul), article p:has(+ ol) {
  margin-bottom: 0.2em;
}
article p + ul, article p + ol {
  margin-top: 0.2em;
}
main a:not(:last-child) img {
  margin-right: 1em;
}
main a:has(> img) {
  border-bottom: none;
}
main a:has(> img):hover {
  background-color: transparent;
}
main a:hover img {
  outline: 1mm solid var(--primary-color);
  outline-offset: 0;
  box-shadow: 0 0 1em var(--primary-color);
}
:root.dark img[src$=".png"] {
  filter: invert(1);
}

/* Code */
pre.giallo:has(code > span.giallo-l):not(:has(code > span.giallo-l ~ span.giallo-l)) {
  padding-top: 2em;
  padding-bottom: 2em;
}
pre:not(.giallo) span.code-label,
pre:not(.giallo) button.clipboard-button {
  display: none;
}

/* Tags */
.post-header > div,
.meta {
  display: flow-root;
}
.meta-tags,
.tags-h1 {
  float: right;
}
.tag {
  display: inline-block;
  padding: 0.1em 0.6em;
  margin-left: 0.2em;
  font-size: 0.7rem;
  font-weight: 400;
  vertical-align: middle;
  line-height: 1.4;
  border-radius: 0.25em;
  background: var(--primary-color);
  color: var(--bg-0);
  text-decoration: none;
}
.tag:hover {
  opacity: 0.75;
}

/* Search box */
.search-modal #modal-content {
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}
