/* The Gold Heist - trading-results widgets (home summary + /results/) and the /giza/ tables. Moved out of the old home
   page's inline <style> 2026-11-01; chart sizes are fixed so nothing shifts when the data arrives. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.road { display: flex; justify-content: space-between; position: relative; margin: 26px 6px 6px; }
.road .rail { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--hairline); }
.road .fill { position: absolute; left: 0; top: 8px; height: 2px; background: var(--gold); }
.road .ms { position: relative; text-align: center; font-size: 14px; color: var(--text-muted); width: 0; }
.road .ms i { display: block; width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 8px; transform: translateX(-50%);
              background: var(--surface); border: 2px solid var(--hairline); position: relative; left: 50%; }
.road .ms.done i { background: var(--gold); border-color: var(--surface); box-shadow: 0 0 0 1px var(--gold); }
.road .ms span { display: block; white-space: nowrap; transform: translateX(-50%); position: relative; left: 0; font-family: var(--serif); }
.road .ms.done span { color: var(--navy); font-weight: 700; }

#chart { position: relative; height: 320px; }
#chart svg, #gchart svg { width: 100%; height: 100%; display: block; }
#gchart { position: relative; height: 360px; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px;
       padding: 9px 12px; font-size: 13.5px; min-width: 165px; opacity: 0; z-index: 2; box-shadow: 0 10px 28px rgba(20,33,61,.14); color: var(--navy); }
.tip .tv { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.tip .tl { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.tip .key { display: inline-block; width: 14px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 7px; }
.legend { display: flex; gap: 8px 20px; font-size: 14px; color: var(--text-secondary); margin: -10px 0 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 16px; height: 2px; background: var(--gold); margin-right: 7px; vertical-align: 4px; }
.legend i.ring { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; vertical-align: -1px; }
.legend i.dash { width: 18px; height: 0; border-top: 1.5px dashed var(--text-muted); background: transparent; vertical-align: 4px; }
.arrow-up { color: var(--good); } .arrow-down { color: var(--critical); }

table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--text-muted); font-weight: 500; font-size: 13.5px; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
td { padding: 12px; border-bottom: 1px solid #f0ebdf; color: var(--text-secondary); }
tbody tr:hover td { background: #fcfaf5; }
td.r, th.r { text-align: right; }
td.pos, td.neg { color: var(--navy); font-weight: 600; }
table.presets td:first-child { color: var(--navy); font-weight: 600; }
table.presets td.big { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.scroll { overflow-x: auto; }
.more { margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 34px; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; border-bottom: 1px solid #f0ebdf; padding: 12px 0; }
.facts span:first-child { color: var(--text-muted); margin-right: 16px; white-space: nowrap; }
.facts span:last-child { text-align: right; color: var(--navy); font-weight: 500; }
.facts div.wide { grid-column: 1 / -1; }
.empty { color: var(--text-muted); font-size: 15px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs > div { background: var(--surface-2); border-radius: 14px; padding: 24px 26px 12px; }
.vs h3 { font-family: var(--serif); font-size: 23px; margin: 0 0 2px; }
.vs .when { color: var(--gold); font-family: var(--serif); font-style: italic; margin: 0 0 14px; font-size: 15.5px; }
.vs .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.vs .row b { font-family: var(--serif); font-size: 28px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.vs .row span { color: var(--text-secondary); font-size: 15px; }
.vs .row small { display: block; color: var(--text-muted); font-size: 13px; }
.card .foot { color: var(--text-muted); font-size: 14px; margin: 16px 0 0; }
.now { color: var(--text-muted); font-style: italic; }
h3.tbl { font-family: var(--serif); font-size: 22px; margin: 30px 0 4px; }
#week-table td, #month-table td { white-space: nowrap; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } #chart { height: 260px; } #gchart { height: 300px; } }
@media (max-width: 640px) {
  #open-table th:nth-child(n+4):nth-child(-n+6), #open-table td:nth-child(n+4):nth-child(-n+6),
  #trade-table th:nth-child(n+4):nth-child(-n+6), #trade-table td:nth-child(n+4):nth-child(-n+6) { display: none; }
  #week-table th:nth-child(3), #week-table td:nth-child(3), #month-table th:nth-child(3), #month-table td:nth-child(3) { display: none; }
  #week-table .now, #month-table .now { display: block; } .garrow { display: none; } td, th { padding: 11px 6px; } }
