:root {
  --background-color: #62708d;
  --highlight-color: #ffcc66;
  --sidebar-width: 35vw; }

body {
  display: grid;
  grid-template-areas: "header header" "sidebar main" "footer footer";
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  height: -webkit-fill-available;
  height: fill-available;
  margin: 0;
  overflow: hidden;
  position: absolute;
  width: 100vw; }

header {
  grid-column: 1 / 4;
  background-color: var(--background-color);
  color: white;
  padding: 0 2em 0 5em;
  display: grid;
  align-items: center;
  grid-template-columns: 75px 1fr;
  grid-template-rows: 40px 30px;
  grid-template-areas: "img title" "img subtitle";
  position: relative; }
  header > img {
    grid-area: img;
    border-radius: 15px;
    width: 65px;
    height: 65px;
    object-fit: cover;
    object-position: center top; }
  header h1 {
    grid-area: title;
    margin-top: 25px; }
  header h3 {
    grid-area: subtitle;
    margin-top: 5px;
    font-weight: normal; }
  header a,
  header a:visited,
  header a:link {
    color: var(--highlight-color);
    text-decoration: none; }
    header a:hover,
    header a:visited:hover,
    header a:link:hover {
      text-decoration: underline; }

nav {
  border-right: 1px solid var(--background-color);
  grid-area: sidebar;
  overflow: auto;
  padding: 0 1em 1em;
  width: var(--sidebar-width); }
  nav a.current {
    background: #ffcc66;
    border-radius: 2px;
    cursor: none;
    font-weight: bold;
    margin: 1px 0;
    padding: 2px 4px;
    pointer-events: none;
    text-decoration: none; }
  nav td[width="1"] {
    text-align: right;
    vertical-align: baseline;
    width: 1em; }
  nav td[width="15"] {
    width: 0; }
  nav td:nth-child(3) {
    display: flex; }
    nav td:nth-child(3) b {
      display: inline-block;
      min-width: 2em;
      text-align: right;
      margin-right: 8px; }
  nav .hit-count {
    color: red;
    font-weight: bold; }

main {
  display: flex;
  flex-direction: column;
  grid-area: main;
  overflow: auto; }
  main .content {
    margin-bottom: 15px;
    max-width: 90ch; }
  main img {
    max-width: 100%; }
  main mark {
    color: red;
    font-weight: bold;
    background-color: #d6dce5; }

footer {
  background-color: var(--background-color);
  color: white;
  grid-column: 1 / 4;
  padding: 8px;
  text-align: center; }

input#open-sidebar {
  display: none; }
  input#open-sidebar:checked ~ header label[for="open-sidebar"] {
    top: calc(100% + 1.4em);
    left: calc(var(--sidebar-width) - 25px);
    transform: none; }
    input#open-sidebar:checked ~ header label[for="open-sidebar"] .spinner {
      background-color: var(--background-color); }
    input#open-sidebar:checked ~ header label[for="open-sidebar"] .horizontal {
      opacity: 0; }
    input#open-sidebar:checked ~ header label[for="open-sidebar"] .diagonal.part-1 {
      margin-top: 8px;
      transform: rotate(135deg); }
    input#open-sidebar:checked ~ header label[for="open-sidebar"] .diagonal.part-2 {
      margin-top: -9px;
      transform: rotate(-135deg); }
  input#open-sidebar:checked ~ nav {
    transition: opacity 1000ms ease, width 200ms linear, padding 200ms linear; }
  input#open-sidebar:not(:checked) ~ nav {
    opacity: 0;
    padding: 0 0 1em;
    transition: opacity 100ms linear, width 200ms linear, padding 200ms linear;
    width: 0vw; }

label[for="open-sidebar"] {
  cursor: pointer;
  height: 22px;
  left: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  z-index: 99; }
  label[for="open-sidebar"] .spinner {
    background-color: white;
    box-sizing: border-box;
    float: left;
    height: 3px;
    margin-top: 3px;
    position: relative;
    transition: all 500ms;
    user-select: none;
    width: 100%; }

#search {
  margin-right: 35px;
  padding: 1.4em 0 1em; }
  #search span {
    display: block;
    margin: 4px 0 0; }
    #search span mark {
      background: none;
      color: red;
      font-weight: bold; }

@media (max-width: 768px) {
  body {
    grid-template-areas: "header" "main" "footer";
    grid-template-columns: 1fr; }
  nav {
    grid-area: main;
    background-color: white;
    z-index: 2; }
  input#open-sidebar:checked ~ header label[for="open-sidebar"] {
    top: calc(100% + 1.4em);
    left: calc(100% - 1em - 25px);
    transform: none; }
  input#open-sidebar:checked ~ nav {
    opacity: 1;
    transform: translateX(0);
    transition: transform 200ms linear;
    width: calc(100vw - 2em); }
  input#open-sidebar:not(:checked) ~ nav {
    opacity: 1;
    transform: translateX(-100%);
    transition: transform 200ms linear;
    width: calc(100vw - 2em); } }

@media (max-width: 890px) {
  header {
    grid-template-columns: 75px 1fr;
    grid-template-rows: auto;
    grid-template-areas: "img title" "img subtitle";
    padding: 0 1em 0 48px; }
    header h1 {
      font-size: clamp(16px, 4vw, 22px);
      margin: 10px 0 0; }
    header h3 {
      font-size: clamp(13px, 2.5vw, 15px);
      margin: 2px 0 8px; } }

/*# sourceMappingURL=styles.css.map */