/* MARKET NOTES: the list (/market-notes/) and every note (/market-notes/<slug>). Loaded before css/site.css, which
   draws the top bar, the footer, the buttons, the link color and the site grid; this file adds only what a note has
   that a guide does not: the note's head (kicker, deck, one meta line, key points), its tables, the "On JagSim" box,
   the dated Sources list and the advice line, and the list's dated rows.

   Every value is a design-system token (css/tokens.css) with its light value as the fallback, a size on the type
   scale, a weight of 400 to 800: the pages load this file without tokens.css, like the guides. Like every signed-out
   page (look audit, 15 Nov 2026), a note has no dark mode of its own.

   The layout is the guides' (css/site.css "EVERY OUTSIDE PAGE ON THE GRID"): the text on the left of the site grid at
   760px, and on a wide screen js/cookie-consent.js draws "On this page" from the note's H2s on the right.
   docs/market-notes/HOW-TO-ADD-A-POST.md says how a note is written; docs/benchmarks/market-notes/ shows the
   publications this layout follows. */

/* The top bar: the blog pages load no page reset, and css/site.css draws the bar's buttons with a 1px border on a
   fixed height, so here they came out content-box, 2px taller (46/42 for 44/40) and nudged right of their place on
   every other page. Border-box, as the pages with the paper-trading shell have it (Reviewer 5, 17 Nov 2026). */
html header.jag-head, html header.jag-head * { box-sizing: border-box; }

html body.mn-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--jag-ink-2, #31404F); line-height: 1.6; }
html body.mn-page > .container.mn { flex: 1 0 auto; margin-top: 32px; padding-bottom: 64px; }
html body .mn :is(p, ul, ol, h1, h2, h3, table, figure) { margin-top: 0; }

/* The trail back to the list */
html body .mn .crumb { margin: 0 0 16px; }
html body .mn .crumb .csep { margin: 0 8px; color: var(--jag-ink-muted, #5A626B); }

/* ── A NOTE'S HEAD ─────────────────────────────────────────────────────────── */
html body .mn-head { margin: 0 0 32px; }
/* The kicker labels ("Market notes · ...", "Key points", "On JagSim") are 12px on a note, the floor for every other
   small label on the site (site.css's .doc-k is 11px for the guides). */
html body .mn .doc-k { font-size: 12px; }
html body .mn-head .doc-k { margin-bottom: 12px; }
html body .mn-head .doc-k a { color: inherit; text-decoration: none; }
html body .mn-head .doc-k a:hover { color: var(--jag-accent-text, #0F6E76); }
html body .mn h1 { margin: 0 0 12px; font-size: 36px; line-height: 1.15; font-weight: 800; color: var(--jag-ink, #1A1F29); }
html body .mn-dek { margin: 0 0 16px; font-size: 18px; line-height: 1.5; color: var(--jag-ink-2, #31404F); }
html body .mn-head .doc-meta { margin: 0 0 24px; gap: 4px 12px; }
html body .mn-head .doc-meta > span + span::before { content: "\00B7"; margin-right: 12px; color: var(--jag-ink-muted, #5A626B); }
html body .mn-keys { margin: 0; padding: 16px 20px 8px; background: var(--jag-panel, #EFF7F7); border: 1px solid var(--jag-hairline, #D8E6E7); border-radius: var(--jag-r-md, 12px); }
html body .mn-keys .doc-k { margin: 0 0 8px; }
html body .mn-keys ul { margin: 0 0 8px; padding: 0 0 0 20px; }
html body .mn-keys li { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--jag-ink, #1A1F29); }

/* ── A NOTE'S BODY ─────────────────────────────────────────────────────────── */
html body .mn-body h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--jag-ink, #1A1F29); scroll-margin-top: 80px; }
html body .mn-body h3 { margin: 24px 0 8px; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--jag-ink, #1A1F29); }
html body .mn-body p, html body .mn-body li { font-size: 16px; line-height: 1.65; color: var(--jag-ink-2, #31404F); }
html body .mn-body p { margin: 0 0 16px; }
html body .mn-body ul, html body .mn-body ol { margin: 0 0 16px; padding: 0 0 0 22px; }
html body .mn-body li { margin: 0 0 8px; }
html body .mn-body strong, html body .mn-body dfn { color: var(--jag-ink, #1A1F29); font-weight: 700; font-style: normal; }
html body .mn-body .mn-fig { font-variant-numeric: tabular-nums; }

/* A plain table of figures or times: rules only, numbers in their own column */
html body .mn-table-wrap { margin: 4px 0 20px; overflow-x: auto; }
html body .mn-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
html body .mn-table caption { padding: 0 0 8px; text-align: left; font-size: 13px; color: var(--jag-ink-muted, #5A626B); }
html body .mn-table th, html body .mn-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--jag-hairline, #D8E6E7); text-align: left; vertical-align: top; }
html body .mn-table thead th { font-size: 12px; font-weight: 700; color: var(--jag-ink-muted, #5A626B); border-bottom-color: var(--jag-line, #5F7E86); }
html body .mn-table tbody th { font-weight: 600; color: var(--jag-ink, #1A1F29); }
html body .mn-table td { color: var(--jag-ink-2, #31404F); }
html body .mn-table td.mn-num { text-align: right; white-space: nowrap; }

/* "On JagSim": how the same thing works in the simulator, set apart from the market's rules */
html body .mn-on { margin: 8px 0 20px; padding: 16px 20px 4px; border: 1px solid var(--jag-hairline, #D8E6E7); border-left: 4px solid var(--jag-accent, #0F6E76); border-radius: var(--jag-r-sm, 8px); background: var(--jag-card, #FFFFFF); }
html body .mn-on .doc-k { margin: 0 0 8px; color: var(--jag-accent-text, #0F6E76); }
html body .mn-on p { font-size: 15px; line-height: 1.6; }

/* Sample numbers are labeled as such, every time */
html body .mn-sample { margin: 8px 0 20px; padding: 16px 20px 4px; background: var(--jag-panel, #EFF7F7); border-radius: var(--jag-r-sm, 8px); }
html body .mn-sample .doc-k { margin: 0 0 8px; }
html body .mn-sample p { font-size: 15px; line-height: 1.6; }

/* Practice it, and where to read more */
html body .mn-practice { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--jag-hairline, #D8E6E7); }
html body .mn-body .mn-practice .cta { margin: 16px 0 0; }
html body .mn-body .mn-related { margin: 24px 0 0; }
html body .mn-body .mn-related-k { margin: 0 0 8px; font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--jag-ink-muted, #5A626B); }
html body .mn-body .mn-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
html body .mn-body .mn-related li { margin: 0; font-size: 15px; line-height: 1.5; }
html body .mn-body .mn-related a { font-weight: 600; }

/* Sources: name, publisher, date, what it supports */
html body .mn-sources h2 { margin-top: 40px; }
html body .mn-src { margin: 0 0 16px; padding: 0 0 0 22px; }
html body .mn-src li { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--jag-ink-2, #31404F); overflow-wrap: anywhere; }
html body .mn-src li a { font-weight: 600; }
html body .mn-advice { margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--jag-hairline, #D8E6E7); font-size: 13px; line-height: 1.55; color: var(--jag-ink-muted, #5A626B); }
html body .mn-body .mn-advice { font-size: 13px; color: var(--jag-ink-muted, #5A626B); }

/* ── THE LIST ──────────────────────────────────────────────────────────────── */
html body .mn-intro { margin: 0 0 8px; font-size: 18px; line-height: 1.5; color: var(--jag-ink-2, #31404F); }
html body .mn-how { margin: 0 0 32px; font-size: 13px; line-height: 1.55; color: var(--jag-ink-muted, #5A626B); }
html body .mn-month { margin: 32px 0 0; padding: 0 0 8px; font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--jag-ink-muted, #5A626B); border-bottom: 1px solid var(--jag-line, #5F7E86); }
html body .mn-list { list-style: none; margin: 0; padding: 0; }
html body .mn-item { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--jag-hairline, #D8E6E7); }
html body .mn-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--jag-ink-muted, #5A626B); font-variant-numeric: tabular-nums; }
html body .mn-tag { display: inline-flex; align-items: center; padding: 2px 8px; font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--jag-accent-text, #0F6E76); background: var(--jag-accent-tint-soft, #E3F3F4); border-radius: var(--jag-r-xs, 4px); }
html body .mn-item-h { margin: 0 0 8px; font-size: 22px; line-height: 1.3; font-weight: 700; }
/* the title is the row's link: ink, teal on hover (css/site.css colors every link in a list item teal, hence the weight) */
html body .mn-list .mn-item .mn-item-h a { color: var(--jag-ink, #1A1F29); text-decoration: none; }
html body .mn-list .mn-item .mn-item-h a:hover { color: var(--jag-accent-text, #0F6E76); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html body .mn-item-h a:focus-visible { outline: 2px solid var(--jag-focus, #0F6E76); outline-offset: 2px; }
html body .mn-item-d { margin: 0; font-size: 15px; line-height: 1.55; color: var(--jag-ink-2, #31404F); }
html body .mn-list-foot { margin: 32px 0 0; font-size: 15px; line-height: 1.6; color: var(--jag-ink-muted, #5A626B); }

@media (max-width: 767px) {
  html body.mn-page > .container.mn { margin-top: 16px; padding-bottom: 48px; }
  html body .mn h1 { font-size: 28px; }
  html body .mn-dek, html body .mn-intro { font-size: 16px; }
  html body .mn-keys { padding: 16px 16px 8px; }
  html body .mn-body h2 { margin-top: 32px; font-size: 18px; }
  html body .mn-item-h { font-size: 18px; }
  /* a list row's date, tag, reading time and like count stay on one row (the count wrapped onto a line of its own at
     390, Reviewer 5): tighter gaps, and only a long tag gives way, with an ellipsis */
  html body .mn-item-meta { flex-wrap: nowrap; gap: 4px 8px; }
  html body .mn-item-meta > * { flex: none; white-space: nowrap; }
  html body .mn-item-meta > .mn-tag { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* the meta line wraps without a separator at the start of a line */
  html body .mn-head .doc-meta { gap: 0 16px; }
  html body .mn-head .doc-meta > span + span::before { content: none; }
  html body .mn-list .mn-item .mn-item-h a { display: block; padding: 4px 0; }
  /* a source's link on its own line, 44px to the thumb; the list number stays on its first line */
  html body .mn-src li a { display: block; padding: 12px 0 4px; }
  html body .mn-body .mn-related ul { flex-direction: column; gap: 0; }
  html body .mn-body .mn-related a { display: inline-flex; align-items: center; min-height: 44px; }
  html body .mn-on, html body .mn-sample { padding: 16px 16px 4px; }
  /* a long value wraps instead of squeezing the label column to one word a line */
  html body .mn-table tbody th { width: 50%; }
  html body .mn-table td.mn-num { white-space: normal; }
}

/* ── THE END OF EVERY NOTE: PRACTICE THIS, LIKE, SHARE (blog build, 17 Nov 2026) ───────────────────────────
   js/market-notes-core.js endBox() writes it; js/market-notes.js shows Like and Share once they work. The demo is
   the one filled button (it works signed out); the chart and Replay are outlined, like a broker's "Open in chart". */
html body .mn-end { max-width: 760px; margin: 40px 0 0; padding: 24px; background: var(--jag-panel, #EFF7F7); border: 1px solid var(--jag-hairline, #D8E6E7); border-radius: var(--jag-r-md, 12px); }
html body .mn-end h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 800; color: var(--jag-ink, #1A1F29); }
html body .mn-end-what { margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: var(--jag-ink-2, #31404F); }
html body .mn-end-what b { font-weight: 800; color: var(--jag-ink, #1A1F29); }
html body .mn-end-go { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
html body .mn-end-go a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--jag-r-sm, 8px); font-size: 15px; font-weight: 700; text-decoration: none; }
html body .mn-end-go a.mn-end-cta { background: var(--jag-accent, #0F6E76); color: var(--jag-accent-on, #FFFFFF); border: 1px solid var(--jag-accent, #0F6E76); }
html body .mn-end-go a.mn-end-cta:hover { background: var(--jag-accent-hover, #0B565D); border-color: var(--jag-accent-hover, #0B565D); }
html body .mn-end-go a.mn-end-link { background: var(--jag-card, #FFFFFF); color: var(--jag-accent-text, #0F6E76); border: 1px solid var(--jag-line, #5F7E86); }
html body .mn-end-go a.mn-end-link:hover { border-color: var(--jag-accent, #0F6E76); }
html body .mn-end-who { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--jag-ink-muted, #5A626B); }
html body .mn-end-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 0 0; border-top: 1px solid var(--jag-hairline, #D8E6E7); }
html body .mn-end-row button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--jag-line, #5F7E86); border-radius: var(--jag-r-sm, 8px); background: var(--jag-card, #FFFFFF); color: var(--jag-ink, #1A1F29); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
html body .mn-end-row button[hidden] { display: none; }
html body .mn-end-row button:hover { border-color: var(--jag-accent, #0F6E76); color: var(--jag-accent-text, #0F6E76); }
html body .mn-end-row button:focus-visible { outline: 2px solid var(--jag-focus, #0F6E76); outline-offset: 2px; }
html body .mn-end-row .mn-like::before { content: "\1F44D"; font-size: 16px; }
html body .mn-end-row .mn-like[aria-pressed="true"] { background: var(--jag-accent-tint-soft, #E3F3F4); border-color: var(--jag-accent, #0F6E76); color: var(--jag-accent-text, #0F6E76); }
html body .mn-end-row .mn-like-n { font-weight: 800; }
html body .mn-item-meta .mn-likes::before { content: "\1F44D\00A0"; }
html body .mn-end-said { font-size: 13px; line-height: 1.5; color: var(--jag-ink-muted, #5A626B); }
@media (max-width: 767px) {
  html body .mn-end { padding: 16px; }
  html body .mn-end-go a { flex: 1 1 100%; justify-content: center; }
}
/* The preview in the owner's Blog tab: a note that is not public says so at the top. */
html body .mn-draft-banner { margin: 0; padding: 12px 24px; background: var(--jag-pro, #A04F26); color: var(--jag-pro-on, #FFFFFF); font-size: 15px; font-weight: 700; text-align: center; }
