/* Shared look for the Disclaimer, Terms and Privacy pages: the dashboard's dark palette. */
:root { color-scheme: dark; }
html { background: #0B0D0F; }
body {
  margin: 0; padding: 32px 16px 48px; background: #0B0D0F; color: #C9CDD3;
  font: 15px/1.65 "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 46rem; margin: 0 auto; }
a { color: #F3F4F6; text-underline-offset: 3px; text-decoration-color: #6C8CFF; }
h1 { color: #F3F4F6; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 8px 0 4px; }
h2 { color: #F3F4F6; font-size: 18px; margin: 32px 0 8px; }
.back { font-size: 13px; color: #969DA7; text-decoration: none; }
.back:hover { color: #F3F4F6; }
.date { color: #969DA7; font-size: 13px; margin: 0 0 24px; }
.box { border: 1px solid #292D32; background: #111416; border-radius: 8px; padding: 16px 18px; color: #F3F4F6; }
.box.warn { border-color: rgba(232, 119, 107, .45); background: rgba(232, 119, 107, .06); }
ul { padding-left: 20px; }
li { margin: 4px 0; }
nav.legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid #1E2226; font-size: 13px; color: #969DA7; display: flex; flex-wrap: wrap; gap: 8px 18px; }
nav.legal a { color: #969DA7; }

/* News, calendar and market pages */
main.wide { max-width: 52rem; }
h3 { color: #F3F4F6; font-size: 16px; margin: 22px 0 6px; }
nav.top { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 16px; }
nav.top a { color: #969DA7; text-decoration: none; }
nav.top a:hover { color: #F3F4F6; }
nav.markets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
nav.markets a { font-size: 13px; padding: 4px 10px; border: 1px solid #292D32; border-radius: 999px; text-decoration: none; color: #C9CDD3; }
nav.markets a[aria-current="page"] { border-color: #6C8CFF; color: #F3F4F6; }
.item { border-top: 1px solid #1E2226; padding-top: 4px; }
.item h2, .item h3 { margin-top: 18px; }
.meta { color: #969DA7; font-size: 13px; }
.big { font-size: 20px; color: #F3F4F6; font-weight: 600; margin: 0 0 6px; }
.small { font-size: 13px; margin-top: 32px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid #1E2226; }
th { color: #969DA7; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td:nth-child(1), td:nth-child(2) { white-space: nowrap; }

/* Calendar cards and direction colours on the news, calendar and market pages */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #969DA7; }
.lv-critical .imp, .legend .lv-critical { color: #E8776B; }
.lv-high .imp, .legend .lv-high { color: #D3A44F; }
.calday h3 { margin: 26px 0 10px; }
.calev { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 14px 12px 16px; margin-bottom: 8px; border: 1px solid #292D32; border-radius: 10px; background: #111416; }
.calev::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #292D32; }
.calev.lv-critical { border-color: rgba(232, 119, 107, .35); background: rgba(232, 119, 107, .05); }
.calev.lv-critical::before { background: #E8776B; } .calev.lv-high::before { background: #D3A44F; }
.calev .when b { display: block; font-size: 19px; color: #F3F4F6; font-variant-numeric: tabular-nums; }
.calev .when span { font-size: 11px; color: #969DA7; }
.calev .top { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.calev .imp { font-size: 12px; font-weight: 700; margin-right: 4px; color: #969DA7; }
.chip { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid #292D32; }
.calev h4 { margin: 0 0 6px; font-size: 15px; color: #F3F4F6; line-height: 1.4; }
.calev .adv { margin: 0; font-size: 13.5px; padding: 5px 9px; border-radius: 6px; background: rgba(211, 164, 79, .09); }
.calev .res { margin: 6px 0 0; font-size: 13.5px; padding: 5px 9px; border-radius: 6px; background: rgba(79, 178, 134, .09); }
.bias { margin: 0 0 6px; font-weight: 700; }
.bias.bull, .up { color: #4FB286; } .bias.bear, .down { color: #E8776B; } .bias.neutral { color: #D3A44F; }
@media (max-width: 600px) { .calev { grid-template-columns: 1fr; gap: 4px; } .calev .when b { display: inline; margin-right: 6px; } }

/* Top stocks page */
table.stocks { width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: 14px; }
table.stocks th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #969DA7; padding: 8px 10px; border-bottom: 1px solid #292D32; }
table.stocks td { padding: 10px; border-bottom: 1px solid #1E2226; vertical-align: middle; }
table.stocks .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.stocks a { color: #F3F4F6; text-decoration: none; }
.tone { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; color: #D3A44F; background: rgba(211, 164, 79, .1); border: 1px solid rgba(211, 164, 79, .3); }
.tone.bull { color: #4FB286; background: rgba(79, 178, 134, .1); border-color: rgba(79, 178, 134, .3); }
.tone.bear { color: #E8776B; background: rgba(232, 119, 107, .1); border-color: rgba(232, 119, 107, .3); }
.flat { color: #D3A44F; }
.stock { border: 1px solid #292D32; background: #111416; border-radius: 12px; padding: 20px 22px; margin: 0 0 16px; scroll-margin-top: 16px; }
.stock header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.stock h2 { margin: 0; font-size: 20px; color: #F3F4F6; }
.stock header .meta { margin: 2px 0 0; }
.stock .px { margin: 14px 0 2px; font-size: 15px; font-weight: 600; }
.stock .px b { font-size: 26px; color: #F3F4F6; margin-right: 6px; font-variant-numeric: tabular-nums; }
.stock dl { display: grid; grid-template-columns: 9.5rem 1fr; margin: 16px 0 0; border-top: 1px solid #1E2226; }
.stock dt, .stock dd { margin: 0; padding: 11px 0; border-bottom: 1px solid #1E2226; font-size: 14.5px; line-height: 1.55; }
.stock dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #969DA7; padding-top: 14px; }
.stock .note { margin: 12px 0 0; font-size: 12.5px; }
@media (max-width: 600px) {
  .stock { padding: 16px; }
  .stock dl { grid-template-columns: 1fr; }
  .stock dt { border-bottom: 0; padding-bottom: 0; }
  table.stocks .hide-sm { display: none; }
  table.stocks td, table.stocks th { padding: 8px 6px; }
}

/* Scorecard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 10px; margin: 18px 0; }
.stat { border: 1px solid #292D32; background: #111416; border-radius: 10px; padding: 12px 14px; }
.stat span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #969DA7; }
.stat b { display: block; font-size: 24px; color: #F3F4F6; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat small { color: #969DA7; font-size: 12px; }
table.stocks td { font-size: 13.5px; line-height: 1.45; }
.srcb { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #969DA7; border: 1px solid #292D32; vertical-align: middle; }
.srcb.ok { color: #4FB286; border-color: rgba(79, 178, 134, .35); background: rgba(79, 178, 134, .08); }
.tone.neutral { color: #969DA7; background: transparent; border-color: #292D32; }

/* Guide tables scroll sideways on small screens instead of widening the page. */
.tablewrap { overflow-x: auto; margin: 12px 0 20px; }
table.guide td { white-space: normal; min-width: 7rem; }

/* Black-and-gold theme, matching the dashboard */
@font-face { font-family: "Playfair Display Variable"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/fonts/playfair-latin-variable.woff2) format("woff2"); }
html, body { background: #09090B; }
body { color: #D4CDBF; box-shadow: inset 0 2px 0 #C9A55A; }
h1, h2 { font-family: "Playfair Display Variable", Georgia, "Times New Roman", serif; font-weight: 600; color: #F6F1E7; letter-spacing: -.005em; }
h1 { font-size: 34px; }
h3, .big { color: #F6F1E7; }
a { color: #F6F1E7; text-decoration-color: rgba(201, 165, 90, .5); }
a:hover { color: #E6CB8B; text-decoration-color: #C9A55A; }
nav.top a:hover, nav.legal a:hover, .back:hover { color: #E6CB8B; }
nav.markets a[aria-current="page"] { border-color: #C9A55A; color: #E6CB8B; }
.box { background: #111113; border-color: #2C2924; }
.item, nav.legal, th, td { border-color: #1E1C19; }
.date, .meta { color: #9C9483; }

/* News stories as cards (news and market pages) */
.story { margin: 0 0 16px; padding: 20px 22px 16px; border: 1px solid #2C2924; border-radius: 8px; background: #111113; box-shadow: inset 0 1px 0 rgba(201, 165, 90, .22); }
.story h2, .story h3 { margin: 10px 0 14px; font-size: 21px; line-height: 1.3; }
.story-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 12px; color: #9C9483; }
.story .rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border: 1px solid #C9A55A; border-radius: 4px; color: #E6CB8B; font-weight: 700; font-variant-numeric: tabular-nums; }
.story .cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cat, #9C9483); }
.cat-rates { --cat: #8FA9E8; } .cat-geo { --cat: #E0806F; } .cat-policy { --cat: #D9B467; } .cat-macro { --cat: #6FC1C9; } .cat-fund { --cat: #B39DE6; } .cat-tech { --cat: #6EC796; } .cat-flows { --cat: #E395B6; }
.story .imp { display: inline-flex; gap: 2px; }
.story .imp i { width: 10px; height: 3px; border-radius: 1px; background: #2C2924; }
.story .imp i.on { background: #E26C5F; }
.story .when { margin-left: auto; }
.story .point, .story .move { position: relative; margin: 0 0 10px; padding: 12px 14px 12px 16px; border-radius: 6px; font-size: 15px; line-height: 1.6; color: #F6F1E7; }
.story .point b, .story .move b { display: block; margin-bottom: 3px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.story .point { background: rgba(201, 165, 90, .08); border-left: 2px solid #C9A55A; }
.story .point b { color: #E6CB8B; }
.story .move { background: rgba(255, 255, 255, .025); border-left: 2px solid #6FC1C9; font-size: 14px; color: #D4CDBF; }
.story .move b { color: #6FC1C9; }
.story .horizon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 4px 0 12px; border: 1px solid #1E1C19; border-radius: 6px; overflow: hidden; background: #1E1C19; }
.story .horizon div { padding: 10px 12px; background: #111113; }
.story .horizon dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #9C9483; }
.story .horizon dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: #D4CDBF; }
.story details.full { margin: 0 0 10px; }
.story details.full summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #E6CB8B; }
.story details.full p { margin: 8px 0 0; font-size: 14px; color: #D4CDBF; }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid #1E1C19; font-size: 12.5px; color: #9C9483; }
.story .syms { display: flex; flex-wrap: wrap; gap: 6px; }
.story .sym { padding: 2px 8px; border: 1px solid #2C2924; border-radius: 4px; font-size: 11.5px; font-weight: 600; color: #D4CDBF; text-decoration: none; }
a.sym:hover { border-color: #C9A55A; color: #E6CB8B; }
.story .src { margin-left: auto; }
@media (max-width: 600px) {
  .story { padding: 16px 14px 12px; }
  .story h2, .story h3 { font-size: 18px; }
  .story .horizon { grid-template-columns: 1fr; }
  .story .when, .story .src { margin-left: 0; }
}
