/* Shared reading layout for the writing index, essays and working papers. */
.editorial {
  color: #173a33;
  background: #f8f5ee;
  font: 1.0625rem/1.7 system-ui, sans-serif;
}
.editorial a { color: inherit; text-underline-offset: .2em; }
.editorial a:focus-visible, .editorial button:focus-visible, .editorial summary:focus-visible {
  outline: 3px solid #8b5536;
  outline-offset: 4px;
}
.editorial .wrap { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.editorial :is(h1, h2, h3), main.paper :is(h1, h2) {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.13;
  color: #173a33;
}
.editorial h1 { max-width: 19ch; font-size: clamp(2.75rem, 5vw, 4.8rem); margin: .5rem 0 1.25rem; }
.editorial h2 { margin: .5rem 0 1rem; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.editorial :is(.feed-heading, .article-heading) {
  border-bottom: 1px solid #b8c5b9; padding-block: clamp(2rem, 5vw, 4.5rem); position: relative;
}
.editorial :is(.feed-heading, .article-heading) > :not(img) { max-width: min(42rem, 70%); }
.editorial :is(.feed-heading, .article-heading) h1 { max-width: min(20ch, 70%); }
.editorial img.editorial-connections { position: absolute; right: 1%; top: 50%; transform: translateY(-50%); width: 22%; max-width: 13rem; height: auto; }
.editorial .editorial-kicker, .editorial .reading-nav > p { color: #775035; font: 600 .83rem/1.5 system-ui,sans-serif; letter-spacing: .08em; }
.editorial .article-meta, .editorial .feed-meta { color: #53665b; font-size: .9rem; }
.editorial :is(.writing-paths, .variable-jump, .feed-variables, .feed-filters) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.editorial .writing-paths, .editorial .variable-jump { margin-top: 1.5rem; }
.editorial .writing-feed, .editorial .feed-founder, .editorial .related-writing { padding-block: 2.5rem; }
.editorial .feed-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.editorial .feed-filters button { border: 1px solid #809486; background: transparent; color: #173a33; padding: .65rem .95rem; font: inherit; cursor: pointer; }
.editorial .feed-filters button[aria-pressed="true"] { background: #173a33; color: #fffaf0; }
.editorial .feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem 3rem; }
.editorial .feed-card, .editorial .feed-founder, .editorial .related-writing { border-top: 1px solid #b8c5b9; }
.editorial .feed-card { padding-block: 1.5rem; }
.editorial .feed-read { display: inline-block; margin-top: 1rem; }
.editorial .article-layout { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 44rem); gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: 3rem; }
.editorial .reading-nav nav, .editorial .related-writing > div, .editorial .article-variables details > div { display: grid; gap: .65rem; }
.editorial .reading-return { display: inline-block; margin-top: 1.2rem; }
.editorial .reading-prose p { margin: 0 0 1.2em; }
.editorial .reading-prose h2 { margin-top: 2rem; }
.editorial .article-variables details { padding-block: .75rem; border-top: 1px solid #b8c5b9; }
.editorial .article-variables summary { cursor: pointer; font-weight: 600; }
.editorial .article-variables summary span { display: none; }
.editorial .article-variables details > div { padding-block: .8rem; }
.editorial .related-writing > div { margin-block: 1.5rem; }
.editorial .related-writing strong { display: block; }
.editorial [id], #practice-title { scroll-margin-top: var(--home-header-height, 7rem); }
@media (max-width: 760px) {
  .editorial .wrap { width: calc(100% - 2rem); }
  .editorial img.editorial-connections { display: none; }
  .editorial :is(.feed-heading, .article-heading) > :not(img), .editorial :is(.feed-heading, .article-heading) h1 { max-width: 100%; }
  .editorial .feed-grid, .editorial .article-layout { grid-template-columns: minmax(0,1fr); }
  .editorial .reading-nav nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
}
.editorial :is(.reading-prose, .writing-paths, .variable-jump, .reading-nav, .feed-read, .feed-variables) a,
.editorial a.feed-read, .editorial a.editorial-back {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.editorial :is(.variable-jump, .feed-read, .related-writing) span[aria-hidden="true"] { display: none; }
