/* 3 Nov 2026: one look for every page, loaded after the page styles.
   1. Breadcrumbs: the IPO page's trail everywhere ("Intelligence > IPO & Primary markets"): Inter 12px, normal case,
      no letter spacing, no underline; ice-blue in dark mode, the text colour in light mode (no blue links). */
:root{--crumb:var(--text)}
:root[data-theme="dark"]{--crumb:var(--accent-text)}
main :is(.prism-trail,.company-trail,.chart-heading-trail,.idx-crumbs),
main :is(.prism-trail,.company-trail,.chart-heading-trail,.idx-crumbs) :is(a,span,p,h1,strong){
 font:400 12px/1.5 Inter,Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;
 color:var(--crumb)!important;text-decoration:none!important;
}
main :is(.prism-trail,.company-trail,.chart-heading-trail,.idx-crumbs){display:flex;align-items:center;gap:10px!important;flex-wrap:wrap;min-width:0}
main :is(.prism-trail,.company-trail,.chart-heading-trail,.idx-crumbs) :is(p,h1){margin:0!important;padding:0!important}
main :is(.prism-trail,.company-trail,.chart-heading-trail,.idx-crumbs) a:hover{text-decoration:underline!important;text-underline-offset:3px}
/* Spectra pages put the trail in the title row with a › drawn by CSS: use the same > as everywhere */
main .vc-head .prism-trail>span{font-size:12px!important;line-height:1.5!important}
main .vc-head .prism-trail>span::before{content:none!important}

/* 2. Section tabs: the switches on Funds / Investors and Ownership / Shareholders / Group map, and the Trading links,
      use the same tabs as the theme pages (transparent, the selected one ice-blue with a line under it), on their
      own row under the breadcrumb and search, as on IPO & Primary markets. */
main :is(.fi-switch,.own-switch,.sle-top-links){display:flex!important;gap:4px!important;flex-wrap:nowrap!important;overflow-x:auto;min-width:0;scrollbar-width:thin}
main :is(.fi-switch,.own-switch,.sle-top-links)>a{
 display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;
 min-height:34px!important;padding:7px 12px!important;border:0!important;border-radius:5px 5px 0 0!important;
 font:500 12px/18px Inter,Arial,sans-serif!important;color:var(--muted)!important;background:transparent!important;
 box-shadow:inset 0 -2px transparent!important;text-decoration:none!important;white-space:nowrap}
main :is(.fi-switch,.own-switch,.sle-top-links)>a:hover{background:var(--hover)!important;color:var(--accent-text)!important}
main :is(.fi-switch,.own-switch,.sle-top-links)>a[aria-current]{background:var(--selected)!important;color:var(--accent-text)!important;box-shadow:inset 0 -2px var(--accent-text)!important}
main :is(.fi-switch,.own-switch,.sle-top-links)>a:focus-visible{outline:2px solid var(--accent-text)!important;outline-offset:-2px!important}
/* their own row: the bar wraps and the tabs go last, full width */
main :is(.mf-board-top,.iv-board-top,.ow-bar,.gm-bar,.sh-board-top,.ow-toolbar):has(>:is(.fi-switch,.own-switch)){flex-wrap:wrap!important;row-gap:12px!important}
main :is(.mf-board-top,.iv-board-top,.ow-bar,.gm-bar,.sh-board-top,.ow-toolbar)>:is(.fi-switch,.own-switch){order:99;flex:1 0 100%!important;margin-left:0!important}
main .prism-trail+:is(.fi-switch,.own-switch){order:99;flex:1 0 100%!important;margin-left:0!important}

/* 3. Company page: "More statistics" is a plain label with an arrow, not a blue link-coloured heading. */
#company-detail .detail-more-statistics summary{color:var(--text)!important;font:500 12px/1.5 Inter,Arial,sans-serif!important}
#company-detail .detail-more-statistics summary:hover{color:var(--accent-text)!important}

/* 4. Every screen size. */
/* The page keeps room for its scrollbar, so content does not jump sideways (and boards do not redraw) when a long
   page gets a scrollbar a moment after it opens. */
html{scrollbar-gutter:stable}
/* Tab rows wrap onto a second line instead of hiding the last tabs off the right edge (phones keep one scrolling row). */
@media(min-width:641px){
 html body :is(#market-tabs,#company-detail .detail-tabs,#company-detail .detail-fin-nav,main .nx-tabs,main .pt-tabs,main .ipo-discovery-nav,main .ipo-tabs,main .mf-linktabs,main .iv-linktabs,main .ag-tabs,main .pw-tabs,main .dh-tabs,main .pi-tabs,main .ds-tabs,main .fi-switch,main .own-switch,main .sle-top-links){flex-wrap:wrap!important;overflow:visible!important;row-gap:2px!important}
}
/* Company page Explore box: one line of description each, so the boxes never overlap on a short screen (the full
   description is in the tooltip). */
#company-view .pb .cpb-explore a{overflow:hidden}
#company-view .pb .cpb-explore .screener-entry-copy{min-width:0}
#company-view .pb .cpb-explore .screener-entry-desc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* One page width on every page: the full width of the main area, up to the right rail (9 Nov; it was capped at 1440 px
   and centred, which left a wide empty strip on big screens). Spectra's
   reading pages (Alerts, Digests, Data) and Settings keep their own narrower layouts. */
main :is([id^="page-"]:not(#page-settings,#page-alerts,#page-digests,#page-data,#page-matrix),#market-view,#charting-view,#company-view,#screener-view,#company-detail){max-width:none!important;margin-left:0!important;margin-right:0!important}
main :is(#page-ipo .ipo-page,#page-indices .idx-page,#page-intelligence>.mon-page,#page-monitors .mon-page,#page-datasets .ac-page,#page-news .news-page,#page-research .research-page){max-width:none!important}
/* Market tables: the last column (the 52-week range labels) no longer hangs past the box edge on a narrow screen. */
#market-view .market-table-wrap tr>:last-child{padding-right:14px!important}
/* A 1280 px laptop gave the Market table a 903 px box, just under its 920 px minimum, so the last column was cut and
   the table scrolled sideways. It now fits down to an 820 px box. */
@container (min-width:820px) and (max-width:919px){#market-view .market-instrument-table{min-width:0!important}}
/* Datasets cards: a two-line example question was squeezed to one line's height and drawn over the next question. */
#page-datasets .ds-card .ds-asks,#page-datasets .ds-card .ds-ask{flex-shrink:0}

/* 5. Company page menus (Consolidated / Standalone and the other pickers) always show a down arrow, in every browser,
   so it is clear they open a list (4 Nov). */
#company-detail select{-webkit-appearance:none!important;appearance:none!important;padding-right:28px!important;cursor:pointer;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238b8f98' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-position:right 9px center!important;background-size:12px 12px!important}
#company-detail select:hover{border-color:var(--accent-text)!important}
/* The Consolidated / Standalone menu sits at the end of the statement tabs; it is labelled so it reads as a choice. */
#company-detail .detail-fin-nav{align-items:center;row-gap:6px!important}
#company-detail .detail-fin-nav>select{margin-left:auto}

/* 6. Market: a stock or index name turns blue when the pointer is on it, so it is clear it opens that instrument (4 Nov). */
#market-view a.market-instrument:is(:hover,:focus-visible){color:var(--pv-accent,#004dc0)!important;text-decoration:underline!important;text-underline-offset:3px}
#market-view a.market-instrument{cursor:pointer;transition:color .12s}

/* 7. Small labels in front of a row of view buttons ("Use of money", "Formal jobs", "Road", "Actions", "View") are
   written in normal case like the rest of the site, not in capitals (4 Nov QA). */
main [class$="-viewgroup-label"]{text-transform:none!important;letter-spacing:0!important;font-weight:500!important;font-size:12px!important}

/* 11. Wide tables on every theme (5 Nov, Healthcare notes item 10; wide-tables.js sets .is-wide when a table is wider than
   its box): the first column stays in place, the right edge fades while there is more to scroll, and the scrollbar stays
   visible on every system (Macs hide overlay scrollbars). */
[class*="-table-scroll"].is-wide{overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--border-strong,#b8c3d1) transparent}
[class*="-table-scroll"].is-wide::-webkit-scrollbar{height:8px;-webkit-appearance:none}
[class*="-table-scroll"].is-wide::-webkit-scrollbar-thumb{background:var(--border-strong,#b8c3d1);border-radius:8px}
[class*="-table-scroll"].is-wide::-webkit-scrollbar-track{background:transparent}
[class*="-table-scroll"].is-wide:not(.at-end){-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),rgba(0,0,0,.25));mask-image:linear-gradient(to right,#000 calc(100% - 36px),rgba(0,0,0,.25))}
[class*="-table-scroll"].is-wide table > * > tr > :first-child{position:sticky;left:0;z-index:1;background:var(--surface,var(--card,#fff));box-shadow:1px 0 0 var(--border,#dce4ed)}
