  .blog-detail-shell {
    --detail-bg: #ffffff;
    --detail-ink: #000034;
    --detail-muted: #526177;
    --detail-blue: #274f85;
    --detail-font: "Crossten", sans-serif;
    --blog-share-col: 48px;
    --blog-layout-gap: 32px;
    --blog-main-width: 900px;
    --blog-toc-width: 192px;
    --blog-sticky-offset: 112px;
    --asg-navy: #000034;
    --asg-orange: #ff7500;
    --asg-white: #fafafa;
    --blog-card: #ffffff;
    --blog-link-hover-tone: #f6ae6f;
  }

  .blog-detail-shell {
    background-color: var(--detail-bg);
    padding: 40px 0 80px;
    font-family: var(--detail-font);
    color: var(--detail-ink);
  }

  .blog-detail-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .blog-detail-breadcrumb { margin-bottom: 32px; }
  .blog-detail-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
  .blog-detail-breadcrumb li { display: inline-flex; align-items: center; gap: 12px; font-size: .8125rem; line-height: 1.5; font-weight: 500; color: var(--detail-muted); }
  .blog-detail-breadcrumb li + li::before { content: '/'; color: #8994a4; }
  .blog-detail-breadcrumb a { color: var(--detail-muted); text-decoration: none; }
  .blog-detail-breadcrumb a:hover { color: var(--detail-ink); text-decoration: underline; text-underline-offset: 4px; }

  .blog-head-main {
    width: min(
      var(--blog-main-width),
      calc(100% - var(--blog-share-col) - var(--blog-toc-width) - (var(--blog-layout-gap) * 2))
    );
    max-width: none;
    margin-left: calc(var(--blog-share-col) + var(--blog-layout-gap));
  }

  /* Header */
  .blog-header {
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 28px;
    position: relative;
  }

  .blog-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(45deg,
      #1498D0 0%,
      #000034 30%,
      #000034 70%,
      #85D014 100%);
  }


  .blog-header > .blog-title + .blog-meta-line { margin-top: 26px; }
  .blog-draft-label { color: #9d3118; font-weight: 600; }

  .blog-meta-line a {
    color: var(--detail-ink);
    text-decoration: none;
  }
  .blog-source-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f2d4f;
  }
  .blog-source-inline a {
    color: var(--detail-ink);
    font-weight: 600;
  }

  .blog-author-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 52, 0.16);
    background: #e8edf7;
    display: block;
    flex: 0 0 auto;
  }

  .blog-meta-separator {
    margin: 0 2px;
    color: #ccc;
  }

  /* Layout Grid */
  .blog-layout {
    display: grid;
    grid-template-columns: var(--blog-share-col) minmax(0, 1fr) var(--blog-toc-width);
    grid-template-areas: 'share article toc';
    gap: var(--blog-layout-gap);
    margin-top: 32px;
    align-items: start;
    position: relative;
  }

  /* Sidebar */
  .blog-share-sidebar {
    grid-area: share;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: var(--blog-sticky-offset);
    height: fit-content;
  }
  .blog-share-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--asg-navy);
    position: relative;
    flex: 0 0 auto;
  }
  .blog-share-label i {
    font-size: 1.35rem;
    color: var(--asg-navy);
  }
  .blog-share-label::after {
    content: "";
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 24px;
    height: 1px;
    background: rgba(81, 98, 122, 0.28);
    transform: translateX(-50%);
  }
  .share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--asg-white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--asg-navy);
    background-color: var(--asg-navy);
  }
  .share-icon:hover {
    transform: translateY(-1px) scale(1.04);
    background-color: var(--asg-orange);
    color: var(--asg-navy);
    border-color: var(--asg-orange);
    filter: brightness(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 52, 0.2);
  }

  /* Main Content Column */
  .blog-main-column {
    grid-area: article;
    width: 100%;
    min-width: 0;
    max-width: var(--blog-main-width);
  }

  /* Compact TOC on right column */
  .blog-toc-sidebar {
    grid-area: toc;
    position: -webkit-sticky;
    position: sticky;
    top: var(--blog-sticky-offset);
    align-self: start;
    height: fit-content;
    z-index: 299;
  }

  .blog-toc-sidebar.is-fixed,
  .blog-share-sidebar.is-fixed {
    position: fixed;
    top: var(--blog-sticky-offset);
    bottom: auto;
  }

  .blog-toc-sidebar.is-bottom,
  .blog-share-sidebar.is-bottom {
    grid-area: auto;
    position: absolute;
    top: auto;
    bottom: 0;
  }

  .blog-detail-shell [hidden] { display: none !important; }
  .blog-toc-disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; cursor: pointer; padding: 8px 0; }
  .blog-toc-disclosure > summary::-webkit-details-marker { display: none; }
  .blog-toc-title i { font-size: .65rem; transition: transform 180ms ease; }
  .blog-toc-disclosure[open] .blog-toc-title i { transform: rotate(180deg); }

  .blog-toc-title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #51627a;
    font-weight: 700;
  }

  .blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: min(calc(100vh - var(--blog-sticky-offset) - 76px), 560px);
    overflow: auto;
  }

  .blog-toc-item-link {
    display: block;
    text-decoration: none;
    color: #31435f;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.85rem;
    line-height: 1.32;
  }

  .blog-toc-item-link:hover {
    background: #eef4ff;
    color: var(--asg-navy);
  }

  .blog-toc-item-link.active {
    background: #dce8f8;
    color: var(--asg-navy);
    font-weight: 700;
  }

  .blog-toc-item.level-h2 .blog-toc-item-link {
    padding-left: 16px;
    font-size: 0.82rem;
  }

  .blog-toc-item.level-h3 .blog-toc-item-link {
    padding-left: 24px;
    font-size: 0.8rem;
    color: #52647e;
  }

  .blog-toc-empty {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7d95;
  }

  /* Hero Image and Caption */
  .blog-hero-image-wrap {
    width: 100%;
    margin: 0 0 36px;
  }
  .blog-hero-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
  }
  .caption-credit {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #636262;
    margin-top: 4px;
  }

  /* Staff Editing Link */
  .blog-article-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid #e2e7ee; }
  .blog-article-end a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: .875rem; font-weight: 600; text-decoration: none; }
  .blog-original-link { color: var(--detail-ink); }
  .blog-original-link i { color: #9c4d00; font-size: .85em; }
  .blog-return-link { color: var(--detail-muted); }
  .blog-article-end a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .blog-detail-shell :focus-visible { outline: 2px solid #335aa5; outline-offset: 4px; }
  .blog-footer-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
  .blog-portal-link {
    display: inline-flex;
    color: var(--detail-blue);
    text-decoration: none;
    font-weight: 700;
  }

  /* Editorial related stories */
  .blog-related {
    max-width: 1200px;
    margin: 72px auto 0;
    border-top: 1px solid #e2e7ee;
    padding: 36px 0 0;
  }
  .blog-related h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 500;
    letter-spacing: -.03em;
    margin-bottom: 24px;
    color: var(--detail-ink);
  }
  .blog-related-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 32px;
  }
  .blog-related-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .blog-related-card-body { display: flex; flex-direction: column; align-items: start; gap: 12px; }
  .blog-related-card:only-child { grid-column: 1 / -1; }
  .blog-related-card:only-child:not(.blog-related-card--text) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; }
  .blog-related-card--text { max-width: 780px; }
  .blog-related-image-link { display: block; }
  .blog-related-card-image {
    border-radius: 14px;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .blog-related-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--detail-muted);
    font-size: .75rem;
    flex-wrap: wrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
  }
  .blog-related-card-title {
    margin: 0;
    font-family: "Crossten", sans-serif;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -.025em;
    color: var(--detail-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .blog-related-card-title a { color: inherit; text-decoration: none; }
  .blog-related-card-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .blog-related-card p {
    margin: 0;
    color: #334761;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .blog-related-card-link {
    margin-top: auto;
    color: var(--detail-ink);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    transition: color 0.22s ease;
  }
  .blog-related-card-link:hover,
  .blog-related-card-link:focus-visible {
    color: var(--detail-blue);
    text-decoration: none;
  }
  .blog-related-card-link::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.72em;
    margin-left: 6px;
    color: currentColor;
  }

  @media (max-width: 991px) {
    .blog-related-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 768px) {
    .blog-related-grid {
      grid-template-columns: 1fr;
    }
  }

  @media print {
    @page {
      size: auto;
      margin: 0.5in;
    }

    html,
    body {
      margin: 0 !important;
      padding: 0 !important;
      background: #fff !important;
      height: auto !important;
      overflow: visible !important;
    }

    body > * {
      display: none !important;
    }

    body > .blog-detail-shell {
      display: block !important;
    }

    .blog-detail-shell {
      position: static !important;
      left: 0 !important;
      top: 0 !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      background: #fff !important;
      color: #000 !important;
      overflow: visible !important;
    }

    .blog-detail-wrap {
      max-width: none !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      box-sizing: border-box !important;
      overflow: visible !important;
    }

    .blog-head-main {
      width: 100% !important;
      margin: 0 !important;
      max-width: none !important;
    }

    .blog-detail-breadcrumb,
    .blog-share-sidebar,
    .blog-toc-sidebar,
    .blog-related,
    .blog-footer-actions,
    .blog-article-end {
      display: none !important;
    }

    .blog-layout {
      display: block !important;
      grid-template-columns: none !important;
      gap: 0 !important;
    }

    .blog-main-column {
      width: 100% !important;
      max-width: none !important;
      overflow: visible !important;
    }

    #blog-post-content,
    .blog-content {
      break-inside: auto !important;
      page-break-inside: auto !important;
      overflow: visible !important;
    }

    .blog-header,
    .blog-hero-image-wrap,
    .blog-content .lx-columns-layout,
    .blog-content .blog-inline-image-wrap,
    .blog-content blockquote,
    .blog-content .lx-quote {
      break-inside: avoid;
      page-break-inside: avoid;
    }

    /* Keep editor two-column blocks as two columns in print output. */
    .blog-content .lx-columns-layout {
      --lx-col-left-width: 50%;
      --lx-col-divider-pad: 6px;
      display: flex !important;
      flex-direction: row !important;
      align-items: stretch !important;
      gap: 18px !important;
      margin: 0.95rem 0 !important;
      position: relative !important;
    }

    .blog-content .lx-columns-layout > .lx-column-item:first-child {
      flex: 0 0 var(--lx-col-left-width) !important;
      max-width: var(--lx-col-left-width) !important;
      padding-right: var(--lx-col-divider-pad) !important;
      padding-left: 0 !important;
    }

    .blog-content .lx-columns-layout > .lx-column-item:last-child {
      flex: 1 1 auto !important;
      max-width: none !important;
      padding-left: var(--lx-col-divider-pad) !important;
      padding-right: 0 !important;
    }

    .blog-content .lx-columns-layout::before {
      display: block !important;
      content: "" !important;
      position: absolute !important;
      left: var(--lx-col-left-width) !important;
      top: 2px !important;
      bottom: 2px !important;
      width: 1px !important;
      transform: translateX(-50%) !important;
      background: rgba(62, 88, 132, 0.28) !important;
      pointer-events: none !important;
    }
  }

  @media screen and (max-width: 900px) {
    .blog-detail-shell { padding-top: 28px; }
    .blog-detail-breadcrumb { margin-bottom: 24px; }
    .blog-head-main {
      width: 100%;
      max-width: 100%;
      margin-left: 0;
    }
    .blog-layout {
      grid-template-columns: 1fr;
      grid-template-areas: 'share' 'toc' 'article';
      gap: 24px;
    }
    .blog-layout--no-toc { grid-template-areas: 'share' 'article'; }
    .blog-share-sidebar {
      flex-direction: row;
      flex-wrap: wrap;
      position: static;
      margin-bottom: 0;
      justify-content: flex-start;
    }
    .blog-share-label {
      margin-right: 4px;
    }
    .blog-share-label::after {
      top: calc(100% + 6px);
    }
    .blog-toc-sidebar {
      position: static;
      background: #f4f6fa;
      padding: 10px 16px;
      border-radius: 12px;
      z-index: auto;
    }
    .blog-toc-title { margin: 0; }
    .blog-toc-list { max-height: 240px; margin-top: 8px; }
    .blog-content .lx-columns-layout {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 0.95rem 0;
    }
    .blog-content .lx-columns-layout > .lx-column-item:first-child,
    .blog-content .lx-columns-layout > .lx-column-item:last-child {
      flex: 1 1 auto;
      max-width: none;
      padding-left: 0;
      padding-right: 0;
    }
    .blog-content .lx-columns-layout::before {
      display: none;
    }
  }

  @media screen and (max-width: 600px) {
    .blog-detail-shell { padding-bottom: 48px; }
    .blog-detail-wrap { padding: 0 22px; }
          .blog-share-sidebar { gap: 14px; }
    .blog-share-label { display: none; }
    .blog-content { font-size: 1.0625rem; }
    .blog-content h1 { font-size: 1.75rem; }
    .blog-content h2 { font-size: 1.5rem; }
      .blog-related { margin-top: 48px; padding-top: 28px; }
    .blog-related-card:only-child:not(.blog-related-card--text) { display: flex; gap: 18px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .blog-detail-shell *, .blog-detail-shell *::before, .blog-detail-shell *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  }
