/* Static SEO sheet styles aligned with the app's #3302 "credit memo" look (#3303):
   white page, deep navy top bar (#0f2236), navy-black ink, teal accent (#0a7c8c),
   IBM Plex Sans with tabular figures and condensed table headers, flat stat strip,
   and flat tables under a 2px ink rule. Dark mode uses deep blue-grey (#0e1620)
   with brighter teal (#4fc0cf), honoring both system preference and the app's
   saved localStorage("theme") via theme.js. */
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:400 700; font-stretch:85% 100%; font-display:swap; src:url(/fonts/ibm-plex-sans-latin-ext.woff2) format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:400 700; font-stretch:85% 100%; font-display:swap; src:url(/fonts/ibm-plex-sans-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Source Serif 4'; font-style:normal; font-weight:400 700; font-display:swap; src:url(/fonts/source-serif-4-latin-ext.woff2) format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:'Source Serif 4'; font-style:normal; font-weight:400 700; font-display:swap; src:url(/fonts/source-serif-4-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --rail: #0f2236;
  --ink: #14212e;
  --ink2: #36434f;
  --mute: #5c6875;
  --line: #d3d9e0;
  --rule: #e5e9ee;
  --head: #eef2f6;
  --hover: #f2f6f9;
  --acc: #0a7c8c;
  --accsoft: #e1f3f5;
  --onacc: #ffffff;
  --bad: #a3352a;
  --warn: #9a6510;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1620;
    --card: #121c27;
    --rail: #0a121b;
    --ink: #e6ebf0;
    --ink2: #c2cbd4;
    --mute: #8d99a6;
    --line: #263342;
    --rule: #1d2834;
    --head: #17222e;
    --hover: #182430;
    --acc: #4fc0cf;
    --accsoft: #123640;
    --onacc: #0e1620;
    --bad: #d88a80;
    --warn: #e0a84e;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1620;
  --card: #121c27;
  --rail: #0a121b;
  --ink: #e6ebf0;
  --ink2: #c2cbd4;
  --mute: #8d99a6;
  --line: #263342;
  --rule: #1d2834;
  --head: #17222e;
  --hover: #182430;
  --acc: #4fc0cf;
  --accsoft: #123640;
  --onacc: #0e1620;
  --bad: #d88a80;
  --warn: #e0a84e;
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--sans); font-feature-settings: "tnum" 1; color: var(--ink); background: var(--bg); }
a { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Slim navy top bar (Option B, #3303) */
header.top { background: var(--rail); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
a.home { display: inline-flex; text-decoration: none; }
.mark { display: block; width: 136px; height: 35px; overflow: visible; }
.mark text { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: -.3px; }
.mark .ms { fill: #ffffff; }
.mark .mf { fill: #7f93a8; }
.mark .mt { fill: #5fd3e2; }
header.top nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
header.top nav a { color: #cfd9e3; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .18s; }
header.top nav a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #5fd3e2; }

main, footer { max-width: 1120px; margin: 0 auto; padding: 20px; }
main { padding-top: 22px; padding-bottom: 36px; }

/* Breadcrumb trail */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; color: var(--mute); }
.crumb a { color: var(--mute); text-decoration: none; }
.crumb a:hover { color: var(--acc); text-decoration: underline; }
.crumb .sep { opacity: .55; }

/* Title + primary CTA row */
.headrow { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin: 0 0 10px; }
h1 { font: 600 clamp(26px, 2.6vw, 32px)/1.12 var(--sans); letter-spacing: -.015em; margin: 0; }
main > h1 { margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.open { display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; border: 1px solid var(--acc); border-radius: 4px; background: var(--acc); color: var(--onacc); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: filter .18s, border-color .18s, color .18s; }
.open:hover { filter: brightness(1.07); }
.open.sec { background: var(--card); color: var(--ink); border-color: var(--line); font-weight: 500; }
.open.sec:hover { filter: none; border-color: var(--acc); color: var(--acc); }

.badge { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.lede { margin: 0 0 10px; max-width: 75ch; color: var(--ink2); }

/* Sponsor + inline Filed as metadata */
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 14px; font-size: 13px; color: var(--mute); }
.meta p { margin: 0; }
.filed { font-size: 13px; color: var(--mute); margin: 0; }
.filed summary { display: list-item; width: max-content; cursor: pointer; color: var(--mute); }
.filed summary:hover { color: var(--ink); }

/* KPI tiles (match the app's .kpis): a box each, label above the figure.
   The markup puts the figure first, so column-reverse lifts the label. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 20px; }
.tiles div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 1px; min-width: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.tiles b { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tiles b a { text-decoration: none; }
.tiles b a:hover { text-decoration: underline; }
.tiles span { color: var(--ink2); font-size: 12px; font-weight: 600; }

/* Flat sections & tables under a 2px ink rule */
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; margin: 28px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
h2 + .wrap { border-top: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th { background: var(--head); font-stretch: 85%; font-weight: 600; font-size: 13px; color: var(--ink2); border-bottom-color: var(--line); }
tbody tr:hover td { background: var(--hover); }
td.w { white-space: normal; min-width: 150px; }
th.n, td.n { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: var(--ink); font-weight: 500; text-decoration: none; }
td a:hover { color: var(--acc); text-decoration: underline; }
td.mk-bad { color: var(--bad); font-weight: 600; }
td.mk-warn { color: var(--warn); font-weight: 600; }

/* Directory A-Z & pagination bars */
.az { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 16px; font-size: 14.5px; }
.az a { text-decoration: none; font-weight: 500; }
.az a:hover { text-decoration: underline; }
.az.end { margin: 16px 0 0; }

/* Related links & past-holdings columns */
.rel { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0 0; font-size: 14px; }
.rel b { font-weight: 600; color: var(--mute); }
.rel a { text-decoration: none; }
.rel a:hover { text-decoration: underline; }
.past { columns: 260px; column-gap: 24px; margin: 10px 0 0; font-size: 13.5px; }
.past a { display: block; break-inside: avoid; padding: 3px 0; overflow-wrap: anywhere; text-decoration: none; }
.past a:hover { text-decoration: underline; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; border-top: 1px solid var(--rule); color: var(--mute); font-size: 12.5px; padding-top: 14px; padding-bottom: 24px; }
footer a { color: var(--mute); }
footer a:hover { color: var(--acc); }

@media (max-width: 640px) {
  .top-in, main, footer { padding-left: 14px; padding-right: 14px; }
  .mark { width: 118px; height: 30px; }
  .headrow { flex-direction: column; align-items: flex-start; }
  table { font-size: 13px; }
  th, td { padding: 6px 8px; }
}
