body {
  font-family: "Roboto Condensed", Arial, sans-serif;
  background: #fafaf8;
  line-height: 1.5em;
  font-weight: 300;
  font-size: 16px;
  color: #666;
}
hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #F7F1F1;
  border-bottom: 1px solid #fff;
}
span.time, span.categories {
  color: #ADADAD;
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
}
h1, h2, h3 {
  color: #696969;
  font-weight: normal;
}
h1 {
  margin-bottom: 10px;
  font-size: 25px;
}
h2, h3 {
  margin-bottom: 5px;
}
a, a:link, a:active {
  text-decoration: none;
  color: #2d7f43;
}
a:hover {
  color: #B3B3B3;
  text-decoration: underline;
}

/* Layout */
.main-layout {
  background: #fff;
}

/* Sidebar: globe, name, tagline; search styles are in search.css */
.sidebar-intro {
  text-align: center;
}
/* The wordmark (default.html): two lines of type in place of a drawn logo */
.sidebar-intro .author-name {
  margin: 18px 0 0;
  line-height: 1;
}
/* Selectors carry a:link's weight so the wordmark keeps the text color, not the link green */
a.site-wordmark,
a.site-wordmark:link,
a.site-wordmark:visited,
a.site-wordmark:hover {
  display: block;
  color: #333;
  text-decoration: none;
}
.site-wordmark__main {
  display: block;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.site-wordmark__sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
html[data-theme="dark"] a.site-wordmark,
html[data-theme="dark"] a.site-wordmark:link,
html[data-theme="dark"] a.site-wordmark:visited,
html[data-theme="dark"] a.site-wordmark:hover {
  color: #e0e0e0;
}
.sidebar-intro .tagline {
  margin: 4px 0 14px;
  font-size: 13px;
  font-style: italic;
}
/* Sister sites (default.html): a hairline under the search box, then two quiet links */
.sidebar-sites {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e8e4e4;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
.sidebar-sites a {
  display: block;
}
.sidebar-sites a + a {
  margin-top: 3px;
}
.section-title {
  margin-top: 30px;
  font-size: 20px;
}

/* Post header: an optional subtitle (front matter `subtitle:`) sits under the title */
.post-subtitle {
  margin: -4px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  color: #8c8c8c;
}
html[data-theme="dark"] .post-subtitle {
  color: #9a9a9a;
}

/* Content */
/* Section headings in a post stay smaller than the 25px post title (Bootstrap sets h2 at 30px; some older posts use h1 in the body) */
div.post h1,
div.post h2 {
  margin-top: 26px;
  font-size: 21px;
}
div.post h3 {
  margin-top: 22px;
  font-size: 18px;
}
div.post h4 {
  font-size: 16px;
}
div.content pre {
  background: #333333;
  padding: 10px;
  color: #FFF;
  overflow-x: auto;
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 12px;
  border: none;
}

footer {
  border-top: 1px solid #F7F1F1;
  width: 100%;
  height: 10px;
  margin-top: 10px;
  margin-bottom: 3em;
  padding-top: 10px;
  color: #C2C2C2;
  font-size: 11px;
  bottom: 0;
  padding-bottom: 10px;
}
div.post-content .btn-tags {
  margin-bottom: 3px;
}

/* Left column */
div.col-sm-3 {
  margin-top: 30px;
  font-size: 11px;
  color: #666;
}
div.col-sm-3 strong {
  font-size: 16px;
  color: #4A4A4A;
  font-weight: normal;
}
div.col-sm-3 div.profile-about {
  margin-top: 10px;
  color: #8C8C8C;
}

/* Pagination */
.PageNavigation {
  font-size: 14px;
  display: block;
  width: auto;
  overflow: hidden;
}
.PageNavigation a {
  display: block;
  width: 50%;
  float: left;
  margin: 1em 0;
}
.PageNavigation .next {
  text-align: right;
}
.PageNavigation .prev {
  text-align: left;
}

/* Social Icons */
.social{
  display: block;
  margin: 10px 0;
}
.social ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.social ul li {
  display: inline-block;
  margin: 0 5px;
}
.social li a {
  font-size: 16px;
  color: #969394;
}
.social li a:hover {
  color: #6D6D6D;
}

.share-page {
  padding: 10px 10px 5px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.post-content img,
.content img {
  max-width: 100%
}

/* Dark mode: switched on from 8pm to 8am by the script in default.html */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background: #16181a;
  color: #b8b8b8;
}
html[data-theme="dark"] .main-layout {
  background: #1e2124;
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: #e0e0e0;
}
html[data-theme="dark"] a,
html[data-theme="dark"] a:link,
html[data-theme="dark"] a:active {
  color: #5cc474;
}
html[data-theme="dark"] a:hover {
  color: #8fd9a0;
}
html[data-theme="dark"] span.time,
html[data-theme="dark"] span.categories,
html[data-theme="dark"] footer {
  color: #7d7d7d;
}
html[data-theme="dark"] div.col-sm-3,
html[data-theme="dark"] div.col-sm-3 div.profile-about {
  color: #9a9a9a;
}
html[data-theme="dark"] div.col-sm-3 strong {
  color: #d0d0d0;
}
html[data-theme="dark"] hr,
html[data-theme="dark"] footer,
html[data-theme="dark"] .share-page,
html[data-theme="dark"] .sidebar-sites {
  border-color: #2e3236;
}
html[data-theme="dark"] div.content pre {
  background: #111315;
}
html[data-theme="dark"] .form-control {
  background: #16181a;
  border-color: #3a3f44;
  color: #e0e0e0;
}
html[data-theme="dark"] .globe {
  color: #5cc474;
}

/* Responsive Conditional */
@media (min-width: 1024px) {
  .fixed-condition {
    position: fixed;
    max-width: 255px;
  }
}
/* Bootstrap's 970px container leaves the sidebar column 212px wide; the fixed box must not outgrow it */
@media (min-width: 1024px) and (max-width: 1199px) {
  .fixed-condition {
    max-width: 212px;
  }
}
@media (max-width: 768px) {
  div.col-sm-3 {
    margin-top: 30px;
  }
}

/* Appearance toggle on the About page (script: static/js/theme-toggle.js) */
.theme-toggle {
  margin: 30px 0 10px;
  padding: 0;
  border: 0;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle legend {
  margin-bottom: 8px;
  border: 0;
  font-size: 13px;
  color: #999;
}
.theme-toggle__options {
  display: flex;
  flex-wrap: wrap;
}
.theme-toggle label {
  margin: 0 -1px 0 0;
  font-weight: normal;
  cursor: pointer;
}
.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-toggle span {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid #d8d8d4;
  font-size: 14px;
  color: #666;
}
.theme-toggle label:first-of-type span {
  border-radius: 4px 0 0 4px;
}
.theme-toggle label:last-of-type span {
  border-radius: 0 4px 4px 0;
}
.theme-toggle small {
  font-size: 11px;
  color: #999;
}
.theme-toggle input:checked + span {
  position: relative;
  border-color: #2d7f43;
  background: #2d7f43;
  color: #fff;
}
.theme-toggle input:checked + span small {
  color: #d6ecdb;
}
.theme-toggle input:focus-visible + span {
  outline: 2px solid #2d7f43;
  outline-offset: 2px;
}
html[data-theme="dark"] .theme-toggle span {
  border-color: #3a3f44;
  color: #b8b8b8;
}
html[data-theme="dark"] .theme-toggle input:checked + span {
  border-color: #5cc474;
  background: #5cc474;
  color: #16181a;
}
html[data-theme="dark"] .theme-toggle input:checked + span small {
  color: #1e3a26;
}
html[data-theme="dark"] .theme-toggle input:focus-visible + span {
  outline-color: #5cc474;
}

/* Category buttons (category pages): quiet pills, the current one in green; matches the share pills */
div.post-content .btn-tags,
div.post-content .btn-tags:link,
div.post-content .btn-tags:visited {
  border: 1px solid #e3e3e3;
  background: #f6f6f4;
  color: #2f8f4a;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 15px;
  box-shadow: none;
}
div.post-content .btn-tags:hover {
  border-color: #2f8f4a;
  background: #f6f6f4;
  color: #2f8f4a;
  text-decoration: none;
}
div.post-content .btn-tags.active,
div.post-content .btn-tags.active:hover {
  border-color: #2f8f4a;
  background: #eef6f0;
  color: #1e3a26;
  box-shadow: none;
  cursor: default;
}
div.post-content .btn-tags:focus {
  outline: none;
}
div.post-content .btn-tags:focus-visible {
  outline: 2px solid #2f8f4a;
  outline-offset: 2px;
}
html[data-theme="dark"] div.post-content .btn-tags,
html[data-theme="dark"] div.post-content .btn-tags:link,
html[data-theme="dark"] div.post-content .btn-tags:visited {
  border-color: #34383c;
  background: #26292d;
  color: #5cc474;
}
html[data-theme="dark"] div.post-content .btn-tags:hover {
  border-color: #5cc474;
  background: #26292d;
  color: #8fd9a0;
}
html[data-theme="dark"] div.post-content .btn-tags.active,
html[data-theme="dark"] div.post-content .btn-tags.active:hover {
  border-color: #5cc474;
  background: #1f2a22;
  color: #e0e0e0;
}
html[data-theme="dark"] div.post-content .btn-tags:focus-visible {
  outline-color: #5cc474;
}
