/* Fondkompas: one stylesheet for every page. The category standard of a fund comparator, played straight:
   a white data product, cool grey surfaces, hairline borders, one blue accent for actions and the active state,
   red only for losses, an amber chip for cautions. System UI type with tabular figures. */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f5;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --ink: #111827;
  --text: #1f2937;
  --muted: #5b6474;            /* 6.0:1 on white */
  --accent: #2563eb;           /* 5.2:1 on white */
  --accent-d: #1d4ed8;
  --accent-soft: #eff4ff;
  --accent-line: #c7d7fe;
  --neg: #b91c1c;
  --pos: #047857;
  --warn-bg: #fef3c7;
  --warn-ink: #92400e;
  --line-1: #ea580c;           /* the second chart line */
  --line-2c: #475569;          /* the third chart line (dashed) */
  --r: 12px;
  --r-s: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lift: 0 4px 12px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .08);
  --nav: 64px;
  --gut: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* surfaces that open, close or move (transitions.dev: menu dropdown, toast, tabs sliding, accordion);
     see DESIGN.md, Motion. Opening runs slower than closing. */
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --toast-open: 350ms;
  --toast-close: 250ms;
  --toast-distance: 16px;
  --toast-blur: 2px;
  --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-pill-bg: var(--accent-soft);
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--nav) + 16px);
}
@media (max-width: 639px) { :root { --gut: 16px; --nav: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(30px, 2.2vw + 18px, 44px); line-height: 1.12; letter-spacing: -.022em; }
h2 { font-size: clamp(22px, 1vw + 16px, 28px); line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 17px; line-height: 1.35; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
input { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.muted { color: var(--muted); }
.t-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 68ch; }
.t-small { font-size: 13px; line-height: 1.5; }
.is-neg { color: var(--neg); }
.link { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .15s var(--ease), color .15s var(--ease); }
.link:hover { color: var(--accent-d); text-decoration-color: currentColor; }
.link:active { color: var(--ink); }
.skip-link { position: absolute; left: 8px; top: -60px; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--r-s); z-index: 100; }
.skip-link:focus { top: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-s);
  border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-d); }
.btn--ghost { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: #b8bec8; }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }

/* ---------------------------------------------------------------- header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; gap: 28px; height: var(--nav); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.mark::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid #fff; }
.mark::after { content: ""; position: absolute; left: 12px; top: 8px; width: 2px; height: 6px; background: #fff; border-radius: 1px; transform-origin: 1px 5px; transform: rotate(40deg); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; height: 40px; padding: 0 10px; border-radius: var(--r-s); color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link:active { background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__actions .btn[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-d); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); color: var(--ink); cursor: pointer; place-items: center; }
.nav__toggle:hover { background: var(--surface); }
.nav__toggle:active { transform: translateY(1px); }
@media (max-width: 899px) {
  .nav__bar { gap: 8px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-grid; }
  .nav.is-open .nav__links { display: grid; position: absolute; left: 0; right: 0; top: var(--nav); padding: 8px var(--gut) 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); }
  .nav.is-open .nav__link { height: 48px; font-size: 17px; color: var(--ink); }
  .nav.is-open .nav__link[aria-current="page"] { box-shadow: none; border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent-d); font-weight: 600; }
}
@media (max-width: 419px) { .fx-nav-wide { display: none; } .nav__logo { font-size: 17px; } }

/* ---------------------------------------------------------------- cards and fields shared by the tools */
.ui-panel, .fx-tool { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.fx-tool { overflow: hidden; font-variant-numeric: tabular-nums; }
.fx-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.fx-tab { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.fx-tab em { font-style: normal; color: var(--muted); font-weight: 400; }
.fx-tab:hover { background: var(--surface); border-color: var(--line-2); }
.fx-tab:active { transform: translateY(1px); }
.fx-tab[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-d); }
.fx-tab[aria-pressed="true"] em { color: var(--accent-d); }
/* the picked tab's fill as a pill that slides to the next pick (transitions.dev tabs sliding; fondy.js writes
   its place and size). Without the script each picked tab keeps its own fill. */
.fx-tabs.has-pill { position: relative; }
.fx-tabs.has-pill .fx-tab { position: relative; z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease), background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.fx-tabs.has-pill .fx-tab[aria-pressed="true"] { background: transparent; border-color: transparent; }
.fx-tabs.has-pill .fx-tab[aria-pressed="true"]:hover { background: transparent; }
.t-tabs-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 30px;
  width: 0;
  background: var(--tabs-pill-bg);
  border-radius: 48px;
  transform: translateX(0);
  transition:
    transform var(--tabs-dur) var(--tabs-ease),
    width     var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}
.fx-tabs .t-tabs-pill { top: 0; border: 1px solid var(--accent-line); border-radius: 999px; }   /* the site's tab shape */
@media (prefers-reduced-motion: reduce) {
  .t-tabs-pill, .fx-tabs.has-pill .fx-tab { transition: none !important; }
}
.fx-field { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fx-field--grow { flex: 1 1 200px; }
.fx-field :is(select, input) { height: 42px; min-width: 150px; padding: 0 12px; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-s); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.fx-field :is(select, input):hover { border-color: #b8bec8; }
.fx-field :is(select, input):focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fx-field input::placeholder { color: #6b7280; opacity: 1; }
.fx-reset { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); color: var(--ink);
  font-weight: 500; font-size: 14px; cursor: pointer; transition: background-color .15s var(--ease); }
.fx-reset:hover { background: var(--surface); }
.fx-reset:active { transform: translateY(1px); }
.fx-reset:disabled { opacity: .45; cursor: not-allowed; }
.fx-flag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.5; color: var(--warn-ink); background: var(--warn-bg); vertical-align: 2px; letter-spacing: .02em; }
.fx-flag--warn { color: #fff; background: var(--neg); }
.fx-note { margin-top: 14px; padding: 12px 16px; border: 1px solid #fcd34d; background: #fffbeb; border-radius: var(--r-s); color: var(--text); max-width: 72ch; }
.fx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.fx-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.fx-crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fx-crumbs i { font-style: normal; color: var(--line-2); }
.fx-crumbs [aria-current] { color: var(--text); }

/* ---------------------------------------------------------------- charts */
.fx-chart { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 24px; width: 100%; height: 100%;
  font: 400 12px/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-chart__y, .fx-chart__plot, .fx-chart__x { position: relative; min-width: 0; }
.fx-chart__y span { position: absolute; right: 8px; translate: 0 -50%; }
.fx-chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fx-chart__note { position: absolute; right: 0; top: -2px; font-size: 11px; color: var(--muted); background: var(--bg); padding: 0 4px; }
.fx-chart__x { grid-column: 2; }
.fx-chart__x span { position: absolute; top: 8px; translate: -50% 0; white-space: nowrap; }
.fx-grid { stroke: var(--line); stroke-width: 1; }
.fx-grid--base { stroke: #9ca3af; stroke-dasharray: 3 3; }
.fx-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke: var(--line-1); }
.fx-line--0 { stroke: var(--accent); stroke-width: 2.25; }
.fx-line--2 { stroke: var(--line-2c); stroke-dasharray: 6 4; }
.fx-key { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--line-1); flex: none; }
.fx-key--0 { background: var(--accent); }
.fx-key--2 { background: repeating-linear-gradient(90deg, var(--line-2c) 0 4px, transparent 4px 6px); }

/* ---------------------------------------------------------------- a fund opened (home window, the table's row) */
.fx-detail { padding: 20px 24px 24px; font-variant-numeric: tabular-nums; }
.fx-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.fx-detail__name { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.fx-detail__meta { margin-top: 2px; color: var(--muted); font-size: 13px; }
.fx-detail__links { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-detail__link { appearance: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--bg); color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.fx-detail__link:hover { background: var(--surface); }
.fx-detail__link:active { transform: translateY(1px); }
.fx-detail__add { border-color: var(--accent); color: var(--accent-d); }
.fx-detail__add:hover { background: var(--accent-soft); }
.fx-detail__add[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.fx-detail__add:disabled { opacity: .55; cursor: not-allowed; border-color: var(--line-2); color: var(--muted); background: var(--surface); }
.app .fx-detail { border: 0; border-radius: 0; box-shadow: none; }
.fx-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx-figs > div { padding: 10px 14px; }
.fx-figs > div:first-child { padding-left: 0; }
.fx-figs > div + div { box-shadow: inset 1px 0 0 var(--line); }
.fx-figs dt { color: var(--muted); font-size: 12px; }
.fx-figs dd { margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--ink); }
.fx-figs--costs dd { font-size: 15px; }
.fx-detail__chart { margin-top: 18px; }
.fx-detail__label { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.fx-detail__chart .fx-chart { height: 214px; }
@media (max-width: 1099px) { .fx-figs--costs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-figs--costs > div:nth-child(3) { box-shadow: none; } .fx-figs--costs > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 639px) {
  .fx-detail { padding: 16px; }
  .fx-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-figs > div:nth-child(odd) { box-shadow: none; }
  .fx-figs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fx-detail__chart .fx-chart { height: 180px; }
  .fx-tab, .fx-detail__link { min-height: 44px; }
}

/* ---------------------------------------------------------------- home */
.fk-hero { padding: 48px 0 36px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.fk-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.fk-hero__lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 58ch; }
.fk-hero__asof { margin-top: 14px; font-size: 13px; color: var(--muted); }
.fk-search { margin-top: 26px; display: flex; gap: 8px; padding: 6px; max-width: 660px; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.fk-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fk-search input { flex: 1; min-width: 0; height: 46px; border: 0; padding: 0 12px; font-size: 17px; background: none; color: var(--ink); }
.fk-search input:focus { outline: none; }
.fk-search input::placeholder { color: #6b7280; }

/* search suggestions: a list floating under a search field (fixed in <body>, so no card clips it; Lift: it floats).
   Each row: the name with the typed letters in bold, a muted line, and on the right what the row is. */
.fk-sg { position: fixed; z-index: 45; overflow: auto; overscroll-behavior: contain; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lift); font-variant-numeric: tabular-nums; }
/* it grows from the field and shrinks away faster (transitions.dev menu dropdown; app.js mountSuggest) */
.t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity   var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}
.t-dropdown[data-origin="top-right"]     { transform-origin: top right; }
.t-dropdown[data-origin="top-center"]    { transform-origin: top center; }
.t-dropdown[data-origin="bottom-left"]   { transform-origin: bottom left; }
.t-dropdown[data-origin="bottom-center"] { transform-origin: bottom center; }
.t-dropdown[data-origin="bottom-right"]  { transform-origin: bottom right; }

.t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity   var(--dropdown-close-dur) var(--dropdown-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-dropdown { transition: none !important; }
}
.fk-sg__list { margin: 0; padding: 6px; list-style: none; }
.fk-sg__opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 10px; border-radius: var(--r-s); cursor: pointer;
  transition: background-color .15s var(--ease); }
.fk-sg__opt[aria-selected="true"] { background: var(--accent-soft); }
.fk-sg__opt[aria-selected="true"] .fk-sg__label { color: var(--accent-d); }
.fk-sg__main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fk-sg__label, .fk-sg__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-sg__label { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.fk-sg__label mark { background: none; color: inherit; font-weight: 700; }
.fk-sg__sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.fk-sg__type { flex: none; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted);
  font-size: 12px; font-weight: 600; line-height: 1.5; }
.fk-sg__opt--all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-s) var(--r-s); }
.fk-sg__opt--all .fk-sg__label { color: var(--accent-d); font-weight: 600; }
.fk-sg__opt--all .fk-sg__type { background: var(--bg); }
.fk-sg__none { padding: 12px 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 639px) { .fk-sg__opt { min-height: 52px; } .fk-sg__label { font-size: 16px; } }
.fk-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fk-chips__label { font-size: 14px; color: var(--muted); margin-right: 2px; }
.fk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.fk-chip em { font-style: normal; color: var(--muted); font-weight: 400; }
.fk-chip:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-d); }
.fk-chip:active { transform: translateY(1px); }
.fk-section { padding: 56px 0; }
.fk-section + .fk-section { border-top: 1px solid var(--line); }
.fk-section--soft { background: var(--surface); }
.fk-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.fk-head p { margin-top: 6px; color: var(--muted); max-width: 64ch; }
@media (max-width: 639px) {
  .fk-hero { padding: 28px 0 24px; }
  .fk-search { flex-wrap: wrap; }
  .fk-search .btn { width: 100%; }
  .fk-section { padding: 40px 0; }
}

/* the home window: a category's list beside the opened fund */
.app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; height: 620px; }
.app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app__pane + .app__pane { border-left: 1px solid var(--line); overflow-y: auto; }
.fx-list { display: flex; flex-direction: column; height: 100%; font-variant-numeric: tabular-nums; }
.fx-list__bar { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fx-list__cols { display: flex; justify-content: space-between; padding: 8px 52px 8px 16px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); border-bottom: 1px solid var(--line); }
.fx-rows { margin: 0; padding: 0; list-style: none; flex: 1 1 auto; overflow: hidden; }
.fx-rows > li[hidden] { display: none; }
.fx-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; border-bottom: 1px solid var(--line); transition: background-color .15s var(--ease); }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 4px 10px 16px;
  color: inherit; text-decoration: none; position: relative; }
.fx-rows li:hover { background: var(--surface); }
.fx-row:active { opacity: .85; }
.fx-row:focus-visible { outline-offset: -2px; }
.fx-rows li:has(.fx-row[aria-current="true"]) { background: var(--accent-soft); }
.fx-row[aria-current="true"] .fx-row__name { color: var(--accent-d); }
.fx-row__name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.3; }
.fx-row__sub { grid-column: 1; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fx-row__ret { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; color: var(--ink); }
.fx-list__foot { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.fx-list__all { color: var(--accent); font-weight: 600; text-decoration: none; }
.fx-list__all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .app__pane--list { height: 540px; }
  .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 639px) { .app__pane--open { display: none; } .app__pane--list { height: auto; } .fx-rows { overflow: visible; } }

/* compare and rankings blocks */
.fk-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.fk-compare { padding: 28px; }
.fk-compare p { margin-top: 10px; color: var(--muted); }
.fk-sample { margin-top: 18px; }
.fk-sample__keys { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fk-sample__keys li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fk-sample__keys li span { font-weight: 600; color: var(--ink); }
.fk-sample__keys small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.fk-sample__keys b { text-align: right; color: var(--ink); }
.fk-sample__chart { height: 190px; margin-top: 12px; }
.fk-compare__go { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.fk-ranks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.fk-ranks li { border-bottom: 1px solid var(--line); }
.fk-ranks a { display: grid; gap: 2px; padding: 14px 0; min-height: 44px; text-decoration: none; }
.fk-ranks a:hover b { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.fk-ranks a:active { opacity: .8; }
.fk-ranks b { color: var(--ink); font-size: 16px; }
.fk-ranks span { color: var(--muted); font-size: 14px; }
@media (max-width: 899px) { .fk-two { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .fk-ranks { grid-template-columns: 1fr; } .fk-compare { padding: 20px; } }

/* how we compute */
.fk-method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.fk-method article { padding: 18px 0 4px; }
.fk-method h3 { font-size: 16px; }
.fk-method p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.fk-fresh { margin-top: 40px; display: grid; gap: 20px; }
.fk-fresh > div:first-child { max-width: 72ch; }
.fx-st__table td + td, .fx-st__table th + td, .fx-st__table th + th { padding-left: 12px; }
.fk-fresh p { margin-top: 8px; color: var(--muted); }
.fk-cover { margin-top: 16px; list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.fk-cover li { padding-left: 18px; position: relative; }
.fk-cover li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fk-cover li.is-gap::before { background: var(--warn-ink); }
.fx-st { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 4px 20px 8px; font-variant-numeric: tabular-nums; }
.fx-st__table { width: 100%; border-collapse: collapse; align-self: start; font-size: 14px; }
.fx-st__table th, .fx-st__table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.fx-st__table tr:last-child > * { border-bottom: 0; }
.fx-st__table thead th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--line-2); }
.fx-st__table tbody th { font-weight: 600; color: var(--ink); }
.fx-st__n, .fx-st__freq { color: var(--muted); }
.fx-st__table .fx-st__date { text-align: right; color: var(--ink); }
.fx-st__table thead .fx-st__date { color: var(--muted); }
@media (max-width: 1099px) { .fk-method { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fk-fresh { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .fx-st { grid-template-columns: 1fr; } .fx-st__table + .fx-st__table thead { display: none; } }
@media (max-width: 639px) { .fk-method { grid-template-columns: 1fr; } .fx-st__freq { display: none; } }

/* questions and glossary */
.fk-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.fk-qa { margin-top: 20px; border-top: 1px solid var(--line); }
.fk-qa details { border-bottom: 1px solid var(--line); }
.fk-qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.fk-qa summary::-webkit-details-marker { display: none; }
.fk-qa summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.fk-qa details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fk-qa summary:hover { color: var(--accent-d); }
.fk-qa details p { padding: 0 0 16px; color: var(--text); max-width: 60ch; }
.fx-gloss { margin-top: 20px; display: grid; border-top: 1px solid var(--line); }
.fx-gloss > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fx-gloss dt { font-weight: 600; color: var(--ink); }
.fx-gloss dd { color: var(--text); }
@media (max-width: 899px) { .fk-faq { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 639px) { .fx-gloss > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: 0; padding: 40px 0 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.fk-foot { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.fk-foot p { margin-top: 10px; max-width: 40ch; }
.fk-foot h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fk-foot ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 2px; }
.fk-foot a, .footer__legal a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.fk-foot a:hover, .footer__legal a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.footer__legal > span:first-child { margin-right: auto; }
.fx-page__legal { max-width: 72ch; margin-bottom: 16px; }
@media (max-width: 899px) { .fk-foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .fk-foot { grid-template-columns: 1fr; gap: 20px; } .fk-foot a, .footer__legal a { min-height: 44px; } }

/* ---------------------------------------------------------------- the compare tray: follows the visitor on every page */
.fk-tray { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 48px)); padding: 10px 10px 10px 18px;
  background: var(--ink); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lift); }
.fk-tray__text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.fk-tray__text b { display: block; font-size: 15px; }
.fk-tray__text span { display: block; color: #c7cdd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fk-tray .btn--primary { background: #fff; color: var(--ink); }
.fk-tray .btn--primary:hover { background: var(--accent-soft); }
.fk-tray__clear { appearance: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #c7cdd6; cursor: pointer; display: grid; place-items: center; }
.fk-tray__clear:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fk-tray__clear:active { transform: translateY(1px); }
.fk-tray :focus-visible { outline-color: #fff; }
html.has-tray body { padding-bottom: 88px; }
/* it rises in, and goes faster than it came (transitions.dev toast; app.js syncTray) */
.t-toast {
  opacity: 0;
  transform: translateY(var(--toast-distance)) scale(var(--toast-scale));
  filter: blur(var(--toast-blur));
  will-change: transform, opacity, filter;
  transition:
    opacity var(--toast-close) var(--toast-ease),
    transform var(--toast-close) var(--toast-ease),
    filter var(--toast-close) var(--toast-ease);
}
.t-toast.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity var(--toast-open) var(--toast-ease),
    transform var(--toast-open) var(--toast-ease),
    filter var(--toast-open) var(--toast-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-toast { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 639px) { .fk-tray { left: 8px; right: 8px; bottom: 8px; max-width: none; padding-bottom: calc(10px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------------------------- sub-pages */
.tool { padding: 32px 0 64px; }
.tool__head { display: grid; gap: 10px; margin-bottom: 24px; max-width: 900px; }
.tool__head h1 { font-size: clamp(28px, 1.6vw + 18px, 38px); }

/* the 404 page */
.fx-404 { display: grid; gap: 12px; max-width: 660px; padding: 24px 0 40px; }
.fx-404 h1 { font-size: clamp(28px, 1.6vw + 18px, 38px); }
.fx-404__code { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.fx-404 .fk-search { margin-top: 10px; }
.fx-404__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; }

/* the table page */
.fx-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; padding: 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.fx-filters__more { display: contents; }
.fx-filters__toggle { display: none; }
.fx-help { border-bottom: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.fx-help summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; color: var(--accent-d); font-weight: 600; list-style: none; }
.fx-help summary::-webkit-details-marker { display: none; }
.fx-help summary::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }
.fx-help summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-help__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; padding: 0 16px 16px; }
.fx-help__list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.fx-help__list dt { font-weight: 700; color: var(--ink); }
.fx-help__list dd { color: var(--text); }
.fx-cbar { display: none; }
.fx-table__wrap { overflow-x: auto; }
.fx-table { width: 100%; border-collapse: collapse; min-width: 1060px; font-size: 14.5px; }
.fx-table th, .fx-table td { padding: 10px 9px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fx-table thead th { padding: 0; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-2); }
.fx-sort { appearance: none; width: 100%; min-height: 42px; padding: 10px 9px; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; cursor: pointer;
  display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.fx-sort::after { content: ""; flex: none; width: 10px; height: 10px; background: currentColor; opacity: .4;
  -webkit-mask: var(--fx-sort-i) center / contain no-repeat; mask: var(--fx-sort-i) center / contain no-repeat;
  --fx-sort-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 3.8 5 1.8l2 2M3 6.2l2 2 2-2' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fx-sort:hover { color: var(--ink); background: var(--surface-2); }
.fx-sort:focus-visible { outline-offset: -2px; }
th[aria-sort="ascending"] .fx-sort, th[aria-sort="descending"] .fx-sort { color: var(--accent-d); }
th[aria-sort="ascending"] .fx-sort::after, th[aria-sort="descending"] .fx-sort::after { opacity: 1; }
th[aria-sort="ascending"] .fx-sort::after { --fx-sort-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 8.5v-7M2.5 4 5 1.5 7.5 4' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
th[aria-sort="descending"] .fx-sort::after { --fx-sort-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1.5v7M2.5 6 5 8.5 7.5 6' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fx-table th.fx-col-name .fx-sort { justify-content: flex-start; }
.fx-table .fx-col-name { text-align: left; white-space: normal; min-width: 260px; }
.fx-table .fx-col-pick, .fx-table .fx-col-open { width: 48px; padding: 0 6px; text-align: center; }
.fx-table tbody th.fx-col-name { position: sticky; left: 0; z-index: 1; background: var(--bg); font-weight: 400; }
.fx-trow { transition: background-color .12s var(--ease); }
.fx-trow:hover, .fx-trow:hover th.fx-col-name { background: #fafbfc; }
.fx-trow.is-open, .fx-trow.is-open th.fx-col-name { background: var(--accent-soft); }
.fx-trow__name { display: block; font-weight: 600; color: var(--ink); }
.fx-trow__sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.fx-trow .is-key { font-weight: 700; color: var(--ink); }
.fx-table th a { color: inherit; text-decoration: none; }
.fx-table th a:hover .fx-trow__name { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.fx-open { appearance: none; width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--r-s); background: none; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; }
.fx-open svg { transition: transform .2s var(--ease); }
.fx-open[aria-expanded="true"] svg { transform: rotate(180deg); }
.fx-open:hover { color: var(--ink); background: var(--surface-2); }
.fx-open:active { transform: translateY(1px); }
.fx-pickl { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.fx-pickl__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-pick { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.fx-pick:disabled { opacity: .35; cursor: not-allowed; }
.fx-tdetail > td { padding: 0; text-align: left; white-space: normal; background: var(--surface); }
/* the opened fund's detail grows to its height and shrinks back (transitions.dev accordion; fondy.js) */
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--acc-collapse) var(--acc-ease),
    filter var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--acc-expand) var(--acc-ease),
    filter var(--acc-expand) var(--acc-ease);
}
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}

@media (prefers-reduced-motion: reduce) {
  .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron {
    transition: none !important;
  }
}
.fx-tdetail .fx-detail { max-width: 900px; margin: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.fx-empty { padding: 32px 16px !important; text-align: left !important; white-space: normal !important; color: var(--text); }
.fx-empty button { margin-left: 8px; }
.fx-tool__note { margin-top: 16px; max-width: 75ch; color: var(--muted); }
/* the header row stays in view while the table scrolls, where the table fits the page width (no sideways scroll) */
@media (min-width: 1140px) {
  .fx-tool:has(.fx-table:not(.fx-table--rank)) { overflow: visible; }
  .fx-tool:has(.fx-table:not(.fx-table--rank)) .fx-table__wrap { overflow: visible; }
  .fx-table:not(.fx-table--rank) thead th { position: sticky; top: var(--nav); z-index: 3; }
}
@media (max-width: 899px) { .fx-help__list { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  /* the filters behind one button; search and categories stay */
  .fx-filters { gap: 10px; }
  .fx-filters .fx-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .fx-filters .fx-tab { flex: none; }
  .fx-filters__toggle { display: inline-flex; }
  .fx-filters__more { display: none; }
  .fx-filters.is-more .fx-filters__more { display: grid; gap: 10px; width: 100%; }
  .fx-field, .fx-field :is(select, input) { width: 100%; min-width: 0; }
  .fx-field :is(select, input), .fx-reset { min-height: 44px; }
  .fx-field--q { flex: 1 1 100%; }
  /* a card per fund: name, three key figures, the rest under the toggle */
  .fx-table { min-width: 0; }
  .fx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fx-table, .fx-table tbody, .fx-table tr { display: block; }
  .fx-trow { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .fx-table .fx-trow > * { padding: 0; border: 0; text-align: left; }
  .fx-table .fx-trow th.fx-col-name { grid-column: 1 / -1; order: -1; position: static; background: none; min-width: 0; }
  .fx-trow td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .fx-trow td[data-label] { font-size: 15px; }
  .fx-trow:not(.is-open) td.fx-more { display: none; }
  .fx-table .fx-trow .fx-col-pick { grid-column: 1 / span 2; order: 10; width: auto; text-align: left; }
  .fx-pickl { width: auto; height: 44px; gap: 10px; grid-auto-flow: column; justify-content: start; padding-right: 12px; }
  .fx-pickl__t { position: static; width: auto; height: auto; clip: auto; font-size: 14px; color: var(--text); }
  .fx-table .fx-trow .fx-col-open { grid-column: 3; order: 11; width: auto; justify-self: end; }
  .fx-open { width: 44px; height: 44px; }
  .fx-tdetail, .fx-tdetail > td { display: block; }
  .fx-tdetail .fx-detail { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
}

/* a fund's page */
.fx-page { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.fx-page .fx-detail { padding: 24px; }
.fx-page__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fx-page__add { min-height: 42px; padding: 0 16px; }
.fx-page__chart { margin-bottom: 8px; }
.fx-page__chart .fx-chart { height: 264px; }
.fx-page__h3 { margin: 28px 0 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fx-page__side .fx-page__h3 { margin-top: 0; }
/* what the fund invests in: the objective's opening, the whole text behind a toggle, its source in small type */
.fx-about p { margin: 0; max-width: 70ch; font-size: 16px; line-height: 1.6; color: var(--text); }
.fx-about__more { margin-top: 6px; }
.fx-about__more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 2px; border-radius: 4px;
  color: var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; transition: color .15s var(--ease); }
.fx-about__more summary::-webkit-details-marker { display: none; }
.fx-about__more summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s var(--ease); }
.fx-about__more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.fx-about__more summary:hover { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.fx-about__more summary:active { transform: translateY(1px); }
.fx-about__more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fx-about__full { display: grid; gap: 8px; max-width: 70ch; }
.fx-about__list { margin: 0; padding-left: 1.25em; display: grid; gap: 4px; font-size: 16px; line-height: 1.6; color: var(--text); }
.fx-about__list li::marker { color: var(--muted); }
/* opened: the whole text replaces the opening instead of repeating it below */
.fx-about:has(.fx-about__more[open]) > p:first-child { display: none; }
.fx-about__more[open] { margin-top: 0; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.fx-about__close, .fx-about__more[open] .fx-about__open { display: none; }
.fx-about__more[open] .fx-about__close { display: inline; }
.fx-about .fx-about__src { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* what the fund holds: each breakdown its manager shows, a share and a bar of it per line */
.fx-hold { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 36px; }
.fx-hold__h { margin: 0 0 10px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.fx-hold__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fx-hold__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; font-size: 14px; line-height: 1.35; }
.fx-hold__label { color: var(--text); overflow-wrap: anywhere; }
.fx-hold__val { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fx-hold__bar { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.fx-hold__bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  transform: scaleX(var(--w)); transform-origin: left center; }
.fx-hold__list .is-other .fx-hold__label { color: var(--muted); }
.fx-hold__list .is-other .fx-hold__bar::before { background: var(--line-2); }
.fx-hold__src { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 639px) { .fx-about__more summary { min-height: 44px; } }
.fx-page__h2 { font-size: 22px; margin-bottom: 12px; }
.fx-figs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; }
.fx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.fx-facts > div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.fx-facts dt { font-size: 13px; color: var(--muted); }
.fx-facts dd { font-size: 16px; font-weight: 600; color: var(--ink); }
.fx-facts dd small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.fx-facts--one { grid-template-columns: 1fr; }
.fx-page__links { display: grid; gap: 10px; margin-top: 18px; font-size: 15px; }
.fx-page__more { margin-top: 40px; }
.fx-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fx-links li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fx-links a { display: grid; gap: 2px; color: var(--ink); text-decoration: none; min-height: 44px; align-content: center; }
.fx-links a:hover .fx-trow__name { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.fx-links b { font-weight: 700; color: var(--ink); }
.fx-links__fig { display: grid; justify-items: end; gap: 2px; }
.fx-links__fig small { font-size: 12px; font-weight: 400; color: var(--muted); }
.fx-links--wide .fx-trow__name { font-size: 17px; }
.fx-links--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .fx-page { grid-template-columns: 1fr; } .fx-figs--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-links, .fx-links--wide { grid-template-columns: 1fr; }
  .fx-figs--5 > div:nth-child(4) { box-shadow: none; } .fx-figs--5 > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 639px) {
  .fx-figs--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-figs--5 > div:nth-child(3) { border-top: 0; box-shadow: inset 1px 0 0 var(--line); }
  .fx-figs--5 > div:nth-child(5) { box-shadow: inset 1px 0 0 var(--line); }
  .fx-figs--5 > div:nth-child(4) { padding-left: 0; }
  .fx-page__chart .fx-chart { height: 210px; }
  .fx-page__add { width: 100%; min-height: 48px; }
}

/* rankings */
.fx-table--rank { min-width: 720px; }
.fx-table--rank thead th { padding: 10px 12px; }
.fx-table--rank .fx-col-rank { width: 52px; text-align: left; color: var(--muted); font-weight: 600; }
@media (max-width: 639px) {
  .fx-table--rank { min-width: 0; }
  .fx-table--rank thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fx-table--rank, .fx-table--rank tbody, .fx-table--rank tr { display: block; }
  .fx-table--rank tr { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .fx-table--rank tr > * { padding: 0; border: 0; text-align: left; }
  .fx-table--rank .fx-col-rank { grid-row: 1; grid-column: 1; }
  .fx-table--rank th.fx-col-name { grid-row: 1; grid-column: 2 / 4; min-width: 0; position: static; background: none; }
  .fx-table--rank td.fx-col-pick { grid-row: 1; grid-column: 4; justify-self: end; width: auto; }
  .fx-table--rank td[data-label] { grid-row: 2; }
  .fx-table--rank td.is-key { grid-column: 2; }
  .fx-table--rank td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .fx-table--rank .fx-col-extra { display: none; }
}

/* the comparison page */
.fx-shared { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); font-size: 14px; color: var(--ink); }
.fx-shared p { flex: 1 1 320px; }
.fx-cmpp__pick { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); }
.fx-cmpp__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.fx-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--bg); }
.fx-chip button { appearance: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.fx-chip button:hover { background: var(--surface-2); color: var(--ink); }
.fx-chip button:active { transform: translateY(1px); }
.fx-addrow { display: flex; gap: 8px; }
.fx-addrow input { flex: 1; }
.fx-addmsg { min-height: 18px; font-size: 13px; font-weight: 400; color: var(--neg); }
.fx-periods { display: flex; gap: 4px; flex-wrap: wrap; }
.fx-cmpp__chart { padding: 18px 16px 8px; height: 380px; }
.fx-cmpp__chart .fx-chart { height: 340px; }
.fx-cmpp__note { padding: 0 16px 14px; color: var(--muted); font-size: 13px; }
.fx-cmpp__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.fx-cmpp__table th, .fx-cmpp__table td { padding: 11px 16px; border-top: 1px solid var(--line); text-align: right; }
.fx-cmpp__table thead th { font-weight: 700; vertical-align: bottom; color: var(--ink); background: var(--surface); }
.fx-cmpp__table thead a { color: inherit; text-decoration: none; }
.fx-cmpp__table thead a:hover { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.fx-cmpp__table thead .fx-key { vertical-align: middle; margin: 0 8px 2px 0; }
.fx-cmpp__table tbody th { text-align: left; font-weight: 400; color: var(--muted); font-size: 14px; }
.fx-cmpp__table .is-best { color: var(--accent-d); font-weight: 700; }
.fx-cmpp__table .is-best::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.fx-cmpp__table small { color: var(--muted); font-size: 12px; font-weight: 400; }
.fx-cmpp__empty { padding: 32px 16px; color: var(--text); display: grid; gap: 8px; }
@media (max-width: 639px) {
  .fx-cmpp__chart { height: 280px; padding: 14px 8px 8px; } .fx-cmpp__chart .fx-chart { height: 240px; }
  .fx-cmpp__table { table-layout: fixed; }
  .fx-cmpp__table tr > :first-child { width: 28%; }
  .fx-cmpp__table th, .fx-cmpp__table td { padding: 9px 6px; font-size: 13px; overflow-wrap: anywhere; hyphens: auto; }
  .fx-addrow .fx-reset { min-width: 80px; }
}

@media print { .nav, .fk-tray, .footer { display: none; } }

/* the risk indicator: the KID's 7 cells */
.fk-sri { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.fk-sri i { width: 7px; height: 10px; border-radius: 2px; background: var(--line); }
.fk-sri i.on { background: #64748b; }
.fk-sri b { margin-left: 6px; font-weight: 600; font-size: 13px; color: var(--ink); }
.fx-row__sub .fk-sri i { width: 6px; height: 8px; }
.fx-row__sub .fk-sri b { font-size: 12px; font-weight: 500; color: var(--muted); }

/* a compact compare box for lists: ticked when the fund is in the comparison */
.fk-pickbtn { appearance: none; width: 44px; height: 44px; margin: 0 auto; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.fk-pickbtn::before { content: ""; width: 18px; height: 18px; border: 1.5px solid #8b93a1; border-radius: 4px; background: var(--bg); transition: background-color .12s var(--ease), border-color .12s var(--ease); }
.fk-pickbtn:hover::before { border-color: var(--accent); }
.fk-pickbtn[aria-pressed="true"]::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--accent); }
.fk-pickbtn:disabled { cursor: not-allowed; }
.fk-pickbtn:disabled::before { opacity: .35; }
.fk-pickbtn:focus-visible { outline-offset: -6px; }
.fk-pickbtn:active::before { transform: scale(.92); }

/* a share class told apart in the comparison: the tag never breaks; on a phone the ISIN's last digits */
.fx-tag { display: block; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.fx-chip .fx-tag { display: inline; margin-left: 4px; }

/* the table's header buttons sort on a desktop; the select stays for phones, where the header is hidden */
@media (min-width: 1024px) { .fx-field--sort { display: none; } }
/* the comparison header: one line on a desktop, the class tag beside the name; at most three lines on a phone */
.fx-cmpp__table thead .fx-tag { display: inline; margin-left: 4px; }
@media (max-width: 639px) {
  .fx-cmpp__table thead .fx-name { font-size: 12px; line-height: 1.3; hyphens: auto; }
  .fx-cmpp__table thead .fx-tag { display: block; margin: 2px 0 0; white-space: normal; font-size: 11px; }
  .fx-tag span { white-space: nowrap; }
  .fx-cmpp__table thead a { display: block; }
  .fx-cmpp__table .fk-sri { gap: 1px; }
  .fx-cmpp__table .fk-sri i { width: 4px; height: 8px; border-radius: 1px; }
  .fx-cmpp__table .fk-sri b { margin-left: 3px; font-size: 12px; }
}

/* the table's last row while more rows wait: drawn when it scrolls near, or by its button */
.fx-morerow > td { padding: 14px 16px !important; text-align: center !important; background: var(--surface); }
@media (max-width: 639px) { .fx-table .fx-morerow { display: block; } .fx-table .fx-morerow > td { display: block; } }
