.ab-blog-list [hidden],
.ab-blog-detail [hidden],
.article-float[hidden] {
  display: none !important;
}

.ab-blog-list main,
.ab-blog-detail main {
  overflow-x: clip;
}

:where(.ab-blog-list, .ab-blog-detail) :is(h1, h2, h3, p, figure, dl) {
  margin: 0;
}

.ab-blog-hero {
  padding-block: var(--hero-crumb-top) var(--space-7);
  background: var(--bg);
  color: var(--ink);
}

.ab-blog-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-width: 0;
}

.ab-blog-heading h1,
.ab-article-header h1 {
  min-width: 0;
  font-family: var(--f-head);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: var(--tracking-heading);
  overflow-wrap: break-word;
}

.ab-blog-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--space-2);
  width: fit-content;
  padding: .5em .9em;
  border-radius: var(--r-pill);
  background: var(--win);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#blg-article-count {
  color: var(--ink);
  font-family: var(--f-mono);
}

.ab-blog-intro {
  margin-top: var(--space-3);
  max-width: var(--wrap-read);
  color: var(--ink-2);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

.ab-blog-library {
  padding-bottom: var(--space-8);
}

.ab-blog-panel {
  min-width: 0;
}

.ab-blog-panel + .ab-blog-panel {
  margin-top: var(--space-7);
}

.blg-magazine {
  margin-bottom: var(--space-4);
  min-width: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
  min-width: 0;
}

.blg-magazine:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.blg-magazine > .blog-card {
  grid-column: 1 / -1;
}

.blog-card.blg-featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-win);
  background: var(--win);
  color: var(--ink);
  text-decoration: none;
  align-self: start;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.blog-card.blg-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-window);
}

.blog-card.blg-featured:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.blg-featured__media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
  height: clamp(12rem, 22vw, 16rem);
  isolation: isolate;
  background: var(--dark);
  color: var(--ink);
}

.blg-featured__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

.blog-card:hover .blg-featured__img {
  transform: scale(1.025);
}

.blg-featured__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 4, .12), rgba(4, 5, 4, .94));
  color: #fff;
  pointer-events: none;
}

.blg-featured__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
}

.blg-featured__pill {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  width: fit-content;
  padding: .4em .9em;
  border-radius: var(--r-pill);
  background: #0b0d0c;
  color: #fff;
  font-size: var(--text-xs);
  line-height: 1;
}

.blg-featured__hl {
  max-width: none;
  min-width: 0;
  color: #fff;
  font-family: var(--f-head);
  font-size: var(--text-card);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  letter-spacing: var(--tracking-card);
  overflow-wrap: break-word;
}

.blg-featured__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
}

.blg-featured__excerpt {
  margin: 0 0 var(--space-3);
  max-width: none;
  color: var(--ink-2);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
}

.blg-featured__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-2);
  color: var(--muted);
}

.blg-featured__hint {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
}

.blog-card.blg-featured.blg-compact {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.blg-featured.blg-compact .blg-featured__media {
  height: 12rem;
  flex: 0 0 auto;
}

.blg-featured.blg-compact .blg-featured__hl {
  font-size: var(--text-lg);
  color: #fff;
}

.ab-blog-empty {
  padding: var(--space-5);
  border-radius: var(--r-win);
  background: var(--win);
  color: var(--ink);
}

.ab-blog-empty__heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ab-blog-empty__heading svg {
  flex: 0 0 auto;
  display: block;
}

.ab-blog-empty h2 {
  font-family: var(--f-head);
  font-size: var(--text-reading);
  line-height: var(--lh-heading);
}

.ab-blog-empty > p {
  margin-top: var(--space-3);
  color: var(--ink-2);
  line-height: var(--lh-body);
}

.ab-blog-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.ab-blog-entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  min-width: 0;
  padding: var(--space-4);
  border-radius: var(--r-win);
  background: var(--s-steel);
  color: var(--i-steel);
  text-decoration: none;
  transition: transform var(--duration) var(--ease);
}

.ab-blog-entry h3 {
  font-size: var(--text-card);
  line-height: 1.4;
}

.ab-blog-entry p {
  color: var(--m-steel);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

.ab-blog-entry > span {
  margin-top: auto;
  color: var(--i-steel);
  font-size: var(--text-sm);
}

.ab-blog-entry:hover {
  transform: translateY(-2px);
}

.ab-blog-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ab-blog-closing {
  padding-bottom: var(--space-close);
}

.ab-blog-close {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
  padding: var(--space-5);
  border-radius: var(--r-win);
  background: var(--dark);
  color: var(--ink);
}

.ab-blog-close > div {
  min-width: 0;
}

.ab-blog-close h2 {
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
}

.ab-blog-close p {
  margin-top: var(--space-3);
  color: var(--ink-2);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

.ab-blog-close .ab-blog-close__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  margin-top: 0;
}

.ab-blog-close .c-btn,
.article-mac-promo .c-btn,
.article-float .c-btn {
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.ab-blog-close .c-btn--ghost,
.article-mac-promo .c-btn--ghost,
.article-float .c-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.ab-article {
  padding-top: var(--hero-crumb-top);
  padding-bottom: 0;
}

.ab-article > * {
  width: min(calc(100% - var(--gutter) * 2), 56rem);
  margin-inline: auto;
  padding-inline: 0;
  min-width: 0;
}

.crumb ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumb li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.crumb li:last-child {
  flex: 1 1 auto;
  overflow: hidden;
}

.crumb li + li::before {
  content: "/";
  flex: none;
  margin-inline: .6rem;
}

.crumb [aria-current="page"] {
  display: block;
  min-width: 0;
  max-width: 38ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-article-header {
  margin-bottom: var(--space-4);
}

.ab-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.blog-article-date,
.blog-article-lead {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  width: fit-content;
  align-self: flex-start;
  padding: .5em .9em;
  border-radius: var(--r-pill);
  background: var(--win);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.article-hero {
  margin-block: 0 var(--space-4);
  overflow: hidden;
  border-radius: var(--r-win);
}

.article-hero img {
  display: block;
  width: 100%;
  height: clamp(12rem, 30vw, 28rem);
  max-height: 28rem;
  object-fit: cover;
}

.blog-article-body {
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--text-base);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.blog-article-body > :is(p, ul, ol, dl, pre, blockquote, figure, .table-scroll) {
  margin-block: 0 var(--space-4);
}

.blog-article-body p {
  max-width: none;
}

.blog-article-body h2,
.blog-article-body h3 {
  margin-block: var(--space-6) var(--space-3);
  color: var(--ink);
  font-family: var(--f-head);
  font-size: var(--text-reading);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  letter-spacing: var(--tracking-card);
}

.blog-article-body :is(h2, h3, h4)[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.blog-article-body a:not(.c-btn) {
  color: var(--accent);
  text-underline-offset: .2em;
}

.blog-article-body a:not(.c-btn):hover {
  text-decoration-thickness: 2px;
}

.blog-article-body a:not(.c-btn):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.blog-article-body :is(ul, ol) {
  padding-inline-start: var(--space-4);
}

.blog-article-body li {
  margin-block: var(--space-2);
}

.blog-article-body li > :is(ul, ol) {
  margin-block: var(--space-2);
}

.blog-article-body dl dt {
  font-weight: var(--weight-bold);
}

.blog-article-body dl dd {
  min-width: 0;
  margin: var(--space-2) 0 var(--space-3) var(--space-3);
  padding-inline-start: var(--space-3);
  border-inline-start: 1px solid var(--line-2);
  color: var(--ink-2);
}

.blog-article-body pre {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  padding: var(--space-4);
  border-radius: var(--r-win);
  background: var(--s-steel);
  color: var(--i-steel);
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  white-space: pre;
}

.blog-article-body code {
  max-width: 100%;
  overflow-x: auto;
  font-family: var(--f-mono);
  overflow-wrap: anywhere;
}

.blog-article-body :not(pre) > code {
  padding: .1em .35em;
  border-radius: var(--r-in);
  background: var(--win);
  color: var(--ink);
}

.blog-article-body pre > code {
  display: block;
  padding: 0;
  color: inherit;
  white-space: pre;
  overflow-wrap: normal;
}

.blog-article-body blockquote {
  padding: var(--space-3) var(--space-4);
  border-inline-start: 2px solid var(--primary);
  border-radius: 0 var(--r-in) var(--r-in) 0;
  background: var(--s-teal);
  color: var(--i-teal);
}

.blog-article-body blockquote p {
  margin: 0;
}

.blog-article-body mark {
  padding: .1em .2em;
  border-radius: var(--r-in);
  background: var(--win);
  color: var(--accent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.blog-article-body del {
  color: var(--muted);
}

.blog-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-win);
  box-shadow: var(--shadow-window);
}

.blog-article-body figure img {
  width: 100%;
}

.blog-article-body figcaption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}

.blog-article-body .table-scroll {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  border-radius: var(--r-in);
}

.blog-article-body table {
  display: table;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
}

.blog-article-body :is(th, td) {
  min-width: 8rem;
  padding: var(--space-3);
  border-bottom: 1px solid var(--paper-line);
  color: var(--paper-ink);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.blog-article-body th {
  font-weight: var(--weight-bold);
}

.blog-article-body table code {
  background: var(--paper);
  color: var(--paper-ink);
}

.blog-article-body table a:not(.c-btn) {
  color: var(--primary);
}

.article-toc {
  margin-block: var(--space-4);
  padding: var(--space-4);
  border-inline-start: 2px solid var(--primary);
  border-radius: var(--r-win);
  background: var(--win);
  color: var(--ink);
}

.article-toc__title {
  color: var(--ink);
  font-family: var(--f-head);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.blog-article-body .article-toc__list {
  display: block;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ab-toc;
}

.article-toc__list > li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
  counter-increment: ab-toc;
}

.article-toc__list > li::before {
  content: counter(ab-toc, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: var(--text-sm);
}

.article-toc__list > li > a {
  min-width: 0;
}

.blog-article-body .article-toc__sublist {
  grid-column: 2;
  margin: 0;
  padding-inline-start: var(--space-3);
  color: var(--muted);
}

.article-toc a:not(.c-btn) {
  color: var(--ink-2);
  text-decoration: none;
}

.article-faq__item {
  margin-block: var(--space-3);
  border-radius: var(--r-win);
  background: var(--win);
  color: var(--ink);
}

.article-faq__q {
  padding: var(--space-3) var(--space-4);
  font-weight: var(--weight-bold);
  line-height: 1.5;
  cursor: pointer;
}

.article-faq__q::marker {
  color: var(--accent);
}

.article-faq__a {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--line-2);
  background: var(--win);
  color: var(--ink-2);
}

.article-faq__a p + p {
  margin-top: var(--space-3);
}

.article-further-reading {
  margin-block: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--r-win);
  background: var(--s-steel);
  color: var(--i-steel);
}

.article-further-reading h3 {
  margin-top: 0;
  color: var(--i-steel);
}

.blog-article-body .article-further-reading ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-further-reading li {
  margin: 0;
  min-width: 0;
}

.blog-article-body a.article-cta-link {
  display: block;
  padding: var(--space-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-in);
  color: var(--i-steel);
  text-decoration: none;
  transition: transform var(--duration) var(--ease);
}

.blog-article-body a.article-cta-link:hover {
  transform: translateX(2px);
}

.article-mac-promo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--r-win);
  background: var(--dark);
  color: var(--ink);
}

.ab-article-promo__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.blog-article-body .article-mac-promo h3 {
  margin: 0 0 var(--space-2);
  color: var(--ink);
  font-size: var(--text-card);
}

.article-mac-promo p {
  margin: 0;
  color: var(--price);
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.article-mac-promo .c-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 0;
}

.ab-article > .ab-article-end {
  padding-block: var(--space-7) var(--space-close);
}

.article-float {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-menu);
  width: min(18rem, calc(100vw - var(--gutter) * 2));
  padding: var(--space-3);
  border-top: 2px solid var(--primary);
  border-radius: var(--r-win);
  background: var(--win);
  color: var(--ink);
  box-shadow: var(--shadow-window);
}

.article-float__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.article-float__title {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--f-head);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.article-float__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--dark);
  color: var(--ink);
  cursor: pointer;
}

.article-float__close:hover {
  background: var(--s-steel);
  color: var(--i-steel);
}

.article-float__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.article-float__close svg {
  display: block;
  width: 18px;
  height: 18px;
}

.article-float__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}

.article-float__actions .c-btn {
  width: 100%;
}

.ab-blog-detail [data-blognav-ghost] {
  visibility: hidden !important;
  pointer-events: none !important;
  order: -1;
}

.ab-blog-detail [data-footer-languages] {
  display: none !important;
}

@supports (grid-template-rows: masonry) {
  .blog-grid {
    grid-template-rows: masonry;
    align-items: start;
  }

  .blog-card.blg-featured.blg-compact {
    height: auto;
  }
}

@media (max-width: 900px) {
  .article-float {
    display: none !important;
  }

  .ab-blog-close {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-blog-close .ab-blog-close__actions {
    align-items: flex-start;
  }
}

@media (max-width: 42rem) {
  .blog-grid,
  .blg-magazine:not([hidden]),
  .ab-blog-entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-blog-empty,
  .ab-blog-close {
    padding: var(--space-4);
  }

  .ab-blog-heading h1,
  .ab-article-header h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .blg-featured__media,
  .blg-featured.blg-compact .blg-featured__media {
    height: 13rem;
  }

  .blg-featured__overlay,
  .blg-featured__body {
    padding: var(--space-4);
  }

  .blg-featured__hl,
  .blg-featured.blg-compact .blg-featured__hl {
    font-size: var(--text-lg);
  }

  .ab-blog-close .ab-blog-close__actions {
    align-items: stretch;
  }

  .article-mac-promo {
    align-items: stretch;
  }

  .article-mac-promo .c-actions {
    flex-direction: column;
    width: 100%;
  }

  .article-toc,
  .article-further-reading {
    padding: var(--space-3);
  }

  .article-faq__q,
  .article-faq__a {
    padding-inline: var(--space-3);
  }

  .blog-article-body h2,
  .blog-article-body h3 {
    font-size: var(--text-reading);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card.blg-featured,
  .blg-featured__img,
  .ab-blog-entry,
  .blog-article-body a.article-cta-link {
    transition: none;
  }

  .blog-card.blg-featured:hover,
  .blog-card:hover .blg-featured__img,
  .ab-blog-entry:hover,
  .blog-article-body a.article-cta-link:hover {
    transform: none;
  }
}
