/* Article reading refresh — 2026-11-14
   Loaded after the established editorial styles. It adds hierarchy without
   changing the editorial text or evidence records. */

.article-page .reading-main {
  padding-bottom: 28px;
}

/* Put the page answer in a clearly identifiable, skimmable reading card. */
.article-page article > h1 + p:not(.article-meta) {
  position: relative;
  max-width: 760px;
  margin: 0 0 32px;
  padding: 28px 30px 26px;
  border: 1px solid #cfe0d4;
  border-left: 5px solid #4e8a68;
  border-radius: 0 16px 16px 0;
  background:
    linear-gradient(135deg, #f2f8f3 0%, #fbfcf9 68%),
    #fbfcf9;
  box-shadow: 0 12px 30px rgba(28, 65, 48, .07);
  color: #274b42;
}

.article-page article > h1 + p:not(.article-meta)::before {
  content: "THE SHORT ANSWER";
  display: block;
  margin: 0 0 9px;
  color: #3d735b;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .13em;
  line-height: 1.25;
}

/* Dates, method and evidence links read as a deliberate research strip. */
.article-page .article-evidence {
  gap: 8px 18px;
  margin: 0 auto 30px;
  max-width: 720px;
  padding: 13px 16px;
  border: 1px solid #d6e5da;
  border-left: 4px solid #6b9a75;
  border-radius: 10px;
  background: #f3f8f3;
  box-shadow: 0 6px 20px rgba(27, 61, 47, .045);
}

.article-page .article-evidence span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-page .article-evidence span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #6b9a75;
}

.article-page .article-evidence a {
  margin-left: auto;
  color: #225d47;
  text-decoration-thickness: 1px;
}

/* Make each question feel like a new, deliberate section of the field note. */
.article-page .article-body h2 {
  position: relative;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid #dbe6df;
  color: #173f39;
}

.article-page .article-body > h2:first-child,
.article-page .article-body .article-hero + h2 {
  margin-top: 36px;
}

.article-page .article-body h2::before {
  content: "FIELD NOTE";
  display: block;
  margin-bottom: 8px;
  color: #5c866c;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .14em;
  line-height: 1;
}

.article-page .article-body h2 + p {
  color: #304c4b;
  font-size: 1.04em;
}

/* Preserve literal records as a distinct visual component. */
.article-page .article-body :is(pre, blockquote) {
  position: relative;
  margin: 30px 0;
  padding: 42px 20px 20px;
  border: 1px solid #cbded1;
  border-left: 4px solid #5f9873;
  border-radius: 12px;
  background: #edf6ef;
  box-shadow: inset 0 1px 0 #ffffffb8;
  color: #24423a;
}

.article-page .article-body :is(pre, blockquote)::before {
  content: "SOURCE EXCERPT";
  position: absolute;
  top: 15px;
  left: 20px;
  color: #4e7c62;
  font: 750 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .13em;
}

.article-page .article-body blockquote > :last-child,
.article-page .article-body pre > :last-child {
  margin-bottom: 0;
}

.article-page .article-body figcaption {
  padding-left: 12px;
  border-left: 2px solid #c2d8c7;
}

.article-page .article-body .table-wrap {
  margin: 32px 0;
  border-color: #cadbd0;
  box-shadow: 0 8px 22px rgba(21, 57, 43, .045);
}

.article-page .article-body th {
  background: #e7f1e9;
  color: #214a3d;
}

.article-page .article-body tr:hover td {
  background: #f3f8f3;
}

.article-page .article-toc {
  border-radius: 10px;
  background: #fbfcfa;
}

/* Keep editorial images on the same measure as the prose they illustrate. */
.article-page {
  --article-copy-measure: 720px;
}

.article-page article > figure,
.article-page .article-body > figure {
  width: 100%;
  max-width: var(--article-copy-measure);
  margin: 34px auto;
}

.article-page article > figure :is(img, svg),
.article-page .article-body > figure :is(img, svg) {
  display: block;
  width: 100%;
  height: auto;
}

.article-page article > figure figcaption,
.article-page .article-body > figure figcaption {
  max-width: var(--article-copy-measure);
}

/* A recommendation card can be text-only; do not reserve a missing image slot. */
.article-page .related-reading {
  width: 100%;
  max-width: var(--article-copy-measure);
  margin: 56px auto 24px;
}

.article-page .related-reading-grid,
.article-page .related-story {
  min-width: 0;
}

.article-page .related-reading-grid > .related-story:has(> div:only-child) {
  grid-column: 1 / -1;
}

.article-page .related-story :is(h3, p) {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .article-page article > h1 + p:not(.article-meta) {
    margin-bottom: 26px;
    padding: 22px 19px 20px;
    border-left-width: 4px;
    border-radius: 0 12px 12px 0;
  }

  .article-page .article-evidence {
    display: grid;
    gap: 8px;
    padding: 12px 13px;
  }

  .article-page .article-evidence a { margin-left: 0; }

  .article-page .article-body h2 {
    margin-top: 44px;
    padding-top: 19px;
  }

  .article-page .article-body :is(pre, blockquote) {
    margin: 25px 0;
    padding: 39px 15px 16px;
    border-radius: 10px;
  }

  .article-page .article-body :is(pre, blockquote)::before { left: 15px; }

  .article-page article > figure,
  .article-page .article-body > figure {
    margin-block: 26px;
  }

  .article-page .related-reading {
    margin-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-page .article-body tr:hover td { background: inherit; }
}
