/* Article pages (/news/<slug>). Rides on the tokens defined in style.css. */

.post-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* masthead */
.post-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.post-head-in {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.post-home {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.post-home:hover { color: var(--accent); }
.post-back {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.post-back:hover { color: var(--accent); }

/* layout */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.pbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.pbadge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--muted)); }
.pbadge-open { color: var(--open); border-color: var(--open); background: var(--open-soft); }
.pbadge-closed { color: var(--muted); }
.post-read { color: var(--faint); }
.post-read::before { content: "· "; }

.post-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.post-standfirst {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-weight: 400;
}
.post-orgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.post-org {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Layman's Summary: the plain-language read, before the detail.
   Selectors are scoped under .post-body so they outrank the generic
   ".post-body h2 / p" body-copy rules this callout sits inside. */
.post-body .layman {
  margin: 0 0 34px;
  padding: 20px 24px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.post-body .layman-h {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.post-body .layman-body { font-size: 17px; line-height: 1.66; color: var(--ink); }
.post-body .layman-body p { margin: 0 0 0.85em; }
.post-body .layman-body p:last-child { margin-bottom: 0; }
.post-body .layman-body strong { font-weight: 650; }

/* body copy */
.post-body { font-size: 17.5px; line-height: 1.72; color: var(--ink-soft); }
.post-body > *:first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.post-body h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8em 0 0.5em;
}
.post-body ul, .post-body ol { margin: 0 0 1.25em; padding-left: 1.35em; }
.post-body li { margin-bottom: 0.5em; }
.post-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--accent); }
.post-body strong { color: var(--ink); font-weight: 650; }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.post-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 18.5px;
  line-height: 1.6;
}
.post-body blockquote p { margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* sources */
.post-sources {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.post-sources h2 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 14px;
}
.post-sources ul { list-style: none; margin: 0; padding: 0; }
.post-sources li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.post-sources li:last-child { border-bottom: 0; }
.post-sources a { color: var(--accent-ink); text-decoration: none; font-weight: 550; }
.post-sources a:hover { text-decoration: underline; }
.src-host { color: var(--faint); font-size: 12.5px; }
.post-note { margin: 16px 0 0; font-size: 13px; color: var(--faint); line-height: 1.55; }

/* footer nav */
.post-foot { margin-top: 40px; }
.post-back-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.post-back-btn:hover { border-color: var(--accent); color: var(--accent); }

.post-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.post-footer a { color: var(--accent-ink); text-decoration: none; }
.post-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .post-wrap { padding: 28px 20px 56px; }
  .post-head-in { padding: 0 20px; }
  .post-body { font-size: 17px; }
  .post-standfirst { font-size: 17.5px; }
}
