/* The public tool and coin pages (fortress_charts/seo.py). Same ground as the home page (site.css): near-black, violet
   for actions, the violet-teal-yellow heat ramp, Outfit / Manrope / JetBrains Mono. The live data block is the page:
   the map picture with its price ladder, the footprint cells, the record. */
.sx-main { max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 32px) 40px; }
.sx-crumbs { font-size: 13px; color: var(--faint); margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sx-crumbs a { color: var(--dim); } .sx-crumbs a:hover { color: var(--ink); } .sx-crumbs b { color: var(--ink); font-weight: 600; }

.sx-hero { padding: 34px 0 26px; max-width: 860px; }
.sx-hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.sx-lead { color: var(--dim); font-size: 17px; margin-top: 16px; max-width: 70ch; }
.sx-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sx-upd { margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.sx-upd::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(44,224,180,.15); }

.sx-live { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding: 20px; border-radius: 12px; background: var(--card);
           box-shadow: 0 0 0 1px rgba(122,92,255,.28) inset; }
.sx-live > h2.sx-h2s, .sx-live > .sx-note, .sx-live > .sx-fps, .sx-live > .sx-big, .sx-live > table { grid-column: 1 / -1; }
.sx-pump, .sx-fpwrap { grid-template-columns: minmax(0, 1fr); }
.sx-h2s { font-size: 20px; }
.sx-missing { padding: 22px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line2) inset; color: var(--dim); }

/* the map picture */
.sx-map { margin: 0; min-width: 0; }
.sx-mapbox { position: relative; border-radius: 8px; overflow: hidden; background: #08080B; box-shadow: 0 0 0 1px var(--line) inset; padding-right: 68px; }
.sx-mapbox img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: fill; }
.sx-ticks { position: absolute; top: 0; right: 0; bottom: 0; width: 68px; border-left: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.sx-ticks span { position: absolute; left: 8px; transform: translateY(-50%); }
.sx-map figcaption { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--dim); }
.sx-map figcaption .mono { color: var(--faint); font-size: 11.5px; }
.sx-ramp { width: 64px; height: 6px; border-radius: 3px; background: var(--heat); flex: none; }

/* the ladder of bands */
.sx-levels h2 { font-size: 17px; margin-bottom: 12px; }
.sx-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sx-t th { text-align: left; font: 500 11.5px var(--f-body); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 0 8px 8px; }
.sx-t td { padding: 9px 8px; border-top: 1px solid var(--line); }
.sx-t td.mono { font-size: 12.5px; white-space: nowrap; }
.sx-t tr.up td:first-child, .sx-t tr.dn td:first-child { padding-left: 14px; position: relative; color: var(--dim); font-size: 12.5px; }
.sx-t tr.up td:first-child::before, .sx-t tr.dn td:first-child::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 2px; }
.sx-t tr.up td:first-child::before { background: var(--yellow); }
.sx-t tr.dn td:first-child::before { background: var(--violet2); }
.sx-t tr.now td { background: rgba(255,255,255,.05); color: var(--ink); font-weight: 600; text-align: center; border-top-color: var(--line2); }
.sx-note { margin-top: 12px; font-size: 13px; color: var(--faint); }
.up { color: var(--up); } .dn { color: var(--red); }
.sx-context { margin: 14px 2px 0; font-size: 14px; color: var(--dim); }

/* sections */
.sx-sec { margin-top: 64px; }
.sx-sec h2, .sx-faq h2, .sx-tools h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.sx-sec h2.mt { margin-top: 30px; }
.sx-sec p { color: var(--dim); max-width: 72ch; }
.sx-sec.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.sx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sx-list li { position: relative; padding-left: 22px; color: var(--dim); }
.sx-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 3px; border-radius: 2px; background: var(--heat); }
.sx-list b { color: var(--ink); font-weight: 600; }
.sx-more { color: var(--violet2); font-weight: 600; font-size: 14.5px; }
.sx-more:hover { color: var(--ink); }

.sx-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 18px; }
.sx-coins a { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 11px 13px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .15s, background .15s; }
.sx-coins a:hover { box-shadow: 0 0 0 1px rgba(155,131,255,.55) inset; background: var(--card2); }
.sx-coins b { font: 600 15px var(--f-head); }
.sx-coins span { grid-column: 1; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-coins em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 12px var(--f-mono); font-style: normal; }
.sx-sec.two .sx-coins { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

/* footprint cells */
.sx-fps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sx-fp { border-radius: 8px; background: #08080B; box-shadow: 0 0 0 1px var(--line) inset; padding: 10px 10px 8px; min-width: 0; }
.sx-fph { font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
.sx-fp table { width: 100%; border-collapse: separate; border-spacing: 0 2px; font: 500 11.5px var(--f-mono); }
.sx-fp th { font: 500 10.5px var(--f-body); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 4px; }
.sx-fp td { padding: 3px 6px; white-space: nowrap; }
.sx-fp td.p { text-align: center; color: var(--dim); width: 34%; }
.sx-fp td.s { text-align: right; background: linear-gradient(270deg, rgba(255,90,106,.32) calc(var(--w) * 100%), transparent 0); border-radius: 3px 0 0 3px; }
.sx-fp td.b { text-align: left; background: linear-gradient(90deg, rgba(34,211,160,.30) calc(var(--w) * 100%), transparent 0); border-radius: 0 3px 3px 0; }
.sx-fp tr.ib td.b { color: var(--up); font-weight: 600; }
.sx-fp tr.is td.s { color: var(--red); font-weight: 600; }
.sx-fp tr.poc td { box-shadow: 0 1px 0 var(--yellow) inset, 0 -1px 0 var(--yellow) inset; }
.sx-fp tr.poc td.p { color: var(--yellow); }
.sx-fpf { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }

/* the record */
.sx-rec { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sx-rec h2 { margin-bottom: 10px; }
.sx-big { font-size: 15px; color: var(--ink); }

.sx-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sx-steps li { padding: 16px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; display: grid; gap: 6px; }
.sx-steps .mono { font-size: 12px; color: var(--violet2); }
.sx-steps b { font: 600 16px var(--f-head); }
.sx-steps em { font-style: normal; font-size: 13.5px; color: var(--dim); }

.sx-faq { margin-top: 64px; padding: 26px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px rgba(122,92,255,.3) inset; }
.sx-tools { margin-top: 64px; }
.sx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sx-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 16px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .15s; }
.sx-card:hover { box-shadow: 0 0 0 1px rgba(155,131,255,.55) inset; }
.sx-card .ic { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(122,92,255,.12); }
.sx-card .ic svg { width: 18px; height: 18px; fill: none; stroke: var(--violet2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-card b { font: 600 15px var(--f-head); }
.sx-card em { font-style: normal; font-size: 13px; color: var(--dim); }
.sx .menu > a[aria-current] { color: var(--ink); background: rgba(255,255,255,.06); }

@media (max-width: 1000px) {
  .sx-live, .sx-rec { grid-template-columns: minmax(0, 1fr); }
  .sx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sx .menu > a { display: inline-flex !important; }
  .sx .menu { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .sx-sec.two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sx-fps { grid-template-columns: minmax(0, 1fr); }
  .sx-live { padding: 14px; }
}
@media (max-width: 520px) {
  .sx-steps { grid-template-columns: minmax(0, 1fr); }
  .sx-mapbox { padding-right: 56px; } .sx-ticks { width: 56px; font-size: 10px; } .sx-ticks span { left: 5px; }
  .sx-t { font-size: 12.5px; } .sx-t td { padding: 8px 5px; } .sx-t th { padding: 0 5px 8px; }
  .sx-faq { padding: 16px; }
}

/* the free chart pages (Nov 24): numbers in a row, the market table, the honest comparison, the drawing catalogue */
.sx-one { grid-template-columns: minmax(0, 1fr); }
.sx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.sx-stats > div { padding: 16px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; display: grid; gap: 4px; }
.sx-stats > div::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--heat); margin-bottom: 6px; }
.sx-stats b { font: 700 clamp(24px, 2.6vw, 32px) var(--f-head); color: var(--ink); line-height: 1.1; }
.sx-stats span { font-size: 13px; color: var(--dim); }
.sx-dim { color: var(--faint); font-size: 12.5px; }
.sx-mkt td:last-child, .sx-mkt th:last-child { text-align: right; }
.sx-vs td { vertical-align: top; color: var(--dim); }
.sx-vs td:first-child { color: var(--ink); font-weight: 600; width: 26%; }
.sx-vs td:nth-child(2) { background: rgba(122,92,255,.06); }
.sx-vs th:nth-child(2) { color: var(--violet2); }
.sx-vs td.w { color: var(--ink); }
.sx-vs td.w::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 8px; vertical-align: 1px; }
.sx-dgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sx-dg { padding: 16px; border-radius: 10px; background: #08080B; box-shadow: 0 0 0 1px var(--line) inset; }
.sx-dg h3 { font: 600 16px var(--f-head); display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.sx-dg h3 em { font-style: normal; font-size: 12px; color: var(--violet2); }
.sx-dg h4 { font: 500 11.5px var(--f-body); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 6px; }
.sx-dg ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.sx-dg li { font-size: 13.5px; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.sx-dg li { align-items: center; }
.sx-dg kbd { display: inline-block; width: auto; height: auto; min-width: 0; line-height: 1.5; font-size: 11px; color: var(--ink); background: rgba(255,255,255,.06); border-radius: 4px; padding: 0 6px; white-space: nowrap; box-shadow: none; flex: none; font-weight: 500; animation: none; }
@media (max-width: 1000px) { .sx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sx-dgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-dgs { grid-template-columns: minmax(0, 1fr); }
  .sx-vs td:first-child { width: auto; } .sx-vs { font-size: 12.5px; } }
/* Nov 26: gold / forex, economic calendar, compare, TradingView free-plan pages */
.sx-mkt tr.sx-grp td { text-align: left; padding: 16px 8px 6px; border-top: 0; font: 600 11.5px var(--f-body); color: var(--violet2); text-transform: uppercase; letter-spacing: .06em; }
.sx-h2b { margin-top: 26px; }
.sx-cal td { vertical-align: top; }
.sx-cal td:first-child { color: var(--dim); }
.sx-cal td:nth-child(3) { color: var(--ink); }
.sx-imp { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin: 0 8px 1px 0; vertical-align: middle; }
.sx-imp.hi { background: var(--red); } .sx-imp.md { background: var(--yellow); }
.sx-cmp td:first-child { width: 34%; }
.sx-cmp td.sx-barc { width: 46%; }
.sx-bar { display: block; height: 8px; border-radius: 0 4px 4px 0; opacity: .85; }
.sx-bar.up { background: var(--up); } .sx-bar.dn { background: var(--red); }
.sx-cmp td.mono { text-align: right; }
.sx-lim td:nth-child(2) { background: none; color: var(--dim); }
.sx-lim th:nth-child(2) { color: var(--faint); }
.sx-lim td.w { color: var(--ink); background: rgba(122,92,255,.06); }
.sx-lim th:nth-child(3) { color: var(--violet2); }
@media (max-width: 640px) {
  .sx-cal th:nth-child(5), .sx-cal td:nth-child(5) { display: none; }
  .sx-cmp td:first-child .sx-dim { display: none; }
}
