/* Shared article typography for the public page and the editable preview. */
.news-article {
  --detail-ink: #000034;
  --detail-muted: #526177;
  --detail-blue: #274f85;
  --asg-orange: #ff7500;
  font-family: "Crossten", sans-serif;
}
.news-article [hidden] { display: none !important; }
.news-article .news-article-title {
  margin: 0;
  font-family: "Crossten", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 500;
  color: var(--detail-ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.news-article .news-article-standfirst {
  max-width: 64ch;
  margin: 22px 0 28px;
  color: var(--detail-muted);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  font-weight: 400;
}
.news-article .news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--detail-muted);
}
.news-article .news-article-meta a { color: var(--detail-ink); font-weight: 600; text-decoration: none; }
.news-article .news-article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.news-article .news-article-avatar { width: 28px; height: 28px; }
.news-article .news-article-header::after {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(45deg, #1498d0 0%, #000034 30%, #000034 70%, #85d014 100%);
}
.news-article .news-article-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}
.news-article .news-article-caption {
  background: transparent;
  border: 0;
  padding: 12px 0 0;
  font-size: .8125rem;
  color: var(--detail-muted);
  line-height: 1.5;
  max-width: 76ch;
  text-transform: none;
}
.news-article .news-article-header:has(.news-article-standfirst[hidden]) .news-article-meta { margin-top: 26px; }
  /* Article Content */
  .news-article :is(.news-article-content, #lexical-editor) {
    max-width: none;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 400;
    color: #29374a;
    overflow-wrap: anywhere;
  }
  .news-article :is(.news-article-content, #lexical-editor) p {
    margin: 0 0 1.35em;
    font-size: inherit;
    line-height: inherit;
  }
  .news-article :is(.news-article-content, #lexical-editor) p:last-child {
    margin-bottom: 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) h1,
  .news-article :is(.news-article-content, #lexical-editor) h2,
  .news-article :is(.news-article-content, #lexical-editor) h3,
  .news-article :is(.news-article-content, #lexical-editor) .lx-h1,
  .news-article :is(.news-article-content, #lexical-editor) .lx-h2,
  .news-article :is(.news-article-content, #lexical-editor) .lx-h3 {
    font-family: "Crossten", sans-serif;
    font-weight: 700;
    margin: 1.8em 0 .65em;
    line-height: 1.2;
    color: var(--detail-ink);
    letter-spacing: -.025em;
    scroll-margin-top: 128px;
  }
  .news-article :is(.news-article-content, #lexical-editor) > :first-child { margin-top: 0; }
  .news-article :is(.news-article-content, #lexical-editor) a { color: var(--detail-blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
  .news-article :is(.news-article-content, #lexical-editor) a:hover { color: var(--detail-ink); }
  .news-article :is(.news-article-content, #lexical-editor) ul, .news-article :is(.news-article-content, #lexical-editor) ol { padding-left: 1.4em; margin: 0 0 1.35em; }
  .news-article :is(.news-article-content, #lexical-editor) ul { list-style: disc; }
  .news-article :is(.news-article-content, #lexical-editor) ol { list-style: decimal; }
  .news-article :is(.news-article-content, #lexical-editor) li { margin-bottom: .45em; }
  .news-article :is(.news-article-content, #lexical-editor) li:not(.lx-li-check-unchecked):not(.lx-li-check-checked) { padding-left: .2em; }
  .news-article :is(.news-article-content, #lexical-editor) h1,
  .news-article :is(.news-article-content, #lexical-editor) .lx-h1 {
    font-size: 2rem;
  }
  .news-article :is(.news-article-content, #lexical-editor) h2,
  .news-article :is(.news-article-content, #lexical-editor) .lx-h2 {
    font-size: 1.6rem;
  }
  .news-article :is(.news-article-content, #lexical-editor) h3,
  .news-article :is(.news-article-content, #lexical-editor) .lx-h3 {
    font-size: 1.3rem;
  }

  /* Preserve editor alignments in published/preview content even with strong global styles. */
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align:center"],
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align: center"] {
    text-align: center !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align:right"],
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align: right"] {
    text-align: right !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align:justify"],
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align: justify"] {
    text-align: justify !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align:left"],
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align: left"] {
    text-align: left !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-align-left {
    text-align: left !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-align-center {
    text-align: center !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-align-right {
    text-align: right !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-align-justify {
    text-align: justify !important;
  }

  .news-article :is(.news-article-content, #lexical-editor) blockquote,
  .news-article :is(.news-article-content, #lexical-editor) .lx-quote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--asg-orange);
    background: #f4f6fa;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-style: inherit;
  }
  .news-article :is(.news-article-content, #lexical-editor) blockquote > :first-child,
  .news-article :is(.news-article-content, #lexical-editor) .lx-quote > :first-child {
    margin-top: 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) blockquote > :last-child,
  .news-article :is(.news-article-content, #lexical-editor) .lx-quote > :last-child {
    margin-bottom: 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) pre {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid #d8e1ef;
    background: #f0f3f9;
    color: #243850;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .news-article :is(.news-article-content, #lexical-editor) pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
  }


  .news-article :is(.news-article-content, #lexical-editor) .lx-youtube-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-youtube-frame-wrap {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-youtube-frame,
  .news-article :is(.news-article-content, #lexical-editor) .lx-youtube-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-youtube-chip {
    display: none;
  }

  .news-article :is(.news-article-content, #lexical-editor) img {
    display: block;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
  }
  .news-article :is(.news-article-content, #lexical-editor) .blog-inline-image-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
  }
  .news-article :is(.news-article-content, #lexical-editor) .blog-inline-image-media {
    position: relative;
    display: block;
    max-width: 100%;
  }
  .news-article :is(.news-article-content, #lexical-editor) .blog-inline-image-caption {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    font-size: 12px;
    color: #5b6270;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .news-article :is(.news-article-content, #lexical-editor) .blog-inline-image-alt-pill {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(12, 35, 65, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #334966;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(12, 35, 65, 0.08);
  }
  .news-article :is(.news-article-content, #lexical-editor) .blog-inline-image-alt-pill:hover {
    background: rgba(248, 251, 255, 0.98);
  }
  .news-article :is(.news-article-content, #lexical-editor) .blog-inline-image-alt-popover {
    position: absolute;
    right: 8px;
    bottom: 40px;
    max-width: min(320px, calc(100vw - 56px));
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(12, 35, 65, 0.14);
    background: rgba(255, 255, 255, 0.98);
    color: #31435f;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(12, 35, 65, 0.12);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    z-index: 2;
  }
  .news-article :is(.news-article-content, #lexical-editor) .blog-inline-image-alt-popover.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Image alignment fallback for content exported by the editor. */
  .news-article :is(.news-article-content, #lexical-editor) .lx-align-center > img,
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align:center"] > img,
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align: center"] > img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-align-right > img,
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align:right"] > img,
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align: right"] > img {
    display: block;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-align-left > img,
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align:left"] > img,
  .news-article :is(.news-article-content, #lexical-editor) [style*="text-align: left"] > img {
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout {
    --lx-col-left-width: 50%;
    --lx-col-divider-pad: 6px;
    display: flex;
    align-items: stretch;
    gap: 18px;
    position: relative;
    margin: 0.95rem 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout > .lx-column-item {
    min-width: 0;
    position: relative;
    box-sizing: border-box;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout > .lx-column-item:first-child {
    flex: 0 0 var(--lx-col-left-width);
    max-width: var(--lx-col-left-width);
    padding-right: var(--lx-col-divider-pad);
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout > .lx-column-item:last-child {
    flex: 1 1 auto;
    padding-left: var(--lx-col-divider-pad);
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout > .lx-column-item > :first-child {
    margin-top: 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout > .lx-column-item > :last-child {
    margin-bottom: 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout::before {
    content: "";
    position: absolute;
    left: var(--lx-col-left-width);
    top: 2px;
    bottom: 2px;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(62, 88, 132, 0.28);
    pointer-events: none;
  }
  .news-article :is(.news-article-content, #lexical-editor) hr,
  .news-article :is(.news-article-content, #lexical-editor) .lx-divider {
    display: block;
    margin: 1.15rem 0;
    border: 0;
    border-top: 1px solid #d5deeb;
  }


@media screen and (max-width: 900px) {
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout { flex-direction: column; gap: 12px; }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout > .lx-column-item:first-child,
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout > .lx-column-item:last-child {
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout::before,
  .news-article :is(.news-article-content, #lexical-editor) .lx-columns-layout::after { display: none; }
}

@media screen and (max-width: 600px) {
  .news-article .news-article-title { font-size: clamp(2rem, 7vw, 2.5rem); line-height: 1.12; }
  .news-article .news-article-standfirst { margin: 18px 0 24px; }
  .news-article .news-article-meta { align-items: start; justify-content: start; gap: 12px 20px; }
  .news-article .news-article-image { border-radius: 12px; }
  .news-article :is(.news-article-content, #lexical-editor) { font-size: 1.0625rem; }
  .news-article :is(.news-article-content, #lexical-editor) :is(h1, .lx-h1) { font-size: 1.75rem; }
  .news-article :is(.news-article-content, #lexical-editor) :is(h2, .lx-h2) { font-size: 1.5rem; }
}
