.content-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.content-title {
  flex: 0 0 100px;
  padding-top: 1.8rem;
}

.content-title h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: left;
}

.content-box {
  position: relative;
  padding: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
  flex-grow: 1;
}

.content-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.content-entry:last-child {
  margin-bottom: 0;
}

.content-date {
  color: #666;
  min-width: 100px;
  text-align: right;
  padding-left: 1rem;
}

.content-description {
  color: #666;
  font-style: normal;
  margin-top: 0.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

@media (min-width: 640px) {
  .content-description {
    max-width: 400px;
  }
}

.side-note {
  position: absolute;
  left: calc(19vw + var(--text-width) / 2 + 2em);
  width: 200px;
  font-size: 0.95em;
  font-style: normal;
  color: black;
  line-height: 1.1;
}

.side-note strong {
  font-weight: bold;
  color: #333;
}

@media (max-width: 991px) {
  .side-note {
    display: none;
  }
}


h1.title::before {
  content: "⧉";
}

.main {
  line-height: 1.75;
}

.archive {
  max-width: none;
  width: 100%;
}

.archive>ul>li {
  list-style: none;
}

.main h2 {
  line-height: 1.25;
}

.main h1,
.main h2 {
  text-align: center;
  margin: 2em 0 1em;
}

dl,
fieldset {
  background-color: lightyellow;
  font-size: .9em;
  border-width: 1px;
}

dt,
legend {
  font-weight: bold;
}

.archive>h2 {
  text-align: initial;
}

.main>ul>li>span:first-child,
.main>p>span:first-child,
.main>p .subtitle,
.hash-note,
.post-nav,
.stats {
  color: #666;
  font-size: .9em;
}

.stats {
  text-align: right;
}

blockquote {
  margin: 1em 0;
  padding: 0 2em;
}

.single blockquote {
  background: none;
  border-left-width: 3px;
  padding: 0 2em;
}

.home blockquote {
  border-left-color: transparent;
}

ol,
ul {
  padding: 0 0 0 20px;
}

ol ol {
  list-style: lower-roman;
}

code[class="fullwidth"] {
  background: none;
}

.comments {
  margin-top: 1em;
}

.hash-note,
.side {
  background: lightyellow;
}

.hash-note a {
  color: inherit;
}

span.hash-note::before {
  content: "　# ";
}

.hide-notes .hash-note,
.unlist {
  display: none !important;
}

.side {
  padding: 1em 2em;
}

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

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

.bg-number,
.note-ref:has(+ .side:hover) {
  background: var(--bg-body);
  filter: invert(1);
  opacity: .6;
}

.bg-number {
  padding: .1em;
}

@media only screen and (min-width: 768px) {

  pre,
  table {
    width: auto;
    max-width: none;
    margin-left: auto;
  }

  .nav-next {
    border-right: 1px solid;
    padding-right: 1em;
  }

  .nav-prev {
    border-left: 1px solid;
    padding-left: 1em;
  }
}

@media print {

  del,
  footer,
  .nav-top,
  #TableOfContents,
  .comments,
  h1.title::before {
    display: none;
  }
}

@media only screen and (min-width: 992px) {

  .has-sidenotes .main,
  .has-sidenotes .fullwidth {
    margin-left: 0;
  }

  .side-right {
    float: right;
    clear: right;
    background: none;
    padding: 0 0 1em 0;
    width: calc(var(--body-width) - var(--text-width) - 2.5rem * 2 - 2rem);
    margin-right: calc(var(--text-width) + 2.5rem * 2 - var(--body-width));
  }

  blockquote .side-right {
    margin-right: calc(var(--text-width) + 2.5rem * 2 - var(--body-width) - 2rem);
  }
}

.katex { color: black; }

sup a, .footnote-ref {
  color:maroon !important;
  text-decoration: underline dotted;
  cursor: pointer;
}

.logo {
  display: flex;
}

.logo a {
  display: inline-block;
  margin-right: 40px;
}

.logo a img {
  height: 60px;
  width: auto;
}

@media (max-width: 767px) {
  .side-note {
    display: none;
  }

  .content-description {
    white-space: normal;
    max-width: none;
  }

  .content-block {
    flex-direction: column;
    align-items: stretch;
  }
}

.date {
  margin-right: 0.25rem;
}

.toc-line.indented {
  margin-left: calc(8.3ch + 0.5rem); 
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
