/* Blog article. Tokens / chrome come from layout.css. */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.reading-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
}

.post-masthead {
  padding: calc(var(--nav-h) + 48px) var(--pad) 48px;
}

.post-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.post-breadcrumb a:hover {
  color: var(--lime);
}

.post-breadcrumb .bc-current {
  color: #f2f2f2;
}

.post-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 18px;
}

.cat-chip {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.post-date-inline {
  font-size: 13px;
  color: var(--gray);
}

.post-masthead h1 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 16em;
  margin-bottom: 20px;
}

.post-lead {
  max-width: 68ch;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 13px;
  color: var(--gray);
}

.tag-pill {
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid var(--panel-line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ededed;
}

.post-body-section {
  padding: 8px var(--pad) 96px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  width: min(1100px, 100%);
  margin: 0 auto;
  align-items: start;
}

#articleContent {
  min-width: 0;
  font-size: 16px;
  line-height: 1.9;
}

#articleContent > p {
  margin: 0 0 1.2em;
  max-width: 68ch;
  color: #f2f2f2;
}

#articleContent a:not(.btn):not(.btn-lime):not(.btn-solid) {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#articleContent a:not(.btn):not(.btn-lime):not(.btn-solid):hover {
  color: #e8ff4d;
}

#articleContent h2 {
  margin: 2.4em 0 0.7em;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--lime);
  scroll-margin-top: 100px;
}

#articleContent h3 {
  margin: 1.6em 0 0.5em;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}

#articleContent ul:not(.step-list) {
  list-style: disc;
  margin: 0 0 1.4em;
  padding-left: 1.3em;
  max-width: 68ch;
  color: var(--muted);
}

#articleContent ul:not(.step-list) li + li {
  margin-top: 0.4em;
}

#articleContent code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--field);
  color: var(--lime);
}

.callout {
  margin: 1.8em 0;
  padding: 20px 24px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  max-width: 68ch;
}

.callout.tip {
  border-color: rgba(212, 255, 0, 0.35);
}

.callout.warning {
  border-color: #3d2a12;
  background: #161208;
}

.callout p {
  margin: 0;
  color: #f2f2f2;
  font-size: 15px;
  line-height: 1.8;
}

.callout p + p {
  margin-top: 0.7em;
}

.data-table {
  width: 100%;
  max-width: 68ch;
  margin: 1.6em 0 2em;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--panel-line);
}

.data-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--panel);
}

.data-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.step-list {
  margin: 1.4em 0 2em;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 68ch;
}

.step-list > li {
  position: relative;
  margin: 0;
  padding: 18px 0 18px 48px;
  border-bottom: 1px solid var(--line);
  color: #f2f2f2;
  line-height: 1.8;
}

.step-list > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.post-aside {
  position: sticky;
  top: 108px;
}

.post-toc {
  padding: 20px 20px 8px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  margin-bottom: 16px;
}

.post-toc-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.post-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-toc a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.post-toc li:last-child a {
  border-bottom: none;
}

.post-toc a:hover,
.post-toc a.is-active {
  color: var(--lime);
}

.sidebar-cta {
  padding: 20px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
}

.sidebar-cta h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.sidebar-cta p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sidebar-cta .btn-lime,
.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
  margin: 56px 0 0;
  padding: 28px 32px;
  border: 1px solid var(--lime);
  background: var(--panel);
}

.article-cta-copy {
  flex: 1 1 260px;
  min-width: 0;
}

.article-cta-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

#articleContent .article-cta h2 {
  margin: 0 0 10px;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--white);
}

.article-cta-lead {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.article-cta-actions {
  display: flex;
  flex: 0 1 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.article-cta-actions .btn,
.article-cta-actions .btn-lime {
  width: 100%;
  justify-content: center;
}

#articleContent .article-cta-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#articleContent .article-cta-back:hover {
  color: var(--lime);
}

@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-aside {
    position: static;
    order: -1;
  }

  .post-toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
}

@media (max-width: 720px) {
  .post-masthead {
    padding: calc(var(--nav-h) + 28px) var(--pad) 28px;
  }

  .post-toc ol {
    grid-template-columns: 1fr;
  }

  .data-table td:first-child {
    white-space: normal;
  }

  .article-cta {
    padding: 24px;
    gap: 20px;
  }

  .article-cta-actions {
    flex-basis: 100%;
  }
}
