/* ═══════════════════════════════════════════════════════════════════════════
   Altaha Screener — stock.css
   Styles for stock.html, the dedicated per-company page.

   WHY A PAGE AND NOT A TAB
   Analysing a company used to expand a panel inside the homepage. That meant
   one company had no address: you could not link to it, share it, bookmark
   it, or press Back to leave it. A stock is the atomic object of this product
   and it now has a URL of its own.

   THE ORDER OF THE PAGE
   A name, a price and a score; then one bar of eight sections directly under
   them. The first section is an overview built of cards, each of which opens
   the section behind it. Before this the page ran name, score, a strip of ten
   lens badges, nine figures and a paragraph before it reached its own menu,
   and the menu's first section carried on down the same column, so the page
   read as one long list with a control somewhere in the middle of it.

   ONE CARD, ONE HEADING STYLE, ONE CAPTION STYLE
   Every block on the page is a .card or a .stk-sec with a .sec-h, and the
   small print beside a heading is always .card-x or .sec-x. Sections that
   were written at different times now look like parts of one page because
   they are set with the same four rules.
   ═══════════════════════════════════════════════════════════════════════════ */

/* The three faces, as variables. The homepage defines these in its own
   stylesheet and this page never did, so every rule here written as
   `font:600 10px/1.6 var(--font-sans)` was an invalid declaration and was thrown
   away whole: size, weight and face. The Delivery section is set almost
   entirely that way, and rendered as unstyled 16px text. */

body{
  margin:0; background:var(--bg); color:var(--text-primary);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased;
}
.stk-wrap{ max-width:1180px; margin:0 auto; padding:0 var(--gutter) 92px }
.up{ color:var(--gain) } .dn{ color:var(--loss) }
/* A rise or a fall is never colour alone: each figure that takes .up or .dn
   carries the arrow as well. Listed by name, because .up and .dn also colour
   things that are not figures (a dot, a bar, a line). */
:is(.stk-px .chg, #mini-chg, .ov-ret b, .num .v, .fu-ch:not(.word), .pr-table td, .sc-tip b,
    .op-chip, .op-holders em, .own-names em, .dv-tile .n span, .sp-k em).up::before{ content:"\25B2\00A0"; display:inline-block; transform:scale(.72); transform-origin:left center }
:is(.stk-px .chg, #mini-chg, .ov-ret b, .num .v, .fu-ch:not(.word), .pr-table td, .sc-tip b,
    .op-chip, .op-holders em, .own-names em, .dv-tile .n span, .sp-k em).dn::before{ content:"\25BC\00A0"; display:inline-block; transform:scale(.72); transform-origin:left center }

/* ── Identity ────────────────────────────────────────────────────────────── */

.stk-head{ padding:var(--sp-8) 0 var(--sp-6) }
.stk-crumb{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted); margin-bottom:16px;
  display:flex; align-items:center; gap:8px;
}
.stk-crumb a{ color:var(--text-muted); text-decoration:none;
  display:inline-flex; align-items:center; gap:8px }
.stk-crumb a:hover{ color:var(--highlight-text); text-decoration:underline }
/* The mark, themed. Same background-image trick as the rest of the site —
   see .brandmark in index.html for why it is not an <img>. */
.stk-crumb .brandmark{
  height:16px; aspect-ratio:109/100; flex:0 0 auto;
  background:url(altaha-logo.png) center/contain no-repeat;
}
html[data-theme="dark"] .stk-crumb .brandmark{ background-image:url(altaha-logo-dark.png) }

.stk-id{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px }
.stk-idt{ min-width:0; flex:1 1 260px }
/* The page title. The price beside it is the hero figure, a size up. */
.stk-name{
  margin:0; font-family:var(--font-display); font-weight:500;
  font-size:var(--fs-h1); line-height:var(--lh-h1); letter-spacing:var(--ls-heading);
}
.stk-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px }
.stk-tag{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:normal;
  padding:4px 8px; border:1px solid var(--border); border-radius:var(--r-pill); color:var(--text-secondary);
}
.stk-px{ margin-left:auto; text-align:right }
.stk-px .now{ font:400 var(--fs-display)/var(--lh-display) var(--font-display); letter-spacing:var(--ls-heading);
  font-variant-numeric:tabular-nums lining-nums }
.stk-px .chg{ font:500 var(--fs-small)/var(--lh-none) var(--font-sans); margin-top:var(--sp-2); min-height:14px }
/* On a phone the price takes a row of its own and reads from the left, like
   everything else; the Save button keeps the row's far end. */
@media (max-width:720px){ .stk-px{ margin-left:0; text-align:left; flex:1 1 auto } }
/* A tick: the price takes the colour of the move for a moment, then settles. */
.stk-px .now{ transition:color 600ms var(--ease) }
.stk-px .now.tick-up{ color:var(--gain); transition:none }
.stk-px .now.tick-dn{ color:var(--loss); transition:none }
.px-live{
  display:inline-flex; align-items:center; gap:8px; margin-top:8px;
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted);
}
.px-live[hidden]{ display:none }
.px-live i{ width:7px; height:7px; border-radius:50%; background:var(--gain); animation:pxLive 1.8s var(--ease) infinite }
@keyframes pxLive{ 0%,100%{ opacity:1 } 50%{ opacity:.35 } }
@media (prefers-reduced-motion: reduce){
  .stk-px .now{ transition:none }
  .px-live i{ animation:none }
}

/* ── Logos ───────────────────────────────────────────────────────────────
   The company's initials on a quiet tile, and its own mark over them when
   one loads (stock.js, paintLogo). The same tile as the header's search
   results (.co-lg in shell.css). The mark sits on the lightest tone either
   theme has: a logo is drawn for a white page, and on a dark tile half of
   them disappear. */

.lg{
  --lg-s:40px;
  position:relative; display:inline-grid; place-items:center; flex:0 0 auto;
  width:var(--lg-s); height:var(--lg-s); border-radius:var(--r-control);
  background:var(--surface-raised); color:var(--text-secondary);
  border:1px solid var(--border); overflow:hidden;
  font:600 var(--fs-body)/var(--lh-none) var(--font-sans); letter-spacing:normal;
}
.lg-sm{ --lg-s:30px; font-size:var(--fs-label) } .lg-xl{ --lg-s:56px; font-size:var(--fs-h3) }
/* Nothing until the script has drawn the initials: with scripts off, which is
   how a search engine reads /stock-SYMBOL, an empty tile is an empty box. */
.lg:empty{ display:none }
.lg img{
  position:absolute; inset:0; width:100%; height:100%; box-sizing:border-box;
  object-fit:contain; padding:14%; background:var(--surface); border-radius:inherit;
  animation:lgIn 320ms var(--ease-out) both;
}
html[data-theme="dark"] .lg img{ background:var(--text-primary) }
.lg-med{ color:var(--text-muted) }
@keyframes lgIn{ from{ opacity:0; transform:scale(.86) } to{ opacity:1; transform:none } }

/* ── The score, under the name ───────────────────────────────────────────── */

.stk-scorechip{
  display:inline-flex; align-items:center; gap:12px; margin-top:20px;
  padding:8px 16px 8px 12px; min-height:44px; cursor:pointer;
  border:1px solid var(--border); border-radius:var(--r-pill); background:var(--surface);
  color:var(--text-primary); font:inherit; text-align:left;
  transition:border-color .2s, box-shadow .25s;
  animation:rise 520ms var(--ease-out) both;
}
.stk-scorechip[hidden]{ display:none }
.stk-scorechip:hover{ border-color:var(--border-strong); box-shadow:var(--shadow-raised) }
.stk-scorechip:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px }
.stk-scorechip-ring{ position:relative; width:46px; height:46px; flex:0 0 auto; display:grid; place-items:center }
.stk-scorechip-ring svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg) }
.stk-scorechip-ring circle{ fill:none; stroke-width:3 }
.stk-scorechip-ring .t{ stroke:var(--border) }
.stk-scorechip-ring .a{ stroke:var(--highlight); stroke-linecap:round; transition:stroke-dashoffset 1200ms var(--ease-out) }
.stk-scorechip-n{ position:relative; font:600 var(--fs-h3)/var(--lh-none) var(--font-sans); letter-spacing:normal }
.stk-scorechip-t b{ display:block; font:600 var(--fs-body)/var(--lh-h3) var(--font-sans) }
.stk-scorechip-t small{ display:block; margin-top:2px; font:400 var(--fs-small)/var(--lh-label) var(--font-sans); color:var(--text-secondary) }
.stk-scorechip-go{ font-size:var(--fs-h2); line-height:var(--lh-none); color:var(--text-muted); margin-left:2px; transition:transform .2s var(--ease-out) ; font-family:var(--font-display); font-weight:500; letter-spacing:var(--ls-heading)}
.stk-scorechip:hover .stk-scorechip-go{ transform:translateX(3px) }

/* ── The section bar ─────────────────────────────────────────────────────
   A row of words on the page itself, the chosen one in cognac with a 2px
   line under it. Opaque, so the cards underneath never show through it once
   it is stuck under the header.

   Scrolled past the name, it also carries the company and its price. Those
   sit at the far end and only fade: the first version put them in front of
   the tabs, so every time the bar stuck or let go the whole row of tabs slid
   sideways by the width of a company's name. */

.stk-panebar{
  position:sticky; top:var(--sh-chrome-h); z-index:60;
  margin:0 calc(-1 * var(--gutter)); padding:0 var(--gutter);
  display:flex; align-items:center; gap:16px;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.stk-panebar.is-stuck{ box-shadow:none }
.stk-mini{
  display:flex; align-items:center; gap:8px; margin-left:auto; flex:0 0 auto; white-space:nowrap;
  font:600 var(--fs-small)/var(--lh-none) var(--font-sans);
  opacity:0; transform:translateY(5px); pointer-events:none;
  transition:opacity 320ms var(--ease), transform 320ms var(--ease-out);
}
.stk-panebar.is-stuck .stk-mini{ opacity:1; transform:none }
.stk-mini b{ font-weight:600; letter-spacing:normal }
.stk-mini span.tnum{ color:var(--text-secondary) }
.stk-mini span.up{ color:var(--gain) } .stk-mini span.dn{ color:var(--loss) }
/* Where the tabs already need the whole row, there is no room for it. */
@media (max-width:1180px){ .stk-mini{ display:none } }

.stk-panes{
  position:relative; display:flex; gap:var(--sp-6); flex:0 1 auto; min-width:0;
  border:0; max-width:100%; margin-bottom:-1px;
  overflow-x:auto; scrollbar-width:none;
}
.stk-panes::-webkit-scrollbar{ display:none }
/* The sliding marker of the old filled tabs. The line under the chosen tab
   is the tab's own border now, so there is nothing for it to draw. */
.stk-panes-ind{ display:none }
.stk-pane-btn{
  position:relative; flex:0 0 auto; background:none; cursor:pointer;
  padding:var(--sp-4) 0 16px; border:0; border-bottom:2px solid transparent; border-radius:0; white-space:nowrap;
  font:500 var(--fs-body)/var(--lh-none) var(--font-sans); color:var(--text-secondary);
  transition:color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.stk-pane-btn:hover:not(.active){ color:var(--text-primary) }
.stk-pane-btn.active{ color:var(--highlight-text); border-bottom-color:var(--highlight) }
.stk-pane-btn:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:-2px }
.stk-pane-n{
  display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:8px;
  padding:0 4px; border-radius:var(--r-pill); background:var(--highlight-subtle); color:var(--highlight-text);
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); vertical-align:1px;
}
.stk-pane-n[hidden]{ display:none }

.stk-pane[hidden]{ display:none }
/* The stage every section sits in. Never shorter than the screen below the
   bar, so a short section cannot shorten the page under a reader who had
   scrolled into a long one. */
.stk-stage{ min-height:calc(100vh - var(--sh-chrome-h) - 48px) }
/* A section arrives once, as a whole: a short fade and a few pixels of rise.
   The first version also staggered every card and row inside it, which was
   four or five things arriving at different moments for one tap. */
.stk-pane.enter, .fn-view.enter{ animation:paneIn 300ms var(--ease-out) both }
@keyframes paneIn{ from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:none } }
@keyframes rise{ from{ opacity:0; transform:translateY(14px) } to{ opacity:1; transform:none } }

/* ── Cards and sections ──────────────────────────────────────────────────── */

.card{
  min-width:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card);
  padding:var(--card-pad); box-shadow:none;
}
.card[hidden]{ display:none }
.card-h, .sec-h{
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between;
  gap:8px 16px; margin:0 0 var(--sp-4);
}
.sec-h{ margin-bottom:var(--sp-5) }
/* A section's name is in the display serif, at a size it reads at. A card's
   title and every figure are in the interface sans: the serif is narrow, and
   at a card title's size or in a row of numerals it reads cramped. */
.card-h h2, .sec-h h2{ margin:0; color:var(--text-primary) }
.card-h h2{ font:600 var(--fs-h3)/var(--lh-h3) var(--font-sans); letter-spacing:normal }
.sec-h h2{ font-family:var(--font-display); font-weight:500; font-size:var(--fs-h2); line-height:var(--lh-h2);
  letter-spacing:var(--ls-heading) }
.card-x, .sec-x{
  font:500 var(--fs-label)/var(--lh-label) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted);
}
.card-go{
  border:0; background:none; padding:4px 0; cursor:pointer; font:500 var(--fs-small)/var(--lh-h3) var(--font-sans);
  color:var(--highlight-text); text-decoration:none; white-space:nowrap;
}
.card-go:hover, .card-go:focus-visible{ text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px }
.card-go:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; border-radius:var(--r-xs) }

.stk-sec{ padding:var(--sp-8) 0 0; scroll-margin-top:calc(var(--sh-chrome-h) + 70px) }
.stk-sec + .stk-sec, .nw + .stk-sec{ padding-top:var(--sp-12) }
.stk-sec[hidden]{ display:none }
.stk-sec > .sub{ margin:-8px 0 20px; color:var(--text-muted); font-size:var(--fs-body); max-width:66ch }
/* A section whose heading is its own first child: the at-a-glance block the
   API writes into /stock-SYMBOL (backend/company_pages.py). */
.stk-sec > h2{
  margin:0 0 4px; font-family:var(--font-display);
  font-weight:500; font-size:var(--fs-h2); line-height:var(--lh-h2); letter-spacing:var(--ls-heading);
}

/* ── Overview ────────────────────────────────────────────────────────────
   Two columns of cards on a wide screen. On a narrow one the columns
   dissolve and the cards take an order of their own: figures, score, price,
   news, lenses, and the description last, because it is the one thing on the
   page that does not change from one visit to the next. */

.ov{
  display:grid; grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);
  gap:var(--sp-6); padding-top:var(--sp-8); align-items:start;
}
.ov-main, .ov-rail{ display:grid; gap:var(--sp-6); min-width:0 }
.ov .card{ animation:rise 560ms var(--ease-out) both }
.ov-main > .card:nth-child(2){ animation-delay:80ms }
.ov-main > .card:nth-child(3){ animation-delay:160ms }
.ov-rail > :nth-child(1){ animation-delay:120ms }
.ov-rail > :nth-child(2){ animation-delay:200ms }
@media (max-width:980px){
  .ov{ grid-template-columns:minmax(0,1fr) }
  .ov-main, .ov-rail{ display:contents }
  .stk-key{ order:1 } #ov-score{ order:2 } .ov-price{ order:3 }
  #ov-latest{ order:4 } .stk-brief{ order:5 }
}

/* ── Key figures ─────────────────────────────────────────────────────────
   Tiles divided by hairlines, each with a meter showing where the figure
   sits among the company's peers. One quiet slate and no red or green:
   whether a high P/E is bad is a judgement, and this page reports
   arithmetic. The tick at the 50th is the peer median. */

.kgrid{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:var(--r-card); overflow:hidden;
}
.kgrid[data-n="6"], .kgrid[data-n="5"], .kgrid[data-n="3"]{ grid-template-columns:repeat(3,minmax(0,1fr)) }
.ktile{ background:var(--surface); padding:var(--sp-4); min-width:0 }
.ktile .k, .krange .k{
  font:500 var(--fs-label)/var(--lh-label) var(--font-sans);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted);
}
/* The display face, at the section-heading size. */
.ktile .v{
  margin-top:var(--sp-2); font-family:var(--font-display); font-weight:500;
  font-size:var(--fs-h2); line-height:var(--lh-h2); letter-spacing:var(--ls-heading); color:var(--text-primary);
  overflow-wrap:anywhere;
}
.kmeter{ margin-top:12px }
.kmeter.empty{ display:none }
.kmeter .track{
  position:relative; height:4px; border-radius:var(--r-pill);
  background:var(--border); overflow:hidden;
}
.kmeter .fill{
  display:block; height:100%; width:0; border-radius:var(--r-pill);
  background:var(--chart-5);
  transition:width 900ms var(--ease-out);
}
.kmeter .mid{
  position:absolute; left:50%; top:-2px; bottom:-2px; width:1px;
  background:var(--text-primary); opacity:.22;
}
.kmeter .cap{ margin-top:8px; font-size:var(--fs-label); line-height:var(--lh-label); color:var(--text-muted) }

/* The 52-week range: a line the price sits on. */
.krange{ margin-top:var(--sp-5) }
.krange[hidden]{ display:none }
.kr-h{ display:flex; justify-content:space-between; align-items:baseline; gap:12px }
.kr-x{ font-size:var(--fs-small); color:var(--text-secondary) }
.kr-bar{
  position:relative; height:4px; margin:16px 8px 12px; border-radius:var(--r-pill);
  background:var(--border);
}
.kr-bar i{
  position:absolute; left:var(--at); top:50%; width:14px; height:14px; border-radius:50%;
  background:var(--highlight); border:3px solid var(--surface); box-shadow:0 0 0 1px var(--border-strong);
  transform:translate(-50%,-50%); animation:slideAt 1100ms var(--ease-out) both;
}
.kr-ends{ display:flex; justify-content:space-between; font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary) }
@keyframes slideAt{ from{ left:0 } }

@media (max-width:760px){
  .kgrid, .kgrid[data-n]{ grid-template-columns:repeat(2,minmax(0,1fr)) }
  .ktile{ padding:var(--sp-3) }
}
@media (max-width:340px){ .kgrid, .kgrid[data-n]{ grid-template-columns:1fr } }

/* ── Overview: the year's price ──────────────────────────────────────────── */

.ov-price[hidden]{ display:none }
.ov-spark{ position:relative; height:150px }
.ov-spark svg{ display:block; width:100%; height:100%; overflow:visible }
.ov-line{ fill:none; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke }
.ov-line.draw{ stroke-dasharray:var(--len,3000); stroke-dashoffset:var(--len,3000);
  animation:sparkIn 1600ms var(--ease-out) forwards }
.ov-area{ fill-opacity:.15; animation:scAreaIn 1500ms ease both }
.ov-dot{
  position:absolute; right:0; width:9px; height:9px; border-radius:50%; background:currentColor;
  transform:translate(50%,-50%); animation:scAreaIn 1700ms ease both;
}
.ov-dot::after{ content:''; position:absolute; inset:-6px; border:1px solid currentColor;
  border-radius:50%; animation:scBeacon 3s ease-out infinite }
.ov-rets{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:16px }
.ov-rets:empty{ display:none }
.ov-ret{ padding:12px 12px; border-radius:var(--r-control); background:var(--surface-raised) }
.ov-ret span{ display:block; font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted) }
.ov-ret b{ display:block; margin-top:8px; font:500 var(--fs-body)/var(--lh-none) var(--font-sans) }
@media (max-width:480px){ .ov-rets{ grid-template-columns:repeat(2,minmax(0,1fr)) } .ov-spark{ height:120px } }

/* ── What the company does ──────────────────────────────────────────────── */

.stk-brief[hidden]{ display:none }
.brief-body{
  font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary); max-width:78ch;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4;
  overflow:hidden;
}
.brief-body.open{ -webkit-line-clamp:unset; overflow:visible }
.brief-more{
  margin-top:8px; padding:0; border:0; background:none; cursor:pointer;
  font-family:inherit; font-size:var(--fs-small); font-weight:500; color:var(--highlight-text);
}
.brief-more:hover{ text-decoration:underline }
.brief-meta{
  margin-top:12px; font-family:var(--font-sans);
  font-size:var(--fs-small); color:var(--text-muted);
}
.brief-meta:empty{ display:none }
.brief-meta a{ color:var(--highlight-text) }

/* ── Overview: the score at a glance ─────────────────────────────────────── */

.ovs-p{ display:grid; gap:12px }
.ovs-r{ display:grid; grid-template-columns:minmax(0,118px) minmax(0,1fr) 28px; gap:12px;
  align-items:center; font-size:var(--fs-small); color:var(--text-secondary) }
.ovs-r b{ font:600 var(--fs-small)/var(--lh-none) var(--font-sans); text-align:right; color:var(--text-primary) }
.ovs-b, .pl-bar, .fl-b, .dv-b{
  position:relative; display:block; height:6px; border-radius:var(--r-pill);
  background:var(--border); overflow:hidden;
}
/* The score's own bars are the cognac of the score's ring. */
.ovs-b .fill, .pl-bar .fill, .fl-b .fill, .dv-b .fill{
  display:block; height:100%; width:0; border-radius:var(--r-pill);
  background:var(--chart-1);
  transition:width 900ms var(--ease-out);
}
.ovs-b .mid, .pl-bar .mid, .fl-b .mid{
  position:absolute; left:50%; top:0; bottom:0; width:1px; background:var(--text-primary); opacity:.25;
}
.ovs-d{ list-style:none; margin:16px 0 0; padding:12px 0 0; border-top:1px solid var(--border);
  display:grid; gap:8px }
.ovs-d li{ display:grid; grid-template-columns:14px minmax(0,1fr) auto; gap:8px; align-items:baseline;
  font-size:var(--fs-small); color:var(--text-secondary) }
.ovs-d i{ font-style:normal; font-size:var(--fs-label) }
.ovs-d .up i{ color:var(--gain) } .ovs-d .dn i{ color:var(--loss) }
.ovs-d b{ font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-muted); white-space:nowrap }
.ov-wait{ margin:0; font-size:var(--fs-body); color:var(--text-muted) }

/* ── Overview: latest ────────────────────────────────────────────────────── */

.lt-l{ list-style:none; margin:0; padding:0 }
.lt-l li{ padding:12px 0; border-top:1px solid var(--border) }
.lt-l li:first-child{ border-top:0; padding-top:0 }
.lt-l li:last-child{ padding-bottom:0 }
.lt-l a{ color:inherit; text-decoration:none }
.lt-l a:hover .lt-h{ color:var(--highlight-text) }
.lt-h{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  font-size:var(--fs-body); line-height:var(--lh-label); font-weight:500; color:var(--text-primary);
  transition:color 180ms var(--ease);
}
.lt-m{ display:block; margin-top:4px; font-size:var(--fs-small); color:var(--text-muted) }
.lt-k{
  display:inline-block; margin-right:8px; padding:2px 8px; border-radius:var(--r-pill); font-style:normal;
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:normal;
  background:var(--surface-raised); color:var(--text-secondary);
}
.lt-k.k-filing{ background:var(--highlight-subtle); color:var(--highlight-text) }

/* ── Score ───────────────────────────────────────────────────────────────── */

/* A choice of view inside a section (the holding period, the statement, a
   chart's range): words in a row, the chosen one in cognac over a 2px line.
   The same tab as the section bar, a size down. */
.hz, .ranges{ display:inline-flex; gap:var(--sp-5); border-bottom:1px solid var(--border) }
.hz:empty, .ranges:empty{ display:none }
.hz button, .ranges button{
  background:none; cursor:pointer; padding:var(--sp-3) 0 12px; margin:0 0 -1px; min-height:36px;
  border:0; border-bottom:2px solid transparent; border-radius:0;
  font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary); white-space:nowrap;
  transition:color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hz button:hover:not(.on), .ranges button:hover:not(.on){ color:var(--text-primary) }
.hz button.on, .ranges button.on{ color:var(--highlight-text); border-bottom-color:var(--highlight) }
@media (max-width:560px){
  .hz{ display:flex; width:100% }
  .ranges{ display:flex; width:100% }
  #ranges{ justify-content:space-between; gap:var(--sp-2) }
}
.hz button:focus-visible, .ranges button:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }

.sc-hero{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:var(--sp-8); align-items:center }
@media (max-width:720px){ .sc-hero{ grid-template-columns:1fr; gap:var(--sp-5) } }

.dial{ position:relative; width:184px; height:184px; margin:0 auto }
.dial svg{ width:100%; height:100%; transform:rotate(-90deg) }
.dial .trk{ fill:none; stroke:var(--border); stroke-width:8 }
.dial .arc{
  fill:none; stroke:var(--highlight); stroke-width:8; stroke-linecap:round;
  transition:stroke-dashoffset 1400ms var(--ease-out);
}
.dial .mid{
  position:absolute; inset:0; display:grid; place-content:center; text-align:center;
}
.dial .n{ font:400 var(--fs-display)/var(--lh-none) var(--font-display); letter-spacing:var(--ls-heading) }
.dial .of{ font:500 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted); margin-top:8px; letter-spacing:var(--ls-label) }
.dial .lb{
  margin-top:8px; font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--highlight-text);
}

.sc-line{ margin:0 0 16px; font-family:var(--font-display); font-size:var(--fs-h2);
  line-height:var(--lh-h2); letter-spacing:var(--ls-heading); color:var(--text-primary) ; font-weight:500}
.sc-line:empty{ display:none }
.rk-t{ font-size:var(--fs-body); line-height:var(--lh-small); color:var(--text-secondary) }
.rk-t b{ color:var(--text-primary) }
.rk-bar{
  position:relative; height:4px; margin:16px 8px 0; border-radius:var(--r-pill);
  background:var(--border);
}
.rk-bar i{
  position:absolute; left:var(--p); top:50%; width:14px; height:14px; border-radius:50%;
  background:var(--highlight); border:3px solid var(--surface); box-shadow:0 0 0 1px var(--border-strong);
  transform:translate(-50%,-50%); animation:slideP 1200ms var(--ease-out) both;
}
@keyframes slideP{ from{ left:0 } }
.sc-sub{ margin:var(--sp-5) 0 0; font:500 var(--fs-label)/var(--lh-small) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted) }
.sc-sub:empty{ display:none }
.stk-basis{
  margin:16px 0 0; padding:12px 16px;
  background:var(--surface-raised); border-radius:var(--r-control);
  font-size:var(--fs-small); line-height:var(--lh-body); color:var(--text-secondary);
}
.stk-basis[hidden]{ display:none }

/* How it adds up. One row a pillar: its rank among peers as a bar and a
   number, the weight it carries, the points that makes. */
.pillars{ border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); overflow:hidden }
.pillars:empty{ display:none }
.pl{
  display:grid; grid-template-columns:minmax(150px,1.35fr) minmax(110px,2fr) 40px 62px 54px;
  gap:16px; align-items:center; padding:12px var(--card-pad); border-top:1px solid var(--border);
}
.pl:first-child{ border-top:0 }
.pl-head{
  padding:0 var(--card-pad); min-height:40px; background:var(--surface-raised);
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted);
}
.pl-head span:nth-child(n+3){ text-align:right }
.pl-n b{ display:block; font-size:var(--fs-body); font-weight:500; color:var(--text-primary) }
.pl-n small{ display:block; margin-top:2px; font-size:var(--fs-small); line-height:var(--lh-label); color:var(--text-muted) }
.pl-s, .pl-w, .pl-p{ text-align:right; font:400 var(--fs-body)/var(--lh-none) var(--font-sans); color:var(--text-secondary) }
.pl-s{ color:var(--text-primary) }
.pl-p{ color:var(--text-primary); font-weight:500 }
.pl-miss{ padding:12px var(--card-pad); border-top:1px solid var(--border); font-size:var(--fs-small); line-height:var(--lh-body); color:var(--text-muted) }
.pl-miss b{ font-weight:600; color:var(--text-secondary) }
.pl-sum{ display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  padding:var(--sp-4) var(--card-pad); border-top:1px solid var(--border); font-size:var(--fs-body); font-weight:500 }
.pl-sum b{ font:600 var(--fs-body)/var(--lh-none) var(--font-sans) }
.pl-conf{ padding:var(--sp-4) var(--card-pad) var(--sp-5); border-top:1px solid var(--border); background:var(--surface-raised) }
.pl-conf-t{ font-size:var(--fs-small); line-height:var(--lh-body); color:var(--text-secondary); max-width:78ch }
.pl-conf-t b{ color:var(--text-primary) }
/* The confidence step, drawn: the weighted sum, the score, and the stretch
   between them that was given up toward 50. */
.cf{ position:relative; height:4px; margin:40px 12px 32px; border-radius:var(--r-pill); background:var(--border) }
.cf-50{ position:absolute; top:-5px; bottom:-5px; width:1px; background:var(--text-primary); opacity:.35 }
.cf em{ position:absolute; left:50%; transform:translateX(-50%); font-style:normal; white-space:nowrap; background:var(--surface-raised);
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted) }
.cf-50 em{ display:none }
.cf.far .cf-50 em{ display:block; top:calc(100% + 5px) }
.cf-pull{ position:absolute; top:0; bottom:0; border-radius:var(--r-pill); background:var(--highlight) }
.cf-raw{ position:absolute; top:50%; width:12px; height:12px; border-radius:50%;
  border:2px solid var(--text-muted); background:var(--surface-raised); transform:translate(-50%,-50%) }
.cf-raw em{ top:calc(100% + 7px) }
.cf-fin{ position:absolute; top:50%; width:14px; height:14px; border-radius:50%; background:var(--highlight);
  border:3px solid var(--surface-raised); box-shadow:0 0 0 1px var(--border-strong); transform:translate(-50%,-50%);
  animation:slideFin 1100ms var(--ease-out) both }
.cf-fin em{ bottom:calc(100% + 8px); font-weight:600; font-size:var(--fs-small); color:var(--text-primary) }
@keyframes slideFin{ from{ opacity:0; transform:translate(-50%,-50%) scale(.4) } }
.pl-eq{ text-align:right; font:500 var(--fs-small)/var(--lh-label) var(--font-sans); color:var(--text-secondary) }
.pl-eq b{ font-size:var(--fs-body); color:var(--text-primary) }
@media (max-width:680px){
  .pl{ grid-template-columns:minmax(0,1fr) 34px 52px 44px; gap:8px 12px; padding:12px var(--card-pad) }
  .pl-n{ grid-column:1 / -1 }
  .pl-head{ display:none }
}

/* What helped, what hurt. */
/* By id: .drv is also the small "derived" tag on an ownership card, and a
   class rule here turned that tag into a two-column grid as wide as its card. */
#drivers{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-4) }
.drv-col{ padding:var(--card-pad); border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); min-width:0 }
.drv-col h3{ margin:0 0 var(--sp-4); display:flex; align-items:center; gap:8px;
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-secondary) }
.drv-col h3::before{ content:''; width:8px; height:8px; border-radius:50% }
.drv-col.up h3::before{ background:var(--gain) } .drv-col.dn h3::before{ background:var(--loss) }
.drv-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:12px }
.drv-col li{ display:grid; grid-template-columns:minmax(0,1fr) 84px; gap:4px 12px; align-items:center; font-size:var(--fs-body) }
.dv-l{ color:var(--text-primary) }
.drv-col.up .dv-b .fill{ background:var(--gain) } .drv-col.dn .dv-b .fill{ background:var(--loss) }
.dv-p{ grid-column:1 / -1; margin-top:-2px; font:500 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted) }
.drv-none{ margin:0; font-size:var(--fs-small); color:var(--text-muted) }
@media (max-width:640px){ #drivers{ grid-template-columns:1fr } }

/* Every factor. */
.fl{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-4); align-items:start }
.fl-g{ padding:var(--sp-5) var(--card-pad) var(--sp-3); border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); min-width:0 }
.fl-g h3{ margin:0 0 var(--sp-2); display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-secondary) }
.fl-g h3 b{ font-size:var(--fs-small); letter-spacing:0; color:var(--text-primary) }
.fl-g h3 em{ display:block; margin-top:4px; font:400 var(--fs-label)/var(--lh-h3) var(--font-sans);
  letter-spacing:0; text-transform:none; color:var(--text-muted) }
.fl-g.off .fill{ background:var(--border-strong) }
.fl-g.off h3 b{ color:var(--text-muted) }
.fl-r{ display:grid; grid-template-columns:minmax(0,1.6fr) 58px minmax(54px,1fr) 26px; gap:12px;
  align-items:center; padding:8px 0; border-top:1px solid var(--border); font-size:var(--fs-small) }
.fl-l{ color:var(--text-primary); line-height:var(--lh-h3) }
.fl-l small{ display:block; margin-top:2px; font-size:var(--fs-label); color:var(--text-muted) }
.fl-v, .fl-p{ text-align:right; font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary) }
.fl-p{ font-weight:600; color:var(--text-primary) }
.fl-r.none .fl-l{ color:var(--text-secondary) }
.fl-why{ grid-column:3 / -1; font-size:var(--fs-small); line-height:var(--lh-label); color:var(--text-muted) }
.fl-skip{ grid-column:1 / -1; font-size:var(--fs-small); color:var(--text-muted) }
.fl-skip summary{ cursor:pointer; padding:8px 0 }
.fl-skip summary:hover{ color:var(--highlight-text) }
.fl-skip p{ margin:8px 0 0; line-height:var(--lh-body) }
@media (max-width:820px){ .fl{ grid-template-columns:1fr } }

/* The older checks, folded. */
.diag{ border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); overflow:hidden }
.diag > summary{
  list-style:none; cursor:pointer; padding:var(--sp-5) var(--card-pad);
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px 16px;
}
.diag > summary::-webkit-details-marker{ display:none }
.diag > summary span{ font-family:var(--font-display); font-size:var(--fs-h2) ; font-weight:500; letter-spacing:var(--ls-heading)}
.diag > summary span::after{ content:' +'; color:var(--text-muted) }
.diag[open] > summary span::after{ content:' −' }
.diag > summary small{ font:500 var(--fs-label)/var(--lh-label) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted) }
.diag > summary:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:-2px; border-radius:var(--r-card) }
.diag .ledger{ padding:0 var(--card-pad) var(--card-pad) }
.chk-h{ margin:20px 0 12px; display:flex; justify-content:space-between; align-items:baseline;
  font:600 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted) }
.chk-h:first-child{ margin-top:4px }
.chk-h b{ letter-spacing:0; color:var(--text-secondary) }

/* ── Smart AI: floating button and panel ─────────────────────────────────── */

.sai{ position:fixed; right:24px; bottom:24px; z-index:960;
      display:flex; flex-direction:column; align-items:flex-end; gap:12px }
.sai[hidden], .sai-panel[hidden]{ display:none }
.sai-ico{ display:inline-flex; width:20px; height:20px; flex:none }
.sai-ico svg{ width:100%; height:100%; fill:currentColor }

/* The page's one filled action: the accent pill, 40px, floating over the
   page, so it takes the one raised shadow (none in the dark). */
.sai-fab{
  display:inline-flex; align-items:center; gap:8px;
  height:var(--control-h); padding:0 var(--sp-5) 0 var(--sp-4); border:0; border-radius:var(--r-pill); cursor:pointer;
  font:500 var(--fs-body)/var(--lh-none) var(--font-sans); letter-spacing:normal;
  color:var(--on-accent); background:var(--accent);
  box-shadow:var(--shadow-raised);
  transition:background-color var(--t-fast) var(--ease);
}
.sai-fab:hover{ background:var(--accent-hover) }
.sai-fab:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px }
.sai-fab .sai-ico{ width:16px; height:16px }

.sai-panel{
  width:min(380px, calc(100vw - 32px)); max-height:min(560px, calc(100vh - 180px));
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--surface-raised); color:var(--text-primary);
  border:1px solid var(--border-strong); border-radius:var(--r-card); box-shadow:var(--shadow-raised);
  animation:sai-in 180ms var(--ease-out);
}
@keyframes sai-in{ from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:none } }
.sai-head{
  display:flex; align-items:center; gap:8px; padding:16px 16px 12px 20px;
  border-bottom:1px solid var(--border); color:var(--text-primary);
}
.sai-head .sai-ico{ color:var(--highlight) }
.sai-title{ flex:1; margin:0; font-family:var(--font-sans); font-size:var(--fs-h3); font-weight:600; color:var(--text-primary) }
.sai-x{
  width:32px; height:32px; border:0; border-radius:var(--r-pill); cursor:pointer;
  background:none; color:var(--text-muted); font-size:var(--fs-h2); line-height:var(--lh-none); font-family:var(--font-display); font-weight:500; letter-spacing:var(--ls-heading);
}
.sai-x:hover{ background:var(--wash-strong); color:var(--text-primary) }
.sai-body{ padding:16px 20px; overflow-y:auto }
.sai-hi{ margin:0 0 12px; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary) }
.sai-q{
  display:block; width:100%; text-align:left; padding:12px 16px;
  border:1px solid var(--border-strong); border-radius:var(--r-control); background:none; cursor:pointer;
  font-family:inherit; font-size:var(--fs-body); font-weight:500; color:var(--text-primary);
  transition:background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.sai-q:hover{ background:var(--wash); color:var(--highlight-text) }
.sai-q:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.sai-you{
  margin:0 0 12px auto; width:fit-content; max-width:88%; padding:8px 12px;
  border-radius:var(--r-card) var(--r-card) var(--r-xs) var(--r-card); background:var(--highlight-subtle);
  font-size:var(--fs-body); line-height:var(--lh-small); color:var(--text-primary);
}
.sai-wait, .sai-note{ margin:0 0 12px; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-muted) }
.sai-dots{ display:inline-flex; gap:3px; margin-right:8px; vertical-align:middle }
.sai-dots i{ width:5px; height:5px; border-radius:var(--r-pill); background:var(--highlight);
             animation:sai-dot 1s ease-in-out infinite }
.sai-dots i:nth-child(2){ animation-delay:.15s }
.sai-dots i:nth-child(3){ animation-delay:.3s }
@keyframes sai-dot{ 0%,100%{ opacity:.25 } 50%{ opacity:1 } }
.sai-ans{ padding-left:12px; border-left:2px solid var(--border-strong) }
.sai-ans p{ margin:0 0 12px; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary) }
.sai-ans p:last-child{ margin-bottom:0 }
.sai-meta{ margin:16px 0 0; font-size:var(--fs-label); line-height:var(--lh-body); color:var(--text-muted) }
.sai-tag{
  display:inline-block; margin-right:8px; padding:2px 8px; border:1px solid var(--border);
  border-radius:var(--r-pill); font:500 var(--fs-label)/var(--lh-label) var(--font-sans);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-secondary);
}
.sai-foot{
  margin:0; padding:12px 20px; border-top:1px solid var(--border);
  font-size:var(--fs-small); color:var(--text-muted);
}

/* Below 1041px the site shows a bottom product bar (experience.css); the
   button sits above it rather than on top of it. */
@media (max-width:1040px){
  .sai{ right:16px; bottom:calc(88px + env(safe-area-inset-bottom)) }
}
/* On a phone the panel is a sheet across the screen, and the button gives
   up its label so it covers less of the page. */
@media (max-width:560px){
  .sai.open{ left:16px }
  .sai-panel{ width:100%; max-height:calc(100vh - 240px) }
  .sai-fab{ width:44px; height:44px; padding:0; justify-content:center }
  .sai.open .sai-fab{ width:auto; padding:0 var(--sp-5) 0 var(--sp-4) }
  .sai-fab .sai-lbl{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
  .sai.open .sai-fab .sai-lbl{ position:static; width:auto; height:auto; clip:auto }
}

/* ── Technical snapshot ──────────────────────────────────────────────────── */

.nums{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--sp-3) }
@media (max-width:720px){ .nums{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
.num{ padding:var(--sp-4); border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface) }
.num .k{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted);
}
.num .v{ font:500 var(--fs-h2)/var(--lh-h2) var(--font-display); margin-top:var(--sp-2); letter-spacing:var(--ls-heading) }
.num .h{ font-size:var(--fs-small); color:var(--text-muted); margin-top:8px; line-height:var(--lh-label) }

/* ── Chart ───────────────────────────────────────────────────────────────── */

.chartbox{ padding:var(--card-pad) }
.chartbox svg{ width:100%; height:250px; display:block; overflow:visible }
/* A line is 1.5px; the area under it is the line's colour at 15%, flat. */
.spark-line{ fill:none; stroke:var(--chart-1); stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round }
.spark-fill{ fill:var(--chart-1); fill-opacity:.15 }
.sc-plot.rise .spark-fill{ fill:var(--gain) } .sc-plot.fall .spark-fill{ fill:var(--loss) }
.spark-draw{ stroke-dasharray:var(--len); stroke-dashoffset:var(--len);
  animation:sparkIn 1500ms var(--ease-out) forwards }
@keyframes sparkIn{ to{ stroke-dashoffset:0 } }

/* Interactive chart: hover reads a close, drag measures a move. Overlays are
   HTML over a stretched SVG, placed in percent, so dots stay round at any width. */
.sc-read{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:0 0 12px; min-height:30px }
.sc-price{ font:500 var(--fs-h2)/var(--lh-none) var(--font-display); letter-spacing:var(--ls-heading); color:var(--text-primary) }
.sc-sub{ display:flex; gap:12px; flex-wrap:wrap; align-items:baseline;
  font:500 var(--fs-small)/var(--lh-label) var(--font-sans); color:var(--text-muted) }
.sc-chg{ font-weight:600; transition:color 160ms var(--ease) }
.sc-plot{ position:relative; cursor:crosshair; touch-action:pan-y; user-select:none;
  -webkit-user-select:none; border-radius:var(--r-control); outline:none }
.sc-plot:focus-visible{ box-shadow:0 0 0 2px var(--focus-ring) }
.sc-plot svg{ pointer-events:none }
.sc-base{ transition:opacity 220ms var(--ease) }
.sc-plot.measuring .sc-base{ opacity:.35 }
.sc-sel{ opacity:0; transition:opacity 180ms var(--ease) }
.sc-plot.measuring .sc-sel{ opacity:1 }
.sc-sel-line{ fill:none; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round;
  vector-effect:non-scaling-stroke; transition:stroke 160ms var(--ease) }
.sc-sel-fill{ fill-opacity:.15 }
.sc-plot.up .sc-sel-line{ stroke:var(--gain) } .sc-plot.dn .sc-sel-line{ stroke:var(--loss) }
.sc-plot.up .sc-sel-fill{ fill:var(--gain) } .sc-plot.dn .sc-sel-fill{ fill:var(--loss) }

.sc-base-line{ position:absolute; left:0; right:0; height:0; pointer-events:none;
  border-top:1px dotted var(--text-muted); opacity:.7 }
.sc-base-line span{ position:absolute; right:0; bottom:3px; padding:1px 4px; border-radius:var(--r-xs);
  background:var(--surface); font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); color:var(--text-muted) }
.sc-band{ position:absolute; top:0; bottom:0; opacity:0; pointer-events:none;
  background:var(--gain); transition:opacity 180ms var(--ease), background-color 160ms var(--ease) }
.sc-plot.measuring .sc-band{ opacity:.07 }
.sc-plot.dn .sc-band{ background:var(--loss) }

.sc-x{ position:absolute; top:0 !important; bottom:0; width:0; pointer-events:none; opacity:0;
  border-left:1px dashed var(--border-strong); transition:opacity 160ms var(--ease), left 70ms linear }
.sc-plot.hovering .sc-x-a, .sc-plot.measuring .sc-x-b{ opacity:.45 }
.sc-dot{ position:absolute; width:11px; height:11px; margin:-4px 0 0 -4px; border-radius:50%;
  pointer-events:none; background:var(--surface); border:2.5px solid var(--border-strong);
  opacity:0; transform:scale(.3);
  transition:opacity 160ms var(--ease), transform 220ms cubic-bezier(.34,1.56,.64,1),
    left 70ms linear, top 70ms linear, border-color 160ms var(--ease) }
.sc-plot.hovering .sc-dot-a, .sc-plot.measuring .sc-dot-b{ opacity:1; transform:scale(1) }
.sc-plot.rise .sc-dot{ border-color:var(--gain) } .sc-plot.fall .sc-dot{ border-color:var(--loss) }
.sc-plot.up .sc-dot{ border-color:var(--gain) } .sc-plot.dn .sc-dot{ border-color:var(--loss) }

.sc-tip{ position:absolute; top:-6px; pointer-events:none; white-space:nowrap; z-index:2;
  display:flex; flex-direction:column; gap:3px; padding:8px 12px; border-radius:var(--r-control);
  background:var(--surface-raised); border:1px solid var(--border-strong); box-shadow:var(--shadow-raised);
  font:500 var(--fs-label)/var(--lh-h1) var(--font-sans); color:var(--text-muted);
  opacity:0; margin-top:-8px; transition:opacity 160ms var(--ease), margin-top 200ms var(--ease), left 70ms linear }
.sc-tip b{ font-size:var(--fs-body); font-weight:600; color:var(--text-primary) }
.sc-tip b.up{ color:var(--gain) } .sc-tip b.dn{ color:var(--loss) }
.sc-plot.hovering .sc-tip{ opacity:1; margin-top:0 }
.sc-plot.measuring .sc-tip{ top:8px; padding:8px 12px }
.sc-plot.measuring .sc-tip b{ font-size:var(--fs-body) }
.sc-plot.measuring .sc-tip{ animation:scPop 260ms cubic-bezier(.34,1.56,.64,1) }
@keyframes scPop{ from{ scale:.9 } to{ scale:1 } }

.sc-foot{ display:flex; justify-content:space-between; gap:12px; margin-top:12px;
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); color:var(--text-muted) }
@media (hover:none){ .sc-hint{ font-size:0 } .sc-hint::after{ content:'Drag across the chart to measure a move'; font-size:var(--fs-label) } }
.sc-sr{ position:absolute !important; width:1px; height:1px; padding:0 !important; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }

/* ── The ledger — the reason this product exists ─────────────────────────── */

.ledger{ display:grid; gap:8px }
.chk{
  border:1px solid var(--border); border-radius:var(--r-control); background:var(--surface);
  overflow:hidden; transition:border-color 200ms var(--ease);
}
.chk:hover{ border-color:var(--border-strong) }
.chk > summary{
  list-style:none; cursor:pointer; padding:16px 16px;
  display:grid; grid-template-columns:1fr auto 96px; gap:16px; align-items:center;
}
.chk > summary::-webkit-details-marker{ display:none }
.chk .cn{ font-weight:500; font-size:var(--fs-body) }
.chk .cv{ font:500 var(--fs-small)/var(--lh-label) var(--font-sans); color:var(--text-muted);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:340px }
@media (max-width:700px){
  .chk > summary{ grid-template-columns:1fr 96px }
  .chk .cv{ display:none }
}
.chk .pts{ display:flex; align-items:center; gap:8px; justify-content:flex-end }
.chk .ptn{ font:600 var(--fs-small)/var(--lh-none) var(--font-sans); white-space:nowrap }
.chk .ptbar{ display:block; width:44px; height:5px; background:var(--border);
  border-radius:var(--r-pill); overflow:hidden; flex:0 0 auto }
.chk .ptfill{ display:block; height:100%; border-radius:var(--r-pill); background:var(--chart-1) }
.chk .ptfill.full{ background:var(--gain) } .chk .ptfill.zero{ background:var(--loss) }

.chk .body{ padding:2px 16px 16px; border-top:1px solid var(--border); margin-top:2px }
.chk .row{ display:grid; grid-template-columns:88px 1fr; gap:12px; padding:12px 0; font-size:var(--fs-small) }
.chk .row + .row{ border-top:1px solid var(--border) }
.chk .row .k{
  font:500 var(--fs-label)/var(--lh-small) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted); padding-top:2px;
}
.chk .row .v{ line-height:var(--lh-body); color:var(--text-secondary) }
.chk .row .v.mono{ font-family:var(--font-sans); font-size:var(--fs-small); color:var(--text-primary) }
.chk[open]{ border-color:var(--border-strong) }

/* ── Support and resistance ──────────────────────────────────────────────── */

/* Hairline cards like every other; which side of the price a level sits on
   is said by its label and a small mark beside it, not by a heavy edge. */
.lvls{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:var(--sp-3) }
.lvl{ padding:var(--sp-4); border-radius:var(--r-card); border:1px solid var(--border); background:var(--surface) }
.lvl .k{ font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted) }
.lvl .k::before{ content:''; display:inline-block; width:6px; height:6px; margin-right:8px; border-radius:50%;
  background:var(--border-strong); vertical-align:1px }
.lvl.res .k::before{ background:var(--loss) } .lvl.sup .k::before{ background:var(--gain) }
.lvl .v{ font:600 var(--fs-h3)/var(--lh-none) var(--font-sans); margin-top:8px }
.lvl .h{ font-size:var(--fs-small); color:var(--text-muted); margin-top:8px }

/* ── States ──────────────────────────────────────────────────────────────── */

.stk-state{ padding:72px 20px; text-align:center; color:var(--text-muted); font-size:var(--fs-body) }
.stk-state .big{ font-size:var(--fs-body); color:var(--text-primary); margin-bottom:12px }
/* The skeleton itself (its fill and its slow pass of light) is the shared
   one in components.css; this only gives it the page's corner. */
.skel{ border-radius:var(--r-control) }
.skel-row{ height:15px; margin:12px 0 }

.stk-disc{
  margin-top:var(--sp-12); padding:var(--sp-5) 0 0; border-top:1px solid var(--border);
  font-size:var(--fs-small); line-height:var(--lh-body); color:var(--text-muted);
}
/* It sits outside #body now, after the at-a-glance section, so it is on the
   page before stock.js has a sentence to put in it. An empty dashed box is
   not a disclaimer. */
.stk-disc:empty{ display:none }

/* ── At a glance ─────────────────────────────────────────────────────────
   Written into /stock-SYMBOL by the API before the page is sent
   (backend/company_pages.py): a paragraph, the filed figures, the last
   quarters and the company's neighbours. It is the part of the page that
   exists without JavaScript, which is the part a search engine reads, and it
   is set like the rest of the page so a reader meets it as one more section
   and not as a block of text left there for a crawler. */

.stk-glance{ margin-top:var(--sp-12); border-top:1px solid var(--border) }
.stk-glance h3{
  margin:var(--sp-8) 0 var(--sp-3); font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted);
}
.gl-lede{ margin:0; max-width:74ch; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary) }
.gl-score{ margin:16px 0 0; max-width:74ch; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary) }
.gl-score b{ color:var(--text-primary) }

.gl-facts{
  margin:24px 0 0; display:grid; gap:12px;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
}
.gl-facts > div{
  min-width:0; padding:12px 16px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--r-card);
}
.gl-facts dt{
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted);
}
.gl-facts dd{
  margin:8px 0 0; font:500 var(--fs-body)/var(--lh-h2) var(--font-sans);
  color:var(--text-primary); overflow-wrap:anywhere;
}

/* The page's tables. The header, the 48px row and the hairline between rows
   are the shared table's (components.css); what is set here is what a table
   of figures adds: figures on the right, the row's name in ordinary type on
   the left, and a card around the scroller. */
.gl-scroll{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface) }
.gl-table{ width:100%; min-width:540px; border-collapse:collapse }
.gl-table caption{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap;
}
.gl-table th,.gl-table td{ padding:0 var(--sp-4); text-align:right; white-space:nowrap }
.gl-table tbody tr:last-child th,.gl-table tbody tr:last-child td{ border-bottom:0 }
.gl-table th:first-child{ text-align:left }
.gl-table tbody th{
  height:var(--row-h); background:none; text-transform:none; letter-spacing:normal;
  font:500 var(--fs-body)/var(--lh-h3) var(--font-sans); color:var(--text-primary);
}
.gl-table tbody tr:hover > th{ background:var(--surface-raised) }
.gl-table td{ color:var(--text-secondary) }

.gl-peers{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px }
.gl-peers a{
  display:inline-block; padding:8px 12px; border:1px solid var(--border);
  border-radius:var(--r-pill); font-size:var(--fs-small); color:var(--text-secondary); text-decoration:none;
}
.gl-peers a:hover,.gl-peers a:focus-visible{ border-color:var(--focus-ring); color:var(--text-primary) }
.gl-all,.gl-open{ margin:24px 0 0; font-size:var(--fs-body) }
.gl-all a,.gl-open a{ color:var(--highlight-text); text-decoration:underline; text-underline-offset:3px }

/* The questions people search a company with, answered from its filings. */
.gl-faq{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)) }
.gl-qa{
  min-width:0; padding:16px 20px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--r-card);
}
.gl-qa h4{ margin:0 0 8px; font:600 var(--fs-body)/var(--lh-label) var(--font-sans); color:var(--text-primary) }
.gl-qa p{ margin:0; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary); overflow-wrap:anywhere }
.gl-qa a{ color:var(--text-primary); text-decoration:underline; text-decoration-color:var(--highlight-text); text-underline-offset:3px }
.gl-qa a:hover,.gl-qa a:focus-visible{ color:var(--highlight-text) }

/* The sector under a company's name is a link to that sector's page. */
a.stk-tag{ text-decoration:none }
a.stk-tag:hover,a.stk-tag:focus-visible{ border-color:var(--focus-ring); color:var(--text-primary) }

/* The live part of a company's own page did not load. One quiet line: the
   figures the server sent are still the page (stock.js, liveOff). */
.stk-live-off{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin:20px 0 0;
  padding:12px 16px; border:1px dashed var(--border); border-radius:var(--r-card);
  font-size:var(--fs-small); color:var(--text-muted);
}
.stk-live-off button{
  padding:8px 16px; border:1px solid var(--border); border-radius:var(--r-pill); background:none;
  font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-primary); cursor:pointer;
}
.stk-live-off button:hover,.stk-live-off button:focus-visible{ border-color:var(--focus-ring) }

/* ── Every company, A to Z (/stocks) ─────────────────────────────────────── */

.dir-sub{ margin:12px 0 0; max-width:66ch; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary) }
.dir-tools{ display:flex; flex-wrap:wrap; gap:16px 28px; align-items:flex-end; padding:24px 0 4px }
.dir-find{
  display:flex; flex-direction:column; gap:8px; font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted);
}
/* 16px: anything smaller and an iPhone zooms the page when the box is tapped. */
.dir-find input{
  width:min(320px,calc(100vw - 40px)); padding:12px 16px; border:1px solid var(--border);
  border-radius:var(--r-control); background:var(--surface); color:var(--text-primary);
  font:400 var(--fs-input)/var(--lh-h1) var(--font-sans); letter-spacing:0; text-transform:none;
}
.dir-az{ display:flex; flex-wrap:wrap; gap:4px }
.dir-az a{
  min-width:32px; height:32px; padding:0 8px; display:inline-flex; align-items:center;
  justify-content:center; border:1px solid var(--border); border-radius:var(--r-control);
  font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary); text-decoration:none;
}
.dir-az a:hover,.dir-az a:focus-visible{ border-color:var(--focus-ring); color:var(--text-primary) }
.dir-group{ padding-top:32px; scroll-margin-top:calc(var(--sh-chrome-h, 0px) + 16px) }
.dir-group h2{
  margin:0 0 8px; font-family:var(--font-display); font-weight:500; font-size:var(--fs-h2); line-height:var(--lh-h2); letter-spacing:var(--ls-heading);
}
.dir-list{
  list-style:none; margin:0; padding:0; display:grid; gap:0 28px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
}
.dir-list li{ min-width:0; padding:12px 0; border-bottom:1px solid var(--border) }
.dir-list a{
  display:block; font-size:var(--fs-body); font-weight:500; color:var(--text-primary);
  text-decoration:none; overflow-wrap:anywhere;
}
.dir-list a:hover,.dir-list a:focus-visible{ color:var(--highlight-text) }
.dir-list span{
  display:block; margin-top:3px; font:400 var(--fs-label)/var(--lh-h3) var(--font-sans);
  color:var(--text-muted); overflow-wrap:anywhere;
}
.dir-none{ padding:24px 0; color:var(--text-muted) }

/* ── Sectors: the list on /stocks, and one sector's page (/sector-NAME) ──── */

.dir-sectors{ padding-top:28px }
.dir-sectors h2{
  margin:0 0 12px; font:600 var(--fs-label)/var(--lh-none) var(--font-sans);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted);
}
.dir-sectors ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px }
.dir-sectors li{
  display:inline-flex; align-items:baseline; gap:8px; padding:8px 12px;
  border:1px solid var(--border); border-radius:var(--r-pill);
}
.dir-sectors li:hover,.dir-sectors li:focus-within{ border-color:var(--focus-ring) }
.dir-sectors a{ font-size:var(--fs-small); color:var(--text-primary); text-decoration:none }
.dir-sectors span{ font:400 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted) }

.sec-inds{ margin:24px 0 0; max-width:86ch; font-size:var(--fs-small); line-height:var(--lh-body); color:var(--text-secondary) }
.sec-inds b{ font-weight:600; color:var(--text-primary) }
.sec-list{ padding-top:28px }
.sec-table{ min-width:760px }
.sec-table tbody th{ white-space:normal; min-width:200px }
.sec-table tbody th a{ color:var(--text-primary); text-decoration:none }
.sec-table tbody th a:hover,.sec-table tbody th a:focus-visible{ color:var(--highlight-text) }
.sec-table tbody th span{
  display:block; margin-top:3px; font:400 var(--fs-label)/var(--lh-h3) var(--font-sans); color:var(--text-muted);
}
.sec-table td:nth-child(2){
  text-align:left; white-space:normal; min-width:150px; color:var(--text-secondary);
}
.sec-table thead th:nth-child(2){ text-align:left }

/* ── Reading pages: /glossary, /methodology, /planner ──────────────────────
   Prose at a reading width, in the stock page's type. They are the site's
   own words about itself, set to be read and not skimmed past. */

.doc .dir-sub{ max-width:72ch }
.doc h2{
  margin:0 0 var(--sp-4); font-family:var(--font-display); font-weight:500;
  font-size:var(--fs-h2); line-height:var(--lh-h2); color:var(--text-primary); letter-spacing:var(--ls-heading);
}
.doc-sec,.doc-group,.doc-more{
  padding-top:var(--sp-12); max-width:860px;
  scroll-margin-top:calc(var(--sh-chrome-h, 0px) + 16px);
}
.doc-sec p,.doc-more p,.doc-term p{
  margin:0 0 16px; max-width:74ch; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary);
}
.doc-sec b,.doc-term b,.doc-list b{ font-weight:600; color:var(--text-primary) }
.doc a{ color:var(--highlight-text); text-decoration:underline; text-underline-offset:3px }
.doc a:hover,.doc a:focus-visible{ color:var(--text-primary) }
.doc .stk-crumb a{ color:var(--text-muted); text-decoration:none }
.doc-steps,.doc-list{ margin:0 0 16px; padding-left:24px; max-width:74ch }
.doc-steps li,.doc-list li{ margin:0 0 8px; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary) }
.doc .gl-scroll{ margin:20px 0 }
.doc-table td:nth-child(2){ text-align:left; white-space:normal; min-width:240px }
.doc-table thead th:nth-child(2){ text-align:left }
.doc-bands{ margin:4px 0 20px }
.doc-fine{ font-size:var(--fs-small) !important; color:var(--text-muted) !important }

.doc-toc{ padding-top:8px; max-width:860px }
.doc-toc ul{ list-style:none; margin:0; padding:0 }
.doc-toc li{
  display:flex; flex-wrap:wrap; gap:4px 16px; padding:12px 0;
  border-bottom:1px solid var(--border); font-size:var(--fs-body);
}
.doc-toc li > a{ flex:0 0 150px; font-weight:500; text-decoration:none }
.doc-toc span{ flex:1 1 260px; color:var(--text-muted); line-height:var(--lh-body) }
.doc-toc span a{ color:var(--text-secondary) }

.doc-term{
  padding:20px 0 8px; border-top:1px solid var(--border);
  scroll-margin-top:calc(var(--sh-chrome-h, 0px) + 16px);
}
.doc-term h3{ margin:0 0 8px; font:600 var(--fs-h3)/var(--lh-h3) var(--font-sans); color:var(--text-primary) }
.doc-term h3 span{
  margin-left:8px; font:400 var(--fs-small)/var(--lh-none) var(--font-sans); letter-spacing:normal; color:var(--text-muted);
}
.doc-term .doc-def{ font-size:var(--fs-body); color:var(--text-primary) }

.doc-defs{ margin:0; max-width:860px }
.doc-defs > div{
  display:flex; flex-wrap:wrap; gap:4px 20px; padding:12px 0; border-bottom:1px solid var(--border);
}
.doc-defs dt{ flex:0 0 130px; font-weight:600; font-size:var(--fs-body); color:var(--text-primary) }
.doc-defs dd{ flex:1 1 300px; margin:0; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--text-secondary) }

.doc-cta{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin:24px 0 0 }
.doc-cta span{ font-size:var(--fs-small); color:var(--text-muted) }
.doc a.doc-btn{
  display:inline-flex; align-items:center; height:var(--control-h); padding:0 var(--sp-6); border-radius:var(--r-pill);
  background:var(--accent); color:var(--on-accent); font:500 var(--fs-body)/var(--lh-none) var(--font-sans); text-decoration:none;
}
.doc a.doc-btn:hover,.doc a.doc-btn:focus-visible{ background:var(--accent-hover); color:var(--on-accent) }

@media (prefers-reduced-motion: reduce){
  .dial .arc{ transition:none }
  .spark-draw{ animation:none; stroke-dashoffset:0 }
  .sc-plot *, .sc-plot{ transition:none !important; animation:none !important }
  .skel{ animation:none }
}

/* ── Ownership ────────────────────────────────────────────────────────────
   The shareholding pattern, from the company's own Reg 31 filing.

   THE PALETTE
   Four categories, one chart-series token each, fixed and never cycled:
   cognac, navy (steel blue in the dark), sage and slate. They are the theme's
   own series colours, so they follow light and dark by themselves. Green and
   red are kept out of it: here they would read as a rise and a fall. Colour
   is never the only encoding: every category is named beside its mark,
   and printed again in the table under the panels. Do not remove either.     */

:root{
  --own-promoter: var(--chart-1);
  --own-fii:      var(--chart-2);
  --own-dii:      var(--chart-3);
  --own-public:   var(--chart-5);
}

.s-promoter{ --own-c:var(--own-promoter) }
.s-dii{ --own-c:var(--own-dii) }
.s-fii{ --own-c:var(--own-fii) }
.s-public_non_institutional{ --own-c:var(--own-public) }
.s-government,.s-custodian,.s-non_promoter_non_public{ --own-c:var(--text-muted) }

/* Composition. A 2px surface gap keeps adjacent fills from reading as one. */
.own-bar{ display:flex; height:8px; border-radius:var(--r-pill); overflow:hidden; gap:2px; margin-bottom:var(--sp-6) }
.own-bar .seg{ background:var(--own-c); display:block; min-width:2px }

/* One panel per category. Each has its own scale, which is the whole point:
   promoters near 62% and domestic institutions near 1% on a shared axis put
   two series flat on the floor with their end labels on top of each other, and
   left two-thirds of the plot empty. */
.op-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:var(--sp-4); margin-bottom:var(--sp-6);
}
.op{
  padding:var(--sp-5); background:var(--surface);
  border:1px solid var(--border); border-radius:var(--r-card); min-width:0;
}
/* A fixed two-line header box. "Domestic institutions (DII)" wraps and
   "Promoters" does not, and without a floor the wrapped one pushes its
   sparkline down so the row of panels no longer lines up. */
.op > header{
  display:flex; align-items:flex-start; gap:8px; margin-bottom:12px;
  min-width:0; min-height:28px;
}
.op > header i{
  width:9px; height:9px; border-radius:var(--r-xs); background:var(--own-c);
  flex:0 0 auto; margin-top:2px;
}
.op > header h3{
  margin:0; font:500 var(--fs-label)/var(--lh-h2) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted); min-width:0;
  overflow-wrap:anywhere;
}
.op .drv{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label); font-style:normal;
  text-transform:uppercase; color:var(--text-muted); border:1px solid var(--border);
  border-radius:var(--r-xs); padding:3px 4px; flex:0 0 auto;
}
.op-val{
  font:500 var(--fs-h1)/var(--lh-none) var(--font-display); letter-spacing:var(--ls-heading); color:var(--text-primary);
}
.op-val span{ font:400 var(--fs-body)/var(--lh-none) var(--font-sans); letter-spacing:normal; color:var(--text-muted); margin-left:2px }

.op-chips{ display:flex; gap:8px; margin:12px 0 12px; flex-wrap:wrap }
.op-chip{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); padding:4px 8px; border-radius:var(--r-pill);
  background:var(--surface-raised); color:var(--text-secondary); white-space:nowrap;
}
.op-chip b{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:normal;
  color:var(--text-muted); margin-left:4px;
}
.op-chip.up{ color:var(--gain) } .op-chip.dn{ color:var(--loss) }
.op-chip.none,.op-chip.flat{ color:var(--text-muted) }

.op-spark{ display:block; width:100%; height:46px; overflow:visible }
.op-spark .ln{ fill:none; stroke:var(--own-c); stroke-width:1.5; stroke-linejoin:round;
  stroke-linecap:round; vector-effect:non-scaling-stroke }
.op-spark .ar{ fill:var(--own-c); opacity:.15; stroke:none }
.op-spark .dt{ fill:var(--own-c); stroke:var(--surface); stroke-width:1.5;
  vector-effect:non-scaling-stroke }
.op-spark .oh{ fill:transparent; cursor:crosshair }
.op-nospark{
  height:46px; display:flex; align-items:center; font-size:var(--fs-small);
  color:var(--text-muted); line-height:var(--lh-label);
}
.op-range{
  display:flex; justify-content:space-between; gap:8px; margin-top:8px;
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted);
}
.op-range b{ font-weight:500; letter-spacing:var(--ls-label); text-transform:uppercase }
.op-holders{
  margin-top:12px; padding-top:12px; border-top:1px solid var(--border);
  font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary);
  display:flex; align-items:baseline; gap:8px; flex-wrap:wrap;
}
.op-holders b{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted);
}
.op-holders em{ font:500 var(--fs-label)/var(--lh-none) var(--font-sans); font-style:normal; margin-left:auto }
.op-holders em.up{ color:var(--gain) } .op-holders em.dn{ color:var(--loss) }

/* Government, custodian and the rest: real, small, and not worth a panel. */
.op-rest{ display:flex; flex-wrap:wrap; gap:8px 20px; margin:-8px 0 20px }
.op-rest span{ display:inline-flex; align-items:center; gap:8px; font-size:var(--fs-small); color:var(--text-muted) }
.op-rest i{ width:8px; height:8px; border-radius:var(--r-xs); background:var(--own-c) }
.op-rest b{ font:600 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary) }

.own-count{
  padding:var(--card-pad); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card);
  margin-bottom:var(--sp-6);
}
.own-count .big{ font:500 var(--fs-h1)/var(--lh-none) var(--font-display); letter-spacing:var(--ls-heading) }
.own-count .lb{
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted); margin-top:8px;
}
.own-count .ch{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap }


/* The chart keeps a floor width and scrolls inside its own box on a phone.
   Letting it shrink to the viewport looked tidier and made every label about
   five pixels tall — a chart nobody can read is worse than a table. The page
   itself still never scrolls sideways; only this container does. */
.own-read{ min-height:19px; margin:-12px 0 20px;
  font:500 var(--fs-small)/var(--lh-small) var(--font-sans); color:var(--text-secondary) }
.own-read b{ color:var(--text-primary) }

.own-more{ margin:16px 0 28px }
.own-more > summary{
  cursor:pointer; font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted); padding:8px 0;
}
.own-more > summary:hover{ color:var(--highlight-text) }
.own-tablewrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface) }
.own-table{ width:100%; border-collapse:collapse; min-width:560px }
.own-table caption{ caption-side:bottom; text-align:left; color:var(--text-muted); font-size:var(--fs-small); padding:var(--sp-3) var(--sp-4) }
.own-table th,.own-table td{ padding:0 var(--sp-4); text-align:right; white-space:nowrap }
.own-table tbody tr:last-child > *{ border-bottom:0 }
.own-table tbody th{
  height:var(--row-h); background:none; text-transform:none; letter-spacing:normal;
  font:500 var(--fs-body)/var(--lh-h3) var(--font-sans); color:var(--text-primary);
}
.own-table tbody tr:hover > th{ background:var(--surface-raised) }
.own-table th[scope="row"],.own-table thead th:first-child,
.own-table :is(th,td):nth-last-child(-n+2){ text-align:left }
.own-table td a{ color:var(--highlight-text) }
.own-table em{ color:var(--text-muted); font-size:var(--fs-label) }

.own-namecols{ display:grid; grid-template-columns:1fr 1fr; gap:28px }
@media (max-width:720px){ .own-namecols{ grid-template-columns:1fr; gap:20px } }
.own-h3{
  margin:0 0 12px; font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted);
}
.own-names{ list-style:none; margin:0; padding:0; display:grid; gap:2px }
.own-names{ border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); overflow:hidden }
.own-names li{
  display:grid; grid-template-columns:minmax(0,1fr) 62px 96px;
  gap:4px 12px; align-items:baseline; padding:var(--sp-3) var(--sp-4);
  border-top:1px solid var(--border); font-size:var(--fs-small);
}
.own-names li:first-child{ border-top:0 }
.own-names .nm{ overflow-wrap:anywhere; color:var(--text-primary) }
.own-names .kd{
  grid-column:1; font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  letter-spacing:normal; color:var(--text-muted);
}
.own-names .vv{ grid-row:1; grid-column:2; font:500 var(--fs-small)/var(--lh-none) var(--font-sans); text-align:right }
.own-names em{
  grid-row:1; grid-column:3; font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  font-style:normal; text-align:right;
}
.own-names em.flat,.own-names em.new{ color:var(--text-muted) }

.own-empty{
  padding:var(--sp-5) var(--card-pad); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card);
  color:var(--text-muted); font-size:var(--fs-body); line-height:var(--lh-body);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 16px;
}
.own-retry{
  border:1px solid var(--border-strong); background:none; color:var(--text-primary); cursor:pointer;
  padding:8px 16px; min-height:36px; border-radius:var(--r-pill); font:500 var(--fs-small)/var(--lh-none) var(--font-sans);
  transition:background 180ms var(--ease), color 180ms var(--ease);
}
.own-retry:hover{ background:var(--surface-raised) }
.own-retry:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.own-notes{
  margin-top:var(--sp-6); padding:0 var(--sp-4); border-left:1px solid var(--border-strong);
  color:var(--text-muted); font-size:var(--fs-small); line-height:var(--lh-body);
}
.own-notes p{ margin:0 0 8px } .own-notes p:last-child{ margin:0 }

@media (prefers-reduced-motion:reduce){
  .op-spark .ln,.own-bar .seg{ transition:none }
}

/* ── Fundamentals ─────────────────────────────────────────────────────────
   The same furniture as Ownership — .own-empty and .own-notes are reused
   deliberately so the two panes read as one product.
   What is new here is a wide table, and everything below is about making a
   wide table survive a phone.

   The shape of the problem: sixteen rows against six quarter columns plus a
   change column. On a laptop that fits; at 390px it does not, and the two
   columns a reader actually came for — the latest quarter and how it moved —
   are the ones that would scroll off first. So the line-item column and the
   latest-quarter column are sticky, the older quarters scroll underneath
   them, and the change column sits immediately after the latest so the pair
   the reader compares is never split by a scroll. */

/* The scroller, and an honest edge. A wide table that simply stops at the
   viewport looks like a narrower table, so the right edge is faded — over the
   table, not behind it, because every cell paints an opaque background of its
   own and a gradient on the scroller would be hidden by them. */
.fu-block{ position:relative; margin-bottom:var(--sp-6) }
.fu-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch;
  border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface) }
/* The one gradient on the page, and it is a signal, not a finish: it says
   the table carries on to the right. */
.fu-block::after{
  content:''; position:absolute; top:1px; right:1px; bottom:1px; width:24px;
  pointer-events:none; border-radius:0 var(--r-card) var(--r-card) 0;
  background:linear-gradient(to left, var(--surface), transparent);
}
/* Not on a wide screen, where the whole table fits and the fade would only
   dim the last quarter. */
@media (min-width:1100px){ .fu-block::after{ display:none } }

/* The note above each table. Outside the scroller deliberately: inside it, it
   inherits the table's width and is clipped at the viewport edge on a phone. */
.fu-cap{
  margin:0 0 var(--sp-3); color:var(--text-muted); font-size:var(--fs-small); line-height:var(--lh-small);
  max-width:74ch;
}
.fu-vh{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}
/* The shared table (components.css) gives the label-style header on the
   raised surface, the 48px row and the hairline between rows. A statement
   adds: figures on the right, tighter side padding because there are ten
   columns of them, and opaque cells, because two of the columns are sticky
   and the others scroll underneath. */
.fu-table{
  width:100%; border-collapse:separate; border-spacing:0; min-width:640px;
}
.fu-table th,.fu-table td{
  padding:0 var(--sp-3); text-align:right; white-space:nowrap; background:var(--surface);
}
.fu-table thead th{ position:sticky; top:0; z-index:2; background:var(--surface-raised) }
.fu-table tbody tr:last-child > *{ border-bottom:0 }
.fu-table tbody tr:hover > *{ background:var(--surface-raised) }

/* The two sticky columns. Their widths are fixed rather than content-sized
   because the second one is offset by the first: `left` has to be a number,
   and a number that disagrees with the real width overlaps the columns. Their
   z-order has to beat the scrolling cells but lose to the header corner, or a
   header cell slides under a body cell. */
.fu-table .fu-line{
  position:sticky; left:0; z-index:1; text-align:left; white-space:normal;
  width:186px; min-width:186px; max-width:186px; padding-left:var(--sp-4);
}
/* The row's name: ordinary type, not the column header's small capitals.
   It may run to two lines, so it alone keeps a little padding above and
   below; the row is still 48px when it does not. */
.fu-table tbody .fu-line, .dv-table tbody th{
  height:36px; padding-top:8px; padding-bottom:8px; text-transform:none; letter-spacing:normal;
  font:400 var(--fs-body)/var(--lh-h3) var(--font-sans); color:var(--text-secondary);
}
.fu-table thead .fu-line{ z-index:3 }
/* The latest period: no rule down its side and no fill, only stronger ink. */
.fu-table .fu-now{ position:sticky; left:186px; z-index:1 }
.fu-table tbody .fu-now{ color:var(--text-primary); font-weight:600 }
.fu-table thead .fu-now{ z-index:3; color:var(--text-primary) }

/* Revenue, EBITDA and profit after tax. A reader scanning sixteen lines for
   the three that carry the story should not have to know which three. */
.fu-table tbody tr.key th,.fu-table tbody tr.key td{
  font-weight:600; color:var(--text-primary);
}

/* The change column. `.up` / `.dn` are the page's tone classes, so a
   percentage here is the same green and the same red as everywhere else, and
   carries the same arrow. The word form ("to profit", "loss narrower") is
   set as a label so it reads as one rather than as a mistyped number. */
.fu-table .fu-ch{ font-weight:500 }
.fu-table td.fu-ch.up{ color:var(--gain) } .fu-table td.fu-ch.dn{ color:var(--loss) }
.fu-table .fu-ch.none{ color:var(--text-muted) }
.fu-table .fu-ch.word{
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; cursor:help;
}

/* A table's own heading: the same face as the section's, a size down, so a
   pane of four tables reads as four parts of it. */
.fu-h3{
  margin:var(--sp-8) 0 var(--sp-3); font-family:var(--font-sans); font-weight:600;
  font-size:var(--fs-h3); line-height:var(--lh-h3); letter-spacing:normal; color:var(--text-primary);
}
#funda-peers > .fu-h3:first-child{ margin-top:0 }

/* Ratios. The formula is printed under its name rather than hidden in a
   tooltip: "OPM" means nothing until you know it is EBITDA over revenue, and
   a reader who has to hover to find that out will not hover. */
.fu-table .fu-line em{
  display:block; margin-top:2px; font:400 var(--fs-label)/var(--lh-h3) var(--font-sans);
  font-style:normal; letter-spacing:normal; text-transform:none; color:var(--text-muted); white-space:normal;
}
.fu-table .fu-sp{ width:104px; min-width:104px }
.fu-spark{
  display:block; width:96px; height:22px; overflow:visible;
}
.fu-spark path{
  fill:none; stroke:var(--chart-1); stroke-width:1.5;
  stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke;
}

/* Below 560px the sticky latest column costs more than it earns — two frozen
   columns leave barely a column of scrollable width. The line item stays
   pinned; the quarter scrolls with the rest.

   The tightening is not cosmetic. At 320px it is what puts the line item, the
   latest quarter and the year-on-year change on screen together, and those
   three are the whole reason a reader opened the pane. */
@media (max-width:560px){
  .fu-table{ min-width:520px }
  .fu-table th,.fu-table td{ padding-left:8px; padding-right:8px; font-size:var(--fs-small) }
  .fu-table thead th, .fu-table .fu-ch.word{ font-size:var(--fs-label) }
  .fu-table .fu-line{ width:124px; min-width:124px; max-width:124px; padding-left:var(--sp-3) }
  .fu-table tbody .fu-line, .dv-table tbody th{ font-size:var(--fs-small) }
  .fu-table .fu-now{ position:static }
  .fu-table .fu-sp{ width:88px; min-width:88px }
  .fu-spark{ width:80px }
  /* Four columns fit a phone outright: the median and the rank belong on
     screen beside the company's own figure, not behind a scroll. */
  .fu-table.fu-peers{ min-width:0; width:100% }
  .fu-table.fu-peers .fu-line{ width:auto; min-width:0; max-width:none }
  /* Narrower, because at this width the fade is sitting on the change column
     it exists to advertise. */
  .fu-block::after{ width:15px }
}

/* ── Delivery ───────────────────────────────────────────────────────────────
   The delivered share of each session's volume, per company. Borrows the
   fundamentals table's shell (.fu-block / .fu-wrap / .fu-table) because it is
   the same kind of object — a filed figure per period — and a second table
   style would be two things to keep in step for no reader's benefit.        */

.dv-ranges{ margin-bottom:16px }

.dv-tiles{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(168px,1fr));
  gap:12px; margin:0 0 20px;
}
.dv-tile{
  padding:16px 16px; border-radius:var(--r-card);
  border:1px solid var(--border); background:var(--surface);
}
.dv-tile .k{
  font:600 var(--fs-label)/var(--lh-label) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted);
}
.dv-tile .v{ font:500 var(--fs-h2)/var(--lh-display) var(--font-display); margin-top:8px; letter-spacing:var(--ls-heading) }
.dv-tile .n{ margin-top:8px; font-size:var(--fs-label); line-height:var(--lh-small); color:var(--text-muted) }
.dv-tile .n .up{ color:var(--gain); font-weight:600 }
.dv-tile .n .dn{ color:var(--loss); font-weight:600 }

/* Five short columns in a table sized for sixteen long ones. Left alone, the
   browser hands the slack to the first and last, which drags the bar out from
   under the number it belongs to and leaves a hand-span of paper between the
   date and the close. Capping the table and fixing the two end columns keeps
   the row readable as one line. */
.dv-table{ min-width:560px; max-width:820px }

/* The date sticks to the left edge, for the same reason the fundamentals line
   item does: a row scrolled sideways on a phone is unreadable without its
   label. thead and tbody both put a th first, so one selector covers both. */
.dv-table th:first-child{
  position:sticky; left:0; z-index:1; text-align:left;
  width:116px; min-width:116px; padding-left:var(--sp-4);
}
.dv-table thead th:first-child{ z-index:3 }
.dv-table th.dv-d{ white-space:nowrap }
.dv-table .dv-pc{ width:138px; min-width:138px }

/* The share column carries its own bar. The number stays a real number in
   normal flow — the bar is drawn underneath it and is aria-hidden, so a
   screen reader gets the figure once and a sighted reader gets the shape. */
.dv-pc{ position:relative; min-width:104px; padding-bottom:12px !important }
.dv-pc .tnum{ position:relative; z-index:1 }
.dv-bar{
  position:absolute; left:0; bottom:4px; height:4px; border-radius:var(--r-pill);
  background:color-mix(in srgb,var(--text-muted) 45%,transparent);
}
.dv-bar.hi{ background:var(--chart-1) }

.dv-filling{
  margin:0 0 16px; padding:12px 16px; border-radius:var(--r-card);
  border:1px solid var(--border);
  background:var(--surface-raised);
  font-size:var(--fs-small); line-height:var(--lh-body); color:var(--text-secondary); max-width:74ch;
}

.dv-note{
  margin:16px 0 0; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-muted);
  max-width:74ch;
}

@media (max-width:540px){
  .dv-tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
  .dv-tile{ padding:var(--sp-3) }
}

/* Delivery pulse: data-led artwork, touch exploration and readable sessions. */
.dv-experience { --dv-accent:var(--chart-1); display:grid; gap:var(--sp-6); min-width:0; }
.dv-experience * { box-sizing:border-box; }
.dv-hero { position:relative; display:grid; grid-template-columns:1fr 180px; gap:var(--sp-6); align-items:center; overflow:hidden; padding:var(--card-pad); border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); }
.dv-eyebrow { font:500 var(--fs-label)/var(--lh-label) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted); }
.dv-hero h3 { font:500 var(--fs-h2)/var(--lh-h2) var(--font-display); margin:var(--sp-2) 0 var(--sp-3); letter-spacing:var(--ls-heading); color:var(--text-primary); }
.dv-hero p { max-width:48ch; font-size:var(--fs-small); line-height:var(--lh-body); color:var(--text-secondary); margin:0 0 20px; }
.dv-date { display:inline-block; font:500 var(--fs-label)/var(--lh-none) var(--font-sans); padding:8px 12px; border:1px solid var(--border); border-radius:var(--r-pill); color:var(--text-secondary); }
.dv-ring { width:168px; aspect-ratio:1; position:relative; justify-self:center; }
.dv-ring svg { width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.dv-ring circle { fill:none; stroke-width:7; }
.dv-ring-track { stroke:var(--border); }
.dv-ring-fill { stroke:var(--dv-accent); stroke-linecap:butt; animation:dv-ring-in 1.25s cubic-bezier(.16,1,.3,1) both; }
.dv-ring > div { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; }
.dv-ring strong { font:500 var(--fs-h1)/var(--lh-none) var(--font-display); letter-spacing:var(--ls-heading); font-variant-numeric:tabular-nums; color:var(--text-primary); }
.dv-ring span { font:500 var(--fs-label) var(--font-sans); color:var(--text-muted); text-transform:uppercase; letter-spacing:var(--ls-label); }
@keyframes dv-ring-in { from { stroke-dasharray:0 100; opacity:.3; } to { opacity:1; } }
.dv-experience .dv-tiles { grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--sp-3); margin:0; }
.dv-experience .dv-tile { background:var(--surface); border-radius:var(--r-card); min-width:0; }
.dv-experience .dv-tile .v { font-family:var(--font-display); font-size:var(--fs-h2); font-weight:500; letter-spacing:var(--ls-heading); }
.dv-trend { min-width:0; border:1px solid var(--border); padding:var(--card-pad); border-radius:var(--r-card); background:var(--surface); }
.dv-section-head { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.dv-section-head h3 { font:500 var(--fs-h2)/var(--lh-h2) var(--font-display); margin:var(--sp-1) 0 0; color:var(--text-primary); letter-spacing:var(--ls-heading); }
.dv-section-head > span { font:400 var(--fs-label)/var(--lh-small) var(--font-sans); color:var(--text-muted); }
.dv-legend { display:flex; gap:20px; flex-wrap:wrap; font-size:var(--fs-label); color:var(--text-muted); }
.dv-legend span { display:flex; align-items:center; gap:8px; }
.dv-legend i { width:16px; border-top:2px solid var(--dv-accent); }
.dv-legend .dv-dashed { border-top:1px dashed var(--text-muted); }
/* The drawing is 700 units wide and is stretched to its card, so its axis
   text and its line would grow and shrink with it. Each label is scaled back
   toward 11px from its own anchor, and the line toward 1.5px, in steps as
   the card widens. (The line draws itself in by its dash, so it cannot use
   a non-scaling stroke.) */
.dv-chart { margin:20px -8px 12px; container-type:inline-size; }
.dv-chart svg { width:100%; height:auto; display:block; overflow:visible; }
.dv-chart text { font:400 var(--fs-label) var(--font-sans); fill:var(--text-muted); transform-box:fill-box; transform-origin:0 50%; transform:scale(1.9); }
.dv-chart text[text-anchor="end"] { transform-origin:100% 50%; }
@container (min-width:430px) { .dv-chart text { transform:scale(1.4); } .dv-trend-line { stroke-width:2.2; } }
@container (min-width:580px) { .dv-chart text { transform:scale(1.1); } .dv-trend-line { stroke-width:1.7; } }
@container (min-width:760px) { .dv-chart text { transform:scale(.82); } .dv-trend-line { stroke-width:1.3; } }
@container (min-width:960px) { .dv-chart text { transform:scale(.66); } .dv-trend-line { stroke-width:1; } }
.dv-gridline { stroke:var(--grid); stroke-width:1; vector-effect:non-scaling-stroke; }
.dv-average { stroke:var(--text-muted); stroke-width:1; stroke-dasharray:5 5; vector-effect:non-scaling-stroke; }
.dv-trend-line { fill:none; stroke:var(--dv-accent); stroke-width:3; stroke-linejoin:round; stroke-linecap:round; stroke-dasharray:1; animation:dv-chart-in 1.25s ease-out both; }
.dv-chart-dots { fill:var(--dv-accent); }
@keyframes dv-chart-in { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
.dv-scrub-label { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:var(--fs-small); color:var(--text-primary); }
.dv-scrub-label span { font-size:var(--fs-label); color:var(--text-muted); }
.dv-slider { display:block; width:100%; height:36px; margin:8px 0 12px; accent-color:var(--dv-accent); cursor:ew-resize; }
.dv-slider:focus-visible { outline:2px solid var(--dv-accent); outline-offset:4px; border-radius:var(--r-control); }
.dv-selected .dv-session { border-color:var(--border-strong); background:var(--surface-raised); animation:none; }
.dv-session-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--sp-3); }
.dv-session { padding:var(--sp-4); border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); min-width:0; animation:dv-arrive .45s ease-out both; animation-delay:var(--dv-delay,0ms); }
@keyframes dv-arrive { from { opacity:.4; transform:translateY(8px); } to { opacity:1; transform:none; } }
.dv-session-head { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--text-primary); }
.dv-session-head time { font-size:var(--fs-small); color:var(--text-secondary); }
.dv-session-head strong { font:500 var(--fs-h2) var(--font-display); letter-spacing:var(--ls-heading); font-variant-numeric:tabular-nums; }
.dv-meter { margin-top:12px; height:4px; border-radius:var(--r-xs); background:var(--border); overflow:hidden; }
.dv-meter i { display:block; height:100%; background:var(--dv-accent); border-radius:var(--r-xs); transform-origin:left; animation:dv-grow .8s cubic-bezier(.16,1,.3,1) both; }
@keyframes dv-grow { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.dv-session-compare { font:400 var(--fs-label)/var(--lh-small) var(--font-sans); color:var(--text-muted); margin:8px 0 16px; }
.dv-session dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; }
.dv-session dt { color:var(--text-muted); font-size:var(--fs-label); margin:0 0 4px; }
.dv-session dd { font:500 var(--fs-small)/var(--lh-small) var(--font-sans); color:var(--text-primary); margin:0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.dv-more summary,.dv-data summary { min-height:48px; cursor:pointer; padding:16px 0; color:var(--text-primary); font-size:var(--fs-small); }
.dv-more summary:focus-visible,.dv-data summary:focus-visible { outline:2px solid var(--dv-accent); outline-offset:3px; }
.dv-data { min-width:0; border-top:1px solid var(--border); }
.dv-data summary span { float:right; color:var(--text-muted); }
.dv-data .dv-table { max-width:none; width:100%; }
.dv-experience > .dv-note { margin:0; max-width:90ch; }
@media(max-width:900px) { .dv-session-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) {
  .dv-experience { gap:var(--sp-5); }
  .dv-hero { grid-template-columns:1fr; gap:var(--sp-4); }
  .dv-hero p { margin-bottom:12px; }
  .dv-ring { justify-self:start; }
  .dv-chart { margin-left:4px; margin-right:0; }
  .dv-experience .dv-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dv-legend { gap:8px; }
  .dv-session-grid { grid-template-columns:1fr; }
  .dv-selected .dv-meter i { animation:none; }
}
@media(prefers-reduced-motion:reduce) {
  .dv-experience *, .dv-experience *::before, .dv-experience *::after { animation:none !important; transition:none !important; }
}

/* Price journey: movement reveals the series; the data itself never moves. */
#pane-chart .chartbox{padding:var(--card-pad);border:1px solid var(--border);border-radius:var(--r-card);background:var(--surface);box-shadow:none}
.sc-eyebrow{display:flex;justify-content:space-between;gap:12px;font:500 var(--fs-label)/var(--lh-label) var(--font-sans);letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--text-muted);margin-bottom:var(--sp-2)}
#pane-chart .sc-read{display:block;margin-bottom:var(--sp-6)}
#pane-chart .sc-price{font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-heading); font-family:var(--font-display); font-weight:400}
#pane-chart .sc-sub{margin-top:var(--sp-2);gap:12px}
#pane-chart .sc-chg{font-weight:500}
#pane-chart .sc-plot{margin-right:68px;margin-top:8px}
#pane-chart .sc-plot svg{height:300px}
#pane-chart .spark-line{vector-effect:non-scaling-stroke}
.sc-guide{position:absolute;left:0;right:0;border-top:1px dashed var(--border);pointer-events:none;z-index:0}
.sc-guide span{position:absolute;left:calc(100% + 9px);top:-7px;font:400 var(--fs-label)/var(--lh-label) var(--font-sans);white-space:nowrap;color:var(--text-muted)}
.sc-latest{position:absolute;right:0;width:9px;height:9px;border-radius:50%;background:currentColor;transform:translate(50%,-50%);pointer-events:none;animation:scAreaIn 1.7s ease both}
.sc-latest i{position:absolute;inset:-6px;border:1px solid currentColor;border-radius:50%;animation:scBeacon 3s ease-out infinite}
.sc-plot.hovering .sc-latest{opacity:.25}
.sc-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;color:var(--text-muted);font-size:var(--fs-small)}
.sc-reset{border:1px solid var(--border-strong);border-radius:var(--r-control);background:none;padding:0 var(--sp-4);color:var(--text-primary);cursor:pointer;height:var(--control-h);font:500 var(--fs-small)/var(--lh-none) var(--font-sans);white-space:nowrap;flex:0 0 auto}
.sc-reset:hover,.sc-reset:focus-visible{background:var(--surface-raised)}
.sc-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3);border-top:1px solid var(--border);padding-top:var(--sp-5)}
.sc-insights>div{padding:var(--sp-4);border-radius:var(--r-control);background:var(--surface-raised);animation:scCardIn .6s ease both}
.sc-insights>div:nth-child(2){animation-delay:.1s}.sc-insights>div:nth-child(3){animation-delay:.2s}
.sc-insights span,.sc-insights small{display:block;font-size:var(--fs-label);color:var(--text-muted);line-height:var(--lh-small)}
.sc-insights strong{display:block;margin:8px 0;font:500 var(--fs-h2)/var(--lh-h2) var(--font-display);color:var(--text-primary); letter-spacing:var(--ls-heading)}
.sc-position{margin-top:24px}.sc-position>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:var(--fs-small);color:var(--text-muted)}
.sc-position b{font-weight:500;color:var(--text-secondary);text-align:right}
.sc-rail{height:4px;border-radius:var(--r-pill);background:var(--border);margin:16px 8px}
.sc-rail i{position:relative;display:block;left:var(--position);top:-5px;width:14px;height:14px;box-sizing:border-box;border:3px solid var(--surface);border-radius:50%;background:var(--highlight);box-shadow:0 0 0 1px var(--border-strong);transform:translateX(-50%);animation:scRangeIn 1.4s ease both}
.sc-source{font-size:var(--fs-label);line-height:var(--lh-small);color:var(--text-muted);margin:16px 0 0}
@keyframes scAreaIn{from{opacity:0}to{opacity:1}}
@keyframes scCardIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes scBeacon{0%{transform:scale(.5);opacity:.65}80%,100%{transform:scale(1.7);opacity:0}}
@keyframes scRangeIn{from{left:0}to{left:var(--position)}}
@media(max-width:600px){
 #pane-chart .sc-plot{margin-right:60px}
 #pane-chart .sc-plot svg{height:260px}
 .sc-insights{gap:8px}.sc-insights>div{padding:12px 8px}
 .sc-insights strong{font:600 var(--fs-body)/var(--lh-h3) var(--font-sans);letter-spacing:normal}
}
@media(prefers-reduced-motion:reduce){
 #pane-chart *,#pane-chart *::before,#pane-chart *::after{animation:none!important;transition:none!important}
 #pane-chart .spark-draw{stroke-dashoffset:0}
}

/* The way into the Strategy lab from the Chart pane. */
.stk-lab-link{ display:flex; flex-direction:column; gap:3px; margin:var(--sp-12) 0 0; padding:var(--card-pad); border:1px solid var(--border);
  border-radius:var(--r-card); background:var(--surface); color:var(--text-primary); text-decoration:none }
.stk-lab-link b{ font-weight:600; font-size:var(--fs-h3) }
.stk-lab-link span{ color:var(--highlight-text); font-size:var(--fs-body) }
.stk-lab-link:hover{ border-color:var(--border-strong) }
.stk-lab-link:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }

/* ── Notes ───────────────────────────────────────────────────────────────
   The method notes under a section, folded. They used to stand open at the
   foot of every pane, three paragraphs at a time; true, and nobody's first
   reason for being there. */
details.own-notes{ margin-top:20px; padding:0; border-left:0 }
details.own-notes > summary{
  cursor:pointer; padding:8px 0; font:500 var(--fs-label)/var(--lh-none) var(--font-sans); letter-spacing:var(--ls-label);
  text-transform:uppercase; color:var(--text-muted);
}
details.own-notes > summary:hover{ color:var(--highlight-text) }
details.own-notes[open] > summary{ margin-bottom:8px }
details.own-notes p{ padding-left:16px; border-left:1px solid var(--border-strong) }

/* ── Financials, drawn ───────────────────────────────────────────────────
   Three views built from the same parts: a row of figures that are also the
   chart's controls, the chart beside a second picture, and the statement
   behind a toggle. Almost no words: a label, a figure, a direction.

   THE COLOURS ARE THREE, AND EACH MEANS ONE THING. They are the theme's
   chart series: navy (steel blue in the dark) is the size of the business,
   sage is what is kept, cognac is what is owed or spent; costs are one slate
   stepped toward the card. Green and red are kept for a rise or a fall,
   which is a figure with an arrow.

   THE HEADLINE FIGURE OF A CARD IS IN THE DISPLAY FACE, like every other
   metric on the site; everything smaller is in the interface sans. */
#pane-funda{
  --fz-a:var(--chart-2); --fz-b:var(--chart-1); --fz-c:var(--chart-3);
  --fz-n1:var(--chart-5); --fz-n2:color-mix(in srgb,var(--chart-5) 82%,var(--surface));
  --fz-n3:color-mix(in srgb,var(--chart-5) 58%,var(--surface)); --fz-n4:color-mix(in srgb,var(--chart-5) 40%,var(--surface));
  --fz-n5:color-mix(in srgb,var(--chart-5) 26%,var(--surface)); --fz-n6:color-mix(in srgb,var(--chart-5) 15%,var(--surface));
  --fz-ribbon:var(--border); --fz-grid:var(--grid); --fz-axis:var(--border-strong);
  --fz-good:var(--gain); --fz-good-bg:var(--gain-bg);
  --fz-bad:var(--loss); --fz-bad-bg:var(--loss-bg); --fz-bad-solid:var(--loss);
  --fz-sans:var(--font-sans);
}
.h-a, .s-a{ --c:var(--fz-a) } .h-b, .s-b{ --c:var(--fz-b) } .h-c, .s-c{ --c:var(--fz-c) }
/* An earlier period: the same hue, stepped toward the card. */
.h-a, .h-b, .h-c{ --c-soft:color-mix(in srgb,var(--c) 46%,var(--surface)) }

/* The few facts about a reading, as chips: the basis, the unit, the filing. */
.fn-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:-8px 0 16px }
.sec-h .fn-meta{ margin:0 }
.fn-meta:empty{ display:none }
.fn-meta span, .fn-meta a{
  padding:4px 12px; border:1px solid var(--border); border-radius:var(--r-pill); white-space:nowrap;
  font:500 var(--fs-label)/var(--lh-h1) var(--font-sans); letter-spacing:normal;
  color:var(--text-secondary); text-decoration:none;
}
.fn-meta a{ color:var(--highlight-text); border-color:var(--border-strong);
  transition:background 180ms var(--ease) }
.fn-meta a:hover{ background:var(--highlight-subtle) }
.fn-meta a:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.fn-view[hidden]{ display:none }

/* A change, with its direction: an arrow and a figure on a wash, and what it
   is measured against beside it. */
.mv{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap }
.mv b{ padding:4px 8px; border-radius:var(--r-pill); font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  color:var(--text-secondary); background:var(--surface-raised) }
.mv small{ font:500 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted) }
.mv.up b{ color:var(--fz-good,var(--gain)); background:var(--fz-good-bg,transparent) }
.mv.dn b{ color:var(--fz-bad,var(--loss)); background:var(--fz-bad-bg,transparent) }
/* Less is better: a rise is the bad colour and a fall the good one. */
.mv.up.inv b{ color:var(--fz-bad,var(--loss)); background:var(--fz-bad-bg,transparent) }
.mv.dn.inv b{ color:var(--fz-good,var(--gain)); background:var(--fz-good-bg,transparent) }
/* Neither way is better: the direction, in no colour. */
.mv.plain b{ color:var(--text-secondary); background:var(--surface-raised) }
.mv.none{ visibility:hidden }

/* The figures. Each is a button: the one pressed is the one charted. */
/* A whole number of rows at every width: four across or two by two, six
   across or three by two, never three and an orphan. */
.kp-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(176px,1fr)); gap:var(--sp-4); margin-bottom:var(--sp-4) }
@media (max-width:1240px){ .kp-row.n5, .kp-row.n6{ grid-template-columns:repeat(3,minmax(0,1fr)) } }
@media (max-width:900px){ .kp-row.n4{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
.kp{
  display:block; text-align:left; min-width:0; cursor:pointer;
  padding:var(--sp-4) var(--sp-4) var(--sp-3); border:1px solid var(--border); border-radius:var(--r-card);
  background:var(--surface); color:var(--text-primary); font:inherit;
  transition:border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.kp:hover{ border-color:var(--border-strong) }
.kp:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
/* The figure being charted. The cards are the chart's tabs, so the chosen
   one carries the tab's 2px cognac line. */
.kp.on{ border-color:var(--border-strong); box-shadow:inset 0 -2px 0 var(--highlight) }
.kp-l{ display:flex; align-items:center; gap:8px; font:500 var(--fs-small)/var(--lh-h1) var(--font-sans); color:var(--text-secondary) }
.kp-l i{ flex:0 0 auto; width:8px; height:8px; border-radius:50%; background:var(--c) }
.kp-v{ display:block; margin-top:var(--sp-2); font:500 var(--fs-h2)/var(--lh-h2) var(--font-display); letter-spacing:var(--ls-heading);
  color:var(--text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.kp-v small{ font:400 var(--fs-small)/var(--lh-none) var(--font-sans); letter-spacing:0; color:var(--text-muted) }
.kp-c{ display:block; margin-top:8px; min-height:20px }
.kp-s{ position:relative; display:block; height:40px; margin:12px 8px 0 0 }
.kp-s svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible }
.kp-ln{ fill:none; stroke:var(--c); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
  vector-effect:non-scaling-stroke }
.kp-a{ fill:var(--c); opacity:.15 }
.kp-z{ fill:none; stroke:var(--fz-axis); stroke-width:1; vector-effect:non-scaling-stroke }
.kp-s i{ position:absolute; width:7px; height:7px; margin:-3.5px 0 0 -3.5px; border-radius:50%;
  background:var(--c); box-shadow:0 0 0 2px var(--surface) }
@media (max-width:560px){
  .kp-row{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-2) }
  .kp{ padding:var(--sp-3) }
  .kp-s{ height:32px }
}

/* Two pictures side by side: the chart, and the second question. */
.fn-two{ display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:var(--sp-4); margin-bottom:var(--sp-4) }
.fn-two > .card{ margin-bottom:0 }
@media (max-width:980px){ .fn-two{ grid-template-columns:minmax(0,1fr) } }
/* Beside a taller chart, the second card spreads its rows down its height. */
.fn-two > .sp, .fn-two > .br{ display:flex; flex-direction:column }
.fn-two .sp-rows{ flex:1 1 auto; display:flex; flex-direction:column; justify-content:space-evenly; padding:8px 0 }
.fn-two .sp-rows > *{ margin-top:0 }

.fc, .lc, .mf, .sp, .br{ margin-bottom:var(--sp-4) }
.fc-h{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; min-height:28px }
.fc-h h3{ margin:0; font:600 var(--fs-h3)/var(--lh-h3) var(--font-sans); letter-spacing:normal; color:var(--text-primary) }
.fc-read{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; min-height:22px }
.fc-read > b{ font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-muted); white-space:nowrap }
.fc-v{ font:600 var(--fs-body)/var(--lh-none) var(--font-sans); color:var(--text-primary); white-space:nowrap }

/* The chart: a scale of round figures, hairlines, slim bars from zero. */
.fc-plot{ position:relative; height:232px; margin:32px 4px 32px 48px }
.fc-grid{ position:absolute; inset:0; pointer-events:none }
.fc-grid span{ position:absolute; left:0; right:0; border-top:1px solid var(--fz-grid) }
.fc-grid span.zero{ border-top-color:var(--fz-axis) }
.fc-grid b{ position:absolute; right:100%; top:-6px; margin-right:12px;
  font:400 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted); white-space:nowrap }
.fc-cols{ position:absolute; inset:0; display:flex }
.fc-c, .lc-c{
  position:relative; flex:1 1 0; min-width:0; height:100%; padding:0; border:0; background:none;
  font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent;
}
span.fc-c{ cursor:default }
/* The period under the pointer: a wash behind its column. */
.fc-c::before{ content:''; position:absolute; inset:-8px 3px -26px; border-radius:var(--r-control);
  background:var(--wash); opacity:0; transition:opacity 140ms var(--ease) }
button.fc-c:hover::before, .fc-c.on:not(.now)::before{ opacity:1 }
.fc-c:focus-visible, .lc-c:focus-visible{ outline:2px solid var(--c,var(--focus-ring)); outline-offset:3px; border-radius:var(--r-xs) }
.fc-c i{
  position:absolute; left:0; right:0; margin:0 auto; width:min(26px,48%);
  top:calc(var(--zero) - var(--h)); height:var(--h); min-height:2px;
  border-radius:var(--r-xs) var(--r-xs) 0 0; background:var(--c-soft);
  transform-origin:50% 100%; animation:barUp 620ms var(--ease-out) both;
  animation-delay:calc(var(--i,0) * 40ms); transition:background 160ms var(--ease);
}
.fc-c.neg i{ top:var(--zero); border-radius:0 0 var(--r-xs) var(--r-xs); transform-origin:50% 0;
  background:color-mix(in srgb,var(--fz-bad-solid) 46%,var(--surface)) }
.fc-c.now i, button.fc-c:hover i, .fc-c.on i{ background:var(--c) }
.fc-c.now.neg i, button.fc-c.neg:hover i, .fc-c.neg.on i{ background:var(--fz-bad-solid) }
.fc-n{ position:absolute; left:-14px; right:-14px; top:calc(var(--zero) - var(--h) - 20px); text-align:center;
  font:600 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-primary); white-space:nowrap; pointer-events:none;
  opacity:0; transition:opacity 140ms var(--ease) }
.fc-c.neg .fc-n{ top:calc(var(--zero) + var(--h) + 8px) }
.fc-c.now .fc-n, .fc-c.on .fc-n, button.fc-c:hover .fc-n{ opacity:1 }
.fc-x{ position:absolute; left:-14px; right:-14px; top:calc(100% + 10px); text-align:center;
  font:400 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--text-muted); white-space:nowrap; pointer-events:none }
.fc-c.now .fc-x, .fc-c.on .fc-x, .lc-c.on .fc-x{ color:var(--text-primary) }
@keyframes barUp{ from{ transform:scaleY(0) } to{ transform:scaleY(1) } }
@media (max-width:640px){
  .fc-plot{ height:196px; margin-left:40px }
  .fc-c i{ width:min(18px,52%) }
  .fc-n{ font-size:var(--fs-label) }
  .fc-x{ font-size:var(--fs-label) }
  .fc-x.alt{ display:none }
  .fc-c.on .fc-x.alt{ display:block }
}

/* The margins: two lines on one scale, named in the header. */
.lc-svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible;
  animation:drawIn 900ms var(--ease-out) both }
.lc-l{ fill:none; stroke:var(--c); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
  vector-effect:non-scaling-stroke }
.lc-a{ fill:var(--c); opacity:.15 }
.lc-c::before{ content:''; position:absolute; left:50%; top:0; bottom:0; border-left:1px solid var(--fz-axis);
  opacity:0; transition:opacity 120ms var(--ease) }
.lc-c:hover::before, .lc-c:focus-visible::before{ opacity:1 }
.lc-c i{ position:absolute; left:50%; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%;
  background:var(--c); box-shadow:0 0 0 2px var(--surface);
  opacity:0; transform:scale(.5); transition:opacity 140ms var(--ease), transform 180ms var(--ease-out) }
.lc-c.on i, .lc-c:hover i{ opacity:1; transform:none }
.lc-k{ display:inline-flex; align-items:center; gap:8px; font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary); white-space:nowrap }
.lc-k i{ width:14px; height:2px; border-radius:var(--r-xs); background:var(--c) }
.lc-k strong{ font:600 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-primary) }
@keyframes drawIn{ from{ clip-path:inset(-10% 100% -10% 0) } to{ clip-path:inset(-10% 0 -10% 0) } }

/* Where the money went. The plot is stretched to the width between two
   gutters; the names and amounts sit in the gutters as text, so they stay the
   size they were written at. */
.mf-plot{ position:relative; margin:40px 232px 12px 124px }
.mf-plot svg{ display:block; width:100%; height:100%; overflow:visible; animation:drawIn 1000ms var(--ease-out) both }
.mf-r{ transition:opacity 160ms var(--ease) }
.f-cost{ fill:var(--fz-ribbon) }
.f-spent{ fill:url(#mf-spent) } .f-keep{ fill:url(#mf-kept) } .f-net{ fill:url(#mf-net) } .f-left{ fill:url(#mf-left) }
.g-a{ stop-color:color-mix(in srgb,var(--fz-a) 30%,var(--surface)) }
.g-a2{ stop-color:color-mix(in srgb,var(--fz-a) 22%,var(--surface)) }
.g-c{ stop-color:color-mix(in srgb,var(--fz-c) 40%,var(--surface)) }
.g-n{ stop-color:var(--fz-ribbon) }
.mf-plot:hover .mf-r{ opacity:.5 }
.mf-plot .mf-r:hover{ opacity:1 }
.n-rev, .n-op{ fill:var(--fz-a) } .n-oi{ fill:color-mix(in srgb,var(--fz-a) 46%,var(--surface)) }
.n-net{ fill:var(--fz-c) } .n-cost{ fill:var(--fz-n3) }
.mf-a, .mf-b, .mf-c li{ position:absolute; white-space:nowrap; pointer-events:none }
.mf-a span, .mf-b span, .mf-c span{ font:500 var(--fs-small)/var(--lh-h1) var(--font-sans); color:var(--text-secondary) }
.mf-a{ right:100%; margin-right:16px; transform:translateY(-50%); text-align:right }
.mf-a b{ display:block; margin-top:4px; font:600 var(--fs-h3)/var(--lh-display) var(--font-sans); letter-spacing:normal; color:var(--text-primary) }
.mf-b{ left:50%; transform:translate(-50%,calc(-100% - 6px)); display:flex; align-items:baseline; gap:8px;
  padding:3px 8px; border-radius:var(--r-pill); background:var(--surface) }
.mf-b.under{ transform:translate(-50%,6px) }
.mf-b b, .mf-c b{ font:600 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-primary) }
.mf-c{ list-style:none; margin:0; padding:0 }
.mf-c li{ left:100%; margin-left:12px; transform:translateY(-50%); display:flex; align-items:baseline; gap:8px }
.mf-c em{ font:400 var(--fs-label)/var(--lh-none) var(--font-sans); font-style:normal; color:var(--text-muted) }
.mf-c li.net span{ color:var(--text-primary); font-weight:600 }
/* Too narrow for three columns and two gutters: the single bar below says it. */
@media (max-width:900px){ .mf{ display:none } }
@media (min-width:901px){ .sp-narrow{ display:none } }

/* A split of 100, as one bar a period: income by where it went, assets by
   what funds them. Each part its own block; the names once, underneath. */
.sp-r{ display:grid; grid-template-columns:64px minmax(0,1fr); align-items:center; gap:12px; margin-top:16px }
.sp-q{ font:400 var(--fs-label)/var(--lh-h1) var(--font-sans); color:var(--text-muted); white-space:nowrap }
.sp-b{ display:flex; gap:2px; height:28px }
.sp-b i{ display:grid; place-items:center; min-width:3px; border-radius:var(--r-xs); background:var(--sp-c,var(--fz-n5));
  transform-origin:0 50%; animation:spIn 700ms var(--ease-out) both; animation-delay:calc(var(--i,0) * 45ms) }
.sp-b b{ font:600 var(--fs-label)/var(--lh-none) var(--font-sans); color:var(--sp-t,var(--surface)) }
@keyframes spIn{ from{ transform:scaleX(0); opacity:0 } to{ transform:none; opacity:1 } }
.sp-k{ list-style:none; margin:16px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 20px }
.sp-k li{ display:inline-flex; align-items:baseline; gap:8px; font:500 var(--fs-small)/var(--lh-h1) var(--font-sans); color:var(--text-secondary) }
.sp-k i{ width:10px; height:10px; border-radius:var(--r-xs); background:var(--sp-c,var(--fz-n5)); align-self:center }
.sp-k b{ font:600 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-primary) }
.sp-k em{ font:600 var(--fs-label)/var(--lh-none) var(--font-sans); font-style:normal; color:var(--text-secondary) }
.sp-k em.up{ color:var(--fz-good) } .sp-k em.dn{ color:var(--fz-bad) }
/* Costs are one slate, stepped toward the card in the order they are
   listed; what is kept is the sage. The figure printed on a block is the
   card's own colour on the dark steps and ordinary ink on the pale ones. */
.s-materials{ --sp-c:var(--fz-n1) } .s-employee_cost{ --sp-c:var(--fz-n2); --sp-t:var(--text-primary) }
.s-other_expenses{ --sp-c:var(--fz-n3); --sp-t:var(--text-primary) }
.s-depreciation{ --sp-c:var(--fz-n4); --sp-t:var(--text-primary) } .s-finance_cost{ --sp-c:var(--fz-n5); --sp-t:var(--text-primary) }
.s-tax{ --sp-c:var(--fz-n6); --sp-t:var(--text-primary) } .s-rest{ --sp-c:var(--fz-n6); --sp-t:var(--text-primary) }
.s-pat, .s-equity{ --sp-c:var(--fz-c); --sp-t:var(--text-primary) } .s-debt{ --sp-c:var(--fz-b) }
html[data-theme="dark"] :is(.s-employee_cost, .s-pat, .s-equity){ --sp-t:var(--surface) }
@media (max-width:560px){ .sp-r{ grid-template-columns:54px minmax(0,1fr); gap:8px } }

/* Cash left after investing: three thin bars on one scale. */
.br-r{ display:grid; grid-template-columns:132px minmax(0,1fr) 92px; align-items:center; gap:12px; margin-top:20px }
.br-l{ font:500 var(--fs-small)/var(--lh-h1) var(--font-sans); color:var(--text-secondary) }
.br-t{ position:relative; height:20px; border-radius:var(--r-xs); background:var(--surface-raised) }
.br-t i{ position:absolute; top:0; bottom:0; border-radius:var(--r-xs); background:var(--c);
  transform-origin:0 50%; animation:spIn 700ms var(--ease-out) both }
.br-r b{ font:600 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-primary); text-align:right; white-space:nowrap }
@media (max-width:560px){ .br-r{ grid-template-columns:108px minmax(0,1fr) 78px; gap:8px } }

/* The statement itself, every line of it, one tap away. */
.fn-more{ border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); overflow:hidden }
.fn-more > summary{
  list-style:none; cursor:pointer; padding:var(--sp-5) var(--card-pad); display:flex; align-items:center;
  justify-content:space-between; font:600 var(--fs-h3)/var(--lh-h2) var(--font-sans); color:var(--text-primary);
}
.fn-more > summary::-webkit-details-marker{ display:none }
.fn-more > summary::after{ content:'+'; color:var(--text-muted); font:500 var(--fs-h2)/var(--lh-none) var(--font-display) ; letter-spacing:var(--ls-heading)}
.fn-more[open] > summary::after{ content:'−' }
.fn-more > summary:hover{ background:var(--surface-raised) }
.fn-more > summary:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:-2px; border-radius:var(--r-card) }
/* Inside the card the tables run edge to edge: the card is their frame. */
.fn-more > .fu-h3{ margin:var(--sp-4) var(--card-pad) var(--sp-3) }
.fn-more > .fu-cap{ margin-left:var(--card-pad); margin-right:var(--card-pad) }
.fn-more > .fu-block{ margin:0 }
.fn-more > .fu-block > .fu-wrap{ border-width:1px 0; border-radius:0 }
.fn-more > .fu-block:last-child > .fu-wrap{ border-bottom:0 }
.fn-more > .fu-block::after{ right:0; border-radius:0 }

/* ── Peers ───────────────────────────────────────────────────────────────
   A wide table, so it borrows the financials table's scroller and its faded
   right edge. The company column stays put while the figures scroll under
   it, and this company's own row is the selected one: the subtle cognac
   fill and a 2px cognac bar at its left. */

.pr-table{ width:100%; min-width:780px; border-collapse:separate; border-spacing:0 }
.pr-table th, .pr-table td{
  padding:0 var(--sp-3); text-align:right; white-space:nowrap; background:var(--surface);
}
.pr-table thead th{ position:sticky; top:0; z-index:2; background:var(--surface-raised) }
.pr-table tbody th{ height:56px; text-transform:none; letter-spacing:normal }
.pr-table thead button{
  all:unset; cursor:pointer; display:inline-flex; align-items:baseline; gap:4px;
  font:inherit; letter-spacing:inherit; text-transform:inherit; color:inherit;
  transition:color 160ms var(--ease);
}
.pr-table thead button:hover, .pr-table thead button.on{ color:var(--text-primary) }
.pr-table thead button:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; border-radius:var(--r-xs) }
.pr-table thead button em{ font-style:normal; opacity:.7 }
.pr-table thead button i{ font-style:normal; width:8px; color:var(--highlight-text) }
.pr-table .pr-co{
  position:sticky; left:0; z-index:1; text-align:left; min-width:218px; max-width:260px; padding-left:var(--sp-4);
}
.pr-table thead .pr-co{ z-index:3 }
.pr-a{ display:flex; align-items:center; gap:12px; min-width:0; color:inherit; text-decoration:none }
.pr-n{ min-width:0 }
.pr-n b{ display:block; font:500 var(--fs-body)/var(--lh-h3) var(--font-sans); color:var(--text-primary);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:color 160ms var(--ease) }
.pr-n small{ display:block; margin-top:2px; font:500 var(--fs-label)/var(--lh-none) var(--font-sans);
  letter-spacing:normal; color:var(--text-muted) }
a.pr-a:hover .pr-n b{ color:var(--highlight-text) }
a.pr-a:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; border-radius:var(--r-control) }
.pr-table td{ color:var(--text-secondary) }
.pr-table td.none{ color:var(--text-muted) }
.pr-table td.up{ color:var(--gain) } .pr-table td.dn{ color:var(--loss) }
.pr-table tbody tr:hover th, .pr-table tbody tr:hover td{ background:var(--surface-raised) }
/* Opaque, because the first cell is sticky: the subtle fill is a wash in the
   dark, so there it is mixed onto the card instead of laid over it. */
.pr-table tbody tr.self th, .pr-table tbody tr.self td{
  background:var(--highlight-subtle); color:var(--text-primary); font-weight:500;
}
html[data-theme="dark"] .pr-table tbody tr.self th, html[data-theme="dark"] .pr-table tbody tr.self td{
  background:color-mix(in srgb,var(--accent) 12%,var(--surface));
}
.pr-table tbody tr.self td.up{ color:var(--gain) } .pr-table tbody tr.self td.dn{ color:var(--loss) }
.pr-table tbody tr.self .pr-co{ box-shadow:inset 2px 0 0 var(--highlight) }
.pr-table tbody tr.self .pr-n small{ color:var(--highlight-text) }
.pr-table tbody tr:last-child > *{ border-bottom:0 }
.pr-table tfoot th, .pr-table tfoot td{
  height:56px; border-top:1px solid var(--border); border-bottom:0; background:var(--surface-raised); color:var(--text-primary);
  text-transform:none; letter-spacing:normal;
}
/* The score, as the shared chip: the band tints it, it is never a filled cell. */
.pr-score{
  display:inline-grid; place-items:center; min-width:34px; height:22px; padding:0 var(--sp-2); border-radius:var(--r-pill);
  font:500 var(--fs-label)/var(--lh-none) var(--font-sans); background:var(--surface-raised); color:var(--text-secondary);
}
.pr-score.b-strong, .pr-score.b-good{ background:var(--gain-bg); color:var(--gain) }
.pr-score.b-weak, .pr-score.b-poor{ background:var(--loss-bg); color:var(--loss) }
@media (max-width:560px){
  .pr-table .pr-co{ min-width:150px; max-width:170px; padding-left:var(--sp-3) }
  .pr-table th, .pr-table td{ padding:0 8px }
  .pr-table td{ font-size:var(--fs-small) }
  .pr-n b{ font-size:var(--fs-small) }
}
#s-medians{ padding-top:var(--sp-12) }
#s-medians:has(#funda-peers:empty){ display:none }

/* ── News and filings ────────────────────────────────────────────────────
   Two press lists side by side and the company's own filings beneath them.
   Kept apart on the page because they are different kinds of fact. */

.nw{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 var(--sp-6) }
.nw > .stk-sec + .stk-sec{ padding-top:var(--sp-8) }
@media (max-width:860px){ .nw > .stk-sec + .stk-sec{ padding-top:var(--sp-12) } }
@media (max-width:860px){ .nw{ grid-template-columns:1fr } }
.nw-l, .fil-l{
  list-style:none; margin:0; padding:0; border:1px solid var(--border); border-radius:var(--r-card);
  background:var(--surface); overflow:hidden;
}
.nw-i{ padding:16px var(--card-pad); border-top:1px solid var(--border);
  transition:background 180ms var(--ease) }
.nw-i:first-child{ border-top:0 }
.nw-i:hover{ background:var(--surface-raised) }
.nw-i a{ color:inherit; text-decoration:none }
.nw-h{ display:block; font-size:var(--fs-body); line-height:var(--lh-label); font-weight:500; color:var(--text-primary);
  transition:color 160ms var(--ease) }
.nw-i a:hover .nw-h{ color:var(--highlight-text) }
.nw-i a:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; border-radius:var(--r-xs) }
.nw-m{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin-top:8px;
  font-size:var(--fs-small); color:var(--text-muted) }
.nw-m b{ font-weight:500; color:var(--text-secondary) }
.nw-d{
  font-style:normal; padding:3px 8px; border-radius:var(--r-pill);
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:normal;
  background:var(--highlight-subtle); color:var(--highlight-text);
}

/* Filter chips: an outline at rest, the subtle cognac fill when chosen. */
.fil-cats{ display:flex; flex-wrap:wrap; gap:var(--sp-2); margin:0 0 var(--sp-4) }
.fil-cats:empty{ display:none }
.fil-cats button{
  border:1px solid var(--border); background:none; border-radius:var(--r-pill); cursor:pointer;
  padding:0 var(--sp-3); min-height:32px; font:500 var(--fs-small)/var(--lh-none) var(--font-sans); color:var(--text-secondary);
  transition:background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.fil-cats button:hover:not(.on){ border-color:var(--border-strong); color:var(--text-primary) }
.fil-cats button.on{ background:var(--highlight-subtle); border-color:transparent; color:var(--highlight-text) }
.fil-cats button:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px }
.fil-cats button b{ margin-left:8px; font:500 var(--fs-label)/var(--lh-none) var(--font-sans) }

.fil-i{
  display:grid; grid-template-columns:58px 132px minmax(0,1fr) auto; gap:8px 16px; align-items:baseline;
  padding:16px var(--card-pad); border-top:1px solid var(--border);
}
.fil-i:first-child{ border-top:0 }
.fil-t{ font:500 var(--fs-small)/var(--lh-label) var(--font-sans); color:var(--text-muted); white-space:nowrap }
.fil-c{
  justify-self:start; padding:4px 8px; border-radius:var(--r-pill); white-space:nowrap;
  font:500 var(--fs-label)/var(--lh-h1) var(--font-sans); letter-spacing:normal;
  background:var(--surface-raised); color:var(--text-secondary);
}
.fil-i.imp-critical .fil-c, .fil-i.imp-high .fil-c{ background:var(--highlight-subtle); color:var(--highlight-text) }
.fil-i.imp-routine{ color:var(--text-muted) }
.fil-i.imp-routine .fil-h{ color:var(--text-muted) }
.fil-h{ font-size:var(--fs-body); line-height:var(--lh-small); color:var(--text-primary); overflow-wrap:anywhere }
.fil-a{ font-size:var(--fs-small); font-weight:500; color:var(--highlight-text); text-decoration:none; white-space:nowrap }
.fil-a:hover{ text-decoration:underline }
.fil-a:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; border-radius:var(--r-xs) }
@media (max-width:680px){
  .fil-i{ grid-template-columns:auto minmax(0,1fr) auto }
  .fil-h{ grid-column:1 / -1; grid-row:2 }
  .fil-a{ grid-row:1; grid-column:3 }
}

/* Big trades: the same list furniture as the filings, with a side and a size. */
.dl-i{
  display:grid; grid-template-columns:86px 62px minmax(0,1.6fr) minmax(0,1.2fr) auto; gap:8px 16px;
  align-items:baseline; padding:16px var(--card-pad); border-top:1px solid var(--border);
}
.dl-i:first-child{ border-top:0 }
.dl-s{ font:500 var(--fs-label)/var(--lh-h1) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase }
.dl-c{ font-size:var(--fs-body); line-height:var(--lh-label); color:var(--text-primary); overflow-wrap:anywhere }
.dl-c em, .dl-v em{ display:block; margin-top:2px; font-style:normal;
  font:500 var(--fs-label)/var(--lh-h3) var(--font-sans); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--text-muted) }
.dl-q{ font:500 var(--fs-small)/var(--lh-label) var(--font-sans); color:var(--text-secondary) }
.dl-v{ text-align:right; font:600 var(--fs-small)/var(--lh-h3) var(--font-sans); color:var(--text-primary); white-space:nowrap }
@media (max-width:680px){
  .dl-i{ grid-template-columns:auto auto minmax(0,1fr) }
  .dl-c{ grid-column:1 / -1 }
  .dl-q{ grid-column:1 / 3 }
  .dl-v{ grid-column:3; grid-row:1 }
}

/* ── While it loads ──────────────────────────────────────────────────────
   The shape of the page, not a paragraph about the server. */
.stk-loading{ padding:8px 0 32px }
.sk-bar{ height:40px; border-radius:var(--r-control); max-width:760px }
.sk-grid{ display:grid; grid-template-columns:minmax(0,1.62fr) minmax(0,1fr); gap:var(--sp-6); margin-top:var(--sp-8) }
.sk-card{ height:150px; border-radius:var(--r-card) }
.sk-card.tall{ height:236px }
.sk-note{ margin:24px 0 0; text-align:center; font-size:var(--fs-small); color:var(--text-muted);
  animation:paneIn 400ms var(--ease-out) both }
.sk-note[hidden]{ display:none }
@media (max-width:980px){ .sk-grid{ grid-template-columns:1fr } }

/* ── Stillness ───────────────────────────────────────────────────────────
   Everything the redesign animates, switched off for a reader who has asked
   for less motion. The values are all in place without it: every bar is set
   to its width directly and every marker to its position. */
@media (prefers-reduced-motion: reduce){
  .stk-pane.enter, .fn-view.enter, .ov .card, .stk-scorechip, .lg img, .kr-bar i, .rk-bar i, .cf-fin,
  .ov-area, .ov-dot, .ov-dot::after, .sk-note, .fc-c i, .sp-b i, .br-t i, .lc-svg, .mf-plot svg{ animation:none !important }
  .ov-line.draw{ animation:none; stroke-dashoffset:0 }
  .stk-panes-ind, .stk-mini, .kmeter .fill, .ovs-b .fill, .pl-bar .fill, .fl-b .fill, .dv-b .fill,
  .stk-scorechip, .stk-scorechip-go, .stk-scorechip-ring .a, .card, .card-go, .kp, .fc-c i, .fc-c::before, .fc-n, .lc-c i, .mf-r{ transition:none !important }
}

/* ── Discussion ───────────────────────────────────────────────────────────
   The forum's threads about this company (stock.js, loadTalk). */
.talk-l{list-style:none;margin:0;padding:0;border:1px solid var(--border);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.talk-l li a{display:block;padding:16px var(--card-pad);border-bottom:1px solid var(--border);color:var(--text-primary);text-decoration:none}
.talk-l li a:hover{background:var(--surface-raised)}
.talk-l li:last-child a{border-bottom:0}
.talk-l li a:hover b{color:var(--highlight-text)}
.talk-l b{display:block;font-size:var(--fs-body);font-weight:500;line-height:var(--lh-h3);overflow-wrap:anywhere}
.talk-ex{display:block;font-size:var(--fs-body);line-height:var(--lh-small);color:var(--text-secondary);margin:4px 0 0;overflow-wrap:anywhere}
.talk-m{display:block;font-size:var(--fs-small);color:var(--text-muted);margin:4px 0 0}
/* Start a discussion is this section's one filled action; the other is an outline. */
.talk-acts{display:flex;flex-wrap:wrap;gap:var(--sp-3);margin:var(--sp-5) 0 0}
.talk-btn{display:inline-flex;align-items:center;box-sizing:border-box;font:500 var(--fs-body)/var(--lh-none) var(--font-sans);padding:0 var(--sp-5);height:var(--control-h);
  border-radius:var(--r-control);border:1px solid var(--border-strong);color:var(--text-primary);text-decoration:none;background:none}
.talk-btn:hover{background:var(--surface-raised)}
.talk-btn.is-gold{background:var(--accent);border-color:transparent;border-radius:var(--r-pill);padding:0 var(--sp-6);color:var(--on-accent)}
.talk-btn.is-gold:hover{background:var(--accent-hover)}
.talk-btn[hidden]{display:none}
.talk-fine{font-size:var(--fs-small);color:var(--text-muted);margin:var(--sp-4) 0 0;line-height:var(--lh-small)}

/* The sector's Money Flow rank, under the key figures. */
.ktail{ margin:var(--sp-4) 0 0; padding-top:var(--sp-4); border-top:1px solid var(--border); font-size:var(--fs-small); line-height:var(--lh-small); color:var(--text-secondary) }
.ktail[hidden]{ display:none }
.ktail b{ font-weight:600; color:var(--text-primary); margin-right:8px }
.ktail a{ color:var(--highlight-text); text-underline-offset:3px; white-space:nowrap }
