body {
  font-family: 'Open Sans';
  font-display: swap;
}

nav + div {
  margin-top: 4.5rem;
}

/* Bootstrap default is block */
.navbar-brand > img {
  display: inline-block;
  margin-right: 0.25rem;
}

/* Default is larger padding */
.jumbotron {
  padding: 2rem 1.5rem;
}

.card > img {
  max-width: 100%;
}

/* Nav bar */

.nav-link[type='button'] {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

nav {
  transition: all 0.3s ease;
}
.dog-shrinked {
  padding: 0.1rem 1rem; /* default 0.5rem 1rem */
  opacity: 0.92;
}

/* CV */
.row + h2 {
  margin-top: 2rem;
}
h2 + .row {
  margin-top: 1rem;
}

/* Blog list */

.dog-blog-content-preview .dog-blog-hidden-in-overview {
  display: none;
}

.dog-blog-content-preview h2 {
  font-size: 1.25rem;
}
.dog-blog-content-preview h3 {
  font-size: 1.15rem;
}

/* Blog show */

.dog-blog-content {
  /* I don't like if the last paragraph has no spacing at the end */
  margin-bottom: 2.5rem;
}

.dog-blog-heading {
  /* Would otherwise be link color */
  color: black;
}

.dog-blog-heading > h1 {
  margin-bottom: 0.5em;
}

.dog-blog-content h2,
.dog-blog-content h3,
.dog-blog-content h4 {
  /* More spacing for headers */
  margin-bottom: 0.55em;
}

.dog-blog-content h2 {
  margin-top: 1.5rem;
}

.dog-blog-content h3 {
  margin-top: 2.5rem;
}

.dog-blog-content blockquote {
  margin-left: 0.2rem;
  border-left: 0.2rem solid gray;
  padding: 0.4rem 0.8rem;
  color: #707070;
}

.dog-blog-content img {
  margin-bottom: 0.85rem;

  /* Many screenshots of blog entries are high-res, so limit how big they show up */
  max-width: 100%;
}

.dog-blog-content li > p {
  /* Less margin for asciidoctor bullet lists (bootstrap's default for `p` is quite large) */
  margin-bottom: 0.3em;
}

.dog-blog-content pre code {
  font-size: 95%;
}

.dog-blog-content table th,
.dog-blog-content table td {
  border: 1px solid lightgray;
  padding: 0.3em 0.5em;
}

.dog-blog-content table p {
  /* Smaller than Bootstrap default (else cells have useless extra bottom space) */
  margin-bottom: 0.3em;
}

.dog-blog-post-is-longer {
  display: none;
}

.dog-blog-content-preview {
  display: none;
}

.dog-blog-post-is-longer {
  color: gray;
}

.dog-blog-date {
  color: gray;
  margin-top: 0.4em;
  margin-bottom: 0.55em;
}

.dog-blog-draft {
  color: #cc1000;
}

/* For putting code below a bullet point */
.dog-blog-code-indented {
  margin-left: 2.6em;
}

.dog-blog-note td {
  vertical-align: top;
}

.dog-blog-note-title {
  font-size: 200%;
  margin-right: 1em;
  vertical-align: top;
}

.dog-blog-strikethrough {
  text-decoration: line-through;
}

/* Clickable inline code should be recognized as such, hence same color as anchors and more blueish background color*/
a code {
  color: #014c8c;
  background-color: #eeeef9;
}

/* Page-internal anchors should be distinguishable from external links */
a[href^='#'] {
  color: #555;
  font-style: italic;
  text-decoration: underline;
}
/* Under TOC, make the internal links more readable */
.toc a[href^='#'] {
  font-style: normal;
  text-decoration: none;
}
.toc a[href^='#']:hover {
  text-decoration: underline;
}

/* Asciidoctor abbreviated blockquotes have a single <p> with unnecessary bottom margin (parents already have margin) */
blockquote > div:only-child > p:only-child {
  margin-bottom: 0;
}

/* Asciidoctor figure captions */
.dog-blog-content div.title {
  font-size: 75%;
  color: #555;
}

.image-float-left {
  float: left;
  margin-right: 2em;
  margin-bottom: 1em;
}

.image-float-right {
  float: right;
  margin-left: 2em;
  margin-bottom: 1em;
}
