/* Financial News Pro: chrome (masthead, markets tape, section bar, drawer, footer).
   Loads after style.css and uses its :root tokens. Design: a navy broadsheet band (edition line,
   reverse logo, markets tape) over a white section bar, all on one centred axis. */

/* ===================================================================== Shell */
.fnc-head { background: #fff; border-bottom: 0; }
.fnc-head::before { content: none; }
.fnc-band { background: var(--ink); color: #fff; font-size: inherit; }
.fnc-band :focus-visible { outline-color: #9db4ff; }

/* Masthead: three columns, the centre column is the page axis. */
.fnc-mast { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; column-gap: 32px; padding-top: 12px; padding-bottom: 14px; }
.fnc-mast__l { display: flex; align-items: center; gap: 22px; justify-self: start; min-width: 0; margin-bottom: 8.5px; } /* logo text centre is at 58% of its 68px height: 68*0.42 - 20 */
.fnc-mast__r { display: flex; align-items: center; gap: 22px; justify-self: end; min-width: 0; margin-bottom: 8.5px; }
.fnc-mast__c { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fnc-logo { display: block; line-height: 0; }
.fnc-logo img { width: 300px; height: auto; }

/* Edition line: mono small caps, dots not pipes. */
.fnc-edition { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #9fb0e0; white-space: nowrap; }
.fnc-edition__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; flex: none; }
.fnc-lse { display: inline-flex; align-items: center; gap: 7px; }
.fnc-lse i { width: 7px; height: 7px; border-radius: 50%; background: #8a96bd; flex: none; }
.fnc-lse--open i { background: var(--up-n); box-shadow: 0 0 0 3px rgba(74, 222, 155, .2); }
.fnc-lse--pre i { background: #f5a623; box-shadow: 0 0 0 3px rgba(245, 166, 35, .18); }

/* Icon buttons */
.fnc-ibtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 4px;
	border: 0; border-radius: var(--r); color: rgba(255, 255, 255, .82); background: transparent; position: relative;
	font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	transition: border-color .15s, color .15s, background-color .15s;
}
.fnc-ibtn .fn-i { width: 18px; height: 18px; stroke-width: 2; }
.fnc-ibtn::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 1.5px; background: var(--royal); transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease); }
.fnc-ibtn:hover, .fnc-ibtn[aria-expanded="true"] { color: #fff; background: none; }
.fnc-ibtn:hover::after, .fnc-ibtn[aria-expanded="true"]::after { transform: scaleX(1); }
.fnc-bar .fnc-ibtn { color: var(--ink); }
.fnc-bar .fnc-ibtn:hover { color: var(--royal); background: none; }
.fnc-ibtn--sm { width: 40px; padding: 0; }

/* ===================================================================== Section bar: 1fr | nav | 1fr */
.fnc-bar { background: #fff; border-top: 3px solid var(--royal); border-bottom: 1px solid var(--rule); }
.fnc-bar__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; min-height: 48px; }
.fnc-bar__l { display: flex; align-items: center; justify-self: start; min-width: 0; }
.fnc-bar__r { display: flex; align-items: center; justify-self: stretch; min-width: 0; }
.fnc-bar__brand, .fnc-bar__search { display: none; }
.fnc-nav { display: flex; align-items: stretch; justify-content: center; gap: 0; min-width: 0; }
.fnc-nav .fn-nav__list { display: flex; align-items: stretch; gap: 0; }
.fnc-nav .fn-nav__list li { display: flex; }
.fnc-nav .fn-nav__list li::before { content: none; }
.fnc-nav .fn-nav__list a, .fnc-bar .fn-more__btn {
	position: relative; display: inline-flex; align-items: center; gap: 6px; height: auto; min-height: 48px; padding: 0 17px;
	font-family: var(--f-ui); font-size: 15.5px; font-weight: 600; letter-spacing: .005em; color: var(--ink); white-space: nowrap; border-radius: 0; background: none;
}
.fnc-nav .fn-nav__list a::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: -1px; height: 3px; background: var(--royal); transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease); }
.fnc-nav .fn-nav__list a:hover { color: var(--royal); }
.fnc-nav .fn-nav__list a:hover::after, .fnc-nav .fn-nav__list .current-menu-item > a::after, .fnc-nav .fn-nav__list .current-category-ancestor > a::after, .fnc-nav .fn-nav__list .current-post-ancestor > a::after { transform: scaleX(1); }
.fnc-nav .fn-nav__list .current-menu-item > a, .fnc-nav .fn-nav__list .current-post-ancestor > a, .fnc-nav .fn-nav__list .current-category-ancestor > a { color: var(--royal); }
.fnc-bar .fn-more { position: relative; display: flex; flex: none; }
.fnc-bar .fn-more__btn { color: var(--ink-2); font-weight: 550; }
.fnc-bar .fn-more__btn:hover, .fnc-bar .fn-more__btn[aria-expanded="true"] { background: none; color: var(--royal); }
.fnc-bar .fn-more__btn .fn-i--caret { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.fnc-bar .fn-more__panel { top: 100%; right: 0; left: auto; min-width: 400px; padding: 16px 16px 12px; border-radius: 0 0 6px 6px; border: 1px solid var(--rule); border-top: 3px solid var(--royal); box-shadow: var(--shadow); background: #fff; z-index: 60; }
.fnc-more__h { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px 12px; }
.fnc-bar .fn-more__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.fnc-bar .fn-more__list a { display: block; padding: 9px 12px; font-size: 15px; font-weight: 500; border-radius: var(--r); }
.fnc-bar .fn-more__list a:hover { background: var(--paper); }
.fnc-bar .fn-more__list a::after { display: none; }

/* Search panel */
.fnc-search { border-top: 0; border-bottom: 1px solid var(--rule); background: var(--paper); padding: 22px 0; }
.fnc-search__in .fn-sform { max-width: 760px; margin: 0 auto; }

/* ===================================================================== Markets tape */
.fnc-tape { background: #06123a; border-top: 1px solid #1a2b66; color: #fff; }
.fnc-tape__in { display: flex; align-items: center; gap: 18px; height: 42px; }
.fnc-tape__h { flex: none; margin: 0; }
.fnc-tape__h span { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 3px; background: var(--royal); color: #fff; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.fnc-tape__vp { position: relative; flex: 1; min-width: 0; overflow: hidden; height: 100%; mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.fnc-tape__track { display: flex; width: max-content; height: 100%; animation: fnc-tape 64s linear infinite; }
.fnc-tape__vp:hover .fnc-tape__track, .fnc-tape__vp:focus-within .fnc-tape__track { animation-play-state: paused; }
@keyframes fnc-tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fnc-tape__list { list-style: none; display: flex; align-items: center; height: 100%; margin: 0; padding: 0; }
.fnc-t { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 0 24px; white-space: nowrap; border-right: 1px solid #1a2b66; line-height: 1; }
.fnc-t .fn-q__l { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #9fb0e0; }
.fnc-t .fn-q__p { font-family: var(--f-mono); font-size: 13.5px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.fnc-t .fn-q__c { font-family: var(--f-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 7.5ch; color: #8a96bd; }
.fnc-t.fn-q--up .fn-q__c { color: var(--up-n); }
.fnc-t.fn-q--down .fn-q__c { color: var(--down-n); }
.fnc-t.fn-q--up .fn-q__c::before { content: "\25B2"; font-size: 8px; margin-right: 4px; vertical-align: 1px; }
.fnc-t.fn-q--down .fn-q__c::before { content: "\25BC"; font-size: 8px; margin-right: 4px; vertical-align: 1px; }
.fnc-tape__note { flex: none; margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a96bd; }

/* ===================================================================== Sticky compact (desktop) */
.fnc-head.is-stuck { background: rgba(255, 255, 255, .98); box-shadow: 0 8px 24px -16px rgba(8, 25, 71, .5); }
@supports (backdrop-filter: blur(8px)) { .fnc-head.is-stuck { background: rgba(255, 255, 255, .93); backdrop-filter: saturate(1.4) blur(10px); } }
.fnc-head.is-stuck .fnc-tape { display: none; }
.fnc-bar__brand .fnc-mark { width: 30px; height: 30px; max-width: none; border-radius: 7px; }
.fnc-bar__brand .fnc-mark { display: none; }
@media (min-width: 1180px) {
	.fnc-head.is-stuck .fnc-band { display: none; }
	.fnc-head.is-stuck .fnc-bar { background: transparent; border-top: 3px solid var(--royal); border-bottom: 1px solid var(--rule); }
	.fnc-head.is-stuck .fnc-bar__in { padding-top: 0; padding-bottom: 0; min-height: 54px; }
	.fnc-head.is-stuck .fnc-bar__brand { display: block; line-height: 0; }
	.fnc-head.is-stuck .fnc-bar__brand picture img { width: 156px; }
	.fnc-head.is-stuck .fnc-bar__search { display: inline-flex; margin-left: auto; }
	.fnc-head.is-stuck .fnc-nav .fn-nav__list a, .fnc-head.is-stuck .fnc-bar .fn-more__btn { min-height: 54px; color: var(--ink); background: none; margin: 0; padding: 0 14px; border-radius: 0; }
	.fnc-head.is-stuck .fnc-bar .fn-more__btn { color: var(--ink-2); }
	.fnc-head.is-stuck .fnc-nav .fn-nav__list a::after { display: block; left: 14px; right: 14px; background: var(--royal); bottom: -1px; }
	.fnc-head.is-stuck .fnc-nav .fn-nav__list .current-menu-item > a, .fnc-head.is-stuck .fnc-nav .fn-nav__list .current-category-ancestor > a, .fnc-head.is-stuck .fnc-nav .fn-nav__list .current-post-ancestor > a { background: none; color: var(--royal); }
	.fnc-head.is-stuck .fnc-bar :focus-visible { outline-color: var(--royal); }
}
@media (min-width: 1180px) and (max-width: 1379px) {
	.fnc-head.is-stuck .fnc-bar__brand picture { display: none; }
	.fnc-head.is-stuck .fnc-bar__brand .fnc-mark { display: block; }
}

/* ===================================================================== Responsive */
@media (max-width: 1379px) {
	.fnc-nav .fn-nav__list a, .fnc-bar .fn-more__btn { padding: 0 14px; font-size: 15px; }
	.fnc-nav .fn-nav__list a::after { left: 14px; right: 14px; }
}
@media (max-width: 1179px) {
	.fnc-bar { display: none; }
	.fnc-band { border-bottom: 3px solid var(--royal); }
	.fnc-mast { padding-top: 14px; padding-bottom: 14px; column-gap: 16px; }
	.fnc-logo img { width: 250px; }
	.fnc-mast__l, .fnc-mast__r { margin-bottom: 1px; } /* 50px logo: 50*0.42 - 20 */
	.fnc-edition { margin-bottom: 10px; font-size: 10.5px; gap: 9px; }
	.fnc-head.is-stuck .fnc-edition { display: none; }
	.fnc-head.is-stuck .fnc-mast { padding-top: 9px; padding-bottom: 9px; align-items: center; }
	.fnc-head.is-stuck .fnc-mast__l, .fnc-head.is-stuck .fnc-mast__r { margin-bottom: 0; transform: translateY(2.8px); }
	.fnc-head.is-stuck .fnc-logo img { width: 176px; }
	.fnc-tape__note { display: none; }
}
@media (max-width: 599px) {
	.fnc-mast { padding-top: 10px; padding-bottom: 10px; column-gap: 8px; }
	.fnc-edition { display: none; }
	.fnc-logo img { width: 176px; }
	.fnc-mast { align-items: center; }
	.fnc-mast__l, .fnc-mast__r { margin-bottom: 0; transform: translateY(2.8px); } /* 35px logo: text centre 8% below image centre */
	.fnc-ibtn { width: 40px; padding: 0; border-color: transparent; }
	.fnc-ibtn__t { display: none; }
	.fnc-ibtn .fn-i { width: 22px; height: 22px; }
	.fnc-ibtn--menu { margin-left: -9px; }
	.fnc-ibtn--search { margin-right: -9px; }
	.fnc-tape__in { height: 36px; gap: 12px; }
	.fnc-tape__h { display: none; }
	.fnc-t { padding: 0 16px; gap: 7px; }
	.fnc-t .fn-q__l { font-size: 11px; }
	.fnc-t .fn-q__p { font-size: 12.5px; }
	.fnc-t .fn-q__c { font-size: 11.5px; }
	.fnc-head.is-stuck .fnc-logo img { width: 156px; }
	.fnc-head.is-stuck .fnc-mast { padding-top: 7px; padding-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
	.fnc-tape__track { animation: none; }
	.fnc-tape__vp { overflow-x: auto; scrollbar-width: none; }
	.fnc-tape__vp::-webkit-scrollbar { display: none; }
	.fnc-tape__list[aria-hidden="true"] { display: none; }
	.fnc-head.is-stuck { animation: none; }
	.fnc-ibtn, .fnc-nav .fn-nav__list a::after, .fnc-foot__search, .fnc-foot__search button { transition: none; }
}

/* ===================================================================== Drawer */
.fnc-drawer .fn-drawer__panel { width: min(400px, 90vw); padding: 14px 24px 36px; box-shadow: 12px 0 40px -20px rgba(8, 25, 71, .5); border-top: 3px solid var(--royal); }
.fnc-drawer__logo { line-height: 0; }
.fnc-drawer__logo img { width: 176px; }
.fnc-drawer .fn-drawer__h { margin: 24px 0 4px; }
.fnc-drawer .fn-drawer__list a { color: var(--ink); }
.fnc-drawer .fn-drawer__list a:hover { color: var(--royal); }
.fnc-drawer .fn-drawer__list .current-menu-item > a { color: var(--royal); box-shadow: inset 3px 0 0 var(--royal); padding-left: 12px; }
.fnc-drawer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.fnc-drawer__grid a { font-size: 15.5px; font-weight: 500; min-height: 44px; color: var(--ink-2); }
.fnc-drawer .fn-drawer__list--co a { font-size: 15px; color: var(--ink-2); }
.fnc-drawer__date { margin: -4px 0 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ===================================================================== Footer */
.fnc-foot { position: relative; background: var(--ink); color: #c4cdee; }
.fnc-foot__rule { height: 4px; background: linear-gradient(90deg, var(--royal) 0 33%, #4f74ff 33% 66%, #8aa4ff 66% 100%); }
.fnc-foot__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 60px 0 48px; }
.fnc-foot__logo { display: inline-block; line-height: 0; }
.fnc-foot__logo img { width: 232px; height: auto; }
.fnc-foot__about { margin-top: 20px; font-size: 15px; line-height: 1.65; max-width: 38ch; color: #b4c0e8; }
.fnc-foot__search { display: flex; margin-top: 24px; max-width: 340px; border: 1px solid #2c3e78; border-radius: 999px; overflow: hidden; background: #0d2159; transition: border-color .15s; }
.fnc-foot__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 18px; height: 46px; outline: none; }
.fnc-foot__search input::placeholder { color: #93a1d0; }
.fnc-foot__search input::-webkit-search-cancel-button { display: none; }
.fnc-foot__search button { width: 50px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--royal); transition: background .15s; }
.fnc-foot__search button:hover { background: var(--royal-d); }
.fnc-foot__search:focus-within { border-color: #6f8dff; }
.fnc-foot__h { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #fff; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid #1f3373; }
.fnc-foot__list { list-style: none; display: grid; gap: 0; }
.fnc-foot__list a { display: inline-block; padding: 6px 0; font-size: 15px; line-height: 1.4; color: #c4cdee; }
.fnc-foot__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fnc-foot__col--sections .fnc-foot__list { display: block; columns: 2; column-gap: 24px; }
.fnc-foot__col--sections .fnc-foot__list li { break-inside: avoid; }
.fnc-foot :focus-visible { outline-color: #9db4ff; }
.fnc-foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; border-top: 1px solid #1d3172; padding: 22px 0 30px; font-size: 13px; color: #93a1d0; }
.fnc-foot__base p:first-child { color: #c4cdee; }
.fnc-foot__top-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #c4cdee; font-weight: 500; }
.fnc-foot__top-link:hover { color: #fff; }
@media (max-width: 1179px) {
	.fnc-foot__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
	.fnc-foot__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px 40px; }
	.fnc-foot__about { margin-top: 0; }
	.fnc-foot__search { grid-column: 2; margin-top: 4px; }
	.fnc-foot__col--sections .fnc-foot__list { columns: 1; }
}
@media (max-width: 767px) {
	.fnc-foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 44px 0 32px; }
	.fnc-foot__brand { display: block; }
	.fnc-foot__about { margin-top: 16px; }
	.fnc-foot__search { max-width: none; margin-top: 18px; }
	.fnc-foot__col--sections { grid-column: 1 / -1; }
	.fnc-foot__col--sections .fnc-foot__list { columns: 2; }
	.fnc-foot__base { flex-direction: column; align-items: flex-start; }
	.fnc-foot__top-link { margin-left: 0; }
}
@media (max-width: 399px) {
	.fnc-foot__top { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.fnc-head.is-stuck { animation: none; }
	.fnc-menu, .fnc-search-btn, .fnc-foot__search, .fnc-foot__search button { transition: none; }
}
@media print { .fnc-band, .fnc-bar, .fnc-foot { display: none !important; } }
