/* Gold signal page: maps the dashboard's style names onto RealChart's colours (light or dark, from /learn/style.css). */
:root{
  --color-bg:var(--bg); --color-panel:var(--panel); --color-border-line:var(--line); --color-fg:var(--ink); --color-fg-muted:var(--muted);
  --color-ok:#26b892; --color-bad:#f05268; --color-warn:#f5a623;
  --font-anthropic-sans:'Trebuchet MS',-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-anthropic-serif:'Trebuchet MS',-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif;
  --cds-font-size-caption:13px; --cds-font-size-body:15px; --cds-font-size-heading:18px; --cds-font-size-title:28px; --cds-font-weight-medium:700;
  --cds-gap-xs:6px; --cds-gap-sm:10px; --cds-gap-md:16px; --cds-gap-lg:24px;
  --cds-pad-xs:6px; --cds-pad-sm:10px; --cds-pad-md:14px; --cds-pad-lg:20px; --cds-radius:14px;
  --cds-surface-popover:#19222e; --cds-border:#2a3648; --cds-shadow-popover:0 10px 30px rgba(0,0,0,.45); --cds-text-secondary:var(--muted);
  --cds-chart-axis:#2a3648; --cds-chart-grid:#1a2330; --cds-chart-reference:var(--ink);
  --sw0:#f5a623; --sw1:#5b8ff9;
}
:root[data-theme="light"]{--color-ok:#0a9a7c; --color-bad:#d8364a; --color-warn:#c27408; --cds-surface-popover:#ffffff; --cds-border:#cfd6e0; --cds-shadow-popover:0 10px 30px rgba(20,30,50,.16); --cds-chart-axis:#c3cbd6; --cds-chart-grid:#e6eaf0;}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--color-ok:#0a9a7c; --color-bad:#d8364a; --color-warn:#c27408; --cds-surface-popover:#ffffff; --cds-border:#cfd6e0; --cds-shadow-popover:0 10px 30px rgba(20,30,50,.16); --cds-chart-axis:#c3cbd6; --cds-chart-grid:#e6eaf0;}}
.gold-main{padding-top:26px;padding-bottom:40px}
.gold-risk{font-size:13.5px;color:var(--muted);background:var(--panel);border:1px solid rgba(245,166,35,.4);border-radius:12px;padding:10px 14px;margin-bottom:20px}
.gold-risk b{color:var(--link)}
.gold-src{font-size:12.5px;color:var(--muted);margin-top:22px}
#dash-root .gd h1{font-weight:800;letter-spacing:-.4px}
#dash-root .gd .tile .num{font-weight:800}
#dash-root .gd select,#dash-root .gd button{font:inherit;color:var(--ink);background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:7px 10px}
#dash-root .gd a{color:var(--link)}
@media (max-width:640px){#dash-root .gd .hide-sm{display:none}}
/* sign-in screen */
html.gated #dash-root,html.gated .gold-src{filter:blur(8px);pointer-events:none;user-select:none}
.gate-card .btn{text-decoration:none}
html.gated body{overflow:hidden}
.gate{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:rgba(11,16,22,.6)}
.gate-card{width:min(420px,100%);background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:28px 24px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.5)}
.gate-card img{border-radius:14px;margin:0 auto 12px;display:block}
.gate-card h2{font-size:21px;font-weight:800;margin:0 0 8px}
.gate-card p{font-size:14.5px;color:var(--muted);margin:0 0 18px}
.gate-card .btn{display:inline-block}
.gate-fine{font-size:12.5px!important;margin:14px 0 0!important}
.gate-fine a{color:var(--muted);text-decoration:underline}
/* Phones: the factor tables become stacked cards so every word fits without sideways scrolling */
@media (max-width:640px){
  #dash-root .gd table[data-source="indicators"] thead,#dash-root .gd table[data-source="pro_checks"] thead{display:none}
  #dash-root .gd table[data-source="indicators"],#dash-root .gd table[data-source="pro_checks"],#dash-root .gd table[data-source="indicators"] tbody,#dash-root .gd table[data-source="pro_checks"] tbody{display:block;width:100%}
  #dash-root .gd table[data-source="indicators"] tr,#dash-root .gd table[data-source="pro_checks"] tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 8px;align-items:center;padding:12px 0;border-bottom:1px solid rgba(128,128,128,.25)}
  #dash-root .gd table[data-source="pro_checks"] tr{grid-template-columns:minmax(0,1fr) auto}
  #dash-root .gd table[data-source="indicators"] td,#dash-root .gd table[data-source="pro_checks"] td{display:block!important;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
  #dash-root .gd table[data-source="indicators"] td:first-child,#dash-root .gd table[data-source="pro_checks"] td:first-child{font-weight:600}
  #dash-root .gd table[data-source="indicators"] td:nth-child(n+4),#dash-root .gd table[data-source="pro_checks"] td:nth-child(n+3){grid-column:1/-1}
  #dash-root .gd table[data-source="indicators"] td:nth-child(n+5),#dash-root .gd table[data-source="pro_checks"] td:nth-child(n+4){font-size:12px;opacity:.72}
  #dash-root .gd table[data-source="indicators"] td:nth-child(3)::before{content:"×"}
  #dash-root .gd table.guide{font-size:11.5px}
  #dash-root .gd table.guide td,#dash-root .gd table.guide th{padding:6px 4px}
  #dash-root .gd table.guide td.c{white-space:normal}
  #dash-root .gd table.guide .pill{white-space:normal;font-size:10.5px;padding:2px 6px}
}
#dash-root .gd .src-link{color:#f5a623;text-decoration:underline;white-space:nowrap}
#dash-root .gold-now{display:inline-block;margin-top:4px;font-size:14px}#dash-root .gold-now b{font-size:16px}#dash-root .gold-now i{font-style:normal;font-size:10px;text-transform:uppercase;letter-spacing:.06em;padding:1px 6px;border-radius:999px;background:#26b892;color:#04130f;margin-left:4px}
#dash-root .gd .src-late{color:#f5a623;font-weight:600}
