/* Reader-only typography and scroll chrome. Home, lists and the writer keep their owners. */
body.reader-mode {
  background: #fff;
}
.reader-document {
  scroll-padding-top: calc(var(--reader-header-height, 80px) + 84px);
}
.reader-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 0 60px;
  color: #303036;
}
.reader-article h1 {
  font-family: Metropolis, sans-serif;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin: 0 0 28px;
  overflow-wrap: anywhere;
  color: #292933;
}

.reader-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9e4f8;
  color: #6e58be;
  font-size: 15px;
  font-weight: 600;
}

.reader-body p,
.reader-resolution p {
  font-size: 18px;
  line-height: 28px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 26px;
  color: #38373e;
}
.reader-resolution {
  margin-top: 32px;
}
.reader-resolution h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 14px;
  color: #3e3948;
}
.reader-experience {
  font-size: 12px;
  color: #89818f;
  margin: 26px 0;
}
.reader-engagement {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8b8594;
  font-size: 13px;
  margin: 34px 0 6px;
}
.reader-secondary-actions {
  margin-left: auto;
}
.reader-engagement strong {
  font-weight: 500;
}
.reader-engagement button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 6px 0;
  min-height: 44px;
}
.reader-inline-actions,
.reader-sticky-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.reader-inline-actions {
  border-top: 1px solid #e7e4ee;
  padding: 20px 0;
  margin: 0 0 10px;
}
.reader-action-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.reader-action-icons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 40px;
  gap: 8px;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  color: #5f5b67;
  border-radius: 8px;
  font-size: 14px;
}
.reader-action-icons svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.reader-action-icons button[aria-pressed="true"] {
  color: #7258cd;
  background: #f1ecfc;
}
.reader-action-icons button:disabled {
  cursor: wait;
  opacity: 0.5;
}
.reader-similar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #bdb0e8;
  border-radius: 30px;
  padding: 9px 16px;
  min-height: 44px;
  color: #7960cd;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}
.reader-similar svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex: none;
}
.reader-sticky-actions {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e6e3eb;
  box-shadow: 0 3px 8px #3028420a;
  padding: 12px max(24px, calc((100vw - 1020px) / 2));
  transition: top 160ms ease;
}
.reader-sticky-actions[hidden] {
  display: none;
}
.reader-message {
  font-size: 13px;
  line-height: 1.7;
  color: #685584;
  min-height: 0;
  margin: 0;
}
.reader-message:empty {
  display: none;
}
.reader-comments {
  margin-top: 60px;
}
.reader-comments h2 {
  font-size: 36px;
  line-height: 32px;
  font-weight: 700;
  color: #8d8b98;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  scroll-margin-top: calc(var(--reader-header-height, 80px) + 84px);
}
.reader-moderation-note {
  font-size: 12px;
  color: #8e8796;
  margin-bottom: 34px;
}
.reader-comment {
  padding: 0 0 28px;
  margin: 0 0 32px;
  border-bottom: 1px solid #e7e4ed;
}
.reader-comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.reader-comment-author strong {
  font-size: 14px;
  font-weight: 600;
  color: #4a444f;
  overflow-wrap: anywhere;
}
.reader-comment-author time {
  display: block;
  font-size: 12px;
  color: #96909d;
  margin-top: 3px;
}
.reader-comment > p {
  font-size: 17px;
  line-height: 1.8;
  color: #514b59;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.reader-comments form {
  display: grid;
  gap: 14px;
}
.reader-comments label {
  font-size: 14px;
  font-weight: 600;
  color: #5b5169;
}
.reader-comments textarea {
  width: 100%;
  min-height: 140px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #e2dbe9;
  border-radius: 18px;
  padding: 16px;
  resize: vertical;
  background: white;
}
.reader-comments form button {
  justify-self: start;
}
.reader-comments form > a {
  font-size: 13px;
  color: #7960cd;
}
.reader-comments form [role="status"] {
  font-size: 13px;
  color: #39765e;
  margin: 0;
  line-height: 1.6;
}
.reader-share-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #e4dfee;
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  color: #443a53;
  box-sizing: border-box;
}
.reader-share-dialog::backdrop {
  background: #29263877;
}
.reader-share-dialog h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 22px;
}
.reader-share-dialog label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.reader-share-dialog input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcd3ea;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
}
.reader-share-dialog p {
  font-size: 13px;
  line-height: 1.6;
}
.reader-share-dialog > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.reader-share-dialog button {
  min-height: 44px;
  font-size: 13px;
}
.reader-page :focus-visible,
.reader-sticky-actions :focus-visible {
  outline: 3px solid #9583d2;
  outline-offset: 3px;
}
.reader-page #reader-comments-heading:focus {
  outline: 0;
}
@media (max-width: 760px) {
  .reader-page {
    padding: 24px 0 44px;
  }
  .reader-article h1 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.45px;
    margin-bottom: 24px;
  }
  .reader-body p,
  .reader-resolution p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 16px;
  }

  .reader-inline-actions {
    gap: 10px;
    padding: 18px 0;
    flex-wrap: wrap;
  }
  .reader-inline-actions .reader-similar {
    flex: 1;
    min-width: 150px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .reader-sticky-actions {
    padding: 10px 16px;
    gap: 10px;
  }
  .reader-sticky-actions .reader-action-icons {
    gap: 0;
  }
  .reader-sticky-actions .reader-action-icons button {
    min-width: 34px;
    width: 34px;
    padding: 5px;
  }
  .reader-sticky-actions .reader-similar {
    padding: 8px 10px;
    font-size: 12px;
    gap: 4px;
    flex: 1;
    min-width: 0;
  }
  .reader-sticky-actions .reader-similar svg {
    width: 18px;
    height: 18px;
  }
  .reader-sticky-actions .reader-similar span {
    max-width: 155px;
  }
  .reader-comment > p {
    font-size: 17px;
    line-height: 1.75;
  }
  .reader-comments form button {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 350px) {
  .reader-article h1 {
    font-size: 24px;
  }
  .reader-sticky-actions {
    padding: 8px 12px;
    gap: 6px;
  }
  .reader-sticky-actions .reader-action-icons button {
    min-width: 32px;
    width: 32px;
  }
  .reader-sticky-actions .reader-action-icons svg {
    width: 22px;
    height: 22px;
  }
  .reader-sticky-actions .reader-similar {
    font-size: 11px;
    padding: 8px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reader-sticky-actions {
    transition: none;
  }
}

.reader-article > .author-line {
  margin-bottom: 24px;
}
@media (max-width: 760px) {
  .reader-comments h2 {
    font-size: 30px;
    line-height: 32px;
  }
}
