/* Wealthi — wealthi.in
   Palette taken from the brand logo and the Wealthi report style. */

:root {
  --navy: #1F3864;
  --navy-deep: #16284A;
  --blue: #2B7BD8;
  --orange: #EB6834;
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --ink: #1A1D23;
  --body: #4A4F57;
  --muted: #767C86;
  --rule: #D8DCE3;
  --rule-strong: #B4BCC7;
  --fill: #F0F2F6;
  --tint: #EFF3F8;
  --green: #2E9E4F;
  --red: #C0392B;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 64ch;
  --wide: 1160px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body { margin: 0; background: var(--white); color: var(--body); font: 400 17px/1.65 var(--sans); }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .6em; font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.18; letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; line-height: 1.35; color: var(--ink); margin-bottom: .45em; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
strong { color: var(--ink); font-weight: 600; }
ul { padding-left: 1.1rem; max-width: var(--measure); }
li { margin-bottom: .45em; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 4rem, var(--wide)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 2.25rem, var(--wide)); } }
.narrow { max-width: 68ch; }
section { padding-block: clamp(2.4rem, 4.4vw, 3.6rem); }
.hairline { border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------- header -- */
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 1.25rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .62rem; margin-right: auto; text-decoration: none; }
.brand .mark { height: 32px; width: auto; display: block; }
.wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--sans);
  font-weight: 600; font-size: 1.22rem; color: var(--navy); letter-spacing: -.012em; }
.wordmark small { font-size: .5rem; letter-spacing: .21em; font-weight: 500; color: var(--muted);
  margin-top: .34rem; text-transform: uppercase; }
.wordmark.light { color: #fff; }
.wordmark.light small { color: #8E9CB4; }
.foot-brand { margin-bottom: 1.1rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; align-items: center; gap: 1.05rem; list-style: none; margin: 0; padding: 0; max-width: none; }
.nav-list > li { margin: 0; position: relative; }
.nav-list > li > a { color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: .45rem 0; display: inline-block; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-list > li > a:hover { border-bottom-color: var(--rule-strong); }
.nav-list > li > a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--navy); }
.has-sub > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); }
.submenu { position: absolute; left: -1rem; top: 100%; min-width: 15.5rem; background: #fff;
  border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 10px 28px rgba(31,56,100,.13);
  padding: .4rem 0; margin: 0; list-style: none; max-width: none; display: none; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: .42rem 1.1rem; font-size: .9rem; color: var(--ink); text-decoration: none; }
.submenu a:hover { background: var(--fill); color: var(--navy); }
.submenu .sub2 a { padding-left: 2.1rem; font-size: .85rem; color: var(--body); }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; background: none; border: 1px solid var(--rule-strong);
    border-radius: 3px; padding: .45rem .75rem; font: 500 .9rem var(--sans); color: var(--navy); cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1.25rem;
    display: none; max-height: 78vh; overflow-y: auto; box-shadow: 0 14px 28px rgba(31,56,100,.1); }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { padding: .7rem 0; border-bottom: 1px solid var(--rule); width: 100%; }
  .has-sub > a::after { display: none; }
  .submenu { display: block; position: static; border: 0; box-shadow: none; padding: .2rem 0 .6rem; min-width: 0; }
  .submenu a { padding: .4rem 0 .4rem .9rem; color: var(--body); }
  .submenu .sub2 a { padding-left: 1.9rem; }
  .nav-cta { margin-top: .9rem; text-align: center; }
}

/* --------------------------------------------------------------- sub-nav -- */
.subnav { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 70px; z-index: 50; }
.subnav-row { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.subnav-row::-webkit-scrollbar { display: none; }
.subnav-row a { padding: .8rem 0; font-size: .86rem; font-weight: 500; color: var(--body);
  text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav-row a:hover { color: var(--navy); }
.subnav-row a.on { color: var(--navy); border-bottom-color: var(--orange); }
.subnav-row.tier2 { border-top: 1px solid var(--rule); gap: 1.25rem; }
.subnav-row.tier2 a { font-size: .86rem; font-weight: 400; padding: .55rem 0; }
@media (max-width: 1180px) { .subnav { top: 70px; } }

/* --------------------------------------------------------------- buttons -- */
.btn { display: inline-block; font: 500 .93rem/1 var(--sans); text-decoration: none;
  padding: .78rem 1.25rem; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d4552a; color: #fff; }
.btn-ghost { border-color: var(--rule-strong); color: var(--navy); background: none; }
.btn-ghost:hover { background: var(--fill); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e9edf4; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ------------------------------------------------------------------ hero -- */
.hero { background: var(--navy); color: #C3CDDE; padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.1rem; color: #C3CDDE; max-width: 48ch; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.onemin { background: #fff; border-radius: 4px; padding: 1.6rem 1.7rem; }
.onemin h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.onemin ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.onemin li { color: var(--body); font-size: .97rem; padding: .8rem 0; border-top: 1px solid var(--rule); margin: 0; }
.onemin li:first-child { border-top: 0; padding-top: 0; }
.onemin b { color: var(--navy); font-weight: 600; }

.page-head { background: var(--navy); color: #C3CDDE; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.page-head h1 { color: #fff; margin-bottom: .5rem; }
.page-head .lede { color: #C3CDDE; font-size: 1.06rem; max-width: 60ch; margin-bottom: 0; }

/* ---------------------------------------------------------------- status -- */
.status { background: var(--fill); border-bottom: 1px solid var(--rule); padding-block: 1rem; }
.status p { margin: 0; max-width: none; font-size: .93rem; color: var(--ink); }
.status strong { color: var(--navy); }

/* ------------------------------------------------------------ section bits */
.sec-head { max-width: 62ch; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.sec-head p { font-size: 1.03rem; margin-bottom: 0; }

.cols { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.pillar { border-top: 2px solid var(--navy); padding-top: 1rem; }
.pillar p, .feature p, .risk p { font-size: .95rem; margin-bottom: 0; max-width: 44ch; }
.pillar h3 a { text-decoration: none; }
.feature { border-top: 1px solid var(--rule); padding-top: .9rem; }
.feature h3 { font-size: 1rem; }
.risk { border-left: 3px solid var(--orange); padding: .1rem 0 .1rem 1.1rem; }
.risk h3 { font-size: 1rem; }

/* ----------------------------------------------------------------- steps -- */
.steps { list-style: none; padding: 0; margin: 0; max-width: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap) clamp(2rem,4vw,3rem); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; grid-template-columns: 2.1rem 1fr; gap: .9rem; margin: 0;
  border-top: 1px solid var(--rule); padding-top: 1rem; }
.step-n { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--orange); line-height: 1; }
.step p { font-size: .95rem; margin-bottom: 0; max-width: 46ch; }

/* ------------------------------------------------------------ split + box -- */
.split { display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.factbox { background: var(--fill); border: 1px solid var(--rule); border-radius: 4px; padding: 1.3rem 1.4rem; }
.factbox h3 { font-size: .95rem; color: var(--navy); margin-bottom: .9rem; }
.factbox dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; font-size: .92rem; }
.factbox dt { color: var(--muted); }
.factbox dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.fitbox { border: 1px solid var(--rule); border-radius: 4px; padding: 1.3rem 1.5rem; }
.fitbox ul { margin: 0; padding-left: 1.1rem; max-width: none; }
.fitbox li { font-size: .96rem; }
.fitbox h3 { margin-bottom: .7rem; }
.fitbox.yes { border-left: 3px solid var(--green); }
.fitbox.yes li::marker { color: var(--green); }
.fitbox.no { border-left: 3px solid var(--red); }
.fitbox.no li::marker { color: var(--red); }

.held { border: 1px solid var(--rule-strong); border-left: 4px solid var(--orange);
  background: var(--white); padding: 1.15rem 1.35rem; border-radius: 3px; }
.held h3 { margin-bottom: .35rem; }
.held p { margin-bottom: 0; font-size: .95rem; max-width: 70ch; }

/* ------------------------------------------------------------------ band -- */
.band { background: var(--navy-deep); color: #C3CDDE; }
.band h2, .band h3 { color: #fff; }
.band p { color: #C3CDDE; }
.band .pillar { border-top-color: var(--orange); }
.band .feature { border-top-color: rgba(255,255,255,.2); }
.band .step { border-top-color: rgba(255,255,255,.2); }
.band .sec-head p { color: #C3CDDE; }

.common h2 { color: #fff; font-size: 1.4rem; margin-bottom: 1.5rem; }
.common h3 { color: #fff; font-size: 1rem; font-family: var(--sans); }
.common p { color: #C3CDDE; font-size: .95rem; max-width: 42ch; }
.common-foot { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.2);
  color: #fff !important; font-weight: 500; max-width: none !important; }

/* ---------------------------------------------------------------- funnels -- */
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr; } }
.fcard { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--navy);
  border-radius: 4px; padding: 1.4rem 1.5rem 1.6rem; }
.fcard.td { border-top-color: var(--orange); }
.fcard-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.fcard-top h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin: 0; }
.tag { font: 600 .68rem/1 var(--sans); letter-spacing: .06em; color: var(--blue);
  background: #E4EDFA; padding: .35rem .55rem; border-radius: 3px; white-space: nowrap; }
.tag.td { color: #B8470F; background: #FCE9E0; }
.fcard-desc { font-size: .92rem; margin: 0 0 1.3rem; max-width: 48ch; min-height: 2.9em; }

.fnl { display: flex; flex-direction: column; align-items: center; }
.fnl-row { width: var(--w); text-align: center; padding: .7rem .5rem .6rem; }
.fnl-row b { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.fnl-row span { display: block; font-size: .78rem; margin-top: .1rem; }
.fnl .a { background: var(--navy); color: #fff; clip-path: polygon(13% 0, 87% 0, 100% 100%, 0 100%); }
.fnl .b { background: #7FA8DA; color: #11274A; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.fnl .c { background: #D3E0F0; color: #11274A; }
.fnl.topdown .a { background: #D3E0F0; color: #11274A; clip-path: none; }
.fnl.topdown .b { background: #7FA8DA; clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); }
.fnl.topdown .c { background: var(--navy); color: #fff; clip-path: polygon(0 0, 100% 0, 87% 100%, 13% 100%); }
.fnl.topdown { flex-direction: column; }
.fnl.topdown .fnl-row:nth-child(1) { width: 100%; }
.fnl.topdown .fnl-row:nth-child(2) { width: 78%; }
.fnl.topdown .fnl-row:nth-child(3) { width: 52%; }

/* ----------------------------------------------------------------- table -- */
table.plain { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.plain th { background: var(--navy); color: #fff; text-align: left; font: 600 .88rem var(--sans); padding: .65rem .8rem; }
table.plain td { padding: .65rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain tbody tr:nth-child(even) td { background: #FAFBFC; }
table.plain td:first-child { font-weight: 500; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.band-low { color: var(--green); } .band-mid { color: #B8860B; } .band-high { color: var(--red); }

/* ------------------------------------------------------------------ form -- */
.form-wrap { background: var(--fill); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(1.4rem, 3vw, 2rem); }
form.waitlist { display: grid; gap: 1rem; max-width: 34rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 500 .89rem var(--sans); color: var(--ink); }
.field input, .field select, .field textarea { font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--rule-strong); border-radius: 3px; padding: .62rem .7rem; width: 100%; }
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; max-width: 44rem; }
.form-status { font-size: .94rem; margin: 0; padding: .7rem .9rem; border-radius: 3px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #E9F5EC; color: #1E6B35; border: 1px solid #BEE0C8; }
.form-status.warn { background: #FFF6E0; color: #7A5B00; border: 1px solid #F0DCA8; }

/* ---------------------------------------------------------------- footer -- */
.site-foot { background: var(--navy); color: #A8B5CA; padding-block: 3rem 2rem; font-size: .91rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.25rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { height: 34px; width: auto; margin-bottom: 1rem; }
.site-foot h4 { color: #fff; font-family: var(--sans); font-size: .88rem; font-weight: 600; margin-bottom: .8rem; }
.site-foot a { color: #C3CDDE; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .5rem; }
.site-foot p { max-width: 42ch; }
.legal { border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.5rem; font-size: .82rem; color: #8E9CB4; }
.legal p { max-width: none; margin-bottom: .6em; }
.legal p:last-child { margin-bottom: 0; }

/* ======================================================== infographic kit = */
.ico { width: 22px; height: 22px; display: block; }

/* stat strip */
.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
@media (max-width: 680px) { .statstrip { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--paper); padding: 1.1rem 1.2rem; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600; color: var(--navy); line-height: 1.1; }
.stat span { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* risk meter */
.meter { border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.2rem; background: var(--paper); }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.meter-head span { font-size: .82rem; color: var(--muted); }
.meter-head b { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.meter-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter-bar .seg { height: 11px; border-radius: 2px; background: var(--rule); }
.meter-bar .seg.on { background: #9DBBE0; }
.meter-bar .seg.here { background: var(--orange); }
.meter-ends { display: flex; justify-content: space-between; margin-top: .45rem;
  font-size: .74rem; color: var(--muted); }
.meter-cap { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; max-width: none; }

/* numbered flow */
.flowline { list-style: none; padding: 0; margin: 0; max-width: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.22); }
.flowline .fl { background: var(--navy-deep); margin: 0; padding: 1.25rem 1.2rem 1.35rem; position: relative; }
.flowline .fl-n { display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--orange); color: #fff;
  font: 600 .85rem var(--sans); margin-bottom: .7rem; }
.flowline h3 { color: #fff; font-size: .98rem; margin-bottom: .3rem; }
.flowline p { color: #C3CDDE; font-size: .88rem; margin: 0; max-width: 32ch; }
section:not(.band) .flowline { background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
section:not(.band) .flowline .fl { background: var(--paper); }
section:not(.band) .flowline h3 { color: var(--navy); }
section:not(.band) .flowline p { color: var(--body); }
@media (max-width: 900px) { .flowline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flowline { grid-template-columns: 1fr; } }

/* icon tiles */
.itiles { display: grid; gap: var(--gap); }
.itiles.cols-2 { grid-template-columns: repeat(2, 1fr); }
.itiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .itiles.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .itiles.cols-2, .itiles.cols-3 { grid-template-columns: 1fr; } }
.itile h3 { font-size: 1rem; margin-bottom: .3rem; }
.itile h3 a { text-decoration: none; color: var(--navy); }
.itile h3 a:hover { text-decoration: underline; }
.itile p { font-size: .92rem; margin: 0; max-width: 40ch; }
.itile-ic { display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 4px; background: #E7EDF6; color: var(--navy);
  margin-bottom: .75rem; }
.band .itile-ic { background: rgba(255,255,255,.12); color: #fff; }
.band .itile h3, .band .itile h3 a { color: #fff; }
.band .itile p { color: #C3CDDE; }

/* check lists */
.cklist { list-style: none; padding: 0; margin: 0; max-width: none; }
.cklist li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; font-size: .95rem;
  margin-bottom: .55rem; align-items: start; }
.cklist .mk { font-weight: 600; line-height: 1.5; }
.cklist.yes .mk { color: var(--green); }
.cklist.no .mk { color: var(--red); }

/* comparison table */
table.vs { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.vs thead th { background: var(--navy); color: #fff; font: 600 .9rem var(--sans);
  padding: .7rem .8rem; text-align: center; width: 15%; }
table.vs thead th:last-child { background: var(--orange); }
table.vs tbody th { text-align: left; font: 500 .94rem var(--sans); color: var(--ink);
  padding: .7rem .8rem; border-bottom: 1px solid var(--rule); }
table.vs td { text-align: center; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); }
table.vs tbody tr:nth-child(even) th, table.vs tbody tr:nth-child(even) td { background: #FAFBFC; }
table.vs .m { font-size: 1.1rem; font-weight: 600; }
table.vs .m.y { color: var(--green); }
table.vs .m.n { color: #C8CDD5; }
table.vs .m.p { color: #B8860B; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* donut */
.donutwrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; flex: 0 0 auto; }
.dlegend { list-style: none; padding: 0; margin: 0; max-width: none; font-size: .92rem; }
.dlegend li { display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; color: var(--ink); }
.dlegend .sw { width: .8rem; height: .8rem; border-radius: 2px; flex: 0 0 auto; }
.dlegend b { margin-left: auto; padding-left: 1.5rem; color: var(--navy); font-weight: 600; }

/* pull quote */
.pull { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45;
  color: var(--navy); border-left: 3px solid var(--orange); padding-left: 1.1rem;
  max-width: 54ch; margin: 0 0 1.25rem; }
.band .pull { color: #fff; }

/* two-column with sidebar */
.split2 { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start; }
@media (max-width: 880px) { .split2 { grid-template-columns: 1fr; } }
.sidecol > * + * { margin-top: 1.25rem; }

/* question boxes */
.qbox { border-top: 2px solid var(--navy); padding-top: 1rem; }
.qbox h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.qbox p { font-size: .95rem; margin: 0; max-width: 44ch; }

/* cta */
.ctabox { display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2rem); }
.ctabox h2 { margin-bottom: .35rem; font-size: 1.4rem; }
.ctabox p { margin: 0; font-size: .97rem; }
.ctasplit { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start; }
@media (max-width: 860px) { .ctasplit { grid-template-columns: 1fr; } }

/* hero one-minute rows */
.omrow { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; padding: .85rem 0;
  border-top: 1px solid var(--rule); align-items: start; }
.omrow:first-of-type { border-top: 0; padding-top: 0; }
.omrow .ico { color: var(--orange); width: 24px; height: 24px; margin-top: .1rem; }
.omrow b { display: block; color: var(--navy); font-size: .97rem; margin-bottom: .1rem; }
.omrow div { font-size: .9rem; color: var(--body); }

/* two-up form fields */
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .f2 { grid-template-columns: 1fr; } }
table.vs thead td { border-bottom: 2px solid var(--navy); }
table.vs.nohl thead th:last-child { background: var(--navy); }

/* Scroll hint when the sub-nav overflows on narrow screens. The bar stays
   position:sticky — that is already a positioned ancestor for the fade below,
   and switching it to relative cancelled the sticking while leaving top:70px
   in force, which dropped the bar 70px onto the page heading underneath it. */
@media (max-width: 1180px) {
  .subnav::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 42px;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%); pointer-events: none; }
}

/* ------------------------------------------------------- subscription ---- */
.subcols { display: grid; gap: 1.75rem; }
.subcols h3 { font-size: 1rem; margin-bottom: .7rem; }
.pricecard { border: 1px solid var(--rule); border-top: 4px solid var(--orange);
  border-radius: 4px; background: var(--paper); padding: 1.5rem 1.5rem 1.35rem; }
.pc-amt { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 600;
  color: var(--navy); line-height: 1; }
.pc-per { display: block; font-size: .88rem; color: var(--muted); margin-top: .35rem; }
.pc-rows { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem;
  margin: 1.25rem 0 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
  font-size: .9rem; }
.pc-rows span { color: var(--muted); }
.pc-rows b { color: var(--ink); font-weight: 500; text-align: right; }
.pricecard .btn { width: 100%; text-align: center; }
.pc-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; max-width: none; }
.foot-tag { font-family: var(--serif); font-size: 1.22rem; color: #fff; margin: 0 0 .5rem;
  letter-spacing: -.01em; }
.itiles + .pull { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ------------------------------------------------- planner calculator ---- */
.calcform { display: grid; gap: 1rem; align-content: start; }
.calcout .stat b { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.splitbar { height: 12px; border-radius: 3px; background: var(--orange); overflow: hidden;
  margin: 1rem 0 .6rem; }
.splitbar span { display: block; height: 100%; background: var(--navy); width: 0; }
.statstrip.calcout { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .statstrip.calcout { grid-template-columns: 1fr 1fr; } }


/* ===================================================== section rhythm === */
/* Alternate white / light tint down the page; navy bands keep their own
   colour. Cards switch to white on a tinted section so they stay distinct. */
main > section:nth-of-type(even):not(.band) { background: var(--tint); }
main > section:nth-of-type(even):not(.band).hairline { border-top-color: transparent; }
main > section:nth-of-type(even):not(.band)
  :is(.stat, .meter, .fcard, .factbox, .form-wrap, .ctabox, .pricecard, .held) {
  background: #fff;
}
main > section:nth-of-type(even):not(.band) table.plain td { background: #fff; }
main > section:nth-of-type(even):not(.band) table.plain tbody tr:nth-child(even) td {
  background: var(--paper);
}
main > section:nth-of-type(even):not(.band) table.vs tbody :is(th, td) { background: #fff; }
main > section:nth-of-type(even):not(.band) table.vs tbody tr:nth-child(even) :is(th, td) {
  background: var(--paper);
}
main > section:nth-of-type(even):not(.band) .itile-ic { background: #fff; }
main > section:nth-of-type(even):not(.band) .splitbar { background: var(--orange); }

/* ------------------------------------------------- fund category tables -- */
.fundcat + .fundcat { margin-top: clamp(2rem, 4vw, 3rem); }
.fundcat-head { border-left: 3px solid var(--orange); padding-left: .9rem; margin-bottom: .9rem; }
.fundcat-head h3 { font-family: var(--serif); font-size: 1.22rem; color: var(--navy); margin: 0; }
.fundcat-head p { font-size: .94rem; color: var(--muted); margin: .3rem 0 0; max-width: 72ch; }
table.fundtab { font-variant-numeric: tabular-nums; }
table.fundtab th:not(:first-child), table.fundtab td:not(:first-child) { text-align: right; width: 7.5%; }
table.fundtab td:first-child { min-width: 15rem; }
table.fundtab td.pend { color: #B4BCC6; }
.fundcat .asof { font-size: .82rem; color: var(--muted); margin: .55rem 0 0; }
.factbox.notice { border-left: 3px solid var(--blue); margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.factbox.notice p { margin: 0; font-size: .94rem; max-width: 80ch; }

/* ------------------------------------------- sample-data marking (TEMP) -- */
/* Remove together with the placeholder figures on mf-ranking. */
.factbox.warnbox { border: 1px solid var(--orange); border-left: 4px solid var(--orange);
  background: #FFF6F2; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.factbox.warnbox p { font-size: .94rem; max-width: 80ch; margin: 0 0 .7rem; }
.factbox.warnbox p:last-child { margin-bottom: 0; }
.warnlead { font: 600 1rem/1.4 var(--sans) !important; color: #A6391A; }
.warnfoot { font-size: .86rem !important; color: var(--muted); border-top: 1px solid #F0D4C7;
  padding-top: .7rem; }
.table-scroll.sampled { position: relative; }
.table-scroll.sampled::after { content: attr(data-sample); position: absolute; inset: 0;
  display: grid; place-items: center; pointer-events: none;
  font: 700 clamp(1.6rem, 5vw, 3rem)/1 var(--sans); letter-spacing: .22em;
  color: rgba(235, 104, 52, .13); text-transform: uppercase; }
table.fundtab tr.smprow td { background: #FFF6F2; border-bottom: 1px solid #F0D4C7;
  color: #A6391A; font: 500 .8rem var(--sans); text-align: left; padding: .4rem .8rem; }
table.fundtab td.smp { color: #9AA3AE; font-style: italic; }

/* --------------------------------------------------------- hero carousel -- */
.hero.hcar { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem); }
.hcar-view { overflow: hidden; }
.hcar-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hslide { min-width: 0; padding-right: 1px; }
.hero-h { color: #fff; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.1; letter-spacing: -.015em;
  margin: 0 0 .85rem; max-width: 26ch; }
.hero.hcar .lede { max-width: 54ch; min-height: 5.5em; }
.hcar-ctl { display: flex; align-items: center; gap: .55rem;
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem); }
.harrow { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 0 .15rem;
  transition: background .15s, border-color .15s; }
.harrow:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.hdots { display: flex; gap: .4rem; margin-inline: .35rem; }
.hdot { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .3); transition: background .2s, width .2s; }
.hdot[aria-current="true"] { background: var(--orange); width: 1.4rem; border-radius: 1rem; }
.harrow:focus-visible, .hdot:focus-visible { outline: 2px solid var(--orange);
  outline-offset: 2px; }
@media (max-width: 640px) { .hero.hcar .lede { min-height: 8.5em; } }
@media (prefers-reduced-motion: reduce) { .hcar-track { transition: none; } }

/* ------------------------------------------------------- fund explorer -- */
.fctl { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end;
  margin-bottom: 1rem; }
.fctl label { display: block; font: 500 .8rem/1.4 var(--sans); color: var(--muted);
  margin-bottom: .3rem; }
.fctl select, .fctl input { font: 400 .95rem var(--sans); color: var(--navy);
  padding: .5rem .7rem; border: 1px solid #D4DCE6; border-radius: 4px; background: #fff; }
.fctl select:focus, .fctl input:focus { outline: 2px solid var(--blue); outline-offset: 1px;
  border-color: var(--blue); }
#f-cat { min-width: 15rem; font-weight: 500; }
#f-search { min-width: 16rem; }
#f-meta { font: .85rem/1.4 var(--sans); color: var(--muted); margin: 0 0 .75rem; }
#f-table { overflow-x: auto; }

table.ftab { font-size: .88rem; font-variant-numeric: tabular-nums; }
table.ftab th { white-space: nowrap; cursor: pointer; user-select: none;
  text-align: left; padding: .6rem .7rem; }
table.ftab th.n, table.ftab td.n { text-align: right; }
table.ftab td { padding: .55rem .7rem; }
table.ftab td:first-child { font-weight: 400; }
table.ftab th:hover, table.ftab th.on { color: #FFD9C7; }
table.ftab th.on { background: #2A4677; }
table.ftab .arr { display: inline-block; width: .9em; text-align: center; }
table.ftab th.c-rank, table.ftab td.c-rank { text-align: right; width: 3.2rem; }
table.ftab td.c-name { min-width: 15rem; }
table.ftab .fn { display: block; color: var(--blue); font-weight: 500; text-decoration: none; }
table.ftab .fn:hover { text-decoration: underline; }
table.ftab .fsub { display: block; font-size: .76rem; color: var(--muted); margin-top: .12rem; }
table.ftab td.c-overall { font-weight: 700; color: var(--navy); }
table.ftab th.c-overall { border-left: 1px solid rgba(255,255,255,.25);
  border-right: 1px solid rgba(255,255,255,.25); }
table.ftab td.c-overall { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.vb { display: inline-block; padding: .12rem .55rem; border-radius: 999px;
  font: 600 .74rem/1.6 var(--sans); white-space: nowrap; }
.v-prefer { background: #E3F2E7; color: #1F6B36; }
.v-watch  { background: #FDF0DC; color: #8A5A12; }
.v-avoid  { background: #FBE3DC; color: #9B3A1C; }
.f-empty { padding: 1.5rem 0; color: var(--muted); font-size: .92rem; text-align: center; }
#fundapp .asof { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; max-width: 80ch; }
@media (max-width: 640px) {
  .fctl > div { flex: 1 1 100%; }
  .fctl select, .fctl input { width: 100%; min-width: 0; }
}

/* --------------------------------------------------------- fund detail -- */
.fo-hero { padding-block: clamp(2rem, 4.5vw, 3.25rem); }
.fo-crumb { font: .85rem/1.5 var(--sans); color: rgba(255,255,255,.7); margin: 0 0 .6rem; }
.fo-crumb a { color: rgba(255,255,255,.88); text-decoration: none; }
.fo-crumb a:hover { color: #fff; text-decoration: underline; }
.fo-crumb span { margin: 0 .45rem; opacity: .5; }
.fo-name { color: #fff; font-family: var(--serif); font-weight: 600; margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.14; letter-spacing: -.012em;
  max-width: 24ch; }
.fo-sub { color: rgba(255,255,255,.8); font: .98rem/1.5 var(--sans); margin: .5rem 0 0; }
.fo-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chip { display: inline-block; padding: .22rem .65rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.92);
  font: 500 .8rem/1.5 var(--sans); }
.fo-score { display: grid; grid-template-columns: minmax(0,14rem) minmax(0,1fr);
  gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.fo-big { text-align: center; background: var(--tint); border-radius: 6px;
  padding: 1.4rem 1rem 1.1rem; }
.fo-big .num { display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1;
  font-weight: 600; color: var(--navy); }
.fo-big .den { display: block; font: .82rem var(--sans); color: var(--muted); margin-top: .3rem; }
.fo-cov { font: .8rem/1.45 var(--sans); color: var(--muted); margin: .8rem 0 0; }
.fo-bar { display: grid; grid-template-columns: 9.5rem 1fr 2.4rem; align-items: center;
  gap: .75rem; padding: .42rem 0; }
.fo-bar .bl { font: 500 .9rem var(--sans); color: var(--navy); }
.fo-bar .bt { height: .5rem; background: #E6ECF3; border-radius: 999px; overflow: hidden; }
.fo-bar .bt i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.fo-bar .bv { font: 600 .9rem var(--sans); color: var(--navy); text-align: right;
  font-variant-numeric: tabular-nums; }
.fo-bar.off .bl, .fo-bar.off .bv { color: #AAB4C0; }
.fo-flags { font: .9rem var(--sans); color: var(--muted); margin: 1.2rem 0 0; }
table.fo-tab { max-width: 58rem; }
table.fo-tab th[scope="row"] { background: none; color: var(--navy); font-weight: 500;
  text-align: left; width: 16rem; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); }
table.fo-tab td { font-variant-numeric: tabular-nums; }
table.fo-tab td.n { text-align: right; width: 9rem; font-weight: 600; color: var(--navy); }
table.fo-tab .fo-note { font-size: .83rem; color: var(--muted); font-weight: 400; }
table.fo-tab tr.pend th, table.fo-tab tr.pend td { color: #9AA3AE; font-weight: 400; }
table.fo-tab .np { font-size: .82rem; font-style: italic; color: #AAB4C0; }
.fo-peers { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.fo-peers a { display: block; padding: .7rem .85rem; border: 1px solid var(--rule);
  border-radius: 5px; text-decoration: none; background: #fff; transition: border-color .15s; }
.fo-peers a:hover { border-color: var(--blue); }
.fo-peers .pn { display: block; color: var(--navy); font-weight: 500; font-size: .92rem; }
.fo-peers .ps { display: block; color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.fo-list { line-height: 1.9; }
@media (max-width: 720px) {
  .fo-score { grid-template-columns: 1fr; }
  .fo-bar { grid-template-columns: 8rem 1fr 2.2rem; }
  table.fo-tab th[scope="row"] { width: auto; }
  table.fo-tab .fo-note { display: none; }
}
#fundone section.fo-alt { background: var(--tint); }
#fundone section.fo-alt table.plain td,
#fundone section.fo-alt table.plain th[scope="row"] { background: #fff; }
#fundone section.fo-alt table.plain tbody tr:nth-child(even) td,
#fundone section.fo-alt table.plain tbody tr:nth-child(even) th[scope="row"] {
  background: #FAFBFC; }
#fundone table.fo-tab tbody tr:nth-child(even) td { background: #FAFBFC; }
/* A page whose first section carries the H1 (no navy page header). */
.sec-head h1 { font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(1.85rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.012em;
  margin: 0 0 .5rem; }
main > section:first-of-type .sec-head h1 { margin-top: .25rem; }
.v-under-analysis { background: #ECEEF1; color: #5F6368; font-style: italic; }
/* index fund shown as a reference line: not ranked, no verdict - purple */
.v-reference { background: #EEE6F7; color: #5B2A86; }
.ftab tr.ref-row td { background: #EFE7F9 !important; border-top: 1.5px dashed #9B7BC4 !important; border-bottom: 1.5px dashed #9B7BC4 !important; }
.ftab tr.ref-row td.c-name a.fn { color: #5B2A86; }
.fcard.v-reference { border-left-color: #7B3FA0; border-left-style: dashed; background: #F8F4FC; }
.tag.ix { color: #5B2A86; background: #EEE6F7; }

/* ------------------------------------------------- sticky table headers -- */
/* Site header 71px + subnav 51px. The column head must clear both, or the
   numbers scroll away from their labels. */
:root { --stick: 122px; }

/* A scroll container would trap position:sticky, so only create one when the
   table is actually too wide for the viewport. */
#f-table { overflow-x: visible; }
table.ftab thead th { position: sticky; top: var(--stick); z-index: 3; }
table.fundtab thead tr:first-child th { position: sticky; top: var(--stick); z-index: 3; }
.fundcat .table-scroll { overflow-x: visible; }

@media (max-width: 1180px) {
  #f-table, .fundcat .table-scroll { overflow-x: auto; }
  table.ftab thead th,
  table.fundtab thead tr:first-child th { position: static; }
}
@media (max-width: 860px) { :root { --stick: 71px; } }

/* ---- fund page: comparison against the category's best-rated funds ----- */
.fo-cmp-sub { color: var(--body); max-width: 46rem; margin: .35rem 0 1.1rem; }
.fo-cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--white); }
/* 36.6rem of frozen pane plus four score columns. It was 78rem when the table
   carried nine raw metrics; at that width the last column fell off the screen
   once the metrics were replaced by the four family scores. */
table.fo-cmp-tab { width: 100%; min-width: 58rem; border-collapse: collapse;
  font-size: .9rem; }
table.fo-cmp-tab thead th { background: var(--navy); color: #fff;
  font: 600 .72rem/1.25 var(--sans); text-transform: uppercase;
  letter-spacing: .03em; padding: .6rem .6rem; vertical-align: bottom;
  white-space: normal; text-align: left; }
table.fo-cmp-tab thead th.n { text-align: right; width: 5.4rem; }
table.fo-cmp-tab th.c-rk { width: 3.4rem; }
/* widths for these live with the frozen-pane rules below */
table.fo-cmp-tab thead th:nth-child(2) { min-width: 15rem; }

table.fo-cmp-tab th[scope="row"] { background: none; text-align: left;
  padding: .75rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.fo-cmp-tab td { padding: .75rem .6rem; border-bottom: 1px solid var(--rule);
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ink); vertical-align: top; }
table.fo-cmp-tab td.c-rk { color: var(--muted); font-weight: 600; }
table.fo-cmp-tab td.c-ov { font-weight: 700; color: var(--navy); }
table.fo-cmp-tab td.c-vd { text-align: left; }
table.fo-cmp-tab td.c-rm { text-align: left; white-space: normal; }
table.fo-cmp-tab tbody tr:last-child th,
table.fo-cmp-tab tbody tr:last-child td { border-bottom: 0; }

.fo-cmp-tab .cn { display: block; font: 600 .95rem var(--sans); color: var(--navy); }
.fo-cmp-tab a.cn { color: var(--blue); text-decoration: none; }
.fo-cmp-tab a.cn:hover { text-decoration: underline; }
.fo-cmp-tab .cr { display: block; font-size: .76rem; color: var(--muted);
  margin-top: .15rem; }

/* selected-row tinting and its orange edge are set with the frozen-pane
   rules further down, so that one place owns both background and shadow */

.fo-cmp-tab td.win { background: #EDF7EF; font-weight: 600; color: #1E6B36; }
.fo-cmp-tab td.win .wk { margin-left: .3rem; font-size: .78rem; color: var(--green); }
.fo-cmp-tab td.pendc { color: var(--muted); }
.fo-cmp-tab td .np { color: var(--muted); }
.fo-cmp-tab td.c-rm ul.rmk li { font-size: .78rem; }

.fo-cmp-leg { font-size: .83rem; color: var(--muted); max-width: 46rem;
  margin-top: .8rem; }
.fo-cmp-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

@media (max-width: 640px) {
  table.fo-cmp-tab { min-width: 68rem; font-size: .85rem; }
  table.fo-cmp-tab thead th:nth-child(2) { min-width: 12rem; }
}

/* ---- fund table: Remarks column ---------------------------------------- */
table.ftab th.c-remarks, table.ftab td.c-remarks { text-align: left; }
table.ftab th.c-remarks { min-width: 14rem; }
table.ftab td.c-remarks { min-width: 14rem; font-weight: 400; }
table.ftab th.nosort { cursor: default; }
table.ftab th.nosort:hover { background: var(--navy); }

ul.rmk { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .25rem; }
ul.rmk li { display: grid; grid-template-columns: 1rem 1fr; gap: .1rem;
  font-size: .82rem; line-height: 1.35; color: var(--body); }
ul.rmk .rk { font-weight: 700; font-size: .86rem; line-height: 1.3;
  text-align: left; }
ul.rmk li.pos .rk  { color: var(--green); }
ul.rmk li.neg .rk  { color: var(--red); }
ul.rmk li.neg      { color: #8A4234; }
/* a coverage note is information, neither a strength nor a problem */
ul.rmk li.note     { color: var(--muted); font-style: italic; }
ul.rmk li.note .rk { color: var(--rule-strong); font-style: normal; }

/* ---- fund table: Invest column ----------------------------------------- */
table.ftab th.c-invest, table.ftab td.c-invest { text-align: left; }
table.ftab th.c-invest { min-width: 11.5rem; }
table.ftab td.c-invest { min-width: 11.5rem; font-weight: 400; }

.inv-b { display: flex; flex-wrap: wrap; gap: .35rem; }
.btn-mini { font: 600 .78rem var(--sans); padding: .34rem .7rem;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  background: var(--white); color: var(--navy); cursor: pointer;
  white-space: nowrap; transition: background .12s, border-color .12s; }
.btn-mini:hover:not(:disabled) { background: var(--tint); border-color: var(--blue); }
.btn-mini.prim { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-mini.prim:hover:not(:disabled) { background: var(--navy-deep); }
.btn-mini:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.btn-mini:disabled { opacity: .42; cursor: not-allowed; }

.inv-gate { display: grid; grid-template-columns: auto 1fr; gap: .35rem;
  align-items: start; margin: 0 0 .45rem; font-size: .74rem; line-height: 1.3;
  color: var(--ink); font-weight: 500; cursor: pointer; }
.inv-gate:hover { color: var(--navy); }
.inv-gate input { margin: .1rem 0 0; accent-color: var(--red); cursor: pointer; }
.inv-gate span { max-width: 10.5rem; }

/* ---- fund table: fit twelve columns inside the viewport ----------------- */
/* The page must not scroll sideways. A horizontally scrolled page drags the
   sticky site header off to the left and leaves a strip with no background
   on the right, which the table rows then show through. Narrow columns and
   wrapping headers are what keep that from happening. */
table.ftab { font-size: .84rem; }
table.ftab th { white-space: normal; padding: .5rem .45rem; line-height: 1.22;
  vertical-align: bottom; }
table.ftab td { padding: .5rem .45rem; }

table.ftab th.c-rank,    table.ftab td.c-rank    { width: 2.9rem; }
/* The scheme name sets its own width from the longest name on screen, so the
   floor only has to cover the short ones; 12rem left a gap beside every name
   in a category of short ones. The width it frees goes to the findings, which
   were folding one-line phrases onto two and three lines at 9.5rem. 18rem
   fits the longest finding written today on a single line, and the table
   still comes to about 1060px inside a 1160px page. */
table.ftab td.c-name     { min-width: 10rem; }
table.ftab th.c-overall, table.ftab td.c-overall { width: 3.9rem; }
table.ftab th.c-verdict, table.ftab td.c-verdict { width: 5.2rem; }
table.ftab th.c-remarks, table.ftab td.c-remarks { min-width: 18rem; width: 18rem; }
table.ftab th.c-invest,  table.ftab td.c-invest  { min-width: 6.4rem; width: 6.4rem; }
/* the unlabelled numeric score columns */
table.ftab th.n:not(.c-rank):not(.c-overall) { width: 4rem; }

table.ftab .fsub { font-size: .72rem; }
table.ftab .vb { font-size: .74rem; padding: .16rem .42rem; white-space: nowrap; }
ul.rmk li { font-size: .76rem; }

/* stacked, so the Invest column stays narrow */
.inv-b { flex-direction: column; align-items: stretch; gap: .28rem; }
.btn-mini { font-size: .74rem; padding: .3rem .5rem; text-align: center; }
.inv-gate { font-size: .68rem; margin: 0 0 .4rem; }
.inv-gate span { max-width: none; }

@media (max-width: 1180px) {
  /* below this the table genuinely cannot fit, so the container scrolls
     instead of the page and the sticky header is switched off above. */
  #f-table { overflow-x: auto; }
}

/* ---- fund page: freeze the identity pane ------------------------------ */
/* Rank, Fund, Overall and Verdict stay put while the nine measures scroll.
   Remarks is the last column so that the strip of a part-scrolled column
   beside the frozen pane is always a tidy right-aligned number, never the
   tail end of a sentence. Widths are pinned because each frozen column's
   left offset is the sum of the ones before it. */
table.fo-cmp-tab th.c-rk,
table.fo-cmp-tab td.c-rk {
  position: sticky; left: 0;
  width: 3.2rem; min-width: 3.2rem; max-width: 3.2rem;
}
table.fo-cmp-tab thead th:nth-child(2),
table.fo-cmp-tab th[scope="row"] {
  position: sticky; left: 3.2rem;
  width: 11.5rem; min-width: 11.5rem; max-width: 11.5rem;
}
table.fo-cmp-tab th.c-ov,
table.fo-cmp-tab td.c-ov {
  position: sticky; left: 14.7rem;
  width: 4.6rem; min-width: 4.6rem; max-width: 4.6rem;
}
table.fo-cmp-tab th.c-vd,
table.fo-cmp-tab td.c-vd {
  position: sticky; left: 19.3rem;
  width: 5.8rem; min-width: 5.8rem; max-width: 5.8rem;
}
table.fo-cmp-tab th.c-rm,
table.fo-cmp-tab td.c-rm {
  position: sticky; left: 25.1rem;
  width: 11.5rem; min-width: 11.5rem; max-width: 11.5rem;
}
table.fo-cmp-tab tbody th, table.fo-cmp-tab tbody td { z-index: 1; }
table.fo-cmp-tab tbody th[scope="row"],
table.fo-cmp-tab tbody td.c-rk,
table.fo-cmp-tab tbody td.c-ov,
table.fo-cmp-tab tbody td.c-vd,
table.fo-cmp-tab tbody td.c-rm { z-index: 2; }
table.fo-cmp-tab thead th { z-index: 3; }
table.fo-cmp-tab thead th.c-rk,
table.fo-cmp-tab thead th:nth-child(2),
table.fo-cmp-tab thead th.c-ov,
table.fo-cmp-tab thead th.c-vd,
table.fo-cmp-tab thead th.c-rm { z-index: 4; }

/* A sticky cell needs its own background or the scrolling columns show
   through it. border-collapse eats borders on sticky cells, so the edge of
   the frozen pane is drawn with a shadow. */
table.fo-cmp-tab tbody td.c-rk,
table.fo-cmp-tab tbody th[scope="row"],
table.fo-cmp-tab tbody td.c-ov,
table.fo-cmp-tab tbody td.c-vd,
table.fo-cmp-tab tbody td.c-rm { background: var(--white); }
/* tint the whole selected row, not only its frozen cells, so the stripe does
   not stop dead at the edge of the pane. Painting it on the <tr> leaves the
   green best-in-column cells free to paint over it. */
table.fo-cmp-tab tr.me { background: #FFF8F4; }
table.fo-cmp-tab tr.me > td.c-rk,
table.fo-cmp-tab tr.me > th[scope="row"],
table.fo-cmp-tab tr.me > td.c-ov,
table.fo-cmp-tab tr.me > td.c-vd,
table.fo-cmp-tab tr.me > td.c-rm { background: #FFF8F4; }
table.fo-cmp-tab tr.me > td.c-rk { box-shadow: inset 3px 0 0 var(--orange); }

/* the right edge of the frozen pane */
table.fo-cmp-tab thead th.c-rm,
table.fo-cmp-tab tbody td.c-rm {
  box-shadow: 1px 0 0 var(--rule), 7px 0 9px -7px rgba(16, 24, 40, .22);
}

table.fo-cmp-tab th.c-rm, table.fo-cmp-tab td.c-rm {
  text-align: left; white-space: normal; }

/* with no findings column, the Verdict cell becomes the right edge of the
   frozen pane and has to carry its shadow */
table.fo-cmp-tab.no-rm thead th.c-vd,
table.fo-cmp-tab.no-rm tbody td.c-vd {
  box-shadow: 1px 0 0 var(--rule), 7px 0 9px -7px rgba(16, 24, 40, .22);
}

@media (max-width: 700px) {
  table.fo-cmp-tab.no-rm thead th.c-vd,
  table.fo-cmp-tab.no-rm tbody td.c-vd { box-shadow: none; }
  /* the frozen pane would eat the screen, so only Rank and Fund hold */
  table.fo-cmp-tab th.c-ov, table.fo-cmp-tab td.c-ov,
  table.fo-cmp-tab th.c-vd, table.fo-cmp-tab td.c-vd,
  table.fo-cmp-tab th.c-rm, table.fo-cmp-tab td.c-rm { position: static; }
  table.fo-cmp-tab thead th.c-rm,
  table.fo-cmp-tab tbody td.c-rm { box-shadow: none; }
  table.fo-cmp-tab thead th:nth-child(2),
  table.fo-cmp-tab th[scope="row"] {
    width: 10.5rem; min-width: 10.5rem; max-width: 10.5rem;
    box-shadow: 1px 0 0 var(--rule), 7px 0 9px -7px rgba(16, 24, 40, .22); }
}

/* ---- header: nav beside the wordmark ----------------------------------- */
/* Above the mobile breakpoint the links sit next to the logo and the call to
   action holds the right edge. Below it the nav is a dropdown, so the brand
   keeps pushing the Menu button right and none of this applies. */
@media (min-width: 1181px) {
  .brand { margin-right: 1.75rem; }
  .nav { flex: 1 1 auto; }
  .nav-cta { margin-left: auto; }
}

/* ---- freeze the header row as well as the left columns ----------------- */
/* A container that scrolls sideways is also the scrollport for anything
   sticky inside it, so a sticky header only holds if that container scrolls
   vertically too. Hence the max-height: it turns the table into a proper
   two-axis pane where both the top row and the left columns stay put. */
.fo-cmp-wrap { max-height: 80vh; overflow: auto; }
table.fo-cmp-tab thead th { position: sticky; top: 0; }
table.fo-cmp-tab thead th.c-rk,
table.fo-cmp-tab thead th:nth-child(2),
table.fo-cmp-tab thead th.c-ov,
table.fo-cmp-tab thead th.c-vd,
table.fo-cmp-tab thead th.c-rm { z-index: 6; }   /* the corner cells */

/* ---- Find an Equity Fund: same treatment on small screens -------------- */
/* Above 1180px the table fits and the header already sticks under the site
   nav, so this only applies where the table has to scroll. */
@media (max-width: 1180px) {
  #f-table { overflow: auto; max-height: 76vh; }

  table.ftab thead th { position: sticky; top: 0; z-index: 5; }

  table.ftab th.c-rank, table.ftab td.c-rank {
    position: sticky; left: 0; z-index: 4;
    width: 2.9rem; min-width: 2.9rem; max-width: 2.9rem; }
  table.ftab th.c-name, table.ftab td.c-name {
    position: sticky; left: 2.9rem; z-index: 4;
    width: 11rem; min-width: 11rem; max-width: 11rem; }
  table.ftab thead th.c-rank, table.ftab thead th.c-name { z-index: 6; }

  /* sticky cells need their own background or the columns show through */
  table.ftab tbody td.c-rank, table.ftab tbody td.c-name { background: var(--white); }
  table.ftab tbody tr:nth-child(even) td.c-rank,
  table.ftab tbody tr:nth-child(even) td.c-name { background: #FAFBFC; }
  table.ftab tbody td.c-name {
    box-shadow: 1px 0 0 var(--rule), 7px 0 9px -7px rgba(16, 24, 40, .22); }
  table.ftab thead th.c-name {
    box-shadow: 7px 0 9px -7px rgba(16, 24, 40, .22); }
}

@media (max-width: 640px) {
  table.ftab th.c-name, table.ftab td.c-name {
    width: 9rem; min-width: 9rem; max-width: 9rem; }
  .fo-cmp-wrap { max-height: 72vh; }
}

/* ---- score bars: banded colour and gridlines at 5 and 8 ---------------- */
/* overflow was hiding the gridlines; the fill keeps its own rounded ends, so
   the track no longer needs to clip anything. */
.fo-bar .bt { position: relative; overflow: visible; }
.fo-bar .bt i { position: relative; z-index: 1; }
.fo-bar .bt::before, .fo-bar .bt::after {
  content: ""; position: absolute; top: -.45rem; bottom: -.45rem; width: 0;
  border-left: 2px dotted var(--rule-strong); z-index: 2; pointer-events: none; }
.fo-bar .bt::before { left: 50%; }
.fo-bar .bt::after  { left: 80%; }

.fo-bar .bt i.lo  { background: #C0392B; }
.fo-bar .bt i.mid { background: #D98C1F; }
.fo-bar .bt i.hi  { background: #2E9E4F; }
.fo-bar .bv.lo  { color: #A33123; }
.fo-bar .bv.mid { color: #8A5A12; }
.fo-bar .bv.hi  { color: #1E6B36; }

.fo-barleg { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  margin: .9rem 0 0; font: .76rem var(--sans); color: var(--muted); }
.fo-barleg .k { width: .7rem; height: .42rem; border-radius: 999px;
  display: inline-block; margin-left: .55rem; }
.fo-barleg .k:first-child { margin-left: 0; }
.fo-barleg .k.lo  { background: #C0392B; }
.fo-barleg .k.mid { background: #D98C1F; }
.fo-barleg .k.hi  { background: #2E9E4F; }
.fo-barleg .kn { margin-left: .9rem; padding-left: .9rem;
  border-left: 1px solid var(--rule); }

/* ---- score bars: Poor / Good / Excellent along the scale --------------- */
/* Same grid as .fo-bar so the labels sit over the track, each centred in its
   own band: 0-5, 5-8, 8-10. */
.fo-scale { display: grid; grid-template-columns: 9.5rem 1fr 2.4rem;
  gap: .75rem; padding: 0 0 .15rem; }
.fo-scale .sc { position: relative; height: 1.05rem; }
.fo-scale .sc b { position: absolute; top: 0; transform: translateX(-50%);
  font: 700 .68rem var(--sans); text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; }
.fo-scale .sc b.lo  { color: #C0392B; }
.fo-scale .sc b.mid { color: #B8791A; }
.fo-scale .sc b.hi  { color: #1E6B36; }
.fo-barleg { display: block; margin: .8rem 0 0; font: .76rem var(--sans);
  color: var(--muted); }
@media (max-width: 720px) {
  .fo-scale { grid-template-columns: 8rem 1fr 2.2rem; }
  .fo-scale .sc b { font-size: .62rem; letter-spacing: .03em; }
}

/* ---- centre every column except the two that read as prose ------------- */
table.ftab th, table.ftab td,
table.ftab th.n, table.ftab td.n,
table.ftab th.c-rank, table.ftab td.c-rank,
table.ftab th.c-overall, table.ftab td.c-overall,
table.ftab th.c-verdict, table.ftab td.c-verdict,
table.ftab th.c-invest, table.ftab td.c-invest { text-align: center; }
table.ftab th.c-name, table.ftab td.c-name,
table.ftab th.c-remarks, table.ftab td.c-remarks { text-align: left; }
/* the two renamed headers wrap onto two lines, so give them the room */
table.ftab th.c-overall, table.ftab td.c-overall { width: 4.6rem; }
table.ftab th.c-verdict, table.ftab td.c-verdict { width: 5.6rem; }
/* centre the contents of the Invest cell rather than stretching them */
.inv-b { align-items: center; }
.btn-mini { min-width: 5.3rem; }
.inv-gate { grid-template-columns: auto auto; justify-content: center;
  text-align: left; }

table.fo-cmp-tab thead th, table.fo-cmp-tab tbody td { text-align: center; }
table.fo-cmp-tab thead th:nth-child(2),
table.fo-cmp-tab th[scope="row"],
table.fo-cmp-tab thead th.c-rm, table.fo-cmp-tab td.c-rm { text-align: left; }

/* ---- fund page: return against risk ------------------------------------ */
.fo-sc-sub { color: var(--body); max-width: 46rem; margin: .35rem 0 1.2rem; }
.fo-sc { background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  padding: .6rem .4rem .2rem; }
.fo-sc svg { display: block; width: 100%; height: auto; }

.fo-sc .pa { fill: url(#scgrad); stroke: var(--rule); }
/* gridlines and the 5/8 markers have to stay legible over the tint */
.fo-sc .gl { stroke: #FFFFFF; stroke-width: 1; stroke-opacity: .55; }
.fo-sc .bl { stroke: #7C8794; stroke-width: 1.4; stroke-dasharray: 3 4;
  stroke-opacity: .75; }
.fo-sc .tk { font: 500 12px var(--sans); fill: var(--muted); text-anchor: middle; }
.fo-sc .tk.ty { text-anchor: end; }
.fo-sc .ax { font: 600 13px var(--sans); fill: var(--navy); text-anchor: middle; }
.fo-sc .qh { font: 600 11.5px var(--sans); fill: #9AA6B2; text-anchor: end;
  letter-spacing: .02em; }

.fo-sc .pt { fill: #64748B; fill-opacity: .5; stroke: #fff; stroke-width: 1.2; }
.fo-sc .pt.un { fill: none; stroke: #AEB9C6; stroke-width: 1.4; stroke-dasharray: 2 2; }
.fo-sc .pt.lead { fill: var(--green); fill-opacity: 1; stroke: #fff; stroke-width: 2; }
.fo-sc .pt.me { fill: var(--orange); fill-opacity: 1; stroke: #fff; stroke-width: 2.5; }
.fo-sc .lb { font: 600 12px var(--sans); paint-order: stroke; stroke: #fff;
  stroke-width: 3.5px; stroke-linejoin: round; }
.fo-sc .lb.me { fill: #B4471F; }
.fo-sc .lb.lead { fill: #1E6B36; }
.fo-sc .lb.sm { font-weight: 500; font-size: 9.5px; stroke-width: 2.6px; }
.fo-sc .lb.pr { fill: #6B7785; }

.fo-sc-leg { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
  margin: .9rem 0 0; font: .78rem var(--sans); color: var(--muted); }
.fo-sc-leg .k { width: .62rem; height: .62rem; border-radius: 50%;
  display: inline-block; margin-left: .85rem; }
.fo-sc-leg .k:first-child { margin-left: 0; }
.fo-sc-leg .k.me   { background: var(--orange); }
.fo-sc-leg .k.lead { background: var(--green); }
.fo-sc-leg .k.pt   { background: #64748B; opacity: .5; }
.fo-sc-leg .kn { margin-left: .9rem; padding-left: .9rem;
  border-left: 1px solid var(--rule); }
@media (max-width: 640px) {
  .fo-sc .lb { font-size: 11px; }
  .fo-sc .ax { font-size: 12px; }
}

/* ---- Find an Equity Fund: the category map under the table ------------- */
.fo-sc-wrap { margin-top: 2.4rem; }
.fo-sc-wrap h2 { margin: 0 0 .25rem; }
.fo-sc .pa.ls { fill: url(#lsgrad); }
.fo-sc .pt.v1 { fill: #2E9E4F; fill-opacity: .85; stroke: #fff; stroke-width: 1.6; }
.fo-sc .pt.v2 { fill: #D98C1F; fill-opacity: .85; stroke: #fff; stroke-width: 1.6; }
.fo-sc .pt.v3 { fill: #C0392B; fill-opacity: .85; stroke: #fff; stroke-width: 1.6; }
.fo-sc .pt.v0 { fill: none; stroke: #93A0AE; stroke-width: 1.5; stroke-dasharray: 2 2; }
.fo-sc-leg .k.v1 { background: #2E9E4F; }
.fo-sc-leg .k.v2 { background: #D98C1F; }
.fo-sc-leg .k.v3 { background: #C0392B; }
.fo-sc-leg .k.v0 { background: transparent; border: 1.5px dashed #93A0AE; }

/* ===== Find an Equity Fund — card layout for narrow viewports =============
   The twelve-column table needs roughly 1080px once page margins are counted.
   Above that it renders exactly as it always has. Below it, the same rows are
   shown as cards instead — two to a row while there is room, one to a row on a
   phone. Both layouts are built from the same data in funds.js, so there is
   nothing to keep in step by hand.                                         */

.fcards { display: none; }

@media (max-width: 1100px) {
  /* no sideways scrollport once the table is out of the way, so the page
     scrolls as one piece instead of trapping a pane inside it */
  #f-table { overflow-x: visible; }
  #f-table table.ftab { display: none; }
  .fcards { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
}

@media (max-width: 700px) {
  .fcards { grid-template-columns: 1fr; gap: .7rem; }
}

.fcard { display: flex; flex-direction: column; gap: .6rem;
  background: var(--white); border: 1px solid var(--rule);
  border-left: 4px solid var(--rule-strong); border-radius: 10px;
  padding: .85rem .9rem .9rem; }
.fcard.v-prefer { border-left-color: var(--green); }
.fcard.v-watch  { border-left-color: #D79A2B; }
.fcard.v-avoid  { border-left-color: var(--red); }
.fcard.v-under-analysis { border-left-color: var(--rule-strong); }

/* rank at the left, name in the middle, score and verdict at the right */
.fc-top { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem;
  align-items: start; }
.fc-rank { font: 700 .8rem/1.55 var(--sans); color: var(--muted);
  background: var(--tint); border-radius: 6px; padding: .08rem .4rem;
  min-width: 1.85rem; text-align: center; font-variant-numeric: tabular-nums; }
.fc-id { min-width: 0; }
.fcard .fn { display: block; color: var(--blue); font-weight: 600;
  font-size: .95rem; line-height: 1.32; text-decoration: none; }
.fcard .fn:hover { text-decoration: underline; }
.fcard .fsub { display: block; margin-top: .15rem; font-size: .76rem;
  color: var(--muted); }
.fc-score { text-align: right; }
.fc-score b { display: block; font: 700 1.3rem/1 var(--sans); color: var(--navy);
  font-variant-numeric: tabular-nums; }
.fc-score .vb { margin-top: .3rem; font-size: .72rem; white-space: nowrap; }

/* the four family scores, read across */
.fc-fam { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem;
  margin: 0; padding: .55rem 0; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); }
.fc-fam > div { text-align: center; min-width: 0; }
.fc-fam dt { font: 500 .66rem/1.25 var(--sans); color: var(--muted);
  text-transform: uppercase; letter-spacing: .02em; }
.fc-fam dd { margin: .22rem 0 0; font: 600 .95rem var(--sans); color: var(--navy);
  font-variant-numeric: tabular-nums; }

.fc-aum { margin: 0; font: .76rem/1.45 var(--sans); color: var(--muted); }
.fc-aum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.fcard ul.rmk { margin: 0; }
.fcard ul.rmk li { font-size: .8rem; }

/* Actions sit at the foot of the card, so cards sharing a row line up.
   The Invest rules above are written for the table's narrow column, where the
   two buttons stack; a card has the full width, so they go side by side. */
.fc-act { margin-top: auto; padding-top: .15rem; }
.fc-act .inv-b { flex-direction: row; align-items: stretch; gap: .4rem; }
.fc-act .btn-mini { flex: 1 1 7rem; padding: .55rem .7rem; font-size: .82rem; }
.fc-act .inv-gate { grid-template-columns: auto 1fr; justify-content: start;
  text-align: left; font-size: .76rem; margin: 0 0 .5rem; }
.fc-act .inv-gate span { max-width: none; }

.fcards .f-empty { grid-column: 1 / -1; }

/* ===== fund page — the comparison, turned on its side for narrow screens ==
   The nine-metric table reads left to right and needs about 78rem. On a phone
   that is a sideways scroll inside a vertical one. Below the breakpoint the
   same comparison is shown transposed instead: metrics down the left, this
   fund and the category's best-rated fund as the two columns. Two columns is
   what stays legible at 390px, so the remaining leaders are offered as links
   underneath rather than squeezed in.                                      */

.fo-cmp-m { display: none; }

@media (max-width: 1100px) {
  .fo-cmp-wrap { display: none; }
  .fo-cmp-m { display: table; width: 100%; border-collapse: collapse;
    font-variant-numeric: tabular-nums; }
}

.fo-cmp-m th, .fo-cmp-m td { border-bottom: 1px solid var(--rule);
  padding: .5rem .45rem; vertical-align: middle; }
.fo-cmp-m thead th { background: var(--navy); color: #fff; text-align: left;
  vertical-align: bottom; border-bottom: 0; }
.fo-cmp-m thead th b { display: block; font: 600 .8rem/1.25 var(--sans); }
.fo-cmp-m thead th span { display: block; margin-top: .12rem;
  font: 400 .7rem/1.3 var(--sans); color: #C6D2E6; }
.fo-cmp-m thead th a { color: #fff; text-decoration: none; }
.fo-cmp-m thead th a:hover b { text-decoration: underline; }
.fo-cmp-m thead th.cm-me { background: var(--navy-deep); }
.fo-cmp-m .cm-corner { background: var(--navy); border-bottom: 0; }

/* the metric label column, kept as narrow as the longest label allows */
.fo-cmp-m tbody th { width: 41%; text-align: left; font: 500 .74rem/1.3 var(--sans);
  color: var(--body); background: var(--paper); }
.fo-cmp-m tbody td { width: 29.5%; text-align: right;
  font: 400 .8rem var(--sans); color: var(--ink); }
.fo-cmp-m tr.cm-gap th, .fo-cmp-m tr.cm-gap td { border-top: 2px solid var(--rule-strong); }
.fo-cmp-m td.cm-ov { font-weight: 700; font-size: .95rem; color: var(--navy); }
.fo-cmp-m td.win { background: #EDF7EF; font-weight: 600; color: #1E6B36; }
.fo-cmp-m td.win .wk { margin-left: .25rem; font-size: .76rem; color: var(--green); }
.fo-cmp-m td.pendc, .fo-cmp-m td .np { color: var(--muted); }
.fo-cmp-m .vb { font-size: .7rem; padding: .14rem .4rem; white-space: nowrap; }

.cm-more { display: none; margin: .7rem 0 0; font: .78rem/1.5 var(--sans);
  color: var(--muted); }
.cm-more a { color: var(--blue); }
@media (max-width: 1100px) { .cm-more { display: block; } }

/* ===== the risk/return map, portrait ====================================
   Built by WEALTHI_PSC in site.js and emitted alongside the landscape one;
   each page shows whichever fits. Taller than it is wide, so the plot keeps
   its height on a phone, and labelled with the category rank alone — a fund
   house name at this width comes out around four physical pixels. The names
   arrive on tap instead, in the caption below the plot.                   */

.fo-sc-p { display: none; margin-top: .4rem; }

@media (max-width: 1100px) {
  /* the landscape chart, its legend and its intro all give way together */
  .fo-sc-wrap .fo-sc:not(.fo-sc-p),
  .fo-alt .fo-sc:not(.fo-sc-p),
  .fo-sc-leg,
  .sc-tap.wide { display: none; }   /* its chart is hidden, so is its caption */
  .fo-sc-p { display: block; }
}

.fo-sc-p .pa { fill: url(#psgrad); }
.fo-sc-p .tk { font-size: 11px; }
.fo-sc-p .ax { font-size: 12px; }
/* size for every portrait label; colour per role below */
.fo-sc-p .lb { font-weight: 600; font-size: 12px; stroke-width: 3px; }
.fo-sc-p .lb.pr { fill: #55606D; }
.fo-sc-p .lb.me { fill: #1D5FA8; }
.fo-sc-p .lb.lead { fill: #1E6B36; }

/* a tapped dot is ringed rather than recoloured, so its verdict still reads */
.fo-sc-p .pt { cursor: pointer; }
.fo-sc-p .pt.v1 { fill: var(--green); fill-opacity: 1; stroke: #fff; stroke-width: 1.6; }
.fo-sc-p .pt.v2 { fill: #D79A2B; fill-opacity: 1; stroke: #fff; stroke-width: 1.6; }
.fo-sc-p .pt.v3 { fill: var(--red); fill-opacity: 1; stroke: #fff; stroke-width: 1.6; }
.fo-sc-p .pt.v0 { fill: none; stroke: #9AA6B2; stroke-width: 1.6; stroke-dasharray: 2 2; }
.fo-sc-p .pt.lead { fill: var(--green); fill-opacity: 1; stroke: #fff; stroke-width: 2; }
.fo-sc-p .pt.me { fill: var(--orange); fill-opacity: 1; stroke: #fff; stroke-width: 2.5; }
.fo-sc-p .pt.un { fill: none; stroke: #AEB9C6; stroke-width: 1.5; stroke-dasharray: 2 2; }
.fo-sc-p .pt.on { stroke: var(--navy); stroke-width: 3; }
.fo-sc-p .pt:focus-visible { outline: none; stroke: var(--navy); stroke-width: 3; }

.sc-tap { margin: .5rem .25rem .25rem; min-height: 2.6em;
  font: .8rem/1.3 var(--sans); color: var(--body); }

.sc-key { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem;
  margin: .55rem .25rem 0; font: .76rem var(--sans); color: var(--muted); }
.sc-key .k { width: .6rem; height: .6rem; border-radius: 50%; margin-right: .1rem;
  display: inline-block; }
.sc-key .k.v1, .sc-key .k.lead { background: var(--green); }
.sc-key .k.v2 { background: #D79A2B; }
.sc-key .k.v3 { background: var(--red); }
.sc-key .k.me { background: var(--orange); }
.sc-key .k.pt { background: #64748B; opacity: .55; }
.sc-key .k.v0, .sc-key .k.un { background: none; border: 1.5px dashed #9AA6B2; }
.sc-tap { margin-top: .4rem; }

/* axis titles drawn inside the plot, which frees the gutters they used to need */
.fo-sc .axin { font: 600 13px var(--sans); fill: #5A6672; text-anchor: start;
  paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.fo-sc .axin.end { text-anchor: end; }
.fo-sc-p .axin { font-size: 11px; stroke-width: 3px; }

/* the portrait chart is sized for a phone; stop it ballooning on a tablet */
.fo-sc-p { max-width: 26rem; margin-left: auto; margin-right: auto; }

.fo-sc-p .lb.pr.sm { font-size: 9.5px; stroke-width: 2.6px; }

/* ---- cards: collapsed to the scores, with the rest behind a toggle ----- */
.fcard .fc-body { display: none; }
.fcard.open .fc-body { display: flex; flex-direction: column; gap: .6rem; }

/* the score row already carries a rule beneath it, so the toggle adds none */
.fc-more { display: flex; align-items: center; gap: .45rem; width: 100%;
  margin-top: auto; padding: 0 .1rem; border: 0; background: none; cursor: pointer;
  font: 500 .78rem var(--sans); color: var(--blue); text-align: left; }
.fc-more:hover { color: var(--navy); }
.fc-more:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px;
  border-radius: 3px; }
.fc-more .sign { display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; flex: none; border: 1px solid currentColor;
  border-radius: 50%; font-size: .8rem; line-height: 1; font-weight: 600; }

/* the name has the card to itself now that the fund house has gone */
.fcard .fc-id { align-self: center; }

/* ---- card header: rank, name and score read as one line --------------- */
/* Baseline alignment puts the rank, the scheme name and the score on the
   same line; the verdict chip hangs below the score. The name is held to
   one line because a wrap used to push the score out of step with it. */
.fc-top { align-items: baseline; }
.fcard .fc-id { align-self: baseline; }
/* Most names now sit on one line. The longest - the Large & Mid Cap ones -
   take a second rather than being cut, and baseline alignment keeps the rank
   and the score level with the first line either way. */
.fcard .fn { font-size: .9rem; line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-rank { font-size: .76rem; padding: .08rem .34rem; min-width: 0; }
.fc-score b { font-size: 1.25rem; }

/* every label gets the height of two lines, so the four numbers sit level
   whether the label wraps or not */
.fc-fam dt { min-height: 2.5em; display: flex; align-items: flex-end;
  justify-content: center; }
.fc-fam dd { margin-top: .25rem; }

/* The zebra stripe (table.plain tbody tr:nth-child(even) td) carries more
   specificity than .fo-cmp-tab td.win, so a ticked cell that happened to
   land on an even row kept the stripe and lost its green. Restated here
   with the extra class so the highlight wins wherever the row falls. */
table.plain.fo-cmp-tab tbody tr td.win,
table.plain.fo-cmp-m tbody tr td.win {
  background: #EDF7EF; font-weight: 600; color: #1E6B36;
}

/* ---- card header: rank, name, verdict and score all on one line ------- */
.fc-top { grid-template-columns: auto 1fr auto auto; gap: .45rem; }
.fc-top > .vb { align-self: baseline; font-size: .7rem; white-space: nowrap; }
b.fc-score { font: 700 1.25rem/1 var(--sans); color: var(--navy);
  font-variant-numeric: tabular-nums; }

/* each label is two explicit lines, so all four numbers sit level */
.fc-fam dt { display: block; min-height: 0; }
.fc-fam dt span { display: block; }

/* the toggle sits between the scores and what it reveals, so it does not
   move when the card opens */
.fc-more { margin-top: 0; padding: .1rem; }
.fcard.open .fc-body { padding-top: .1rem; }

/* On a phone the category picker is the only filter worth the screen it
   takes. The verdict dropdown and the search box stay in the markup, so the
   script that reads them is unchanged; they are simply not shown, and both
   sit at their neutral setting (All, empty) when they are hidden. */
@media (max-width: 700px) {
  /* Category and Search share one row; the verdict dropdown stays out, since
     the cards carry their verdict and the list is short enough to scan. */
  .fctl { flex-wrap: nowrap; gap: .5rem; }
  .fctl > div:nth-child(2) { display: none; }
  .fctl > div:nth-child(1) { flex: 1 1 58%; min-width: 0; }
  .fctl > div:nth-child(3) { flex: 1 1 42%; min-width: 0; }
  /* the controls say what they are: a category name and a search box */
  .fctl label { display: none; }
  /* #f-cat and #f-search carry id-level min-widths of 15 and 16rem, which
     beat the class rule above and pushed the search box off the screen */
  #f-cat, #f-search { min-width: 0; width: 100%; }
}

/* the tapped fund's name now sits above the plot */
.fo-sc-p .sc-tap { margin: 0 .25rem .45rem; min-height: 2.6em; }

/* ---- phones: give the content back the sticky chrome ------------------
   The header and the sub-nav together hold 122px of a 780px screen for the
   whole scroll. On a page that is a long list of funds that is most of a
   card. Below 700px the header scrolls away with the page - the menu is a
   flick back up - and a sub-nav holding a single link is dropped, since its
   one link is the page you are already reading. */
@media (max-width: 700px) {
  .site-head { position: static; }
  .subnav { top: 0; }
  :root { --stick: 0px; }
  .subnav:has(> .wrap > .subnav-row:only-child > a:only-child) { display: none; }
}
.sc-note { margin: .4rem .25rem 0; font: .72rem/1.4 var(--sans); color: var(--muted); }

/* ---- one page, one scroll --------------------------------------------
   #f-table became a scroll box at 1180px so the table could hold a frozen
   header and first column on a small screen. Below 1100px there is no table
   - the cards replace it - so that box only trapped the list in a 76vh
   window inside the page, which scrolled separately from everything around
   it. The whole page is one scroll again here. */
@media (max-width: 1100px) {
  #f-table { overflow: visible; max-height: none; }
}

/* the chart carried a card border and padding of its own; on a phone that
   is a frame around a frame, and the plot wants the width more */
@media (max-width: 700px) {
  .fo-sc-p { border: 0; padding: 0; max-width: none; }
  .fo-sc-p .sc-tap, .fo-sc-p .sc-key, .fo-sc-p .sc-note { margin-left: 0;
    margin-right: 0; }
}

/* ---- the selected fund reads blue, not orange -------------------------
   Orange is the brand's call-to-action colour and also the "Watch" family
   of warm tones, so using it to mark the fund you are looking at read as a
   flag rather than as "you are here". Light blue is neutral. */
table.fo-cmp-tab tr.me,
table.fo-cmp-tab tr.me > td.c-rk,
table.fo-cmp-tab tr.me > th[scope="row"],
table.fo-cmp-tab tr.me > td.c-ov,
table.fo-cmp-tab tr.me > td.c-vd,
table.fo-cmp-tab tr.me > td.c-rm { background: #EFF5FD; }
table.fo-cmp-tab tr.me > td.c-rk { box-shadow: inset 3px 0 0 var(--blue); }
/* the win highlight still has to beat the row tint */
table.plain.fo-cmp-tab tbody tr.me td.win { background: #E4F2E8; }

.fo-sc .pt.me,
.fo-sc-p .pt.me { fill: var(--blue); fill-opacity: 1; stroke: #fff; stroke-width: 2.5; }
.fo-sc .lb.me { fill: #1D5FA8; }
.fo-sc-leg .k.me,
.sc-key .k.me { background: var(--blue); }

/* ---- fund page Score: standing, bars, findings ------------------------ */
.fo-score { grid-template-columns: minmax(0,13rem) minmax(0,1fr) minmax(0,15rem); }
/* a fund with no findings yet drops that panel, so the bars take its width
   rather than leaving an empty third column */
.fo-score.nofind { grid-template-columns: minmax(0,13rem) minmax(0,1fr); }
@media (max-width: 1100px) {
  .fo-score, .fo-score.nofind { grid-template-columns: 1fr; gap: 1.25rem; }
}

.fo-big .rk { display: block; font: 600 .8rem var(--sans); color: var(--muted);
  margin-bottom: .5rem; }
.fo-big .vb { margin-top: .7rem; }

.fo-find { background: var(--tint); border-radius: 6px; padding: 1rem 1.1rem; }
.fo-find h3 { font: 600 .78rem var(--sans); text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin: 0 0 .6rem; }
.fo-find ul.rmk li { font-size: .84rem; }
.fo-find .np { color: var(--muted); font-style: italic; }

/* ---- table headings read centred over their columns ------------------- */
/* Headings only. The body cells keep their own alignment: names and findings
   read left, numbers read right. Several columns set text-align on both the
   th and the td together, so those are restated here for the heading. */
table.ftab thead th,
table.ftab thead th.c-name,
table.ftab thead th.c-remarks,
table.ftab thead th.c-verdict,
table.ftab thead th.c-invest,
table.fo-cmp-tab thead th,
table.fo-cmp-tab thead th.c-rm,
table.fo-cmp-tab thead th.c-vd,
table.fo-cmp-m thead th { text-align: center; }
table.ftab th.c-rank, table.ftab td.c-rank { text-align: center; }
table.fo-cmp-tab th.c-rk, table.fo-cmp-tab td.c-rk { text-align: center; }
/* the comparison table sets text-align on th.n, th.c-ov and the pane cells
   with two classes apiece, so the heading rule needs the extra one to win */
table.plain.fo-cmp-tab thead th,
table.plain.fo-cmp-tab thead th.n,
table.plain.fo-cmp-tab thead th.c-ov,
table.plain.fo-cmp-tab thead th.c-rk { text-align: center; }

/* ---- the chart's axis titles sit apart from the fund labels ----------- */
.fo-sc .axin { fill: var(--blue); }

/* ---- the chart has no frame of its own -------------------------------
   The plot already has an edge: its own tinted field. A white card with a
   border around it boxed the chart off from the section it sits in, on the
   fund page especially, where the section behind it is tinted. */
.fo-sc { background: none; border: 0; border-radius: 0; padding: 0; }

/* the map sits between the filters and the list, so it needs air on both
   sides rather than the single gap it had when it trailed the table */
#fundapp > #f-chart .fo-sc-wrap { margin-top: 1.6rem; }
#fundapp > #f-chart { margin-bottom: 2rem; }

/* ---- verdict tags and search, between the map and the list ------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.flist-ctl { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem; margin: 0 0 .9rem; }
.vtags { display: flex; flex-wrap: wrap; gap: .4rem; }
.f-srch { flex: 0 1 18rem; }
.f-srch input { width: 100%; }

.vtag { display: inline-flex; align-items: baseline; gap: .35rem; cursor: pointer;
  font: 500 .82rem var(--sans); color: var(--body);
  background: var(--white); border: 1px solid var(--rule); border-radius: 999px;
  padding: .32rem .75rem; }
.vtag:hover:not(:disabled):not(.on) { border-color: var(--rule-strong); color: var(--navy); }
.vtag .n { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vtag:disabled { opacity: .45; cursor: default; }
.vtag:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* the chosen tag takes the colour its verdict carries everywhere else */
.vtag.on { color: #fff; border-color: transparent; font-weight: 600; }
.vtag.on .n { color: rgba(255,255,255,.8); }
.vtag.on:not(.v-prefer):not(.v-watch):not(.v-avoid):not(.v-under-analysis) {
  background: var(--navy); }
.vtag.on.v-prefer { background: #1F6B36; }
.vtag.on.v-watch  { background: #8A5A12; }
.vtag.on.v-avoid  { background: #9B3A1C; }
.vtag.on.v-under-analysis { background: #5F6368; }

/* Wealthi picks: a second group of chips after the verdicts */
.vsep { width: 1px; align-self: stretch; background: var(--rule); margin: 0 .3rem; }
.vtag.ptag::before { content: "\2605"; font-size: .72rem; color: #B8860B; }
.vtag.ptag.on::before { color: #fff; }
.vtag.on.p-consistent-returns  { background: #1F4E8C; }
.vtag.on.p-downside-protector { background: #0F6E6E; }
.vtag.on.p-balanced            { background: #6B4C9A; }
.tag.pk { white-space: nowrap; }
.tag.pk.p-consistent-returns  { color: #1F4E8C; background: #E3ECF8; }
.tag.pk.p-downside-protector { color: #0F6E6E; background: #DFF2F1; }
.tag.pk.p-balanced            { color: #6B4C9A; background: #EEE8F6; }

@media (max-width: 700px) {
  .flist-ctl { gap: .55rem; }
  .f-srch { flex: 1 1 100%; }
  #f-search { min-width: 0; width: 100%; }
  .vtag { font-size: .78rem; padding: .3rem .62rem; }
}

/* ---- heading and category on one line --------------------------------- */
.fhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem;
  margin: 0 0 1.25rem; }
.fhead h1 { margin: 0; }
.fhead .fctl { margin: 0; }
.fhead #f-cat { font-size: 1rem; }
/* On a phone the heading and the category share one line: the title is set
   a notch smaller and the picker takes whatever is left, rather than being
   pushed onto a second line at full width. */
@media (max-width: 700px) {
  .fhead { flex-wrap: nowrap; gap: .6rem; align-items: center; }
  .fhead h1 { font-size: 1.5rem; line-height: 1.2; flex: 0 0 auto; }
  .fhead .fctl { flex: 1 1 auto; min-width: 0; }
  .fhead .fctl > div { flex: 1 1 auto; min-width: 0; }
  .fhead #f-cat { width: 100%; min-width: 0; font-size: .9rem;
    padding-left: .6rem; padding-right: 1.6rem; }
}

/* the map follows the heading row directly */
#fundapp > #f-chart .fo-sc-wrap { margin-top: 0; }

/* ---- verdict tags carry their verdict's colour ------------------------ */
/* Unselected they read as the tinted chips used everywhere else; selected
   they fill with the solid colour and the label turns white. */
.vtag.v-prefer { background: #E3F2E7; border-color: #BFE0C9; color: #1F6B36; }
.vtag.v-watch  { background: #FDF0DC; border-color: #EFD6AC; color: #8A5A12; }
.vtag.v-avoid  { background: #FBE3DC; border-color: #F0C6B8; color: #9B3A1C; }
.vtag.v-under-analysis { background: #ECEEF1; border-color: #D5DAE1; color: #5F6368; }
.vtag.v-prefer .n { color: #3E8356; }
.vtag.v-watch  .n { color: #A5762E; }
.vtag.v-avoid  .n { color: #B05A3C; }
.vtag.v-under-analysis .n { color: #7B8089; }
.vtag.v-prefer:hover:not(:disabled):not(.on) { border-color: #1F6B36; color: #1F6B36; }
.vtag.v-watch:hover:not(:disabled):not(.on)  { border-color: #8A5A12; color: #8A5A12; }
.vtag.v-avoid:hover:not(:disabled):not(.on)  { border-color: #9B3A1C; color: #9B3A1C; }

/* selected: solid, white label, white count */
.vtag.on, .vtag.on .n,
.vtag.on.v-prefer, .vtag.on.v-watch, .vtag.on.v-avoid, .vtag.on.v-under-analysis {
  color: #fff;
}
.vtag.on .n { color: rgba(255,255,255,.85); }

/* A selected tag stays readable under the cursor: the hover rules above are
   scoped away from .on, whose dark label would match its filled background. */
.vtag.on:hover:not(:disabled), .vtag.on:hover .n { color: #fff; }

/* .fo-sc-wrap is a <section>, so it picks up the site's section padding.
   Inside the fund app it is a block on the page, not a section of its own. */
#fundapp > #f-chart .fo-sc-wrap { padding-top: 0; padding-bottom: 0; }

/* the key now sits above the plot it explains */
.fo-sc-leg { margin: 0 0 .55rem; }
.sc-key { margin: 0 .25rem .45rem; }
@media (max-width: 700px) { .sc-key { margin-left: 0; margin-right: 0; } }

/* the wide charts carry the same caption line the phone does */
.sc-tap.wide { margin: 0 0 .5rem; min-height: 1.5em; }
.fo-sc .pt.on, .fo-sc .pt:hover { stroke: var(--navy); stroke-width: 3; cursor: pointer; }

/* ---- the chart's key and caption are centred over the plot ------------ */
/* Both are <p>, so they inherit the site's 64ch reading width and were
   centring inside that rather than across the chart. */
.fo-sc-leg, .sc-key, .sc-tap, .sc-tap.wide, .sc-note { max-width: none; }
.fo-sc-leg, .sc-key { justify-content: center; }
.sc-tap, .sc-tap.wide { text-align: center; }

/* ---- buy controls on the fund page ------------------------------------ */
.fo-buy { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.fo-buy .inv-b { flex-direction: row; gap: .5rem; }
.fo-buy .btn-mini { font-size: .88rem; padding: .55rem 1.3rem; min-width: 8rem; }
.fo-buy .inv-gate { margin: 0; font-size: .8rem; }
.fo-buy .inv-gate span { max-width: none; }

/* the comparison table's own Invest column */
table.fo-cmp-tab th.c-inv, table.fo-cmp-tab td.c-inv { width: 7.5rem;
  min-width: 7.5rem; text-align: center; }
.fo-cmp-tab td.c-inv .inv-b { flex-direction: column; align-items: stretch; gap: .3rem; }
.fo-cmp-tab td.c-inv .inv-gate { font-size: .68rem; margin: 0 0 .35rem;
  grid-template-columns: auto auto; justify-content: center; text-align: left; }
.fo-cmp-m td.c-inv .inv-b { flex-direction: column; align-items: stretch; gap: .3rem; }
.fo-cmp-m td.c-inv .inv-gate { font-size: .68rem; margin: 0 0 .35rem; }
.fo-cmp-m td.c-inv { text-align: center; }

/* ---- detail tables gained a leader and a benchmark column ------------- */
table.fo-tab { max-width: none; }
table.fo-tab thead th { background: var(--navy); color: #fff; font-weight: 600;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .03em;
  padding: .55rem .8rem; text-align: center; vertical-align: bottom; }
table.fo-tab thead .fo-corner { background: var(--navy); border: 0; }
table.fo-tab td.n { width: 8.5rem; }
table.fo-tab tr.pend td.n { font-weight: 400; }
/* only the fund's own column carries the full weight; the comparisons read
   as context, so they sit back a step */
table.fo-tab tbody td.n + td.n, table.fo-tab tbody td.n + td.n + td.n {
  font-weight: 500; color: var(--body); }

@media (max-width: 900px) {
  table.fo-tab thead th { font-size: .68rem; padding: .5rem .35rem; }
  table.fo-tab td.n { width: auto; font-size: .85rem; }
  table.fo-tab th[scope="row"] { font-size: .85rem; padding: .55rem .4rem; }
  table.fo-tab .np { font-size: .74rem; }
}
/* #fundone paints table cells white inside tinted sections, which beat the
   heading band above and left its two outer cells pale */
#fundone table.fo-tab thead th,
#fundone table.fo-tab thead td.fo-corner { background: var(--navy); }
#fundone table.fo-tab thead th { color: #fff; }

/* a number should never break across two lines */
table.fo-tab td.n { white-space: nowrap; }
table.fo-tab .np i { font-style: italic; }
table.fo-tab .np .sm { display: none; }
@media (max-width: 900px) {
  /* "not measured yet" takes three lines in a phone-width column */
  table.fo-tab .np .lg { display: none; }
  table.fo-tab .np .sm { display: inline; font-style: normal; }
  table.fo-tab td.n { font-size: .82rem; padding-left: .3rem; padding-right: .3rem; }
  table.fo-tab th[scope="row"] { font-size: .8rem; }
  table.fo-tab thead th { font-size: .64rem; letter-spacing: 0; }
}

/* the scores moved behind the toggle, so a shut card is just its header */
.fcard .fc-body .fc-fam { margin-top: 0; padding-top: 0; border-top: 0; }
.fcard .fc-more { padding-top: .5rem; border-top: 1px solid var(--rule); }
.fcard.open .fc-more { border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }

/* the card toggle reads label-then-sign, hard right */
.fc-more { justify-content: flex-end; }
.fc-more .sign { order: 2; }

/* ---- the toggle is an icon at the end of the card's one line ---------- */
.fc-top { grid-template-columns: auto 1fr auto auto auto; }
.fcard .fc-more { width: auto; margin: 0; padding: 0; border: 0;
  align-self: center; justify-content: center; }
.fcard.open .fc-more { border: 0; padding: 0; }
.fc-more .sign { width: 1.35rem; height: 1.35rem; font-size: .9rem; }
.fcard.open .fc-body { padding-top: .45rem; border-top: 1px solid var(--rule); }

/* the name is one line now that the category is off it; the clamp is only a
   backstop for a name longer than anything in the current data */
.fcard .fn { -webkit-line-clamp: 1; font-size: .92rem; }

/* the full scheme name, shown once a card is opened */
.fc-full { margin: 0; font: 600 .88rem/1.35 var(--sans); color: var(--navy); }
.fc-full span { font-weight: 400; color: var(--muted); }
/* the full name opens the fund page, same as the short name on the header line */
.fc-full a { color: var(--blue); font-weight: inherit; text-decoration: none; }
.fc-full a:hover, .fc-full a:focus-visible { text-decoration: underline; }

/* ---- charts: index benchmark (purple), leader, verdict colours ---------- */
.fo-sc .pt.ref, .fo-sc-p .pt.ref { fill: #7B3FA0; fill-opacity: 1; stroke: #fff; stroke-width: 2; }
.fo-sc .lb.ref, .fo-sc-p .lb.ref { fill: #5B2A86; }
.fo-sc .pt.me.ref-me { fill: #7B3FA0; }
.fo-sc .pt.lead, .fo-sc-p .pt.lead { fill: #1E7A3C; fill-opacity: 1; stroke: #fff; stroke-width: 2; }
.fo-sc .pt.v1 { fill: #2E9E4F; fill-opacity: .8; }
.fo-sc .pt.un { fill: none; stroke: #93A0AE; stroke-width: 1.5; stroke-dasharray: 2 2; }
.fo-sc-leg .k.ref, .sc-key .k.ref { background: #7B3FA0; }
.fo-sc-leg .k.lead, .sc-key .k.lead { background: #1E7A3C; }
.sc-key .k.v1 { background: #2E9E4F; }
.sc-key .k.v2 { background: #D79A2B; }
.sc-key .k.v3 { background: #C0392B; }
.sc-key .k.un { background: transparent; border: 1.5px dashed #9AA6B2; }

/* ---- score history ------------------------------------------------------ */
.dl { display: inline-block; margin-left: .35rem; font: 600 .7rem/1 var(--sans); vertical-align: middle; }
.dl.up { color: #1E7A3C; } .dl.dn { color: #C0392B; } .dl.eq { color: var(--muted); }
.fo-trend { max-width: 44rem; margin: .4rem 0 1rem; }
.fo-trend svg { display: block; width: 100%; height: auto; }
.fo-trend .gl { stroke: #E3E8EE; stroke-width: 1; }
.fo-trend .tk { font: 500 11px var(--sans); fill: var(--muted); text-anchor: middle; }
.fo-trend .tk.ty { text-anchor: end; }
.fo-trend .tl { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.fo-trend .tl.ref { stroke: #7B3FA0; }
.fo-trend .tp { fill: #fff; stroke: var(--blue); stroke-width: 2; }
table.fo-hist { max-width: 30rem; }
table.fo-hist td, table.fo-hist th { padding: .35rem .6rem; }

/* ---- arrange by (card layout only) -------------------------------------- */
.arrange { display: none; }
@media (max-width: 1100px) {
  .arrange { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .6rem 0 .2rem; width: 100%; }
  .arrange .al { font: 600 .74rem/1 var(--sans); color: var(--muted); margin-right: .2rem; }
  .arrange .atag { font: 500 .78rem/1 var(--sans); padding: .42rem .7rem; border-radius: 999px;
    border: 1px solid #C9D2DC; background: #fff; color: var(--navy); cursor: pointer; }
  .arrange .atag.on { background: var(--navy); border-color: var(--navy); color: #fff; }
}

/* ---- compare mutual funds (compare-mf.html, assets/compare.js) ---------- */
/* The tables reuse the fund page's .fo-tab styling (the page sits inside
   #fundone); only the pickers, the fund cards and the per-fund benchmark
   line are new. */
.cmp-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cmp-pick .field label { display: block; font: 600 .85rem/1.4 var(--sans); color: var(--navy); margin-bottom: .35rem; }
.cmp-fld { position: relative; }
.cmp-fld input { width: 100%; box-sizing: border-box; padding: .65rem 2.2rem .65rem .75rem;
  font: .95rem/1.4 var(--sans); border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); }
.cmp-fld input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.cmp-fld input.bad { border-color: var(--red); }
.cmp-fld input::-webkit-search-cancel-button { display: none; }
.cmp-x { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .45rem; }
.cmp-x:hover { color: var(--ink); }
.cmp-why { margin-top: 1rem; max-width: 70ch; }
.cmp-empty { color: var(--muted); font-style: italic; }
.cmp-cards { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-cards.n1 { grid-template-columns: minmax(0, 22rem); }
.cmp-cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-card { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; background: #fff;
  border: 1px solid var(--rule); border-left: 4px solid var(--navy); border-radius: 6px; padding: 1rem 1.1rem; }
.cmp-card.v-prefer { border-left-color: var(--green); }
.cmp-card.v-watch { border-left-color: #D79A2B; }
.cmp-card.v-avoid { border-left-color: var(--red); }
.cmp-card.v-reference { border-left-color: #7B3FA0; }
.cmp-card, .cmp-card.v-prefer, .cmp-card.v-watch, .cmp-card.v-avoid, .cmp-card.v-reference { background: #fff; color: var(--body); }
.cmp-nm { font: 600 1.08rem/1.3 var(--serif); color: var(--navy); text-decoration: none; }
.cmp-nm:hover { text-decoration: underline; }
.cmp-amc { font-size: .85rem; color: var(--muted); }
.cmp-rk { font: 600 .95rem/1.4 var(--sans); color: var(--ink); margin-top: .2rem; }
.cmp-bm { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.cmp-card .vb { margin-top: .15rem; }
table.cmp-tab thead th .cmp-hc { display: block; font-weight: 400; opacity: .8; text-transform: none; letter-spacing: 0; }
table.cmp-tab td.n .cmp-b { display: block; font: 400 .74rem/1.3 var(--sans); color: var(--muted); margin-top: .15rem; white-space: nowrap; }
@media (max-width: 760px) {
  .cmp-pick, .cmp-cards, .cmp-cards.n2 { grid-template-columns: 1fr; }
  table.cmp-tab td.n .cmp-b { white-space: normal; }
}
/* all three funds carry equal weight: none is "this fund" here */
table.cmp-tab tbody td.n, table.cmp-tab tbody td.n + td.n, table.cmp-tab tbody td.n + td.n + td.n {
  font-weight: 600; color: var(--navy); }
#fundone table.cmp-tab tbody tr td, #fundone table.cmp-tab tbody tr th[scope="row"] { background: #fff; }
#fundone table.cmp-tab tbody tr:nth-child(even) td,
#fundone table.cmp-tab tbody tr:nth-child(even) th[scope="row"] { background: #FAFBFC; }
table.cmp-tab tr.pend td.n { font-weight: 400; color: #9AA3AE; }

/* ---- invest.html: Regular or Direct ------------------------------------ */
.inv-h1 { margin: .4rem 0 .5rem; }
.inv-sub { max-width: 52rem; color: var(--body); margin: 0 0 1.6rem; }
.inv-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 860px) { .inv-choice { grid-template-columns: 1fr; } }
.inv-card { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: var(--body);
  border: 2px solid var(--rule); border-radius: 12px; padding: 1.6rem 1.6rem 1.3rem; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.inv-card:hover, .inv-card:focus-visible { box-shadow: 0 10px 28px rgba(31,56,100,.14); transform: translateY(-2px); outline: none; }
.inv-card.reg { border-color: #2B7BD8; }
.inv-card.reg:hover, .inv-card.reg:focus-visible { border-color: #1F3864; }
.inv-card.dir { border-color: #C9D2DC; }
.inv-card.dir:hover, .inv-card.dir:focus-visible { border-color: #EB6834; }
.inv-tag { align-self: flex-start; font: 600 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .6rem; border-radius: 4px; background: #E4EDFA; color: #1F3864; }
.inv-card.dir .inv-tag { background: #FCE9E0; color: #B8470F; }
.inv-name { font: 600 2rem/1.1 var(--serif); color: var(--navy); }
.inv-line { font-size: 1rem; color: var(--muted); margin-bottom: .3rem; }
.inv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .inv-cols { grid-template-columns: 1fr; } }
.inv-col { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.inv-col b { font: 600 .78rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.inv-li { position: relative; padding-left: 1.3rem; line-height: 1.4; }
.inv-li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.inv-li.pos::before { content: "\2713"; color: #1E7A3C; }
.inv-li.neg::before { content: "\2715"; color: #C0392B; }
.inv-go { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--rule);
  font: 600 1rem/1.2 var(--sans); color: #2B7BD8; }
.inv-card.dir .inv-go { color: #B8470F; }
.inv-ill { margin-top: 1.8rem; }
.inv-note { margin-top: 1rem; max-width: 60rem; }

/* ---- home page, simplified (18 Nov 2026) -------------------------------- */
.hero-trust { margin: 1.1rem 0 0; font: 500 .85rem/1.4 var(--sans); color: #9FB0CC; letter-spacing: .02em; }
.hcar .hero-h { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; max-width: 18ch; }
.hcar .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: .9rem 0 1.6rem; }
.hcar .btn { padding: .85rem 1.5rem; font-size: 1rem; }
/* one-line sublines now, so the old room reserved for long ledes goes */
.hero.hcar .lede { min-height: 0; }
@media (max-width: 640px) { .hero.hcar .lede { min-height: 2.8em; } }

/* ---- Risk profile questionnaire (mf-risk-profile.html) ---- */
#rpapp { max-width: 46rem; }
.rp-intro { max-width: 46rem; margin-bottom: 2.4rem; }
.rp-intro ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.rp-part { border: 0; margin: 0 0 2.2rem; padding: 0; }
.rp-part legend { display: flex; align-items: center; gap: .6rem; font: 600 1.25rem var(--serif);
  color: var(--navy); margin-bottom: 1rem; padding: 0; }
.rp-step { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--navy); color: #fff; font: 600 .85rem var(--sans); }
.rp-who { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rp-who label { display: flex; flex-direction: column; gap: .3rem; font: 500 .9rem var(--sans); color: var(--navy); }
.rp-who small { color: var(--muted); font-weight: 400; }
.rp-who input { font: 400 1rem var(--sans); padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: 4px; }
.rp-who input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.rp-q { padding: 1rem 0 1.1rem; border-top: 1px solid var(--rule); }
.rp-q.miss .rp-ql::after { content: " — please answer"; color: #9B3A1C; font-weight: 500; }
.rp-ql { font-weight: 600; color: var(--navy); margin: 0 0 .2rem; }
.rp-hint { font-size: .88rem; color: var(--muted); margin: 0 0 .5rem; }
.rp-opts { display: grid; gap: .4rem; margin-top: .5rem; }
.rp-opt { display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .55rem .8rem;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--white); font-size: .95rem; line-height: 1.4; }
.rp-opt:hover { border-color: var(--navy); }
.rp-opt input { accent-color: var(--navy); margin: 0; flex: none; }
.rp-opt.on { border-color: var(--navy); background: #EEF2F8; color: var(--navy); }
.rp-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.rp-submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  position: sticky; bottom: 0; background: var(--fill, #EEF1F6); border-top: 1px solid var(--rule); padding: .8rem 0; }
.rp-count { margin: 0; font-size: .9rem; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.rp-hero { border-left: 4px solid var(--navy); padding: .3rem 0 .3rem 1.1rem; margin-bottom: 1.8rem; }
.rp-eyebrow { font: 600 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.rp-prof { font-size: 2.1rem; margin: .1rem 0 .3rem; }
.rp-desc { margin: 0; }
.rp-block { margin: 0 0 1.8rem; }
.rp-block h3 { margin-bottom: .5rem; }
.rp-meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin: .9rem 0 .3rem; }
.rp-seg { position: relative; height: 2.6rem; display: flex; align-items: flex-end; padding: .3rem .4rem;
  font: 500 .72rem/1.15 var(--sans); color: #fff; border-radius: 2px; }
.rp-seg.no { background: #E7E9ED !important; color: var(--muted); }
.rp-seg.ceil { box-shadow: 0 0 0 2px var(--navy); }
.rp-seg.ceil::after { content: "Your limit"; position: absolute; top: -1.3rem; left: 0; font: 600 .7rem var(--sans); color: var(--navy); }
.l1 { background: #2E7D32; } .l2 { background: #7CB342; } .l3 { background: #C9A227; }
.l4 { background: #E08A1E; } .l5 { background: #D2581F; } .l6 { background: #B3261E; }
.rp-why { list-style: none; margin: 0; padding: 0; }
.rp-why li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.rp-why strong { color: var(--navy); }
.rp-cap { background: #FCF3E3; border-left: 3px solid #C9A227; padding: .5rem .8rem; font-size: .92rem; margin: .6rem 0 0; }
.rp-note { font-size: .88rem; color: var(--muted); margin: .6rem 0 0; }
.rp-small { font-size: .82rem; }
.rp-cats, .rp-ans { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rp-cats th, .rp-cats td, .rp-ans th, .rp-ans td { text-align: left; vertical-align: top; padding: .5rem .6rem .5rem 0;
  border-bottom: 1px solid var(--rule); }
.rp-cats th { white-space: nowrap; color: var(--navy); font-weight: 600; width: 10.5rem; }
.rp-cats tr.no th, .rp-cats tr.no td { color: var(--muted); font-weight: 400; }
.rp-fit { white-space: nowrap; text-align: right !important; font-weight: 600; color: #1F6B36; }
.rp-cats tr.no .rp-fit { color: #9B3A1C; }
.rp-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .45rem; }
.rp-cats tr.no .rp-dot { opacity: .35; }
.rp-ans th { font-weight: 400; color: var(--muted); width: 55%; }
.rp-ans td { color: var(--ink, #1d232b); font-weight: 500; }
.rp-meta { display: grid; grid-template-columns: repeat(4, auto); gap: .3rem 1.5rem; margin: 1rem 0; font-size: .85rem; }
.rp-meta dt { color: var(--muted); } .rp-meta dd { margin: 0; font-weight: 600; color: var(--navy); }
.rp-decl { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 6px; font-size: .92rem; cursor: pointer; }
.rp-decl input { margin-top: .3rem; accent-color: var(--navy); flex: none; }
.rp-signed { font-size: .88rem; font-weight: 600; color: #1F6B36; margin: .5rem 0 0; }
.rp-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.rp-print-head { display: none; }
@media (max-width: 640px) {
  .rp-who { grid-template-columns: 1fr; }
  .rp-meter { grid-template-columns: repeat(3, 1fr); }
  .rp-seg.ceil::after { display: none; }
  .rp-meta { grid-template-columns: 1fr 1fr; }
  .rp-cats th { width: auto; white-space: normal; }
}
@media print {
  .site-head, .site-foot, .page-head, .status, .rp-intro, .rp-actions, .ctabox, .subnav, .rp-decl input { display: none !important; }
  body { font-size: 11pt; }
  main section { padding: 0 !important; }
  .rp-print-head { display: flex; justify-content: space-between; border-bottom: 2px solid #1F3864; padding-bottom: .4rem;
    margin-bottom: 1rem; color: #1F3864; }
  .rp-seg, .rp-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-block, .rp-ans tr { break-inside: avoid; }
  .rp-decl { border: 0; padding: 0; background: none; }
}

/* ---- fund page: factor tables with funds as rows, pillar history (24 Nov) ---- */
.fo-tx-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table.fo-tx { max-width: none; width: 100%; min-width: 34rem; }
table.fo-tx thead th { font-size: .8rem; font-weight: 600; color: var(--navy); vertical-align: bottom;
  text-align: right; line-height: 1.25; padding-bottom: .5rem; cursor: help; }
table.fo-tx td.n { width: auto; white-space: nowrap; }
table.fo-tx th[scope="row"] { white-space: nowrap; width: 1%; padding-right: 1.2rem; }
#fundone table.fo-tx tbody tr.me th, #fundone table.fo-tx tbody tr.me td { background: #EEF2F8; }
#fundone table.fo-tx tbody tr.bm th, #fundone table.fo-tx tbody tr.bm td { color: var(--muted); font-weight: 500; }
.fo-notes { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .8rem; color: var(--muted);
  margin: .7rem 0 0; max-width: 58rem; }
.fo-notes b { font-weight: 600; color: var(--body); }
@media (max-width: 640px) {
  #fundone table.fo-tx th[scope="row"] { position: sticky; left: 0; background: #fff; z-index: 1; }
}
table.fo-hist { max-width: 52rem; }
.fo-trend { max-width: 52rem; }
.fo-trend .pl { fill: none; stroke-width: 1.6; opacity: .85; }
.fo-trend .pp { stroke: #fff; stroke-width: 1; }
.fo-trend .pl.p1 { stroke: #1F6B36; } .fo-trend .pp.p1 { fill: #1F6B36; }
.fo-trend .pl.p2 { stroke: #0F6E6E; } .fo-trend .pp.p2 { fill: #0F6E6E; }
.fo-trend .pl.p3 { stroke: #C9A227; } .fo-trend .pp.p3 { fill: #C9A227; }
.fo-trend .pl.p4 { stroke: #6B4C9A; } .fo-trend .pp.p4 { fill: #6B4C9A; }
.fo-tkey { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-size: .82rem;
  color: var(--body); margin: .2rem 0 0; }
.fo-tkey .k { display: inline-block; width: 1.1rem; height: 3px; margin-right: .35rem; vertical-align: middle; }
.fo-tkey .k.tl { background: var(--blue); height: 4px; }
.fo-tkey .k.p1 { background: #1F6B36; } .fo-tkey .k.p2 { background: #0F6E6E; }
.fo-tkey .k.p3 { background: #C9A227; } .fo-tkey .k.p4 { background: #6B4C9A; }
.f-chart-bottom { margin-top: 2.6rem; }
/* funds-as-rows tables: plain columns, the fund's own row tinted instead */
#fundone table.fo-tx tbody td.n { background: transparent; font-weight: 500; color: var(--body); }
#fundone table.fo-tx tbody tr.me th, #fundone table.fo-tx tbody tr.me td.n { background: #EEF2F8; font-weight: 600; color: var(--navy); }
#fundone table.fo-tx tbody tr.bm td.n { color: var(--muted); }
#fundone table.fo-tx tbody tr:not(.me) th[scope="row"] { font-weight: 500; }

/* funds-as-rows tables: fund names as row labels (24 Nov) */
#fundone table.fo-tx th[scope="row"] { white-space: normal; width: auto; min-width: 11rem; max-width: 17rem; line-height: 1.3; }
#fundone table.fo-tx th[scope="row"] a { color: var(--navy); text-decoration: none; }
#fundone table.fo-tx th[scope="row"] a:hover { text-decoration: underline; }
#fundone table.fo-tx th[scope="row"] .rk { color: var(--muted); font-weight: 500; margin-right: .15rem; }
.fo-cmp-tab tr.ref th, .fo-cmp-tab tr.ref td { color: #5B2A86; background: #F7F3FB; }
.fo-cmp-tab tr.ref .cn { color: #5B2A86; }
@media (max-width: 640px) { #fundone table.fo-tx th[scope="row"] { min-width: 8.5rem; font-size: .78rem; } }
#fundone table.fo-tx tbody tr:nth-child(even):not(.me) th { background: #FAFBFC; }

/* ---- Portfolio review (mf-portfolio-review.html) ---- */
#pfapp { max-width: 66rem; }
.pf-step { margin: 0 0 2.6rem; }
.pf-step > h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; margin-bottom: 1rem; }
.pf-prof { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1.1rem; border-radius: 6px; border: 1px solid var(--rule); background: var(--white); margin-bottom: 1rem; max-width: 46rem; }
.pf-prof.ok { border-left: 4px solid #1F6B36; }
.pf-prof.need { border-left: 4px solid #C9A227; background: #FCF8EC; }
.pf-prof p { margin: 0; }
.pf-eyebrow { font: 600 .74rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pf-pname { font: 600 1.4rem var(--serif); color: var(--navy); }
.pf-pmeta { font-size: .88rem; }
.pf-up { max-width: 46rem; }
.pf-drop { display: flex; flex-direction: column; align-items: center; gap: .2rem; cursor: pointer; padding: 1.6rem 1rem;
  border: 2px dashed var(--rule); border-radius: 8px; background: var(--white); text-align: center; }
.pf-drop:hover, .pf-drop.over { border-color: var(--navy); background: #F3F6FA; }
.pf-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-drop-t { font-weight: 600; color: var(--navy); }
.pf-drop-s { font-size: .85rem; color: var(--muted); }
.pf-pw { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-top: .8rem; }
.pf-pw label { display: flex; flex-direction: column; gap: .25rem; font: 500 .9rem var(--sans); color: var(--navy); }
.pf-pw input { font: 400 1rem var(--sans); padding: .5rem .7rem; border: 1px solid var(--rule); border-radius: 4px; }
.pf-status { margin: .6rem 0 0; font-size: .92rem; font-weight: 500; color: #1F6B36; min-height: 1.2em; }
.pf-status.bad { color: #9B3A1C; }
.pf-how { margin-top: .8rem; font-size: .9rem; }
.pf-how summary { cursor: pointer; color: var(--navy); font-weight: 500; }
.pf-how ol { margin: .5rem 0; padding-left: 1.2rem; }
.pf-asof { font-size: .85rem; color: var(--muted); margin: 0 0 .7rem; }
.pf-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-bottom: 1rem; }
.pf-tile { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: .7rem .8rem; }
.pf-tile span { display: block; font-size: .78rem; color: var(--muted); }
.pf-tile b { font: 600 1.25rem var(--sans); color: var(--navy); }
.pf-mix { display: flex; height: .8rem; border-radius: 4px; overflow: hidden; background: #E7E9ED; }
.pf-mix span { display: block; height: 100%; }
.pf-mixkey { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .84rem; margin: .5rem 0 1.4rem; }
.pf-mixkey i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
table.pf-tab { width: 100%; min-width: 56rem; font-size: .88rem; }
table.pf-tab thead th { background: var(--navy); color: #fff; font-size: .74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; padding: .55rem .6rem; text-align: left; }
table.pf-tab thead th.n, table.pf-tab td.n { text-align: right; }
table.pf-tab td, table.pf-tab tbody th { padding: .55rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.pf-tab tbody th { font-weight: 500; text-align: left; min-width: 14rem; }
table.pf-tab tbody th a { color: var(--navy); }
table.pf-tab td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-sub { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }
.pf-msg { font-size: .84rem; }
tr.pf-switch .pf-msg, tr.pf-above .pf-msg { color: #9B3A1C; font-weight: 500; }
tr.pf-review .pf-msg { color: #8A5A12; }
tr.pf-keep .pf-msg { color: #1F6B36; }
tr.pf-nc .pf-msg { color: var(--muted); }
.pf-lock { padding: .9rem 1.1rem; border-left: 4px solid #C9A227; background: #FCF8EC; border-radius: 4px; max-width: 46rem; }
.pf-lock p { margin: 0; }
.pf-recs { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.pf-r { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.pf-rk { font: 600 .78rem var(--sans); text-transform: uppercase; letter-spacing: .04em; padding-top: .15rem; }
.pf-r.above .pf-rk, .pf-r.switch .pf-rk { color: #9B3A1C; }
.pf-r.review .pf-rk, .pf-r.dupe .pf-rk, .pf-r.small .pf-rk { color: #8A5A12; }
.pf-r.keep .pf-rk { color: #1F6B36; }
.pf-alts { margin: .4rem 0 0; padding-left: 1.1rem; }
.pf-alts li { margin: .15rem 0; }
.pf-alts .pf-sub { display: inline; }
@media (max-width: 760px) {
  .pf-tiles { grid-template-columns: 1fr 1fr; }
  .pf-r { grid-template-columns: 1fr; gap: .2rem; }
}
@media print {
  #pf-s1 #rpapp, #pf-s2, .pf-actions, #pf-retake, .rp-actions { display: none !important; }
  table.pf-tab { min-width: 0; font-size: 8.5pt; }
  .pf-mix span, .pf-mixkey i, table.pf-tab thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.pf-pw[hidden] { display: none; }
table.pf-tab tbody th, table.pf-tab tbody tr:nth-child(even) th { background: transparent; color: var(--ink, #1d232b); }
table.pf-tab tbody tr:nth-child(even) th, table.pf-tab tbody tr:nth-child(even) td { background: #FAFBFC; }
table.pf-tab tbody th a { color: var(--navy); font-weight: 600; text-decoration: none; }
table.pf-tab tbody th a:hover { text-decoration: underline; }
table.pf-tab tbody th .tag { margin-left: .2rem; }

/* pick badge sits under the verdict (24 Nov) */
.tag.pk { display: block; width: max-content; margin: .35rem auto 0; font-size: .62rem; letter-spacing: .04em; }
.fc-vd { display: inline-flex; flex-direction: column; align-items: center; }
.fc-vd .tag.pk { margin-top: .25rem; }

/* portfolio review: holdings grouped by asset class; riskometer column (25 Nov) */
.pf-tab tbody tr.pf-grp th, .pf-tab tbody tr.pf-grp:nth-child(even) th { background: var(--navy) !important; color: #fff; padding: .55rem .7rem; text-align: left; }
.pf-tab tr.pf-grp .pf-gname { font-weight: 600; font-size: .95rem; margin-right: .8rem; }
.pf-tab tr.pf-grp .pf-gval { font-weight: 400; font-size: .82rem; opacity: .85; }
td.c-risk, th.c-risk { white-space: nowrap; font-size: .85rem; }

/* portfolio review: portfolio score tile (25 Nov) */
.pf-tile b small { font-size: .75rem; color: var(--muted); font-weight: 500; margin-left: .1rem; }
.pf-tile em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); margin-top: .15rem; line-height: 1.3; }
.pf-tile-main { border-color: var(--navy); background: #EEF2F8; }

/* portfolio review: alternatives column (25 Nov) */
.pf-tab td.pf-alt .pf-alt1 { margin-bottom: .45rem; min-width: 12rem; }
.pf-tab td.pf-alt .pf-alt1:last-child { margin-bottom: 0; }
.pf-tab td.pf-alt a { font-size: .88rem; line-height: 1.35; }

/* ---- demo sign-in pop-up (25 Nov) ---- */
html.wl-lock { overflow: hidden; }
.wl-back { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 25, 45, .55);
  display: flex; align-items: center; justify-content: center; padding: 1rem; }
.wl-box { position: relative; width: 100%; max-width: 24rem; background: #fff; border-radius: 12px;
  padding: 2rem 1.8rem 1.4rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; }
.wl-x { position: absolute; top: .6rem; right: .7rem; border: 0; background: none; font-size: 1.5rem;
  line-height: 1; color: var(--muted); cursor: pointer; padding: .3rem .5rem; }
.wl-mark { width: 2.4rem; height: 2.4rem; margin-bottom: .6rem; }
.wl-box h2 { font-size: 1.45rem; margin: 0 0 .3rem; }
.wl-sub { font-size: .9rem; color: var(--body); margin: 0 0 1.2rem; }
.wl-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  min-height: 44px; border-radius: 6px; font: 600 .95rem var(--sans); cursor: pointer; }
.wl-g { background: #fff; border: 1px solid var(--rule-strong, #C4CBD6); color: var(--ink, #1d232b); }
.wl-g:hover { border-color: var(--navy); }
.wl-gl { font: 700 1.05rem var(--sans); color: #4285F4; }
.wl-p { background: var(--navy); border: 0; color: #fff; margin-top: .7rem; }
.wl-or { display: flex; align-items: center; gap: .7rem; margin: 1rem 0; color: var(--muted); font-size: .82rem; }
.wl-or::before, .wl-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.wl-form label { display: block; text-align: left; font: 500 .85rem var(--sans); color: var(--navy); }
.wl-ph { display: flex; margin-top: .3rem; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.wl-ph span { padding: .6rem .7rem; background: var(--paper); color: var(--body); font-size: .95rem; border-right: 1px solid var(--rule); }
.wl-ph input { flex: 1; border: 0; padding: .6rem .7rem; font: 400 16px var(--sans); min-width: 0; }
.wl-ph input:focus { outline: none; } .wl-ph:focus-within { border-color: var(--navy); }
.wl-skip { margin-top: .9rem; border: 0; background: none; color: var(--blue); font: 500 .88rem var(--sans); cursor: pointer; }
.wl-note { font-size: .74rem; color: var(--muted); margin: .8rem 0 0; }
@media print { .wl-back { display: none !important; } }

/* portfolio review: second way in - MF Central fetch placeholder (25 Nov) */
.pf-ways { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pf-ways .pf-drop { position: relative; margin: 0; width: 100%; font: inherit; text-align: center; }
.pf-fetch { background: #fff; }
.pf-fetch.on { border-color: var(--navy); border-style: solid; background: #F3F6FA; }
.pf-soon { position: absolute; top: .5rem; right: .6rem; font: 600 .66rem var(--sans); letter-spacing: .04em;
  color: #8A5A12; background: #FCF3E3; border-radius: 999px; padding: .15rem .5rem; }
.pf-fetchbox { margin-top: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); font-size: .92rem; }
.pf-fetchbox[hidden] { display: none; }
.pf-fetchbox p { margin: 0 0 .6rem; }
.pf-fetchrow { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .5rem; }
.pf-fetchrow label { display: flex; flex-direction: column; gap: .25rem; font: 500 .85rem var(--sans); color: var(--navy); }
.pf-fetchrow input { font: 400 16px var(--sans); padding: .5rem .7rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; width: 11rem; }
@media (max-width: 640px) { .pf-ways { grid-template-columns: 1fr; } }

/* ---- home page as an app launcher (26 Nov) ---- */
body.home-app .nav-toggle, body.home-app .nav-list { display: none !important; }
body.home-app .nav { display: none !important; }
.ap { background: var(--paper); padding: 1.6rem 0 2.2rem; }
.ap-wrap { max-width: 46rem; }
.ap-hi { margin: 0; font: 500 .9rem var(--sans); color: var(--muted); }
.ap-hello h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .1rem 0 1.1rem; }
.ap-hero { position: relative; display: block; text-decoration: none; color: #fff; border-radius: 16px;
  padding: 1.2rem 3.2rem 1.2rem 1.3rem; margin-bottom: 1.6rem;
  background: linear-gradient(135deg, var(--navy) 0%, #2B4F8C 100%); box-shadow: 0 6px 18px rgba(31,56,100,.22); }
.ap-hero:hover { color: #fff; filter: brightness(1.05); }
.ap-hero-t { display: block; font: 600 1.15rem var(--sans); }
.ap-hero-s { display: block; font-size: .9rem; opacity: .85; margin-top: .2rem; }
.ap-hero-go { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--orange, #E8692E); display: grid; place-items: center; font-size: 1.1rem; }
.ap-sec { background: #fff; border-radius: 16px; padding: 1.1rem 1rem 1.2rem; margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(20,30,50,.06), 0 0 0 1px rgba(20,30,50,.04); }
.ap-sec h2 { font: 600 1rem var(--sans); color: var(--navy); margin: 0 0 .9rem .2rem; }
.ap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem .5rem; }
.ap-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem;
  text-decoration: none; color: var(--ink, #1d232b); text-align: center; padding: .2rem 0; border-radius: 12px; }
a.ap-tile:hover .ap-ic { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20,30,50,.15); }
.ap-ic { width: 3.4rem; height: 3.4rem; border-radius: 16px; display: grid; place-items: center; color: #fff;
  transition: transform .15s, box-shadow .15s; box-shadow: 0 3px 8px rgba(20,30,50,.12); }
.ap-ic svg { width: 1.6rem; height: 1.6rem; }
.ap-lb { font: 500 .8rem/1.25 var(--sans); max-width: 6.5rem; }
.ap-tile.soon { opacity: .55; cursor: default; }
.ap-soon { position: absolute; top: -.35rem; right: calc(50% - 2.3rem); font: 600 .58rem var(--sans); letter-spacing: .03em;
  background: #FCF3E3; color: #8A5A12; border-radius: 999px; padding: .1rem .4rem; }
.c1 { background: linear-gradient(135deg, #1F3864, #2E5596); }
.c2 { background: linear-gradient(135deg, #1F6B36, #2F8F4E); }
.c3 { background: linear-gradient(135deg, #0F6E6E, #1A9090); }
.c4 { background: linear-gradient(135deg, #6B4C9A, #8A68BD); }
.c5 { background: linear-gradient(135deg, #2B7BD8, #4E97E8); }
.c6 { background: linear-gradient(135deg, #D2581F, #E8792E); }
.r1 { background: linear-gradient(135deg, #B3261E, #D24A3A); }
.r2 { background: linear-gradient(135deg, #B8860B, #D9A92E); }
.r3 { background: linear-gradient(135deg, #5F6368, #80858B); }
.r4 { background: linear-gradient(135deg, #34495E, #52687E); }
body.home-app .hcar { margin-top: 0; }
@media (min-width: 720px) { .ap-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 380px) { .ap-ic { width: 3rem; height: 3rem; border-radius: 14px; } .ap-lb { font-size: .74rem; } }

/* home launcher on laptops: wider, bigger tiles, sections side by side (26 Nov) */
body.home-app main { background: var(--paper); min-height: calc(100vh - 12rem); }
@media (min-width: 900px) {
  .ap { padding: 2.4rem 0 3rem; }
  .ap-wrap { max-width: 72rem; display: grid; grid-template-columns: 3fr 2fr; gap: 1.4rem; align-items: start; }
  .ap-hello { grid-column: 1 / -1; }
  .ap-hello h1 { font-size: 2.6rem; margin-bottom: .4rem; }
  .ap-sec { margin: 0; padding: 1.6rem 1.4rem 1.8rem; border-radius: 20px; }
  .ap-sec h2 { font-size: 1.2rem; margin-bottom: 1.4rem; }
  .ap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .ap-sec:last-child .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-ic { width: 5rem; height: 5rem; border-radius: 22px; }
  .ap-ic svg { width: 2.3rem; height: 2.3rem; }
  .ap-lb { font-size: 1rem; max-width: 9rem; }
  .ap-soon { right: calc(50% - 3.1rem); font-size: .66rem; }
}

/* ==== App shell (26 Nov) ==== */
/* page titles: a light, compact header on every screen size */
.page-head { background: var(--paper); color: var(--body); padding-block: 1.4rem 1rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { color: var(--navy); font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: .2rem; }
.page-head .lede { color: var(--body); font-size: .95rem; margin: .4rem 0 0; }
.ph-about summary { cursor: pointer; font: 500 .85rem var(--sans); color: var(--blue); list-style: none; display: inline-flex; gap: .3rem; align-items: center; }
.ph-about summary::-webkit-details-marker { display: none; }
.ph-about summary::before { content: "i"; display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%;
  border: 1.5px solid currentColor; font: 700 .62rem/1 var(--sans); }
.ph-about[open] summary { margin-bottom: .2rem; }
.app-bar, .app-tabs, .legal-links { display: none; }

@media (max-width: 760px) {
  /* top bar replaces logo + menu on inner pages */
  body:not(.home-app) .site-head .brand,
  body:not(.home-app) .site-head .nav-toggle,
  body:not(.home-app) .site-head .nav { display: none !important; }
  body:not(.home-app) .head-row { min-height: 54px; }
  .app-bar { display: flex; align-items: center; width: 100%; gap: .3rem; }
  .app-title { flex: 1; text-align: center; font: 600 1.02rem var(--sans); color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none;
    color: var(--navy); border-radius: 50%; cursor: pointer; flex: none; }
  .app-btn:active { background: var(--fill, #EEF1F6); }
  .app-btn svg { width: 22px; height: 22px; }
  body.home-app .nav-toggle { display: none !important; }
  /* the page title is in the bar, so the page head can be slimmer */
  .page-head { padding-block: .9rem .7rem; }
  .page-head h1 { font-size: 1.4rem; }
  .subnav { display: none; }
  .fo-hero { padding-block: 1.1rem 1.2rem; }
  .fo-hero .fo-name { font-size: 1.45rem; }

  /* bottom tab bar */
  .app-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(255,255,255,.98); border-top: 1px solid var(--rule); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 14px rgba(20,30,50,.06); }
  .app-tabs a { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-decoration: none;
    color: var(--muted); font: 500 .66rem var(--sans); padding: .25rem 0; }
  .app-tabs a svg { width: 22px; height: 22px; }
  .app-tabs a.on { color: var(--navy); font-weight: 600; }
  .app-tabs a.on svg { stroke-width: 2.3; }
  body.has-tabs { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .rp-submit { bottom: calc(60px + env(safe-area-inset-bottom)); }

  /* short footer */
  .site-foot { padding-block: 1.2rem 1rem; }
  .site-foot .foot-grid { display: none; }
  .legal { border-top: 0; padding-top: 0; font-size: .72rem; }
  .legal-links { display: block; font-size: .82rem; margin-bottom: .7rem !important; }
  .legal-links a { color: #C3CDDE; }
  .wl-back { padding-bottom: 80px; }
}
@media print { .app-bar, .app-tabs { display: none !important; } }

/* ==== Risk profile: one question per screen (26 Nov) ==== */
.rp-wiz .rp-part, .rp-wiz .rp-q, .rp-wiz .rp-who { display: none; }
.rp-wiz .rp-part.cur { display: block; margin-bottom: 1rem; }
.rp-wiz .rp-who.cur { display: grid; }
.rp-wiz .rp-q.cur { display: block; border-top: 0; padding-top: .2rem; animation: rpIn .22s ease-out; }
@keyframes rpIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rp-wiz .rp-q.cur { animation: none; } }
.rp-wiz .rp-step { display: none; }
.rp-wiz .rp-part legend { font: 600 .78rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.rp-wiz .rp-ql { font: 600 1.2rem/1.35 var(--sans); margin-bottom: .3rem; }
.rp-wiz .rp-opts { gap: .55rem; margin-top: .9rem; }
.rp-wiz .rp-opt { padding: .85rem 1rem; font-size: 1rem; border-radius: 10px; min-height: 52px; }
.rp-wiz .rp-count { display: none; }
.rp-prog { margin-bottom: 1.2rem; }
.rp-prog-t { display: flex; justify-content: space-between; font: 500 .82rem var(--sans); color: var(--muted); margin-bottom: .4rem; }
.rp-prog-b { height: 6px; background: #E3E7EE; border-radius: 99px; overflow: hidden; }
.rp-prog-b span { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .25s; }
.rp-wiz .rp-submit { justify-content: flex-end; gap: .6rem; }
.rp-wiz .rp-submit .rp-prev { margin-right: auto; }
.rp-wiz .rp-submit [hidden] { display: none; }
@media (max-width: 760px) {
  .rp-wiz .rp-submit .btn { min-height: 46px; padding-inline: 1.4rem; }
  .rp-wiz .rp-submit .rp-next, .rp-wiz .rp-submit #rp-go { flex: 1; }
}

/* ==== Portfolio review: stepper and holdings as cards on phones (26 Nov) ==== */
.pf-stepper { position: sticky; top: 70px; z-index: 20; display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.97); border: 1px solid var(--rule); border-radius: 14px; padding: .55rem .8rem; margin-bottom: 1.4rem;
  box-shadow: 0 2px 8px rgba(20,30,50,.05); }
.pf-st { display: flex; align-items: center; gap: .45rem; border: 0; background: none; padding: .2rem; cursor: pointer;
  font: 500 .88rem var(--sans); color: var(--muted); }
.pf-st-n { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--rule-strong, #C4CBD6); font: 600 .8rem var(--sans); color: var(--muted); background: #fff; }
.pf-st.cur { color: var(--navy); font-weight: 600; }
.pf-st.cur .pf-st-n { background: var(--navy); border-color: var(--navy); color: #fff; }
.pf-st.done { color: #1F6B36; }
.pf-st.done .pf-st-n { background: #1F6B36; border-color: #1F6B36; color: #fff; }
.pf-st-line { flex: 1; height: 2px; background: var(--rule); min-width: .8rem; }
@media (max-width: 760px) {
  .pf-stepper { top: 54px; padding: .45rem .55rem; gap: .25rem; }
  .pf-st { flex-direction: column; gap: .15rem; font-size: .7rem; }
  .pf-st-line { margin-bottom: .9rem; }
  /* holdings table becomes cards */
  .pf-tab, .pf-tab tbody { display: block; min-width: 0; }
  .pf-tab thead { display: none; }
  .pf-tab tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .9rem; padding: .85rem .9rem; margin: .6rem 0;
    background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
  .pf-tab tbody tr.pf-grp { display: block; padding: 0; margin: 1.2rem 0 .3rem; border: 0; background: none; }
  .pf-tab tbody tr.pf-grp th { border-radius: 10px; }
  .pf-tab tbody tr:not(.pf-grp) > * { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
  .pf-tab tbody tr.pf-grp th { display: block; padding: .6rem .8rem !important; }
  .pf-tab tbody tr > th[scope="row"] { grid-column: 1 / -1; font-size: 1rem; margin-bottom: .2rem; }
  .pf-tab tbody tr > td[data-l]::before { content: attr(data-l); display: block; font: 500 .68rem var(--sans);
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
  .pf-tab tbody tr > td.pf-msg, .pf-tab tbody tr > td.pf-alt { grid-column: 1 / -1; }
  .pf-tab tbody tr > td.pf-alt:empty { display: none; }
  .pf-tab td.pf-alt .pf-alt1 { min-width: 0; }
  .fo-tx-wrap:has(.pf-tab) { overflow: visible; }
}

.rp-wiz .rp-submit { position: static; border-top: 0; background: none; padding-top: 1rem; }
details.rp-intro-d { margin-bottom: 1.2rem; font-size: .92rem; }
details.rp-intro-d > summary { cursor: pointer; font: 500 .88rem var(--sans); color: var(--blue); }
details.rp-intro-d .rp-intro { margin: .6rem 0 0; }

/* home: carousel at the bottom, light theme tint so it stands apart from the navy footer (26 Nov) */
body.home-app main > section.hero.hcar { background: var(--paper); color: var(--body); padding-block: 1.6rem 2.6rem; }
body.home-app .hcar .wrap { background: var(--tint); border: 1px solid var(--rule); border-left: 4px solid var(--blue);
  border-radius: 16px; padding: 1.8rem clamp(1.2rem, 3vw, 2.4rem) 1.4rem; }
body.home-app .hcar .hero-h { color: var(--navy); font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
body.home-app .hcar .lede { color: var(--body); }
body.home-app .hcar .btn-light { background: #fff; color: var(--navy); border: 1px solid var(--rule-strong); }
body.home-app .hcar .harrow { color: var(--navy); border-color: var(--rule-strong); background: #fff; }
body.home-app .hcar .hdot { background: var(--rule-strong); }
body.home-app .hcar .hdot[aria-current="true"] { background: var(--orange); }
.r5 { background: linear-gradient(135deg, #0B5D63, #14848C); }
.r6 { background: linear-gradient(135deg, #7A3E9D, #9A5FC0); }
@media (min-width: 900px) {
  .ap-wrap { grid-template-columns: 1fr 1fr; }
  .ap-sec:last-child .ap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==== Equity Funds on phones: pinned picker, swipe chip rows, full names (26 Nov) ==== */
.f-pin { display: contents; }
@media (max-width: 760px) {
  body:not(.home-app) .site-head { position: sticky; top: 0; }
  .f-pin { display: block; position: sticky; top: 54px; z-index: 40; background: #fff;
    margin: 0 calc(-1 * var(--gap, 1rem)); padding: .55rem var(--gap, 1rem) .5rem; border-bottom: 1px solid var(--rule);
    box-shadow: 0 6px 12px -10px rgba(20,30,50,.25); }
  .f-pin .fhead { margin: 0 0 .5rem; }
  .f-pin .fhead h1 { display: none; }
  .f-pin .fhead .fctl, .f-pin .fhead .fctl > div { flex: 1 1 100%; }
  .f-pin #f-cat { width: 100%; font: 600 1rem var(--sans); padding: .6rem .7rem; border-radius: 10px; }
  /* one line of chips each, swiped sideways */
  .f-pin .vtags, .flist-ctl .arrange { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; margin: 0; padding-bottom: 2px; }
  .f-pin .vtags::-webkit-scrollbar, .flist-ctl .arrange::-webkit-scrollbar { display: none; }
  .f-pin .vtags > *, .flist-ctl .arrange > * { flex: none; white-space: nowrap; scroll-snap-align: start; }
  .flist-ctl { margin-top: .8rem; }
  section.hairline:has(#fundapp) { padding-top: .3rem; }
  .f-srch input { padding: .6rem .8rem; border: 1px solid var(--rule-strong); border-radius: 10px; font-size: .95rem; }
  /* card: rank + full name on the first line, verdict / pick / score / toggle on the second */
  .fcard .fc-top { grid-template-columns: auto 1fr auto auto; grid-template-areas: "rk id id id" ". vd sc mo";
    row-gap: .45rem; align-items: center; }
  .fcard .fc-rank { grid-area: rk; align-self: start; margin-top: .1rem; }
  .fcard .fc-id { grid-area: id; align-self: start; }
  .fcard .fc-vd { grid-area: vd; flex-direction: row; flex-wrap: wrap; gap: .35rem; align-items: center; justify-self: start; }
  .fcard .fc-vd .tag.pk { margin-top: 0; }
  .fcard .fc-score { grid-area: sc; }
  .fcard .fc-more { grid-area: mo; }
  .fcard .fn { -webkit-line-clamp: 2; font-size: .98rem; white-space: normal; }
}

/* ==== Fund page on phones: pinned Invest bar, folding sections (26 Nov) ==== */
.fo-ibar { display: none; }
@media (max-width: 760px) {
  .fo-ibar { display: flex; align-items: center; gap: .6rem; position: fixed; left: 0; right: 0; z-index: 85;
    bottom: calc(55px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule);
    padding: .55rem 1rem; box-shadow: 0 -6px 14px rgba(20,30,50,.07); }
  .fo-ib-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .fo-ib-t b { font: 600 .88rem var(--sans); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fo-ib-t span { font: .74rem var(--sans); color: var(--muted); }
  .fo-ibar .inv-b { display: flex; flex-direction: row !important; gap: .4rem; flex: none; }
  .fo-ibar .btn-mini { padding: .55rem .85rem; font-size: .84rem; }
  .fo-ibar .inv-gate { display: none; }
  body.has-ibar.has-tabs { padding-bottom: calc(122px + env(safe-area-inset-bottom)); }
  /* folding sections */
  .fo-fold { padding-block: 1rem !important; }
  .fo-fold > .wrap > h2 { cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    margin: 0; font-size: 1.25rem; -webkit-tap-highlight-color: transparent; }
  .fo-fold > .wrap > h2::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -.3rem .3rem 0 0; transition: transform .2s; }
  .fo-fold.open > .wrap > h2 { margin-bottom: .9rem; }
  .fo-fold.open > .wrap > h2::after { transform: rotate(-135deg); margin-top: .3rem; }
  .fo-fold:not(.open) > .wrap > :not(h2) { display: none !important; }
}

/* ==== Mutual Funds landing: one list of tools (26 Nov) ==== */
.mfl { background: var(--paper); padding-block: 1.4rem 2rem; }
.mfl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.mfl-tile { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: .9rem 1rem; text-decoration: none; color: var(--body); transition: box-shadow .15s, transform .15s; }
.mfl-tile:hover { box-shadow: 0 6px 16px rgba(20,30,50,.08); transform: translateY(-1px); }
.mfl-tile .ap-ic { flex: none; width: 3rem; height: 3rem; border-radius: 14px; }
.mfl-tile .ap-ic svg { width: 1.5rem; height: 1.5rem; }
.mfl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mfl-t b { font: 600 1rem var(--sans); color: var(--navy); }
.mfl-t span { font-size: .85rem; color: var(--muted); }
.mfl-go { font-size: 1.5rem; color: var(--rule-strong); }
@media (max-width: 760px) { .mfl-list { grid-template-columns: 1fr; gap: .6rem; } .mfl { padding-block: 1rem 1.4rem; } }

/* ==== Compare on phones: fund search sheet (26 Nov) ==== */
.cmp-sheet[hidden] { display: none; }
.cmp-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(15,25,45,.45); display: flex; align-items: flex-end; }
.cs-panel { background: #fff; width: 100%; height: 88vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  padding: .9rem 1rem 0; box-shadow: 0 -10px 30px rgba(15,25,45,.2); animation: csup .22s ease-out; }
@keyframes csup { from { transform: translateY(30%); opacity: .4; } to { transform: none; opacity: 1; } }
.cs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cs-title { font: 600 1.05rem var(--sans); color: var(--navy); }
.cs-x { border: 0; background: var(--fill); width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--navy); cursor: pointer; }
.cs-q { width: 100%; padding: .7rem .85rem; border: 1px solid var(--rule-strong); border-radius: 10px; font: 400 1rem var(--sans); }
.cs-cats { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .7rem 0 .5rem; flex: none; }
.cs-cats::-webkit-scrollbar { display: none; }
.cs-cats button { flex: none; white-space: nowrap; border: 1px solid var(--rule-strong); background: #fff; color: var(--navy);
  border-radius: 999px; padding: .4rem .75rem; font: 500 .8rem var(--sans); }
.cs-cats button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cs-list { list-style: none; margin: 0; padding: 0 0 1.5rem; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.cs-list li { border-bottom: 1px solid var(--rule); }
.cs-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; text-align: left;
  border: 0; background: none; padding: .75rem .2rem; cursor: pointer; }
.cs-list .cs-n { font: 600 .95rem var(--sans); color: var(--navy); }
.cs-list .cs-m { grid-column: 1; font-size: .8rem; color: var(--muted); }
.cs-list .vb { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: .72rem; }
.cs-none { padding: 1rem .2rem; color: var(--muted); }
body.cs-open { overflow: hidden; }
@media (max-width: 760px) {
  .cmp-in { caret-color: transparent; cursor: pointer; }
  .cmp-why { font-size: .85rem; }
}

/* ==== Laptop: same navigation as the phone (26 Nov) ====
   Logo stays at the left for the brand; the menu, the sub-menu strip and the
   header button give way to the back / title / home bar, and the five tabs sit
   in a dock at the bottom of the screen. */
@media (min-width: 761px) {
  .site-head .nav, .site-head .nav-toggle { display: none !important; }
  .subnav { display: none !important; }
  :root { --stick: 71px; }
  .app-bar { display: flex; align-items: center; flex: 1; gap: .4rem; min-width: 0; }
  .site-head .head-row { position: relative; }
  .app-title { position: absolute; left: 50%; transform: translateX(-50%); max-width: 46%; text-align: center;
    font: 600 1.1rem var(--sans); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
  .app-bar .app-home { margin-left: auto; }
  .app-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none;
    color: var(--navy); border-radius: 50%; cursor: pointer; flex: none; }
  .app-btn:hover { background: var(--fill); }
  .app-btn svg { width: 22px; height: 22px; }
  .app-home { order: 3; }
  .app-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 90;
    left: 50%; transform: translateX(-50%); bottom: 16px; width: min(560px, calc(100% - 2rem));
    background: rgba(255,255,255,.97); border: 1px solid var(--rule); border-radius: 18px; padding: .35rem .4rem;
    box-shadow: 0 10px 30px rgba(20,30,50,.14); backdrop-filter: blur(6px); }
  .app-tabs a { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-decoration: none;
    color: var(--muted); font: 500 .74rem var(--sans); padding: .4rem 0; border-radius: 12px; transition: background .15s, color .15s; }
  .app-tabs a svg { width: 22px; height: 22px; }
  .app-tabs a:hover { color: var(--navy); background: var(--fill); }
  .app-tabs a.on { color: var(--navy); font-weight: 600; background: var(--tint); }
  .app-tabs a.on svg { stroke-width: 2.3; }
  body.has-tabs { padding-bottom: 96px; }
  body.has-tabs .site-foot { padding-bottom: 6.5rem; }
}
@media print { .app-tabs, .app-bar { display: none !important; } }

/* =====================================================================
   DESIGN SYSTEM (26 Nov) - one scale for type, space, surfaces and controls.
   Everything above this line is older; this block wins.
   ===================================================================== */
:root {
  --fs-h1: 1.5rem; --fs-h2: 1.25rem; --fs-h3: 1.05rem; --fs-body: 1rem; --fs-sm: .875rem; --fs-xs: .78rem;
  --sp-sec: 2rem; --sp-head: 1.4rem; --r-card: 14px; --r-ctl: 10px;
  --shadow-card: 0 1px 2px rgba(20,30,50,.04);
}
@media (min-width: 761px) { :root { --fs-h1: 2rem; --fs-h2: 1.5rem; --sp-sec: 3rem; --sp-head: 2rem; } }

body { font-size: var(--fs-body); line-height: 1.6; color: var(--body); }
main h1 { font-size: var(--fs-h1) !important; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
main h2 { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.005em; margin: 0 0 1rem; }
main h3 { font-size: var(--fs-h3); line-height: 1.35; }
main p { line-height: 1.6; }
.asof, .form-note, .rp-note { font-size: var(--fs-sm) !important; color: var(--muted) !important; line-height: 1.5; }

/* surfaces: white content, one light band for page headers, no zebra sections */
main > section:nth-of-type(even):not(.band) { background: transparent; }
main > section:nth-of-type(even):not(.band).hairline { border-top-color: var(--rule); }
#fundone section.fo-alt { background: transparent; }
main > section:not(.page-head):not(.ap):not(.hcar):not(.mfl):not(.fo-hero) { padding-block: var(--sp-sec); }
main > section.hairline:first-child, .page-head + section.hairline { border-top: 0; }
main > .page-head + section, #fundone > .fo-hero + section { padding-top: calc(var(--sp-sec) * .75) !important; }

/* one page header */
.page-head, #fundone .fo-hero { background: var(--paper) !important; color: var(--body);
  border-bottom: 1px solid var(--rule); padding-block: var(--sp-head) calc(var(--sp-head) * .85) !important; }
.page-head h1, #fundone .fo-hero .fo-name { color: var(--navy); font-family: var(--serif); max-width: none; }
.ph-sub, #fundone .fo-sub { color: var(--body); font: 400 var(--fs-sm)/1.5 var(--sans); margin: .45rem 0 0; max-width: 60ch; }
.fo-crumb { font: 500 var(--fs-xs)/1.4 var(--sans) !important; color: var(--muted) !important; margin: 0 0 .5rem !important; }
.fo-crumb a { color: var(--blue) !important; }
.fo-crumb a:hover { color: var(--navy) !important; }
.fo-crumb span { color: var(--muted); opacity: 1 !important; }
#fundone .fo-hero .chip, .chip { border: 1px solid var(--rule); background: #fff; color: var(--ink); font: 500 var(--fs-xs)/1.5 var(--sans); padding: .2rem .65rem; }
#fundone .fo-chips { margin-top: .9rem; }

/* narrow reading pages */
.pg-narrow .wrap { max-width: 760px; }
.pg-mid .wrap { max-width: 980px; }

/* cards */
.card, .form-wrap, .ctabox, .factbox, .cmp-card, .inv-card, .mfl-tile, .inv-ill, .pf-stepper, .rp-block,
.fo-big, .pf-prof, .pf-lock, .rp-intro, details.rp-intro-d, .cs-panel {
  border-radius: var(--r-card) !important; }
.card, .form-wrap { background: #fff !important; border: 1px solid var(--rule); box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 3vw, 2rem); }
.card > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; margin: 1.5rem 0 .4rem; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: .6rem; }
.about-card .statstrip { grid-template-columns: repeat(2, 1fr); margin: 1.25rem 0 1.5rem; border-radius: 10px; overflow: hidden; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .7rem 1.2rem; border-radius: var(--r-ctl); font: 600 .94rem/1.1 var(--sans); }
.btn-mini { border-radius: 8px; font-weight: 600; }
main input[type=text], main input[type=email], main input[type=tel], main input[type=search], main input[type=number],
main input[type=password], main select, main textarea, .cs-q {
  min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl);
  background: #fff; font: 400 1rem var(--sans); color: var(--ink); box-sizing: border-box; }
main input:focus-visible, main select:focus-visible, main textarea:focus-visible, .cs-q:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
main input:disabled { background: var(--fill); color: var(--muted); }
.field label, .rp-who label > span { font: 500 var(--fs-sm) var(--sans); color: var(--ink); }
#f-search { min-width: 18rem; }

/* tables: one size, one header */
table.plain { font-size: var(--fs-sm); }
table.plain th { font: 600 var(--fs-xs)/1.3 var(--sans); letter-spacing: .01em; padding: .7rem .75rem; vertical-align: bottom; }
table.plain td { padding: .7rem .75rem; vertical-align: top; }
table.plain tbody th[scope="row"] { font: 500 var(--fs-sm)/1.35 var(--sans); }

/* invest page */
.inv-choice { gap: 1rem; }
.inv-ill { margin-top: 1.25rem; background: #fff; border: 1px solid var(--rule); padding: 1.1rem 1.25rem; }
.inv-ill-h { font: 600 var(--fs-sm) var(--sans); color: var(--navy); margin: 0 0 .75rem; }
.inv-ill-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.inv-ill-row div { background: var(--paper); border-radius: 10px; padding: .65rem .8rem; }
.inv-ill-row span { display: block; font-size: var(--fs-xs); color: var(--muted); }
.inv-ill-row b { font: 600 1rem var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.inv-ill-n { font-size: var(--fs-xs); color: var(--muted); margin: .6rem 0 0; }

/* page foot: source line + one button */
.pg-src { margin-top: 1.5rem; }
.pg-cta { margin: .9rem 0 0; }
details.fo-notes-d { margin-top: .75rem; }
details.fo-notes-d > summary { cursor: pointer; font: 500 var(--fs-sm) var(--sans); color: var(--blue); }
details.fo-notes-d .fo-notes { margin-top: .5rem; }

/* footer: one compact layout on every screen */
.site-foot { padding-block: 1.75rem 1.5rem !important; }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.foot-row .foot-brand { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot-links a { color: #C3CDDE; text-decoration: none; font-size: var(--fs-sm); }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.site-foot .legal { border-top: 0 !important; padding-top: 0 !important; font-size: var(--fs-xs) !important; color: #8E9CB4; }
.site-foot .legal p { margin-bottom: .35rem; }
.site-foot .foot-reg { color: #DCE3EE; font-weight: 500; }
.legal-links { display: none !important; }
@media (max-width: 760px) { body.has-tabs .site-foot { padding-bottom: 1.5rem !important; } }
/* nested step sections are not page sections */
.pf-step { padding: 0 !important; margin: 0 0 2rem; }
.pf-step > h2 { font-size: var(--fs-h2); }
#fundone > section { padding-block: var(--sp-sec); }
#fundone > section.fo-fold { padding-block: 1rem !important; }
/* footer sits at the bottom on short pages */
main { min-height: calc(100vh - 300px); }
/* plan names: section-heading size, not a second page title */
.inv-name { font: 600 var(--fs-h2)/1.2 var(--serif); }
/* home carousel heading follows the page-title size */
body.home-app .hcar .hero-h { font-size: var(--fs-h1) !important; }

/* ==== Portfolio Review on phones: expandable holding cards (26 Nov) ==== */
.pf-cards { display: none; }
@media (max-width: 760px) {
  .pf-tabwrap { display: none; }
  .pf-cards { display: block; }
  .pf-cgrp { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
    margin: 1.4rem 0 .5rem; padding: 0 .1rem; }
  .pf-cgrp:first-child { margin-top: .4rem; }
  .pf-cgrp b { font: 600 var(--fs-sm) var(--sans); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
  .pf-cgrp span { font-size: var(--fs-xs); color: var(--muted); }
  .pf-card { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--rule-strong);
    border-radius: var(--r-card); margin: 0 0 .55rem; }
  .pf-card.pf-keep { border-left-color: var(--green); }
  .pf-card.pf-review { border-left-color: #D4A017; }
  .pf-card.pf-switch, .pf-card.pf-above { border-left-color: var(--red); }
  .pf-card > summary { list-style: none; cursor: pointer; padding: .8rem .9rem; display: grid; gap: .45rem;
    -webkit-tap-highlight-color: transparent; }
  .pf-card > summary::-webkit-details-marker { display: none; }
  .pfc-top { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; }
  .pfc-n { font: 600 .98rem/1.3 var(--sans); color: var(--navy); }
  .pfc-v { font: 600 .92rem var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pfc-bot { display: flex; align-items: center; gap: .5rem; min-width: 0; }
  .pfc-bot .vb { flex: none; font-size: .72rem; }
  .pfc-act { flex: 1; min-width: 0; font: 500 var(--fs-sm)/1.3 var(--sans); color: var(--body); }
  .pf-switch .pfc-act, .pf-above .pfc-act { color: var(--red); font-weight: 600; }
  .pf-review .pfc-act { color: #8A6D0B; }
  .pf-keep .pfc-act, .pf-nc .pfc-act { color: var(--muted); }
  .pfc-chev { flex: none; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); margin: -.2rem .2rem 0 0; transition: transform .2s; }
  .pf-card[open] .pfc-chev { transform: rotate(-135deg); margin-top: .25rem; }
  .pfc-body { border-top: 1px solid var(--rule); padding: .8rem .9rem .9rem; }
  .pfc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .7rem; }
  .pfc-facts div { background: var(--paper); border-radius: 10px; padding: .5rem .6rem; }
  .pfc-facts dt { font-size: .7rem; color: var(--muted); }
  .pfc-facts dd { margin: .1rem 0 0; font: 600 .9rem var(--sans); color: var(--navy); }
  .pfc-facts dd small { font-weight: 500; color: var(--muted); }
  .pfc-msg { font-size: var(--fs-sm); margin: 0 0 .6rem; }
  .pfc-lab { font: 600 var(--fs-xs) var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: .2rem 0 .35rem; }
  .pfc-alts { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .4rem; }
  .pfc-alts a { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--rule);
    border-radius: 10px; padding: .55rem .7rem; }
  .pfc-alts a b { font: 600 .9rem var(--sans); color: var(--blue); }
  .pfc-alts a span { font-size: var(--fs-xs); color: var(--muted); }
  .pfc-link { font: 500 var(--fs-sm) var(--sans); color: var(--blue); }
}
@media print { .pf-cards { display: none !important; } .pf-tabwrap { display: block !important; } }
@media (max-width: 760px) {
  .pfc-msg .tag { display: inline-block; margin: .15rem 0 0 .2rem; vertical-align: middle; }
  .pfc-link { text-decoration: none; }
}

/* compare page: best value in each row, as on the fund page */
table.plain.cmp-tab tbody tr td.win { background: #EDF7EF !important; font-weight: 600; color: #1E6B36; }
table.plain.cmp-tab td.win .wk { margin-left: .3rem; font-size: .78rem; color: var(--green); }
table.plain.cmp-tab td.win .cmp-b { font-weight: 400; }

/* compare: Wealthi view table and pick tags */
.cmp-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.cmp-card .tag.pk, .cmp-view .tag.pk { display: inline-block; margin: 0; width: auto; font-size: .7rem; letter-spacing: .02em; }
.cmp-view td.n { vertical-align: middle; }
.cmp-view .cmp-of { font-weight: 400; color: var(--muted); font-size: .8rem; }
.cmp-view tbody td.n { font-weight: 600; color: var(--navy); }
.cs-list .cs-pk { grid-column: 1; font-size: .74rem; color: #0F6E6E; font-weight: 500; }
.cmp-view tbody th[scope="row"] { vertical-align: middle; }
@media (max-width: 760px) { .cmp-view .tag.pk { white-space: normal; text-align: center; max-width: 7.5rem; } }

/* ==== No sideways scrolling on phones (26 Nov) ==== */
html, body { overflow-x: clip; }
.fo-txm { display: none; }
@media (max-width: 760px) {
  /* the pinned picker spans the screen exactly, whatever the page gutter */
  .f-pin { margin-inline: calc(50% - 50vw) !important; padding-inline: calc(50vw - 50%) !important; }
  .app-tabs { left: 0; right: 0; width: auto; }
  /* funds-as-rows tables become measures-as-rows on phones */
  .fo-tx-wrap .fo-tx { display: none; }
  .fo-tx-wrap .fo-txm { display: block; }
  .fo-tx-wrap:has(.fo-txm) { overflow: visible; }
  .table-scroll:has(table.gt) { overflow: visible; }
  /* grid tables: label on its own line, then one value per fund across the screen */
  table.gt, table.gt thead, table.gt tbody { display: block; width: 100%; min-width: 0 !important; }
  table.gt tr { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  table.gt thead .fo-corner, table.gt .fo-note { display: none !important; }
  table.gt thead th { text-align: center !important; padding: .55rem .25rem !important; font-size: .72rem; line-height: 1.25;
    overflow-wrap: anywhere; }
  table.gt tbody th[scope="row"] { grid-column: 1 / -1; background: var(--paper) !important; border: 0 !important;
    padding: .5rem .6rem .25rem !important; font: 600 .78rem var(--sans) !important; color: var(--muted) !important; text-align: left; }
  table.gt tbody td { text-align: center !important; padding: .3rem .25rem .6rem !important; font-size: .84rem;
    border-bottom: 1px solid var(--rule); background: #fff !important; overflow-wrap: anywhere; min-width: 0; }
  table.gt tbody tr:nth-child(even) td { background: #fff !important; }
  table.gt td .cmp-b { white-space: normal !important; font-size: .68rem !important; }
  table.gt tbody td.win { background: #EDF7EF !important; }
  table.gt thead th.me, table.gt tbody td.me { background: var(--tint) !important; font-weight: 600; }
  table.gt thead th.me { background: #2A4677 !important; }
  table.gt thead th.bm { opacity: .85; }
  table.gt .vb, table.gt .tag.pk { font-size: .66rem; }
}
@media (max-width: 760px) {
  /* score history: each month is a small card - month, score, rank, verdict, then the four pillars */
  table.fo-hist, table.fo-hist tbody { display: block; max-width: none; }
  table.fo-hist thead { display: none; }
  table.fo-hist tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .4rem;
    border: 1px solid var(--rule); border-radius: 12px; padding: .65rem .7rem; margin-bottom: .5rem; }
  table.fo-hist td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; font-size: .86rem; }
  table.fo-hist td::before { content: attr(data-l); display: block; font: 500 .66rem var(--sans); color: var(--muted); margin-bottom: .1rem; }
  table.fo-hist td.h-m { order: 1; font-weight: 600; color: var(--navy); }
  table.fo-hist td:nth-child(2) { order: 2; }
  table.fo-hist td.h-r { order: 3; }
  table.fo-hist td.h-v { order: 4; }
  table.fo-hist td:nth-child(n+3):nth-child(-n+6) { order: 5; }
  .fo-tx-wrap:has(.fo-hist) { overflow: visible; }
}
@media (max-width: 760px) {
  table.plain.gt thead th { text-transform: none !important; letter-spacing: 0 !important; text-align: center !important;
    font: 600 .7rem/1.25 var(--sans) !important; overflow-wrap: normal; word-break: normal; vertical-align: middle; }
  table.plain.gt tbody td { font-size: .8rem; white-space: nowrap; }
  table.plain.gt tbody td .vb, table.plain.gt tbody td .tag.pk { white-space: normal; }
}

/* ==== Equity Funds table fits the page width on laptops (26 Nov) ==== */
@media (min-width: 1101px) {
  #f-table { overflow-x: visible; }
  table.ftab { width: 100%; table-layout: fixed; }
  table.ftab th, table.ftab td { min-width: 0 !important; overflow-wrap: break-word; }
  table.ftab thead th { white-space: normal; padding: .6rem .4rem; line-height: 1.25; }
  table.ftab tbody td { padding: .6rem .45rem; }
  table.ftab td.c-invest .btn-mini { width: 100%; padding-inline: .3rem; }
  table.ftab .tag.pk { white-space: normal; text-align: center; max-width: 100%; }
}
#f-cat { border-radius: var(--r-ctl) !important; }

/* ==== Equity Funds: expandable column groups (26 Nov) ==== */
table.ftab thead tr.g-row th.g-head { padding: 0 !important; text-align: center; background: #16294A; border-left: 1px solid rgba(255,255,255,.18); }
table.ftab .g-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: .35rem;
  width: 100%; padding: .5rem .4rem; cursor: pointer; font: 600 .8rem var(--sans); color: #fff; }
table.ftab .g-btn:hover { background: rgba(255,255,255,.08); }
table.ftab .g-btn:focus-visible { outline: 2px solid #9CC3FF; outline-offset: -2px; }
table.ftab .g-car { font-size: .8rem; opacity: .85; }
table.ftab th.g-head.g-on { background: #2A4677; }
table.ftab thead tr.g-sub th { font-size: .72rem; padding: .45rem .35rem; border-left: 1px solid rgba(255,255,255,.08); }
table.ftab thead tr.g-sub th.g-on { background: #2A4677; }
table.ftab tbody td.g-on { background: #F3F6FB; }
table.ftab tbody tr:nth-child(even) td.g-on { background: #EDF1F8; }
table.ftab td.g-score.c-overall, table.ftab th.g-score.c-overall { border-left: 0; }
table.ftab td.c-rfold { text-align: center; position: relative; }
details.rmk-i > summary { list-style: none; cursor: pointer; color: var(--blue); font-size: 1.05rem; line-height: 1; }
details.rmk-i > summary::-webkit-details-marker { display: none; }
details.rmk-i .rmk-pop { position: absolute; right: 100%; top: .2rem; z-index: 20; width: 18rem; text-align: left;
  background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: .6rem .75rem;
  box-shadow: 0 10px 24px rgba(20,30,50,.16); }
details.rmk-i .rmk-pop ul.rmk { margin: 0; }
/* phone cards: Score / Returns / Risk tabs */
.fc-tabs { display: flex; gap: .3rem; margin: .2rem 0 .6rem; background: var(--fill); border-radius: 10px; padding: .2rem; }
.fc-tabs button { flex: 1; border: 0; background: none; border-radius: 8px; padding: .4rem 0; font: 500 .8rem var(--sans); color: var(--muted); cursor: pointer; }
.fc-tabs button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 2px rgba(20,30,50,.12); }
.fcard .fc-t { display: none !important; }
.fcard .fc-t.on { display: grid !important; }
.fc-raw { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: 0 0 .6rem; }
.fc-raw div { background: var(--paper); border-radius: 10px; padding: .45rem .55rem; }
.fc-raw dt { font-size: .68rem; color: var(--muted); }
.fc-raw dd { margin: .1rem 0 0; font: 600 .9rem var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
table.ftab thead th { overflow-wrap: normal !important; word-break: normal; hyphens: none; }

/* expandable groups: own tone each (navy family), and a header that sticks as two clean rows */
table.ftab thead tr.g-sub th { top: calc(var(--stick) + var(--g1, 34px)); }
table.ftab thead tr.g-row th.g-head { z-index: 4; }
table.ftab th.g-head.g-score, table.ftab thead tr.g-sub th.g-score { background: #2B4A80 !important; }
table.ftab th.g-head.g-ret,   table.ftab thead tr.g-sub th.g-ret   { background: #1F5C78 !important; }
table.ftab th.g-head.g-risk,  table.ftab thead tr.g-sub th.g-risk  { background: #4A5A78 !important; }
table.ftab th.g-head.g-on { box-shadow: inset 0 -3px 0 #F0A04B; }
table.ftab tbody td.g-score.g-on { background: #F1F5FC !important; }
table.ftab tbody td.g-ret.g-on   { background: #EEF6F9 !important; }
table.ftab tbody td.g-risk.g-on  { background: #F3F5F8 !important; }
table.ftab td.c-verdict.g-score:not(.g-on) { background: transparent; }

/* compare: step-by-step fund picker, on every screen */
.cs-top { gap: .5rem; }
.cs-hd { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cs-step { font: 500 .72rem var(--sans); color: var(--muted); }
.cs-back { border: 0; background: var(--fill); width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.5rem; line-height: 1;
  color: var(--navy); cursor: pointer; flex: none; }
.cs-back[hidden] { display: none; }
.cs-q { margin-bottom: .5rem; }
.cs-cats-list .cs-go { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.4rem; color: var(--rule-strong); }
.cs-list button:hover { background: var(--paper); }
input.cmp-in[readonly] { cursor: pointer; background: #fff; }
@media (min-width: 761px) {
  .cmp-sheet { align-items: center; justify-content: center; }
  .cs-panel { width: min(560px, calc(100% - 2rem)); height: min(640px, 82vh); border-radius: 18px !important; }
}
@media (min-width: 761px) { .cs-panel { height: auto !important; max-height: min(640px, 82vh); padding-bottom: .6rem; } }

/* compare: up to five funds; no explanation column */
.cmp-pick { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: .75rem; }
.cmp-cards { gap: .8rem; }
.cmp-cards.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cmp-cards.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
table.cmp-tab { width: 100%; table-layout: fixed; }
table.cmp-tab tbody th[scope="row"] { width: 19%; }
table.cmp-tab thead th { overflow-wrap: normal; }
@media (max-width: 1100px) { .cmp-pick { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .cmp-cards.n4, .cmp-cards.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cmp-pick { grid-template-columns: 1fr 1fr !important; gap: .6rem; }
  .cmp-cards.n4, .cmp-cards.n5 { grid-template-columns: 1fr; }
  table.cmp-tab { table-layout: auto; }
}
table.cmp-tab tbody td.n, table.cmp-tab thead th.n { text-align: center; }
table.cmp-tab td .cmp-b { display: block; }
@media (max-width: 760px) { table.gt .tag.pk { max-width: 100% !important; font-size: .6rem !important; padding: .15rem .25rem; } }
@media (max-width: 760px) { table.plain.gt tbody td.win { white-space: normal; } table.gt td.win .wk { margin-left: .15rem; } }
@media (max-width: 760px) { table.gt tbody th[scope="row"] { width: auto !important; } table.gt td .cmp-b { display: none !important; } }

/* header profile icon, top right on every page */
.site-head .head-row { display: flex; align-items: center; }
.hd-profile { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%;
  background: #fff; color: var(--navy); cursor: pointer; flex: none; margin-left: .5rem; padding: 0; }
.hd-profile:hover { background: var(--fill); }
.hd-profile svg { width: 22px; height: 22px; }
body.home-app .hd-profile { margin-left: auto; }
@media (min-width: 900px) { body.home-app .ap-sec:last-child .ap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* home greeting: small "Hello," then the line in the serif, always one line */
.ap-hello h1.ap-h1 { display: flex; align-items: baseline; gap: .45rem; white-space: nowrap; margin: .2rem 0 1.1rem;
  font-size: clamp(1.15rem, 5.6vw, 2.2rem) !important; line-height: 1.2; }
.ap-h1 .ap-hi2 { font: 500 .58em var(--sans); color: var(--muted); letter-spacing: .01em; }
.ap-h1 .ap-tl { font-family: var(--serif); color: var(--navy); }
@media (min-width: 900px) { .ap-hello h1.ap-h1 { font-size: 2.2rem !important; margin-bottom: .6rem; }
  body.home-app .ap-sec .ap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ap-h1 .ap-hi2 { color: var(--orange); font-weight: 600; }
.cmp-pick.cmp-one { grid-template-columns: minmax(0, 560px) !important; }
.cmp-pick.cmp-one { grid-template-columns: minmax(0, 560px) !important; }

/* fund page: search another fund, at the top */
.fo-find { background: var(--paper); padding: .9rem 0 0; }
.fo-find-btn { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 560px; min-height: 44px;
  padding: .6rem .9rem; background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl);
  font: 400 .95rem var(--sans); color: var(--muted); cursor: pointer; text-align: left; }
.fo-find-btn:hover { border-color: var(--blue); }
.fo-find-btn svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
#fundone .fo-find + .fo-hero { border-top: 0; padding-top: 1rem !important; }
.fo-find .wrap { display: flex; gap: .6rem; align-items: center; }
.fo-find-btn { flex: 1; }
.fo-cmp-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .6rem 1rem; flex: none;
  border-radius: var(--r-ctl); background: var(--navy); color: #fff; text-decoration: none; font: 600 .92rem var(--sans); }
.fo-cmp-btn:hover { background: #2A4677; color: #fff; }
.fo-cmp-btn svg { width: 18px; height: 18px; }

/* ==== Equity Funds: verdict tints and one type style (27 Nov) ==== */
/* rows and cards take a faint tint of their verdict - lighter than the verdict chip itself */
table.ftab tbody tr.vr.v-prefer td { background: #F4FAF6 !important; }
table.ftab tbody tr.vr.v-watch  td { background: #FFFBEF !important; }
table.ftab tbody tr.vr.v-avoid  td { background: #FDF5F4 !important; }
table.ftab tbody tr.vr.v-prefer td.g-on { background: #EAF5EE !important; }
table.ftab tbody tr.vr.v-watch  td.g-on { background: #FBF4DF !important; }
table.ftab tbody tr.vr.v-avoid  td.g-on { background: #F9EAE8 !important; }
table.ftab tbody tr.vr td { border-bottom: 1px solid #fff; }
.fcard.v-prefer { background: #F4FAF6; }
.fcard.v-watch  { background: #FFFBEF; }
.fcard.v-avoid  { background: #FDF5F4; }
.fcard .fc-body .fc-raw div, .fcard .fc-body .fc-fam div { background: rgba(255,255,255,.75); }
/* one type style across the table */
table.ftab tbody td { font: 400 .9rem/1.45 var(--sans); color: var(--ink); vertical-align: middle; }
table.ftab tbody td.n { font-variant-numeric: tabular-nums; }
table.ftab tbody td.c-name a.fn { font: 600 .92rem/1.35 var(--sans); color: var(--blue); }
table.ftab tbody td.c-remarks { font-size: .82rem; vertical-align: top; }
table.ftab tbody td.c-remarks li { line-height: 1.4; }
table.ftab thead th { font: 600 .76rem/1.25 var(--sans) !important; vertical-align: middle !important; text-align: center; }
table.ftab thead th.c-name { text-align: left; }
table.ftab tbody td.c-rank, table.ftab tbody td.c-overall { font-weight: 600; color: var(--navy); }
table.ftab .vb { font-size: .74rem; }
article.fcard.v-prefer { background: #F4FAF6 !important; }
article.fcard.v-watch  { background: #FFFBEF !important; }
article.fcard.v-avoid  { background: #FDF5F4 !important; }

/* phone fund cards: one line - rank, name, verdict, score, toggle; a pick tag drops to a second line under the name */
@media (max-width: 760px) {
  .fcard .fc-top { grid-template-columns: auto minmax(0, 1fr) auto auto auto !important;
    grid-template-areas: "rk id vd sc mo" ". pk pk pk pk" !important; row-gap: 0 !important; column-gap: .5rem !important; align-items: center !important; }
  .fcard .fc-rank { grid-area: rk; align-self: center !important; margin: 0 !important; }
  .fcard .fc-id { grid-area: id; align-self: center !important; min-width: 0; }
  .fcard .fc-id .fn { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
  .fcard .fc-vd { display: contents !important; }
  .fcard .fc-vd .vb { grid-area: vd; }
  .fcard .fc-vd .tag.pk { grid-area: pk; justify-self: start; margin: .4rem 0 0 !important; }
  .fcard .fc-score { grid-area: sc; font-size: 1.15rem; }
  .fcard .fc-more { grid-area: mo; }
}
@media (max-width: 380px) { .fcard .fc-id .fn { font-size: .88rem; } .fcard .fc-top { column-gap: .4rem !important; } }
.wordmark { align-items: center; text-align: center; } .wordmark small { padding-left: .21em; }
.wordmark { align-items: flex-start; text-align: left; }
.wordmark small { padding-left: 0 !important; white-space: nowrap; align-self: flex-start; }

/* Equity Funds: Compare under Lumpsum / SIP */
a.btn-mini.cmp-go { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: .35rem; text-decoration: none;
  background: var(--tint); color: var(--navy); border: 1px solid var(--rule-strong); }
a.btn-mini.cmp-go:hover { background: #fff; border-color: var(--blue); color: var(--blue); }
table.ftab td.c-invest a.cmp-go { width: 100%; }
@media (max-width: 760px) {
  .fcard .fc-act { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
  .fcard .fc-act .inv-b { flex: 2; display: flex; gap: .4rem; }
  .fcard .fc-act a.cmp-go { flex: 1; margin-top: 0; min-height: 36px; }
}
@media (max-width: 760px) { .fcard .fc-act .inv-gate { flex-basis: 100%; } }
@media (max-width: 760px) {
  .fcard .fc-act { flex-wrap: nowrap; }
  .fcard .fc-act .inv-b { flex: 2 1 0; flex-direction: row !important; }
  .fcard .fc-act .inv-b .btn-mini { flex: 1 1 0; min-height: 40px; }
  .fcard .fc-act a.cmp-go { flex: 1 1 0; min-height: 40px; font-size: .82rem; font-weight: 600; }
  .fcard .fc-act:has(.inv-gate) { flex-wrap: wrap; }
}
.ap-sec h2 .ap-sub { font: 400 .72rem var(--sans); color: var(--muted); margin-left: .35rem; letter-spacing: 0; }

/* asset-class pages (bottom bar tabs): same layout as Home, with a title and one line under it */
.ac-page .ap-hello h1.ap-h1 { margin-bottom: .2rem; }
.ap-sub2 { margin: 0 0 1rem; font-size: var(--fs-sm); color: var(--muted); }
.app-tabs a span { white-space: nowrap; }
@media (max-width: 380px) { .app-tabs a span { font-size: .62rem; } }
button.ap-tile { background: none; border: 0; padding: .2rem 0; font: inherit; color: var(--ink, #1d232b); cursor: pointer; justify-content: flex-start; width: 100%; }
button.ap-tile:hover .ap-ic { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20,30,50,.15); }
/* asset group (Hybrid & Alts page): asset label, then instrument cards */
.ap-grp-h { font-family: var(--serif, Georgia, serif); font-size: 1.2rem; color: var(--navy, #1f3864); margin: 1.4rem 0 .6rem; }
.ap-grp:first-of-type .ap-grp-h { margin-top: .4rem; }
@media (min-width: 900px) {
  .ap-grp { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
  .ap-grp-h { grid-column: 1 / -1; margin: .6rem 0 -.6rem; font-size: 1.45rem; }
}
/* home: asset-class filter chips */
.ap-filter { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: .2rem 0 1rem; padding: 2px 0; }
.ap-filter::-webkit-scrollbar { display: none; }
.ap-filter button { flex: 0 0 auto; font: inherit; font-size: var(--fs-sm); font-weight: 500; color: var(--navy, #1f3864);
  background: #fff; border: 1px solid #d9dee6; border-radius: 999px; padding: .42rem .95rem; cursor: pointer; white-space: nowrap; }
.ap-filter button:hover { border-color: #9fb0c8; }
.ap-filter button.on { background: var(--navy, #1f3864); border-color: var(--navy, #1f3864); color: #fff; }
.ap-tile.f-hide, .ap-sec.f-hide { display: none !important; }
body.home-app .ap-hello h1.ap-h1 { margin-bottom: .7rem; }
@media (min-width: 900px) { .ap-filter { margin-bottom: .4rem; } .ap-filter button { font-size: .95rem; padding: .5rem 1.15rem; } }
@media (max-width: 899px) { .ap-filter { gap: .3rem; } .ap-filter button { font-size: .76rem; padding: .36rem .62rem; } }
@media (max-width: 370px) { .ap-filter button { font-size: .7rem; padding: .34rem .5rem; } }
@media (max-width: 899px) { .ap-filter { gap: .25rem; } .ap-filter button { flex: 1 1 auto; padding: .36rem .48rem; } }
@media (max-width: 370px) { .ap-filter button { font-size: .68rem; padding: .34rem .38rem; } }

/* ===== Holdings & Goals (28 Nov) ===== */
.btn-sm { padding: .42rem .85rem; font-size: var(--fs-sm); }
.hd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.hd-src { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.hd-acts { display: flex; gap: .5rem; }
.hd-clear { color: var(--red) !important; }
#hd-up { margin-bottom: 1rem; }
.hd-empty, .gl-empty { text-align: left; }
.hd-empty h2, .gl-empty h2 { font-size: var(--fs-h2, 1.25rem); margin: 0 0 .4rem; }
.hd-empty > p, .gl-empty > p { color: var(--body); margin: 0 0 1rem; }
.hd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.gl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hd-tile { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card, 14px); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.hd-tl { font-size: var(--fs-xs, .78rem); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hd-tv { font-size: 1.35rem; color: var(--navy); font-weight: 600; white-space: nowrap; }
.hd-tv.up { color: var(--green); } .hd-tv.dn { color: var(--red); }
.hd-ts { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.hd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.hd-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card, 14px); padding: 1rem 1.1rem; min-width: 0; }
.hd-card h2 { font-size: 1rem; margin: 0 0 .8rem; color: var(--navy); }
.hd-bar { display: flex; height: .8rem; border-radius: 6px; overflow: hidden; background: var(--fill); margin-bottom: .8rem; }
.hd-bar span { display: block; height: 100%; }
.hd-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hd-key li { display: grid; grid-template-columns: .7rem 1fr auto 3.2rem; align-items: center; gap: .5rem; font-size: var(--fs-sm); }
.hd-key i, .hd-grp i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }
.hd-key b { font-weight: 600; color: var(--ink); } .hd-key em { font-style: normal; color: var(--muted); text-align: right; }
.hd-bl { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hd-bl li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; font-size: var(--fs-sm); }
.hd-bl-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hd-bl-v { color: var(--muted); }
.hd-bl-b { grid-column: 1 / -1; height: .35rem; background: var(--fill); border-radius: 3px; overflow: hidden; }
.hd-bl-b i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.hd-funds { margin-bottom: 1rem; }
.hd-grp { display: flex; align-items: center; gap: .5rem; font-size: .95rem; margin: 1rem 0 .3rem; color: var(--navy); }
.hd-grp:first-of-type { margin-top: 0; }
.hd-grp span { margin-left: auto; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.hd-fl { list-style: none; margin: 0; padding: 0; }
.hd-fl li { display: flex; justify-content: space-between; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--fill); }
.hd-fn { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; }
.hd-fn a { color: var(--navy); font-weight: 600; text-decoration: none; } .hd-fn a:hover { text-decoration: underline; }
.hd-fm { flex-basis: 100%; font-size: var(--fs-xs, .78rem); color: var(--muted); }
.hd-fv { text-align: right; white-space: nowrap; display: flex; flex-direction: column; }
.hd-fv span { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.hd-g.up { color: var(--green); } .hd-g.dn { color: var(--red); }
.hd-vd { font-size: .68rem; font-weight: 600; padding: .08rem .45rem; border-radius: 999px; }
.hd-vd.v-prefer { background: #E5F4EA; color: #1E7A3C; } .hd-vd.v-watch { background: #FFF4D6; color: #8A6300; } .hd-vd.v-avoid { background: #FBE7E5; color: #A8322A; }
.hd-next { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 .6rem; }
.hd-note { font-size: var(--fs-xs, .78rem); color: var(--muted); margin: .6rem 0 0; }
@media (max-width: 899px) {
  .hd-tiles, .gl-tiles { grid-template-columns: 1fr 1fr; }
  .hd-tiles .hd-tile:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .hd-grid { grid-template-columns: 1fr; }
  .hd-tv { font-size: 1.15rem; }
}
/* goals */
.gl-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.gl-hint p { margin: 0; font-size: var(--fs-sm); }
.gl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.gl-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card, 14px); padding: 1rem 1.1rem; min-width: 0; }
.gl-head { display: flex; align-items: center; gap: .7rem; }
.ap-ic.gl-ic { width: 2.6rem; height: 2.6rem; border-radius: 12px; flex: 0 0 auto; }
.ap-ic.gl-ic svg { width: 1.3rem; height: 1.3rem; }
.gl-ttl { min-width: 0; flex: 1; } .gl-ttl h3 { margin: 0; font-size: 1.02rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-ttl span { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.gl-st { font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.gl-st.ok { background: #E5F4EA; color: #1E7A3C; } .gl-st.bh { background: #FFF4D6; color: #8A6300; }
.gl-prog { height: .5rem; background: var(--fill); border-radius: 4px; overflow: hidden; margin: .9rem 0 .25rem; }
.gl-prog i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.gl-pl { margin: 0 0 .7rem; font-size: var(--fs-xs, .78rem); color: var(--muted); }
.gl-lines { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gl-lines div { display: flex; flex-direction: column; } .gl-lines span { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.gl-lines b { color: var(--ink); font-weight: 600; } .gl-lines em { font-style: normal; font-size: .7rem; color: var(--muted); }
.gl-act { margin: .8rem 0 0; font-size: var(--fs-sm); background: var(--tint); border-radius: 10px; padding: .55rem .7rem; }
.gl-act.ok { background: #EEF7F1; }
.gl-btns { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.gl-del { margin-left: auto; background: none; border: 0; color: var(--red); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.gl-link { border-top: 1px solid var(--fill); margin-top: .9rem; padding-top: .8rem; }
.gl-lh { margin: 0 0 .4rem; font-size: var(--fs-sm); color: var(--muted); }
.gl-link ul { list-style: none; margin: 0; padding: 0; }
.gl-link li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--fill); }
.gl-ln { min-width: 0; display: flex; flex-direction: column; } .gl-ln b { font-weight: 500; font-size: var(--fs-sm); }
.gl-ln span { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.gl-pc { display: flex; align-items: center; gap: .25rem; font-size: var(--fs-sm); color: var(--muted); }
.gl-pc input { width: 4.2rem; padding: .35rem .45rem; border: 1px solid var(--rule-strong); border-radius: 8px; font: inherit; text-align: right; }
.gl-err { color: var(--red); font-size: var(--fs-sm); margin: .4rem 0 0; min-height: 0; }
.gl-err:empty { display: none; }
.gl-add { margin: 1rem 0; }
.gl-form { margin-bottom: 1rem; } .gl-form h3 { margin: 0 0 .7rem; color: var(--navy); }
.gl-kinds { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.gl-kind { font: inherit; font-size: var(--fs-sm); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; color: var(--navy); }
.gl-kind.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.gl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.gl-fields label { display: flex; flex-direction: column; gap: .3rem; font-size: var(--fs-sm); color: var(--body); }
.gl-fields input, .gl-fields select { font: inherit; padding: .55rem .7rem; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl, 10px); background: #fff; }
.gl-fields small { color: var(--muted); min-height: 1em; }
.gl-asm { margin: 1rem 0 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card, 14px); padding: .8rem 1rem; }
.gl-asm summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.gl-asm p { font-size: var(--fs-sm); color: var(--muted); }
.gl-asm-r { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: .7rem; }
.gl-asm-r label { display: flex; flex-direction: column; gap: .25rem; font-size: var(--fs-sm); }
.gl-asm-r span { display: flex; align-items: center; gap: .25rem; color: var(--muted); }
.gl-asm-r input { width: 4.2rem; padding: .35rem .45rem; border: 1px solid var(--rule-strong); border-radius: 8px; font: inherit; }
@media (max-width: 899px) {
  .gl-list, .gl-fields { grid-template-columns: 1fr; }
  .gl-asm-r { grid-template-columns: 1fr 1fr; }
}

/* ===== Ask Wealthi assistant (28 Nov) ===== */
.ask-fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; align-items: center; gap: .35rem;
  background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .62rem .95rem .62rem .8rem; font: inherit; font-size: var(--fs-sm); font-weight: 600;
  box-shadow: 0 6px 18px rgba(20,30,60,.28); cursor: pointer; }
.ask-fab svg { width: 20px; height: 20px; }
.ask-fab:hover { background: var(--navy-deep); }
.ask-fab[hidden], .ask-panel[hidden] { display: none !important; }
.ask-panel { position: fixed; inset: 0; z-index: 200; background: var(--paper); display: flex; flex-direction: column; }
.ask-hd { display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid var(--rule); }
.ask-hd div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ask-hd b { color: var(--navy); } .ask-hd div span { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.ask-av { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.ask-av svg { width: 18px; height: 18px; }
.ask-x { background: none; border: 0; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: .3rem .5rem; }
.ask-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ask-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.ask-msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.ask-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--rule); color: var(--ink); border-bottom-left-radius: 4px; width: 88%; }
.ask-msg a { color: var(--blue); font-weight: 500; }
.ask-list { list-style: none; margin: .5rem 0; padding: 0; }
.ask-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--fill); }
.ask-list li > div:first-child { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; }
.ask-list li > div:first-child > span:not(.hd-vd):not(.gl-st) { flex-basis: 100%; font-size: .74rem; color: var(--muted); }
.ask-list b a { color: var(--navy); text-decoration: none; } .ask-list b a:hover { text-decoration: underline; }
.ask-r { text-align: right; white-space: nowrap; display: flex; flex-direction: column; }
.ask-r span { font-size: .74rem; color: var(--muted); }
.ask-kv { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .3rem; }
.ask-kv li { display: flex; justify-content: space-between; gap: .6rem; } .ask-kv span { color: var(--muted); }
.ask-eg { margin: .4rem 0 0; padding-left: 1.1rem; } .ask-eg li { margin: .15rem 0; }
.ask-small { display: block; font-size: .74rem; color: var(--muted); margin: .2rem 0; }
.ask-sug { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 1rem; scrollbar-width: none; }
.ask-sug::-webkit-scrollbar { display: none; }
.ask-sug button { flex: 0 0 auto; font: inherit; font-size: .78rem; color: var(--navy); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; white-space: nowrap; }
.ask-sug button:hover { border-color: var(--navy); }
.ask-in { display: flex; gap: .5rem; padding: .5rem 1rem; background: #fff; border-top: 1px solid var(--rule); }
.ask-in input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: .6rem .8rem; border: 1px solid var(--rule-strong); border-radius: 999px; }
.ask-in button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.ask-in button svg { width: 18px; height: 18px; }
.ask-ft { margin: 0; padding: 0 1rem calc(.5rem + env(safe-area-inset-bottom, 0px)); background: #fff; font-size: .7rem; color: var(--muted); text-align: center; }
body.ask-open { overflow: hidden; }
@media (min-width: 900px) {
  .ask-fab { right: 24px; bottom: 24px; }
  .ask-panel { inset: auto 24px 24px auto; width: 400px; height: min(640px, calc(100vh - 120px)); border-radius: 18px; overflow: hidden;
    border: 1px solid var(--rule); box-shadow: 0 18px 48px rgba(20,30,60,.22); }
  body.ask-open { overflow: auto; }
  .ask-in input { font-size: var(--fs-sm); }
}
@media print { .ask-fab, .ask-panel { display: none !important; } }
.ask-panel { padding: 0 !important; margin: 0 !important; }
@media (max-width: 899px) { body:has(.fo-ibar) .ask-fab { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); } }
/* home sections: first four tiles, then "See all" */
.ap-sec { position: relative; }
.ap-tile.more-hide { display: none !important; }
.ap-more { position: absolute; top: 1.05rem; right: 1rem; background: none; border: 0; padding: .2rem .1rem; cursor: pointer;
  font: 500 var(--fs-sm)/1.2 var(--sans); color: var(--blue); display: inline-flex; align-items: center; gap: .2rem; }
.ap-more::after { content: ''; width: .42rem; height: .42rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); margin-left: .15rem; }
.ap-more[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: .3rem; }
.ap-more[hidden] { display: none; }
.ap-more:hover { text-decoration: underline; }
@media (min-width: 900px) { .ap-more { top: 1.65rem; right: 1.4rem; font-size: .95rem; } }
/* six filter chips: one scrolling row on phones */
@media (max-width: 899px) {
  .ap-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; scroll-padding: 1rem; }
  .ap-filter button { flex: 0 0 auto; font-size: .78rem; padding: .38rem .72rem; }
}

/* ===== family holdings & goal sections (28 Nov) ===== */
.hd-people { margin: 0 0 .9rem; }
.hd-add { color: var(--blue) !important; border-color: var(--blue) !important; }
.hd-uphint { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 .5rem; }
.hd-own { font-style: normal; font-weight: 600; color: var(--navy); background: var(--tint); border-radius: 4px; padding: 0 .3rem; margin-right: .15rem; }
.hd-mem { margin: 1rem 0 0; }
.hd-mem ul { list-style: none; margin: 0; padding: 0; }
.hd-mem li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--fill); }
.hd-mem li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.hd-mem li span { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.hd-mem-r { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.hd-mem-r .gl-del { margin: 0; padding: 0; font-size: var(--fs-xs, .78rem); }
.hd-mem .hd-note .gl-del { margin: 0; padding: 0; font-size: inherit; }
.gl-sec { margin: 0 0 1.4rem; }
.gl-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: 0 0 .6rem; }
.gl-sec-h h2 { font-size: 1.1rem; margin: 0; color: var(--navy); font-family: var(--serif); }
.ap-more.gl-addin { position: static; }
.ap-more.gl-addin::after { display: none; }
.gl-none { margin: 0; font-size: var(--fs-sm); color: var(--muted); background: #fff; border: 1px dashed var(--rule-strong); border-radius: var(--r-card, 14px); padding: .9rem 1rem; }
.app-tabs a span { line-height: 1.1; }
/* ===== members (Profile) & member picker (Holdings) ===== */
.mb-sec { grid-column: 1 / -1; }
.mb-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.mb-list li { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--fill); }
.mb-av { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.mb-who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
.mb-who b { color: var(--ink); } .mb-who em { font-style: normal; font-size: .72rem; color: var(--navy); background: var(--tint); border-radius: 4px; padding: 0 .35rem; }
.mb-who span { flex-basis: 100%; font-size: var(--fs-xs, .78rem); color: var(--muted); }
.mb-list .gl-del { margin: 0; }
.mb-none { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 .8rem; }
.mb-add { display: flex; flex-wrap: wrap; gap: .5rem; }
.mb-add input, .mb-add select { font: inherit; font-size: 16px; padding: .5rem .7rem; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl, 10px); background: #fff; }
.mb-add input { flex: 1 1 11rem; min-width: 0; } .mb-add select { flex: 0 0 auto; }
.mb-msg { font-size: var(--fs-sm); color: var(--green); margin: .5rem 0 0; } .mb-msg.bad { color: var(--red); } .mb-msg:empty { display: none; }
.mb-next { display: flex; gap: 1.2rem; margin-top: .7rem; font-size: var(--fs-sm); } .mb-next a { color: var(--blue); font-weight: 500; text-decoration: none; }
@media (min-width: 900px) { .mb-add input, .mb-add select { font-size: var(--fs-sm); } }
.hd-who p { margin: 0 0 .4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.hd-whob { margin: 0 0 .8rem; align-items: center; }
.hd-whob small { font-size: .68rem; opacity: .75; }
.hd-addm { flex: 0 0 auto; font-size: var(--fs-sm); color: var(--blue); text-decoration: none; padding: 0 .3rem; white-space: nowrap; }
.hd-nomem { background: var(--tint); border-radius: 12px; padding: .9rem 1rem; }
.hd-nomem p { margin: 0 0 .6rem; font-size: var(--fs-sm); }
/* ===== family strip (Holdings), two-tap confirm, Self banner ===== */
.armed { color: #fff !important; background: var(--red) !important; border-radius: 999px; padding: .15rem .6rem !important; text-decoration: none !important; }
.hd-fam { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card, 14px); padding: .8rem .9rem .9rem; margin: 0 0 1rem; }
.hd-fam-h { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .6rem; }
.hd-fam-h h2 { margin: 0; font-size: 1rem; color: var(--navy); }
.hd-fam-h span { flex: 1; font-size: var(--fs-xs, .78rem); color: var(--muted); }
.hd-fam-h a { font-size: var(--fs-sm); color: var(--blue); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hd-all { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
.hd-fam-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .55rem; }
.hd-mc { border: 1.5px solid var(--rule); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.hd-mc.on { border-color: var(--navy); background: var(--tint); }
.hd-mc.open { box-shadow: 0 0 0 2px var(--blue) inset; }
.hd-mc-sel { display: flex; align-items: flex-start; gap: .5rem; background: none; border: 0; padding: .6rem .65rem .45rem; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.hd-mc-sel:disabled { cursor: default; }
.hd-ck { width: 1.05rem; height: 1.05rem; border-radius: 5px; border: 1.5px solid var(--rule-strong); flex: 0 0 auto; margin-top: .15rem; background: #fff; position: relative; }
.hd-mc.on .hd-ck { background: var(--navy); border-color: var(--navy); }
.hd-mc.on .hd-ck::after { content: ''; position: absolute; left: .3rem; top: .1rem; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hd-mc.nocas .hd-ck { border-style: dashed; }
.hd-mc-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35rem; min-width: 0; }
.hd-mc-t b { color: var(--ink); font-size: var(--fs-sm); } .hd-mc-t em { font-style: normal; font-size: .66rem; color: var(--navy); background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 0 .3rem; }
.hd-mc-t > span { flex-basis: 100%; font-size: .74rem; color: var(--muted); }
.hd-mc-cas { margin-top: auto; border: 0; border-top: 1px solid var(--rule); background: rgba(255,255,255,.6); padding: .42rem; font: inherit; font-size: .78rem; font-weight: 600; color: var(--blue); cursor: pointer; }
.hd-mc.nocas .hd-mc-cas { background: var(--blue); color: #fff; border-top-color: var(--blue); }
#hd-up { margin-top: .8rem; border-top: 1px solid var(--fill); padding-top: .8rem; }
.hd-upfor { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.hd-upfor p { margin: 0 0 .6rem; font-size: var(--fs-sm); }
.hd-x { background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 0 .2rem; }
.hd-rmcas { margin: .4rem 0 0; padding: 0; font-size: var(--fs-sm); }
.hd-clr { margin: 0 0 0 .3rem; padding: 0; font-size: inherit; }
.pg-for { display: flex; align-items: center; gap: .5rem; margin: .45rem 0 0; font-size: var(--fs-sm); color: var(--body); }
.pg-for-av { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.pg-for a { color: var(--blue); }
.hd-fam-row { grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)); }
/* goal sections fold; upload status on top */
.gl-fold { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 0; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.gl-fold::before { content: ''; width: .5rem; height: .5rem; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); margin: 0 .15rem .2rem .1rem; transition: transform .15s; flex: 0 0 auto; }
.gl-sec.shut .gl-fold::before { transform: rotate(-45deg); margin-bottom: 0; }
.gl-cnt { font-size: var(--fs-xs, .78rem); color: var(--muted); white-space: nowrap; }
.gl-sec-h { align-items: center; }
.gl-sec.shut { margin-bottom: .6rem; }
.gl-sec.shut .gl-sec-h { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card, 14px); padding: .7rem .9rem; margin: 0; }
.pf-up > .pf-status:not(:empty) { margin: 0 0 .7rem; padding: .55rem .75rem; border-radius: 10px; background: #EEF7F1; color: var(--green); font-weight: 500; }
.pf-up > .pf-status.bad:not(:empty) { background: #FBE7E5; color: #A8322A; }
.pf-up > .pf-status:empty { display: none; }
/* goal sections: tighter, and collapsed ones joined into one list */
.gl-sec { margin: 0 0 .9rem; }
.gl-sec-h { margin-bottom: .45rem; }
.gl-sec.shut { margin: 0; }
.gl-sec.shut + .gl-sec.shut .gl-sec-h { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.gl-sec.shut:has(+ .gl-sec.shut) .gl-sec-h { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.gl-sec.shut:not(:has(+ .gl-sec.shut)) { margin-bottom: .9rem; }
.gl-none { padding: .6rem .9rem; }
main section.gl-sec, section.gl-sec { padding: 0 !important; border: 0; background: none; }

/* ===== accounts (29 Nov) ===== */
.ac-box { max-height: calc(100vh - 2rem); overflow-y: auto; }
.ac-box .wl-form label { display: flex; flex-direction: column; gap: .3rem; text-align: left; }
.ac-box .wl-form input[type="email"] { font: inherit; font-size: 16px; padding: .6rem .75rem; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl, 10px); }
.ac-err { color: var(--red); font-size: var(--fs-sm); margin: .4rem 0 0; min-height: 0; } .ac-err:empty { display: none; }
.ac-consent { text-align: left; font-size: var(--fs-sm); color: var(--body); }
.ac-consent ul { margin: .3rem 0 .6rem; padding-left: 1.1rem; } .ac-consent li { margin: .15rem 0; }
.ac-consent a { color: var(--blue); }
.ac-agree { display: flex; gap: .5rem; align-items: flex-start; text-align: left; font-size: var(--fs-sm); font-weight: 600; margin: .4rem 0 .8rem; }
.ac-agree input { margin-top: .2rem; width: 1rem; height: 1rem; }
.wl-btn:disabled { opacity: .55; cursor: not-allowed; }
.ac-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; font-size: var(--fs-sm); padding: .5rem .9rem; border-radius: 999px; z-index: 250; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.ac-toast.show { opacity: 1; transform: translate(-50%, 0); } .ac-toast.bad { background: var(--red); }
@media (min-width: 900px) { .ac-toast { bottom: 28px; } }
.hd-profile { position: relative; }
.hd-profile .ac-av { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
.ac-line { margin: 0 0 .7rem; font-size: var(--fs-sm); color: var(--body); }
.ac-me { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.ac-me div { display: flex; flex-direction: column; min-width: 0; } .ac-me b { color: var(--ink); overflow-wrap: anywhere; }
.ac-me span:not(.mb-av) { font-size: var(--fs-xs, .78rem); color: var(--muted); }
.ac-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ac-acts .gl-del { margin-left: auto; }
.prose h2 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; color: var(--navy); } .prose ul { padding-left: 1.2rem; } .prose li { margin: .25rem 0; }
