/* ProjectForty2 design system.
 *
 * One stylesheet for the whole public site. Two scopes:
 *   - Chrome (.p42-skip, .p42-header, .p42-footer) is self-contained and
 *     safe on every page, including older pages that carry their own CSS.
 *   - Page styles apply only under body.p42. Older pages get body.p42-legacy,
 *     which only lifts low-contrast text tokens.
 *
 * The site is a research record, set like one: a void ground, ivory text,
 * a serif for titles, a sans for reading, a mono for dates and ids only.
 * Gold is the brand ring. It marks the masthead rule, the current page,
 * a promoted result and little else. Rules, not boxes, separate things.
 */

:root { color-scheme: dark; }

/* Tokens live on new pages and on the chrome, not on :root, so older pages
   keep their own palettes. */
body.p42,
.p42-skip,
.p42-header,
.p42-footer {
  --void: #050509;
  --deep: #0a0a10;
  --raise: #0f0f16;
  --raise-2: #15151e;
  --ink: #f4efe4;
  --text: #d6d1c6;
  --soft: #aea89b;
  --muted: #8a8478;
  --rule: rgba(244, 239, 228, 0.12);
  --rule-strong: rgba(244, 239, 228, 0.26);
  --gold: #e0a43a;
  --gold-ink: #efc06a;
  --gold-wash: rgba(224, 164, 58, 0.1);
  --cyan: #7fd3c8;
  --cyan-wash: rgba(127, 211, 200, 0.1);
  --green: #7ddc9a;
  --amber: #e8a35f;
  --rose: #ef7c92;
  --violet: #b39ddb;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-sm: 2px;
  --r: 3px;
  --r-lg: 4px;
  --wrap: 1120px;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 60px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ---------- Chrome: skip link ---------- */

.p42-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: #15100a !important;
  font: 600 14px/1.2 var(--sans);
  text-decoration: none !important;
}
.p42-skip:focus { top: 12px; outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Chrome: masthead ---------- */

.p42-header,
.p42-header *,
.p42-footer,
.p42-footer * { box-sizing: border-box; }

.p42-header {
  position: relative;
  z-index: 900;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  transform: none;
  border: 0;
  border-bottom: 1px solid rgba(224, 164, 58, 0.5);
  background: var(--void);
  color: var(--text);
  font: 400 15px/1.4 var(--sans);
  letter-spacing: normal;
  text-transform: none;
}
.p42-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.p42-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink) !important;
  text-decoration: none !important;
  border: 0 !important;
}
.p42-brand svg { display: block; width: 30px; height: 30px; flex: none; }
.p42-wordmark {
  font: 500 22px/1 var(--serif);
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
}
.p42-wordmark em { font-style: italic; color: inherit; }

.p42-primary { display: block; margin: 0 0 0 auto; padding: 0; border: 0; background: none; position: static; }
.p42-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p42-nav > li { position: relative; margin: 0; padding: 0; list-style: none; }
.p42-nav a,
.p42-nav summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 0;
  color: var(--soft) !important;
  font: 500 15px/1 var(--sans);
  text-decoration: none !important;
  border-bottom: 0 !important;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  background: transparent;
  transition: color 0.15s ease;
}
.p42-nav summary::-webkit-details-marker { display: none; }
.p42-nav summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}
.p42-nav a:hover,
.p42-nav summary:hover,
.p42-nav details[open] > summary { color: var(--ink) !important; }
.p42-nav a[aria-current="page"],
.p42-nav .is-current > summary {
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--gold) !important;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}

.p42-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 920;
  width: 280px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  background: var(--deep);
  box-shadow: var(--shadow);
}
.p42-drop li { margin: 0; padding: 0; list-style: none; }
.p42-drop a {
  display: block;
  min-height: 0;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  white-space: normal;
  text-decoration: none !important;
}
.p42-drop a:hover { background: rgba(244, 239, 228, 0.05); }
.p42-drop a strong { display: block; color: var(--ink); font: 500 15px/1.3 var(--sans); }
.p42-drop a span { display: block; margin-top: 2px; color: var(--muted); font: 400 13px/1.4 var(--sans); }
.p42-drop a[aria-current="page"] strong { color: var(--gold); }
.p42-nav > li:nth-last-child(-n+3) .p42-drop { left: auto; right: 0; }

.p42-mobile { display: none; margin-left: auto; }
.p42-mobile > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  list-style: none;
}
.p42-mobile > summary::-webkit-details-marker { display: none; }
.p42-mobile > summary span[aria-hidden] { display: inline-block; width: 14px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
.p42-mobile > summary span[aria-hidden]::after { content: ""; position: absolute; left: 0; right: 0; top: 3.5px; border-top: 1px solid currentColor; }
.p42-mobile[open] > summary { background: rgba(244, 239, 228, 0.06); }
.p42-mobile__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 930;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 4px var(--gutter) 24px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--deep);
  box-shadow: var(--shadow);
}
.p42-mobile__group { padding: 14px 0 10px; border-bottom: 1px solid var(--rule); }
.p42-mobile__group:last-child { border-bottom: 0; }
.p42-mobile__label {
  margin: 0 0 4px;
  color: var(--muted);
  font: 500 12.5px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p42-mobile__panel a {
  display: block;
  padding: 8px 0;
  color: var(--ink) !important;
  font: 500 17px/1.3 var(--sans);
  text-decoration: none !important;
  border: 0 !important;
}
.p42-mobile__panel a span { display: block; margin-top: 1px; color: var(--muted); font: 400 13.5px/1.35 var(--sans); }
.p42-mobile__panel a[aria-current="page"] { color: var(--gold) !important; }

@media (max-width: 1080px) {
  .p42-primary { display: none; }
  .p42-mobile { display: block; }
}
@media (max-width: 420px) {
  .p42-wordmark { font-size: 20px; }
  .p42-brand svg { width: 27px; height: 27px; }
}


/* ---------- Chrome: chronology strip ----------
   The last six months of evidence, on every page. Today is the gold line. */

.p42-strip { display: block; border-top: 1px solid var(--rule); background: var(--void); }
.p42-strip[hidden] { display: none; }
.p42-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter) 0;
}
.p42-strip__label { flex: none; color: var(--muted); font: 500 12px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.p42-strip__label--end { color: var(--gold); }
.p42-strip__note { max-width: var(--wrap); margin: 0 auto; padding: 2px var(--gutter) 8px; color: var(--soft); font: 400 13.5px/1.4 var(--sans); }
.p42-strip__note:empty { padding-top: 0; padding-bottom: 10px; }
/* The page reset (.p42 :where(p) { margin: 0 }) comes later at the same specificity; keep the note centred. */
.p42-header .p42-strip__note { margin: 0 auto; }
.p42-strip__short { display: none; }
@media (max-width: 600px) {
  .p42-strip__long { display: none; }
  .p42-strip__short { display: inline; }
}
.p42-strip__back { color: var(--soft) !important; text-decoration: none !important; }
.p42-strip__back:hover { color: var(--gold-ink) !important; }
@media (max-width: 600px) {
  .p42-strip__label { display: none; }
  .p42-strip__label--end { display: inline; }
}

/* ---------- Time axis ---------- */

.axis { position: relative; flex: 1 1 auto; height: 18px; min-width: 0; }
.axis::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule-strong); }
.axis__tick { position: absolute; top: 4px; bottom: 4px; border-left: 1px solid var(--rule); }
.axis__dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: currentColor;
  color: var(--soft);
}
.axis__dot.is-entry { width: 1px; height: 9px; margin: -4.5px 0 0 0; border-radius: 0; background: var(--soft); opacity: 0.75; }
.axis__dot.is-fresh { color: var(--green); }
.axis__dot.is-aging { color: var(--amber); }
.axis__dot.is-resting { color: var(--muted); }
.axis__dot.is-live { color: var(--cyan); }
.axis__dot.is-promoted { color: var(--gold); }
.axis__dot.is-older { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.axis__dot.is-big { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; box-shadow: 0 0 0 2px var(--void), 0 0 0 3px var(--ink); z-index: 1; }
.axis__now { position: absolute; right: 0; top: 0; bottom: 0; border-left: 1px solid var(--gold); }
.axis--ruler { height: 18px; }
.axis--ruler::before { display: none; }
.axis--ruler span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font: 500 12px/1.5 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.axis--ruler .axis__today { left: auto; right: 0; transform: none; color: var(--gold); }

/* Clock rows: a label, its place on the shared axis, its date, its state. */
.p42 .clock { display: grid; border-top: 1px solid var(--rule-strong); }
.p42 .clock__head,
.p42 .clock__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(200px, 1fr) 118px 96px;
  gap: 6px 24px;
  align-items: center;
}
.p42 .clock__head {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p42 .clock__row { padding: 11px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.p42 a.clock__row:hover .clock__title { color: var(--gold-ink); }
.p42 .clock__title { display: block; color: var(--ink); font: 500 1.02rem/1.3 var(--sans); }
.p42 .clock__sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.p42 .clock__when { color: var(--soft); font: 400 13px/1.5 var(--mono); }
.p42 .clock__when small { display: block; color: var(--muted); font-size: 12px; }
.p42 .clock__state { justify-self: end; }
.p42 .clock__glyph { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border: 1px solid rgba(224, 164, 58, 0.6); border-radius: 50%; color: var(--gold); font: italic 500 12px/1 var(--serif); vertical-align: -5px; }
@media (max-width: 860px) {
  .p42 .clock__head { display: none; }
  .p42 .clock__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .p42 .clock__row .axis { grid-column: 1 / -1; order: 3; }
  .p42 .clock__when { grid-column: 1; }
  .p42 .clock__state { grid-column: 2; grid-row: 1; }
}

/* ---------- Chrome: colophon ---------- */

.p42-footer {
  position: relative;
  display: block;
  margin: 96px 0 0;
  padding: 44px 0 36px;
  border-top: 1px solid var(--rule);
  background: var(--void);
  color: var(--soft);
  font: 400 15px/1.55 var(--sans);
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
}
.p42-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 1fr));
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.p42-footer p { margin: 14px 0 0; max-width: 38ch; color: var(--soft); font-size: 14.5px; }
.p42-footer h2 {
  margin: 6px 0 10px;
  color: var(--muted);
  font: 500 12.5px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p42-footer ul { margin: 0; padding: 0; list-style: none; }
.p42-footer li { margin: 0 0 6px; padding: 0; list-style: none; }
.p42-footer a { color: var(--text) !important; text-decoration: none !important; border: 0 !important; }
.p42-footer a:hover { color: var(--ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.p42-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  max-width: var(--wrap);
  margin: 36px auto 0;
  padding: 16px var(--gutter) 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 400 13px/1.5 var(--sans);
}
.p42-footer__base a { color: var(--soft) !important; }
@media (max-width: 860px) {
  .p42-footer__inner { grid-template-columns: 1fr 1fr; }
  .p42-footer__brand { grid-column: 1 / -1; }
}

.p42-header a:focus-visible,
.p42-header summary:focus-visible,
.p42-footer a:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}

/* ---------- Legacy pages: readable grey text ---------- */

body.p42-legacy {
  --muted: #8d8aa8;
  --dim: #6f6c8c;
}
/* The ledger pages keep their own layout; these rules give them the site's
   restraint: gold only for state, rules instead of boxes, no gradients. */
body.p42-legacy .hero-title em,
body.p42-legacy .section-title em { color: inherit; }
body.p42-legacy .declaration,
body.p42-legacy .quick-view,
body.p42-legacy .stat,
body.p42-legacy .card,
body.p42-legacy .res-link {
  border: 0;
  border-top: 1px solid rgba(247, 242, 232, 0.2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.p42-legacy .declaration { text-align: left; border-bottom: 1px solid rgba(247, 242, 232, 0.12); }
body.p42-legacy .res-link:hover { transform: none; border-top-color: #e0a43a; }
body.p42-legacy .section-line { background: rgba(247, 242, 232, 0.12); }
body.p42-legacy .stat-value { color: #f4efe4; }
body.p42-legacy .declaration-text em { color: inherit; }
body.p42-legacy .declaration-title { color: #aea89b; font-family: "DM Sans", system-ui, sans-serif; font-size: 12.5px; letter-spacing: 0.08em; }
body.p42-legacy .label,
body.p42-legacy .card-tag,
body.p42-legacy .res-tag,
body.p42-legacy .section-num,
body.p42-legacy .quick-view .qv-tag,
body.p42-legacy .quick-view .qv-expand summary {
  padding: 0;
  border: 0;
  background: transparent;
  color: #aea89b;
  opacity: 1;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
body.p42-legacy .quick-view .qv-tier-2,
body.p42-legacy .quick-view .qv-meta { border-radius: 0; background: transparent; }
body.p42-legacy .pf2-legacy-nav,
body.p42-legacy #pf2-fluid-menu { display: none !important; }
body.p42-legacy .page,
body.p42-legacy main { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  body.p42-legacy table { display: block; max-width: 100%; overflow-x: auto; }
  body.p42-legacy pre { max-width: 100%; overflow-x: auto; }
  body.p42-legacy img, body.p42-legacy svg, body.p42-legacy canvas { max-width: 100%; height: auto; }
}

/* ---------- Page base (new pages) ---------- */

body.p42 {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.p42 *, .p42 *::before, .p42 *::after { box-sizing: border-box; }
.p42 main { display: block; }
.p42 :where(h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote) { margin: 0; }
.p42 :where(ul, ol) { padding: 0; list-style: none; }
.p42 img, .p42 svg { max-width: 100%; }
.p42 a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(244, 239, 228, 0.35); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.p42 a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
.p42 :focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 2px; }
.p42 ::selection { background: rgba(224, 164, 58, 0.35); color: var(--ink); }
.p42 strong { color: var(--ink); font-weight: 600; }
.p42 code, .p42 kbd { font-family: var(--mono); font-size: 0.86em; color: var(--ink); }
.p42 hr { height: 1px; margin: 0; border: 0; background: var(--rule); }
.p42 [hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.p42 .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.p42 .narrow { max-width: 760px; }
.p42 .section { padding: clamp(48px, 7vw, 88px) 0 0; }
.p42 .section--tight { padding-top: clamp(32px, 4vw, 52px); }

/* ---------- Type ----------
   Scale: 13 / 15 / 17 / 19.5 / 22 / 29 / 38 / 52 (approximately 1.33). */

.p42 .kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font: 500 13px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p42 .kicker--muted { color: var(--muted); }
.p42 .display {
  color: var(--ink);
  font: 500 clamp(2.5rem, 5.2vw, 4.25rem)/1.04 var(--serif);
  letter-spacing: -0.012em;
}
.p42 .display em, .p42 .h1 em, .p42 .h2 em, .p42 .h3 em { font-style: italic; color: inherit; }
.p42 .h1 {
  color: var(--ink);
  font: 500 clamp(2.2rem, 4vw, 3.3rem)/1.08 var(--serif);
  letter-spacing: -0.008em;
}
.p42 .h2 {
  color: var(--ink);
  font: 500 clamp(1.7rem, 2.5vw, 2.2rem)/1.15 var(--serif);
}
.p42 .h3 {
  color: var(--ink);
  font: 600 1.3rem/1.3 var(--serif);
}
.p42 .h4 { color: var(--ink); font: 600 1rem/1.4 var(--sans); }
.p42 .lede { max-width: 60ch; color: var(--text); font-size: clamp(1.06rem, 1.4vw, 1.17rem); line-height: 1.55; }
.p42 .body-copy { max-width: var(--measure); color: var(--text); }
.p42 .body-copy > * + * { margin-top: 1em; }
.p42 .body-copy h2, .p42 .body-copy h3 { margin-top: 1.8em; }
.p42 .body-copy ul { padding-left: 1.2em; list-style: disc; }
.p42 .body-copy li + li { margin-top: 0.4em; }
.p42 .meta { color: var(--muted); font: 400 13.5px/1.5 var(--sans); letter-spacing: 0; }
.p42 .meta a { color: var(--soft); }
.p42 .muted { color: var(--muted); }
.p42 .num { font-variant-numeric: lining-nums tabular-nums; }
.p42 .mono { font-family: var(--mono); font-size: 0.92em; }

.p42 .section-head { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); }
.p42 .section-head--split {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 48px;
}
.p42 .section-head--split .lede { justify-self: end; margin-top: 4px; font-size: 1rem; line-height: 1.55; color: var(--soft); }
@media (max-width: 860px) {
  .p42 .section-head--split { grid-template-columns: 1fr; }
  .p42 .section-head--split .lede { justify-self: start; }
}

/* ---------- Buttons and links ---------- */

.p42 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.p42 .btn:hover { border-color: var(--ink); color: var(--ink); }
.p42 .btn--gold { border-color: var(--gold); background: var(--gold); color: #15100a; }
.p42 .btn--gold:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #15100a; }
.p42 .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.p42 .hero-links { gap: 10px 28px; align-items: center; }
.p42 .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 500 15px/1.3 var(--sans);
  text-decoration: none;
}
.p42 .arrow-link::after { content: "→"; color: var(--muted); transition: transform 0.15s ease, color 0.15s ease; }
.p42 .arrow-link:hover { color: var(--gold-ink); }
.p42 .arrow-link:hover::after { color: var(--gold-ink); transform: translateX(3px); }

/* ---------- Surfaces: rules, not boxes ---------- */

.p42 .card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 8px;
  border: 0;
  border-top: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
}
.p42 a.card { color: inherit; text-decoration: none; }
.p42 a.card:hover .h3, .p42 a.card:hover .card__go { color: var(--gold-ink); }
.p42 .card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; }
.p42 .card__go { margin-top: auto; padding-top: 4px; color: var(--soft); font: 500 14px/1.3 var(--sans); }
.p42 .card__go::after { content: " →"; }
.p42 .panel {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: transparent;
}
.p42 .grid { display: grid; gap: 8px 40px; }
.p42 .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.p42 .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.p42 .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ---------- Status: a word with a dot, not a badge ---------- */

.p42 .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--soft);
  font: 500 12.5px/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.p42 .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.p42 .pill--plain::before { display: none; }
.p42 .is-fresh, .p42 .is-holds, .p42 .is-verified { color: var(--green); }
.p42 .is-aging, .p42 .is-partial { color: var(--amber); }
.p42 .is-resting { color: var(--muted); }
.p42 .is-stale, .p42 .is-refuted, .p42 .is-retraction { color: var(--rose); }
.p42 .is-promoted, .p42 .is-finding, .p42 .is-release { color: var(--gold); }
.p42 .is-run, .p42 .is-update, .p42 .is-site { color: var(--soft); }
.p42 .is-note, .p42 .is-dream { color: var(--violet); }
.p42 .is-live::before { animation: p42-pulse 2.4s ease-in-out infinite; }
@keyframes p42-pulse { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.35; } }

.p42 .agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 500 14px/1.2 var(--sans);
  text-decoration: none;
}
.p42 .agent-chip:hover { color: var(--gold-ink); }
.p42 .agent-chip i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(224, 164, 58, 0.6);
  border-radius: 50%;
  color: var(--gold);
  font: italic 500 12px/1 var(--serif);
}

/* ---------- Stats ---------- */

.p42 .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 24px; border-top: 1px solid var(--rule-strong); }
.p42 .stat { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.p42 .stat__value { display: block; color: var(--ink); font: 500 clamp(1.8rem, 2.8vw, 2.3rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.p42 .stat__label { display: block; margin-top: 8px; color: var(--muted); font: 400 12.5px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Log entries ---------- */

.p42 .log { display: grid; }
.p42 .entry {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 6px 28px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.p42 .entry:last-child { border-bottom: 1px solid var(--rule); }
.p42 .entry__when { color: var(--muted); font: 400 13px/1.5 var(--mono); }
.p42 .entry__when time { display: block; color: var(--soft); }
.p42 .entry__recorded { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.p42 .entry__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 6px; }
.p42 .entry__title { color: var(--ink); font: 600 1.28rem/1.28 var(--serif); }
.p42 .entry__summary { max-width: var(--measure); margin-top: 6px; color: var(--text); font-size: 16px; }
.p42 .receipts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.p42 .receipts a { color: var(--soft); font: 400 13.5px/1.5 var(--sans); text-decoration-color: rgba(174, 168, 155, 0.4); }
.p42 .receipts a:hover { color: var(--gold-ink); }
.p42 .receipts a::before { content: "↗ "; color: var(--muted); }
@media (max-width: 640px) {
  .p42 .entry { grid-template-columns: 1fr; gap: 4px; }
  .p42 .entry__when time { display: inline; margin-right: 8px; }
}

/* ---------- Feed rows: a register ---------- */

.p42 .feeds { display: grid; border-top: 1px solid var(--rule-strong); }
.p42 .feeds__head,
.p42 .feed {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 150px 110px;
  gap: 6px 24px;
}
.p42 .feeds__head {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font: 500 12.5px/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p42 .feed {
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}
.p42 a.feed:hover .feed__title { color: var(--gold-ink); }
.p42 .feed__title { color: var(--ink); font: 500 1.05rem/1.3 var(--sans); }
.p42 .feed__sub { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.p42 .feed__owner { color: var(--soft); font: 400 14px/1.45 var(--sans); }
.p42 .feed__when { color: var(--soft); font: 400 13px/1.5 var(--mono); }
.p42 .feed__state { justify-self: end; }
@media (max-width: 860px) {
  .p42 .feeds__head { display: none; }
  .p42 .feed { grid-template-columns: 1fr auto; }
  .p42 .feed__owner, .p42 .feed__when { grid-column: 1 / 2; }
  .p42 .feed__state { grid-column: 2; grid-row: 1; }
}

/* ---------- Tables ---------- */

.p42 .table-wrap { overflow-x: auto; border: 0; border-top: 1px solid var(--rule-strong); border-radius: 0; }
.p42 table { width: 100%; border-collapse: collapse; font-size: 15px; }
.p42 th, .p42 td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.p42 th { color: var(--muted); font: 500 12.5px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.p42 td.num, .p42 th.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.p42 tr:last-child td { border-bottom: 1px solid var(--rule); }

/* ---------- Filters ---------- */

.p42 .filters { display: flex; flex-wrap: wrap; gap: 6px; }
.p42 .filter {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--soft);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
}
.p42 .filter:hover { color: var(--ink); border-color: var(--ink); }
.p42 .filter[aria-pressed="true"] { border-color: var(--ink); background: rgba(244, 239, 228, 0.07); color: var(--ink); }

/* ---------- Notices ---------- */

.p42 .notice {
  display: block;
  padding: 4px 0 4px 18px;
  border: 0;
  border-left: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.p42 .empty {
  padding: 22px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--muted);
  text-align: left;
  font-size: 15.5px;
}
.p42 .empty--rich { color: var(--text); }

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  .p42 *, .p42 *::before, .p42 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .p42-header, .p42-footer, .p42-skip { display: none !important; }
  body.p42 { background: #fff; color: #111; }
}

/* ---------- Phones: readable receipts and dates, thumb-sized targets ---------- */

@media (max-width: 768px) {
  .p42 .arrow-link,
  .p42 summary,
  .p42 .entry__link,
  .p42-strip__back { display: inline-flex; align-items: center; min-height: 44px; }
  .p42 .receipts a { font-size: 15px; }
  .p42 .entry__when, .p42 .clock__when, .p42 .feed__when { font-size: 14px; }
  .p42 .entry__recorded, .p42 .clock__when small { font-size: 13px; }
  .p42 input, .p42 select, .p42 textarea { font-size: 16px; }
}
