/* =========================================================
   A2TDEV Blog Detail Final Refinement
   Scope: public blog post detail page only.
   Purpose: compact meta chips + safe CKEditor article lane.
   ========================================================= */

.a2t-post-detail-page .a2t-blog-reader-pro {
  padding-top: 20px !important;
}

@media (min-width: 761px) {
  .a2t-post-detail-page .a2t-reader-card {
    border-color: #e2e8f0 !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .035) !important;
  }

  .a2t-post-detail-page .a2t-article-hero {
    padding: 28px 32px 0 !important;
  }

  .a2t-post-detail-page .a2t-article-kicker-pro {
    min-height: 28px !important;
    padding: 0 12px !important;
    border-color: #d7e5ff !important;
    background: #f3f7ff !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: .045em !important;
  }

  .a2t-post-detail-page .a2t-article-title-pro {
    max-width: 940px !important;
    margin: 16px 0 18px !important;
    font-size: clamp(2.35rem, 3.35vw, 3.35rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.058em !important;
  }

  /* Replace the oversized meta panel with clean, compact chips. */
  .a2t-post-detail-page .a2t-article-meta-pro {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #46566f !important;
  }

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

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-byline,
  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-stats {
    flex: 0 1 auto !important;
    justify-content: flex-start !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: 32px !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 12px !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #344158 !important;
    font-size: 12px !important;
    font-weight: 750 !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: #bcd4ff !important;
    background: #f6f9ff !important;
    color: #075df5 !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: 1 !important;
  }

  .a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-label {
    color: #63728a !important;
    font-weight: 700 !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;
  }

  .a2t-post-detail-page .a2t-article-image-pro {
    height: clamp(230px, 19vw, 300px) !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    background: #0b1220 !important;
  }

  .a2t-post-detail-page .a2t-article-image-pro img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .a2t-post-detail-page .a2t-article-toolbar {
    min-height: 56px !important;
    border-bottom-color: #e7edf5 !important;
  }

  .a2t-post-detail-page .a2t-excerpt-pro {
    margin: 0 32px !important;
    padding: 20px 0 18px !important;
    border-bottom: 1px solid #e7edf5 !important;
  }

  /* Robust rich-content lane: every CKEditor/imported element lives to the right of the line. */
  .a2t-post-detail-page .a2t-content-pro {
    --a2t-reader-gutter: 52px;
    position: relative !important;
    margin: 4px 32px 0 !important;
    padding: 6px 0 12px var(--a2t-reader-gutter) !important;
    overflow: visible !important;
    color: #273247 !important;
    font-size: 15.5px !important;
    line-height: 1.72 !important;
  }

  .a2t-post-detail-page .a2t-content-pro::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    top: 24px !important;
    bottom: 28px !important;
    left: 16px !important;
    width: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #c8d9ff 0%, #e1e9f8 88%, transparent 100%) !important;
  }

  .a2t-post-detail-page .a2t-main-content-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .a2t-post-detail-page .a2t-content-pro h1,
  .a2t-post-detail-page .a2t-content-pro h2,
  .a2t-post-detail-page .a2t-content-pro h3,
  .a2t-post-detail-page .a2t-content-pro h4 {
    position: relative !important;
    margin: 0 !important;
    padding: 30px 0 10px !important;
    color: #071126 !important;
    font-weight: 850 !important;
    letter-spacing: -.04em !important;
    line-height: 1.18 !important;
    scroll-margin-top: 105px !important;
  }

  .a2t-post-detail-page .a2t-content-pro h2 { font-size: clamp(1.65rem, 2vw, 2rem) !important; }
  .a2t-post-detail-page .a2t-content-pro h3 { font-size: clamp(1.28rem, 1.55vw, 1.48rem) !important; }
  .a2t-post-detail-page .a2t-content-pro h4 { font-size: 1.08rem !important; }

  .a2t-post-detail-page .a2t-content-heading-icon {
    position: absolute !important;
    left: calc(-1 * var(--a2t-reader-gutter)) !important;
    top: 24px !important;
    z-index: 2 !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #d9e6ff !important;
    background: #f1f6ff !important;
    color: #1268ff !important;
    box-shadow: 0 0 0 5px #ffffff !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,
  .a2t-post-detail-page .a2t-content-pro table,
  .a2t-post-detail-page .a2t-content-pro .table,
  .a2t-post-detail-page .a2t-content-pro figure,
  .a2t-post-detail-page .a2t-content-pro .image,
  .a2t-post-detail-page .a2t-content-pro .media,
  .a2t-post-detail-page .a2t-content-pro .raw-html-embed,
  .a2t-post-detail-page .a2t-content-pro iframe,
  .a2t-post-detail-page .a2t-content-pro video,
  .a2t-post-detail-page .a2t-content-pro > img {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !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-top: 0 !important;
    margin-bottom: 14px !important;
  }

  .a2t-post-detail-page .a2t-content-pro figure,
  .a2t-post-detail-page .a2t-content-pro .image,
  .a2t-post-detail-page .a2t-content-pro .media,
  .a2t-post-detail-page .a2t-content-pro > img {
    display: block !important;
    width: 100% !important;
    margin-top: 22px !important;
    margin-bottom: 22px !important;
    overflow: hidden !important;
    border-radius: 18px !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 .media img,
  .a2t-post-detail-page .a2t-content-pro p > img,
  .a2t-post-detail-page .a2t-content-pro > 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: 9px 0 0 !important;
    color: #53627a !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }

  .a2t-post-detail-page .a2t-content-pro blockquote {
    padding: 16px 18px !important;
    border-left: 3px solid #1268ff !important;
    border-radius: 14px !important;
    background: #f6f9ff !important;
  }

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

@media (max-width: 760px) {
  .a2t-post-detail-page .a2t-article-meta-pro {
    gap: 8px !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 {
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid #e0e7f2 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #344158 !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
  }

  .a2t-post-detail-page .a2t-content-pro {
    padding-left: 0 !important;
  }

  .a2t-post-detail-page .a2t-content-pro figure,
  .a2t-post-detail-page .a2t-content-pro .image,
  .a2t-post-detail-page .a2t-content-pro .media,
  .a2t-post-detail-page .a2t-content-pro > img,
  .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 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

html[data-theme="dark"] .a2t-post-detail-page .a2t-article-meta-pro,
body.dark-mode.a2t-post-detail-page .a2t-article-meta-pro,
body.dark.a2t-post-detail-page .a2t-article-meta-pro {
  background: transparent !important;
  border-color: transparent !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,
body.dark-mode.a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > span,
body.dark-mode.a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > a,
body.dark.a2t-post-detail-page .a2t-article-meta-pro .a2t-meta-group > span,
body.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-heading-icon,
body.dark-mode.a2t-post-detail-page .a2t-content-heading-icon,
body.dark.a2t-post-detail-page .a2t-content-heading-icon {
  border-color: #263248 !important;
  background: #111a2a !important;
  color: #82adff !important;
  box-shadow: 0 0 0 5px #0b101a !important;
}


/* Final micro-alignment: center timeline points with section heading text. */
@media (min-width: 761px) {
  .a2t-post-detail-page .a2t-content-pro h1,
  .a2t-post-detail-page .a2t-content-pro h2,
  .a2t-post-detail-page .a2t-content-pro h3,
  .a2t-post-detail-page .a2t-content-pro h4 {
    margin: 32px 0 12px !important;
    padding: 0 !important;
    min-height: 34px !important;
  }

  .a2t-post-detail-page .a2t-content-pro h1:first-child,
  .a2t-post-detail-page .a2t-content-pro h2:first-child,
  .a2t-post-detail-page .a2t-content-pro h3:first-child,
  .a2t-post-detail-page .a2t-content-pro h4:first-child {
    margin-top: 24px !important;
  }

  .a2t-post-detail-page .a2t-content-heading-icon {
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .a2t-post-detail-page .a2t-content-heading-icon i {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .a2t-post-detail-page .a2t-content-pro::before {
    top: 24px !important;
  }
}
