/* On the Trades (trades.otrecord.news): On the record's Nov 25 design, the same tokens as ads.otrecord.news.
   A white page in a navy frame; ink type; one blue for links; green and red only for gains, losses, buys and sells. */
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-600.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/ss4-2.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --ink: #121212; --ink-2: #363636; --paper: #FFFFFF; --wash: #F6F6F4; --strip: #F4F6F9;
  --rail: #DCDCDC; --rule-2: #EDEDED; --quiet: #5F5F5F;
  --navy: #0F1B2D; --navy-2: #1C2E4A; --mist: #C3CEDF;
  --cite: #1F48B8; --bad: #C4122F; --good: #0A7B3E; --hl: #FFF3B0;
  --sans: "Public Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--cite); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }

.mast { background: var(--navy); color: #fff; }
.mast .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { color: #fff; font: 400 20px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand b { font-weight: 800; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 18px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a, .acct { color: var(--mist); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a[aria-current], .nav a:hover, .acct:hover { color: #fff; text-decoration: none; }

h1 { font: 700 34px/1.15 var(--serif); letter-spacing: -.015em; margin: 8px 0 8px; }
h2 { font: 700 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; margin: 28px 0 10px; padding-top: 10px; border-top: 2px solid var(--ink); }
.dek { font: 400 18px/1.45 var(--serif); color: var(--ink-2); max-width: 760px; margin: 0 0 16px; }
.hero { padding: 12px 0 8px; border-bottom: 1px solid var(--rail); margin-bottom: 8px; }
.hero h1 { font-size: 40px; max-width: 820px; }
.stamp, .q, .note, .crumb { color: var(--quiet); font-size: 13px; }
.note { margin: 10px 0; max-width: 760px; }
.crumb { margin: 0; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.lst { margin: 0; padding: 0 0 0 22px; }
.lst li { padding: 5px 0; border-bottom: 1px solid var(--rule-2); }
.lst .r { float: right; font-variant-numeric: tabular-nums; }
.more { margin: 10px 0; font-weight: 600; }

.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tt th { text-align: left; font-size: 12px; font-weight: 600; color: var(--quiet); padding: 6px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tt td { padding: 7px 8px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.tt tr:hover td { background: var(--strip); }
.tt .num { text-align: right; white-space: nowrap; }
.tt .d { white-space: nowrap; }
.tk { font-weight: 700; }
.an { color: var(--ink-2); }
.up { color: var(--good); font-weight: 600; }
.dn { color: var(--bad); font-weight: 600; }
.k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.k-buy { color: var(--good); } .k-sell { color: var(--bad); } .k-ex { color: var(--quiet); }
.pty { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 4px; margin: 0 2px; color: #fff; }
.pty-d { background: #1F48B8; } .pty-r { background: #C4122F; } .pty-i { background: #5F5F5F; }
.new { background: var(--hl); font-size: 11px; font-weight: 800; padding: 1px 4px; text-transform: uppercase; }

.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0; border-top: 1px solid var(--rail); border-bottom: 1px solid var(--rail); }
.facts div { padding: 10px 24px 10px 0; margin-right: 24px; }
.facts dt { font-size: 12px; color: var(--quiet); }
.facts dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.probox { background: var(--strip); border-left: 3px solid var(--navy); padding: 14px 16px; margin: 20px 0; }
.probox p { margin: 0 0 10px; }
.btn, .btn-q { display: inline-block; background: var(--navy); color: #fff; font: 600 14px/1 var(--sans); padding: 10px 14px; border: 0; cursor: pointer; }
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn-q { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.cmp td:first-child { font-weight: 600; }
.cmp td:nth-child(2) { background: var(--strip); }

.flt { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.flt input, .flt select { font: 14px var(--sans); padding: 8px 10px; border: 1px solid var(--rail); background: #fff; color: var(--ink); min-height: 38px; }
.flt input { flex: 1 1 220px; }

.foot { background: var(--navy); color: var(--mist); font-size: 13px; padding: 20px 0; }
.foot a { color: #fff; }
.foot p { margin: 6px 0; max-width: 860px; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  h1, .hero h1 { font-size: 28px; }
  .mast .wrap { gap: 14px; }
  .acct { display: none; }
}
/* phones: each trade becomes a card (who, then trade + asset, then amount · dates · return) */
@media (max-width: 640px) {
  .tt:not(.cmp) thead { display: none; }
  .tt:not(.cmp), .tt:not(.cmp) tbody, .tt:not(.cmp) tr { display: block; }
  .tt:not(.cmp) tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
  .tt:not(.cmp) td { display: block; border: 0; padding: 0; }
  .tt:not(.cmp) td:first-child { flex-basis: 100%; }
  .tt:not(.cmp) .num { text-align: left; }
  .tt:not(.cmp) td.d { color: var(--quiet); font-size: 13px; }
  .tt:not(.cmp) tr:hover td { background: none; }
}
