/* FTSE 100 news pages (/ftse-news, /ftse-news-analysis), rendered by
   public/_worker.js. Plain CSS so the pages need no JS bundle. Tokens mirror
   the holding page's design-system values (theme noir with the MarketFrame
   overrides in src/holding/holding.css): navy ground, teal primary, Inter body,
   Space Grotesk display, mono uppercase labels, hairline rules, square corners. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/inter-normal-latin.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+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/inter-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/space-grotesk-normal-latin.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+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --ground: hsl(222 47% 5%);
  --surface: hsl(222 40% 9%);
  --rule: hsl(222 25% 18%);
  --rule-soft: hsl(222 25% 14%);
  --ink: #ffffff;
  --ink-2: #ededf0;
  --muted: hsl(215 20% 68%);
  --teal: hsl(172 66% 50%);
  --cyan: hsl(192 91% 60%);
  --red: hsl(0 84% 66%);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink-2); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

.mf-top { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: baseline; justify-content: space-between;
  max-width: 64rem; margin: 0 auto; padding: 1.25rem 16px; border-bottom: 1px solid var(--rule-soft); }
.mf-mark { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.15rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.mf-mark__icon { width: 1.15rem; height: 1.15rem; }
.mf-top nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.mf-top nav a { font: 500 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.mf-top nav a:hover { color: var(--ink); }

.mf-main { max-width: 64rem; margin: 0 auto; padding: 2rem 16px 3rem; }
.mf-crumbs { font: 500 .72rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 1rem; }
.mf-crumbs a { color: var(--muted); }
.mf-sep { opacity: .5; padding: 0 .2rem; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.08; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); }
h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
h2 a { color: inherit; }
.mf-lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46rem; }
.mf-meta { color: var(--muted); font-size: .85rem; }
.mf-reason { color: var(--muted); font-size: .9rem; }

.mf-card { background: var(--surface); border: 1px solid var(--rule); padding: 1.25rem 1.25rem .5rem; margin: 1.5rem 0; }
.mf-card h2 { border: 0; padding: 0; margin: 0 0 .5rem; }
.mf-big { font: 600 2rem/1.1 var(--display); margin: 0 0 .75rem; }
.mf-big .mf-score { font: 600 2rem/1 var(--mono); }
.mf-big span:not(.mf-score) { font: 500 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-left: .5rem; }

.mf-score { font: 600 .9em/1 var(--mono); white-space: nowrap; }
.mf-pos { color: var(--teal); }
.mf-neg { color: var(--red); }
.mf-flat, .mf-none { color: var(--muted); }

.mf-list { padding-left: 1.25rem; }
.mf-list li { margin: 0 0 .9rem; }
.mf-heads { list-style: none; padding: 0; }
.mf-heads li { padding: .75rem 0; border-bottom: 1px solid var(--rule-soft); }
.mf-cols { columns: 15rem auto; padding-left: 1.1rem; }
.mf-cols li { break-inside: avoid; margin-bottom: .35rem; }

.mf-table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.mf-table th { font: 500 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
.mf-table th, .mf-table td { padding: .55rem .9rem .55rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.mf-table td:first-child { white-space: nowrap; }

.mf-daynav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9rem; }
.mf-note { margin-top: 3rem; padding: 1rem 1.25rem; border: 1px dashed var(--rule); color: var(--muted); font-size: .85rem; }
.mf-note p { margin: 0 0 .5rem; }
.mf-foot { max-width: 64rem; margin: 0 auto; padding: 1.5rem 16px 2.5rem; border-top: 1px solid var(--rule-soft); color: var(--muted); font-size: .82rem; }
@media (max-width: 600px) {
  .mf-table td:first-child { white-space: normal; }
}

/* Charts (plan-45, @jstov/charts). /charts.css carries the design-system chart
   component on the noir theme; these map its tokens onto this page's own palette so
   a chart sits on the ground like everything else. Loaded only on pages with a chart. */
:root[data-theme="noir"] {
  --ds-ground: var(--ground);
  --ds-surface: var(--surface);
  --ds-chart-bg: var(--ground);
  --ds-data-1: var(--teal);
  --ds-data-primary: var(--teal);
  --ds-chart-up: var(--teal);
  --ds-chart-down: var(--red);
}
.ds-chart { margin: 1rem 0 0; }
/* Small multiples on a phone: two panels per row leave room for one x label each. */
@media (max-width: 759px) {
  .ds-chart__facet .ds-chart__x > :last-child { display: none; }
}
/* Key under the company tone chart: one line per numbered marker. */
.mf-chartkey { list-style: none; margin: .75rem 0 0; padding: 0; font-size: .9rem; }
.mf-chartkey li { padding: .2rem 0; }
.mf-chartkey-n { display: inline-block; min-width: 1.4em; height: 1.4em; line-height: 1.4em; margin-right: .4rem; text-align: center; border: 1px solid var(--muted); border-radius: 50%; font: 600 .75rem/1.4em var(--mono); color: var(--ink); }
/* The library's own numbered notes would repeat "1 2 3" with no text; the page writes its own key. */
.ds-chart__notes { display: none; }
