/* moved out of templates/post.php (was inline) */
.bm-post-page {
  --bm-post-ink: var(--ink, #181b20);
  --bm-post-muted: var(--ink-2, #505863);
  --bm-post-subtle: var(--ink-3, #69727f);
  --bm-post-brand: var(--brand-text, #d71920);
  --bm-post-tint: var(--brand-tint, #fff1f1);
  --bm-post-surface: var(--surface, #fff);
  --bm-post-stage: var(--stage, #111113);
  --bm-post-on-stage: var(--on-stage, #fff);
  --bm-post-line: var(--line, #e5e7eb);
  color: var(--bm-post-ink);
  font-family: inherit;
}
.bm-post-palette {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.bm-post-hero .bm-post-title {
  max-width: 22em;
  margin: 20px 0 0;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.bm-post-cover {
  isolation: isolate;
}
.bm-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
.bm-post-article {
  width: 100%;
  max-width: none;
  min-width: 0;
  color: var(--bm-post-ink);
}
.bm-article-body {
  font-size: 16px;
  line-height: 2.15;
  color: var(--bm-post-muted);
  overflow-wrap: anywhere;
  display: flow-root;
}
.bm-article-body > :first-child {
  margin-block-start: 0;
}
.bm-article-body > :last-child {
  margin-block-end: 0;
}
.bm-article-body :where(h1, h2, h3, h4, h5, h6) {
  color: var(--bm-post-ink);
  font-family: inherit;
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: normal;
  margin-block: 2.2em 0.8em;
  scroll-margin-top: 120px;
  text-wrap: pretty;
}
.bm-article-body h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.bm-article-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}
.bm-article-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.bm-article-body h4 {
  font-size: 1.125rem;
}
.bm-article-body h5 {
  font-size: 1rem;
}
.bm-article-body h6 {
  font-size: 0.9375rem;
}
.bm-article-body :where(p, ul, ol, dl) {
  margin-block: 0 1.35em;
}
.bm-article-body :where(strong, b) {
  color: var(--bm-post-ink);
  font-weight: 800;
}
.bm-article-body :where(a:not(.wp-element-button):not(.wp-block-button__link):not(.bm-btn)) {
  color: var(--bm-post-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  word-break: break-word;
}
.bm-article-body :where(a:not(.wp-element-button):not(.wp-block-button__link):not(.bm-btn)):hover {
  text-decoration-thickness: 2px;
}
.bm-post-page :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--bm-post-brand);
  outline-offset: 4px;
}
.bm-article-body ul {
  list-style: disc outside;
  padding-inline-start: 1.5em;
}
.bm-article-body ol {
  list-style: decimal outside;
  padding-inline-start: 1.7em;
}
.bm-article-body li {
  padding-inline-start: 0.25em;
  margin-block: 0.45em;
}
.bm-article-body li::marker {
  color: var(--bm-post-brand);
  font-weight: 700;
}
.bm-article-body li > :where(ul, ol) {
  margin-block: 0.6em 0.8em;
}
.bm-article-body li > p {
  margin-block: 0.4em;
}
.bm-article-body dt {
  color: var(--bm-post-ink);
  font-weight: 800;
  margin-block-start: 1em;
}
.bm-article-body dd {
  margin-inline-start: 1.25em;
  margin-block-end: 1em;
}
.bm-article-body :where(blockquote, .wp-block-pullquote) {
  margin: 2em 0;
  padding: 24px 28px;
  border: 1px solid var(--bm-post-line);
  border-inline-start: 4px solid var(--bm-post-brand);
  border-radius: 12px;
  background: var(--bm-post-tint);
  color: var(--bm-post-ink);
  font-style: normal;
  text-align: start;
}
.bm-article-body blockquote p {
  margin-block: 0 0.8em;
  font: inherit;
  color: inherit;
}
.bm-article-body blockquote p::before,
.bm-article-body blockquote p::after {
  content: none;
}
.bm-article-body blockquote > :last-child {
  margin-block-end: 0;
}
.bm-article-body .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.bm-article-body :where(cite, blockquote footer) {
  display: block;
  margin-block-start: 12px;
  font-size: 13px;
  color: var(--bm-post-muted);
  font-style: normal;
}
.bm-article-body :where(figure, .wp-caption) {
  max-width: 100%;
  margin-block: 1.75em;
  margin-inline: 0;
}
.bm-article-body :where(img, video) {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.bm-article-body :where(figure img, .wp-caption img) {
  margin-block: 0;
}
.bm-article-body :where(p > img, .wp-block-image > img) {
  margin-inline: auto;
}
.bm-article-body :where(figcaption, .wp-caption-text) {
  margin-block: 10px 0;
  color: var(--bm-post-subtle);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}
.bm-article-body :where(.aligncenter) {
  margin-inline: auto;
}
.bm-article-body :where(.alignright) {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}
.bm-article-body :where(.alignleft) {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}
.bm-article-body :where(.alignwide, .alignfull) {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}
.bm-article-body .wp-block-gallery {
  gap: 16px;
}
.bm-article-body .wp-block-gallery figure {
  margin: 0;
}
.bm-article-body .wp-block-gallery figcaption {
  color: inherit;
}
.bm-article-body :where(iframe, embed, object) {
  max-width: 100%;
}
.bm-article-body iframe[src*="youtube"],
.bm-article-body iframe[src*="vimeo"],
.bm-article-body iframe[src*="aparat"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}
.bm-article-body audio {
  width: 100%;
  max-width: 100%;
  margin-block: 1.5em;
}
.bm-article-body .wp-block-embed__wrapper {
  max-width: 100%;
}
.bm-article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin-block: 1.75em;
  text-align: start;
  font-size: 14px;
  line-height: 1.9;
  color: var(--bm-post-ink);
  background: var(--bm-post-surface);
}
.bm-article-body .bm-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--bm-post-line);
  border-radius: 12px;
  margin-block: 1.75em;
  scrollbar-width: thin;
}
.bm-article-body .bm-table-scroll table {
  display: table;
  margin: 0;
  max-width: none;
  overflow: visible;
}
.bm-article-body .wp-block-table {
  overflow: visible;
  margin-block: 1.75em;
}
.bm-article-body .wp-block-table .bm-table-scroll {
  margin: 0;
}
.bm-article-body :where(th, td) {
  border: 0;
  border-block-end: 1px solid var(--bm-post-line);
  border-inline-end: 1px solid var(--bm-post-line);
  padding: 14px 18px;
  min-width: 140px;
  vertical-align: top;
  text-align: inherit;
  overflow-wrap: anywhere;
}
.bm-article-body tr > :last-child {
  border-inline-end: 0;
}
.bm-article-body tbody > tr:last-child > * {
  border-block-end: 0;
}
.bm-article-body :where(thead th, thead td) {
  background: var(--bm-post-stage);
  color: var(--bm-post-on-stage);
  font-weight: 800;
}
.bm-article-body :where(tbody th) {
  font-weight: 800;
  background: var(--bm-post-tint);
}
.bm-article-body tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bm-post-line) 25%, var(--bm-post-surface));
}
.bm-article-body tbody tr:hover td {
  background: var(--bm-post-tint);
}
.bm-article-body tfoot > tr > * {
  background: var(--bm-post-tint);
  border-block-start: 1px solid var(--bm-post-line);
  border-block-end: 0;
  font-weight: 700;
}
.bm-article-body table caption {
  padding: 12px 18px;
  color: var(--bm-post-muted);
  text-align: start;
  font-weight: 700;
}
.bm-article-body table :where(p, ul, ol) {
  margin-block: 0 0.6em;
}
.bm-article-body table :where(p, ul, ol):last-child {
  margin-block-end: 0;
}
.bm-article-body :where(code, kbd, samp) {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.875em;
}
.bm-article-body :where(:not(pre) > code, kbd, samp) {
  background: var(--bm-post-tint);
  color: var(--bm-post-ink);
  padding: 0.2em 0.45em;
  border: 1px solid var(--bm-post-line);
  border-radius: 5px;
  box-decoration-break: clone;
}
.bm-article-body code::before,
.bm-article-body code::after {
  content: none;
}
.bm-article-body pre {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  overflow-x: auto;
  max-width: 100%;
  margin-block: 1.75em;
  padding: 24px;
  background: var(--bm-post-stage);
  color: var(--bm-post-on-stage);
  border: 1px solid var(--bm-post-line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre;
  overflow-wrap: normal;
}
.bm-article-body pre code {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.bm-article-body mark {
  color: var(--bm-post-ink);
  background: var(--bm-post-tint);
  padding: 0.1em 0.25em;
  border-radius: 3px;
}
.bm-article-body abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  cursor: help;
}
.bm-article-body :where(sub, sup) {
  font-size: 0.75em;
  line-height: 0;
}
.bm-article-body hr {
  border: 0;
  border-block-start: 1px solid var(--bm-post-line);
  margin-block: 2.5em;
  clear: both;
}
.bm-article-body details {
  margin-block: 1em;
  padding: 18px 20px;
  border: 1px solid var(--bm-post-line);
  border-radius: 12px;
  background: var(--bm-post-surface);
}
.bm-article-body summary {
  cursor: pointer;
  color: var(--bm-post-ink);
  font-weight: 800;
  line-height: 1.8;
}
.bm-article-body summary::marker {
  color: var(--bm-post-brand);
}
.bm-article-body details[open] > summary {
  margin-block-end: 14px;
}
.bm-article-body details > :last-child {
  margin-block-end: 0;
}
.bm-article-body :where(.wp-block-button__link, .wp-element-button) {
  font: inherit;
  font-weight: 800;
  background: var(--bm-post-brand);
  color: var(--bm-post-surface);
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  line-height: 1.8;
}
.bm-article-body .is-style-outline :where(.wp-block-button__link, .wp-element-button) {
  color: var(--bm-post-brand);
  background: transparent;
  border: 1px solid currentColor;
}
.bm-article-body .wp-block-buttons {
  margin-block: 1.5em;
  gap: 12px;
}
.bm-article-body .wp-block-columns {
  gap: 24px;
  max-width: 100%;
}
.bm-article-body .wp-block-column {
  min-width: 0;
}
.bm-article-body .wp-block-footnotes {
  border-block-start: 1px solid var(--bm-post-line);
  margin-block-start: 2.5em;
  padding-block-start: 1.5em;
  font-size: 13px;
}
.bm-post-pagination:empty,
.bm-post-author:empty {
  display: none;
}
.bm-post-pagination {
  margin-block-start: 28px;
  color: var(--bm-post-muted);
}
.bm-post-pagination .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  margin-inline: 3px;
  padding: 4px 8px;
  border: 1px solid var(--bm-post-line);
  border-radius: 8px;
  color: var(--bm-post-ink);
  text-decoration: none;
}
.bm-post-pagination .post-page-numbers.current {
  background: var(--bm-post-tint);
  border-color: var(--bm-post-brand);
  color: var(--bm-post-brand);
}
.bm-post-author {
  margin-block-start: 32px;
}
.bm-post-aside {
  min-width: 0;
  position: sticky;
  top: 112px;
}
.bm-post-aside .toc {
  padding: 20px;
  border: 1px solid var(--bm-post-line);
  border-radius: 12px;
}
.bm-post-aside .toc-list {
  max-height: min(55vh, 480px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.bm-post-aside .toc-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--bm-post-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bm-post-aside .toc-list a:hover,
.bm-post-aside .toc-list a.active,
.bm-post-aside .toc-list a[aria-current="true"],
.bm-post-aside .toc-list a[aria-current="location"] {
  color: var(--bm-post-brand);
  background: var(--bm-post-tint);
}
.bm-post-related-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.65;
}
.bm-post-comments {
  padding-block-end: 64px;
}
.bm-post-comments :where(.comments-title, .comment-reply-title) {
  margin-block: 24px 16px;
  font-size: 24px;
  line-height: 1.65;
  font-weight: 900;
}
.bm-post-comments :where(.comment-list, .comment-list .children) {
  list-style: none;
  padding: 0;
}
.bm-post-comments .comment-list .children {
  padding-inline-start: 20px;
}
.bm-post-comments .comment-body {
  margin-block: 16px;
  padding: 20px;
  border: 1px solid var(--bm-post-line);
  border-radius: 12px;
  background: var(--bm-post-surface);
  overflow-wrap: anywhere;
}
.bm-post-comments .comment-content {
  font-size: 15px;
  line-height: 2;
}
.bm-post-comments .comment-metadata {
  font-size: 12px;
  color: var(--bm-post-subtle);
  margin-block: 10px;
}
.bm-post-comments .comment-form p {
  margin-block: 14px;
}
.bm-post-comments .comment-form label {
  display: block;
  margin-block-end: 8px;
  font-size: 14px;
  font-weight: 700;
}
.bm-post-comments :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bm-post-line);
  border-radius: 8px;
  background: var(--bm-post-surface);
  color: var(--bm-post-ink);
  font: inherit;
}
.bm-post-comments textarea {
  min-height: 160px;
  resize: vertical;
}
.bm-post-comments .comment-form-cookies-consent label {
  display: inline;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
}
.bm-post-comments input[type="submit"] {
  padding: 12px 24px;
  background: var(--bm-post-brand);
  color: var(--bm-post-surface);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 1023px) {
  .bm-post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bm-post-aside {
    grid-row: 1;
    position: static;
  }
  .bm-post-hero .bm-post-title {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  }
}
@media (max-width: 639px) {
  .bm-article-body {
    font-size: 15px;
    line-height: 2.1;
  }
  .bm-post-hero .bm-post-title {
    line-height: 1.75;
  }
  .bm-post-cover {
    aspect-ratio: 16 / 10;
    border-start-start-radius: 16px;
    border-start-end-radius: 16px;
  }
  .bm-article-body :where(blockquote, .wp-block-pullquote) {
    padding: 18px;
  }
  .bm-article-body :where(th, td) {
    padding: 12px 14px;
    min-width: 132px;
    font-size: 13px;
  }
  .bm-article-body :where(.alignright, .alignleft) {
    float: none;
    margin: 1.5em auto;
  }
  .bm-article-body pre {
    padding: 18px;
    font-size: 13px;
  }
  .bm-post-aside .toc {
    padding: 16px;
  }
  .bm-post-comments .comment-body {
    padding: 16px;
  }
}
@media print {
  .bm-post-layout {
    display: block;
  }
  .bm-post-aside,
  .bm-post-page #contact-cta,
  .bm-post-comments {
    display: none;
  }
  .bm-article-body .bm-table-scroll {
    overflow: visible;
    border: 0;
  }
  .bm-article-body table {
    font-size: 10pt;
  }
  .bm-article-body :where(th, td) {
    min-width: 0;
    padding: 6px;
  }
  .bm-article-body pre {
    white-space: pre-wrap;
    color: #000;
    background: #fff;
  }
  .bm-article-body :where(h1, h2, h3, h4, h5, h6) {
    break-after: avoid;
  }
  .bm-article-body :where(figure, blockquote, tr) {
    break-inside: avoid;
  }
}

/* Editorial layout using the theme's shared tokens and components. */
.bm-post-page {
  background: var(--surface-paper, #f7f7f8);
}
.bm-post-shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}
.bm-post-hero {
  position: relative;
  padding: 164px 0 64px;
  background: var(--bm-post-stage);
  color: var(--bm-post-on-stage);
}
.bm-post-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.bm-post-hero .bm-post-title {
  margin: 20px 0 24px;
  max-width: 19em;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.6;
  color: var(--bm-post-on-stage);
}
.bm-post-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--on-stage-2, #a1a1aa);
  margin-bottom: 32px;
  line-height: 1.9;
}
.bm-post-crumbs a:hover {
  color: var(--bm-post-on-stage);
}
.bm-post-crumbs svg {
  width: 14px;
  height: 14px;
}
.bm-post-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-on-stage, #ff5a61);
}
.bm-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  border-top: 1px solid var(--stage-line, #2c2c32);
  padding-top: 22px;
  color: var(--on-stage-2, #a1a1aa);
  font-size: 13px;
  line-height: 1.9;
}
.bm-post-meta span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.bm-post-meta svg {
  width: 16px;
  height: 16px;
}
.bm-post-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--stage-raised, #1e1e22);
  border: 1px solid var(--stage-line, #2c2c32);
}
.bm-post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bm-post-cover::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  width: 56px;
  height: 5px;
  background: var(--brand, #d71920);
  border-radius: 4px 4px 0 0;
}
.bm-post-reading {
  padding-block: 48px 72px;
}
.bm-post-layout {
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 32px;
}
.bm-post-article {
  background: var(--bm-post-surface);
  border: 1px solid var(--bm-post-line);
  border-radius: 20px;
  padding: clamp(24px, 3.4vw, 48px);
}
.bm-article-body {
  font-size: 17px;
  line-height: 2.15;
}
.bm-article-body h2 {
  font-size: clamp(23px, 2.1vw, 29px);
  margin-block: 1.9em 0.7em;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--brand, #d71920);
}
.bm-article-body h3 {
  font-size: clamp(20px, 1.8vw, 23px);
}
.bm-article-body p {
  margin-block: 0 1.15em;
}
.bm-post-author {
  border-top: 1px solid var(--bm-post-line);
  padding-top: 24px;
}
.bm-post-aside {
  top: 112px;
}
.bm-post-toc {
  padding: 22px;
  background: var(--bm-post-surface);
  border: 1px solid var(--bm-post-line);
  border-radius: 16px;
}
.bm-post-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.bm-post-toc summary::-webkit-details-marker {
  display: none;
}
.bm-post-toc summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--bm-post-brand);
}
.bm-post-toc[open] summary::after {
  content: "−";
}
.bm-post-toc nav {
  margin-top: 18px;
  max-height: 48vh;
  overflow: auto;
  scrollbar-width: thin;
}
.bm-post-toc a {
  display: block;
  padding: 10px 12px;
  border-inline-start: 2px solid var(--bm-post-line);
  font-size: 13px;
  line-height: 1.85;
  color: var(--bm-post-muted);
  text-decoration: none;
}
.bm-post-toc a[data-depth="3"] {
  padding-inline-start: 24px;
  font-size: 12px;
}
.bm-post-toc a:hover,
.bm-post-toc a[aria-current="location"] {
  color: var(--bm-post-brand);
  border-color: var(--bm-post-brand);
  background: var(--bm-post-tint);
}
.bm-post-help {
  margin-top: 20px;
  padding: 24px;
  background: var(--bm-post-stage);
  color: var(--bm-post-on-stage);
  border-radius: 16px;
}
.bm-post-help > svg {
  width: 26px;
  height: 26px;
  color: var(--brand-on-stage, #ff5a61);
  margin-bottom: 18px;
}
.bm-post-help b {
  display: block;
  font-size: 17px;
  line-height: 1.7;
}
.bm-post-help p {
  font-size: 13px;
  color: var(--on-stage-2, #a1a1aa);
  line-height: 2;
  margin-top: 8px;
}
.bm-post-help .bm-btn {
  width: 100%;
  margin-top: 20px;
}
.bm-post-related {
  padding-block: 48px 64px;
  border-top: 1px solid var(--bm-post-line);
  background: var(--bm-post-surface);
}
.bm-post-page #contact-cta {
  padding-block: 48px;
}
.bm-post-comments {
  max-width: 900px;
}
.bm-post-comments .comment-form input[type="submit"] {
  width: auto;
}
@media (min-width: 1024px) {
  .bm-post-toc summary {
    cursor: default;
    pointer-events: none;
  }
  .bm-post-toc summary::after {
    display: none;
  }
}
@media (max-width: 1023px) {
  .bm-post-hero {
    padding-top: 140px;
    padding-bottom: 40px;
  }
  .bm-post-hero-grid {
    gap: 32px;
  }
  .bm-post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bm-post-aside {
    grid-row: 1;
    position: static;
  }
  .bm-post-help {
    display: none;
  }
  .bm-post-toc nav {
    max-height: 320px;
  }
}
@media (max-width: 767px) {
  .bm-post-shell {
    padding-inline: 20px;
  }
  .bm-post-hero {
    padding-top: 112px;
    padding-bottom: 28px;
  }
  .bm-post-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .bm-post-crumbs {
    margin-bottom: 24px;
  }
  .bm-post-hero .bm-post-title {
    font-size: clamp(26px, 6.6vw, 36px);
    line-height: 1.65;
    margin: 16px 0 20px;
  }
  .bm-post-cover {
    aspect-ratio: 16/10;
    border-radius: 16px;
  }
  .bm-post-reading {
    padding-block: 24px 40px;
  }
  .bm-post-article {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .bm-article-body {
    font-size: 16px;
    line-height: 2.1;
  }
  .bm-post-toc {
    padding: 18px 20px;
  }
  .bm-post-related {
    padding-block: 32px 40px;
  }
  .bm-post-related .sec-head {
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .bm-post-related-heading h2 {
    font-size: 23px;
  }
}
@media (max-width: 374px) {
  .bm-post-shell {
    padding-inline: 14px;
  }
  .bm-post-article {
    padding: 20px 16px;
  }
}
@media print {
  .bm-post-hero {
    padding: 20px 0;
    background: white;
    color: black;
  }
  .bm-post-hero .bm-post-title {
    color: black;
  }
  .bm-post-hero-grid {
    display: block;
  }
  .bm-post-cover,
  .bm-post-crumbs,
  .bm-post-related {
    display: none;
  }
  .bm-post-article {
    padding: 0;
    border: 0;
  }
}

/* Comments stay within the reading column and use the site's form tokens. */
.bm-post-comments {
  max-width: none;
  margin-top: 40px;
  padding: 32px 0 0;
  border-top: 1px solid var(--bm-post-line);
}
.bm-post-comments .bm-page-content {
  max-width: none;
  margin: 0;
  padding: 0;
}
.bm-post-comments .bm-page-content > h2,
.bm-post-comments .comments-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.65;
  border-inline-start: 3px solid var(--brand);
  padding-inline-start: 14px;
}
.bm-post-comments .comment-list {
  margin: 0 0 28px;
}
.bm-post-comments .comment-body {
  padding: 22px;
  margin: 16px 0;
  background: var(--surface-paper, #f7f7f8);
  border: 1px solid var(--bm-post-line);
  border-radius: 16px;
}
.bm-post-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--bm-post-ink);
}
.bm-post-comments .comment-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.bm-post-comments .comment-author .fn {
  font-weight: 800;
  font-style: normal;
}
.bm-post-comments .comment-author .says {
  display: none;
}
.bm-post-comments .comment-metadata {
  margin: 8px 0 16px;
  font-size: 12px;
  line-height: 1.8;
}
.bm-post-comments .comment-content p {
  margin: 0 0 12px;
}
.bm-post-comments .comment-content p:last-child {
  margin-bottom: 0;
}
.bm-post-comments .comment-content a,
.bm-post-comments .logged-in-as a {
  color: var(--bm-post-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bm-post-comments .reply {
  margin-top: 16px;
}
.bm-post-comments .comment-reply-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--bm-post-surface);
  border: 1px solid var(--bm-post-line);
  color: var(--bm-post-brand);
  font-size: 12px;
  font-weight: 800;
}
.bm-post-comments .comment-reply-link:hover {
  background: var(--bm-post-tint);
  border-color: var(--bm-post-brand);
}
.bm-post-comments .bypostauthor > .comment-body {
  border-inline-start: 3px solid var(--bm-post-brand);
}
.bm-post-comments .comment-list .children {
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--bm-post-line);
  margin-inline-start: 12px;
}
.bm-post-comments .comment-awaiting-moderation {
  color: var(--bm-post-muted);
  font-size: 13px;
  line-height: 1.9;
}
.bm-post-comments .comment-respond {
  background: var(--surface-paper, #f7f7f8);
  border: 1px solid var(--bm-post-line);
  border-radius: 16px;
  padding: 28px;
  scroll-margin-top: 120px;
}
.bm-post-comments .comment-reply-title {
  margin: 0 0 12px;
  font-size: 22px;
}
.bm-post-comments #cancel-comment-reply-link {
  display: inline-block;
  margin-inline-start: 12px;
  font-size: 12px;
  color: var(--bm-post-brand);
  font-weight: 500;
}
.bm-post-comments .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bm-post-comments .comment-form > * {
  grid-column: 1/-1;
  min-width: 0;
}
.bm-post-comments .comment-form > p {
  margin: 0;
}
.bm-post-comments .comment-form > .comment-form-author,
.bm-post-comments .comment-form > .comment-form-email {
  grid-column: auto;
}
.bm-post-comments :where(.comment-notes, .logged-in-as, .must-log-in) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--bm-post-muted);
}
.bm-post-comments .required {
  color: var(--bm-post-brand);
}
.bm-post-comments .comment-form label {
  font-size: 13px;
  margin-bottom: 8px;
}
.bm-post-comments .comment-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea) {
  border: 1px solid var(--line-strong, #dedee2);
  border-radius: 12px;
  background: var(--bm-post-surface);
  padding: 13px 16px;
  font-size: 15px;
  line-height: 1.8;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.bm-post-comments .comment-form :where(input, textarea):focus {
  border-color: var(--bm-post-brand);
  box-shadow: 0 0 0 3px var(--bm-post-tint);
}
.bm-post-comments .comment-form textarea {
  min-height: 170px;
}
.bm-post-comments .comment-form input[type="email"],
.bm-post-comments .comment-form input[type="url"] {
  direction: ltr;
  text-align: left;
}
.bm-post-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bm-post-comments .comment-form-cookies-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  accent-color: var(--brand);
}
.bm-post-comments .comment-form-cookies-consent label {
  margin: 0;
}
.bm-post-comments .comment-form input[type="submit"] {
  width: auto;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand, #fff);
  box-shadow: var(--shadow-press);
  font-size: 14px;
}
.bm-post-comments .comment-form input[type="submit"]:hover {
  background: var(--brand-hover);
}
.bm-post-comments .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 24px;
}
.bm-post-comments .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--bm-post-line);
  border-radius: 8px;
  font-size: 13px;
}
.bm-post-comments .page-numbers.current {
  color: var(--bm-post-brand);
  background: var(--bm-post-tint);
  border-color: var(--bm-post-brand);
}
@media (max-width: 639px) {
  .bm-post-comments {
    margin-top: 28px;
    padding-top: 28px;
  }
  .bm-post-comments .comment-respond {
    padding: 20px 16px;
  }
  .bm-post-comments .comment-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .bm-post-comments .comment-form > .comment-form-author,
  .bm-post-comments .comment-form > .comment-form-email {
    grid-column: 1/-1;
  }
  .bm-post-comments .comment-body {
    padding: 18px 16px;
  }
  .bm-post-comments .comment-list .children {
    padding-inline-start: 10px;
    margin-inline-start: 0;
  }
  .bm-post-comments .comment-form input[type="submit"] {
    width: 100%;
  }
}
