/* Native WordPress editorial content; shared site frame remains unchanged. */
.single-post-page .kb-article {
  min-width: 0;
  color: var(--ink);
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.single-post-page .kb-article :where(p, ul, ol, h2, h3, h4) {
  max-width: 100%;
}

.single-post-page .kb-article p,
.single-post-page .kb-article li {
  font-size: 1rem;
  line-height: 1.75;
}

.single-post-page .kb-article > p {
  margin: 0 0 20px;
}

.single-post-page .kb-article h2 {
  margin: 36px 0 16px;
  font-size: var(--kb-heading-section);
  font-weight: 600;
  line-height: 1.24;
  color: var(--navy);
}

.single-post-page .kb-article h3 {
  margin: 24px 0 12px;
  font-size: var(--kb-heading-item);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.single-post-page .kb-article h4 {
  margin: 20px 0 10px;
  font-size: 1rem;
  line-height: 1.5;
}

.single-post-page .kb-article [id] {
  scroll-margin-top: 160px;
}

.single-post-page .kb-article a:not(.button) {
  color: var(--navy);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.single-post-page .kb-article a:not(.button):hover,
.single-post-page .kb-article a:not(.button):focus-visible {
  color: var(--kb-action-blue-hover);
  text-decoration-thickness: 2px;
}

.single-post-page .kb-article .kb-article__lead {
  font-size: 1.125rem;
  color: var(--ink);
}

.single-post-page .kb-note {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 2px solid #9ebce7;
  background: var(--page);
}

.single-post-page .kb-note > :first-child {
  margin-top: 0;
}

.single-post-page .kb-note > :last-child {
  margin-bottom: 0;
}

.single-post-page .kb-article-nav {
  margin: 32px 0;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.single-post-page .kb-article-nav h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.single-post-page .kb-article-nav ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 40px;
  margin: 0;
  padding-left: 24px;
}

.single-post-page .kb-article-nav li {
  min-width: 0;
  padding-left: 4px;
}

.single-post-page .kb-article-nav a {
  display: inline-block;
  padding: 8px 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  text-decoration-color: var(--line);
}

.single-post-page .kb-article-nav a:hover {
  text-decoration-color: currentColor;
}

.single-post-page .kb-steps {
  margin: 16px 0 24px;
  padding-left: 26px;
}

.single-post-page .kb-steps li {
  padding: 7px 0 7px 6px;
}

.single-post-page .kb-steps li::marker {
  color: var(--navy);
  font-weight: 600;
}

.single-post-page .kb-steps li + li {
  border-top: 1px solid var(--line);
}

.single-post-page .kb-steps li > h3 {
  margin: 8px 0;
}

.single-post-page .kb-steps li > p {
  margin: 0 0 8px;
}

/* The scroll container, not the body, owns wide comparison tables. */
.single-post-page .kb-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--muted) var(--page);
}

.single-post-page .kb-table {
  width: 100%;
  min-width: 600px;
  max-width: none;
  margin: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.6;
}

.single-post-page .kb-table th,
.single-post-page .kb-table td {
  padding: 16px 20px;
}

.single-post-page .kb-table caption {
  padding: 0 0 12px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 650;
  text-align: left;
  caption-side: top;
}

.single-post-page .kb-note-inline {
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.single-post-page .kb-article .kb-next-step {
  max-width: 100%;
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 2px solid #9ebce7;
  background: var(--page);
  color: var(--ink);
}

.single-post-page .kb-next-step > :first-child {
  margin-top: 0;
}

.single-post-page .kb-next-step > :last-child {
  margin-bottom: 0;
}

/* wpautop inserts breaks for source-formatting newlines in this inline CTA. */
.single-post-page p.kb-next-step br,
.single-post-page .kb-next-step p br {
  display: none;
}

.single-post-page .kb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.single-post-page .kb-actions .button {
  max-width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  text-decoration: none;
}

.single-post-page .kb-actions .button-primary {
  color: #fff;
  background: var(--kb-action-blue);
  border-color: var(--kb-action-blue);
}

.single-post-page .kb-actions .button-primary:hover,
.single-post-page .kb-actions .button-primary:focus-visible {
  color: #fff;
  background: var(--kb-action-blue-hover);
  border-color: var(--kb-action-blue-hover);
}

.single-post-page .kb-actions .button-ghost {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--line);
}

.single-post-page .kb-actions .button-ghost:hover,
.single-post-page .kb-actions .button-ghost:focus-visible {
  color: var(--kb-action-blue-hover);
  border-color: var(--kb-action-blue-hover);
}

.single-post-page .kb-faq {
  margin-top: 40px;
}

.single-post-page .kb-table-wrap:focus-visible,
.single-post-page .kb-article a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Article utilities reuse site colors without oversized cards or icon fonts. */
.single-post-page .post-after-content {
  gap: 0;
  margin-top: 32px;
}

.single-post-page .post-utilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.single-post-page .post-tags {
  flex: 1 1 400px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.single-post-page .post-tags__list a {
  max-width: 100%;
  min-height: 36px;
  border-radius: 0;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transform: none;
}

.single-post-page .post-tags__list a:is(:hover, :focus-visible) {
  border-color: #9ebce7;
  background: #edf4ff;
  color: var(--kb-action-blue-hover);
}

.single-post-page .post-share {
  flex: 0 1 auto;
  min-width: 0;
  margin-inline-start: auto;
  justify-content: flex-start;
  padding: 0;
  border: 0;
}

.single-post-page .post-share__links {
  gap: 5px;
  min-width: 0;
}

.single-post-page .post-share__links .post-share__link {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--kb-card-radius);
  color: var(--navy);
  background: var(--surface);
  letter-spacing: 0;
  transform: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.single-post-page .post-share__link .social-icon {
  display: inline-flex;
  flex: 0 0 20px;
}

.single-post-page .post-share__link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.single-post-page .post-share__links .post-share__link:hover {
  border-color: var(--kb-action-blue-hover);
  color: var(--kb-action-blue-hover);
  background: var(--page);
  transform: none;
}

.single-post-page .post-neighbor-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 32px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}

.single-post-page .post-neighbor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 44px;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.single-post-page .post-neighbor--prev {
  grid-column: 1;
}

.single-post-page .post-neighbor--next {
  grid-column: 2;
  text-align: right;
}

.single-post-page .post-neighbor--prev + .post-neighbor--next {
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--line);
}

.single-post-page .post-neighbor .post-neighbor__direction {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.single-post-page .post-neighbor--next .post-neighbor__direction {
  justify-content: flex-end;
}

.single-post-page .post-neighbor .button-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.single-post-page .post-neighbor strong {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.single-post-page .post-neighbor:hover strong,
.single-post-page .post-neighbor:focus-visible strong {
  color: var(--kb-action-blue-hover);
}

.single-post-page .post-share__link:focus-visible,
.single-post-page .post-neighbor:focus-visible,
.single-post-page .post-tags__list a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .single-post-page .post-utilities {
    gap: 16px;
    padding-block: 16px;
  }

  .single-post-page .post-share {
    margin-inline-start: 0;
  }

  .single-post-page .post-neighbor-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 20px;
  }

  .single-post-page .post-neighbor--prev,
  .single-post-page .post-neighbor--next {
    grid-column: 1;
    text-align: left;
  }

  .single-post-page .post-neighbor--prev + .post-neighbor--next {
    padding-inline-start: 0;
    padding-top: 20px;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .single-post-page .post-neighbor--next .post-neighbor__direction {
    justify-content: flex-start;
  }

  .single-post-page .kb-article p,
  .single-post-page .kb-article li,
  .single-post-page .kb-article .kb-article__lead {
    font-size: 1rem;
  }

  .single-post-page .kb-article h2 { margin-top: 30px; }

  .single-post-page .kb-note,
  .single-post-page .kb-article .kb-next-step {
    padding: 16px;
  }

  .single-post-page .kb-note > :first-child {
    margin-top: 0;
  }

  .single-post-page .kb-article-nav ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .single-post-page .kb-table th,
  .single-post-page .kb-table td {
    padding: 14px 16px;
  }

}
