.blog-list-page,
.article-page,
.blog-article-page {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
}

.blog-skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 1.125rem;
  padding: 0.75rem 1rem;
  background: var(--surface-light);
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.blog-skip-link:focus {
  transform: translateY(0);
}

.blog-list-hero {
  padding-block: 3rem;
  background: var(--bg);
  color: var(--text);
}

.blog-eyebrow {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.blog-list-hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  font-weight: var(--weight-regular);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.blog-title-dot {
  color: var(--accent);
}

.blog-list-lead {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.blog-catalog {
  padding-block: 2.5rem 3.5rem;
  background: var(--surface-light);
  color: var(--ink);
}

.blog-catalog-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-catalog-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-regular);
  line-height: 1.4;
}

.blog-result-count {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.blog-filter {
  min-height: 44px;
  padding: 0.625rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--surface-light);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  cursor: pointer;
}

.blog-filter:hover {
  background: var(--surface-light-hover);
  color: var(--ink);
}

.blog-filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--text);
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--surface-light);
  color: var(--ink);
}

.blog-card-meta,
.article-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.blog-card-date,
.post-nav-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.blog-tag {
  display: inline-block;
  max-width: 100%;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--surface-light-hover);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.blog-card .blog-card-title {
  margin: 1rem 0 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: var(--weight-semibold);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.blog-card .blog-title-link {
  color: var(--ink);
  text-decoration: none;
}

.blog-card .blog-title-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.blog-card .blog-card-summary {
  margin: 0.875rem 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.blog-card .blog-read-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.3em;
}

.blog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding-block: 1.5rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.blog-empty a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.blog-breadcrumb,
nav.breadcrumb,
nav.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-regular);
  line-height: 1.7;
  white-space: nowrap;
}

.blog-breadcrumb a,
nav.breadcrumb a,
nav.breadcrumbs a {
  flex: 0 0 auto;
  color: var(--ink-muted);
  text-decoration: none;
  opacity: 0.65;
}

.blog-breadcrumb a:hover,
nav.breadcrumb a:hover,
nav.breadcrumbs a:hover {
  color: var(--accent-dark);
  opacity: 1;
}

.blog-breadcrumb [aria-hidden="true"],
nav.breadcrumb [aria-hidden="true"],
nav.breadcrumbs [aria-hidden="true"],
.blog-breadcrumb .separator,
nav.breadcrumb .separator,
nav.breadcrumbs .separator {
  flex: 0 0 auto;
  opacity: 0.35;
}

.blog-breadcrumb [aria-current="page"],
nav.breadcrumb [aria-current="page"],
nav.breadcrumbs [aria-current="page"] {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 30ch;
  overflow: hidden;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-page main,
.blog-article-page main,
.article-main {
  background: var(--surface-light);
  color: var(--ink);
}

.article-page main > .section,
.blog-article-page main > .section,
.article-main > .section {
  padding-block: 1.5rem 2rem;
}

.article-page main.wrap {
  padding-block: 2rem;
}

.article-page .reading > nav:first-child,
.article-page .reading > nav:first-child > p {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

.article-page .reading > nav:first-child {
  margin-bottom: 20px;
}

.article-page .reading > nav:first-child a,
.article-page .reading > nav:first-child [aria-hidden="true"] {
  flex: 0 0 auto;
  color: inherit;
}

.article-page .reading > nav:first-child [aria-current="page"] {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-page article > header {
  margin-bottom: 28px;
  padding: 0;
}

.article-page article > header > :first-child {
  margin: 0 0 14px;
}

.article-page article > header > .tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.article-page article > header > h1 {
  margin: 0 0 12px;
}

.section:has(> .blog-breadcrumb),
.section:has(> nav.breadcrumb),
.section:has(> nav.breadcrumbs) {
  padding-top: 1.25rem;
  padding-bottom: 0;
}

.section > .blog-breadcrumb,
.section > nav.breadcrumb,
.section > nav.breadcrumbs {
  margin-top: 0;
}

.article-hero,
.article-header,
.post-hero {
  min-width: 0;
  padding-block: 0.5rem 1.5rem;
  color: var(--ink);
}

.article-hero.section,
.article-header.section,
.post-hero.section {
  padding-block: 0.5rem 1.5rem;
}

.article-hero .article-meta,
.article-header .article-meta,
.post-hero .article-meta,
.article-hero .post-meta,
.article-header .post-meta,
.post-hero .post-meta {
  margin-top: 0;
  margin-bottom: 1rem;
}

.article-hero h1,
.article-header h1,
.post-hero h1,
.article-page main h1,
.blog-article-page main h1 {
  max-width: 100%;
  margin-block: 0.875rem 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: var(--weight-regular);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.article-lead,
.post-lead,
.article-hero .lead,
.article-header .lead,
.post-hero .lead {
  max-width: 100%;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.125rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.article-body,
.article-page .prose,
.blog-article-page .prose {
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-body > :first-child,
.article-page .prose > :first-child,
.blog-article-page .prose > :first-child {
  margin-top: 0;
}

.article-body h2,
.article-page .prose h2,
.blog-article-page .prose h2 {
  margin: 2rem 0 0.875rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.article-body > h2:first-of-type,
.article-body section:first-of-type > h2:first-child,
.article-page .prose > h2:first-of-type,
.blog-article-page .prose > h2:first-of-type {
  margin-top: 0;
}

.article-body h3,
.article-page .prose h3,
.blog-article-page .prose h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  line-height: 1.55;
}

.article-body p,
.article-page .prose p,
.blog-article-page .prose p {
  margin: 0.875rem 0;
}

.article-body ul,
.article-body ol,
.article-page .prose ul,
.article-page .prose ol,
.blog-article-page .prose ul,
.blog-article-page .prose ol {
  margin: 1rem 0;
  padding-inline-start: 1.5rem;
}

.article-body li + li {
  margin-top: 0.375rem;
}

.article-body section,
.article-body section.section,
.article-page .prose section,
.article-page .prose section.section,
.blog-article-page .prose section,
.blog-article-page .prose section.section {
  margin-block: 0;
  padding-block: 0;
}

.article-body section + section,
.article-page .prose section + section,
.blog-article-page .prose section + section {
  margin-top: 1.75rem;
}

.article-body section > h2:first-child,
.article-page .prose section > h2:first-child,
.blog-article-page .prose section > h2:first-child {
  margin-top: 0;
}

.article-body a:not([class*="btn"]):not([class*="button"]),
.article-page .prose a:not([class*="btn"]):not([class*="button"]),
.blog-article-page .prose a:not([class*="btn"]):not([class*="button"]) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.22em;
}

.article-body code,
.article-page .prose code,
.blog-article-page .prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.article-body :not(pre) > code,
.article-page .prose :not(pre) > code,
.blog-article-page .prose :not(pre) > code {
  padding: 0.125rem 0.3rem;
  border-radius: var(--radius);
  background: var(--surface-light-hover);
  color: var(--ink);
}

.article-body pre,
.article-page .prose pre,
.blog-article-page .prose pre {
  max-width: 100%;
  margin: 1.25rem 0;
  padding: 1.125rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  tab-size: 2;
}

.article-body pre code,
.article-page .prose pre code,
.blog-article-page .prose pre code {
  padding: 0;
  background: var(--transparent);
  color: inherit;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.article-body blockquote,
.article-page .prose blockquote,
.blog-article-page .prose blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-inline-start: 3px solid var(--line-light);
  background: var(--surface-light-hover);
  color: var(--ink-muted);
}

.article-body .table-scroll,
.article-page .prose .table-scroll,
.blog-article-page .prose .table-scroll {
  max-width: 100%;
  margin-block: 1.25rem;
  overflow-x: auto;
}

.article-body table,
.article-page .prose table,
.blog-article-page .prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-block: 1.25rem;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.9375rem;
}

.article-body th,
.article-body td,
.article-page .prose th,
.article-page .prose td,
.blog-article-page .prose th,
.blog-article-page .prose td {
  min-width: 7em;
  padding: 0.75rem;
  border: 1px solid var(--line-light);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.article-body th,
.article-page .prose th,
.blog-article-page .prose th {
  background: var(--surface-light-hover);
  font-weight: var(--weight-semibold);
}

.article-body img,
.article-body svg {
  max-width: 100%;
}

.article-body .download-note,
.article-page .download-note,
.blog-article-page .download-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-block: 2rem;
  padding: 1.25rem;
}

.download-note > div {
  flex: 1 1 18rem;
  min-width: 0;
}

.download-note .button-row {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-body .download-note p,
.article-page .download-note p,
.blog-article-page .download-note p {
  margin: 0.5rem 0 0;
}

#related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  min-width: 0;
  margin-block: 2rem 1.5rem;
  padding: 0;
}

#related-posts > .related-heading {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

#related-posts .blog-card {
  padding: 1.25rem;
}

#related-posts .blog-card-title {
  font-size: 1.0625rem;
}

#post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
  margin-block: 1.5rem 2rem;
  padding: 0;
}

#post-nav .post-nav-card {
  display: block;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--surface-light);
  color: var(--ink);
  text-decoration: none;
}

#post-nav .post-nav-card:hover {
  background: var(--surface-light-hover);
}

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

.post-nav-next {
  grid-column: 2;
}

.post-nav-label,
.post-nav-date {
  display: block;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.post-nav-title {
  display: block;
  margin-block: 0.625rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: var(--weight-medium);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.post-nav-card:hover .post-nav-title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

#related-posts[hidden],
#post-nav[hidden] {
  display: none;
}

.blog-filter:focus-visible,
.blog-card a:focus-visible,
.blog-breadcrumb a:focus-visible,
nav.breadcrumb a:focus-visible,
nav.breadcrumbs a:focus-visible,
.post-nav-card:focus-visible,
.blog-skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (min-width: 821px) {
  .reading #related-posts,
  #related-posts.reading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .blog-list-hero {
    padding-block: 2.25rem;
  }

  .blog-list-hero h1 {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
  }

  .blog-list-lead {
    font-size: 0.9375rem;
  }

  .blog-catalog {
    padding-block: 2rem 2.5rem;
  }

  .blog-post-grid,
  #related-posts,
  #post-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-card {
    padding: 1.25rem;
  }

  .post-nav-prev,
  .post-nav-next {
    grid-column: 1;
  }

  .article-hero h1,
  .article-header h1,
  .post-hero h1,
  .article-page main h1,
  .blog-article-page main h1 {
    font-size: 1.5rem;
  }

  .article-body .download-note,
  .article-page .download-note,
  .blog-article-page .download-note {
    padding: 1rem;
  }

  .download-note .button-row {
    flex-basis: 100%;
  }

  .blog-filter {
    padding-inline: 0.875rem;
  }
}