/* Public pages: the fourpercentrule.com look (navy, gold, Playfair Display + Inter). Also loaded by the
   admin review view, which adds /admin-assets/preview.css on top. */
:root {
  --navy: #0B1120; --navy-2: #16203a; --gold: #D4AF37; --gold-2: #b8962a; --gold-soft: #faf5e4;
  --bg: #faf9f6; --card: #fff; --line: #e7e5df; --line-2: #eef0f3; --ink: #0f172a; --ink-2: #334155; --muted: #64748b;
  --up: #15803d; --down: #b91c1c; --link: #1e40af;
  --stick: 76px; --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; margin: 0; color: var(--navy); }
h3 { font-family: Inter, system-ui, sans-serif; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
small { color: var(--muted); font-size: 12.5px; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font: 600 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
h1 em, h2 em { font-style: italic; color: var(--gold-2); }

/* Buttons */
.btn-gold, .btn-navy { display: inline-flex; align-items: center; gap: 6px; font: 600 15px Inter, sans-serif; border-radius: 999px; padding: 9px 18px; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e2bf4f; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,175,55,.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #1e293b; }
.btn-gold.big, .btn-navy.big { font-size: 16px; padding: 13px 26px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid #eef0f3; }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 18px "Playfair Display", Georgia, serif; transition: background .25s; }
.logo:hover .logo-mark { background: var(--gold); }
.logo-word { font: 700 20px "Playfair Display", Georgia, serif; color: var(--navy); letter-spacing: -.01em; }
.logo-word span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #475569; font-weight: 500; text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a.on { color: var(--navy); }
.nav-links a.on { box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 2px; }
.nav-links .nav-btn { background: var(--navy); color: #fff !important; border-radius: 999px; padding: 9px 18px; display: inline-flex; align-items: center; gap: 8px; }
.nav-links .nav-btn:hover { background: #1e293b; }
.nav-toggle { display: none; background: none; border: 0; color: #475569; cursor: pointer; padding: 6px; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav-in { max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 22px; }
.subnav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.subnav a:hover { color: var(--gold-2); }
.subnav .subnav-home { font: 700 15px "Playfair Display", Georgia, serif; color: var(--navy); margin-right: 4px; }
.subnav .search { margin-left: auto; width: 320px; }

/* Search */
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; font: 14px Inter, sans-serif; padding: 8px 12px 8px 36px; border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.search input:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.search.big { max-width: 640px; margin-top: 26px; }
.search.big svg { left: 18px; }
.search.big input { font-size: 16px; padding: 15px 18px 15px 48px; background: #fff; box-shadow: 0 8px 30px rgba(11,17,32,.08); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(11,17,32,.14); overflow: hidden; z-index: 50; }
.search-results a, .search-results div { display: flex; gap: 10px; align-items: baseline; padding: 9px 14px; text-decoration: none; color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--line-2); }
.search-results a:hover, .search-results a.active { background: var(--gold-soft); }
.search-results b { min-width: 52px; color: var(--navy); }
.search-results span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results i { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.search-results div { color: var(--muted); }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs .sep { opacity: .6; }

/* Security hero (navy) */
.hero { background: radial-gradient(circle at 80% 10%, rgba(212,175,55,.16), transparent 50%), linear-gradient(#fff, var(--bg)); border-bottom: 1px solid var(--line); color: var(--ink-2); padding: 30px 0 26px; }
.hero .crumbs { color: var(--muted); }
.hero h1 { color: var(--navy); font-size: clamp(28px, 4vw, 42px); }
.hero-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; align-items: center; }
.tick { font-weight: 700; background: var(--gold); color: var(--navy); padding: 2px 10px; border-radius: 6px; letter-spacing: .02em; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: #f1f5f9; color: var(--ink-2); margin: 0 6px 6px 0; }
.hero .chip { background: #fff; border: 1px solid var(--line); color: var(--ink-2); margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.tile span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tile b { font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.asof { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
/* What happened to a security that closed, changed ticker, or whose prices stopped (src/site/pages.js lifeNote) */
.life-note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 860px; }
.life-note.closed { border-left-color: var(--navy); }
.life-note b { color: var(--navy); }
.life-note a { color: var(--gold-2); }

/* Page hero (lists, guides, hub): light, with the FPR gold glow */
.page-hero, .hub-hero { background: radial-gradient(circle at 80% 10%, rgba(212,175,55,.16), transparent 50%), linear-gradient(#fff, var(--bg)); border-bottom: 1px solid var(--line); padding: 34px 0 34px; }
.page-hero h1, .hub-hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.01em; max-width: 900px; }
.lede { font-size: 18.5px; color: var(--ink-2); max-width: 760px; margin: 14px 0 0; line-height: 1.6; }
.hero-facts { font-size: 15px; color: var(--muted); max-width: 760px; margin: 10px 0 0; line-height: 1.55; }
.byline { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stat-strip div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 130px; }
.stat-strip b { display: block; font: 700 22px "Playfair Display", Georgia, serif; color: var(--navy); }
.stat-strip span { font-size: 12.5px; color: var(--muted); }
.hub-hero { padding: 54px 0 46px; }
.hub-hero h1 { font-size: clamp(36px, 6vw, 60px); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; text-decoration: none; color: var(--navy); font-weight: 600; }
.quick a:hover { border-color: var(--gold); }
.quick.big-chips { margin-top: 0; gap: 10px; }
.quick.big-chips a { font-size: 14.5px; padding: 7px 14px; font-weight: 600; }
.more-link { margin: 12px 0 0 !important; font-weight: 600; }
.more-link a { color: var(--gold-2); text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* Security page layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; padding-top: 28px; padding-bottom: 60px; }
.side, .toc { position: sticky; top: var(--stick); align-self: start; }
.side .toc { position: static; }
.toc { font-size: 14px; }
.toc h3 { margin-top: 0; }
.toc ol { padding-left: 18px; margin: 0 0 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--gold-2); }
.rar-card { background: radial-gradient(circle at 100% 0, rgba(212,175,55,.25), transparent 60%), var(--navy); color: #cbd5e1; border-radius: var(--radius); padding: 18px; font-size: 14px; margin-bottom: 20px; }
.rar-card .eyebrow { color: var(--gold); margin-bottom: 4px; font-size: 11px; }
.rar-card b { display: block; font: 700 21px "Playfair Display", Georgia, serif; color: #fff; margin-bottom: 6px; }
.rar-card p { margin: 0 0 14px; line-height: 1.5; }
.side-links h3 { margin-top: 0; }
.side-links a { display: block; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.side-links a:hover { color: var(--gold-2); }
.side-links a.browse-link { font-weight: 600; color: var(--navy); }

/* Sections */
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04); scroll-margin-top: calc(var(--stick) + 8px); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sec-h h2 { font-size: 25px; }
.sec p { margin: 0 0 12px; color: var(--ink-2); }
.empty { color: var(--muted); font-style: italic; }
.note { display: block; margin-top: 8px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv th { text-align: left; font-weight: 500; color: var(--muted); width: 34%; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.kv td { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.kv td small { display: block; }
.rets, .hold { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.rets th, .rets td, .hold th, .hold td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: right; }
.rets th:first-child, .hold th:first-child, .hold td:first-child { text-align: left; }
.rets thead th, .hold thead th { font: 600 12px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.rets tr.official td, .rets tr.official th { color: var(--ink); background: var(--gold-soft); font-weight: 600; }
.rets tr.index td, .rets tr.index th { color: var(--muted); font-size: 13.5px; }
.hold .n { text-align: right; white-space: nowrap; }
.hold td small { color: var(--muted); }
.hold tr.self td { background: var(--gold-soft); }
.hold td a, .rets th a { color: var(--navy); }
.barcell { width: 30%; }
.barcell span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.tpl { margin: 12px 0; padding-left: 20px; color: var(--ink-2); }
.tpl li { margin: 5px 0; }
.tpl-p { color: var(--ink-2); }
.mix, .mix2, .fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit ul { padding-left: 18px; margin: 0; color: var(--ink-2); }
.fit li { margin: 6px 0; }
.notes { background: #f8fafc; border-left: 3px solid var(--gold); padding: 6px 16px 8px; border-radius: 0 10px 10px 0; margin-top: 12px; }
.notes ul { margin: 4px 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.verdict { font: 600 11px Inter; text-transform: uppercase; padding: 1px 7px; border-radius: 5px; margin-left: 6px; }
.v-good { background: #ecfdf3; color: var(--up); } .v-watch { background: #fffbeb; color: #b45309; } .v-weak { background: #fef2f2; color: var(--down); }
.risks { padding-left: 22px; color: var(--ink-2); } .risks li { margin: 8px 0; } .risks b { color: var(--ink); }
.events { list-style: none; padding: 0; margin: 0; } .events li { padding: 7px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); } .events time { display: inline-block; width: 110px; color: var(--muted); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 11px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-2); font-weight: 700; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }
.role { display: inline-flex; gap: 10px; align-items: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 6px 14px; margin-bottom: 8px; }
.role span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.role-why { font-weight: 500; color: var(--ink) !important; }
.chart { margin: 14px 0 6px; }
.chart figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.k { display: inline-block; width: 14px; height: 3px; vertical-align: middle; border-radius: 2px; margin: 0 2px 0 6px; }
.k.main { background: var(--gold-2); } .k.worst { background: #94a3b8; }
.k.l-stocks { background: var(--navy); } .k.l-6040 { background: var(--gold-2); } .k.l-4060 { background: #0f766e; } .k.l-bonds { background: #94a3b8; }
svg.bt, svg.yrs { width: 100%; height: auto; font: 11px Inter, sans-serif; fill: var(--muted); }
svg.bt .grid { stroke: var(--line-2); } svg.bt .start { stroke: #cbd5e1; stroke-dasharray: 4 4; }
svg.bt path { fill: none; stroke-linejoin: round; }
svg.bt .main { stroke: var(--gold-2); stroke-width: 2.5; } svg.bt .worst { stroke: #94a3b8; stroke-width: 1.8; }
svg.bt .l-stocks { stroke: var(--navy); stroke-width: 2; } svg.bt .l-6040 { stroke: var(--gold-2); stroke-width: 3; }
svg.bt .l-4060 { stroke: #0f766e; stroke-width: 1.8; } svg.bt .l-bonds { stroke: #94a3b8; stroke-width: 1.8; }
.k.l-dg { background: var(--navy); } .k.l-hy { background: var(--gold-2); }
svg.bt .l-dg { stroke: var(--navy); stroke-width: 2.6; } svg.bt .l-hy { stroke: var(--gold-2); stroke-width: 2.6; }
.gtable td.txt-cell { text-align: left; color: var(--ink-2); white-space: normal; }
.k.l-oi-index { background: var(--navy); } .k.l-oi-fundinc { background: var(--gold-2); } .k.l-oi-fund { background: var(--down); }
svg.bt .l-oi-index { stroke: var(--navy); stroke-width: 2.4; } svg.bt .l-oi-fundinc { stroke: var(--gold-2); stroke-width: 2.4; } svg.bt .l-oi-fund { stroke: var(--down); stroke-width: 2; stroke-dasharray: 5 3; }
.k.l-qqq { background: var(--navy); } .k.l-qld { background: #0f766e; } .k.l-tqqq { background: var(--down); }
svg.bt .l-qqq { stroke: var(--navy); stroke-width: 2.4; } svg.bt .l-qld { stroke: #0f766e; stroke-width: 1.8; } svg.bt .l-tqqq { stroke: var(--down); stroke-width: 2.4; }
svg.sc { width: 100%; height: auto; font: 11px Inter, sans-serif; fill: var(--muted); }
svg.sc .grid { stroke: var(--line-2); } svg.sc .zero { stroke: #94a3b8; }
svg.sc circle { stroke: #fff; stroke-width: 1; fill-opacity: .9; }
svg.sc .tag { fill: var(--ink); font-weight: 600; font-size: 10.5px; }
svg.sc .axis-label { fill: var(--ink-2); font-weight: 600; }
.g-cash { fill: #94a3b8; background: #94a3b8; } .g-short { fill: #0f766e; background: #0f766e; } .g-core { fill: var(--navy); background: var(--navy); }
.g-gov { fill: var(--gold-2); background: var(--gold-2); } .g-tips { fill: #7c3aed; background: #7c3aed; } .g-muni { fill: #16a34a; background: #16a34a; }
.g-corp { fill: #2563eb; background: #2563eb; } .g-hy { fill: var(--down); background: var(--down); }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: 0; }
.gtable td.neg { color: var(--down); } .gtable td.pos { color: var(--up); }
.years-t td { white-space: nowrap; }
svg.yrs .axis { stroke: #cbd5e1; } svg.yrs .up { fill: #16a34a; } svg.yrs .down { fill: #dc2626; } svg.yrs .partial { opacity: .45; } svg.yrs .yr { fill: var(--ink-2); font-size: 10px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #e2e8f0; border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.cta b { color: #fff; }
.sources { padding: 8px 4px; font-size: 14px; color: var(--ink-2); }
.sources h2 { font-size: 20px; margin-bottom: 6px; }
.sources ul { padding-left: 18px; }

/* List pages */
.list-layout { padding-top: 30px; padding-bottom: 60px; }
.prose { max-width: 760px; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 0 0 16px; }
.prose.about { padding: 30px 0 60px; }
.prose.about h2 { font-size: 24px; margin: 30px 0 10px; color: var(--navy); }
.prose.about h2:first-child { margin-top: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 26px; }
.jump a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; }
.jump a span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.jump a:hover { border-color: var(--gold); }
.lgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; scroll-margin-top: calc(var(--stick) + 8px); }
.lgroup h2 { font-size: 27px; }
.blurb { color: var(--ink-2); margin: 8px 0 4px; max-width: 820px; }
.ltable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; margin-top: 8px; min-width: 860px; }
.ltable th, .ltable td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); text-align: right; white-space: nowrap; }
.ltable .fund { text-align: left; white-space: normal; min-width: 230px; position: sticky; left: 0; background: #fff; z-index: 1; }
.ltable thead th { font: 600 11.5px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--line); position: relative; }
.ltable thead th[data-sort] { cursor: pointer; user-select: none; }
.ltable thead th[data-sort]:hover { color: var(--navy); }
.ltable thead th.asc::after { content: " ▲"; color: var(--gold-2); } .ltable thead th.desc::after { content: " ▼"; color: var(--gold-2); }
.ltable td.fund b a, .ltable td.fund b { color: var(--navy); }
.ltable td.fund small { display: block; line-height: 1.3; }
.ltable tbody.bench td { background: var(--gold-soft); border-bottom: 2px solid #eadfb8; }
.ltable tbody tr:hover td { background: #fbfaf5; }
.ltable td.neg { color: var(--down); } .ltable td.pos { color: var(--up); }
.ltable th.txt, .ltable td.txt { text-align: left; }
.ltable .test { min-width: 150px; }

/* Browse page: a filter bar that stays under the nav while the tables scroll */
.browse-tools { position: sticky; top: calc(var(--stick) - 8px); z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 0; margin: -10px 0 6px; background: var(--bg); }
.browse-tools[hidden] { display: none; }
.browse-tools .filter { position: relative; flex: 1; max-width: 580px; display: flex; align-items: center; }
.browse-tools .filter svg { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.browse-tools input { width: 100%; font: 15px Inter, sans-serif; padding: 11px 14px 11px 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); outline: none; box-shadow: 0 4px 16px rgba(11,17,32,.05); transition: border-color .15s, box-shadow .15s; }
.browse-tools input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.browse-tools .count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.browse .lgroup { scroll-margin-top: calc(var(--stick) + 66px); }
.browse .jump a.off { opacity: .45; }
.browse-empty { padding: 10px 0 24px; }
.ltable.narrow { min-width: 620px; }
.ltable sup.stale { color: var(--gold-2); cursor: help; font-weight: 700; }
.ltable td small.since { display: block; font-size: 11px; line-height: 1.2; }
.browse-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.browse-cta .btn-gold { text-decoration: none; }
.browse-cta span { font-size: 14px; }
.browse-chips a .n { color: var(--muted); font-weight: 500; margin-left: 6px; }
.featured-title { margin: 34px 0 12px; }
a.stat-link { display: block; background: var(--navy); border: 1px solid var(--navy); border-radius: 12px; padding: 10px 16px; min-width: 130px; text-decoration: none; transition: transform .15s; }
a.stat-link b { display: block; font: 700 22px "Playfair Display", Georgia, serif; }
a.stat-link span { font-size: 12.5px; }
a.stat-link b { color: #fff; } a.stat-link span { color: var(--gold); font-weight: 600; }
a.stat-link:hover { transform: translateY(-2px); }
.jump a.other { background: var(--gold-soft); border-color: #eadfb8; }
.tv { font-weight: 700; } .tv.good { color: var(--up); } .tv.bad { color: var(--down); }
.tbar { display: inline-block; width: 60px; height: 6px; background: #f1f5f9; border-radius: 3px; margin-left: 8px; vertical-align: middle; overflow: hidden; }
.tbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.notes-grid { margin: 36px 0 10px; }
.notes-grid h2, .faq-block h2, .method h2 { font-size: 28px; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; border-top: 3px solid var(--gold); }
.card h3 { font: 700 18px "Playfair Display", Georgia, serif; text-transform: none; letter-spacing: 0; color: var(--navy); margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(circle at 90% 0, rgba(212,175,55,.28), transparent 55%), var(--navy); color: #cbd5e1; border-radius: 20px; padding: 30px 34px; margin: 34px 0; }
.band h2 { color: #fff; font-size: 27px; margin-bottom: 6px; }
.band p { margin: 0; max-width: 640px; }
.faq-block, .method { max-width: 860px; margin-top: 30px; }
.method ul { padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.method li { margin: 8px 0; }

.more-links { margin-top: 36px; }
.more-links h2 { font-size: 28px; margin-bottom: 14px; }
.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.link-cards a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink-2); font-size: 14px; transition: border-color .15s, transform .15s; }
.link-cards a:hover { border-color: var(--gold); transform: translateY(-2px); }
.link-cards b { display: block; font: 700 18px "Playfair Display", Georgia, serif; color: var(--navy); margin-bottom: 6px; line-height: 1.25; }
.ltable sup { color: var(--muted); font-size: 10px; margin-left: 1px; }
.ltable .renamed { font-style: normal; color: #b45309; }

/* Guides */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-top: 34px; padding-bottom: 60px; }
.guide { max-width: 760px; }
.guide h2 { font-size: 30px; margin: 40px 0 12px; scroll-margin-top: calc(var(--stick) + 8px); }
.guide ul { padding-left: 20px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.guide li { margin: 8px 0; }
.guide p.small { font-size: 14.5px; }
.takeaways { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; padding: 18px 24px 8px; margin: 26px 0; }
.takeaways h2 { font-size: 21px; margin: 0 0 4px; }
.takeaways ul { font-size: 16px; }
.job-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 8px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.job h3 { font: 700 20px "Playfair Display", Georgia, serif; text-transform: none; letter-spacing: 0; color: var(--navy); margin: 6px 0 6px; }
.job h3 a { color: var(--navy); }
.job p { font-size: 15px !important; line-height: 1.6 !important; margin: 0 !important; }
.job-tag { font: 600 11px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #0f6b5c; background: #e6f4f1; padding: 2px 8px; border-radius: 6px; }
.job-cards.warn .job-tag { color: var(--down); background: #fef2f2; }
.tbl-title { font: 700 17px "Playfair Display", Georgia, serif; text-transform: none; letter-spacing: 0; color: var(--navy); margin: 22px 0 4px; }
.gtable { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gtable th, .gtable td { padding: 9px 12px; }
.callout { background: var(--gold-soft); border: 1px solid #eadfb8; border-radius: 14px; padding: 16px 20px; color: var(--ink-2); font-size: 16px; line-height: 1.65; margin: 20px 0; }
.callout b { color: var(--navy); }
.guide .band { margin: 40px 0; }
.guide .band h2 { margin: 0 0 6px; }

/* Hub */
.hub { padding-top: 40px; padding-bottom: 60px; }
.hub > section { margin-bottom: 52px; scroll-margin-top: calc(var(--stick) + 8px); }
.sec-title { margin-bottom: 18px; }
.sec-title h2 { font-size: 32px; }
.sec-title p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.tiles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 18px; padding: 24px 26px; text-decoration: none; color: var(--ink-2); transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11,17,32,.1); }
.feature h3 { font: 700 26px "Playfair Display", Georgia, serif; text-transform: none; letter-spacing: 0; color: var(--navy); margin: 10px 0 8px; }
.feature p { margin: 0 0 16px; flex: 1; }
.feature .more { font-weight: 600; color: var(--gold-2); }
.feature .badge { align-self: flex-start; font: 700 11px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; background: var(--gold-soft); color: #7a5d06; padding: 3px 9px; border-radius: 6px; }
.feature.navy { background: radial-gradient(circle at 100% 0, rgba(212,175,55,.25), transparent 55%), var(--navy); border-top-color: var(--gold); color: #cbd5e1; }
.feature.navy h3 { color: #fff; } .feature.navy .more { color: var(--gold); } .feature.navy .badge { background: rgba(212,175,55,.18); color: var(--gold); }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.group { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 8px; }
.group h3 { margin: 2px 0 6px; }
.fund-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); font-size: 14px; }
.fund-row:hover .t { color: var(--gold-2); }
.fund-row .t { font-weight: 700; color: var(--navy); }
.fund-row .n { line-height: 1.35; }
.fund-row .n em { display: block; font-style: normal; font-size: 12px; color: #0f6b5c; margin-top: 2px; }
.fund-row .n em.warn { color: var(--down); }
.fund-row .c { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.stock-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stock-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, transform .15s; }
.stock-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.stock-card .t { font-weight: 700; color: var(--gold-2); font-size: 13px; letter-spacing: .04em; }
.stock-card b { color: var(--navy); font-size: 15px; line-height: 1.3; }
.stock-card .ind { font-size: 12.5px; color: var(--muted); }
.stock-card .meta { font-size: 12.5px; margin-top: auto; padding-top: 6px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.why-grid .ico { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: var(--navy); color: var(--gold); font: 700 16px "Playfair Display", Georgia, serif; }
.why-grid h3 { font: 700 18px "Playfair Display", Georgia, serif; text-transform: none; letter-spacing: 0; color: var(--navy); margin: 12px 0 6px; }
.why-grid p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.nf { padding: 70px 24px 90px; }
.nf h1 { font-size: clamp(32px, 5vw, 48px); }
.nf .btn-navy { margin-top: 24px; }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 40px 24px 24px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 340px; }
.foot-brand p { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-cols h4 { font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.foot-cols a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; margin: 6px 0; max-width: 260px; }
.foot-cols a:hover { color: var(--navy); }
.foot-legal { max-width: 1200px; margin: 0 auto; padding: 16px 24px 34px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: #94a3b8; }
.foot-legal p { margin: 6px 0; }

@media (max-width: 1100px) {
  .stock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side .toc, aside.toc { display: none; }
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subnav .search { width: auto; flex: 1; min-width: 180px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11,17,32,.08); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 10px 8px; }
  .nav-links a.on { box-shadow: none; color: var(--gold-2); }
  .nav-links .nav-btn { justify-content: center; margin-top: 8px; }
}
@media (max-width: 640px) {
  :root { --stick: 72px; }
  .wrap { padding: 0 16px; }
  .nav-in, .subnav-in { padding-left: 16px; padding-right: 16px; }
  .subnav-in { flex-wrap: wrap; gap: 6px 16px; }
  .subnav .search { flex-basis: 100%; order: 5; }
  .subnav .subnav-home { display: none; } /* the main nav and the breadcrumb lead to the hub */
  .logo-word { font-size: 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile b { font-size: 19px; }
  .mix, .mix2, .fit, .cards, .job-cards, .groups, .why-grid, .link-cards { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-grid { grid-template-columns: 1fr; }
  .feature { grid-column: auto; grid-row: auto; }
  .sec, .lgroup { padding: 18px 16px; }
  .ltable .fund { min-width: 160px; }
  .browse-tools { gap: 10px; }
  .browse-tools input { font-size: 14px; padding-left: 38px; }
  .browse-tools .filter svg { left: 13px; }
  .browse-tools .count { font-size: 13px; }
  .band { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .lede { font-size: 17px; }
  .stat-strip div { min-width: 0; flex: 1 1 40%; }
  .kv th { width: 42%; }
  .guide h2 { font-size: 26px; }
  .prose p, .guide ul { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Security pages: returns strip, risk tiles, 52-week range, price chart, table toggles, sectors, sidebar facts */
.rstrip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.rstrip div { padding: 9px 10px; border-right: 1px solid var(--line-2); }
.rstrip div:last-child { border-right: 0; }
.rstrip span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.rstrip b { font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.rstrip b.up { color: var(--up); } .rstrip b.down { color: var(--down); }
.hero .reviewed { color: var(--gold-2); }
.rtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.rtile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fcfcfb; }
.rtile span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rtile b { display: block; font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; margin: 2px 0; }
.rtile b.up { color: var(--up); } .rtile b.down { color: var(--down); }
.rtile b.cap { text-transform: capitalize; }
.rtile small { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; }
.range52 { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.range52 .r-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.range52 .r-h span { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.range52 .r-bar { position: relative; height: 8px; border-radius: 4px; margin: 10px 0 8px; background: linear-gradient(90deg, #fecaca, #fde68a 50%, #bbf7d0); }
.range52 .r-bar i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--navy); }
.range52 small { color: var(--muted); font-size: 13px; }
.pchart { margin: 2px 0 4px; }
.pchart-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pchart .ranges, .mchart .ranges { display: flex; flex-wrap: wrap; gap: 4px; }
.pchart .ranges button, .mchart .ranges button { font: 600 12.5px Inter, sans-serif; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.pchart .ranges button.on, .mchart .ranges button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pchart .ranges button:disabled { opacity: .35; cursor: not-allowed; }
.pchart .cmp { font-size: 13.5px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.pchart-plot { position: relative; min-height: 220px; }
svg.pc { width: 100%; height: auto; display: block; font: 11px Inter, sans-serif; fill: var(--muted); touch-action: pan-y; }
svg.pc .grid { stroke: var(--line-2); } svg.pc .zero { stroke: #94a3b8; stroke-dasharray: 3 3; }
svg.pc .area { fill: rgba(212,175,55,.12); stroke: none; }
svg.pc .line { fill: none; stroke-width: 2; } svg.pc .line.up { stroke: var(--navy); } svg.pc .line.down { stroke: var(--down); }
svg.pc .bench { fill: none; stroke: #94a3b8; stroke-width: 1.6; stroke-dasharray: 5 3; }
svg.pc .guide { stroke: #94a3b8; stroke-width: 1; }
svg.pc .dot { fill: var(--navy); stroke: #fff; stroke-width: 2; } svg.pc .bdot { fill: #94a3b8; stroke: #fff; stroke-width: 2; }
.pc-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(11,17,32,.2); }
.pc-tip b { display: block; font-weight: 600; color: #e2c766; }
.pc-tip span { display: block; } .pc-tip span.b { color: #cbd5e1; }
.pchart-sum { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
details.as-table { margin: 4px 0 12px; }
details.as-table summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--link); }
details.as-table table { margin-top: 8px; }
h3.sub { margin: 18px 0 8px; }
.sbars { display: grid; gap: 6px; }
.sbar { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 56px; align-items: center; gap: 10px; font-size: 14px; }
.sbar i { display: block; height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.sbar i em { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 5px; }
.sbar b { text-align: right; font-variant-numeric: tabular-nums; }
.sbar.other { color: var(--muted); } .sbar.other i em { background: #cbd5e1; }
.facts-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.facts-card h3 { margin-top: 0; }
.kv-side { font-size: 13.5px; }
.kv-side th { width: 46%; padding: 6px 8px 6px 0; }
.kv-side td { padding: 6px 0; font-variant-numeric: tabular-nums; }
.facts-card .note { display: block; margin-top: 8px; }
@media (max-width: 1100px) { .rstrip { grid-template-columns: repeat(5, minmax(0, 1fr)); } .rstrip div:nth-child(5) { border-right: 0; } .rstrip div:nth-child(n+6) { border-top: 1px solid var(--line-2); } }
/* One column: the facts card comes right after the title area, the ad card and links after the sections. */
@media (max-width: 960px) {
  .side { display: contents; }
  .facts-card { order: -1; margin-bottom: 0; }
  .layout > main { order: 0; }
  .side .rar-card, .side .side-links { order: 1; }
}
@media (max-width: 640px) {
  .rstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rstrip div { border-right: 1px solid var(--line-2) !important; border-top: 1px solid var(--line-2); }
  .rstrip div:nth-child(3n) { border-right: 0 !important; } .rstrip div:nth-child(-n+3) { border-top: 0; }
  .rtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbar { grid-template-columns: minmax(96px, 1fr) 1.2fr 48px; font-size: 13px; }
}

/* Bar charts drawn twice (render.yearsChart/amountChart): the narrow one on phones. */
.chart-narrow { display: none; }
.tiles.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .chart-wide { display: none; }
  .chart-narrow { display: block; }
  .chart-narrow svg.yrs { font-size: 11px; }
  .tiles.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:last-child:nth-child(odd) { grid-column: span 2; }
  .rets th, .rets td { padding: 6px 5px; font-size: 13.5px; }
  .rets th:first-child { min-width: 108px; }
  .rets th small { display: block; }
}

/* Top Lists, directory and guides (carried over from the ETF Atlas demo). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero.has-art .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: center; }
.hero-art { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15,23,42,.10); background: #eef2f6; }
.page-hero .lede + .lede { margin-top: -6px; }
.mode-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; margin-top: 14px; }
.mode-toggle a { padding: 6px 16px; border-radius: 999px; font: 600 14px Inter, sans-serif; color: var(--ink-2); text-decoration: none; }
.mode-toggle a.on { background: var(--navy); color: #fff; }
.tsec { margin: 34px 0; scroll-margin-top: calc(var(--stick) + 8px); }
.tsec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tsec-h h2 { font-size: 26px; }
.ttiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ttile { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ttile:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(15,23,42,.08); transform: translateY(-1px); }
.ttile img, .ttile .noimg { width: 72px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: #eef2f6; }
.ttile b { display: block; font-size: 14.5px; color: var(--navy); line-height: 1.3; }
.ttile small { display: block; line-height: 1.35; margin-top: 2px; }
.show-all { margin: 12px 0 0; font: 600 14px Inter, sans-serif; color: var(--link); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.show-all:hover { border-color: var(--gold); }
.ltable.compact { min-width: 560px; }
.ltable td.fund small em.warn { font-style: normal; font-weight: 600; color: var(--down); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
svg.spark { display: inline-block; vertical-align: middle; } svg.spark polyline { fill: none; stroke-width: 1.5; } svg.spark.up polyline { stroke: var(--up); } svg.spark.down polyline { stroke: var(--down); }
.mchart { position: relative; }
.mchart .pc-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.mchart .pc-plot { position: relative; }
svg.pc.mc .mline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.pc-tip span.row i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.mlegend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mlegend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.mlegend i.b { background: repeating-linear-gradient(90deg, #94a3b8 0 5px, transparent 5px 8px); }
.mlegend b { color: var(--navy); font-weight: 600; margin-right: 2px; }
.related-lists { margin: 30px 0; } .related-lists h2 { font-size: 24px; margin-bottom: 12px; }
@media (max-width: 1100px) { .ttiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .page-hero.has-art .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } .ttiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ttiles { grid-template-columns: 1fr; } }
.gtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gtile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: #e8eef3; text-decoration: none; box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: transform .15s, box-shadow .15s; }
.gtile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,23,42,.14); }
.gtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(11,17,32,.88)); color: #fff; }
.gtile .cap b { display: block; font: 600 17px Inter, sans-serif; }
.gtile .cap small { color: #dbe3ec; font-size: 13px; }
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 30px 0; }
.leader { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.leader .tsec-h h2 { font-size: 22px; }
.leader .tsec-h { align-items: center; }
.leader .tsec-h > a, .lgroup .tsec-h > a { white-space: nowrap; }
.leader .tsec-h h2 { display: flex; align-items: center; gap: 14px; }
.licon { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(15,23,42,.08); }
@media (max-width: 560px) { .licon { width: 44px; height: 44px; } .leader .tsec-h h2 { gap: 12px; font-size: 20px; } }
.leader .ltable { min-width: 0; font-size: 13.5px; }
.leader .ltable .fund { min-width: 160px; }
a.show-all { display: inline-block; text-decoration: none; }
@media (max-width: 960px) { .gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .leaders { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gtiles { grid-template-columns: 1fr; } }
.subnav a.on { color: var(--navy); font-weight: 600; }
.gtiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gtiles.four .gtile .cap b { font-size: 15px; }
.ttiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tsec .blurb { margin: -6px 0 14px; }
.risk-list { padding-left: 18px; } .risk-list li { margin-bottom: 8px; } .risk-list b { color: var(--navy); }
@media (max-width: 1100px) { .gtiles.four { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .gtiles.four, .ttiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gtiles.four, .ttiles.three { grid-template-columns: 1fr; } }
.guide-layout .ltable, .guide-layout .ltable.compact { min-width: 600px; } .guide-layout .ltable .fund { min-width: 190px; }

/* Screener */
.screener { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 26px; }
.screener > .band { grid-column: 1 / -1; }
.sc-filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; position: sticky; top: calc(var(--stick) + 8px); max-height: calc(100vh - var(--stick) - 24px); overflow: auto; }
.sc-filters summary { font: 700 18px "Playfair Display", Georgia, serif; color: var(--navy); cursor: pointer; list-style: none; }
.sc-filters summary::-webkit-details-marker { display: none; }
.sc-filters summary .n { font: 600 12.5px Inter, sans-serif; color: var(--gold-2); margin-left: 4px; }
.sc-filters fieldset { border: 0; border-top: 1px solid var(--line-2); margin: 12px 0 0; padding: 12px 0 0; }
.sc-filters legend { font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; margin-bottom: 6px; }
.sc-filters label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 9px; }
.sc-filters input, .sc-filters select { display: block; width: 100%; margin-top: 3px; font: 14px Inter, sans-serif; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.sc-filters input:focus, .sc-filters select:focus { outline: 2px solid rgba(212,175,55,.5); border-color: var(--gold); }
.sc-filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-reset { margin-top: 6px; font: 600 13.5px Inter, sans-serif; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--ink-2); }
.sc-results { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; scroll-margin-top: calc(var(--stick) + 8px); }
.sc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sc-bar > b { font-size: 16px; color: var(--navy); }
.sc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.sc-tools select, .sc-tools button, .sc-cols summary { font: 600 13px Inter, sans-serif; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px 11px; cursor: pointer; color: var(--ink-2); }
.sc-cols { position: relative; } .sc-cols summary { list-style: none; } .sc-cols summary::-webkit-details-marker { display: none; }
.sc-cols > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.14); padding: 10px 14px; columns: 2; width: 320px; }
.sc-cols label { display: block; font-size: 13px; padding: 3px 0; white-space: nowrap; }
.sc-table thead th[data-k] { cursor: pointer; user-select: none; } .sc-table thead th[data-k]:hover { color: var(--navy); }
.sc-table td.txt { text-align: left; max-width: 180px; white-space: normal; }
.sc-table .fund small em.warn { font-style: normal; font-weight: 600; color: var(--down); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.sc-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; }
.sc-pager button, .sc-pager span.on { min-width: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: 600 13px Inter, sans-serif; color: var(--ink-2); }
.sc-pager span.on { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.sc-pager .gap { color: var(--muted); } .sc-pager .range { margin-left: auto; color: var(--muted); }
@media (max-width: 860px) {
  .screener { grid-template-columns: 1fr; }
  .sc-filters { position: static; max-height: none; }
  .sc-cols > div { right: auto; left: 0; width: 280px; }
}
.ltable.common-holdings, .guide-layout .ltable.common-holdings { min-width: 0; }
.ltable.common-holdings .fund { min-width: 0; position: static; }
@media (max-width: 520px) {
  .gtiles, .gtiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gtile { aspect-ratio: 1 / 1; }
  .gtile .cap { padding: 26px 10px 10px; } .gtile .cap b, .gtiles.four .gtile .cap b { font-size: 13.5px; line-height: 1.25; } .gtile .cap small { font-size: 11.5px; }
}
.ltable.common-holdings thead th { white-space: normal; } @media (max-width: 520px) { .ltable.common-holdings th, .ltable.common-holdings td { padding: 8px 5px; } }

/* The section row (ETF directory, Top lists, ...) stays pinned under the main bar on wider screens;
   on phones its links are in the menu instead, so two pinned bars don't eat the screen. */
.nav-links .m-only { display: none; }
@media (min-width: 861px) {
  :root { --stick: 130px; }
  .subnav { position: sticky; top: 69px; z-index: 39; }
}
@media (max-width: 860px) {
  .nav-links .m-only { display: block; padding-left: 24px; font-size: 14.5px; }
}
.tiles-grid.guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-grid.guide-cards .feature { grid-column: auto; grid-row: auto; padding: 20px 22px; }
.tiles-grid.guide-cards .feature h3 { font-size: 21px; }
@media (max-width: 960px) { .tiles-grid.guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles-grid.guide-cards { grid-template-columns: 1fr; } }

/* Industry guides: side-by-side table, head to head, overlap bars, market falls */
.sec h3.sub { font: 700 19px "Playfair Display", Georgia, serif; text-transform: none; letter-spacing: 0; color: var(--navy); margin: 22px 0 8px; }
.guide-layout .ltable.side-by-side { min-width: 560px; }
.side-by-side thead th { text-align: right; font-size: 13px; }
.side-by-side th.fund { font: 500 13.5px Inter, sans-serif; color: var(--ink-2); text-transform: none; letter-spacing: 0; min-width: 150px; }
.side-by-side td.txt { text-align: right; white-space: normal; font-size: 13px; min-width: 110px; }
.h2h { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.h2h > div { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; }
.h2h h4 { margin: 0 0 6px; font: 700 15px Inter, sans-serif; color: var(--navy); }
.h2h p { margin: 0; font-size: 14.5px; }
.ltable.overlap .barcol { width: 30%; }
.ltable.overlap td.barcell span { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.ltable.downturns tr.ref td { background: var(--gold-soft); font-weight: 600; }
.guide-layout .ltable.overlap, .guide-layout .ltable.downturns, .guide-layout .ltable.cheapest { min-width: 480px; }
.swipe-hint { display: none; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
@media (max-width: 640px) { .swipe-hint { display: block; } }

/* Pictures on collection and guide cards, group headings and chips, and the ranking toggle. */
.feature-art { display: block; width: calc(100% + 52px); max-width: none; height: auto; margin: -24px -26px 18px; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 14px 14px 0 0; background: #eef2f6; }
.tiles-grid.guide-cards .feature-art { width: calc(100% + 44px); margin: -20px -22px 16px; }
.lgroup h2 { display: flex; align-items: center; gap: 14px; }
.lgroup .tsec-h { align-items: center; }
.gthumb { width: 72px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; }
.jump a img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin: -4px 7px -2px -8px; }
.mode-toggle a { display: inline-flex; align-items: center; gap: 7px; }
.mode-toggle img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-left: -8px; }
@media (max-width: 560px) { .gthumb { width: 54px; height: 36px; } }
