/* The homepage's own section styles (copied from the <style> block of edapinenut.github.io/index.html). */
.section {
  margin: 40px 0;
  padding: 0 20px;
}

.section-heading {
  margin-bottom: 20px;
  font-size: 1.2em;
}

h1.section-heading {
  font-size: 1.2em;
}

.section-content {
  margin-left: 20px;
}

/* The post card on the cover, built like the homepage's name card: centered title, subtitle and date. */
#post-card {
  width: 760px;
}

#post-heading {
  text-align: center;
  padding: 30px 30px 30px;
}

#post-title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1.2;
  color: #111;
}

#post-subtitle {
  font-size: 17px;
  font-weight: bold;
  line-height: 1.4;
  color: #666;
  margin-top: 10px;
}

#post-meta {
  font-size: 15px;
  font-weight: 300;
  color: #777;
  margin-top: 6px;
}


@media screen and (max-width: 800px) {
  #post-card {
    width: calc(100% - 30px);
  }
}

@media screen and (max-width: 600px) {
  #post-title {
    font-size: 26px;
  }
  #post-subtitle {
    font-size: 15px;
  }
}

/* Text inside sections */
.section-content p,
.section-content ul,
.section-content ol,
.section-content table,
.section-content pre,
.section-content figure,
.section-content details {
  margin-bottom: 15px;
}

.section-content ul,
.section-content ol {
  margin-left: 22px;
}

.section-content li {
  margin-bottom: 4px;
}

.section-content strong {
  font-weight: bold;
}

.section-content h3 {
  font-size: 1em;
  font-weight: bold;
  margin: 26px 0 10px;
}

.section-content hr,
.page-content > .wrapper > hr {
  display: none;
}

.contents-list li {
  margin-bottom: 2px;
}

/* Figures */
.section-content figure {
  margin: 22px 0 26px;
  text-align: center;
}

.section-content figure img,
.section-content p > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.section-content figcaption {
  font-size: 10.5pt;
  line-height: 1.5;
  color: #696969;
  text-align: left;
  margin: 8px auto 0;
  max-width: 820px;
}

/* Tables */
.section-content table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

.section-content th,
.section-content td {
  border-bottom: 1px solid #e6e6e6;
  padding: 5px 12px;
  text-align: left;
  vertical-align: top;
}

.section-content thead th {
  font-weight: bold;
  border-bottom: 1px solid #9b3022;
}

/* Code */
.section-content pre {
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.5;
}

.section-content pre code {
  border: 0;
  padding: 0;
  font-size: inherit;
  background: transparent;
}

/* Math */
.section-content .math.display {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Appendix */
.section-content details {
  border-left: 3px solid #e8e8e8;
  padding: 2px 0 2px 14px;
}

.section-content details > summary {
  cursor: pointer;
  font-weight: bold;
}

.section-content details[open] > summary {
  margin-bottom: 8px;
}

/* Like box at the end of the post */
.like-box {
  text-align: center;
  margin-top: 50px;
  padding: 22px 20px 26px;
  border-top: 1px solid #e3d3d1;
}

.like-text {
  font-size: 17px;
  margin-bottom: 14px;
  color: #292929;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 18px;
  color: #9b3022;
  background: #fff;
  border: 1.5px solid #9b3022;
  border-radius: 24px;
  padding: 6px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.like-btn:hover {
  background: #fbf2f0;
}

.like-btn.liked {
  background: #9b3022;
  color: #fff;
  cursor: default;
}

.like-icon {
  font-size: 20px;
}

.back-to-top {
  cursor: pointer;
}
