/* Shared editorial signatures and finance-page layout. */
@font-face {
  font-family: "Moneyo Inter";
  src: url("./fonts/inter/Inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Older financial pages load only the editorial stylesheet. Both versions use
   the same title token, with the surface supplying the inverse colour. */
body:is(.editorial-finance,.editorial-pilot):not(.moneyo-finance) { --finance-title-color:#111827; }
:where(.upvest-hero, [data-moneyo-surface="dark"], .finance-surface-dark) { --finance-title-color:#fff; }
body:is(.editorial-finance,.editorial-pilot,.moneyo-finance) h1,
body:is(.editorial-finance,.editorial-pilot,.moneyo-finance) h1 :is(span,em,strong) { color:var(--finance-title-color); }

.moneyo-credit, .moneyo-team, .author-profile { --credit-ink:#162f42; --credit-muted:#4b5563; --credit-line:#cedde3; --credit-link:#075b82; }
.moneyo-credit, .moneyo-team { box-sizing:border-box; font-family:inherit; color:var(--credit-ink); text-align:left; }
.moneyo-credit { display:flex; align-items:center; flex-wrap:wrap; gap:4px 16px; margin:12px 0 16px; font-size:14px; line-height:1.4; }
.moneyo-credit a, .moneyo-team a, .author-profile a { color:var(--credit-link); text-underline-offset:.18em; }
.moneyo-credit .credit-person, .moneyo-team .credit-person { display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--credit-ink); }
.moneyo-credit .credit-person img { width:34px; height:34px; }
.moneyo-credit .credit-person img, .moneyo-team .credit-person img, .author-profile .profile-photo { flex:none; display:block; border-radius:50%; object-fit:cover; }
/* The author is a single linked portrait and name, including on category and WordPress pages. */
body:is(.editorial-finance,.editorial-pilot,.moneyo-finance) :is(.moneyo-credit,.moneyo-author-byline) a.credit-person:any-link {
  color:var(--credit-ink);
  font:normal 700 14px/1.4 "Moneyo Inter","Segoe UI",Arial,sans-serif;
  text-decoration:none;
}
.moneyo-credit time, .moneyo-credit .credit-check { color:var(--credit-muted); }
:where(.upvest-hero, [data-moneyo-surface="dark"], .finance-surface-dark) :is(.moneyo-credit, .moneyo-author-byline) {
  --credit-ink: #fff;
  --credit-link: #fff;
  --credit-muted: #e3eef3;
  color: var(--credit-muted);
}
:where(.upvest-hero, [data-moneyo-surface="dark"], .finance-surface-dark) :is(.moneyo-credit, .moneyo-author-byline) a {
  color: #fff;
}
:where(.upvest-hero, [data-moneyo-surface="dark"], .finance-surface-dark) :is(.moneyo-credit, .moneyo-author-byline) time {
  color: #e3eef3;
}
.moneyo-team { margin:clamp(28px,4vw,54px) 0 24px; padding:clamp(16px,2.5vw,30px); border:1px solid var(--credit-line); border-top:3px solid #17715f; border-radius:12px; background:#f5f9f8; }
.moneyo-team h2 { margin:0 0 18px; font-size:clamp(1.25rem,2.5vw,1.65rem); line-height:1.2; color:var(--credit-ink); }
.moneyo-team .credit-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 24px; }
.moneyo-team .credit-columns > div { min-width:0; }
.moneyo-team .credit-person { font-size:1.04rem; }
.moneyo-team .credit-person img { width:52px; height:52px; }
.moneyo-team .credit-columns p { margin:8px 0 0; font-size:.95rem; line-height:1.55; color:var(--credit-muted); }
.moneyo-team .credit-person small { display:block; font-weight:500; font-size:.8rem; color:var(--credit-muted); }
.moneyo-team nav { display:flex; flex-wrap:wrap; gap:8px 20px; border-top:1px solid var(--credit-line); margin-top:18px; padding-top:12px; font-size:.9rem; }
.moneyo-credit a:focus-visible, .moneyo-team a:focus-visible, .author-profile a:focus-visible { outline:3px solid #1678b7; outline-offset:3px; }
body.editorial-pilot .tools-shell, .editorial-pilot .patria-review { width:min(calc(100% - 32px),1120px); max-width:1120px; margin-inline:auto; }
body.postid-27.editorial-pilot .site-content > .ast-container { width:min(calc(100% - 32px),1120px); max-width:1120px; padding-inline:0; }
body.postid-27.editorial-pilot .entry-content > .patria-review { width:100%; max-width:1120px; }
body.editorial-pilot .np-shell { width:min(calc(100% - 24px),1200px); margin-inline:auto; }
body.editorial-pilot main a:is(.button-primary,.np-btn,.pr-cta)[rel~="sponsored"], .patria-review a.pr-cta[rel~="sponsored"] { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 18px; border:1px solid #125e94; border-radius:8px; background:#125e94; color:white; line-height:1.35; text-align:center; text-decoration:none; font-weight:700; }
body.editorial-pilot main a:is(.button-primary,.np-btn,.pr-cta)[rel~="sponsored"]:hover,.patria-review a.pr-cta:hover { background:#104c75; }
body.editorial-pilot main a[rel~="sponsored"]:focus-visible,.patria-review a[rel~="sponsored"]:focus-visible { outline:3px solid #00856d; outline-offset:3px; }
.author-profile, .evidence-profile { box-sizing:border-box; width:min(calc(100% - 32px),1120px); margin:0 auto 60px; color:#162f42; }
.author-profile nav.breadcrumbs,.evidence-profile nav.breadcrumbs {margin:22px 0;}
.profile-intro { display:flex; align-items:center; gap:clamp(18px,4vw,44px); padding:clamp(20px,4vw,46px); border:1px solid #cbdedc; border-radius:14px; background:#eff7f4; }
.profile-photo { width:clamp(78px,12vw,144px); aspect-ratio:1; height:auto; }
.profile-intro h1,.evidence-profile h1 { font-size:clamp(2rem,5vw,3.6rem); letter-spacing:-.045em; line-height:1.07; margin:3px 0 10px; }
.profile-intro p { margin:0 0 8px; max-width:63ch; }
.profile-role { color:#235d53; font-weight:650; }
.profile-resume { max-width:77ch; margin:32px 0; }
.profile-resume h2,.profile-works h2 { font-size:1.5rem; line-height:1.23; margin:24px 0 8px; }
.profile-resume p { margin:0 0 12px; }
.profile-works ul { padding:0; list-style:none; border-top:1px solid #cbd9da; }
.profile-works li { padding:12px 0; border-bottom:1px solid #cbd9da; }
.profile-works li span { color:#48606f; display:block; }
.evidence-profile > section { margin:1.5rem 0; }
.legacy-evidence:not(:target) { display:none; }
.editorial-finance { --editorial-width:1120px; --shell:var(--editorial-width); }
.editorial-finance.editorial-data { --editorial-width:1200px; }
.editorial-finance main.editorial-shell, .editorial-finance main .section-shell, .editorial-finance main .ua15-shell,
.editorial-finance main > .moneyo-team {box-sizing:border-box;width:min(calc(100% - 32px),var(--editorial-width));max-width:var(--editorial-width);margin-inline:auto;}
.editorial-finance main.editorial-shell > .moneyo-team,.editorial-finance main.editorial-shell > .section-shell,
.editorial-finance main.editorial-shell > .ua15-shell {width:100%;}
.editorial-finance .moneyo-team .credit-columns > :only-child {grid-column:1/-1;max-width:76ch;}
.editorial-finance .credit-columns > :only-child p {margin-bottom:0;}
body.postid-246.editorial-finance .site-content > .ast-container {box-sizing:border-box;width:min(calc(100% - 32px),1120px);max-width:1120px;padding-inline:0;}
body.postid-246.editorial-finance .moneyo-paysend-promo {width:100%;max-width:1120px;}
body:is(.editorial-finance,.editorial-pilot) main a[rel~="sponsored"]:is(.button,.cmp-btn,.ua15-primary,.ss-partner-button,.wallet-pill,[class*="-btn"],[class*="-cta"],[class*="-affiliate-button"],.promo-cta),
body:is(.editorial-finance,.editorial-pilot) :is(.stock-article-broker-links,.stock-article-mobile-links,.stock-sidebar-brokers,.stock-mobile-brokers) a[rel~="sponsored"] {
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border:1px solid #125e94;border-radius:8px;background:#125e94;color:#fff;line-height:1.35;text-align:center;text-decoration:none;font-weight:700;
}
body:is(.editorial-finance,.editorial-pilot) main a[rel~="sponsored"]:is(.button,.cmp-btn,.ua15-primary,.ss-partner-button,[class*="-btn"],[class*="-cta"],[class*="-affiliate-button"]):hover {background:#104c75;color:#fff;}
body.editorial-finance a[rel~="sponsored"]:focus-visible {outline:3px solid #00856d;outline-offset:3px;}
body.editorial-finance #broker .etf-route-actions .button[rel~="sponsored"] {background:#125e94;border-color:#125e94;}
body.editorial-finance #broker .etf-route-actions .button[rel~="sponsored"]:hover {background:#104c75;border-color:#104c75;}
.editorial-finance main > nav.breadcrumbs {display:flex;flex-wrap:wrap;gap:6px;margin-block:14px;font-size:.9rem;}
:is(.editorial-finance,.editorial-pilot) {--color-blue:#125e94;}
:is(.editorial-finance,.editorial-pilot) .footer-bottom {color:#4b5563;}
.editorial-finance :is(.upvest-sidebar-cta > span, .upvest-hero .upvest-affiliate-note,
  [data-moneyo-surface="dark"] .affiliate-disclosure, .finance-surface-dark .affiliate-disclosure) {color:#eff6fa;}
.editorial-finance .upvest-tool-head > strong {color:#fff0bb;}

/* Secondary text on paper, including the tinted panels used by older guides. */
body:is(.editorial-finance,.editorial-pilot) :is(
  .quick-facts dt, .market-strip span, .content-signature__meta dt, .source-list time,
  .ca-px-table td:first-child, .bank-instant, .bank-missing, .broker-fee-field small,
  .broker-fee-table small, .etf-cost-field small, .etf-source-list span, .decision-strip span,
  .route-provider-head p, .route-facts dt, .route-verdict span, .hero-provider small,
  .speed-timeline span, .article-cta-inline p, .ibkr-hero-note, .ibkr-field small,
  .startup-cta-strip p, .pokemon-result-card small, .review-score p, .score-row small,
  .tools-method .tools-method-note, .rixo-tool-privacy, .rx-field input:disabled,
  .calculator-disclaimer, .calculator-field small, .calculator-result :is(span,small),
  .diary-order-list dt, .experience-card .public-score small, .fl-choice-letter, .verified-strip span, .product-card.featured .product-label, .decision-result > span,
  .sp500-tool .investing-refresh-visual .investing-visual-links
) {color:#46586f;}
.editorial-finance .ibkr-calculator .ibkr-calc-note {color:#46586f !important;}

/* Accent ink on light surfaces; keep the inverse variants in verdicts and buttons. */
body:is(.editorial-finance,.editorial-pilot) :is(
  .stocks-hero .breadcrumbs a, .stocks-hero-copy .stocks-kicker, .stocks-definition-grid span,
  .stocks-cost-grid span, .stocks-risk-grid span, .stocks-analysis-grid span,
  .stocks-dividend-timeline span, .stocks-inline-links a, .related-articles .related-card span,
  .stock-analysis-table td a:not(.button), .nvda-table td a:not(.button), .asset-links a, .method-card span, .scenario-card span,
  .asset-panel span, .tool-card span, .tool-card a:not(.button), .ca-compare-two span,
  .ca-tax-map span, .ca-tool:not(.ca-tool--navy) .ca-tool-head .eyebrow, .cost-layer-card > span, .faq-quick-grid span,
  .etf-definition-grid span, .etf-check-grid > article > span, .etf-portfolio-grid > article > span,
  .etf-risk-grid > article > span, .etf-tax-grid > article > span, .etf-decision__number,
  .etf-order-box span, .ltc-timeline time, .doge-timeline time,
  :is(.ltc-signal,.ltc-risk,.ltc-platform,.doge-signal,.doge-risk,.doge-platform):nth-child(2) span,
  .ppp-pill, span.wallet-pill, .xrp-timeline time, .diary-update-box > strong
) {color:#075b82;}
body:is(.editorial-finance,.editorial-pilot) :is(.stocks-verdict.finance-panel .stocks-kicker,
  .stocks-verdict.finance-panel .stocks-verdict-grid :is(h3,p,span)) {color:#23465c;}
body:is(.editorial-finance,.editorial-pilot) :is(.etoro-order-check .etoro-order-item:nth-child(2) .etoro-order-step, .ob-term-count,
  .lego-price-example .positive strong, :is(.ltc-signal,.ltc-risk,.ltc-platform,.doge-signal,.doge-risk,.doge-platform):nth-child(3) span) {color:#06675b;}
body.editorial-finance :is(.dot-card span,.dot-signal span,.dot-risk span,.dot-orbit-card span) {color:#a00b59;}
body.editorial-finance.avafin-page :is(.summary-card span,.timeline-item time) {color:#ac2131;}
body.editorial-finance :is(.alcohol-economics-card span,.compliance-note span) {color:#745019;}
body.editorial-finance :is(.xrp-signal,.xrp-risk,.xrp-platform):nth-child(3) span {color:#745019;}
body.editorial-finance :is(.xrp-signal,.xrp-risk,.xrp-platform):nth-child(2) span,
body.editorial-finance .tipli-shop-rate strong,
body.editorial-finance .etf-decision__step--cost .etf-decision__number {color:#06675b;}
body.editorial-finance.creditportal-page .score-ring {color:#28632e;}

/* Preserve the light labels on numbered steps and action surfaces. */
body:is(.editorial-finance,.editorial-pilot) :is(
  .flow-step span, .timeline-list > div:not(.timeline-item) > span, .ca-dividend-steps span,
  .ca-risk-grid span, .hero-provider b, .two-number-check span, .earn-match-card > span,
  .earn-result-grid .featured, .earn-tool-icon, .nord-score-item b, .author-mark, .transfer-flow span,
  .calculator-tab[aria-selected="true"], .stocks-actions .button-primary,
  .cancel-card span, .step-card span,
  .etf-page .button-primary, .sp500-page .button-primary,
  .stocks-broker-card a:not(.stocks-detail-link)
) {background:#125e94;color:#fff;}
body.editorial-finance #objednani .rc-order-number {background:#125e94;color:#fff;}
body.editorial-finance .toc-card a.button-primary {color:#fff;}
body.editorial-finance main .ua15-final a.ua15-primary[rel~="sponsored"] {color:#fff !important;}
body.editorial-finance :is(.epo-final-cta .button-secondary,.lego-cta-strip .button:not([rel~="sponsored"]),
  .ppp-cta-strip .button:not([rel~="sponsored"])) {background:#fff;color:#075b82;}
body:is(.editorial-finance,.editorial-pilot) :is(.ai-advisor-controls button:disabled,
  .fl-secondary:disabled,.renta-steps > * > span:first-child) {opacity:1;}
body.editorial-finance :is(.xtb-action-row button.button-ghost,.register-callout .button-secondary) {
  color:#075b82;background:#fff;border-color:#075b82;
}
body.editorial-finance .rating-summary__score {background:#087354;color:#fff;}
body.editorial-finance :is(.wise-scorecard,.transfergo-scorecard) .moneyo-score-component__badge {
  background:radial-gradient(circle closest-side,#fff 81%,transparent 83%),
    conic-gradient(var(--score-color) var(--score-percent),#dce5eb 0);
}
body.editorial-finance .broker-fee-field input::placeholder {color:#4b6070;opacity:1;}
body.editorial-finance :is(.epo-score-ring, .review-score .score-ring) {font-size:20px;white-space:nowrap;}
body.editorial-finance :is(.pokemon-verdict span,.supply-pill :is(span,strong),
  .sp500-tool-results > div > span,.sp500-currency-result > div.primary > span) {color:#fff;}
body.editorial-finance :is(.etf-tool-results > div:not(.is-highlight),.sp500-tool-results > div.primary,
  .sp500-currency-results > div.primary,.supply-pill) {background-color:#184e60;}

/* A caption belongs to the visible scroll region, even on desktop when a table
   is wider than the article column. Keep native column sizing inside the region. */
body:is(.editorial-finance,.editorial-pilot) main :is(
  .etoro-table-wrap,.stock-analysis-table-wrap,.nvda-table-wrap,.loan26-table,.fc-table,
  .case-table,.practice-table,.fondee-return-table,.ca-px-table,.ca-broker-table,.fi-table-wrap,
  .comparison-table-wrap,.nord-table-wrap,.pp-table-wrap,.pp-rent-model,.rc-table
):has(> table > caption) {container-type:inline-size;}
body:is(.editorial-finance,.editorial-pilot) main :is(
  .etoro-table-wrap,.stock-analysis-table-wrap,.nvda-table-wrap,.loan26-table,.fc-table,
  .case-table,.practice-table,.fondee-return-table,.ca-px-table,.ca-broker-table,.fi-table-wrap,
  .comparison-table-wrap,.nord-table-wrap,.pp-table-wrap,.pp-rent-model,.rc-table
) > table > caption:not([class*="sr"]) {
  box-sizing:border-box;
  inline-size:100cqi;
  max-inline-size:100cqi;
  white-space:normal;
  overflow-wrap:anywhere;
}
@media (max-width:760px) {
  .editorial-finance.etf-page main .table-wrap.finance-table-host {margin-inline:0;}
  .editorial-finance .eo-shell details code {white-space:normal;overflow-wrap:anywhere;}
  body:is(.editorial-finance,.editorial-pilot) main :is(.etoro-table:not(.etoro-table--matrix),
    .richest-table) > caption {display:block;}
}

/* These article components carry pale text over gradients, including on older templates. */
body.editorial-finance main :is(.cta-strip, .highlight-box, .multi-cta-strip,
 .ppp-cta-strip, .wallet-cta-strip, .lego-cta-strip, .tipli-cta-strip,
 .transfer-hero-card, .epo-tool-head, .epo-final-cta, .nord-tool__head,
 .rixo-cta-strip, .ascended-cta, .phantasmal-cta, .mega-cta, .perfect-cta,
 .doge-supply-panel, .dot-core, .wallet-tool.orange, .whisky-verdict.is-warning,
 .broker-tool--cost, .calc-highlight, .pokemon-lens__score, .upvest-capital-row:nth-child(-n+2) > div),
body.editorial-finance main :is(#verdikt, #produkty, #tarify, #kalkulacka) .inline-cta {
  background-color:#8593a1;
  background-blend-mode:multiply;
}
body.editorial-finance main :is(.upvest-final-cta > p, .upvest-security .upvest-evidence-grid p) {color:#f1f6fa;}
body.editorial-finance main :is(.broker-safety-checklist a, .ua15-final .ua15-disclosure a) {
  color:#fff;
  text-decoration:underline;
  text-underline-offset:.18em;
}
body.editorial-finance main .sp-result .sp-detail summary {color:#fff;}
/* The secondary loan button declares its label important in the original templates. */
body.editorial-finance main .rp-btn.rp-btn-secondary[rel~="sponsored"] {color:#fff !important;}
body.editorial-finance main .ppp-platform-grid a.ppp-platform {background:#fff;color:#10233f;text-decoration:none;}
body.editorial-finance main .ppp-platform strong {text-decoration:underline;text-underline-offset:.18em;}
body.editorial-finance main :is(.ali-step, .startup-step) h3 {color:#10233f;}
body.editorial-finance main .highlight-box .eyebrow {color:#fff;}
body.editorial-finance.zaplonasplatky-page main .highlight-box p {color:#fff;}
body.editorial-finance main :is(.three-checks li b, .category-actions .button-primary,
 .etoro-guide-cta .button-primary, .stocks-broker-card p a:not(.stocks-detail-link)) {
  background-color:#125e94;
  color:#fff;
}
.editorial-finance main > nav.breadcrumbs > *+*::before {content:"/";margin-right:6px;color:#637381;}
.editorial-finance .moneyo-team img {max-width:none;}
.editorial-finance .moneyo-credit .credit-person img {margin:0;}
.editorial-finance .moneyo-credit a {min-width:0;}
body.editorial-finance .stock-article-broker-links a[rel~="sponsored"] {flex-direction:column;gap:0;padding:6px 4px;}
@media(max-width:640px) {
 .moneyo-team .credit-columns {grid-template-columns:1fr;}
 .moneyo-team .credit-columns > div + div {border-top:1px solid var(--credit-line);padding-top:14px;}
 .moneyo-credit {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:3px 14px;margin-block:10px;}
 .moneyo-credit .credit-check {line-height:1.25;}
 .moneyo-credit .credit-review-label {display:block;font-size:.77rem;}
 .moneyo-credit time {grid-column:1/-1;font-size:.8rem;}
 .moneyo-credit:has(.credit-person + .credit-person) {display:flex;gap:6px 14px;}
 .profile-intro {display:block;} .profile-photo {margin-bottom:12px;}
}
