nav a {
  margin-right: 0.85rem;
}

article img,
.media-image img {
  display: block;
  height: auto;
  max-width: 100%;
}

.media-image,
.media-video,
.media-embed {
  margin: 1.45rem 0;
}

.media-image img {
  cursor: zoom-in;
  margin: 0 auto;
}

.media-portrait-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.45rem 0;
}

.media-portrait-grid[data-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-portrait-grid > .media-image {
  margin: 0;
  min-width: 0;
}

.media-portrait-grid .media-lightbox-link,
.media-portrait-grid img {
  width: 100%;
}

.media-portrait-grid figcaption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-image img {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.media-image-half {
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.media-lightbox-link {
  display: block;
  line-height: 0;
}

.media-lightbox-link:hover {
  opacity: 0.96;
}

.media-video {
  width: 100%;
}

.media-video video {
  display: block;
  max-width: 100%;
}

.media-embed-frame {
  border: 0;
  display: block;
  max-width: 100%;
  width: 100%;
}

.media-embed-netease .media-embed-frame {
  height: 86px;
}

.media-image figcaption,
.media-video figcaption {
  color: #777;
  font-size: 0.9em;
  line-height: 1.55;
  margin-top: 0.45rem;
  text-align: center;
}

.post-slug-books-2024 .media-image img,
.post-slug-books-2022 .media-image img,
.post-slug-books-2021 .media-image img {
  max-height: 360px;
  width: auto;
}

.post-slug-sickle-cell {
  display: flow-root;
}

.post-slug-sickle-cell .media-image {
  box-sizing: border-box;
  float: left;
  margin: 0.75rem 0 1.1rem;
  width: calc(50% - 0.45rem);
}

.post-slug-sickle-cell .media-image:nth-of-type(odd) {
  margin-right: 0.9rem;
}

.post-slug-summer12 img[src*="/summer12/428-"] {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 48%;
  width: 100%;
}

.note-box {
  border: 1px dashed #aaa;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
}

.note-box p {
  margin: 0.45rem 0;
}

.media-embed-fallback {
  font-size: 0.9em;
  line-height: 1.55;
  margin: 0.55rem 0 0;
  text-align: center;
}

.media-status {
  color: #777;
  font-size: 0.9em;
  line-height: 1.55;
  margin: 0.45rem 0 0;
  text-align: center;
}

.media-status[hidden] {
  display: none;
}

.media-image.is-error .media-lightbox-link,
.media-video.is-error video {
  background: #f3f3f3;
  opacity: 0.62;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

blockquote {
  border-left: 3px solid #d9d9d9;
  color: #666;
  font-style: normal;
  margin: 1.15rem 0;
  padding: 0.05rem 0 0.05rem 1rem;
}

blockquote p {
  margin: 0.45rem 0;
}

.content-disclosure {
  margin: 1rem 0;
}

.content-disclosure > summary {
  cursor: pointer;
}

.content-disclosure[open] > summary {
  margin-bottom: 0.35rem;
}

.content-disclosure > blockquote {
  margin-bottom: 0;
}

.post-title {
  font-size: 1.9em;
  line-height: 1.2;
  margin-bottom: 1.34rem;
}

.post-title-compact {
  font-size: 1.65em;
}

.post-title-tiny {
  font-size: 1.45em;
}

.post-date {
  margin: 1rem 0;
}

.post-date time {
  font-family: monospace;
  font-size: 15px;
  font-style: normal;
}

.post-content > :first-child {
  margin-top: 1rem;
}

.post-footer {
  border: 0;
  margin-top: 1.25rem;
}

.post-tags {
  margin: 0;
  padding: 0 0 0.55rem;
}

.post-tags a + a {
  margin-left: 0.65rem;
}

.post-footer-divider {
  align-items: center;
  display: flex;
  height: 1.6rem;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.post-footer-divider::before {
  border-top: 1px dashed #d7d7d7;
  content: "";
  width: 100%;
}

.post-navigator {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0.65rem 0 0.9rem;
}

.post-navigator-link {
  margin-right: 0;
  min-width: 0;
}

.post-navigator-prev {
  grid-column: 1;
}

.post-navigator-next {
  grid-column: 2;
  text-align: right;
}

.post-navigator-prev .post-navigator-label::before {
  content: "← ";
}

.post-navigator-next .post-navigator-label::after {
  content: " →";
}

.post-navigator-label {
  color: #777;
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  margin-bottom: 0.32rem;
}

.post-navigator-title {
  display: block;
  line-height: 1.45;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-navigator-link:hover .post-navigator-title,
.post-navigator-link:focus-visible .post-navigator-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body > footer {
  color: #777;
  container-name: site-footer;
  container-type: inline-size;
  font-style: italic;
}

body > footer a {
  font-style: inherit;
  text-decoration: none;
}

body > footer a:hover,
body > footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.home-site-note {
  overflow-x: auto;
  white-space: nowrap;
}

.home-site-note p {
  white-space: inherit;
}

.site-footer-full,
.site-footer-compact {
  white-space: nowrap;
}

.site-footer-compact {
  display: none;
}

@container site-footer (max-width: 22rem) {
  .site-footer-full {
    display: none;
  }

  .site-footer-compact {
    display: inline;
  }
}

@media (max-width: 340px) {
  .site-footer-full {
    display: none;
  }

  .site-footer-compact {
    display: inline;
  }
}

@media (max-width: 520px) {
  .media-portrait-grid,
  .media-portrait-grid[data-columns="3"] {
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-portrait-grid > .media-image:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.275rem);
  }

  .media-image-half {
    width: 100%;
  }

  .post-slug-sickle-cell .media-image {
    float: none;
    margin: 1.45rem 0;
    width: 100%;
  }

  .post-slug-sickle-cell .media-image:nth-of-type(odd) {
    margin-right: 0;
  }

  .post-title {
    font-size: 1.55em;
    line-height: 1.25;
  }

  .post-title-compact,
  .post-title-tiny {
    font-size: 1.45em;
  }

  .post-navigator {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .post-navigator-link {
    align-items: baseline;
    box-sizing: border-box;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    padding: 0.35rem 0;
    width: 100%;
  }

  .post-navigator-prev,
  .post-navigator-next {
    grid-column: auto;
    text-align: left;
  }

  .post-navigator-label {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .post-navigator-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .post-navigator-prev .post-navigator-label::before,
  .post-navigator-next .post-navigator-label::after {
    content: none;
  }
}

@media (prefers-color-scheme: dark) {
  blockquote {
    border-left-color: #5d6b70;
    color: #b8c1c5;
  }

  .media-image figcaption,
  .media-video figcaption,
  .media-status,
  .media-embed-fallback {
    color: #aab4b8;
  }

  .media-image.is-error .media-lightbox-link,
  .media-video.is-error video {
    background: #202528;
  }

  .post-footer-divider::before {
    border-color: #52666c;
  }

  .post-navigator-label,
  body > footer {
    color: #aab4b8;
  }
}

.content-table {
  margin: 1.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-table table {
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.45;
  margin: 0;
  width: 100%;
}

.content-table th,
.content-table td {
  border-bottom: 1px solid #dedede;
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.content-table th {
  background: #f5f5f5;
  border-top: 1px solid #dedede;
  color: var(--heading-color);
  font-weight: 600;
  white-space: nowrap;
}

.content-table td:first-child {
  color: var(--heading-color);
  font-weight: 600;
  white-space: nowrap;
}

.content-table-columns-3 table {
  min-width: 38rem;
}

.content-table-columns-4 table,
.content-table-columns-5 table {
  min-width: 48rem;
}

.route-steps {
  display: block;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
}

.route-step {
  display: block;
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.route-step + .route-step {
  margin-top: 0.35rem;
}

.route-costs,
.route-notes {
  display: block;
  font-weight: 400;
  line-height: 1.75;
  white-space: normal;
}

@media (prefers-color-scheme: dark) {
  .content-table th {
    background: #0b303a;
  }

  .content-table th,
  .content-table td {
    border-color: #35515a;
  }
}
