/* Signal prose: book-like justified measure with language-aware hyphenation. */
.signal-post .article-body p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

/*
 * 1999 desktop Signals: the record follows the reader in the open right field,
 * mirroring the free-standing navigation on the left. The related list remains
 * part of the article flow.
 */
@media (min-width: 84rem) {
  html[data-mode="1999"] body.signal-post > .site-main {
    overflow: visible !important;
  }

  html[data-mode="1999"] body.signal-post .article-layout {
    position: relative;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }

  html[data-mode="1999"] body.signal-post .article-body {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  html[data-mode="1999"] body.signal-post .article-aside {
    display: contents !important;
    position: static !important;
  }

  html[data-mode="1999"] body.signal-post .article-record {
    position: sticky !important;
    top: 0.75rem !important;
    z-index: 20;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    width: min(10rem, calc(50vw - 33.5rem)) !important;
    min-width: 8.5rem;
    display: grid !important;
    gap: 0.42rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateX(calc(100% + 5.5rem));
  }

  html[data-mode="1999"] body.signal-post .article-record > div {
    min-width: 0;
    display: block !important;
    padding: 0.52rem 0.58rem !important;
    border: 2px outset var(--1999-border, #ffff00) !important;
    color: var(--1999-ink, #ffff66) !important;
    background: var(--1999-tileB, #000033) !important;
    box-shadow: 2px 2px 0 #000 !important;
    text-align: left;
  }

  html[data-mode="1999"] body.signal-post .article-record dt {
    display: block;
    margin: 0 0 0.16rem;
    color: var(--1999-link, #00ffff) !important;
    font-size: 0.61rem !important;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0 !important;
    text-transform: uppercase;
  }

  html[data-mode="1999"] body.signal-post .article-record dd {
    display: block;
    margin: 0 !important;
    color: var(--1999-ink, #ffff66) !important;
    font-size: 0.72rem !important;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  html[data-mode="1999"] body.signal-post .article-related-mini {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin-top: 0 !important;
  }
}

/* Avoid exaggerated rivers on the narrowest phone measures. */
@media (max-width: 30rem) {
  .signal-post .article-body p {
    text-align: start;
  }
}
