@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/default.min.css");
@import url('https://fonts.googleapis.com/css?family=Encode+Sans+Semi+Expanded:700&display=swap'); /* 700 = Bold */
body {
  font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  background-color: #D9ECFF;
  
  overflow-wrap: anywhere;
  hyphens: auto;
}
img {
  max-width: 100%;
}
.container {
  display: grid;
  grid-template-columns: minmax(20rem, 44rem) 12rem;
  grid-template-rows: auto;
  grid-template-areas:
    "blogtitle blogtitle"
    "linkbar linkbar"
    "core imagebar";
  justify-content: center;
  grid-row-gap: 1rem;
  grid-column-gap: 1rem;
}
#blogtitle {
  font-family: "Encode Sans Semi Expanded", "Palatino";
  grid-area: blogtitle;
  justify-self: center;
  font-size: 2.5rem;
  margin-top: 1rem;
  color: darkblue;
  text-align: center;
}
#linkbar {
  grid-area: linkbar;
  justify-self: center;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
#core {
  grid-area: core;
  background-color: white;
  padding: 1rem;
}
pre {
  overflow-x: auto;
  margin-left: 1rem;
}
#imagebar {
  padding-top: 1rem;
  grid-area: imagebar;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.imagebar-item {
  text-align: center;
  margin-bottom: 1.8rem;
}
.imagebar-item div:first-of-type {
  margin-bottom: 0.2rem;
}
#imagebar img {
  width: 8rem;
}
h1 {
  margin-top: 0;
  padding-top: 0;
}
.date-tags {
  margin-top: -1.5rem;
  color: dimgray;
}
.date-tags a, .date-tags a:link, .date-tags a:visited, .date-tags a:hover {
  color: inherit;
}

@media(max-width: 50rem) {
  .container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "blogtitle"
      "linkbar"
      "imagebar"
      "core";
    justify-items: stretch;
  }
  #imagebar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    overflow-x: auto;
  }
  .imagebar-item {
    width: 12rem;
    margin-bottom: inherit;
    margin-right: 0.5rem;
  }
  .imagebar-item:last-child {
    margin-right: 0;
  }
  #imagebar img {
    height: 8rem;
    width: unset;
    object-fit: contain;
    vertical-align: bottom;
  }
}

/* ----- Notes in boxes ----- */

.warning-note-box {
  background-color: #FF8A80;
  padding: 0.1rem 1.2rem 0.1rem 1.2rem;
  border-radius: 0.5rem;
}

.info-note-box {
  margin-top: 3rem;
  background-color: #7FDBFF;
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  border-radius: 0.5rem;
}

/* ----- Tables ----- */

td {
  vertical-align: text-top;
}
table.framed {
  overflow-x: auto;
  border-collapse: collapse;
}
table.framed td, table.framed th {
  text-align: left;
  border: thin solid black;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
table.framed td.right {
  text-align: right;
}
table.framed tr.doubleline {
  border-bottom: double;
}

/* ----- Links ----- */

a {
  color: darkgreen;
}
a:link {
  text-decoration: none;
  color: darkgreen;
}
a:visited {
  text-decoration: none;
  color: darkgreen;
}
a:hover {
  text-decoration:underline;
  color: darkgreen;
}

.no-link a {
  color: inherit;
}
.no-link a:link {
  color: inherit;
}
.no-link a:visited {
  color: inherit;
}
.no-link a:hover {
  color: inherit;
}


/* Highlight what the current hash points to */
*:target {
  background-color: #FFFF66;
}

/* ----------------------------------- */

h1, h2, h3, h4, h5, h6 {
  color: darkblue;
}
h1 {
  counter-reset: the-section;
}
h2:before {
  counter-increment: the-section;
  content: counter(the-section) ".\0000a0\0000a0";
}
h2 {
  counter-reset: the-subsection;
}
h3:before {
  counter-increment: the-subsection;
  content: counter(the-section) "." counter(the-subsection) ".\0000a0\0000a0";
}

/* ----------------------------------- */

a.header-anchor {
  visibility: hidden;
  color: #BFBFBF !important;
  text-decoration: none;
}
a.header-anchor:hover {
  text-decoration: none;
}
h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor,
h5:hover .header-anchor,
h6:hover .header-anchor
{
  visibility: visible;
}

/* ----------------------------------- */

.ad-box {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.ad-description {
  color: gray;
  font-size: 80%;
  text-align: right;
}

#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial,
  sans-serif;
  --width: 728px;
  --font-size: 22px;
}

#carbonads {
  display: block;
  overflow: hidden;
  max-width: var(--width);
  position: relative;
  background-color: hsl(0, 0%, 99%);
  border: solid 1px #eee;
  font-size: var(--font-size);
  box-sizing: border-box;
}

.detail #carbonads {
  margin-top: 12px;
}

#carbonads a {
  color: inherit;
  text-decoration: none;
}

#carbonads a:hover {
  color: inherit;
}

.carbon-wrap {
  display: flex;
  align-items: center;
}

carbon-img {
  display: block;
  float: left;
  margin: 0;
  max-width: var(--width);
  line-height: 1;
}

.carbon-img img {
  display: block;
  height: 90px;
  width: auto;
}

.carbon-text {
  display: block;
  float: left;
  padding: 0 1em;
  line-height: 1.35;
  max-width: calc(100% - 130px - 2em);
  text-align: left;
}

.carbon-poweredby {
  display: block;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 6px 10px;
  background: repeating-linear-gradient(
                  -45deg,
                  transparent,
                  transparent 5px,
                  hsla(0, 0%, 0%, 0.025) 5px,
                  hsla(0, 0%, 0%, 0.025) 10px
  )
  hsla(203, 11%, 95%, 0.8);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: 8px;
  border-top-left-radius: 4px;
  line-height: 1;
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
  .carbon-text {
    font-size: 14px;
  }
}

/* ----------------------------------- */

.index-container h2:before {
  content: unset;
}

.index-container h2:first-of-type {
  margin-top: 0;
}

.index-container h2 {
  border-bottom: thin solid lightgray;
}

.index-entry {
  margin-top: 1.5rem;
}
.index-entry a, .index-entry a:link, .index-entry a:visited, .index-entry a:hover {
  color: inherit;
}

.index-entry-title {
  font-weight: bold;
  font-size: 120%;
}
.index-entry-date-tags {
  color: dimgray;
}

.index-page-nav {
  margin-top: 2rem;
  border-top: thin solid lightgray;
}

/* ----------------------------------- */

.facet-boxes {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: row;
}
.facet-box {
  margin-right: 1rem;
}

.result-entry div:first-of-type {
  margin-top: 1rem;
  font-size: 120%;
  font-weight: bold;
}

.result-entry div:nth-of-type(2) {
  color: dimgray;
}

.result-entry a, .result-entry a:link, .result-entry a:visited, .result-entry a:hover {
  color: inherit;
}
