:root {
  --note-shell: 920px;
  --note-reading: 700px;
}

.note-detail-page .skip-link:not(:focus) {
  top: -100px;
}

.note-detail-page .content-header--detail {
  width: min(var(--work-shell), calc(100% - 64px));
}

.note-detail-page .note-detail-main,
.note-detail-page .note-article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.note-detail-page .note-hero {
  position: relative;
  min-height: 0;
  margin: -72px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  isolation: isolate;
}

.note-detail-page .note-hero__landscape {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  opacity: .92;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 66%, transparent 100%);
}

.note-detail-page .note-hero__landscape img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 61%;
  filter: saturate(.76) brightness(1.13) contrast(.92);
}

.note-detail-page .note-hero__inner {
  position: relative;
  width: min(var(--note-shell), calc(100% - 64px));
  margin: 0 auto;
  padding: 190px 220px 72px 0;
}

.note-detail-page .note-hero--text-only .note-hero__inner {
  padding-right: 0;
}

.note-detail-page .note-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--work-orange);
  font-family: var(--content-script);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-1deg);
  transform-origin: left;
}

.note-detail-page .note-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--work-blue);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: wrap;
}

.note-detail-page .note-hero--text-only h1 {
  max-width: 920px;
}

body.note-detail-page:lang(zh-CN) .note-hero h1 {
  font-weight: 650;
  line-height: 1.3;
}

.note-detail-page .note-deck {
  max-width: 640px;
  margin: 22px 0 0;
  color: #355b7f;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.note-detail-page .note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--work-blue);
  font-size: 13px;
  font-weight: 520;
}

.note-detail-page .note-edge-stamp {
  position: absolute;
  top: 214px;
  right: 0;
  display: grid;
  width: 164px;
  gap: 14px;
  padding: 24px 20px;
  border: 1px dashed rgba(180, 71, 11, .2);
  border-radius: 5px;
  background: rgba(255, 253, 248, .55);
  transform: rotate(1.2deg);
}

.note-detail-page .note-edge-stamp span {
  display: block;
  height: 40px;
  border-radius: 2px;
  background: rgba(255, 253, 248, .94);
}

.note-detail-page .note-edge-stamp span:nth-child(1) {
  border: 1px solid rgba(180, 71, 11, .45);
}

.note-detail-page .note-edge-stamp span:nth-child(2) {
  box-shadow: inset 0 0 8px rgba(76, 66, 55, .22);
}

.note-detail-page .note-edge-stamp span:nth-child(3) {
  box-shadow: 0 8px 14px rgba(76, 66, 55, .2);
}

.note-detail-page .note-body {
  width: min(var(--note-reading), calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: #34312e;
}

.note-detail-page .note-body p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
}

.note-detail-page .note-body h2 {
  margin: 50px 0 14px;
  color: var(--work-blue);
  font-family: var(--content-sans);
  font-size: 23px;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.note-detail-page .note-body code {
  padding: 2px 7px;
  border: 1px solid rgba(49, 95, 138, .13);
  border-radius: 10px;
  background: rgba(255, 253, 248, .7);
  color: #4e5861;
}

.note-detail-page .edge-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 18px 0 28px;
  padding: 20px;
  border: 1px solid rgba(49, 95, 138, .14);
  border-radius: 4px;
  background: rgba(255, 253, 248, .5);
}

.note-detail-page .edge-comparison figure {
  margin: 0;
  text-align: center;
}

.note-detail-page .edge-comparison figcaption {
  margin-bottom: 12px;
  color: var(--work-blue);
  font-size: 12px;
  font-weight: 600;
}

.note-detail-page .edge-comparison__sample {
  display: block;
  height: 64px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .72);
}

.note-detail-page .edge-comparison__sample--border {
  border: 1px solid rgba(49, 95, 138, .72);
}

.note-detail-page .edge-comparison__sample--inner {
  box-shadow: inset 0 0 11px rgba(70, 63, 54, .2);
}

.note-detail-page .edge-comparison__sample--drop {
  box-shadow: 0 7px 14px rgba(70, 63, 54, .18);
}

.note-detail-page .note-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(var(--note-shell), calc(100% - 64px));
  margin: 44px auto 80px;
  padding: 0;
  border: 0;
  align-items: center;
}

.note-detail-page .note-pagination a {
  color: var(--work-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.note-detail-page .note-pagination a:last-child {
  justify-self: end;
}

.note-detail-page .note-pagination a:hover {
  color: var(--work-orange);
}

.note-detail-page .note-pagination__stamp {
  display: grid;
  width: 82px;
  height: 62px;
  place-items: center;
  border: 1px dashed rgba(49, 95, 138, .28);
  color: var(--work-blue);
  font-family: var(--content-script);
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-5deg);
}

@media (max-width: 820px) {
  .note-detail-page .content-header--detail {
    width: calc(100% - 36px);
  }

  .note-detail-page .note-hero {
    min-height: 0;
    margin-top: -96px;
  }

  .note-detail-page .note-hero__landscape {
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 48%, rgba(0, 0, 0, .72) 67%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0 48%, rgba(0, 0, 0, .72) 67%, transparent 100%);
  }

  .note-detail-page .note-hero__landscape img {
    object-position: center 58%;
  }

  .note-detail-page .note-hero__inner {
    width: calc(100% - 36px);
    padding: 164px 0 56px;
  }

  .note-detail-page .note-hero__eyebrow {
    font-size: 19px;
  }

  .note-detail-page .note-hero h1 {
    font-size: 40px;
  }

  .note-detail-page .note-deck {
    margin-top: 18px;
    font-size: 15px;
  }

  .note-detail-page .note-meta {
    font-size: 12px;
  }

  .note-detail-page .note-edge-stamp {
    display: none;
  }

  .note-detail-page .note-body {
    width: calc(100% - 36px);
    padding-top: 6px;
  }

  .note-detail-page .note-body p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
  }

  .note-detail-page .note-body h2 {
    margin-top: 38px;
    font-size: 21px;
  }

  .note-detail-page .edge-comparison {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .note-detail-page .note-pagination {
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 36px);
    margin: 36px auto 64px;
  }

  .note-detail-page .note-pagination__stamp {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .note-detail-page .note-pagination a {
    transition: none;
  }
}

/* Article type lock shared by English, Chinese, desktop, and mobile. */
.note-detail-page .note-body,
.note-detail-page .note-body p {
  color: #40566a;
}

.note-detail-page .note-body strong {
  color: #334b60;
}

.note-detail-page .note-body h2 {
  font-size: 20px;
}
