/* Keep editorial content inside the mobile reading column. */
@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wp-site-blocks,
  main,
  .wp-block-post-content,
  .entry-content {
    min-width: 0;
    max-width: 100%;
  }

  .wp-block-post-content img,
  .entry-content img,
  .wp-block-post-content figure,
  .entry-content figure,
  .wp-block-post-content iframe,
  .entry-content iframe,
  .wp-block-post-content table,
  .entry-content table {
    max-width: 100% !important;
  }

  .wp-block-post-content img,
  .entry-content img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  .wp-block-post-content figure,
  .entry-content figure {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Article header: a full-bleed visual followed by one consistent reading column. */
  body.single-post main > .wp-block-group:first-child {
    width: calc(100% - 40px) !important;
    margin: 0 auto 42px !important;
    padding: 0 !important;
  }

  body.single-post .wp-block-post-featured-image {
    width: calc(100% + 40px) !important;
    margin: 0 -20px 28px !important;
  }

  body.single-post .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  body.single-post .wp-block-post-title {
    margin: 0 0 18px !important;
    color: #0a2036;
    font-size: clamp(30px, 8.4vw, 36px) !important;
    font-weight: 800;
    line-height: 1.28 !important;
    letter-spacing: -0.055em;
    word-break: keep-all;
  }

  /* Body typography and media share the same 20px reading edge. */
  body.single-post .wp-block-post-content,
  body.single-post .entry-content {
    width: calc(100% - 40px) !important;
    padding: 0 0 56px !important;
    color: #24313d;
  }

  body.single-post .wp-block-post-content > p,
  body.single-post .entry-content > p {
    margin: 0 0 24px !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    letter-spacing: -0.025em;
    word-break: keep-all;
  }

  body.single-post .wp-block-post-content > h2,
  body.single-post .entry-content > h2 {
    margin: 52px 0 18px !important;
    color: #0a2036;
    font-size: 25px !important;
    line-height: 1.4;
    letter-spacing: -0.045em;
    word-break: keep-all;
  }

  body.single-post .wp-block-post-content figure,
  body.single-post .entry-content figure {
    margin: 34px 0 10px !important;
  }

  body.single-post .wp-block-post-content figure img,
  body.single-post .entry-content figure img {
    border-radius: 2px;
  }

  body.single-post .wp-block-post-content figure + p[style*="text-align"],
  body.single-post .entry-content figure + p[style*="text-align"] {
    margin: 0 0 30px !important;
    color: #76818b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  body.single-post .wp-block-post-content table,
  body.single-post .entry-content table {
    display: table;
    margin: 20px 0 34px !important;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
  }

  body.single-post .wp-block-post-content th,
  body.single-post .wp-block-post-content td,
  body.single-post .entry-content th,
  body.single-post .entry-content td {
    padding: 12px 10px;
    vertical-align: top;
  }
}
