/* Article author and topic rail ------------------------------------------- */

.nat__author {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--nat-line);
  border-radius: 14px;
  background: var(--nat-soft);
}

.nat .nat__author-copy h2 {
  margin: 0 0 6px;
  color: var(--nat-ink);
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.nat .nat__author-copy p {
  margin: 0;
  color: var(--nat-muted);
  font-size: 14px;
  line-height: 1.65;
}

.nat .nat__author-copy a {
  color: var(--nat-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nat .nat__author-copy a:focus-visible {
  outline: 2px solid var(--nat-blue);
  outline-offset: 3px;
}

.nat__rail-sticky {
  position: static;
  margin-top: 18px;
}

.nat__toc {
  margin-bottom: 0;
}

.nat__blog-panel:first-child {
  margin-top: 0;
}

/* Contents follows the topic cards, then sticks after they have scrolled away. */
@media (min-width: 1025px) {
  .nat__rail-sticky {
    position: sticky;
    top: 104px;
    z-index: 2;
    margin-bottom: 0;
    border-radius: 20px;
    background: var(--nat-white);
  }

  .nat__rail-sticky .nat__toc {
    margin-bottom: 0;
  }

  .nat__toc ol {
    max-height: min(42vh, calc(100vh - 280px));
    max-height: min(42dvh, calc(100dvh - 280px));
    overscroll-behavior: contain;
  }
}

.nat__blog-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--nat-line);
  border-radius: 18px;
  background: var(--nat-white);
}

.nat .nat__blog-panel h2 {
  margin: 0 0 14px;
  color: var(--nat-ink);
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.nat__blog-panel .nat__eyebrow {
  margin-bottom: 5px;
  font-size: 10px;
}

.nat__category-list,
.nat__reading-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nat__category-list li + li,
.nat__reading-list li + li {
  border-top: 1px solid var(--nat-line);
}

.nat__category-list a,
.nat__reading-list a,
.nat__blog-more {
  color: var(--nat-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.nat__category-list a {
  padding: 9px 0;
  display: block;
}

.nat__category-list a[aria-current="page"] {
  color: var(--nat-ink);
  font-weight: 750;
}

.nat__reading-list a {
  padding: 11px 0;
  display: block;
}

.nat__category-list a:hover,
.nat__category-list a:focus-visible,
.nat__reading-list a:hover,
.nat__reading-list a:focus-visible,
.nat__blog-more:hover,
.nat__blog-more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nat__blog-more {
  margin-top: 12px;
  display: inline-flex;
  gap: 6px;
}

@media (max-width: 1024px) {
  .nat__rail {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .nat__author {
    padding: 18px;
  }

  .nat__blog-panel {
    padding: 19px;
  }
}
