/* Trade alerts sales page: sample trade card + Telegram sample.
   Generated from the app's tokens.css and tradeAlerts.css by .scratch-sales/build-sales-assets.test.tsx (see README.txt).
   Every selector is under .ta-sample (card) or .ta-tg (Telegram). Load this file AFTER site.css. Layout answers to the width of the
   .ta-sample box (container query), not the window, so the card works in a narrow column. The chart island stays dark. */
.ta-sample {
  color-scheme: light;
  --navy-950: #05080f;
  --navy-900: #0a1020;
  --navy-800: #121c36;
  --navy-700: #172344;
  --navy-600: #1a3f78;
  --navy-500: #102a4c;
  --gold-700: #8f6815;
  --gold-600: #b8871b;
  --gold-500: #d9a521;
  --gold-400: #f0c35a;
  --gold-soft: #fff7e4;
  --accent: #4f8bff;
  --cyan: #22d3ee;
  --lane-system: #51617c;
  --lane-system-bright: #9db1cf;
  --lane-system-soft: #eef2f8;
  --lane-system-glow: rgba(81, 97, 124, 0.35);
  --lane-openai: #14805f;
  --lane-openai-bright: #2fd0a8;
  --lane-openai-soft: #e4f6f0;
  --lane-openai-glow: rgba(31, 158, 122, 0.4);
  --lane-claude: #a84d17;
  --lane-claude-bright: #ff9e64;
  --lane-claude-soft: #fff1e8;
  --lane-claude-glow: rgba(255, 158, 100, 0.4);
  --lane-grok: #6b46d6;
  --lane-grok-bright: #b18cff;
  --lane-grok-soft: #f1ecff;
  --lane-grok-glow: rgba(177, 140, 255, 0.4);
  --lane-gemini: #1a6db8;
  --lane-gemini-bright: #5aa9f5;
  --lane-gemini-soft: #e7f3fd;
  --lane-gemini-glow: rgba(90, 169, 245, 0.4);
  --up: #0d8a56;
  --up-bright: #35d68f;
  --up-soft: #e7f8f0;
  --down: #c22f3d;
  --down-bright: #ff7b86;
  --down-soft: #fdeef0;
  --warn: #c26e14;
  --warn-bright: #ffb257;
  --warn-soft: #fff3e4;
  --info: #1f5fae;
  --info-strong: #143f73;
  --info-soft: #edf5ff;
  --live: #e33e5f;
  --live-soft: #fdeaef;
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --surface-3: #eef3fa;
  --line: #dbe4f0;
  --line-strong: #b9c7d8;
  --ink: #10203a;
  --ink-soft: #33445f;
  --ink-muted: #5d6b82;
  --stadium-bg: var(--navy-900);
  --stadium-surface: var(--navy-800);
  --stadium-line: #1f2b4d;
  --stadium-ink: #e9eefb;
  --stadium-muted: #9fb0d0;
  --font-body:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-display:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-hero: clamp(30px, 4.5vw, 46px);
  --fs-h1: clamp(24px, 3vw, 32px);
  --fs-h2: clamp(19px, 2.2vw, 24px);
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12.5px;
  --fs-score-xl: clamp(40px, 6vw, 64px);
  --fs-score: clamp(26px, 3.6vw, 38px);
  --fs-stat: 19px;
  --lh-display: 1.12;
  --lh-body: 1.55;
  --track-display: -0.02em;
  --track-eyebrow: 0.07em;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
  --sp-10: 72px;
  --card-pad: clamp(18px, 2.2vw, 26px);
  --section-gap: var(--sp-7);
  --tap-min: 44px;
  --r-panel: 20px;
  --r-card: 16px;
  --r-ctl: 10px;
  --r-chip: 999px;
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--line-strong);
  --shadow-1: 0 1px 2px rgba(16, 42, 76, 0.05), 0 6px 18px rgba(16, 42, 76, 0.06);
  --shadow-2: 0 2px 4px rgba(16, 42, 76, 0.06), 0 14px 34px rgba(16, 42, 76, 0.1);
  --shadow-3: 0 20px 50px rgba(7, 26, 50, 0.22);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 480ms;
  --ease-out: cubic-bezier(0.22, 0.9, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.44, 1);
  --z-ticker: 40;
  --z-nav: 50;
  --z-banner: 60;
  --z-modal: 100;
}
.ta-sample [data-surface="stadium"] {
  color-scheme: dark;
  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --surface-2: var(--navy-700);
  --surface-3: var(--navy-700);
  --line: var(--stadium-line);
  --line-strong: rgba(233, 238, 251, 0.22);
  --ink: var(--stadium-ink);
  --ink-soft: #c7d3ef;
  --ink-muted: var(--stadium-muted);
  --up: var(--up-bright);
  --down: var(--down-bright);
  --warn: var(--warn-bright);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, 0.35), 0 18px 44px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  background: var(--bg);
  --gold-400: #7fb0ff;
  --gold-500: var(--accent);
  --gold-soft: rgba(79, 139, 255, 0.14);
}
.ta-sample [data-surface="stadium"] {
  --lane-system: var(--lane-system-bright);
  --lane-openai: var(--lane-openai-bright);
  --lane-claude: var(--lane-claude-bright);
  --lane-grok: var(--lane-grok-bright);
  --lane-gemini: var(--lane-gemini-bright);
}
.ta-sample [data-lane="system"] {
  --lane: var(--lane-system);
  --lane-soft: var(--lane-system-soft);
  --lane-bright: var(--lane-system-bright);
  --lane-glow: var(--lane-system-glow);
}
.ta-sample [data-lane="openai"] {
  --lane: var(--lane-openai);
  --lane-soft: var(--lane-openai-soft);
  --lane-bright: var(--lane-openai-bright);
  --lane-glow: var(--lane-openai-glow);
}
.ta-sample [data-lane="claude"] {
  --lane: var(--lane-claude);
  --lane-soft: var(--lane-claude-soft);
  --lane-bright: var(--lane-claude-bright);
  --lane-glow: var(--lane-claude-glow);
}
.ta-sample [data-lane="grok"] {
  --lane: var(--lane-grok);
  --lane-soft: var(--lane-grok-soft);
  --lane-bright: var(--lane-grok-bright);
  --lane-glow: var(--lane-grok-glow);
}
.ta-sample [data-lane="gemini"] {
  --lane: var(--lane-gemini);
  --lane-soft: var(--lane-gemini-soft);
  --lane-bright: var(--lane-gemini-bright);
  --lane-glow: var(--lane-gemini-glow);
}

/* ---- sample card: base, reset and sample-only rules (everything is under .ta-sample) ---- */
.ta-sample { container: tasample / inline-size; display: block; text-align: left; font-family: var(--font-body); font-size: 16px; line-height: var(--lh-body); color: var(--ink); background: transparent; text-transform: none; letter-spacing: normal; }
.ta-sample *, .ta-sample *::before, .ta-sample *::after { box-sizing: border-box; }
.ta-sample :is(h3, h4, p, ul, ol, dl, dd, figure, table) { margin: 0; }
.ta-sample :is(ul, ol) { padding: 0; }
.ta-sample .ta-sample-cap { display: inline-block; margin: 0 0 var(--sp-2); padding: 2px var(--sp-3); border: 1px solid var(--line-strong); border-radius: var(--r-chip); font-size: var(--fs-micro); font-weight: 600; line-height: 1.5; color: var(--ink-muted); background: var(--surface); max-width: none; }
.ta-sample .ta-chart-svg--phone { display: none; }
.ta-sample .ta-sample-cap, .ta-sample .ta-page { font-family: var(--font-body); }
.ta-sample .ta-page { padding: 0; max-width: none; }
.ta-sample .ta-page :is(h3, h4) { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-transform: none; }
.ta-sample .ta-page :is(p, li, dd, dt, td, th, span, div) { max-width: none; }
.ta-sample .ta-card-h h4 { font-weight: 800; }
.ta-sample .ta-sr { position: absolute; }
.ta-sample .ta-bot-name { color: var(--ink); }
.ta-sample .ta-th { padding: var(--sp-4); }
.ta-sample .ta-th-meta span { white-space: normal; }
.ta-sample .ta-timeline li { grid-template-columns: minmax(96px, 132px) minmax(0, 1fr); }
.ta-sample .ta-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ta-sample .ta-what p, .ta-sample .ta-headlines span, .ta-sample .ta-conds span { overflow-wrap: anywhere; }
.ta-sample .ta-levels { table-layout: fixed; }
.ta-sample .ta-levels th { width: 38%; overflow-wrap: anywhere; }
@container tasample (max-width: 600px) {
  .ta-sample .ta-chart-svg--web { display: none; }
  .ta-sample .ta-chart-svg--phone { display: block; }
  .ta-sample .ta-timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
  .ta-sample .ta-th-sym h3 { font-size: 26px; }
}

/* ---- rules taken from tradeAlerts.css (selectors scoped, phone and desktop breakpoints turned into container breakpoints) ---- */
.ta-sample .ta-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ta-sample .ta-page { display: block; max-width: 1312px; margin: 0 auto; padding: var(--sp-4); font-variant-numeric: tabular-nums; color: var(--ink); }
.ta-sample .ta-page h3,
.ta-sample .ta-page h4,
.ta-sample .ta-page h5 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.ta-sample .ta-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ta-sample .ta-tone-up { color: var(--up); }
.ta-sample .ta-tone-down { color: var(--down); }
.ta-sample .ta-tone-warn { color: var(--warn); }
.ta-sample .ta-tone-neutral { color: var(--ink); }
.ta-sample .ta-eyebrow { display: block; font-size: var(--fs-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.ta-sample .ta-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 22px; padding: 0 var(--sp-2); border-radius: calc(var(--r-ctl) / 2); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; width: fit-content; }
.ta-sample .ta-pill--open { background: var(--info-soft); color: var(--info-strong); border-color: var(--info); }
.ta-sample .ta-pill--closed { background: var(--surface-3); color: var(--ink-soft); }
.ta-sample .ta-pill--long { background: var(--up-soft); color: var(--up); border-color: var(--up); }
.ta-sample .ta-pill--short { background: var(--down-soft); color: var(--down); border-color: var(--down); }
.ta-sample .ta-pill--paper { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-muted); background: transparent; }
.ta-sample .ta-bot { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; font-weight: 600; font-size: var(--fs-small); white-space: nowrap; }
.ta-sample .ta-bot-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--lane, var(--ink-muted)); }
.ta-sample .ta-bot-name { overflow: hidden; text-overflow: ellipsis; }
.ta-sample .ta-disclaimer { margin: var(--sp-4) 0 0; padding-top: var(--sp-4); border-top: 1px solid var(--line); font-size: var(--fs-micro); line-height: 1.5; color: var(--ink-muted); }
.ta-sample .ta-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.ta-sample .ta-card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); min-height: 48px; }
.ta-sample .ta-card-h h4 { font-size: var(--fs-small); line-height: 1.4; font-weight: 800; }
.ta-sample .ta-card-b { padding: var(--sp-4); }
.ta-sample .ta-cardpage { display: grid; gap: var(--sp-4); }
.ta-sample .ta-th { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); padding: var(--sp-5) var(--sp-6); }
.ta-sample .ta-th-l { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.ta-sample .ta-th-sym { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
.ta-sample .ta-th-sym h3 { font-size: var(--fs-h1); line-height: 1.15; }
.ta-sample .ta-th-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); color: var(--ink-muted); font-size: var(--fs-micro); }
.ta-sample .ta-th-r { display: flex; align-items: center; gap: var(--sp-6); }
.ta-sample .ta-result-block { text-align: right; max-width: 280px; }
.ta-sample .ta-result-big { font-size: var(--fs-score); font-weight: 700; line-height: 1.1; }
.ta-sample .ta-result-note { margin-top: var(--sp-1); font-size: var(--fs-micro); color: var(--ink-muted); }
.ta-sample .ta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.ta-sample .ta-notes { margin: 0; padding-left: var(--sp-5); color: var(--ink-muted); font-size: var(--fs-micro); line-height: 1.5; }
.ta-sample .ta-chart { margin: 0; border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; background: var(--bg); color: var(--ink); }
.ta-sample .ta-chart-top { padding: var(--sp-3) var(--sp-4) 0; font-size: var(--fs-micro); color: var(--ink-muted); }
.ta-sample .ta-chart-stage { position: relative; touch-action: pan-y; }
.ta-sample .ta-chart-svg { width: 100%; }
.ta-sample .ta-chart-svg svg { display: block; width: 100%; height: auto; }
.ta-sample .ta-chart-note { display: grid; gap: var(--sp-1); padding: var(--sp-2) var(--sp-4) var(--sp-3); font-size: var(--fs-micro); color: var(--ink-muted); }
.ta-sample .ta-levels { width: 100%; border-collapse: collapse; }
.ta-sample .ta-levels th,
.ta-sample .ta-levels td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: var(--fs-small); text-align: left; }
.ta-sample .ta-levels tr:first-child th,
.ta-sample .ta-levels tr:first-child td { border-top: 0; }
.ta-sample .ta-levels th { color: var(--ink-muted); font-weight: 400; width: 132px; padding-right: var(--sp-3); }
.ta-sample .ta-levels-val { text-align: right !important; }
.ta-sample .ta-levels-val .ta-num { font-weight: 600; font-size: var(--fs-body); }
.ta-sample .ta-levels-sub { display: block; color: var(--ink-muted); font-size: var(--fs-micro); margin-top: 2px; }
.ta-sample .ta-levels-note td { border-top: 0; padding: 0 0 var(--sp-3); color: var(--ink-muted); font-size: var(--fs-micro); line-height: 1.4; }
.ta-sample .ta-swatch { display: inline-block; width: 12px; height: 0; margin-right: var(--sp-2); border-top: 2px dashed currentColor; vertical-align: middle; }
.ta-sample .ta-swatch--entry { color: var(--ink); }
.ta-sample .ta-swatch--stop { color: var(--down); }
.ta-sample .ta-swatch--target { color: var(--up); }
.ta-sample .ta-swatch--trail { color: var(--warn); }
.ta-sample .ta-conds { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.ta-sample .ta-conds li { display: grid; grid-template-columns: 20px 1fr; gap: var(--sp-3); font-size: var(--fs-small); line-height: 1.45; }
.ta-sample .ta-cond-n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.ta-sample .ta-stored { margin-top: var(--sp-4); padding: var(--sp-3); border-radius: var(--r-ctl); background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--ink-soft); overflow-wrap: anywhere; }
.ta-sample .ta-honest { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--ink); background: var(--surface-3); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.ta-sample .ta-foot-note { margin: var(--sp-3) 0 0; font-size: var(--fs-micro); line-height: 1.4; color: var(--ink-muted); }
.ta-sample .ta-foot-note--top { margin-top: 0; margin-bottom: var(--sp-3); }
.ta-sample .ta-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
.ta-sample .ta-stats > div { padding: var(--sp-3) var(--sp-4); border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-left: -1px; margin-top: -1px; }
.ta-sample .ta-stats dt { font-size: var(--fs-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.ta-sample .ta-stats dd { margin: var(--sp-1) 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); }
.ta-sample .ta-stats dd small { display: block; color: var(--ink-muted); font-family: var(--font-body); font-weight: 400; font-size: var(--fs-micro); }
.ta-sample .ta-ctx-lines { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-small); }
.ta-sample .ta-ctx-lines li { display: flex; gap: var(--sp-3); }
.ta-sample .ta-ctx-lines li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-top: 8px; flex: none; }
.ta-sample .ta-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ta-sample .ta-timeline li { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: var(--sp-4); padding: 0 0 var(--sp-5) var(--sp-6); }
.ta-sample .ta-timeline li:last-child { padding-bottom: 0; }
.ta-sample .ta-timeline li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -6px; width: 1px; background: var(--line-strong); }
.ta-sample .ta-timeline li:last-child::before { display: none; }
.ta-sample .ta-tl-dot { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.ta-sample .ta-tl-dot--amber { border-color: var(--warn); }
.ta-sample .ta-tl-dot--green { border-color: var(--up); }
.ta-sample .ta-when { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ink-muted); line-height: 1.6; }
.ta-sample .ta-what b { font-weight: 700; font-size: var(--fs-small); }
.ta-sample .ta-what p { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.ta-sample .ta-chart-stage:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
@media (forced-colors: active) {
  .ta-sample .ta-pill { border: 1px solid CanvasText; }
}
@container tasample (max-width: 819px) {
  .ta-sample .ta-th { flex-direction: column; align-items: flex-start; padding: var(--sp-4); }
  .ta-sample .ta-th-r { width: 100%; justify-content: space-between; }
  .ta-sample .ta-result-block { text-align: left; }
}
@container tasample (min-width: 820px) {
  /* Below 1200 px of card width the left column (chart, why) and the levels column end at about the same height,
     and the context block and the timeline take the full width underneath. */
  .ta-sample .ta-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "chart levels" "why levels" "context context" "timeline timeline"; }
  .ta-sample .ta-area-chart { grid-area: chart; }
  .ta-sample .ta-area-levels { grid-area: levels; }
  .ta-sample .ta-area-why { grid-area: why; }
  .ta-sample .ta-area-context { grid-area: context; }
  .ta-sample .ta-area-timeline { grid-area: timeline; }
  .ta-sample .ta-area-context .ta-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container tasample (min-width: 820px) and (max-width: 1199px) {
  .ta-sample .ta-area-timeline .ta-timeline li { grid-template-columns: 200px minmax(0, 1fr); }
}
@container tasample (min-width: 1200px) {
  .ta-sample .ta-grid { grid-template-areas: "chart levels" "why levels" "timeline context"; }
}
@container tasample (max-width: 600px) {
  .ta-sample .ta-page { padding: var(--sp-4); }
  .ta-sample .ta-levels th { width: 40%; }
  .ta-sample .ta-stats { grid-template-columns: minmax(0, 1fr); }
  .ta-sample .ta-timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
}
