/* THE SIGNED-OUT SITE'S ONE STYLE (GREAT-WALL F16a, 15 Nov 2026).

   The look audit of 15 Nov (docs/audit-2026-11-15/look/REPORT.md) found 8 top bars, 3 fonts, 6 button colors and
   9 corner sizes on the pages a visitor reads before signing up (consistency 3/10). The owner: one style, the one on
   Plans, Coach Jag and News. This file is that style, written once. Every signed-out page loads it LAST in its head
   (scripts/stamp-public-header.mjs writes the <link>), so it wins over the page's own older inline rules.

   What it sets, and nothing else:
     the font     Inter (self-hosted, the same files as css/fonts-inter.css), on every element but code
     the top bar  header.jag-head: white, the logo on the site grid's left edge, What we offer / Coach Jag / Plans / News
                  right after it (F18a, 15 Nov: no longer centered), Sign in and Create free account at the grid's right. Phone: logo, Sign in, Create free account and the menu icon, ONE row of 56px.
     the footer   footer.jag-foot: the links and small print every page's HTML carries; js/cookie-consent.js redraws it at
                  load as the outside footer (F18c: Product, Learn, Tools, Company, Legal columns) for a signed-out visitor
     buttons      teal #0F6E76 for the main action, white with a thin gray border for the second one; 8px corners
     cards        12px corners
   Buy and Sell keep their green and red; Pro keeps its one accent. Page bodies keep their own layout.
   Dark: the top bar has one dark rule (THE TOP BAR IN DARK, below), for the pages that follow a member's dark choice. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF; }

:root {
  /* DESIGN SYSTEM v1 (15 Nov 2026). The values are owned by css/tokens.css (THE DESIGN SYSTEM). The 94 signed-out
     pages load this file WITHOUT tokens.css, so each name points at its token with a fallback EQUAL to the token's
     light value: the two sheets cannot disagree again. Change a value in tokens.css and here, together. */
  --site-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --site-teal: var(--jag-accent, #0F6E76);              /* the main action; white on it is 5.98:1 */
  --site-teal-hover: var(--jag-accent-hover, #0B565D);
  --site-ink: var(--jag-ink, #1A1F29);
  --site-body: #33414E;
  --site-muted: var(--jag-ink-muted, #5A626B);          /* 6.19:1 on white */
  --site-hairline: #E3E8ED;        /* seams only */
  --site-edge: var(--jag-line, #5F7E86);                /* every control edge: 4.36:1 on white (was #C5CED6, 1.59:1) */
  --site-brown: var(--jag-pro, #A04F26);                /* Pro's orange: the Pro label only (Sign in is the secondary button since 15 Nov) */
  --site-r: var(--jag-r-sm, 8px);                       /* buttons and inputs */
  --site-r-card: var(--jag-r-md, 12px);                 /* cards */
  /* SURFACES IN BOTH THEMES (J5, 17 Nov 2026). The body rules below painted fixed light colours, so a page in dark
     kept white boxes under light words. Each is a design-system name now, the fallback its light value as above;
     css/tokens.css gives the dark ones. Four light values moved one step onto the system (definition box #EEF6F6 and
     #D3E6E7, caption strip #FAFBFC, picture ground #F6F8FA). The top bar and the footer still paint their own white
     grounds (their rules are untouched), and tokens.css keeps their names light inside them. */
  --site-ground: var(--jag-card, #FFFFFF);              /* cards, secondary buttons, ticker chips, the Pro box, the contents box */
  --site-panel: var(--jag-card, #FFFFFF);               /* a picture's caption strip */
  --site-panel-2: var(--jag-page, #F3F8F8);             /* behind a picture while it loads */
  --site-tint: var(--jag-panel, #EFF7F7);               /* the definition box */
  --site-tint-hairline: var(--jag-hairline, #D8E6E7);
  --site-on-teal: var(--jag-accent-on, #FFFFFF);        /* words on a teal button */
  /* THE SITE GRID (GREAT-WALL F18a, owner 15 Nov: "Why do you center my stuff? ... look at Schwab ... everything's laid
     out"). One content box for every outside page: as wide as the window less the gutter, at most --site-max, and the
     logo in the top bar starts on its left edge, so every page heading starts under the logo. Text keeps a readable
     measure (--site-measure) INSIDE that box, on the left; it never floats as a narrow column in the middle. */
  /* FULL WIDTH (17 Nov 2026, owner review: use the whole page, not a centred column; then yes to full width if it is better
     and the industry standard). Measured at 1920 and 2560 on 16 Nov: TradingView's quote pages
     have no cap, header and content on one gutter (100px); articles keep a ~680px text column with a rail beside it.
     So: no box. --site-max stays as a name for the pages that read it, at the window's width; the gutter grows with the
     window from 16px (phone) to 64px (2560), and the logo, every heading and every section start on it. */
  --site-max: 100vw;
  --site-gutter: clamp(16px, 2.5vw, 64px);
  --site-measure: 760px;
  --site-edge-x: var(--site-gutter);
}

/* The box itself, for a page that wants it by name. */
html body .site-grid { box-sizing: border-box; width: min(100% - 2 * var(--site-gutter), var(--site-max)); margin-left: auto; margin-right: auto; }

/* ── THE FONT ─────────────────────────────────────────────────────────────── */
html body,
html body :is(h1, h2, h3, h4, h5, h6, p, li, a, span, td, th, label, button, input, select, textarea, summary, small, strong, em, dt, dd, figcaption, blockquote) {
  font-family: var(--site-font);
}
html body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ── THE TOP BAR ──────────────────────────────────────────────────────────── */
html header.jag-head {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 16px;
  box-sizing: border-box; width: 100%; height: 64px; min-height: 0; margin: 0; padding: 0 var(--site-edge-x);
  background: #fff; border-bottom: 1px solid var(--site-hairline); box-shadow: none;
  /* the bar's letters are its own: an app page's tabular figures (Plans' body) drew its words half a pixel wider */
  font-variant-numeric: normal; font-feature-settings: normal; letter-spacing: normal;
}
html header.jag-head .jag-head-brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
/* The logo picture is 1000x500 with 126px of empty space at its left (12.6%): 11px at 44px tall, 8px at 32. Pulled
   left by that much, its LETTERS start on the gutter, the same edge as every H1 (17 Nov 2026; J1 found it on the tools
   pages). Not at 374px and under, where the bar keeps 6px of padding. */
html header.jag-head .jag-head-brand img { height: 44px; width: auto; display: block; margin-left: -11px; }
html header.jag-head .jag-head-nav {
  position: static; display: flex; flex: 1 1 auto; align-self: stretch; align-items: center; justify-content: flex-start;
  flex-wrap: nowrap; gap: 0; margin: 0; padding: 0;
}
/* F18a: the four places sit right after the logo, on the left (Schwab's and every broker's bar), not floated in the
   middle of the window; Sign in and Create free account close the grid on the right. */
html header.jag-head .jag-head-mid {
  position: static; left: auto; top: auto; bottom: auto; transform: none; align-self: stretch;
  display: flex; align-items: center; gap: 28px; margin: 0 0 0 40px; white-space: nowrap;
}
html header.jag-head .jag-head-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; white-space: nowrap; }
html header.jag-head .jag-head-nav a {
  display: inline-flex; align-items: center; min-height: 0; margin: 0;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0; white-space: nowrap;
  text-decoration: none; box-shadow: none; transition: color .15s, background-color .15s, border-color .15s;
}
html header.jag-head .jag-head-mid a {
  height: 64px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: #2B3946; box-shadow: none;
}
html header.jag-head .jag-head-mid a:hover { color: var(--site-teal); background: none; }
/* the page you are on: bold teal, no underline (Plans' bar, the owner's pick of 17 Nov 2026) */
/* (Reviewer 4, 17 Nov 2026: at 800 the mark was wider than the other places, so every link right of it stood 1 px
   further right than on a page without it.) The mark keeps the places' 600 weight and adds a 2px line in its own colour
   at the bar's foot, so no link moves from page to page. */
html header.jag-head .jag-head-mid a[aria-current="page"] { color: var(--site-teal); font-weight: 600; box-shadow: inset 0 -2px 0 currentColor; }
/* Sign in is the secondary button and Create free account the primary, side by side at one height (design system,
   15 Nov 2026: Sign in was the Pro orange, and orange is Pro and only Pro). */
html header.jag-head .jag-head-auth a {
  height: 40px; padding: 0 16px; border-radius: var(--site-r); font-size: 15px; font-weight: 700;
  border: 1px solid var(--site-edge); background: #fff; color: var(--site-ink);
}
html header.jag-head .jag-head-auth a:hover { color: var(--site-teal); border-color: var(--site-teal); }
html header.jag-head .jag-head-nav a.jag-head-cta { border-color: var(--site-teal); background: var(--site-teal); color: #fff; }
html header.jag-head .jag-head-nav a.jag-head-cta:hover { border-color: var(--site-teal-hover); background: var(--site-teal-hover); color: #fff; }
html header.jag-head a:focus-visible, html header.jag-head summary:focus-visible { outline: 2px solid var(--site-teal); outline-offset: 2px; }

/* The phone's Menu: a plain <details>, so it opens with no script. Hidden on a laptop. */
html header.jag-head .jag-menu { display: none; position: relative; flex: 0 0 auto; }
html header.jag-head .jag-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
  border: 1px solid var(--site-edge); border-radius: var(--site-r); background: #fff; color: var(--site-ink);
  font-size: 14px; font-weight: 600; cursor: pointer; user-select: none;
}
html header.jag-head .jag-menu > summary::-webkit-details-marker { display: none; }
html header.jag-head .jag-menu > summary::before {
  content: ""; width: 14px; height: 10px; flex: 0 0 auto;
  background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}
html header.jag-head .jag-menu[open] > summary { border-color: var(--site-teal); color: var(--site-teal); }
html header.jag-head .jag-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 110; min-width: 230px; box-sizing: border-box;
  display: flex; flex-direction: column; padding: 6px; background: #fff;
  border: 1px solid var(--site-hairline); border-radius: var(--site-r-card); box-shadow: 0 12px 32px rgba(20, 32, 43, .16);
}
html header.jag-head .jag-menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--site-r);
  font-size: 15px; font-weight: 600; color: var(--site-ink); text-decoration: none;
}
html header.jag-head .jag-menu-panel a:hover, html header.jag-head .jag-menu-panel a[aria-current="page"] { background: #EEF6F6; color: var(--site-teal); }
html header.jag-head .jag-menu-panel hr { border: 0; border-top: 1px solid var(--site-hairline); margin: 6px 4px; }

@media (max-width: 1100px) {
  html header.jag-head .jag-head-mid { gap: 20px; margin-left: 28px; }
}
/* A tablet and a narrow window (768 to 939): the places do not fit beside Sign in and Create free account (the gate's
   widths check measured them overlapping at 768), so they move into the menu, as on a phone; the bar stays 64px.
   939, not 899: with Market notes as the fifth place, Sign in touched it from 900 to ~925; 940 is the first width where
   Sign in clears the last place by 16px (16.9 measured; 15.9 at 939) with the buttons 39px in from the right edge.
   index.html folds Home's places at the same width (Blog 4, 17 Nov 2026). */
@media (max-width: 939px) {
  html header.jag-head .jag-head-mid { display: none; }
  html header.jag-head .jag-menu { display: block; position: static; }
  html header.jag-head .jag-menu-panel { left: auto; right: 16px; top: calc(100% + 6px); width: 280px; min-width: 0; padding: 8px; }
  html header.jag-head .jag-menu-panel a { min-height: 48px; padding: 0 14px; font-size: 16px; }
  html header.jag-head .jag-menu > summary { width: 40px; height: 40px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  html header.jag-head .jag-menu > summary::before { width: 16px; height: 12px; }
}
/* The phone: ONE row of 56px. Sign in and Create free account stay in the bar (the owner's rule: never hidden on a
   phone); the four places go in the menu, drawn as the three-line icon. Measured to fit 360px and up; 320 shrinks. */
@media (max-width: 767px) {
  html header.jag-head { height: 56px; padding: 0 var(--site-gutter); gap: 6px; }
  html header.jag-head .jag-head-brand { min-height: 44px; }   /* the logo is a 44px press on a phone, as on Home */
  html header.jag-head .jag-head-brand img { height: 32px; margin-left: -8px; }
  html header.jag-head .jag-head-mid { display: none; }
  html header.jag-head .jag-head-auth { gap: 6px; }
  html header.jag-head .jag-head-auth a { height: 44px; padding: 0 10px; font-size: 13px; }
  html header.jag-head .jag-menu { display: block; position: static; }
  html header.jag-head .jag-menu-panel { left: 10px; right: 10px; top: calc(100% + 6px); min-width: 0; padding: 8px; }
  html header.jag-head .jag-menu-panel a { min-height: 48px; padding: 0 14px; font-size: 16px; }
  html header.jag-head .jag-menu[open] > summary { background: #EEF6F6; }
  html header.jag-head .jag-menu > summary { width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  html header.jag-head .jag-menu > summary::before { width: 16px; height: 12px; }
}
@media (max-width: 374px) {
  html header.jag-head { padding: 0 6px; gap: 4px; }
  html header.jag-head .jag-head-brand img { height: 28px; margin-left: 0; }
  html header.jag-head .jag-head-auth { gap: 4px; }
  html header.jag-head .jag-head-auth a { padding: 0 7px; font-size: 12px; }
  html header.jag-head .jag-menu > summary { width: 36px; }
}
/* THE TOP BAR IN DARK (17 Nov 2026; the dark-mode review: "same member, same choice, two different headers", a white
   bar on the FAQ, the beginners guide and Support, a dark one on Coach, News and Plans). When the page is dark, by
   the same three switches the dark tokens follow (the member's stored choice sets data-chart-theme before the first
   paint), the bar is the app bar's dark: the card ground and hairline, the secondary words, the current page in the
   accent, Sign in the bordered button, Create free account the accent fill. Colours only, from css/tokens.css; the
   fallbacks are the tokens' light values, so a page that is dark without tokens.css keeps today's light bar. Free vs
   Pro's own dark bar (css/plans.css) is this rule now. Light is unchanged. */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head {
  background: var(--jag-card, #FFFFFF); border-bottom-color: var(--jag-hairline, #D8E6E7); color: var(--jag-ink, #1A1F29);
}
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-head-mid a { color: var(--jag-ink-2, #31404F); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-head-mid a:hover,
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-head-mid a[aria-current="page"] { color: var(--jag-accent-text, #0F6E76); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-head-auth a,
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu > summary {
  background: var(--jag-card, #FFFFFF); border-color: var(--jag-line, #5F7E86); color: var(--jag-ink, #1A1F29);
}
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-head-auth a:hover,
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu[open] > summary { border-color: var(--jag-accent, #0F6E76); color: var(--jag-accent-text, #0F6E76); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-head-nav a.jag-head-cta {
  background: var(--jag-accent, #0F6E76); border-color: var(--jag-accent, #0F6E76); color: var(--jag-accent-on, #FFFFFF);
}
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-head-nav a.jag-head-cta:hover {
  background: var(--jag-accent-hover, #0B565D); border-color: var(--jag-accent-hover, #0B565D); color: var(--jag-accent-on, #FFFFFF);
}
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head :is(a, summary):focus-visible { outline-color: var(--jag-focus, #0F6E76); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu-panel { background: var(--jag-card, #FFFFFF); border-color: var(--jag-hairline, #D8E6E7); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu-panel a { color: var(--jag-ink, #1A1F29); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu-panel a:hover,
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu-panel a[aria-current="page"] { background: var(--jag-accent-tint-soft, #E3F3F4); color: var(--jag-accent-text, #0F6E76); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu-panel hr { border-top-color: var(--jag-hairline, #D8E6E7); }
@media (max-width: 767px) {
  :is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]) header.jag-head .jag-menu[open] > summary { background: var(--jag-accent-tint-soft, #E3F3F4); }
}
html.is-signed-in.site-guest-bar-only header.jag-head { display: none; }

/* ── THE FOOTER ───────────────────────────────────────────────────────────── */
html footer.jag-foot {
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-sizing: border-box; width: 100%;
  margin: 56px 0 0; padding: 28px 20px 32px; text-align: center;
  background: #fff; border-top: 1px solid var(--site-hairline);
}
html footer.jag-foot .jag-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin: 0; max-width: 1040px; }
html footer.jag-foot .jag-foot-links a {
  display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0 8px; border-radius: var(--site-r);
  font-size: 13px; font-weight: 600; color: #3E4B58; text-decoration: none; background: none;
}
html footer.jag-foot .jag-foot-links[aria-label="Guides"] a { font-weight: 500; font-size: 12.5px; color: var(--site-muted); min-height: 28px; }
html footer.jag-foot .jag-foot-links a:hover { color: var(--site-teal); background: #EEF6F6; }
html footer.jag-foot .jag-foot-legal { max-width: 760px; margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--site-muted); }
html footer.jag-foot .jag-foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
html footer.jag-foot .jag-social { width: auto; margin: 4px 0 0; }
html footer.jag-foot .jag-foot-note { max-width: 760px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--site-muted); }
@media (max-width: 767px) {
  html footer.jag-foot .jag-foot-links a { min-height: 44px; }
  html footer.jag-foot .jag-foot-links[aria-label="Guides"] a { min-height: 40px; }
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
/* The main action: teal. The guides' black end button, the Pro box's black button, the older tools' black
   Calculate, the stock pages' blue Trade button and the green buttons all become this one. */
html body :is(.btn-primary, .cta-primary, .seo-pro .sp-cta, .calc-btn, .fvp-cta, .seo-news-btn, .tf-btn.primary, .site-btn) {
  background: var(--site-teal); border: 1.5px solid var(--site-teal); color: var(--site-on-teal);
  border-radius: var(--site-r); font-weight: 700; text-decoration: none; box-shadow: none;
}
html body :is(.btn-primary, .cta-primary, .seo-pro .sp-cta, .calc-btn, .fvp-cta, .seo-news-btn, .tf-btn.primary, .site-btn):hover {
  background: var(--site-teal-hover); border-color: var(--site-teal-hover); color: var(--site-on-teal);
}
/* The second action: white with a thin gray border. */
html body :is(.btn-ghost, .btn-secondary, .cta-secondary, .site-btn-2) {
  background: var(--site-ground); border: 1px solid var(--site-edge); color: var(--site-ink);
  border-radius: var(--site-r); font-weight: 700; text-decoration: none; box-shadow: none;
}
html body :is(.btn-ghost, .btn-secondary, .cta-secondary, .site-btn-2):hover { border-color: var(--site-teal); color: var(--site-teal); background: var(--site-ground); }
/* The guides' closing button (div.cta > a, no class of its own) is the main action. */
html body .cta > a:not([class]) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font-size: 15px; line-height: 1; background: var(--site-teal); border: 1.5px solid var(--site-teal); color: var(--site-on-teal); border-radius: var(--site-r); font-weight: 700; text-decoration: none; box-shadow: none; }
html body .cta > a:not([class]):hover { background: var(--site-teal-hover); border-color: var(--site-teal-hover); color: var(--site-on-teal); }
html body .cta-row a { border-radius: var(--site-r); }
/* The Pro box: Create free account is the main action; Get Pro is the second one beside it. */
html body .seo-pro .sp-cta:not(.sp-free) { background: var(--site-ground); border: 1px solid var(--site-edge); color: var(--site-ink); }
html body .seo-pro .sp-cta:not(.sp-free):hover { background: var(--site-ground); border-color: var(--site-teal); color: var(--site-teal); }
/* The tools' menu: 8px tabs, not round pills. */
html body .tl-nav a { border-radius: var(--site-r); }
html body :is(input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select, textarea) { border-radius: var(--site-r); }

/* ── CARDS ────────────────────────────────────────────────────────────────── */
html body :is(.card, .seo-pro, .tool-card, .geo-answer, .tbl-wrap, .faq-item, .vs-card, .def-box, .term-box) { border-radius: var(--site-r-card); }

/* ── THE GUIDES' PRODUCT PICTURE (scripts/stamp-guide-pictures.mjs) ───────── */
/* full width (17 Nov 2026): a product picture is drawn at most at its own size (1280px), never blown up to the window */
html body figure.site-shot { display: block; box-sizing: border-box; width: fit-content; max-width: 100%; margin: 22px 0 26px; padding: 0; border: 1px solid var(--site-hairline); border-radius: var(--site-r-card); overflow: hidden; background: var(--site-ground); box-shadow: 0 1px 2px rgba(20, 32, 43, .04), 0 12px 32px rgba(20, 32, 43, .08); }
html body figure.site-shot img { display: block; width: auto; max-width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; background: var(--site-panel-2); }
html body figure.site-shot figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 12px 14px; border-top: 1px solid var(--site-hairline); text-align: left; }
html body figure.site-shot .site-shot-cap { font-size: 13px; line-height: 1.45; color: var(--site-muted); }
html body figure.site-shot .site-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 767px) {
  html body figure.site-shot { margin: 18px 0 22px; }
  html body figure.site-shot figcaption { flex-direction: column; align-items: stretch; gap: 10px; }
  html body figure.site-shot .site-btn { height: 44px; }
}

/* The demo inside Home (/try?embed=1) draws no bar and no footer: Home already has them. */
html.try-embed header.jag-head, html.try-embed footer.jag-foot { display: none !important; }

/* ── "ON THIS PAGE" (FAQ, Privacy, Terms: the audit's jump list) ──────────── */
html body nav.site-toc { margin: 4px 0 26px; padding: 16px 18px 14px; background: var(--site-ground); border: 1px solid var(--site-hairline); border-radius: var(--site-r-card); }
html body nav.site-toc .site-toc-k { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--site-muted); }
html body nav.site-toc ol { margin: 0; padding: 0 0 0 20px; columns: 2 280px; column-gap: 28px; }
html body nav.site-toc li { margin: 0 0 6px; padding: 0; break-inside: avoid; font-size: 14px; line-height: 1.4; color: var(--site-muted); }
html body nav.site-toc a { color: var(--site-teal); font-weight: 600; text-decoration: none; }
html body nav.site-toc a:hover { text-decoration: underline; text-underline-offset: 2px; }
html { scroll-padding-top: 76px; }
@media (max-width: 767px) { html body nav.site-toc li { margin-bottom: 0; } html body nav.site-toc a { display: inline-block; padding: 12px 0; } html { scroll-padding-top: 66px; } }

/* ── THE GUIDE PAGE (the polish pass, 15 Nov 2026) ────────────────────────── */
/* One link color. The guides had green links, the stock pages the browser's blue; Plans has teal. Two rules, so the
   class list does not lift the element list over the footer's own link rules. */
html body :is(p, li, td, dd) a:not([class]) { color: var(--site-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
html body :is(.crumb, .page-crumb, .related, .seo-related) a:not([class]), html body a.seo-news-demo { color: var(--site-teal); }
/* The ticker chips: 8px corners, the second button's border, teal on hover (they were round and green). */
html body .tickers a { border: 1px solid var(--site-edge); border-radius: var(--site-r); background: var(--site-ground); color: var(--site-ink); font-weight: 700; text-decoration: none; }
html body .tickers a:hover { border-color: var(--site-teal); background: var(--site-ground); color: var(--site-teal); }
html body :is(.crumb, .page-crumb) { font-size: 13px; color: var(--site-muted); }
/* Headings: 800, tight, the ink of Plans. */
html body :is(.container, .wrap) h1 { font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--site-ink); }
html body .wrap h1.page-h1 { font-size: 28px; margin-bottom: 16px; }
html body :is(.container, .wrap) :is(h2, h3) { color: var(--site-ink); letter-spacing: -.01em; }
html body .sec-label { margin: 40px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--site-muted); }
/* The definition at the top of a term page: a calm teal tint, not a green alert box. */
html body .def { background: var(--site-tint); border: 1px solid var(--site-tint-hairline); border-radius: var(--site-r-card); padding: 20px 24px; color: var(--site-ink); font-size: 17px; line-height: 1.6; }
/* Cards: one seam color and one soft lift, the picture's. */
html body :is(.container, .wrap) :is(.card, .geo-answer, .faq-item) { border-color: var(--site-hairline); box-shadow: 0 1px 2px rgba(20, 32, 43, .04); }
html body figure.site-shot figcaption { background: var(--site-panel); }
/* The Pro box: a card like the others. Pro keeps its one accent in the small label; the thick side stripe goes. */
html body .seo-pro { margin-top: 32px; padding: 24px; background: var(--site-ground); border: 1px solid var(--site-hairline); border-left: 1px solid var(--site-hairline); box-shadow: 0 1px 2px rgba(20, 32, 43, .04), 0 12px 32px rgba(20, 32, 43, .06); }
html body .seo-pro .sp-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--site-brown); }
html body .seo-pro .sp-h { margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: var(--site-ink); }
html body .seo-pro p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--site-body); }
html body .seo-pro .sp-row { margin-top: 16px; gap: 10px; }
html body .seo-pro .sp-cta { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 0 18px; font-size: 14px; line-height: 1; }
html body .cta > a:not([class]):focus-visible, html body :is(.site-btn, .sp-cta, .seo-news-btn, .cta-row a):focus-visible { outline: 2px solid var(--site-teal); outline-offset: 2px; }
html body .seo-news-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
@media (max-width: 767px) {
  html body .wrap h1.page-h1 { font-size: 23px; }
  html body .def { padding: 16px 18px; font-size: 16px; }
  html body .seo-pro { padding: 20px 18px; }
  html body .seo-pro .sp-row { flex-direction: column; align-items: stretch; }
  html body .seo-pro .sp-cta { min-height: 46px; }
  html body .cta > a:not([class]) { display: flex; width: 100%; box-sizing: border-box; }
  html body :is(.crumb, .page-crumb) a { display: inline-flex; align-items: center; min-height: 44px; }
  html body .tickers a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── A CALCULATOR PAGE'S OWN GUIDE (tools/*: how it works, a worked example, common questions; GREAT-WALL F16i) ── */
html body .tl-body .tl-guide, html body .tl-guide { display: block; margin-top: 18px; padding: 22px 24px; border-radius: var(--site-r-card); }
html body .tl-guide h2 { margin: 20px 0 6px; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--site-ink); }
html body .tl-guide h2:first-child { margin-top: 0; }
html body .tl-guide h3 { margin: 14px 0 4px; font-size: 15px; font-weight: 700; color: var(--site-ink); }
html body .tl-guide p { margin: 0 0 4px; max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--site-body); }
@media (max-width: 767px) { html body .tl-guide { padding: 16px; } }

/* ── EVERY OUTSIDE PAGE ON THE GRID (GREAT-WALL F18a, owner 15 Nov 2026: "Why do you center my stuff?") ──────────
   The guides, glossary, compare, About, FAQ and Support pages were one 760px column floating in the middle of the
   window (the heading at x=276 on a 1280 screen, the logo at 24). Now the page box is the site grid, the text keeps
   its 760px measure on the LEFT of it, and the heading starts under the logo. On a wide screen the right of the grid
   carries the page's "On this page" list (js/cookie-consent.js draws it from the page's own section headings, sticky
   under the bar); a page with fewer than three sections simply leaves that side open. */
html body > .container {
  box-sizing: border-box; position: relative; max-width: none;
  width: min(100% - 2 * var(--site-gutter), var(--site-max));
  margin-left: auto; margin-right: auto; padding-left: 0 !important; padding-right: 0 !important;
}
html body > .container > :not(.site-rail):not(style):not(script) { max-width: var(--site-measure); box-sizing: border-box; }
html body > .container > .site-rail { display: none; }
/* THE ARTICLE RAIL (17 Nov 2026, full width): from 1280px the rail takes ALL the room right of the text, not a 280px
   strip, and carries what an article's reader does next, the way TradingView's news rail carries the article's chart:
   On this page (three sections or more), Practice this (/try, on the article's own ticker when it links one), and
   the free tools on the article's topic (js/cookie-consent.js mountRail). Its parts flow into as many columns as fit:
   one at 1280 to 1600, three at 1920. Below 1280 the text has the window and the rail is not drawn. */
@media (min-width: 1280px) {
  html body > .container.has-rail { padding-right: 0 !important; }
  html body > .container.has-rail > nav.site-toc { display: none; }
  html body > .container > .site-rail { display: block; position: absolute; top: 0; left: calc(var(--site-measure) + 64px); right: 0; bottom: 64px; width: auto; max-width: none; margin: 0; }
}
html body .site-rail-in {
  position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow: auto; padding: 2px 2px 8px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; align-items: start;
}
html body .site-rail-sec { min-width: 0; margin: 0; }
html body .site-rail-k { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--site-muted); }
html body .site-rail-card { box-sizing: border-box; padding: 18px 20px 20px; background: var(--site-ground, #fff); border: 1px solid var(--site-hairline); border-radius: var(--site-r-card); box-shadow: 0 1px 2px rgba(20, 32, 43, .04); }
html body .site-rail-card .site-rail-k { margin-bottom: 8px; }
html body .site-rail-card p.site-rail-p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--site-body); }
html body .site-rail-card a.site-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 40px; padding: 0 16px; font-size: 14px; line-height: 1; white-space: nowrap; }
html body .site-rail ul { list-style: none; margin: 0; padding: 0; }
html body .site-rail ul li + li { border-top: 1px solid var(--site-hairline); }
html body .site-rail ul a { display: flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--site-teal); text-decoration: none; }
html body .site-rail ul a:hover { color: var(--site-teal-hover); text-decoration: underline; text-underline-offset: 3px; }
html body .site-rail ul a:focus-visible { outline: 2px solid var(--site-teal); outline-offset: 2px; }
html body .site-rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--site-hairline); }
html body .site-rail li { margin: 0; padding: 0; }
html body .site-rail ol a {
  display: block; margin: 0 0 0 -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--site-body); text-decoration: none;
}
html body .site-rail ol a:hover { color: var(--site-teal); }
html body .site-rail ol a[aria-current="true"] { border-left-color: var(--site-teal); color: var(--site-teal); font-weight: 600; }
html body .site-rail ol a:focus-visible { outline: 2px solid var(--site-teal); outline-offset: 2px; }

/* The guides' Related row: its links touch in the markup (no space between them), so the line could not wrap and
   /learn/position-sizing scrolled sideways by 29px at 320 (16 Nov check). A wrapping row, the same 14px apart. */
html body > .container > .related { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 6px; }
html body > .container > .related > strong { margin-right: 8px; }

/* The "Try Pro free" box under an article is a body-level section: it lined up with the text column's left edge, not
   the middle of the window (the 16 Nov check: centred under a left-aligned page on 55 pages). */
html body > section.seo-pro { box-sizing: border-box; width: min(100% - 2 * var(--site-gutter), var(--site-measure)); max-width: none; margin-left: var(--site-gutter); margin-right: auto; }
/* The stock hub's copy (/stock/: stock/index.html, written by scripts/generate-stock-seo-pages.mjs, which is J2's and
   stays untouched) starts on the page's left edge with its heading, not centred in the full-width page. */
html body section.hub-copy { margin-left: 0; margin-right: 0; }

/* THE MEASURE ON A WIDE SCREEN (17 Nov 2026, Reviewer 6 on the full-width grid): main's 1200px box used to stop the
   lines; with no box, body prose grew with the window (244 characters a line on /stock/AAPL at 2560, 209 on /support,
   216 in the market-hours note). Prose keeps a reading measure, on the gutter as before (never a centred column), the
   way the articles do; cards, tables, the demo and the chart keep the whole width. --site-prose is about 80 characters
   at any type size, never wider than the articles' measure. */
:root { --site-prose: min(var(--site-measure), 80ch); }
/* Support (and any document without the contents column): the documents' 68ch, as its heading has (written with the
   element, 0-3-3, over the document column's "max-width: none" further down) */
html body > .container.doc > article.doc-body { max-width: 68ch; }
/* News' sentiment note runs the bar's width (css/news-sentiment.css, 0-3-0); on the full-width desk that is 150
   characters at 12px, so on /news it keeps the measure */
html body main.jag-newsdesk .nsb.nsb p.nsb-note { max-width: var(--site-prose); }
/* and its dated line under the title (news.html sets .desk-hero .desk-lede to max-width: none; Reviewer 7: 134 characters) */
html body .desk-hero p.desk-lede { max-width: var(--site-prose); }
/* the stock pages (scripts/generate-stock-seo-pages.mjs writes them; J2's, so the measure is here): the company blurb,
   and the Try Pro box, which keeps its card to the articles' measure */
html body main.wrap > section.seo-blurb > :is(p, ul, ol) { max-width: var(--site-prose); }
html body main.wrap > section.seo-pro { box-sizing: border-box; max-width: var(--site-measure); }
/* the small notes are the longest lines on their pages (12 to 13px): Support's reply note, News' sentiment and source
   notes, the market-hours source, the tools' educational line and the replay caption */
html body :is(p.doc-note, p.nsb-note, p.news-guide-note, p.mk-src, .tl-body > p.fine, p.rp-cap) { max-width: var(--site-prose); }

/* The stock pages, the stock hub and sectors, and the calculators: the same box and left edge. */
html body > main.wrap:not(.jag-newsdesk), html body > div.wrap {
  box-sizing: border-box; max-width: none; width: min(100% - 2 * var(--site-gutter), var(--site-max));
  margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0;
}

/* ── TERMS, PRIVACY, SUPPORT, ACCOUNT DELETED: A REAL COMPANY'S DOCUMENT (GREAT-WALL F18b; the owner compared ours with
   FX Replay's Terms and Schwab's Account Agreement, 15 Nov 2026; cleaned the same night: "they look a bit sloppy") ──
   The page box is the site grid and everything starts on its left edge, under the logo: the label, the title, Last
   updated + Version history + Print or save as PDF, the opening paragraph, then the document in one column of about
   70 characters (68ch): numbered sections with anchors, each opened by its one-line summary ("In short", FX Replay's
   TLDR idea), then the full text, which is what applies. No card around the text: a document, not a bubble. The
   contents list stays beside the text while you read (sticky under the bar); on a phone it is one bordered row that
   opens. Print: the document alone, black on white, each link followed by its address.
   Every value is a design-system token (css/tokens.css) with its light value as the fallback, because Privacy and Terms
   load this file without tokens.css. Support does load tokens.css, so a member who chose Dark reads it dark. */
html body.doc-page { background: var(--jag-card, #FFFFFF); }
html body > .container.doc > :not(.site-rail) { max-width: none; }
html body .doc { margin-top: 48px; padding-bottom: 72px; font-size: 16px; color: var(--jag-ink-2, #31404F); }
html body .doc-head { margin: 0 0 40px; font-size: 16px; }
html body > .container.doc > .doc-head { max-width: 68ch; }
html body .doc-k { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jag-ink-muted, #5A626B); }
html body .doc h1 { margin: 0 0 16px; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--jag-ink, #1A1F29); }
html body .doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0 0 24px; font-size: 13px; line-height: 1.5; color: var(--jag-ink-muted, #5A626B); }
html body .doc-meta .updated { margin: 0; font-size: 13px; color: var(--jag-ink-muted, #5A626B); }
html body .doc-meta a { color: var(--jag-accent-text, #0F6E76); font-weight: 600; text-decoration: none; }
html body .doc-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body .doc-print, html body .doc .jag-cookie-choices {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; margin: 0; cursor: pointer;
  font-family: var(--site-font); font-size: 13px; font-weight: 600; line-height: 1; color: var(--jag-ink, #1A1F29);
  background: var(--jag-card, #FFFFFF); border: 1px solid var(--jag-line, #5F7E86); border-radius: var(--jag-r-sm, 8px);
}
html body .doc .jag-cookie-choices { min-height: 44px; font-size: 15px; }
html body .doc-print:hover, html body .doc .jag-cookie-choices:hover { border-color: var(--jag-accent, #0F6E76); color: var(--jag-accent-text, #0F6E76); background: var(--jag-card, #FFFFFF); }
html body .doc-print:focus-visible, html body .doc .jag-cookie-choices:focus-visible { outline: 2px solid var(--jag-focus, #0F6E76); outline-offset: 2px; }
html body .doc-lede p { margin: 0 0 12px; font-size: 18px; line-height: 1.55; color: var(--jag-ink, #1A1F29); }
html body .doc-how { margin: 0; font-size: 13px; line-height: 1.5; color: var(--jag-ink-muted, #5A626B); }

html body .doc-grid { display: grid; grid-template-columns: minmax(0, 68ch) 260px; column-gap: 72px; justify-content: start; align-items: start; font-size: 16px; }
html body .doc-grid > .doc-body { grid-column: 1; grid-row: 1; }
html body .doc-grid > .doc-toc { grid-column: 2; grid-row: 1; }
html body .doc-toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; margin: 0; padding: 0 0 12px; }
html body .doc-toc-d > summary { list-style: none; cursor: default; pointer-events: none; }
html body .doc-toc-d > summary::-webkit-details-marker { display: none; }
html body .doc-toc-k { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jag-ink-muted, #5A626B); }
html body .doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--jag-hairline, #D8E6E7); }
html body .doc-toc li { margin: 0; padding: 0; }
html body .doc-toc a {
  display: flex; gap: 8px; margin: 0 0 0 -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent;
  font-size: 13px; line-height: 1.4; font-weight: 400; color: var(--jag-ink-2, #31404F); text-decoration: none;
}
html body .doc-toc a:hover { color: var(--jag-accent-text, #0F6E76); }
html body .doc-toc a[aria-current="true"] { border-left-color: var(--jag-accent, #0F6E76); color: var(--jag-accent-text, #0F6E76); font-weight: 600; }
html body .doc-toc .doc-n { flex: 0 0 18px; color: var(--jag-ink-muted, #5A626B); font-variant-numeric: tabular-nums; }
html body .doc-toc a:focus-visible { outline: 2px solid var(--jag-focus, #0F6E76); outline-offset: 2px; }

html body .doc-body { min-width: 0; max-width: 68ch; font-size: 16px; }
html body .doc-sec { padding: 32px 0 8px; border-top: 1px solid var(--jag-hairline, #D8E6E7); }
html body .doc-sec:first-child { padding-top: 0; border-top: 0; }
html body .doc-sec h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--jag-ink, #1A1F29); scroll-margin-top: 12px; }
html body .doc-sec h2 .doc-n { font-variant-numeric: tabular-nums; }
html body .doc-sec h2 .doc-a { margin-left: 8px; font-weight: 400; color: var(--jag-ink-muted, #5A626B); text-decoration: none; }
html body .doc-sec h2 .doc-a:hover { color: var(--jag-accent-text, #0F6E76); }
html body .doc-sec h2 .doc-a:focus-visible { outline: 2px solid var(--jag-focus, #0F6E76); outline-offset: 2px; }
html body .doc-sec h3 { margin: 24px 0 8px; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--jag-ink, #1A1F29); scroll-margin-top: 12px; }
html body .doc-sec p, html body .doc-sec li { font-size: 16px; line-height: 1.65; color: var(--jag-ink-2, #31404F); }
html body .doc-sec p { margin: 0 0 16px; }
html body .doc-sec ul { margin: 0 0 16px 20px; padding: 0; }
html body .doc-sec li { margin: 0 0 8px; }
html body .doc :is(.doc-sec, .doc-lede) a:not([class]) { color: var(--jag-accent-text, #0F6E76); }
html body .doc-sec strong { color: var(--jag-ink, #1A1F29); font-weight: 700; }
html body .doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 1px 4px; background: var(--jag-panel, #EFF7F7); border-radius: var(--jag-r-xs, 4px); overflow-wrap: anywhere; }
html body .doc-tldr { margin: 0 0 16px; padding: 12px 16px; background: var(--jag-panel, #EFF7F7); border: 1px solid var(--jag-hairline, #D8E6E7); border-radius: var(--jag-r-sm, 8px); }
html body .doc-sec p.doc-tldr { font-size: 15px; line-height: 1.5; color: var(--jag-ink, #1A1F29); }
html body .doc-tldr-k { display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jag-accent-text, #0F6E76); }
html body .doc-sec p.doc-intro, html body .doc-sec p.doc-note { font-size: 13px; line-height: 1.5; color: var(--jag-ink-muted, #5A626B); }
html body .doc-defs { margin: 0 0 16px; padding: 0; border-top: 1px solid var(--jag-hairline, #D8E6E7); }
html body .doc-def { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--jag-hairline, #D8E6E7); }
html body .doc-def dt { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--jag-ink, #1A1F29); }
html body .doc-def dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--jag-ink-2, #31404F); }
html body .doc-hist { width: 100%; margin: 4px 0 16px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
html body .doc-hist th, html body .doc-hist td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--jag-hairline, #D8E6E7); text-align: left; vertical-align: top; }
html body .doc-hist thead th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jag-ink-muted, #5A626B); }
html body .doc-hist tbody th { width: 200px; font-weight: 700; color: var(--jag-ink, #1A1F29); }
html body .doc-hist td { color: var(--jag-ink-2, #31404F); }
html body .doc-notice { margin: 8px 0 16px; padding: 16px 20px; border: 1px solid var(--jag-hairline, #D8E6E7); border-radius: var(--jag-r-md, 12px); }
html body .doc-sec .doc-notice p { margin: 0; font-size: 15px; line-height: 1.6; }
html body .doc-sec .doc-notice p.doc-notice-k { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jag-ink-muted, #5A626B); }
/* Support and Account deleted: the one action of the page. A link drawn as the site's main button, 48px tall.
   Fill and label are one token pair, so a member's Dark choice turns both (the light-pinned --site-teal fill under
   the dark label was 3.07:1); pages without tokens.css keep the light pair. */
html body .doc .doc-act { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 4px 0 0; padding: 0 24px; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; background: var(--jag-accent, var(--site-teal)); border-color: var(--jag-accent, var(--site-teal)); }
html body .doc .doc-act:hover { background: var(--jag-accent-hover, var(--site-teal-hover)); border-color: var(--jag-accent-hover, var(--site-teal-hover)); }
html body .doc .doc-act, html body .doc .doc-act:hover { color: var(--jag-accent-on, #FFFFFF); }
html body .doc .doc-act:focus-visible { outline: 2px solid var(--jag-focus, #0F6E76); outline-offset: 2px; }
/* Account deleted has no top bar (the member has just been signed out): the logo alone, on the grid's left edge. */
html body .doc-brand { display: inline-block; margin: 0 0 32px; }
html body .doc-brand img { display: block; height: 40px; width: auto; }

@media (max-width: 1023px) {
  html body .doc-grid { grid-template-columns: minmax(0, 68ch); row-gap: 24px; }
  html body .doc-grid > .doc-body { grid-row: 2; }
  html body .doc-grid > .doc-toc { grid-column: 1; grid-row: 1; position: static; max-height: none; overflow: visible; padding: 0; background: var(--jag-card, #FFFFFF); border: 1px solid var(--jag-line, #5F7E86); border-radius: var(--jag-r-sm, 8px); }
  html body .doc-toc-d > summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; padding: 0 16px; color: var(--jag-ink, #1A1F29); }
  html body .doc-toc-d > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
  html body .doc-toc-d[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  html body .doc-toc-d > summary:focus-visible { outline: 2px solid var(--jag-focus, #0F6E76); outline-offset: 2px; }
  html body .doc-toc ol { margin: 0 16px 12px; }
  html body .doc-toc a { min-height: 44px; align-items: center; padding-top: 4px; padding-bottom: 4px; font-size: 15px; }
}
@media (max-width: 767px) {
  html body .doc { margin-top: 24px; padding-bottom: 48px; }
  html body .doc h1 { font-size: 28px; }
  html body .doc-head { margin-bottom: 24px; }
  html body .doc-lede p { font-size: 16px; }
  html body .doc-print { min-height: 44px; }
  html body .doc-meta a { display: inline-flex; align-items: center; min-height: 44px; }
  html body .doc-sec { padding-top: 24px; }
  html body .doc-sec h2 { font-size: 18px; }
  html body .doc-sec h2 .doc-a { display: none; }
  html body .doc-def { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html body .doc-hist tbody th { width: auto; }
  html body .doc-hist, html body .doc-hist tbody, html body .doc-hist tr, html body .doc-hist th, html body .doc-hist td { display: block; }
  html body .doc-hist thead { display: none; }
  html body .doc-hist tbody th { padding-bottom: 0; border-bottom: 0; }
  html body .doc .doc-act { display: flex; }
}

/* Print or save as PDF: the document alone, black on white, each link followed by its address. */
@media print {
  html body header.jag-head, html body header.pt-appbar, html body footer, html body .doc-toc, html body .doc-print, html body .doc-a, html body .jag-cookie-choices, html body .site-rail, html body #jag-cc, html body .jag-cc-wrap { display: none !important; }
  html body, html body.doc-page { background: #fff !important; }
  html body .doc { width: auto; margin: 0; padding: 0; }
  html body .doc-grid { display: block; }
  html body .doc-body, html body > .container.doc > .doc-head { max-width: none; }
  html body .doc-sec { break-inside: auto; page-break-inside: auto; }
  html body .doc-sec h2, html body .doc-sec h3 { break-after: avoid; page-break-after: avoid; }
  html body .doc *, html body .doc-tldr-k, html body .doc-sec h2 .doc-n { color: #000 !important; }
  html body .doc-tldr, html body .doc code { background: none; border: 1px solid #999; }
  html body .doc a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; overflow-wrap: anywhere; }
  html body .doc a[href^="/"]::after { content: " (jagsim.com" attr(href) ")"; font-weight: 400; overflow-wrap: anywhere; }
}

/* The 404 page: on the grid and to the left like every other page (F18a), not a centered card. */
html body > main.notfound {
  box-sizing: border-box; width: min(100% - 2 * var(--site-gutter), var(--site-max)); margin-left: auto; margin-right: auto;
  padding-left: 0; padding-right: 0; align-items: flex-start; justify-content: flex-start; text-align: left;
}
html body > main.notfound > * { text-align: left; }
html body > main.notfound .btns { justify-content: flex-start; }
html body > main.notfound { padding-top: 56px; }
html.jag-app .doc-print { display: none !important; }

/* LEARN DIAGRAMS (GREAT-WALL F16, SEO fix 12, 15 Nov 2026): one plain picture per order type and chart term
   (assets/learn/*.svg), scaled to the column on a phone. */
.learn-diagram { margin: 18px 0 22px; }
.learn-diagram img { display: block; width: 100%; max-width: 720px; height: auto; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; }
.learn-diagram figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #5A626B; }
/* the Learn byline under the heading (F16, SEO fix 12): who checks the page and when its words last changed */
p.updated.learn-byline { margin: -4px 0 16px; font-size: 13px; color: #5A626B; }
p.updated.learn-byline a { color: #0F6E76; font-weight: 600; }

/* THE PUBLIC PAGES IN DARK (Control room 9, 17 Nov 2026: "one theme everywhere a member goes"). A member who chose Dark
   read Coach Jag, News, Plans, the FAQ and the guide dark, and every other public page (learn/*, vs/*, tools/*, /stock/*,
   the sector hubs, the guides at the root) white under a white bar. scripts/stamp-public-header.mjs now gives each of
   those pages the member's choice before first paint and css/tokens.css (the link it writes is #tokensCss), and these
   rules paint the rest of the page from the dark tokens. They reach only the pages that took tokens.css from the stamp
   (:has(#tokensCss)); the pages that were dark before keep their own reviewed rules. Dark only, design-system names only:
   light does not move (tests/dark-public-set.test.mjs). */
/* the pages' own colour names (the /stock/ pages, the sector hubs, the ticker index): their dark values */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body {
  --panel: var(--jag-card); --head: var(--jag-panel); --ink2: var(--jag-ink-2); --muted2: var(--jag-ink-muted);
  --line2: var(--jag-line); --link: var(--jag-accent-text); --link-bg: var(--jag-accent-tint-soft);
  --pos: var(--jag-up); --neg: var(--jag-down);
  /* the dark-only names the stamp writes into a page's own style="" colours (scripts/stamp-public-header.mjs DARK_INLINE) */
  --dk-link: var(--jag-accent-text); --dk-muted: var(--jag-ink-muted); --dk-ink-2: var(--jag-ink-2);
  --dk-panel: var(--jag-panel); --dk-line: var(--jag-line);
}
/* words: headings in the ink, text in the second ink, its bold in the ink, the small print muted */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(h1, h2, h3, h4, h5, h6) { color: var(--jag-ink); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(p, li, dd, dt, td, th, label, figcaption, blockquote, caption, legend) { color: var(--jag-ink-2); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(p, li, dd, td, th, label, blockquote, .related) :is(strong, b) { color: var(--jag-ink); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.disclaimer, .updated, .learn-byline, .guide-byline, .crumb, .page-crumb, .sec-label, .hint, .more, .mk-answers-lede, .mk-src, .jag-brand-quote-attr, .disclaim-note, .learn-diagram figcaption) { color: var(--jag-ink-muted); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.intro, .lede, .htw-note) { color: var(--jag-ink-2); }
/* links: the accent text; a link that reads as a title keeps the ink */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body a:not([class]),
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.vs-list a.vs-name, .seo-peers a b, .jag-brand-quote span) { color: var(--jag-accent-text); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .term-list a.term-link { color: var(--jag-ink); }
/* a page's "Try the demo" button (.cta > a, filled by the rule above in this file) keeps the words on the accent */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .cta > a:not([class]) { color: var(--jag-accent-on); }
/* How trading works: its contents chips */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .htw-toc a { background: var(--jag-card); border-color: var(--jag-line); color: var(--jag-accent-text); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .htw-toc a:hover { background: var(--jag-panel); }
/* surfaces: every card and box the pages paint white or a light tint is the dark card, its edge the hairline */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.card, .geo-answer, .faq-item, .tool-card, .vs-card, .def-box, .term-box, .tbl-wrap, .seo-facts div, .seo-peers a, .grid a, .sec-pill, .coming-soon, .cta > span, .rp-shot) {
  background: var(--jag-card); border-color: var(--jag-hairline);
}
/* a card that is a link (the ticker tiles, the peers, the sector pills) shows its edge in the control line */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.seo-peers a, .grid a, .sec-pill) { border-color: var(--jag-line); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.seo-peers a, .grid a, .sec-pill):hover { border-color: var(--jag-accent); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.skel, .qh-state) { background: var(--jag-panel); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .qh-sym { background: var(--jag-accent-tint-soft); color: var(--jag-accent-text); }
/* tables: the head on the panel, the cells in the inks, the seams the hairline */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(table.compare, .facts, .sec-table, .mk-answers table) th { background: var(--jag-panel); color: var(--jag-ink); border-color: var(--jag-hairline); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(table.compare, .facts, .sec-table, .mk-answers table) :is(td, tr) { color: var(--jag-ink-2); border-color: var(--jag-hairline); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body table.compare td:first-child { color: var(--jag-ink); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .sec-table .what { color: var(--jag-ink-muted); }
/* fields: the panel, the ink, the control line; the accent edge when focused */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) {
  background: var(--jag-panel); color: var(--jag-ink); border-color: var(--jag-line);
}
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :where(input, select, textarea):focus { border-color: var(--jag-accent); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :where(input, textarea)::placeholder { color: var(--jag-ink-muted); }
/* the calculators' answer: the up and down tints */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .calc-result { background: var(--jag-up-soft); border-color: var(--jag-green-line); color: var(--jag-ink); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .calc-result .big { color: var(--jag-up); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .calc-result .line { border-top-color: var(--jag-green-line); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .calc-result.err { background: var(--jag-down-soft); border-color: var(--jag-down); color: var(--jag-ink); }
/* buttons the pages fill themselves: words on a light fill are the dark ink; the quiet ones sit on the card */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .btn:not(.ghost):not(.btn-ghost) { color: var(--jag-accent-on); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .btn:not(.ghost):not(.btn-ghost):not(.buy):not(.sell):hover { background: var(--jag-accent-hover); border-color: var(--jag-accent-hover); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .btn.buy:hover { background: var(--jag-green-deep); border-color: var(--jag-green-deep); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .btn.sell:hover { background: var(--jag-down); border-color: var(--jag-down); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.btn.ghost, .btn-watch) { background: var(--jag-card); color: var(--jag-ink-2); border-color: var(--jag-line); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body :is(.btn.ghost, .btn-watch):hover { border-color: var(--jag-accent); color: var(--jag-accent-text); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .btn-watch.on { background: var(--jag-accent-tint-soft); border-color: var(--jag-accent); color: var(--jag-accent-text); }
/* the free tools: their menu of tools, the market strip, the little "i" and its note */
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .tl-nav a { background: transparent; border-color: var(--jag-line); color: var(--jag-ink-2); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .tl-nav a:hover { border-color: var(--jag-accent); color: var(--jag-accent-text); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .tl-nav a[aria-current="page"] { background: var(--jag-accent-tint-soft); border-color: var(--jag-accent); color: var(--jag-accent-text); box-shadow: inset 0 0 0 1.5px var(--jag-accent); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .strip { background: var(--jag-card); color: var(--jag-ink); border-bottom: 1px solid var(--jag-hairline); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .strip :is(b, strong) { color: var(--jag-ink); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .strip .nx { color: var(--jag-ink-2); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .tip { background: var(--jag-panel); border-color: var(--jag-line); color: var(--jag-ink-2); }
:is(html[data-chart-theme="dark"], html[data-intel-theme="dark"], :root[data-theme="dark"]):where(:has(#tokensCss)) body .tip::after { background: var(--jag-panel); color: var(--jag-ink); border: 1px solid var(--jag-line); }
/* END THE PUBLIC PAGES IN DARK */
