/* Trading Strategy Test Results: the one stylesheet for site_src/index.html.
   Sections: Hark component library (only the rules this page uses), hero image, page-specific
   rules (search, accordions, forward table, media + lightbox), then the StriatumOS dark house theme
   (dark by default; the nav toggle can still choose light). Pruned from hark.css + hark-hero.css +
   inline <style> + striatum-theme.css on Nov 10 2026. */

/* @component foundations */
:root {
  color-scheme: light dark;

  --text-primary: light-dark(#1d1d1f, #f5f5f7);         /* body text */
  --text-secondary: light-dark(#636366, #a1a1a6);       /* supporting grey text */
  --text-tertiary: light-dark(#1d1d1f4d, #f5f5f74d);    /* hollow dots, faint marks; never body text */
  --text-primary-on: light-dark(#f5f5f7, #1d1d1f);      /* text on --fill-primary */
  --text-secondary-on: light-dark(#aeaeb2, #5c5c60);    /* grey text on --fill-primary */
  --fill-primary: light-dark(#1d1d1f, #f5f5f7);         /* the strong fill: solid chips, the nav, the badge */
  --fill-primary-on: light-dark(#f5f5f7, #1d1d1f);      /* the page background */
  --fill-secondary: light-dark(#1d1d1f80, #f5f5f780);
  --fill-tertiary: light-dark(#e8e8ea, #2a2a2d);        /* the grey card, panel and row tint */
  --fill-segment: light-dark(#3a3a3c, #e2e2e4);         /* the nav's tab track */
  --fill-system-green: #00a665;                         /* status: done, ready */
  --fill-system-orange: #ff4d00;                        /* status: now, current */
  --fill-system-red: light-dark(#da2f35, #f1555b);      /* status: blocked, error */
  --transparent-primary: light-dark(#1d1d1f4d, #f5f5f74d);
  --stroke-primary: light-dark(#1d1d1f24, #f5f5f724);   /* strong hairline */
  --stroke-secondary: light-dark(#1d1d1f12, #f5f5f712); /* faint hairline between rows */
  --stroke-primary-on: light-dark(#f5f5f71a, #1d1d1f1a);
  --stroke-composer: light-dark(#f5f5f780, #1d1d1f80);  /* the callout's glass edge */
  --stroke-system-orange: #ff4d0026;
  --hover-wash: light-dark(#1d1d1f0d, #f5f5f70d);
  --hover-wash-primary-on: light-dark(#f9f9fa26, #1d1d1f14);

  /* The hero is light text over a dark photo in both themes. */
  --hero-surface: #161f39;
  --hero-text: #f5f5f7;
  --hero-text-muted: #f5f5f7cc;
  --hero-scrim-strong: rgb(22 31 57 / 0.78);
  --hero-scrim-soft: rgb(22 31 57 / 0.3);
  --hero-scrim-side: rgb(22 31 57 / 0.45);
  --hero-glass: rgb(22 31 57 / 0.42);
  --hero-glass-faint: rgb(22 31 57 / 0.35);
  --hero-glass-stroke: rgb(245 245 247 / 0.28);

  --mat-regular: light-dark(rgb(255 255 255 / 0.56), rgb(29 29 31 / 0.55));
  --mat-thin: light-dark(rgb(255 255 255 / 0.22), rgb(29 29 31 / 0.4));
  --mat-agent: light-dark(rgb(255 255 255 / 0.84), rgb(29 29 31 / 0.66));
  --mat-inverse: color-mix(in srgb, var(--fill-primary) 86%, transparent);  /* the nav: dark on light, light on dark */
  --hark-blur: blur(50px) saturate(1.6);
  --hark-shadow: 0 8px 40px #1d1d1f1f;

  --sans: "GT Standard", "GT Standard L", "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --lh: 1.3;                                            /* every text style is 130% */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --size-caption: 12px;                                 /* the smallest text allowed */
  --size-meta: 13px;
  --size-small: 14px;
  --size-body: 15px;
  --size-prose: 16px;
  --size-heading: 20px;
  --size-figure: clamp(24px, 3vw, 32px);
  --size-title: clamp(26px, 3vw, 32px);
  --size-display: clamp(34px, 5vw, 48px);
  --size-lede: clamp(16px, 1.7vw, 20px);

  --type-caption: var(--weight-regular) var(--size-caption)/var(--lh) var(--sans);
  --type-tag: var(--weight-medium) var(--size-caption)/var(--lh) var(--sans);
  --type-small: var(--weight-regular) var(--size-small)/var(--lh) var(--sans);
  --type-label: var(--weight-medium) var(--size-small)/var(--lh) var(--sans);
  --type-body: var(--weight-regular) var(--size-body)/var(--lh) var(--sans);
  --type-body-strong: var(--weight-medium) var(--size-body)/var(--lh) var(--sans);
  --type-heading: var(--weight-medium) var(--size-heading)/var(--lh) var(--sans);
  --type-lede: var(--weight-medium) var(--size-lede)/var(--lh) var(--sans);
  --type-figure: var(--weight-regular) var(--size-figure)/var(--lh) var(--sans);
  --type-title: var(--weight-regular) var(--size-title)/var(--lh) var(--sans);
  --type-display: var(--weight-medium) var(--size-display)/var(--lh) var(--sans);
  --type-numeral: var(--weight-regular) 48px/1 var(--sans);

  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-pill: 100px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-quick: 160ms;
  --dur-draw: 1400ms;

  --page-max: 1120px;
  --gutter: clamp(16px, 3vw, 32px);                     /* the page's side padding */
  --tap: 44px;                                          /* the smallest touch target */
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--fill-primary-on);
  color: var(--text-primary);
  font: var(--type-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: var(--weight-bold); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
small { font-size: max(var(--size-caption), 0.85em); }
:focus-visible { outline: 2px solid var(--fill-primary); outline-offset: 3px; border-radius: 6px; }
/* @component page */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 12px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.glass {
  background: var(--mat-inverse);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  border: 1px solid var(--stroke-primary-on);
}
.nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 20;
  justify-self: center;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-pill);
  box-shadow: var(--hark-shadow);
}
.nav :focus-visible { outline-color: var(--fill-primary-on); }
.seg {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--r-pill);
  background: var(--fill-segment);
}
.seg::-webkit-scrollbar { display: none; }
.seg a {
  flex: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font: var(--type-label);
  color: var(--text-secondary-on);
  text-decoration: none;
  white-space: nowrap;
}
.seg a:hover { color: var(--text-primary-on); }
/* The active tab carries its own fill so its text is measured against it. */
.seg a[aria-current="true"] { background: var(--fill-primary-on); color: var(--text-primary); }
.theme-btn {
  flex: none;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hover-wash-primary-on);
  color: var(--text-primary-on);
  cursor: pointer;
}
.theme-btn:hover { box-shadow: inset 0 0 0 100px var(--hover-wash-primary-on); }
.theme-btn::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(to right, light-dark(currentColor, transparent) 50%, light-dark(transparent, currentColor) 50%); }
@media (max-width: 599px) {
  .seg a { display: flex; align-items: center; min-height: var(--tap); }
  .theme-btn { width: var(--tap); height: var(--tap); }
}
/* @component footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke-secondary);
  font-size: var(--size-small);
  color: var(--text-secondary);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px; }
.foot nav a {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--fill-tertiary);
  color: var(--text-primary);
  font: var(--type-tag);
  text-decoration: none;
}
.foot nav a:hover { box-shadow: inset 0 0 0 100px var(--hover-wash); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-xl);
  background: var(--fill-primary);
  color: var(--text-primary-on);
  box-shadow: var(--hark-shadow);
  font: var(--weight-medium) var(--size-body)/1.1 var(--sans);
  text-decoration: none;
}
.badge:hover { box-shadow: var(--hark-shadow), inset 0 0 0 100px var(--hover-wash-primary-on); }
.hark-mark { display: inline-grid; place-items: center; }
.hark-mark svg { display: block; }
@media (max-width: 599px) {
  .foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
  .badge { min-height: var(--tap); }
}
/* @component button, link and links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: var(--r-s);
  background: var(--fill-primary-on);
  color: var(--text-primary);
  border: 1px solid var(--stroke-primary);
  font: var(--type-tag);
  text-decoration: none;
  max-width: 100%;
  transition: box-shadow var(--dur-quick) ease;
}
.btn:hover { box-shadow: inset 0 0 0 100px var(--hover-wash); }
.btn[target="_blank"]::after { content: "↗"; font-size: 11px; color: var(--text-secondary); }
.link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--stroke-primary);
  text-underline-offset: 3px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.link:hover { text-decoration-color: currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (pointer: coarse), (max-width: 599px) {
  .btn { min-height: var(--tap); padding-inline: 14px; }
}
@media (max-width: 599px) {
  .link { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); margin: -13px 0; vertical-align: middle; }
}
/* @component text and fineprint */
.prose { display: grid; gap: 12px; max-width: 68ch; font-size: var(--size-prose); }
.fineprint { font-size: var(--size-small); color: var(--text-secondary); max-width: 70ch; }
/* @component hero */
.hero {
  position: relative;
  min-height: clamp(460px, 64vh, 660px);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--hero-text);
  isolation: isolate;
  box-shadow: var(--hark-shadow);
  background: var(--hero-surface);
}
/* Without a photo the hero is as tall as its copy, so the callout sits beside the copy instead of over it. */
.hero:not(:has(.hero__img)) { min-height: 0; background: var(--hero-surface) center / cover no-repeat; }
.hero:not(:has(.hero__img))::after { background: linear-gradient(to right, var(--hero-scrim-side) 0%, transparent 60%); }
@media (min-width: 761px) {
  .hero:not(:has(.hero__img)) > .callout { position: static; flex: none; align-self: flex-start; margin: clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) auto; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--hero-scrim-strong) 0%, var(--hero-scrim-soft) 42%, transparent 66%),
    linear-gradient(to right, var(--hero-scrim-side) 0%, transparent 60%);
}
.hero__copy {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  padding: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(28px, 3.4vw, 44px);
}
.hero__eyebrow {
  justify-self: start;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--hero-glass);
  border: 1px solid var(--hero-glass-stroke);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  font: var(--type-label);
}
.hero h1 { font: var(--type-display); letter-spacing: 0; }
.hero__sub { font: var(--type-lede); max-width: 34ch; }
.hero__meta { font-size: var(--size-small); color: var(--hero-text-muted); }
.hero > .callout {
  position: absolute;
  top: clamp(16px, 2.4vw, 24px);
  right: clamp(16px, 2.4vw, 24px);
  width: min(320px, calc(100% - 32px));
}
@media (max-width: 760px) {
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 0; }
  .hero__copy { padding-top: 260px; padding-bottom: 28px; }
  .hero:not(:has(.hero__img)) .hero__copy { padding-top: clamp(24px, 4vw, 48px); }
  .hero > .callout { position: static; width: auto; margin: 0 12px 12px; }
}
/* @component callout */
.callout {
  max-width: 420px;
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  border-radius: var(--r-l);
  background: var(--mat-agent);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  border: 1px solid var(--stroke-composer);
  box-shadow: var(--hark-shadow);
  color: var(--text-primary);
  font-size: var(--size-small);
}
.callout__head { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-weight: var(--weight-medium); }
.callout__head svg { color: var(--text-primary); }
.callout__lead { font-size: var(--size-body); }
.callout .fineprint { font-size: var(--size-caption); }
.callout .btn { justify-self: start; }
/* @component stats */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-top: 8px; }
.stat {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 4px;
  padding: 12px 24px;
  border-left: 1px solid var(--stroke-secondary);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__fig { font: var(--type-figure); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--size-small); color: var(--text-secondary); }
@media (max-width: 760px) {
  .stats { grid-auto-flow: row; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding-top: 0; }
  .stat { grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; gap: 12px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--stroke-secondary); }
  .stat:first-child { border-top: 0; }
}
/* @component section */
.section {
  padding-block: clamp(40px, 6vw, 72px) clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--stroke-secondary);
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 72px); /* Clears the sticky .nav: its top offset plus its tallest height, 56px. */
  min-width: 0;
}
.section > * + * { margin-top: clamp(20px, 2.4vw, 28px); }
.section > .head + * { margin-top: 0; }
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 10px 40px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.head__eyebrow { grid-column: 1 / -1; font: var(--type-label); color: var(--text-secondary); }
.head h2 { font: var(--type-title); }
.head__sub { justify-self: end; font-size: var(--size-body); color: var(--text-secondary); max-width: 44ch; text-align: right; }
@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; }
  .head__sub { justify-self: start; text-align: left; }
}
/* @component table */
.table-wrap { margin-inline: -12px; padding-inline: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: var(--type-small); font-variant-numeric: tabular-nums; }
caption { text-align: left; font: var(--type-caption); color: var(--text-secondary); padding: 0 0 10px; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--stroke-secondary); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th {
  font: var(--type-tag);
  color: var(--text-secondary);
  border-bottom-color: var(--stroke-primary);
  padding-top: 0;
  padding-bottom: 8px;
  white-space: nowrap;
}
tbody th { font-weight: var(--weight-bold); }
tbody tr:last-child > * { border-bottom: 0; }
.rowhead { white-space: nowrap; }
td small, th small { display: block; font: var(--type-caption); color: var(--text-secondary); margin-top: 2px; }
td.num { font-weight: var(--weight-bold); white-space: nowrap; }
td.num small { white-space: normal; }
.muted { color: var(--text-secondary); }
tr.is-highlight > * { background: var(--fill-tertiary); }
tr.is-highlight > :first-child { box-shadow: -12px 0 var(--fill-tertiary); }
tr.is-highlight > :last-child { box-shadow: 12px 0 var(--fill-tertiary); }
@media (max-width: 599px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap caption { display: block; text-align: left; }
  .table-wrap tbody tr { padding: 12px 0; border-bottom: 1px solid var(--stroke-secondary); }
  .table-wrap tbody tr.is-highlight { margin-inline: -12px; padding-inline: 12px; background: var(--fill-tertiary); }
  .table-wrap tbody tr.is-highlight > * { background: none; box-shadow: none; }
  .table-wrap tbody tr > * { border-bottom: 0; padding: 2px 0; }
  .table-wrap tbody td.is-empty { display: none; }
  .table-wrap tbody td[data-label] { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); column-gap: 12px; }
  .table-wrap tbody td[data-label]::before { content: attr(data-label) " "; color: var(--text-secondary); font-size: var(--size-caption); }
  .rowhead { white-space: normal; }
}
/* @component compare */
/* On light tiles a white product backdrop blends into the grey. */
/* The header column shrinks to nothing on screen but stays in the table, so screen readers keep each value's row header. */
/* @component breakdown */
@media (min-width: 901px) {
  .section > .aside { max-width: calc((100% - 40px) * 1.65 / 2.65); }
}
/* @component pair */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pair:has(> :is(.callout, .aside):last-child) { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: 40px; }
@media (max-width: 760px) {
  .pair, .pair:has(> :is(.callout, .aside):last-child) { grid-template-columns: minmax(0, 1fr); }
}
/* @component cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > div { padding: 22px 24px; border-radius: var(--r-m); background: var(--fill-tertiary); }
.cards h3 { font: var(--type-heading); margin-bottom: 10px; }
.cards ul { margin: 0; padding: 0; list-style: none; }
.cards li { padding: 10px 0; border-bottom: 1px solid var(--stroke-secondary); }
.cards li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cards:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); }
}
/* @component aside */
.aside {
  max-width: 62ch;
  padding: 20px 22px;
  border: 1.5px dashed var(--stroke-primary);
  border-radius: var(--r-m);
}
.aside h3 { font: var(--type-heading); margin-bottom: 6px; }
/* @component hero image (was hark-hero.css) */
.hero:not(:has(.hero__img)) { background-image: url("assets/hero-sky.webp"); }
/* @component page-specific (was the inline <style>) */
.x-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.x-toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); column-gap: 24px; font: var(--type-small); }
.x-toc a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); border-bottom: 1px solid var(--stroke-secondary); color: var(--text-primary); text-decoration: none; }
.x-toc a:hover { color: var(--text-secondary); }
.x-toc b { font: var(--type-caption); color: var(--text-secondary); white-space: nowrap; }
.x-acc { border-top: 1px solid var(--stroke-primary); scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 72px); }
.x-acc:last-child { border-bottom: 1px solid var(--stroke-primary); }
.x-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--tap); padding: 16px 0; cursor: pointer; list-style: none; }
.x-acc > summary::-webkit-details-marker { display: none; }
.x-acc > summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill); border: 1px solid var(--stroke-primary); font: var(--type-body); color: var(--text-secondary); transition: transform var(--dur-quick) var(--ease-out); }
.x-acc[open] > summary::after { transform: rotate(45deg); }
.x-acc__title { display: block; font: var(--type-heading); }
.x-acc__count { display: block; margin-top: 4px; font: var(--type-caption); color: var(--text-secondary); }
.x-acc__body { display: grid; gap: 20px; padding: 0 0 36px; min-width: 0; }
.x-acc__body .prose ul { margin: 0; padding-left: 1.2em; }
.x-search { display: grid; gap: 8px; }
.x-search__label { font: var(--type-label); color: var(--text-primary); }
.x-search__input { box-sizing: border-box; width: 100%; max-width: 480px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--stroke-primary); border-radius: var(--r-pill); background: var(--fill-primary-on); color: var(--text-primary); font: var(--type-body); font-family: var(--sans); }
.x-search__input::placeholder { color: var(--text-secondary); }
.x-search__input:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.x-search__status { margin: 0; font: var(--type-caption); color: var(--text-secondary); }
.x-search__status:empty { display: none; }
.x-search__empty { margin: 0; font: var(--type-body); color: var(--text-primary); }
.x-search [hidden], #results [hidden] { display: none !important; }
.x-fwd { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 20px 24px; border-radius: var(--r-l); background: var(--fill-tertiary); }
.x-fwd table { min-width: 1080px; }
.x-fwd td.x-up { color: color-mix(in srgb, var(--fill-system-green) 65%, var(--text-primary)); }
.x-fwd td.x-down { color: color-mix(in srgb, var(--fill-system-red) 85%, var(--text-primary)); }
.x-fwd tr.x-retired > * { color: var(--text-secondary); }
.x-fwd__meta { margin: 0; }
.x-fwd__meta + .x-fwd__meta { margin-top: 4px; }
#x-fwd-status[hidden], #x-fwd-hint[hidden] { display: none; }
.x-fwd__hint { margin: 0 0 12px; }
.x-fwd tr.x-fwd__row { cursor: pointer; }
.x-fwd tr.x-fwd__row:hover > * { background: color-mix(in srgb, var(--fill-primary-on) 50%, transparent); }
.x-fwd tr.x-fwd__row:focus-visible { outline: 2px solid var(--text-primary); outline-offset: -2px; }
.x-fwd__chev { display: inline-block; width: 8px; height: 8px; margin: 0 10px 2px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur-quick) var(--ease-out); vertical-align: middle; }
.x-fwd tr[aria-expanded="true"] .x-fwd__chev { transform: rotate(45deg); }
.x-fwd tr.x-fwd__detail > td { padding: 4px 0 20px; }
.x-fwd__panel { position: sticky; left: 0; box-sizing: border-box; max-width: var(--x-fwd-w, 100%); display: grid; gap: 16px; padding: 16px; border-radius: var(--r-m); background: var(--fill-primary-on); border: 1px solid var(--stroke-secondary); }
.x-fwd__panel p { margin: 0; font: var(--type-small); color: var(--text-secondary); max-width: 72ch; }
.x-fwd__panel h4 { margin: 0 0 8px; font: var(--type-label); color: var(--text-primary); }
.x-fwd__log { overflow: auto; -webkit-overflow-scrolling: touch; max-height: 420px; }
.x-fwd .x-fwd__log table { min-width: 100%; width: max-content; font: var(--type-caption); }
.x-fwd__log th, .x-fwd__log td { white-space: nowrap; padding: 6px 12px 6px 0; }
.x-fwd__log thead th { position: sticky; top: 0; z-index: 1; background: var(--fill-primary-on); }
@media (prefers-reduced-motion: reduce) {
  .x-fwd__chev { transition: none; }
}
@media (max-width: 599px) {
  .x-fwd { padding: 16px; border-radius: var(--r-m); }
}
/* @component per-test media (diagram / clip) and lightbox */
.x-media-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.x-media { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 4px; border: 1px solid var(--stroke-primary); border-radius: var(--r-s); background: var(--fill-tertiary); color: var(--text-primary); font: var(--type-tag); cursor: zoom-in; }
.x-media:hover { box-shadow: inset 0 0 0 100px var(--hover-wash); }
.x-media img { display: block; width: 48px; height: 32px; object-fit: cover; border-radius: 8px; }
.x-media span { padding-left: 6px; white-space: nowrap; }
.x-media img + span { padding-left: 0; }
.x-media--none { display: block; margin-top: 4px; padding: 0; border: 0; background: none; font: var(--type-caption); font-weight: var(--weight-regular); color: var(--text-tertiary); cursor: default; }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); background: #0E1014; color: #E8EAED; }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 10px; }
.lb__title { margin: 0; min-width: 0; font: var(--type-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__tools { display: flex; gap: 6px; flex: none; }
.lb__btn { min-width: var(--tap); height: var(--tap); padding: 0 10px; border: 1px solid #3A404B; border-radius: var(--r-pill); background: #171A20; color: inherit; font: var(--type-label); cursor: pointer; }
.lb__btn:hover { background: #2A2F38; }
.lb__btn:focus-visible, .lb__stage:focus-visible { outline: 2px solid #5B82F5; outline-offset: 2px; }
.lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: grab; padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 16px); }
.lb__stage:active { cursor: grabbing; }
.lb__media { max-width: 100%; max-height: 100%; transform-origin: center; user-select: none; -webkit-user-select: none; }
body.lb-open { overflow: hidden; }
.lb__count { align-self: center; min-width: 3.5em; text-align: right; font: var(--type-caption); color: #A0A6B0; white-space: nowrap; }
.lb__count:empty { display: none; }
.lb__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 64px; margin-top: -32px; border: 1px solid #3A404B; border-radius: 12px; background: color-mix(in srgb, #171A20 85%, transparent); color: #E8EAED; font: 400 34px/1 system-ui, sans-serif; cursor: pointer; }
.lb__nav:hover { background: #2A2F38; }
.lb__nav:focus-visible { outline: 2px solid #5B82F5; outline-offset: 2px; }
.lb__nav[hidden] { display: none; }
.lb__nav--prev { left: max(6px, env(safe-area-inset-left, 0px)); }
.lb__nav--next { right: max(6px, env(safe-area-inset-right, 0px)); }
.x-fwd .x-media--fwd { flex-direction: column; align-items: stretch; gap: 4px; max-width: 100%; min-height: 0; padding: 4px 4px 5px; font: var(--type-caption); }
.x-fwd .x-media--fwd img { width: 104px; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; }
.x-fwd .x-media--fwd span { padding: 0 2px; text-align: center; }
@media (max-width: 640px) {
  .lb__nav { width: 36px; height: 52px; margin-top: -26px; font-size: 28px; opacity: .85; }
  .lb__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font: var(--type-caption); }
}
/* StriatumOS house theme for Hark pages. Loaded after hark.css and hark-hero.css.
   Maps Hark's dark-mode tokens to the striatumos.consulting tokens and makes dark the
   default. The theme toggle still offers Hark's light theme, which is left as it was.
   Source of truth: striatumos.consulting index.html (2026-11-09). */
:root {
  --st-bg: #0E1014;       /* page background */
  --st-surface: #171A20;  /* cards, panels, row tint */
  --st-text: #E8EAED;     /* body text */
  --st-heading: #F3F4F6;  /* headings, hero text */
  --st-muted: #A0A6B0;    /* secondary text */
  --st-soft: #C5CAD3;     /* text between body and muted */
  --st-line: #2A2F38;     /* faint hairlines */
  --st-field: #3A404B;    /* strong hairlines, inputs */
  --st-ink: #0E1014;      /* text on a light or coloured fill */
  /* Logo rainbow, lightened for 4.5:1 on the card */
  --st-red: #F04A47;
  --st-orange: #E3710D;
  --st-yellow: #F2D00D;
  --st-green: #1FA34A;
  --st-blue: #5B82F5;
  --st-violet: #C455DE;
  --st-rainbow: linear-gradient(90deg, var(--st-red), var(--st-orange), var(--st-yellow), var(--st-green), var(--st-blue), var(--st-violet));
}
/* Dark unless the visitor picked light with the toggle */
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --text-primary: var(--st-text);
  --text-secondary: var(--st-muted);
  --text-tertiary: #A0A6B066;
  --text-primary-on: var(--st-ink);
  --text-secondary-on: #4B515C;
  --fill-primary: var(--st-text);
  --fill-primary-on: var(--st-bg);
  --fill-secondary: #E8EAED80;
  --fill-tertiary: var(--st-surface);
  --fill-segment: #D3D7DD;
  --fill-system-green: var(--st-green);
  --fill-system-orange: var(--st-orange);
  --fill-system-red: var(--st-red);
  --transparent-primary: #E8EAED4D;
  --stroke-primary: var(--st-field);
  --stroke-secondary: var(--st-line);
  --stroke-primary-on: #0E10141A;
  --stroke-composer: #0E101480;
  --stroke-system-orange: #E3710D33;
  --hover-wash: #E8EAED0F;
  --hover-wash-primary-on: #0E101414;

  --hero-surface: var(--st-surface);
  --hero-text: var(--st-heading);
  --hero-text-muted: var(--st-soft);
  --hero-scrim-strong: rgb(14 16 20 / 0.6);
  --hero-scrim-soft: rgb(14 16 20 / 0.2);
  --hero-scrim-side: rgb(14 16 20 / 0.25);
  --hero-glass: rgb(14 16 20 / 0.55);
  --hero-glass-faint: rgb(14 16 20 / 0.4);
  --hero-glass-stroke: rgb(232 234 237 / 0.22);

  --mat-regular: rgb(23 26 32 / 0.7);
  --mat-thin: rgb(23 26 32 / 0.5);
  --mat-agent: rgb(23 26 32 / 0.92);
  --hark-shadow: 0 8px 40px rgb(0 0 0 / 0.45);
}
:root:not([data-theme="light"]) body { background: var(--st-bg); }
/* Hero: the photographic sky becomes the house card with a rainbow edge and faint glows */
:root:not([data-theme="light"]) .hero:not(:has(.hero__img)) {
  background:
    var(--st-rainbow) top left / 100% 4px no-repeat,
    radial-gradient(110% 90% at 100% 0%, rgb(91 130 245 / 0.18), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgb(196 85 222 / 0.14), transparent 62%),
    var(--st-surface);
  border: 1px solid var(--st-line);
}
:root:not([data-theme="light"]) .hero > .callout { border: 1px solid var(--st-field); }
/* Line charts (hark.js): dark gridlines, rainbow series, readable labels */
/* Links keep Hark's underline style; focus rings use the house blue */
:root:not([data-theme="light"]) :focus-visible { outline-color: var(--st-blue); }
::selection { background: rgb(91 130 245 / 0.35); }
/* House footer link */
.foot .st-built { color: var(--text-secondary); }
.foot .st-built:hover { color: var(--text-primary); }

/* per-test method (Nov 12 2026) */
.x-method { margin-top: .4rem; font-weight: 400; }
.x-method summary { cursor: pointer; font-size: .8rem; opacity: .8; }
.x-method dl { margin: .4rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .2rem .6rem; font-size: .8rem; line-height: 1.35; max-width: 46rem; }
.x-method dt { font-weight: 600; opacity: .75; }
.x-method dd { margin: 0; white-space: normal; }
@media (max-width: 640px) { .x-method dl { grid-template-columns: 1fr; } .x-method dt { margin-top: .3rem; } }

/* source credit (YouTube video a test came from) */
.x-src__link { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--stroke-primary); text-underline-offset: 2px; font-weight: var(--weight-medium); }
.x-src__link:hover, .x-src__link:focus-visible { text-decoration-color: currentColor; }
