/* Blog post detail readability and mobile controls polish. */
.a2t-post-detail-page .a2t-content-pro {
  font-size: 17px !important;
  line-height: 1.76 !important;
  color: #273449 !important;
}

.a2t-post-detail-page .a2t-content-pro p,
.a2t-post-detail-page .a2t-content-pro ul,
.a2t-post-detail-page .a2t-content-pro ol,
.a2t-post-detail-page .a2t-content-pro blockquote,
.a2t-post-detail-page .a2t-content-pro pre {
  margin-bottom: 16px !important;
}

.a2t-post-detail-page .a2t-content-pro li {
  margin: 6px 0 !important;
}

.a2t-post-detail-page .a2t-content-pro h2 {
  font-size: 1.55rem !important;
  line-height: 1.2 !important;
}

.a2t-post-detail-page .a2t-content-pro h3 {
  font-size: 1.28rem !important;
  line-height: 1.24 !important;
}

.a2t-post-detail-page .a2t-excerpt-pro {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

html[data-theme="dark"] .a2t-post-detail-page .a2t-content-pro,
body.dark-mode.a2t-post-detail-page .a2t-content-pro,
body.dark.a2t-post-detail-page .a2t-content-pro {
  color: #d3dbea !important;
}

@media (max-width: 760px) {
  #loader-overlay {
    display: grid !important;
    place-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  #loader-overlay .loader-circle {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(.64) !important;
    transform-origin: center !important;
  }

  #loader-overlay .loader-content {
    font-size: 11px !important;
    letter-spacing: .01em !important;
  }

  .a2t-post-detail-page .x-content,
  .a2t-post-detail-page .section-bleed {
    background: var(--a2t-bg, #ffffff) !important;
  }

  .a2t-post-detail-page .a2t-blog-reader-pro {
    width: 100% !important;
    padding: 0 0 48px !important;
  }

  .a2t-post-detail-page .a2t-blog-pro-layout,
  .a2t-post-detail-page .a2t-reader-main-column {
    display: block !important;
    width: 100% !important;
  }

  .a2t-post-detail-page .a2t-article-pro.a2t-reader-card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .a2t-post-detail-page .a2t-article-hero {
    padding: 18px max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right)) !important;
  }

  .a2t-post-detail-page .a2t-article-kicker-pro {
    min-height: 24px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }

  .a2t-post-detail-page .a2t-article-title-pro {
    margin: 12px 0 16px !important;
    font-size: clamp(1.75rem, 8.4vw, 2.18rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.055em !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 16px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 12.5px !important;
  }

  .a2t-post-detail-page .a2t-meta-group {
    display: contents !important;
  }

  .a2t-post-detail-page .a2t-meta-stats {
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .a2t-post-detail-page .a2t-meta-byline .a2t-profile-link {
    display: none !important;
  }

  .a2t-post-detail-page .a2t-meta-group > span,
  .a2t-post-detail-page .a2t-meta-group > a {
    min-height: 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #53627a !important;
    font-weight: 700 !important;
    gap: 6px !important;
    letter-spacing: -.01em !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro i {
    color: #1268ff !important;
    font-size: 13px !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-label,
  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-likes,
  .a2t-post-detail-page .a2t-meta-category {
    display: none !important;
  }

  .a2t-post-detail-page .a2t-article-image-pro {
    margin-top: 8px !important;
    border-radius: 14px !important;
  }

  .a2t-post-detail-page .a2t-article-toolbar {
    display: flex !important;
    min-height: 0 !important;
    padding: 10px 0 12px !important;
    gap: 8px !important;
    border-bottom: 1px solid #e6edf6 !important;
  }

  .a2t-post-detail-page .a2t-share-wrap {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 0 !important;
  }

  .a2t-post-detail-page .a2t-share-wrap strong {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }

  .a2t-post-detail-page .a2t-share-grid {
    gap: 6px !important;
  }

  .a2t-post-detail-page .a2t-share-grid button {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    font-size: 13px !important;
  }

  .a2t-post-detail-page .a2t-like-button-pro {
    width: auto !important;
    min-width: 58px !important;
    height: 32px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 0 0 10px !important;
    border-radius: 999px !important;
  }

  .a2t-post-detail-page .a2t-like-button-pro span {
    display: none !important;
  }

  .a2t-post-detail-page .a2t-like-button-pro b {
    display: grid !important;
    min-width: 28px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    place-items: center !important;
    border-left: 1px solid #c7d9ff !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .a2t-post-detail-page .a2t-excerpt-pro,
  .a2t-post-detail-page .a2t-content-pro,
  .a2t-post-detail-page .a2t-article-footer-pro {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .a2t-post-detail-page .a2t-excerpt-pro {
    padding: 16px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e6edf6 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .a2t-post-detail-page .a2t-excerpt-pro h2 {
    font-size: 1.38rem !important;
  }

  .a2t-post-detail-page .a2t-content-pro {
    padding-top: 8px !important;
    font-size: 1.1rem !important;
    line-height: 1.78 !important;
  }

  .a2t-post-detail-page .a2t-content-pro h2 {
    padding-top: 24px !important;
    font-size: 1.52rem !important;
  }

  .a2t-post-detail-page .a2t-content-pro h3 {
    font-size: 1.28rem !important;
  }

  .a2t-post-detail-page .a2t-reader-aside {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .a2t-post-detail-page .a2t-article-hero {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .a2t-post-detail-page .a2t-excerpt-pro,
  .a2t-post-detail-page .a2t-content-pro,
  .a2t-post-detail-page .a2t-article-footer-pro {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  .a2t-post-detail-page .a2t-share-grid {
    gap: 5px !important;
  }

  .a2t-post-detail-page .a2t-share-grid button,
  .a2t-post-detail-page .a2t-like-button-pro {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  .a2t-post-detail-page .a2t-like-button-pro {
    width: auto !important;
    min-width: 54px !important;
  }

  .a2t-post-detail-page .a2t-like-button-pro b {
    min-width: 26px !important;
    min-height: 28px !important;
    padding: 0 7px !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] .a2t-post-detail-page .a2t-meta-group > span,
  html[data-theme="dark"] .a2t-post-detail-page .a2t-meta-group > a {
    border-color: transparent !important;
    background: transparent !important;
    color: #a8b3c7 !important;
  }

  html[data-theme="dark"] .a2t-post-detail-page .a2t-excerpt-pro,
  html[data-theme="dark"] .a2t-post-detail-page .a2t-article-toolbar {
    border-color: #253044 !important;
  }
}

/* Production polish: blog detail meta chips and CKEditor body media containment. */
@media (min-width: 761px) {
  .a2t-post-detail-page .a2t-article-meta-pro {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 16px 0 22px !important;
    padding: 12px !important;
    border: 1px solid #e4ebf5 !important;
    border-radius: 16px !important;
    background: #f8fbff !important;
    color: #53627a !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group {
    display: flex !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-byline {
    flex: 1 1 520px !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-stats {
    flex: 1 1 340px !important;
    justify-content: flex-end !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > span,
  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > a {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 34px !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 11px !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #344158 !important;
    box-shadow: 0 4px 14px rgba(12, 35, 76, .035) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > a:hover {
    border-color: #c9dcff !important;
    color: #1268ff !important;
    background: #f5f9ff !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-label,
  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-value,
  .a2t-post-detail-page .a2t-article-meta-pro time {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro i {
    flex: 0 0 auto !important;
    color: #1268ff !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 1120px) and (min-width: 761px) {
  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-stats {
    justify-content: flex-start !important;
  }
}

/* Keep imported CKEditor media and rich blocks inside the article timeline content lane. */
.a2t-post-detail-page .a2t-content-pro figure,
.a2t-post-detail-page .a2t-content-pro .image,
.a2t-post-detail-page .a2t-content-pro iframe,
.a2t-post-detail-page .a2t-content-pro video,
.a2t-post-detail-page .a2t-content-pro table,
.a2t-post-detail-page .a2t-content-pro .table,
.a2t-post-detail-page .a2t-content-pro .raw-html-embed,
.a2t-post-detail-page .a2t-content-pro .media,
.a2t-post-detail-page .a2t-content-pro > img {
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 52px) !important;
  margin: 20px 0 20px 52px !important;
  box-sizing: border-box !important;
}

.a2t-post-detail-page .a2t-content-pro figure img,
.a2t-post-detail-page .a2t-content-pro .image img,
.a2t-post-detail-page .a2t-content-pro picture img,
.a2t-post-detail-page .a2t-content-pro .media img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 18px !important;
  object-fit: contain !important;
}

.a2t-post-detail-page .a2t-content-pro figcaption {
  margin: 8px 0 0 !important;
  color: #53627a !important;
  font-size: .92rem !important;
  line-height: 1.5 !important;
}

.a2t-post-detail-page .a2t-content-pro iframe,
.a2t-post-detail-page .a2t-content-pro video {
  width: calc(100% - 52px) !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #071126 !important;
}

.a2t-post-detail-page .a2t-content-pro table {
  overflow-x: auto !important;
}

.a2t-post-detail-page .a2t-content-pro p:empty,
.a2t-post-detail-page .a2t-content-pro br + br {
  display: none !important;
}

html[data-theme="dark"] .a2t-post-detail-page .a2t-article-meta-pro {
  border-color: #253044 !important;
  background: #0b1220 !important;
  color: #a8b3c7 !important;
}

html[data-theme="dark"] .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > span,
html[data-theme="dark"] .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > a {
  border-color: #263248 !important;
  background: #111a2a !important;
  color: #d3dbea !important;
}

html[data-theme="dark"] .a2t-post-detail-page .a2t-content-pro figcaption {
  color: #a8b3c7 !important;
}

@media (max-width: 760px) {
  .a2t-post-detail-page .a2t-content-pro figure,
  .a2t-post-detail-page .a2t-content-pro .image,
  .a2t-post-detail-page .a2t-content-pro iframe,
  .a2t-post-detail-page .a2t-content-pro video,
  .a2t-post-detail-page .a2t-content-pro table,
  .a2t-post-detail-page .a2t-content-pro .table,
  .a2t-post-detail-page .a2t-content-pro .raw-html-embed,
  .a2t-post-detail-page .a2t-content-pro .media,
  .a2t-post-detail-page .a2t-content-pro > img {
    max-width: calc(100% - 44px) !important;
    margin-left: 44px !important;
  }

  .a2t-post-detail-page .a2t-content-pro iframe,
  .a2t-post-detail-page .a2t-content-pro video {
    width: calc(100% - 44px) !important;
  }
}

