body, html {
  height: 100%;
}

body {
  /* background: #fbfbfb;
     background: #f9f7fd; */
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#byline {
  background: url(images/signature.svg) no-repeat;
  color: transparent;
  background-size: 130px auto;
}

.hidden {
  float: none !important;
  visibility: hidden;
}

.collapse-bar {
  display: block;
  background: #eee;
  padding: 14px 14px 9px;
}

a.collapse-bar {
  color: #727272;
  text-transform: uppercase;
  font-size: 75%;
  margin-bottom: 4px;
}

a.collapse-bar:hover {
  text-decoration: none;
}

a.collapse-bar span {
  padding: 4px 4px 2px;
}

a.collapse-bar span:hover {
  background: #00000017;
}

.collapse-bar:after {
  display: block;
  float: right;
  opacity: 25%;
}

.collapse-bar.hide:hover:after {
    content: "▼";
}

.collapse-bar.show:after {
    content: "▼";
}

.collapsible,
.show,
.hide:target,
.hide:target ~ .content-header {
  display: none !important;
}
.hide:target + .show,
.hide:target ~ .collapsible {
  display: block !important;
}

.collapse-bar.show + .scratch-pad {
  border-bottom: 4px solid white;
}

.scratch-pad {
  background: #eee;
  padding: 8px;
}

.scratch-pad h3 {
  background: #e3d6fb;
  display: inline-block;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 0;
}

.scratch-pad > div {
  padding: 0.5em;
}

.content-header,
.scratch-wrapper {
  display: none;
}

ol > li {
  position: relative;
}

ol > li::after {
  content: "";
  position: relative;
  display: block;
}

ul.snippets {
  list-style-type: none;
  padding-left: 0;
}

ul.snippets li {
  background: white;
  padding: 2px 6px 6px;
}

ul.snippets li {
  margin-top: 1em;
}

ul.snippets li > p {
  margin-top: 0;
}

ul.snippets li pre:last-child {
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: #0645ad;
}

a.headerlink {
  color: #c60f0f;
  position: absolute;
  margin-left: 10px;
  text-decoration: none;
}

a.headerlink:after {
  content: "¶";
}

a.headerlink:hover {
  background-color: #c60f0f;
  color: white;
}

a.headerlink {
  visibility: hidden;
}

a[ref=rss] {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIQSURBVHjapFPPaxNBGH07u5vsBqVNQGkRFCEXUYwihYpYNh4UDz2JJ72IIHjQgweL0rPgzYuCIPSgx/4DEiFFm4tVIUXowYqKSWwK2dBGdrPZnRlnZs1m6aEK/eDbGWbfe9+vGY1zjr2YIT/dxwW5VDVdd4iug5gm1CpcGqM09jBUK6d0SRyX83NuLMAYr+YKBccu5P8rqu92Hc91q1JECUQRd6zxMcDzgCDYnZ3NQmK3NztOUgKlXKYF7vsgt9aB3w3wzVWgUQP/UZEhU+F9QJQoOYlAGLK4xiiC/ukZtP2HoB0sQSvOgn+7AFZfAGssJxpEYCUnERAlKIFICETLj0YdPnENxqmbINP3QWsU9Oe7+Fxhd2YgyKHo8ti9Fmi7jvBrBcHaIsLtFqzz8yClGwg26uBeB0Rh4wxILCB6IKML998/BQt6gvQQmXMPMNj4jP6H5zCLl0GOXlQYrgR4WmCUwVZlHp2Xs+i9nkP2+FWYx66gt/ICUecLjCMzCsN2ZpDuwYG7a7CmbmOr9gT99TfIFC+p80FjBcbkGbVnqR6Q9BTkT338MPadvaP2QfMjzMnTah+639W/ocAwA02+hbfXdX6ylIcvLpIv57yL2bYNO5fDar2LmVdUG45x6VfLcyYmLFiW9c+rLLCKk4xRvIVys+lX2+2+k8kQDN0wVIUCzDAYjPwvuZyUsBf7I8AAIEVKkZlgrRQAAAAASUVORK5CYII=");
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  padding-left: 16px;
  line-height: 16px;
  display: block;
  width: 16px;
  float: right;
}

tt {
  font-size: 90%;
  color: #484848;
  background: #eee;
  padding: 2px 4px;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink {
  visibility: visible;
}

h3 {
  clear: both;
}

a:hover,
a:focus {
  text-decoration: underline;
}

p.warning {
  background: #ffe0e6;
  border-radius: 8px;
  padding: 12px 20px;
}

h1 {
  font-family: 'Source Sans Pro', sans-serif;
  display: none;
  background: white;
}

h2 {
  font-family: Georgia, "Cambria", serif;
}

h2 {
  font-weight: normal;
  font-size: 1.65em;
  line-height: 1em;
}

h2.discreet {
  font-size: 1em;
}

h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: normal;
  font-size: 1em;
  color: #444;
  margin-top: 1em;
}

pre {
  font-size: 14px;
  padding-left: 20px;
  border-left: 7px solid #eee;
  line-height: 1.4em;
  background: #f7f7f7;
  padding: 4px;
  margin-bottom: 0;
}

pre + pre {
  margin-top: 0;
}

pre.bash:before {
  content: "$ ";
}

.posts {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.posts pre.prettyprint {
  background: #f9ffe0;
  border: 1px solid #e5eacf;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 69%;
}

.post ul.extra-space li + li {
  margin-top: 1em;
}

p code {
  background: #eee;
  border: 1px solid #ccc;
  padding: 3px 5px;
  font-size: 12px;
}

figure:not(.plain) {
  display: table;
  border-bottom: 1px solid #5a915d;
  margin: 0.5em auto 0;
  max-width: 75%;
}

figure > * {
  display: table-row;
}

figcaption {
  font-size: 70%;
}

figure.plain {
  color: #bbb;
}

figure:not(.plain) > figcaption {
  font-family: 'Source Sans Pro', sans-serif;
  background: #97fa9d;
  padding: 4px 14px;
}

figure:not(.plain) > figcaption::before {
  content: "";
  padding-left: 0.75em;
}

img.big {
  width: 100%;
}

#profile-pic {
  display: none;
  position: absolute;
  margin-top: 19px;
  left: -13px;
  height: 68%;
  border-radius: 150px;
  -webkit-border-radius: 150px;
  -moz-border-radius: 150px;
  border: 3px solid #fff;
}

/* LAYOUT CSS */
.pure-img-responsive {
  max-width: 100%;
  height: auto;
}

#layout {
  padding: 0;
  max-width: 80em;
  margin: 0 auto;
  height: 100%;
  display: flex;
}

#back-link {
  display: none;
}

section.callout {
  background: #edf3f7;
  padding: 1em;
  border-top: 1px solid #0645ad;
  border-bottom: 1px solid #0645ad;
  border: 1px solid #0645ad;
}

body.post section:not(.post) {
  display: none;
}

body.post #back-link {
  display: block;
}

#about {
  margin-top: 2em;
  border-top: 4px solid orange;
  padding-top: 4em;
}

.brand-title,
.brand-tagline {
  margin: 0;
}

.brand-tagline {
  font-weight: 300;
  margin-top: 3px;
  margin-bottom: 3px;
}

.brand-tagline, .brand-tagline a {
  color: rgb(176, 202, 219);
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  display: inline-block;
  *display: inline;
  zoom: 1;
}

.nav-item a {
  background: transparent;
  border: 2px solid rgb(176, 202, 219);
  color: #fff;
  margin-top: 1em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 85%;
}

.nav-item a:hover,
.nav-item a:focus {
  border: 2px solid rgb(61, 146, 201);
  text-decoration: none;
}

.content {
  flex: 1;
}

.content-header {
  position: relative;
  margin-bottom: 1em;
}

.sidebar {

  padding: 1em;
  /* background: #97fa9d; */
}

.content-attribution {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 70%;
  display: block;
  text-transform: uppercase;
  font-size: 70%;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.content-wrapper {
  position: relative;
  flex: 1;
  background: #fff;
  margin: 3px 0 12px;
  padding: 20px;
  color: #515151;
}

.content-subhead {
  text-transform: uppercase;
  color: #aaa;
  padding: 2px 6px;
  font-size: 80%;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.content-subhead span {
  display: block;
  float: right;
}

div > p:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 0;
}

p, blockquote, ul, ol {
  font-family: Georgia, "Cambria", serif;
  font-size: 16px;
  color: #444;
  line-height: 1.6em;
}

blockquote {
  font-style: italic;
}

ul {
  margin: 0;
}

p + ul {
  margin-top: 1em;
}

body.post .content-wrapper {
    flex-direction: column;
    display: flex;
}

section.current {
  margin-top: 1em;
}

section h2 {
  order: -1;
}


body:not(.post) .content-wrapper > section:first-of-type h2,
section.current h2 {
  position: relative;
  font-size: 1.75em;
  margin-top: 0;
}

section.current header > p {

}

.content-header + .post > header {
  border-top: none;
}

section:not(.current) {
  order: 1;
}

section + section:not(.current) {
  margin-top: 40px;
}

.sidebar a {
  color: #444;
}

.link-wrapper + .link-wrapper {
  margin-top: 0;
}

.post-header {
  display: grid;
  position: relative;
  margin-bottom: 2.5em;
  border-top: 1px solid #ccc;
}

.post-header .time {
  display: none;
}

.post-header > p:first-child {
  line-height: 1em;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 70%;
  display: block;
  text-transform: uppercase;
  font-size: 70%;
  font-weight: 500;
  letter-spacing: 0.1em;
}

@media (max-width: 1699px) {
  h2 {

  }

  .post-header > p:first-child {

  }
}

@media (min-width: 1700px) {
  section.current .post-title {
    margin-bottom: 1em;
  }

  section.current .post-header > p:first-child {
    position: absolute;
    right: 103%;
    white-space: nowrap;
    border-bottom: 2px solid #00000024;
    padding-bottom: 2px;
    top: 0px;
  }
}

.post-title {
  color: #222;
  margin-bottom: 0;
}

.post-avatar {
  border-radius: 5px;
  float: right;
  margin-left: 1em;
}

.post-description {
  font-family: Georgia, "Cambria", serif;
  font-size: 20px;
  color: #444;
  line-height: 1.6em;
  margin-top: -5px;
}

.post-description > span,
.post-description > p:first-child > span {
  font-family: 'Source Sans Pro', sans-serif;
}

h2:hover {
  cursor: pointer;
}

header::after {
  content: "";
  display: block;
  clear: both;
}

.post-description > span:after {
  content: " – ";
  padding-right: 4px;
}

.post-meta {
  display: none;
  color: #999;
  font-size: 90%;
  margin: 0;
}

.post-category {
  margin: 0 0.1em;
  padding: 0.3em 1em;
  color: #fff;
  background: #999;
  font-size: 80%;
}

.post-category-postgresql {
  background: #3e80d8;
}

.post-category-recruitment {
  background: #b62dc5;
}

.post-category-json {
  background: #3e80d8;
}

.post-category-python {
  background: #5aba59;
}

.post-category-pure {
  background: #4d85d1;
}

.post-category-cloud {
  background: #8156a7;
}

.post-category-js {
  background: #df2d4f;
}

.post-category-bucklescript {
  background: #4d85d1;
}

.image-right {
  float: right;
  margin-left: 1em;
  margin-right: -8px;
  line-height: 0;
  border: 4px solid white;
  border-radius: 8px;
}

.image-right + span::after {
  content: "";
  display: block;
  clear: both;
}

.post-images {
  margin: 1em 0;
}

.post-image-meta {
  margin-top: -3.5em;
  margin-left: 1em;
  color: #fff;
  text-shadow: 0 1px 1px #333;
}

.sidebar {
  overflow: hidden;
}

@media (min-width: 800px) {
  body {
  }

  h1 {
    display: block;
  }

  #profile-pic {
    display: block;
  }

  .content, .sidebar {
    padding: 1em 1em 0;
  }

  .sidebar {
    order: 0;
    background: transparent;
  }

  .content-header {
    display: block;
  }

  .sidebar-wrapper {
    margin-top: 29px;
    background: white;
    padding: 20px;
  }

  .scratch-wrapper {
    display: block;
  }

  figure.small {
    max-width: 40%;
  }

  figure.float-left {
    position: relative;
    margin-top: 1em;
    margin-bottom: 1em;
    float: left;
    margin-right: 1em;
    max-width: 40%;
    border: 1px solid #e7e7e7;
  }

  figure.float-left::before {
    content: " ";
    position: absolute;
    z-index: ;
    top: 0;
    left: 5px;
    right: -10px;
    bottom: 0;
    border-right: 5px solid #dfdfdf;
  }

  figure.float-right {
    position: relative;
    float: right;
    max-width: 40%;
    margin-left: 1em;
    border: 1px solid #e7e7e7;
  }

  figure.float-right::before {
    content: " ";
    position: absolute;
    z-index: ;
    top: 0;
    left: -10px;
    bottom: 0;
    border-left: 5px solid #dfdfdf;
  }
}

@media (min-width: 1400px) {
  .content, .sidebar {
    padding: 2em 3em 0;
  }

  .header {
    margin: 9.5em 2em 0;
    text-align: right;
  }
}

tbody + tbody > tr:first-child {
  border-top: 2px solid #cbcbcb;
}

section.post a[href^="http"] {
  padding-right: 13px;
}

section.post a[href^="http"]::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-size: 16px auto;
  background-image: url('data:image/svg+xml;utf-8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.6396 7.02527H12.0181V5.02527H19.0181V12.0253H17.0181V8.47528L12.1042 13.3892L10.6899 11.975L15.6396 7.02527Z" fill="%230645ad" /><path d="M10.9819 6.97473H4.98193V18.9747H16.9819V12.9747H14.9819V16.9747H6.98193V8.97473H10.9819V6.97473Z" fill="%230645ad" /></svg>');
  margin-top: 6px;
}

.ukraine::after {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAwIiBoZWlnaHQ9IjgwMCI+DQo8cmVjdCB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI4MDAiIGZpbGw9IiMwMDVCQkIiLz4NCjxyZWN0IHdpZHRoPSIxMjAwIiBoZWlnaHQ9IjQwMCIgeT0iNDAwIiBmaWxsPSIjRkZENTAwIi8+DQo8L3N2Zz4=);
  background-size: 24px auto;
  background-repeat: no-repeat;
  position: absolute;
  content: "";
  top: 8px;
  right: 8px;
  width: 24px;
  height: 16px;
}

#mitid-login-pad li {
  display: inline-block;
  min-width: 2em;
  border: 1px solid black;
  border-radius: 2em;
  position: relative;
  height: 2em;
  text-align: center;
  float: left;
  margin-right: 5px;
  margin-bottom: 5px;
  cursor: pointer;
}

#mitid-login-pad li:nth-of-type(4n) + li {
  clear: both;
}

#mitid-login-pad::after {
  content: "";
  display: block;
  clear: both;
}
