.gw-paper {
  --gw-ink: #182b30;
  --gw-muted: #4d6567;
  --gw-rule: #c8d5ce;
  --gw-panel: #f6f8f0;
  --gw-teal: #126a6a;
  --gw-rust: #a04434;
  color: var(--gw-ink);
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px clamp(14px, 4vw, 50px) 65px;
  font-size: 1rem;
  line-height: 1.65;
}
.gw-paper :is(h1,h2,h3,p,figure) { margin: 0; }
.gw-paper :is(h1,h2) {
  font-family: var(--launch-serif, Georgia, serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.gw-paper h2 { font-size: clamp(1.9rem, 4vw, 3.45rem); }
.gw-paper h3 { font-size: 1.18rem; line-height: 1.3; }
.gw-paper :is(p, li) { overflow-wrap: anywhere; }
.gw-paper a { color: #19645f; text-underline-offset: .24em; }
.gw-paper :focus-visible { outline: 3px solid #9a5c31; outline-offset: 3px; }
.gw-hero {
  padding: clamp(25px, 5vw, 70px);
  color: #f7f6eb;
  background: #143037;
  background-image: radial-gradient(ellipse at 100% 0%, #28545a, transparent 65%);
}
.gw-hero h1 { font-size: clamp(2.7rem, 7.55vw, 6.25rem); margin: .19em 0 .24em; }
.gw-scattering-hero h1 { font-size: clamp(2.02rem, 6.7vw, 5.25rem); text-wrap: balance; }
.gw-eyebrow { font: 650 .76rem/1.5 var(--launch-sans, Arial, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.gw-hero > p:not(.gw-eyebrow) { max-width: 55ch; font-size: clamp(1.02rem, 2.1vw, 1.29rem); }
.gw-hero .gw-hero-result { margin-top: .75rem; color: #e1f3e8; font-weight: 600; }
.gw-hero nav { display: flex; flex-wrap: wrap; gap: 1px 24px; margin-top: 1.25rem; }
.gw-hero-review {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: .9rem;
}
.gw-hero :is(nav, .gw-hero-review) a { color: #d8f0eb; display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.gw-hero-review a:focus-visible { outline-color: #ebcca0; }
.gw-replay-download {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-weight: 650;
  text-decoration: none;
}
.gw-replay-download:hover { text-decoration: underline; }
.gw-section { margin: clamp(37px, 6vw, 79px) 0 0; scroll-margin-top: 102px; }
.gw-section p + p { margin-top: .72rem; }
.gw-section > p { max-width: 76ch; margin: .95rem 0 0; }
.gw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 22px clamp(18px, 5vw, 66px); }
.gw-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 22px clamp(18px, 5vw, 66px); border-top: 1px solid var(--gw-rule); padding-top: 23px; }
.gw-result .gw-eyebrow { margin-bottom: .55rem; color: var(--gw-teal); }
.gw-response { grid-column: 1/-1; display: grid; gap: 1px; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--gw-rule); background: var(--gw-rule); }
.gw-response > div { padding: 15px 18px; background: #eff3e9; }
.gw-response strong, .gw-response span { display: block; }
.gw-response span { color: var(--gw-muted); font-size: .9rem; }
.gw-result .gw-result-foot { grid-column: 1/-1; margin: -.2rem 0 0; }
.gw-figure-lead { max-width: 72ch; margin-bottom: 19px; }
.gw-figure-lead .gw-eyebrow { color: var(--gw-teal); }
.gw-figure-lead h2 { margin: .25rem 0 .6rem; }
.gw-interval-comparison { margin-bottom: 24px; }
.gw-interval-comparison h3 { margin-bottom: .28rem; }
.gw-comparison-note { color: var(--gw-muted); font-size: .91rem; }
.gw-amplitude-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}
.gw-amplitude {
  padding: 10px 13px;
  border: 1px solid var(--gw-rule);
  border-left: 3px solid var(--gw-teal);
  background: #e9f0e9;
}
.gw-amplitude-4 { border-left-color: var(--gw-rust); background: #f4ede3; }
.gw-amplitude dt { font-weight: 700; }
.gw-amplitude dd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0 0;
  font-size: .87em;
}
.gw-amplitude strong { flex: none; font-variant-numeric: tabular-nums; }
.gw-chart { border: 1px solid var(--gw-rule); background: var(--gw-panel); padding: clamp(12px, 3.2vw, 34px); }
.gw-chart form[hidden] { display: none; }
.gw-chart fieldset { margin: 0 0 14px; border: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 19px; }
.gw-chart legend { margin: 0 0 7px; padding: 0; font-weight: 700; }
.gw-chart label { display: inline-flex; gap: .45em; min-height: 44px; align-items: center; flex-wrap: wrap; }
.gw-chart input { accent-color: var(--gw-teal); }
.gw-chart select { font: inherit; color: inherit; background: white; padding: 4px 7px; border: 1px solid #9aafa5; min-height: 37px; max-width: 100%; }
.gw-frequency-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(140px, 1fr); gap: 16px; align-items: center; }
.gw-plot { display: block; width: 100%; height: auto; color: var(--gw-ink); font-family: var(--launch-sans, Arial, sans-serif); font-size: 15px; }
.gw-axis-title { font-size: 15px; font-weight: 600; }
.gw-grid { stroke: #b9cac1; stroke-width: 1; }
.gw-zero { stroke: #617871; stroke-width: 1.25; }
.gw-band { fill: #e2ece1; }
.gw-frequency-layout figcaption, .gw-small { font-size: .87rem; color: var(--gw-muted); }
.gw-slope-readouts { display: grid; gap: 11px; }
.gw-slope { padding: 7px 12px; border-left: 3px solid var(--gw-teal); background: #e8f0e7; }
.gw-slope-4 { border-color: var(--gw-rust); background: #f3ebe1; }
.gw-slope p, .gw-slope strong, .gw-slope span, .gw-slope small { display: block; }
.gw-slope p { font-weight: 650; }
.gw-slope strong { font: 400 clamp(1.5rem, 3.4vw, 2.55rem)/1.3 Georgia, serif; font-variant-numeric: tabular-nums; }
.gw-slope span, .gw-slope small { font-size: .83rem; color: var(--gw-muted); }
.gw-chart details { margin-top: 17px; }
.gw-chart details summary, .gw-methods details summary { cursor: pointer; font-weight: 700; }
.gw-chart .gw-links { display: flex; gap: 0 18px; flex-wrap: wrap; margin-top: 13px; font-size: .9rem; }
.gw-links a { min-height: 44px; display: inline-flex; align-items: center; }
.gw-loop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; }
.gw-loop-layout h3 { margin-bottom: .35rem; }
.gw-loop-layout :is(p,caption) { font-size: .92rem; }
.gw-paper table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.gw-paper table caption { text-align: left; margin-top: 12px; font-weight: 650; }
.gw-paper :is(th,td) { border-bottom: 1px solid var(--gw-rule); padding: 7px 10px; text-align: left; }
.gw-table-scroll { overflow: auto; max-width: 100%; }
.gw-shift-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.gw-shift-metrics p { margin: 0 !important; display: grid; align-content: start; gap: 2px; border-bottom: 1px solid var(--gw-rule); padding: 0 0 6px; }
.gw-shift-metrics strong { font: 400 1.8rem/1.1 Georgia, serif; font-variant-numeric: tabular-nums; }
.gw-shift-metrics span { line-height: 1.25; color: var(--gw-muted); font-size: .82rem; }
.gw-bar-axis { display: flex; justify-content: space-between; color: var(--gw-muted); font-size: .76rem; margin: 3px 4.4em 0 5.7em; }
.gw-bars { padding: 0; margin: 0; list-style: none; font-size: .79rem; font-variant-numeric: tabular-nums; }
.gw-bars li { display: grid; grid-template-columns: 5.3em minmax(45px, 1fr) 4.0em; align-items: center; gap: 5px; min-height: 21px; }
.gw-bars li > :last-child { text-align: right; }
.gw-track { background: linear-gradient(90deg, #e7eee6 49.65%, #728783 49.65% 50.35%, #e7eee6 50.35%); height: .63em; position: relative; }
.gw-track i { position: absolute; top: 0; height: 100%; width: var(--extent); }
.gw-track .positive { left: 50%; background: var(--gw-teal); }
.gw-track .negative { right: 50%; background: var(--gw-rust); }
.gw-methods details { max-width: 88ch; border-bottom: 1px solid var(--gw-rule); }
.gw-methods details:first-of-type { border-top: 1px solid var(--gw-rule); margin-top: 15px; }
.gw-methods summary { padding: 12px 2px; }
.gw-methods details > div { padding: 4px 0 17px; }
.gw-methods .gw-open { border-left: 3px solid #927352; padding-left: 13px; }
.gw-methods pre { overflow: auto; margin: .7rem 0; padding: 12px; background: #eff3e9; font-size: .9rem; white-space: pre-wrap; }
.gw-references ol { margin: 0; padding-left: 1.25rem; }
.gw-references li + li { margin-top: 10px; }
.gw-review-entry, .gw-replay-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: clamp(15px, 3vw, 26px);
  margin-top: 18px;
  border-left: 3px solid var(--gw-teal);
  background: #e5f0e9;
}
.gw-review-entry > p { width: 100%; }
.gw-replay-banner > div { flex: 1 1 53ch; min-width: 0; }
.gw-replay-banner h2 { margin-bottom: .4em; }
.gw-paper .launch-primary { color: #fff; text-decoration: none; }
.gw-derivation pre {
  margin: 14px 0;
  padding: 12px 14px;
  background: #e8eee7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: .92em/1.55 ui-monospace, Consolas, monospace;
}
.gw-bounds, .gw-threshold-layout {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--gw-rule);
  background: var(--gw-rule);
}
.gw-bounds > div, .gw-threshold-layout > div { padding: clamp(12px, 2vw, 20px); background: #f6f8f0; }
.gw-bounds h3, .gw-proof-lab h3 { margin-bottom: .4em; }
.gw-proof-lab { margin-top: 20px; }
.gw-proof-lab > p { margin-bottom: 12px; }
.gw-proof-lab legend { color: var(--gw-teal); }
.gw-proof-lab select { max-width: 100%; }
.gw-proof-lab label { min-width: 0; flex-wrap: wrap; }
.gw-witness-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--gw-rule);
  border: 1px solid var(--gw-rule);
  margin-top: 16px;
}
.gw-witness-results p { padding: 12px; margin: 0; background: #edf3e9; font-size: .9rem; }
.gw-witness-results p + p { margin: 0; background: #f3eddf; }
.gw-witness-results strong {
  display: block;
  font-family: var(--launch-serif, Georgia, serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
}
.gw-matrix-strip {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}
.gw-matrix-strip span { padding: 3px 0; background: #e2ece3; }
.gw-matrix-strip .nonzero { color: #641f13; background: #f4dac6; font-weight: 750; }
.gw-matrix-strip .current { outline: 2px solid var(--gw-ink); outline-offset: -1px; }
.gw-matrix-total { margin-top: .65rem; }
.gw-control-failure { padding: 8px 12px; margin: 10px 0; border-left: 3px solid var(--gw-rust); background: #f5e5d8; }
.gw-threshold-proof { margin: 15px 0; }
.gw-threshold-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.gw-phase-numbers p { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.gw-phase-numbers strong { font-variant-numeric: tabular-nums; }
.gw-phase-numbers p:last-child { border-top: 1px solid var(--gw-rule); padding-top: .45rem; }
.gw-sign-axis { display: flex; justify-content: space-between; margin: 0 86px 2px 45px; color: var(--gw-muted); font-size: .72rem; }
.gw-sign-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 82px; align-items: center; gap: 5px; padding: 4px 0; font-size: .86rem; }
.gw-sign-row strong { font-variant-numeric: tabular-nums; text-align: right; }
.gw-sign-current { background: #e1ede5; }
.gw-sign-track { display: block; position: relative; height: 12px; background: linear-gradient(to right, #eef1e9 49.6%, #718781 49.6%, #718781 50.4%, #eef1e9 50.4%); }
.gw-sign-track i { position: absolute; top: 2px; bottom: 2px; }
.gw-sign-track .positive { left: 50%; background: var(--gw-teal); }
.gw-sign-track .negative { right: 50%; background: var(--gw-rust); }
.gw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 770px) {
  .gw-split, .gw-result, .gw-loop-layout { grid-template-columns: minmax(0, 1fr); }
  .gw-bounds, .gw-threshold-layout { grid-template-columns: minmax(0, 1fr); }
  .gw-frequency-layout { display: block; }
  .gw-slope-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; }
}
@media (max-width: 520px) {
  .gw-hero { padding: 22px 16px; }
  .gw-hero h1 { font-size: clamp(2.02rem, 9.4vw, 2.7rem); }
  .gw-hero h1 br { display: none; }
  .gw-paper { padding: 18px 0 50px; line-height: 1.56; }
  .gw-paper h2 { letter-spacing: -.02em; }
  .gw-axis-title, .gw-plot { font-size: 17px; }
  .gw-response { grid-template-columns: minmax(0, 1fr); }
  .gw-paper .gw-grid-table :is(th,td) { padding: .36rem .3rem; font-size: .78rem; }
  .gw-paper .gw-grid-table th { white-space: normal; }
  .gw-bar-axis { margin-inline: 5.7em 4.4em; }
  .gw-methods pre { font-size: .78rem; padding-inline: 8px; }
  .gw-matrix-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .gw-amplitude-pair { grid-template-columns: minmax(0, 1fr); }
  .gw-phase-numbers p, .gw-sign-row { font-size: .81rem; }
  .gw-derivation .gw-section { scroll-margin-top: 125px; }
}
