/*
Theme Name: My Twenty Sixteen
Description: My theme
Author: Ivan Akulov
Version: 1.0.47
Template: twentysixteen
*/

/* Hide the black border */
@media screen and (min-width: 44.375em) {
  body:not(.custom-background-image):before,
  body:not(.custom-background-image):after {
    display: none;
  }

  .site {
    margin: 0;
  }
}

.footer-html {
  border-color: inherit;
  border-style: solid;
  border-width: 1px 0 1px 0;
  clear: both;
  padding: 1.75em 0;
  border-bottom-width: 0px;
}

.footer-html_borderless {
  border-top: none;
  padding-top: 0;
}

/* Adapt for the common header */
.site-header {
  padding-top: 0;
}

.header-nav {
  padding: 48px 0 24px;
}

/* Style the header */

.site-header-main .site-title {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 48px;
}

.site-header-main .site-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  z-index: -1;
  width: 100%;
  height: 34px;
  background: #ffdb01;
}

@media (min-width: 56.875em) {
  .site-header-main,
  .header-nav {
    margin: 0 15%;
  }
  .site-header-main .site-title {
    font-size: 80px;
  }

  .site-header-main .site-title::before {
    bottom: 21px;
    height: 57px;
  }
}

.site-description {
  color: inherit;
  font-size: inherit;
}

/* Make it visible on mobile */
.site-description {
  display: block;
  line-height: 1.4;
}

.annotated-element__annotation {
  font-size: 13px;
  line-height: 1.5;
}

.annotated-element__annotation > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 984px) {
  .annotated-element {
    display: flex;
    margin-bottom: 1.75em;
  }

  .annotated-element_mobile-direction_content-then-annotation {
    flex-direction: column-reverse;
  }

  .annotated-element_mobile-direction_content-then-annotation
    .annotated-element__annotation {
    margin-top: 8px;
  }

  .annotated-element_mobile-direction_annotation-then-content {
    flex-direction: column;
  }

  .annotated-element_mobile-direction_annotation-then-content
    .annotated-element__annotation {
    margin-bottom: 8px;
  }

  .annotated-element_mobile-direction_annotation-then-content pre {
    margin-top: 0;
  }

  /* On mobile, we remove the margin to not create extra spacing between the content and the annotation.
       The paragraph spacing is compensated by .annotated-element itself. */
  .annotated-element__content > p:last-child,
  .annotated-element__content > pre:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 985px) {
  .annotated-element {
    display: block;
  }

  .annotated-element::after {
    content: "";
    display: block;
    clear: both;
  }

  .annotated-element__annotation {
    float: left;

    max-width: 30%;
    margin-left: -40%;
  }

  ul .annotated-element__annotation {
    float: left;

    /* Add 2.5 rem to account for ul left padding. The padding is 2.5 rem too */
    max-width: calc(0.3 * (100% + 2.5rem));
    margin-left: calc(-0.4 * (100% + 2.5rem) - 2.5rem);
  }

  .annotated-element_has-code_yes .annotated-element__annotation {
    margin-top: 16px;
  }

  .annotated-element_has-code_no .annotated-element__annotation {
    margin-top: 5px;
  }

  .annotated-element_keep-size_yes .annotated-element__annotation {
    margin-bottom: 1.75em;
  }

  .annotated-element_keep-size_no .annotated-element__annotation {
    height: 0;
    overflow: visible;
  }
}

.large-text,
.large-text-left {
  font-size: 2em;
  line-height: 1.2;
  margin: 2em 0 3em;
}

.large-text {
  text-align: center;
}

/* Remove the margin on mobile */
ul {
  margin-left: 0;
}

code {
  background: #e5e5e5;
  border-radius: 2px;
}

mark code {
  background: rgba(0, 0, 0, 0.1);
}

th,
td {
  vertical-align: baseline;
}

table,
th,
td {
  border: none;
}

td {
  padding: 0 20px 1.75em 0;
}

th {
  padding: 0 20px 0 0;
}

/* Code */
pre {
  font-family: "Inconsolata", monospace;
  border: none;
  border-radius: 4px;
  background-color: #f0f0f0;
  margin: 0 -16px;
  padding: 12px 16px;
  overflow-x: auto;
  white-space: pre;
  max-width: none;
}

@media (min-width: 44.375em) {
  pre {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

pre {
  margin-top: -16px;
  margin-bottom: 1.75em;
}

pre code,
pre code.hljs {
  margin: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
}

/* Snippet */
.snippet {
  margin: 12px -16px;
  padding: 12px 16px;
  border-radius: 4px;
  background-color: #f0f0f0;

  font-size: 14px;
}

.snippet h1,
.snippet h2,
.snippet h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.snippet > ul:last-child,
.snippet > p:last-child {
  margin-bottom: 0;
}

@media (min-width: 44.375em) {
  .snippet {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Heading link */
a.heading-link {
  position: absolute;
  box-shadow: none;
  margin-left: 10px;
}

h1:not(:hover) a.heading-link,
h2:not(:hover) a.heading-link,
h3:not(:hover) a.heading-link,
h4:not(:hover) a.heading-link,
h5:not(:hover) a.heading-link,
h6:not(:hover) a.heading-link {
  color: #eee;
}

.snippet h1:not(:hover) a.heading-link,
.snippet h2:not(:hover) a.heading-link,
.snippet h3:not(:hover) a.heading-link,
.snippet h4:not(:hover) a.heading-link,
.snippet h5:not(:hover) a.heading-link,
.snippet h6:not(:hover) a.heading-link {
  color: #ccc;
}

h1[id]::before,
h2[id]::before,
h3[id]::before,
h4[id]::before,
h5[id]::before,
h6[id]::before {
  /* Add an offset for anchored element, according to https://stackoverflow.com/questions/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header#comment35938312_13184714 */
  content: "";
  display: block;
  position: relative;
  width: 0;
  height: 50px;
  margin-top: -50px;
}

/* Custom blocks */
.perf-consulting-snippet {
  margin-left: -20px;
  margin-right: -20px;
  padding: 16px 20px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.4;
}

.perf-consulting-snippet:not(.perf-consulting-snippet_light) {
  background: #111;
  color: white;
}

.perf-consulting-snippet.perf-consulting-snippet_light {
  background: #fffeb0;
}

.perf-consulting-snippet.perf-consulting-snippet mark {
  background: transparent;
  padding: 0;
  font-weight: bold;
}

.perf-consulting-snippet.perf-consulting-snippet:not(
    .perf-consulting-snippet_light
  )
  mark {
  color: #ffdb01;
}

.perf-consulting-snippet.perf-consulting-snippet.perf-consulting-snippet_light
  mark {
  color: black;
}

.perf-consulting-snippet.perf-consulting-snippet:not(
    .perf-consulting-snippet_light
  )
  a {
  color: #8fcbff;
}

.perf-consulting-snippet.perf-consulting-snippet:not(
    .perf-consulting-snippet_light
  )
  a:hover,
.perf-consulting-snippet.perf-consulting-snippet:not(
    .perf-consulting-snippet_light
  )
  a:focus,
.perf-consulting-snippet.perf-consulting-snippet:not(
    .perf-consulting-snippet_light
  )
  a:active {
  color: #4595dd;
}

/* Code inside figure/figcaption */
figure {
  margin-bottom: 1.75em;
}

figure pre + figcaption {
  font-size: 13px;
  margin-top: calc(-1.25 * 16px);
  line-height: 1.4;
}

.post-views {
  display: inline-block;
}

/* Extend the built-in mobile slash to all tags (instead of just spans).
 * This is required because .post-views is a div */
.entry-footer > *:not(:last-child):after {
  content: "\002f";
  display: inline-block;
  opacity: 0.7;
  padding: 0 0.538461538em;
}

@media screen and (min-width: 61.5625em) {
  .post-views {
    display: block;
    margin-bottom: 0.5384615385em;
  }
}

.my-signup-form#mc_embed_signup {
  margin: 0 -20px;
  padding: 16px 20px;
  background: #fffeb0;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.4;
  clear: left;
}

.my-signup-form#mc_embed_signup form {
  padding: 0;
}

.my-signup-form#mc_embed_signup .button {
  width: auto;
  padding: 0 18px;
  background: black;
  text-transform: none;
  letter-spacing: 0;
}

.my-signup-form#mc_embed_signup .button:hover,
.my-signup-form#mc_embed_signup .button:focus,
.my-signup-form#mc_embed_signup .button:active {
  background: rgba(0, 0, 0, 0.6);
}

.my-signup-form p {
  margin-bottom: 1em;
}

/* Copy styles from image captions to fotorama */
.fotorama__caption {
  font-family: inherit;
  color: #686868;
  font-size: 13px;
  font-size: 0.8125rem;
  font-style: italic;
}

/* Make images within ul and ol as wide as outside them */
@media screen and (min-width: 61.5625em) {
  /* prettier-ignore */
  body:not(.search-results) article:not(.type-page) ul img.below-entry-meta,
    body:not(.search-results) article:not(.type-page) ul figure.below-entry-meta,
    body:not(.search-results) article:not(.type-page) ol img.below-entry-meta,
    body:not(.search-results) article:not(.type-page) ol figure.below-entry-meta {
        margin-left: calc(-0.4 * (100% + 2.5rem) - 2.5rem);
        max-width: calc(2.5rem + 140%);
    }
}

.iamakulov-inline-contents li {
  margin-bottom: 0 !important;
}
