/* ============================================================
   BondGov — Public Issuer Pages (public-chrome layer)
   Sits on top of ds.css (the console design system tokens).
   ============================================================ */

.pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--mp-bg-page); }
.pub__main { flex: 1; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 28px; width: 100%; }

/* ---- Utility bar -------------------------------------------- */
.util { background: var(--mp-brand-deep); color: rgba(255,255,255,0.72); border-bottom: 1px solid rgba(255,255,255,0.06); }
.util__row { max-width: 1440px; margin: 0 auto; padding: 0 28px; height: 42px; display: flex; align-items: center; gap: 16px; }
.util__brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.util__wordmark { font-family: var(--mp-font-serif); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: #fff; }
.util__wordmark b { color: var(--mp-accent-soft); font-weight: 600; }
.util__divider { width: 1px; height: 18px; background: rgba(255,255,255,0.16); }
.util__tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.util__spacer { flex: 1; }
.util__links { display: flex; align-items: center; gap: 4px; }
.util__link { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.66); text-decoration: none; padding: 5px 10px; border-radius: var(--r-sm); transition: color var(--t-fast), background var(--t-fast); }
.util__link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.util__claim { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--mp-brand-deep); background: var(--mp-accent-soft); padding: 5px 12px; border-radius: var(--r-sm); text-decoration: none; border: 1px solid var(--mp-accent-soft); transition: background var(--t-fast); }
.util__claim:hover { background: #fff; border-color: #fff; }

/* ---- Issuer masthead ---------------------------------------- */
.mast { background: var(--mp-bg-card); border-bottom: 1px solid var(--mp-border); }
.mast__row { max-width: 1440px; margin: 0 auto; padding: 26px 28px 24px; display: flex; align-items: flex-start; gap: 22px; }
.mast__seal { width: 60px; height: 60px; flex: 0 0 60px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-family: var(--mp-font-serif); font-weight: 700; font-size: 19px; letter-spacing: 0.03em; background: linear-gradient(150deg, var(--mp-primary-light), var(--mp-primary-dark)); color: var(--mp-accent-soft); border: 1px solid var(--mp-primary-dark); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.10); }
.mast__id { min-width: 0; flex: 1; }
.mast__name { font-family: var(--mp-font-serif); font-size: 33px; font-weight: 600; line-height: 1.05; color: var(--mp-primary-dark); letter-spacing: -0.012em; }
.mast__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.mast__metaitem { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mp-text-muted); font-weight: 500; }
.mast__metaitem b { color: var(--mp-gray-700); font-weight: 700; }
.mast__dot { color: var(--mp-gray-300); }
.verifiedchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e6f4ed; color: #176b52; letter-spacing: 0.01em; }
.verifiedchip--gold { background: color-mix(in srgb, var(--mp-accent) 16%, #fff); color: var(--mp-accent-600); }
.mast__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.ratingstrip { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; }
.ratingstrip__cell { padding: 11px 18px; border-right: 1px solid var(--mp-border-soft); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ratingstrip__cell:last-child { border-right: none; }
.ratingstrip__k { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); }
.ratingstrip__v { font-family: var(--mp-font-mono); font-size: 17px; font-weight: 700; color: var(--mp-primary-dark); display: flex; align-items: baseline; gap: 6px; }
.ratingstrip__v small { font-family: var(--mp-font-sans); font-size: 11px; font-weight: 600; color: var(--mp-text-muted); }
.ratingstrip__v.is-debt { color: var(--mp-gray-900); }

/* masthead BAND variant */
.mast[data-hero="band"] { background: var(--mp-brand-deep); border-bottom: 1px solid #06251b; }
.mast[data-hero="band"] .mast__seal { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.05); }
.mast[data-hero="band"] .mast__name { color: #fff; }
.mast[data-hero="band"] .mast__metaitem { color: rgba(255,255,255,0.66); }
.mast[data-hero="band"] .mast__metaitem b { color: #fff; }
.mast[data-hero="band"] .mast__dot { color: rgba(255,255,255,0.3); }
.mast[data-hero="band"] .verifiedchip { background: rgba(255,255,255,0.1); color: #fff; }
.mast[data-hero="band"] .btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.mast[data-hero="band"] .btn--ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); }

/* ---- Sticky tab bar ----------------------------------------- */
.tabbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--mp-border); }
.tabbar.is-pinned { box-shadow: var(--sh-md); }
.tabbar__row { max-width: 1440px; margin: 0 auto; padding: 0 28px; height: 54px; display: flex; align-items: center; gap: 14px; }
.tabbar__mini { display: flex; align-items: center; gap: 9px; opacity: 0; width: 0; overflow: hidden; transition: opacity var(--t-fast); pointer-events: none; }
.tabbar.is-pinned .tabbar__mini { opacity: 1; width: auto; pointer-events: auto; padding-right: 14px; border-right: 1px solid var(--mp-border-soft); }
.tabbar__mini-seal { width: 30px; height: 30px; border-radius: var(--r-sm); flex: 0 0 30px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--mp-primary-light), var(--mp-primary-dark)); color: var(--mp-accent-soft); font-family: var(--mp-font-serif); font-weight: 700; font-size: 12px; }
.tabbar__mini-name { font-family: var(--mp-font-serif); font-size: 14px; font-weight: 600; color: var(--mp-primary-dark); white-space: nowrap; }
.tabs2 { display: flex; align-items: center; gap: 2px; height: 100%; flex: 1; }
.tab2 { position: relative; border: none; background: transparent; color: var(--mp-text-muted); font-size: 14px; font-weight: 600; letter-spacing: 0.004em; padding: 0 14px; height: 100%; display: inline-flex; align-items: center; gap: 7px; border-bottom: 2.5px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); white-space: nowrap; }
.tab2:hover { color: var(--mp-text); }
.tab2.is-active { color: var(--mp-primary); border-bottom-color: var(--mp-primary); }
.tab2__count { font-family: var(--mp-font-mono); font-size: 10.5px; font-weight: 700; color: var(--mp-text-muted); background: var(--mp-gray-100); border-radius: 999px; padding: 1px 6px; }
.tab2.is-active .tab2__count { background: color-mix(in srgb, var(--mp-primary) 12%, #fff); color: var(--mp-primary); }
.tabbar__search { position: relative; width: 200px; }
.tabbar__search input { width: 100%; height: 34px; padding: 0 12px 0 32px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); font-size: 13px; background: var(--mp-gray-50); }
.tabbar__search .icon { position: absolute; left: 9px; top: 9px; color: #9aa0ac; }

/* ---- Page body ---------------------------------------------- */
.pbody { max-width: 1440px; margin: 0 auto; padding: 30px 28px 60px; display: grid; grid-template-columns: minmax(0,1fr) 348px; gap: 40px; align-items: start; }
.pcol-main { min-width: 0; }
.pcol-side { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 16px; }

.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 30px 0 16px; padding-bottom: 11px; border-bottom: 1px solid var(--mp-border); }
.shead:first-child { margin-top: 0; }
.shead h2 { font-family: var(--mp-font-serif); font-size: 25px; font-weight: 600; color: var(--mp-primary-dark); letter-spacing: -0.01em; line-height: 1.1; }
.shead__count { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--mp-text-muted); font-family: var(--mp-font-mono); }
.shead__more { font-size: 12px; font-weight: 700; color: var(--mp-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; border: none; background: none; }
.shead__more:hover { color: var(--mp-primary-dark); }
.tabdesc { font-size: 14.5px; color: var(--mp-text-muted); margin-bottom: 6px; max-width: 70ch; line-height: 1.55; }

.cgrid { display: grid; gap: 14px; }
.cgrid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cgrid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cgrid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.dcard { display: flex; flex-direction: column; gap: 9px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-left: 3px solid var(--doc-color, var(--mp-accent)); border-radius: var(--r-md); padding: 15px 16px; text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.dcard:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--mp-primary-light); border-left-color: var(--doc-color, var(--mp-accent)); }
.dcard__pill { align-self: flex-start; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--doc-color, var(--mp-accent-600)); }
.dcard__title { font-family: var(--mp-font-serif); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--mp-gray-900); flex: 1; }
.dcard__date { font-family: var(--mp-font-mono); font-size: 11px; color: var(--mp-text-muted); }
.dcard__action { font-size: 11.5px; font-weight: 700; color: var(--mp-primary); display: inline-flex; align-items: center; gap: 5px; }

.icard { display: flex; flex-direction: column; gap: 7px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 16px; text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
a.icard:hover { border-color: var(--mp-primary-light); box-shadow: var(--sh-sm); }
.icard__kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-accent-600); }
.icard__title { font-family: var(--mp-font-serif); font-size: 16px; font-weight: 600; color: var(--mp-gray-900); line-height: 1.25; }
.icard__desc { font-size: 13px; color: var(--mp-text-muted); line-height: 1.5; }
.icard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12px; color: var(--mp-text-muted); }
.icard__meta b { color: var(--mp-gray-700); font-family: var(--mp-font-mono); font-weight: 600; }

.letter { display: grid; grid-template-columns: auto 1fr; gap: 20px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-lg); padding: 24px 26px; }
.letter__mono { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 52px; display: flex; align-items: center; justify-content: center; background: var(--mp-gray-50); border: 1px solid var(--mp-border); font-family: var(--mp-font-serif); font-weight: 700; font-size: 17px; color: var(--mp-primary); }
.letter__text { font-size: 15.5px; line-height: 1.7; color: var(--mp-gray-700); }
.letter__text p + p { margin-top: 12px; }
.letter__sig { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mp-border-soft); }
.letter__sig strong { font-size: 14px; color: var(--mp-gray-900); display: block; }
.letter__sig span { font-size: 12.5px; color: var(--mp-text-muted); }

.prose p { font-size: 15px; line-height: 1.7; color: var(--mp-gray-700); }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--mp-gray-900); font-weight: 700; }
.claimcta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 16px 20px; background: color-mix(in srgb, var(--mp-accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--mp-accent) 40%, #fff); border-radius: var(--r-md); }
.claimcta p { font-size: 13.5px; color: var(--mp-gray-700); font-weight: 500; max-width: 60ch; }
.claimcta p strong { color: var(--mp-primary-dark); }

.team { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.tmember { display: flex; gap: 14px; align-items: center; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 14px 16px; }
.tmember__av { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mp-gray-100); color: var(--mp-primary); font-weight: 700; font-size: 14px; }
.tmember__name { font-size: 14px; font-weight: 700; color: var(--mp-gray-900); }
.tmember__role { font-size: 12px; color: var(--mp-text-muted); }
.tmember__contact { display: flex; gap: 6px; margin-top: 5px; }
.tmember__contact a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border: 1px solid var(--mp-border); border-radius: var(--r-sm); color: var(--mp-text-muted); }
.tmember__contact a:hover { color: var(--mp-primary); border-color: var(--mp-primary-light); background: var(--mp-gray-50); }

/* avatar (monogram default / headshot slot when enabled) */
.avmono { border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--mp-gray-100); color: var(--mp-primary); font-weight: 700; font-family: var(--mp-font-serif); }
.avslot { border-radius: 50%; flex: 0 0 auto; border: 1px solid var(--mp-border); overflow: hidden; background: var(--mp-gray-50); }
.tmember .avmono, .tmember .avslot { width: 42px; height: 42px; }

/* IR team spotlight (featured lead) */
.teamlead { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-top: 3px solid var(--mp-accent); border-radius: var(--r-lg); padding: 24px 26px; }
.teamlead__body { min-width: 0; }
.teamlead__eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mp-accent-600); }
.teamlead__name { font-family: var(--mp-font-serif); font-size: 22px; font-weight: 600; color: var(--mp-primary-dark); line-height: 1.1; margin-top: 4px; display: flex; align-items: center; flex-wrap: wrap; }
.teamlead__role { font-size: 13px; color: var(--mp-text-muted); margin-top: 2px; }
.teamlead__quote { font-size: 14.5px; line-height: 1.6; color: var(--mp-gray-700); font-style: italic; margin: 12px 0 14px; max-width: 60ch; }
.teamlead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .teamlead { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ratings tab */
.rcard { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 20px; }
.rcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rcard__agency { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mp-text-muted); }
.rcard__grade { font-family: var(--mp-font-serif); font-size: 42px; font-weight: 600; color: var(--mp-primary-dark); line-height: 1; letter-spacing: -0.02em; }
.rcard__since { font-family: var(--mp-font-mono); font-size: 11px; color: var(--mp-text-muted); margin-top: 6px; }
.rcard__bars { display: flex; gap: 3px; margin-top: 16px; }
.rcard__tick { flex: 1; height: 20px; border-radius: 1px; background: var(--mp-gray-200); }
.rcard__tick.is-up { background: var(--mp-accent-soft); }
.rcard__tick.is-cur { background: var(--mp-primary); }
.tscore { display: flex; align-items: center; gap: 18px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 20px 24px; }
.tscore__val { font-family: var(--mp-font-serif); font-size: 46px; font-weight: 600; color: var(--mp-primary); line-height: 1; }
.tscore__val small { font-size: 22px; color: var(--mp-text-muted); }
.tscore__bars { display: flex; gap: 4px; margin-top: 8px; }
.tscore__seg { width: 38px; height: 7px; border-radius: 999px; background: var(--mp-gray-200); }
.tscore__seg.is-on { background: var(--mp-primary); }

/* documents tab — control strip */
.docctrl { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--mp-border); }
.docctrl__lead h2 { font-family: var(--mp-font-serif); font-size: 25px; font-weight: 600; color: var(--mp-primary-dark); letter-spacing: -0.01em; line-height: 1.1; }
.docctrl__count { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--mp-text-muted); }
.docctrl__tools { display: flex; align-items: center; gap: 10px; }
.docsearch { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); background: var(--mp-gray-50); color: var(--mp-text-muted); width: 230px; }
.docsearch input { border: none; background: none; outline: none; font-size: 13px; color: var(--mp-text); width: 100%; }
.docsearch input::placeholder { color: var(--mp-gray-400); }
.vtoggle { display: inline-flex; border: 1px solid var(--mp-border); border-radius: var(--r-sm); overflow: hidden; height: 34px; }
.vtoggle button { display: flex; align-items: center; justify-content: center; width: 36px; border: none; background: #fff; color: var(--mp-text-muted); border-right: 1px solid var(--mp-border); }
.vtoggle button:last-child { border-right: none; }
.vtoggle button:hover { color: var(--mp-primary); }
.vtoggle button.is-on { background: var(--mp-primary); color: #fff; }
.docctrl__ai { height: 34px; }

/* filter chips */
.docchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.docchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--mp-border); border-radius: var(--r-pill, 999px); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--mp-gray-700); }
.docchip:hover { border-color: #c7bfa8; background: var(--mp-gray-50); }
.docchip.is-on { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }
.docchip__n { font-family: var(--mp-font-mono); font-size: 11px; font-weight: 700; color: var(--mp-text-muted); }
.docchip.is-on .docchip__n { color: rgba(255,255,255,0.75); }

/* gallery — large file previews */
.docgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 22px; }
.dfile { display: flex; flex-direction: column; gap: 11px; cursor: pointer; }
.dfile.is-flat { cursor: default; }
.dfile__prev {
  position: relative; aspect-ratio: 3 / 3.7; background: #fff;
  border: 1px solid var(--mp-border); border-radius: var(--r-sm);
  box-shadow: var(--sh-sm); overflow: hidden;
  display: flex; flex-direction: column; padding: 26px 22px 18px;
  transition: box-shadow var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.dfile:hover .dfile__prev { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, var(--mp-border)); }
.dfile__band { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--c); }
.dfile__seal {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mp-font-serif); font-size: 13px; font-weight: 700; color: #fff;
  background: var(--c); letter-spacing: 0.02em; margin-bottom: 16px;
}
.dfile__kic { font-size: 9px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--c); margin-bottom: 7px; }
.dfile__ttl {
  font-family: var(--mp-font-serif); font-size: 16.5px; font-weight: 600; line-height: 1.22;
  color: var(--mp-primary-dark); letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.dfile__rule { width: 40px; height: 2.5px; background: var(--mp-accent); margin: 13px 0; }
.dfile__foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; font-family: var(--mp-font-mono); font-size: 10.5px; color: var(--mp-text-muted); }
.dfile__foot span:first-child { font-weight: 700; color: var(--mp-gray-700); }
.dfile__corner { position: absolute; top: 14px; right: 14px; color: color-mix(in srgb, var(--c) 55%, var(--mp-gray-300)); }
.dfile__hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--mp-brand-deep) 26%, transparent);
  opacity: 0; transition: opacity var(--t-fast);
}
.dfile:hover .dfile__hover { opacity: 1; }
.dfile__info { display: flex; flex-direction: column; gap: 6px; }
.dfile__name { font-size: 13px; font-weight: 600; color: var(--mp-gray-900); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dfile__sub { display: flex; align-items: center; gap: 8px; }
.dfile__src { font-size: 11.5px; color: var(--mp-text-muted); }
.dfile__stats { font-family: var(--mp-font-mono); font-size: 11px; color: var(--mp-text-muted); display: flex; align-items: center; gap: 6px; }
.dfile__dot { opacity: 0.5; }

/* list — basic grouped view */
.dlist { display: flex; flex-direction: column; gap: 22px; }
.dlist__group { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; }
.dlist__ghead { display: flex; align-items: center; gap: 9px; padding: 11px 16px; background: var(--mp-gray-50); border-bottom: 1px solid var(--mp-border-soft); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-gray-700); }
.dlist__gic { color: var(--mp-primary); display: flex; }
.dlist__gn { margin-left: auto; font-family: var(--mp-font-mono); font-size: 11px; font-weight: 700; color: var(--mp-text-muted); letter-spacing: 0; }
.drow { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--mp-border-soft); text-decoration: none; }
.drow:last-child { border-bottom: none; }
.drow:hover { background: var(--mp-gray-50); }
.drow__ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }
.drow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.drow__title { font-size: 13.5px; font-weight: 600; color: var(--mp-gray-900); line-height: 1.3; }
.drow__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--mp-text-muted); font-family: var(--mp-font-mono); }
.drow__dot { opacity: 0.5; }
.drow__view, .drow__dl { color: var(--mp-text-muted); flex: 0 0 auto; }
.drow:hover .drow__view, .drow:hover .drow__dl { color: var(--mp-primary); }

.docempty { text-align: center; padding: 54px 20px; color: var(--mp-text-muted); background: var(--mp-bg-card); border: 1px dashed var(--mp-border); border-radius: var(--r-md); }
.docempty p { margin-top: 10px; font-size: 13.5px; }

/* faq + resources */
.faq { display: flex; flex-direction: column; gap: 0; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; }
.faq__item { border-bottom: 1px solid var(--mp-border-soft); }
.faq__item:last-child { border-bottom: none; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: none; background: transparent; padding: 15px 18px; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--mp-gray-900); }
.faq__q:hover { background: var(--mp-gray-50); }
.faq__q .icon, .faq__q svg { color: var(--mp-text-muted); transition: transform var(--t-fast); flex: 0 0 auto; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.6; color: var(--mp-text-muted); max-width: 72ch; }
.rescard { display: flex; flex-direction: column; gap: 6px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 16px; text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.rescard:hover { border-color: var(--mp-primary-light); box-shadow: var(--sh-sm); }
.rescard__kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); display: flex; align-items: center; justify-content: space-between; }
.rescard__title { font-size: 14px; font-weight: 700; color: var(--mp-gray-900); display: flex; align-items: center; gap: 7px; }
.rescard__sub { font-size: 12px; color: var(--mp-text-muted); }

/* sidebar cards */
.scard { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-lg); padding: 18px; }
.scard__h { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mp-text-muted); padding-bottom: 11px; margin-bottom: 13px; border-bottom: 1px solid var(--mp-border-soft); display: flex; align-items: center; justify-content: space-between; }
.scard--accent { border-top: 3px solid var(--mp-accent); }
.minirate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.minirate__ag { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mp-text-muted); }
.minirate__gr { font-family: var(--mp-font-serif); font-size: 19px; font-weight: 600; color: var(--mp-primary-dark); margin-top: 3px; }
.minirate__ol { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-text-muted); margin-top: 2px; }
.anchorlist { display: flex; flex-direction: column; }
.anchorlist a { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--mp-gray-700); padding: 8px 0; border-bottom: 1px dashed var(--mp-border-soft); text-decoration: none; }
.anchorlist a:last-child { border-bottom: none; }
.anchorlist a:hover { color: var(--mp-primary); }
.anchorlist a.is-active { color: var(--mp-primary); font-weight: 700; }
.anchorlist a.is-active > span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mp-accent); margin-right: 8px; vertical-align: middle; }
.anchorlist a .ct { font-family: var(--mp-font-mono); font-size: 10.5px; color: var(--mp-text-muted); }
.sidebtns { display: flex; flex-direction: column; gap: 8px; }
.qa { display: flex; flex-direction: column; gap: 6px; }
.qa__item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 9px 10px; border: 1px solid var(--mp-border); border-radius: var(--r-md); background: #fff; text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast); }
.qa__item:hover { border-color: var(--mp-primary-light); background: var(--mp-gray-50); }
.qa__item--primary { border-color: color-mix(in srgb, var(--mp-primary) 30%, var(--mp-border)); background: color-mix(in srgb, var(--mp-primary) 5%, #fff); }
.qa__ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--mp-gray-100); color: var(--mp-gray-600); }
.qa__item--primary .qa__ic { background: var(--mp-primary); color: #fff; }
.qa__item:hover .qa__ic { color: var(--mp-primary); }
.qa__item--primary:hover .qa__ic { color: #fff; }
.qa__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qa__label { font-size: 13px; font-weight: 600; color: var(--mp-gray-900); }
.qa__sub { font-size: 11px; color: var(--mp-text-muted); }
.qa__item > svg:last-child { color: var(--mp-gray-400); flex: 0 0 auto; }
.qa__item:hover > svg:last-child { color: var(--mp-primary); }

/* data tables */
.dtbl-wrap { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; }
.dtbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dtbl th, .dtbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--mp-border-soft); }
.dtbl thead th { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-text-muted); background: var(--mp-gray-50); white-space: nowrap; }
.dtbl tbody tr:last-child td { border-bottom: none; }
.dtbl tbody tr:hover td { background: var(--mp-gray-50); }
.dtbl .num { text-align: right; font-family: var(--mp-font-mono); font-size: 12.5px; }
.dtbl .ser { font-weight: 700; color: var(--mp-primary-dark); }
.dtbl__cusip { font-family: var(--mp-font-mono); font-size: 11.5px; color: var(--mp-gray-700); }
.dtbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--mp-gray-50); border-top: 1px solid var(--mp-border-soft); font-size: 11.5px; color: var(--mp-text-muted); }

.maturity { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 20px; }
.maturity__bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.maturity__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.maturity__bar { width: 100%; max-width: 30px; background: linear-gradient(180deg, var(--mp-primary-light), var(--mp-primary)); border-radius: 2px 2px 0 0; min-height: 3px; }
.maturity__yr { font-family: var(--mp-font-mono); font-size: 10px; color: var(--mp-text-muted); }

.mixrow { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.mixrow__track { height: 22px; background: var(--mp-gray-100); border-radius: var(--r-sm); overflow: hidden; }
.mixrow__fill { height: 100%; border-radius: var(--r-sm); }
.mixrow__val { font-family: var(--mp-font-mono); font-weight: 700; color: var(--mp-gray-700); }

/* debt overview fact strip */
.fact-strip { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--mp-brand-deep); border-radius: var(--r-md); overflow: hidden; position: relative; }
.fact-strip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--mp-accent); }
.fact-strip > div { padding: 15px 18px; border-right: 1px solid rgba(255,255,255,0.08); }
.fact-strip > div:last-child { border-right: none; }
.fact-strip .lab { font-size: 9px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 7px; }
.fact-strip .v { font-family: var(--mp-font-mono); font-size: 19px; font-weight: 700; color: #fff; }

.pempty { border: 1px dashed var(--mp-border); border-radius: var(--r-md); background: var(--mp-gray-50); padding: 28px; text-align: center; color: var(--mp-text-muted); font-size: 13.5px; }

/* ---- Footer ------------------------------------------------- */
.pfooter { background: var(--mp-brand-deep); color: rgba(255,255,255,0.66); margin-top: auto; }
.pfooter__top { max-width: 1440px; margin: 0 auto; padding: 40px 28px 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pfooter__brand { display: flex; flex-direction: column; gap: 12px; }
.pfooter__wm { font-family: var(--mp-font-serif); font-size: 21px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.pfooter__wm b { color: var(--mp-accent-soft); font-weight: 600; }
.pfooter__tag { font-size: 12.5px; color: rgba(255,255,255,0.5); max-width: 300px; line-height: 1.55; }
.pfooter__col h5 { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mp-accent-soft); margin-bottom: 12px; }
.pfooter__col a { display: block; font-size: 12.5px; color: rgba(255,255,255,0.66); text-decoration: none; padding: 4px 0; }
.pfooter__col a:hover { color: #fff; }
.pfooter__bottom { max-width: 1440px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,0.45); }
.pfooter__seal { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mp-font-mono); letter-spacing: 0.04em; }
.pfooter__inline { background: none; border: none; color: rgba(255,255,255,0.45); font: inherit; text-decoration: underline; padding: 0; cursor: pointer; }
.pfooter__inline:hover { color: #fff; }

/* ============================================================
   SEARCH / DIRECTORY
   ============================================================ */
.dirhero { background: var(--mp-bg-card); border-bottom: 1px solid var(--mp-border); }
.dirhero__row { max-width: 1440px; margin: 0 auto; padding: 38px 28px 30px; }
.dirhero h1 { font-family: var(--mp-font-serif); font-size: 40px; font-weight: 600; color: var(--mp-primary-dark); letter-spacing: -0.015em; line-height: 1.04; margin: 8px 0 8px; }
.dirhero h1 em { font-style: italic; color: var(--mp-accent-600); }
.dirhero p { font-size: 15px; color: var(--mp-text-muted); max-width: 64ch; }
.dirsearch { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.dirsearch__field { position: relative; flex: 1; min-width: 280px; }
.dirsearch__field input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--mp-border); border-radius: var(--r-md); font-size: 15px; background: #fff; }
.dirsearch__field .icon { position: absolute; left: 14px; top: 14px; color: var(--mp-text-muted); }
.dirsearch select { height: 46px; padding: 0 14px; border: 1px solid var(--mp-border); border-radius: var(--r-md); font-size: 14px; background: #fff; font-weight: 600; color: var(--mp-gray-700); }
.dirstats { display: flex; gap: 26px; margin-top: 18px; }
.dirstat { display: flex; flex-direction: column; }
.dirstat__v { font-family: var(--mp-font-mono); font-size: 17px; font-weight: 700; color: var(--mp-primary-dark); }
.dirstat__k { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-text-muted); }
.dirbody { max-width: 1440px; margin: 0 auto; padding: 24px 28px 60px; }
.dirtoolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dirtoolbar__count { font-size: 13px; color: var(--mp-text-muted); }
.dirtoolbar__count b { color: var(--mp-gray-900); font-family: var(--mp-font-mono); }
.dirtoolbar__spacer { flex: 1; }
.dirsort { display: inline-flex; align-items: center; gap: 8px; }
.dirsort span { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-text-muted); }
.dirsort select { height: 32px; padding: 0 10px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--mp-gray-700); background: #fff; }
.dirgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.issrcard { display: flex; flex-direction: column; gap: 0; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 0; text-decoration: none; overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.issrcard:hover { border-color: var(--mp-primary-light); box-shadow: var(--sh-md); transform: translateY(-2px); }
.issrcard__top { display: flex; align-items: center; gap: 13px; padding: 16px 16px 13px; }
.issrcard__seal { width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--mp-primary-light), var(--mp-primary-dark)); color: var(--mp-accent-soft); font-family: var(--mp-font-serif); font-weight: 700; font-size: 15px; }
.issrcard__id { min-width: 0; flex: 1; }
.issrcard__name { font-family: var(--mp-font-serif); font-size: 16px; font-weight: 600; color: var(--mp-primary-dark); line-height: 1.2; }
.issrcard__type { font-size: 11.5px; color: var(--mp-text-muted); margin-top: 2px; }
.issrcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--mp-border-soft); }
.issrcard__stat { padding: 11px 14px; border-right: 1px solid var(--mp-border-soft); }
.issrcard__stat:last-child { border-right: none; }
.issrcard__sk { font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-text-muted); }
.issrcard__sv { font-family: var(--mp-font-mono); font-size: 13px; font-weight: 700; color: var(--mp-gray-900); margin-top: 2px; }

/* ============================================================
   CLAIM
   ============================================================ */
.claimwrap { max-width: 760px; margin: 0 auto; padding: 40px 28px 60px; }
.claimhead { display: flex; align-items: center; gap: 16px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 20px; }
.claimhead__seal { width: 50px; height: 50px; flex: 0 0 50px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--mp-primary-light), var(--mp-primary-dark)); color: var(--mp-accent-soft); font-family: var(--mp-font-serif); font-weight: 700; font-size: 17px; }
.stepind { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.stepind__item { display: inline-flex; align-items: center; gap: 8px; }
.stepind__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mp-border); }
.stepind__dot.is-active { background: var(--mp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mp-accent) 22%, transparent); }
.stepind__dot.is-done { background: var(--mp-primary); }
.stepind__lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); font-family: var(--mp-font-mono); }
.stepind__lbl.is-active { color: var(--mp-primary-dark); }
.stepind__line { flex: 1; height: 1px; background: var(--mp-border); }
.claimcard { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-lg); padding: 28px 30px; }
.claimcard h1 { font-family: var(--mp-font-serif); font-size: 28px; font-weight: 600; color: var(--mp-primary-dark); letter-spacing: -0.015em; line-height: 1.14; margin-bottom: 8px; }
.claimcard h1 em { font-style: italic; color: var(--mp-accent-600); font-weight: 400; }
.claimcard > p.lead { font-size: 14.5px; color: var(--mp-text-muted); margin-bottom: 22px; line-height: 1.55; max-width: 58ch; }
.methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.method { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; padding: 16px 18px; border: 1.5px solid var(--mp-border); border-radius: var(--r-md); background: #fff; transition: border-color var(--t-fast), background var(--t-fast); }
.method:hover { border-color: var(--mp-primary-light); background: var(--mp-gray-50); }
.method.is-sel { border-color: var(--mp-primary); background: color-mix(in srgb, var(--mp-primary) 5%, #fff); }
.method__ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--mp-primary) 9%, #fff); color: var(--mp-primary); }
.method__main { flex: 1; }
.method__title { font-size: 14.5px; font-weight: 700; color: var(--mp-gray-900); display: flex; align-items: center; gap: 8px; }
.method__sub { font-size: 12.5px; color: var(--mp-text-muted); margin-top: 2px; }
.method__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--mp-border); flex: 0 0 20px; display: flex; align-items: center; justify-content: center; }
.method.is-sel .method__radio { border-color: var(--mp-primary); }
.method.is-sel .method__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mp-primary); }
.matchbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e6f4ed; color: #176b52; }
.codeinputs { display: flex; gap: 10px; justify-content: center; margin: 8px 0 22px; }
.codeinputs input { width: 52px; height: 60px; text-align: center; font-family: var(--mp-font-mono); font-size: 24px; font-weight: 700; border: 1.5px solid var(--mp-border); border-radius: var(--r-md); color: var(--mp-primary-dark); }
.codeinputs input:focus { border-color: var(--mp-primary); outline: none; }
.claimnav { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.verifiedseal { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--mp-primary) 10%, #fff); border: 2px solid var(--mp-primary); }

/* ============================================================
   CUSIP LOOKUP
   ============================================================ */
.lookwrap { max-width: 880px; margin: 0 auto; padding: 40px 28px 60px; }
.lookhero { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-lg); padding: 28px 30px; margin-bottom: 22px; }
.lookhero h1 { font-family: var(--mp-font-serif); font-size: 30px; font-weight: 600; color: var(--mp-primary-dark); letter-spacing: -0.015em; margin: 6px 0 8px; }
.lookhero p { font-size: 14px; color: var(--mp-text-muted); line-height: 1.55; max-width: 64ch; margin-bottom: 20px; }
.lookform label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); margin-bottom: 7px; }
.lookform__row { display: flex; gap: 10px; }
.lookform__row input { flex: 1; height: 50px; padding: 0 16px; border: 1px solid var(--mp-border); border-radius: var(--r-md); font-family: var(--mp-font-mono); font-size: 18px; letter-spacing: 0.1em; color: var(--mp-primary-dark); background: #fff; }
.lookform__row input:focus { border-color: var(--mp-primary); outline: none; }
.lookchips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lookchip { font-family: var(--mp-font-mono); font-size: 11.5px; font-weight: 600; padding: 5px 11px; border: 1px solid var(--mp-border); border-radius: 999px; background: var(--mp-gray-50); color: var(--mp-gray-700); }
.lookchip:hover { border-color: var(--mp-primary-light); color: var(--mp-primary); }
.looksummary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.lookmetric { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 14px 16px; }
.lookmetric span { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); }
.lookmetric strong { display: block; font-family: var(--mp-font-serif); font-size: 26px; font-weight: 600; color: var(--mp-primary-dark); margin-top: 4px; }
.looksec { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.looksec__cusip { font-family: var(--mp-font-mono); font-size: 18px; font-weight: 700; color: var(--mp-primary-dark); }

/* Tweaks segmented */
.seg2 { display: inline-flex; border: 1px solid var(--mp-border); border-radius: var(--r-sm); overflow: hidden; width: 100%; }
.seg2 button { flex: 1; border: none; background: #fff; color: var(--mp-text-muted); font-size: 11.5px; font-weight: 700; padding: 6px 4px; border-right: 1px solid var(--mp-border); }
.seg2 button:last-child { border-right: none; }
.seg2 button.is-on { background: var(--mp-primary); color: #fff; }

/* ============================================================
   AI launcher, document viewer, AI assistant, modals
   ============================================================ */
.ailaunch { position: fixed; right: 16px; bottom: 72px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: none; border-radius: 999px; background: var(--mp-primary); color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: var(--sh-lg); }
.ailaunch:hover { background: var(--mp-primary-dark); }
.ailaunch svg { color: var(--mp-accent-soft); }

.dv { width: min(1060px, 96vw); height: 100%; background: var(--mp-gray-100); display: flex; flex-direction: column; box-shadow: var(--sh-lg); animation: slidein 200ms ease; }
.dv__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--mp-bg-card); border-bottom: 1px solid var(--mp-border); }
.dv__ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--mp-primary) 9%, #fff); color: var(--mp-primary); }
.dv__id { flex: 1; min-width: 0; }
.dv__title { font-weight: 700; font-size: 14px; color: var(--mp-gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv__meta { font-size: 12px; color: var(--mp-text-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.dv__tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dv__zoom { font-family: var(--mp-font-mono); font-size: 11.5px; color: var(--mp-text-muted); min-width: 36px; text-align: center; }
.dv__body { flex: 1; display: grid; grid-template-columns: 188px 1fr; min-height: 0; }
.dv__rail { background: var(--mp-bg-card); border-right: 1px solid var(--mp-border); overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.dv__thumb { display: flex; gap: 9px; align-items: center; padding: 9px 10px; border: 1px solid var(--mp-border-soft); border-radius: var(--r-sm); background: #fff; text-align: left; }
.dv__thumb:hover { border-color: var(--mp-primary-light); }
.dv__thumb.is-active { border-color: var(--mp-primary); background: color-mix(in srgb, var(--mp-primary) 6%, #fff); }
.dv__thumb-pg { width: 22px; height: 28px; flex: 0 0 22px; border: 1px solid var(--mp-border); border-radius: 2px; background: var(--mp-gray-50); display: flex; align-items: center; justify-content: center; font-family: var(--mp-font-mono); font-size: 11px; font-weight: 700; color: var(--mp-text-muted); }
.dv__thumb-lbl { font-size: 11.5px; font-weight: 600; color: var(--mp-gray-700); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dv__canvas { overflow-y: auto; padding: 24px; }
.dv__pages { display: flex; flex-direction: column; align-items: center; gap: 24px; zoom: var(--z, 1); }

.docpage { width: 624px; min-height: 808px; background: #fff; border: 1px solid var(--mp-border); box-shadow: var(--sh-md); padding: 54px 56px; display: flex; flex-direction: column; }
.docpage__cover { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.docpage__seal { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--mp-primary-light), var(--mp-primary-dark)); color: var(--mp-accent-soft); font-family: var(--mp-font-serif); font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.docpage__cover-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mp-text-muted); }
.docpage__cover-title { font-family: var(--mp-font-serif); font-size: 30px; font-weight: 600; color: var(--mp-primary-dark); line-height: 1.15; letter-spacing: -0.01em; max-width: 24ch; }
.docpage__cover-sub { font-size: 15px; color: var(--mp-gray-700); font-weight: 600; max-width: 34ch; }
.docpage__cover-rule { width: 84px; height: 3px; background: var(--mp-accent); margin: 14px 0; }
.docpage__cover-tag { font-size: 12px; color: var(--mp-text-muted); }
.docpage__sheet { flex: 1; }
.docpage__h { font-family: var(--mp-font-serif); font-size: 20px; font-weight: 600; color: var(--mp-primary-dark); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--mp-border); }
.docpage__p { font-size: 13.5px; line-height: 1.75; color: var(--mp-gray-700); margin-bottom: 13px; }
.docpage__tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.docpage__tbl th, .docpage__tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--mp-border-soft); font-size: 12.5px; }
.docpage__tbl thead th { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-text-muted); }
.docpage__tbl .num { text-align: right; font-family: var(--mp-font-mono); }
.docpage__bar { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; margin-bottom: 11px; font-size: 12.5px; }
.docpage__bar-track { height: 20px; background: var(--mp-gray-100); border-radius: var(--r-sm); overflow: hidden; }
.docpage__bar-track i { display: block; height: 100%; background: var(--mp-primary); border-radius: var(--r-sm); }
.docpage__bar-val { font-family: var(--mp-font-mono); font-weight: 700; color: var(--mp-gray-700); }
.docpage__foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--mp-border); font-family: var(--mp-font-mono); font-size: 10px; color: var(--mp-text-muted); text-align: center; }

.ai { position: fixed; top: 0; right: 0; height: 100%; width: min(412px, 96vw); background: var(--mp-bg-page); box-shadow: var(--sh-lg); z-index: 95; display: flex; flex-direction: column; animation: slidein 200ms ease; border-left: 1px solid var(--mp-border); }
.ai__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: var(--mp-bg-sidebar); color: #fff; }
.ai__badge { width: 32px; height: 32px; flex: 0 0 32px; border-radius: var(--r-sm); background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--mp-accent-soft); }
.ai__title { font-weight: 700; font-size: 14px; }
.ai__sub { font-size: 11.5px; color: rgba(255,255,255,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai__gate { padding: 26px 22px; overflow-y: auto; }
.ai__gate-ic { width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--mp-primary) 10%, #fff); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ai__gate h3 { font-family: var(--mp-font-serif); font-size: 21px; color: var(--mp-primary-dark); margin-bottom: 9px; }
.ai__gate p { font-size: 13.5px; color: var(--mp-gray-700); line-height: 1.6; margin-bottom: 15px; }
.ai__gate-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.ai__gate-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--mp-gray-700); }
.ai__gate-list li svg { color: var(--mp-success); flex: 0 0 auto; }
.ai__gate-terms { margin-top: 14px; width: 100%; background: none; border: none; color: var(--mp-primary); font-weight: 600; font-size: 12.5px; text-decoration: underline; }
.ai__thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ai__msg { display: flex; gap: 8px; }
.ai__msg--user { justify-content: flex-end; }
.ai__msg-ic { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--mp-bg-sidebar); color: var(--mp-accent-soft); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.ai__bubble { max-width: 85%; }
.ai__msg--ai .ai__bubble { background: #fff; border: 1px solid var(--mp-border); border-radius: 3px 12px 12px 12px; padding: 11px 13px; }
.ai__msg--user .ai__bubble { background: var(--mp-primary); color: #fff; border-radius: 12px 3px 12px 12px; padding: 9px 13px; }
.ai__text { font-size: 13.5px; line-height: 1.6; }
.ai__msg--ai .ai__text { color: var(--mp-gray-800); }
.ai__cites { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--mp-border-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.ai__cites-lbl { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); width: 100%; }
.ai__cite { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 8px; border: 1px solid var(--mp-border); border-radius: 999px; background: var(--mp-gray-50); color: var(--mp-gray-700); }
.ai__cite:hover { border-color: var(--mp-primary-light); color: var(--mp-primary); }
.ai__cite-pg { font-family: var(--mp-font-mono); font-size: 10px; color: var(--mp-text-muted); }
.ai__typing { display: flex; gap: 4px; padding: 4px 2px; }
.ai__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mp-gray-400); animation: aiblink 1.2s infinite; }
.ai__typing i:nth-child(2) { animation-delay: 0.2s; }
.ai__typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiblink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.ai__suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--mp-border-soft); }
.ai__chip { font-size: 11.5px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--mp-border); border-radius: 999px; background: #fff; color: var(--mp-gray-700); text-align: left; }
.ai__chip:hover { border-color: var(--mp-primary-light); color: var(--mp-primary); }
.ai__input { display: flex; gap: 8px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--mp-border); }
.ai__input input { flex: 1; height: 38px; padding: 0 14px; border: 1px solid var(--mp-border); border-radius: 999px; font-size: 13px; }
.ai__disclaimer { font-size: 10.5px; color: var(--mp-text-muted); text-align: center; padding: 8px 14px; background: #fff; }
.ai__disclaimer button { background: none; border: none; color: var(--mp-primary); font: inherit; text-decoration: underline; padding: 0; }

.modal-scrim { position: fixed; inset: 0; background: rgba(12,30,24,0.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade var(--t-fast); }
.tmodal { width: min(680px, 100%); max-height: 88vh; background: var(--mp-bg-card); border-radius: var(--r-lg); box-shadow: var(--sh-lg); display: flex; flex-direction: column; overflow: hidden; }
.tmodal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--mp-border); }
.tmodal__body { padding: 20px; overflow-y: auto; }
.tmodal__lede { font-size: 14px; color: var(--mp-text-muted); line-height: 1.6; margin-bottom: 14px; }
.tsection { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--mp-border-soft); }
.tsection:last-child { border-bottom: none; }
.tsection.is-focus { background: color-mix(in srgb, var(--mp-accent) 9%, #fff); border-radius: var(--r-md); padding: 16px; }
.tsection__ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--mp-primary) 9%, #fff); color: var(--mp-primary); display: flex; align-items: center; justify-content: center; }
.tsection h4 { font-size: 14.5px; color: var(--mp-gray-900); margin-bottom: 5px; }
.tsection p { font-size: 13px; color: var(--mp-text-muted); line-height: 1.65; }
.tmodal__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--mp-border); font-size: 11.5px; color: var(--mp-text-muted); }
.fmodal { width: min(460px, 100%); background: var(--mp-bg-card); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 22px; }
.fmodal__head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.fmodal__ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--mp-accent) 16%, #fff); color: var(--mp-accent-600); display: flex; align-items: center; justify-content: center; }
.fmodal__head h3 { font-family: var(--mp-font-serif); font-size: 19px; color: var(--mp-primary-dark); }
.fmodal__head p { font-size: 12.5px; color: var(--mp-text-muted); margin-top: 3px; line-height: 1.5; }
.fmodal__lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-text-muted); margin: 14px 0 8px; }
.fmodal__prefs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.fpref { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--mp-border); border-radius: var(--r-md); background: #fff; text-align: left; }
.fpref:hover { border-color: var(--mp-primary-light); }
.fpref.is-on { border-color: var(--mp-primary); background: color-mix(in srgb, var(--mp-primary) 5%, #fff); }
.fpref__ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: var(--r-sm); background: var(--mp-gray-100); color: var(--mp-gray-600); display: flex; align-items: center; justify-content: center; }
.fpref.is-on .fpref__ic { background: color-mix(in srgb, var(--mp-primary) 12%, #fff); color: var(--mp-primary); }
.fpref__main { flex: 1; }
.fpref__title { font-size: 13.5px; font-weight: 600; color: var(--mp-gray-900); display: block; }
.fpref__sub { font-size: 11.5px; color: var(--mp-text-muted); }
.fpref__check { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 5px; border: 1.5px solid var(--mp-border); display: flex; align-items: center; justify-content: center; color: #fff; }
.fpref__check.is-on { background: var(--mp-primary); border-color: var(--mp-primary); }
.fmodal__fine { font-size: 11px; color: var(--mp-text-muted); margin-top: 12px; text-align: center; line-height: 1.5; }
.fmodal__fine button { background: none; border: none; color: var(--mp-primary); font: inherit; text-decoration: underline; padding: 0; }

/* ============================================================
   Financials / Credit modules, media hero, module manager
   ============================================================ */
.srcchip { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--mp-primary) 9%, #fff); color: var(--mp-primary); border: 1px solid color-mix(in srgb, var(--mp-primary) 22%, #fff); white-space: nowrap; }
.stmt-switch { display: inline-flex; border: 1px solid var(--mp-border); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 14px; }
.stmt-tab { border: none; background: #fff; color: var(--mp-text-muted); font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-right: 1px solid var(--mp-border); }
.stmt-tab:last-child { border-right: none; }
.stmt-tab.is-on { background: var(--mp-primary); color: #fff; }
.fin-tbl td:first-child { width: 44%; }
.fin-tbl__note { font-weight: 500; color: var(--mp-text-muted); font-size: 11px; }
.fin-tbl__head td { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); background: var(--mp-gray-50); padding-top: 13px; padding-bottom: 7px; }
.fin-tbl__total td { font-weight: 700; color: var(--mp-gray-900); border-top: 1.5px solid var(--mp-border); }
.fin-tbl__emph td { background: color-mix(in srgb, var(--mp-primary) 6%, #fff); color: var(--mp-primary-dark); }
.fin-tbl__emph td.num { font-weight: 800; }

/* YoY change column */
.fin-tbl__dcol { border-left: 1px solid var(--mp-border-soft); width: 126px; }
.fin-tbl thead th.fin-tbl__dcol { color: var(--mp-gray-700); }
.findelta { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.25; }
.findelta__main { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--mp-gray-700); }
.findelta__pct { font-style: normal; font-size: 10.5px; color: var(--mp-text-muted); letter-spacing: 0.01em; }
.findelta__tri { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.findelta__tri[data-dir="up"] { border-bottom: 5px solid var(--mp-gray-400); }
.findelta__tri[data-dir="down"] { border-top: 5px solid var(--mp-gray-400); }
.findelta__tri[data-dir="flat"] { display: none; }
.findelta--up .findelta__main { color: var(--mp-success); }
.findelta--up .findelta__pct { color: color-mix(in srgb, var(--mp-success) 80%, var(--mp-text-muted)); }
.findelta--up .findelta__tri[data-dir="up"] { border-bottom-color: var(--mp-success); }
.findelta--down .findelta__main { color: var(--mp-danger); }
.findelta--down .findelta__pct { color: color-mix(in srgb, var(--mp-danger) 75%, var(--mp-text-muted)); }
.findelta--down .findelta__tri[data-dir="down"] { border-top-color: var(--mp-danger); }
.findelta--na { color: var(--mp-gray-300); font-family: var(--mp-font-mono); }
.fin-tbl__emph .findelta__main { font-weight: 800; }
.flow { display: flex; flex-direction: column; }
.flowstep { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.flowstep__rail { display: flex; flex-direction: column; align-items: center; }
.flowstep__dot { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; font-family: var(--mp-font-mono); font-size: 12px; font-weight: 700; background: #fff; border: 2px solid var(--mp-border); color: var(--mp-text-muted); }
.flowstep__line { width: 2px; flex: 1; background: var(--mp-border); min-height: 16px; }
.flowstep__body { padding-bottom: 16px; padding-top: 3px; }
.flowstep__label { font-size: 14px; font-weight: 700; color: var(--mp-gray-900); display: flex; align-items: center; gap: 9px; }
.flowstep__desc { font-size: 12.5px; color: var(--mp-text-muted); margin-top: 2px; line-height: 1.5; }
.flowtag { font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-accent-600); background: color-mix(in srgb, var(--mp-accent) 16%, #fff); padding: 2px 7px; border-radius: 999px; }
.flowstep--in .flowstep__dot { border-color: var(--mp-primary); color: var(--mp-primary); background: color-mix(in srgb, var(--mp-primary) 9%, #fff); }
.flowstep--debt .flowstep__dot { border-color: var(--mp-primary); background: var(--mp-primary); color: #fff; }
.flowstep--reserve .flowstep__dot { border-color: var(--mp-accent-600); background: color-mix(in srgb, var(--mp-accent) 18%, #fff); color: var(--mp-accent-600); }
.flowstep--surplus .flowstep__dot { border-color: var(--mp-success); background: color-mix(in srgb, var(--mp-success) 12%, #fff); color: var(--mp-success); }
.flow-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--mp-text-muted); margin-top: 4px; line-height: 1.5; }
.flow-note svg { color: var(--mp-accent-600); flex: 0 0 auto; margin-top: 1px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 16px; }
.metric__label { font-size: 11px; font-weight: 700; color: var(--mp-text-muted); letter-spacing: 0.02em; }
.metric__value { font-family: var(--mp-font-serif); font-size: 28px; font-weight: 600; color: var(--mp-primary-dark); margin: 4px 0 6px; }
.metric__sub { font-size: 11.5px; color: var(--mp-text-muted); display: flex; align-items: center; gap: 6px; }
.metric__dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.taxbar { display: inline-block; width: 50px; height: 6px; border-radius: 999px; background: var(--mp-gray-100); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.taxbar i { display: block; height: 100%; background: var(--mp-primary); border-radius: 999px; }
.peerbar { display: flex; align-items: center; gap: 10px; }
.peerbar__track { flex: 1; min-width: 60px; height: 8px; border-radius: 999px; background: var(--mp-gray-100); overflow: hidden; }
.peerbar__track i { display: block; height: 100%; border-radius: 999px; }
.peerbar b { font-family: var(--mp-font-mono); font-size: 12px; font-weight: 700; color: var(--mp-gray-900); white-space: nowrap; }
.territory { display: grid; grid-template-columns: minmax(0,1fr) 282px; gap: 14px; align-items: start; }
.territory__map { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 10px; min-height: 360px; display: flex; }
.territory__side { display: flex; flex-direction: column; gap: 12px; }
.territory__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--mp-border-soft); border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; }
.territory__stat { background: var(--mp-bg-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.territory__stat .k { font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-text-muted); }
.territory__stat .v { font-family: var(--mp-font-mono); font-size: 15px; font-weight: 700; color: var(--mp-primary-dark); }
.territory__zones { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 4px 14px; }
.territory__zone { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--mp-border-soft); font-size: 12.5px; }
.territory__zone:last-child { border-bottom: none; }
.territory__zone-name { color: var(--mp-gray-700); }
.territory__zone-v { color: var(--mp-gray-900); font-weight: 600; }
.agchart { width: 100%; flex: 1; }
.agchart--map { min-height: 360px; }
.agchart--trend { min-height: 250px; }
.chartfb { width: 100%; min-height: 240px; border: 1px dashed var(--mp-border); border-radius: var(--r-md); background: var(--mp-gray-50); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--mp-text-muted); }
.chartfb__ic { width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--mp-primary) 9%, #fff); color: var(--mp-primary); display: flex; align-items: center; justify-content: center; }
.chartfb strong { color: var(--mp-gray-700); font-size: 14px; }
.chartfb small { font-size: 12px; max-width: 38ch; line-height: 1.5; }

.mast--media { background: var(--mp-brand-deep); border-bottom: 1px solid #06251b; }
.masthero { position: relative; min-height: 300px; display: flex; flex-direction: column; }
.masthero__media { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.masthero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,51,38,0.32) 0%, rgba(10,51,38,0.18) 38%, rgba(10,51,38,0.93) 100%); pointer-events: none; }
.masthero__top { position: relative; z-index: 2; max-width: 1440px; width: 100%; margin: 0 auto; padding: 18px 28px 0; display: flex; align-items: center; justify-content: space-between; }
.masthero__badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.88); background: rgba(0,0,0,0.28); padding: 5px 11px; border-radius: 999px; }
.masthero__video { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); padding: 7px 14px; border-radius: 999px; }
.masthero__video:hover { background: rgba(255,255,255,0.24); }
.masthero__play { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.masthero__play::before { content: ""; border-left: 7px solid var(--mp-primary-dark); border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 3px; }
.masthero__inner { position: relative; z-index: 2; margin-top: auto; max-width: 1440px; width: 100%; margin-left: auto; margin-right: auto; padding: 0 28px 24px; display: flex; align-items: flex-end; gap: 18px; }
.mast__seal--lg { width: 64px; height: 64px; flex: 0 0 64px; font-size: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 0 0 3px rgba(255,255,255,0.12); }
.masthero__id { flex: 1; min-width: 0; }
.masthero__name { font-family: var(--mp-font-serif); font-size: 36px; font-weight: 600; color: #fff; line-height: 1.04; letter-spacing: -0.015em; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.masthero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 9px; font-size: 12.5px; color: rgba(255,255,255,0.84); font-weight: 500; }
.masthero__meta b { color: #fff; font-weight: 700; }
.masthero__meta .mast__dot { color: rgba(255,255,255,0.45); }
.masthero__actions { display: flex; gap: 8px; flex-shrink: 0; }
.masthero__actions .btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); }
.masthero__actions .btn--ghost:hover { background: rgba(255,255,255,0.22); }

.tweaks__body { max-height: 76vh; overflow-y: auto; }
.modlist { display: flex; flex-direction: column; gap: 5px; }
.modrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); background: #fff; text-align: left; }
.modrow.is-on { border-color: color-mix(in srgb, var(--mp-primary) 35%, var(--mp-border)); }
.modrow__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.modrow__label { font-size: 12px; font-weight: 600; color: var(--mp-gray-800); }
.modrow__src { font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.modrow__src--emma { color: var(--mp-success); }
.modrow__src--issuer { color: var(--mp-text-muted); }
.modrow__sw { width: 30px; height: 18px; border-radius: 999px; background: var(--mp-gray-300); position: relative; flex: 0 0 30px; transition: background var(--t-fast); }
.modrow__sw i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left var(--t-fast); }
.modrow__sw.is-on { background: var(--mp-primary); }
.modrow__sw.is-on i { left: 14px; }
.modlist__note { display: block; margin-top: 8px; font-size: 10px; color: var(--mp-text-muted); line-height: 1.45; }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 1080px) {
  .pbody { grid-template-columns: 1fr; }
  .pcol-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .pcol-side > * { flex: 1; min-width: 240px; }
  .cgrid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pfooter__top { grid-template-columns: 1fr 1fr; }
  .looksummary { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .territory { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap, .util__row, .mast__row, .tabbar__row, .pbody, .dirhero__row, .dirbody { padding-left: 16px; padding-right: 16px; }
  .util__tag, .util__links .util__link { display: none; }
  .util__links .util__claim { display: inline-flex; }
  .mast__row { flex-wrap: wrap; }
  .mast__name { font-size: 26px; }
  .mast__actions { width: 100%; }
  .ratingstrip { flex-wrap: wrap; }
  .ratingstrip__cell { flex: 1 1 40%; }
  .cgrid--2, .cgrid--3, .cgrid--4, .team { grid-template-columns: 1fr; }
  .tabbar__search { display: none; }
  .tabs2 { overflow-x: auto; }
  .pfooter__top { grid-template-columns: 1fr; }
  .looksummary { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .masthero__name { font-size: 27px; }
  .masthero__actions { display: none; }
}

/* ============================================================
   LIVE EDIT MODE + HEADSHOT UPLOADER
   ============================================================ */

/* ---- Admin edit bar ---- */
.editbar { position: sticky; top: 0; z-index: 80; background: var(--mp-brand-deep); color: #fff; border-bottom: 1px solid #06251b; box-shadow: 0 2px 12px rgba(10,51,38,0.28); }
.editbar.is-preview { background: var(--mp-primary-dark); }
.editbar__row { max-width: 1440px; margin: 0 auto; padding: 0 28px; height: 46px; display: flex; align-items: center; gap: 14px; }
.editbar__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.editbar__status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,0.72); padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.14); }
.editbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mp-accent) 30%, transparent); }
.editbar__spacer { flex: 1; }
.editbar__btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.editbar__btn:hover { background: rgba(255,255,255,0.16); }
.editbar__btn--primary { background: var(--mp-accent); border-color: var(--mp-accent); color: #1a1304; }
.editbar__btn--primary:hover { background: var(--mp-accent-soft); border-color: var(--mp-accent-soft); }
.editbar__btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }
.editbar__btn--ghost { background: transparent; border-color: transparent; }
.editbar__btn--ghost:hover { background: rgba(255,255,255,0.12); }
.is-editing .tabbar { top: 46px; }
.is-editing .pcol-side { top: 120px; }

/* ---- Inline-editable affordance ---- */
.editable { border-radius: 4px; outline: 1px dashed transparent; outline-offset: 3px; transition: outline-color 0.12s, background 0.12s; cursor: text; }
.editable:hover { outline-color: color-mix(in srgb, var(--mp-accent) 70%, transparent); background: color-mix(in srgb, var(--mp-accent) 9%, transparent); }
.editable:focus { outline: 2px solid var(--mp-primary); outline-offset: 3px; background: #fff; }
.editable:empty::before { content: attr(data-ph); color: var(--mp-gray-400); font-style: italic; }
.letter__text.editable { white-space: pre-wrap; min-height: 80px; }

/* ---- Edit zone (hover pencil chip) ---- */
.ezone { position: relative; }
.ezone__pen { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-accent-600); background: color-mix(in srgb, var(--mp-accent) 15%, #fff); border: 1px solid color-mix(in srgb, var(--mp-accent) 42%, #fff); padding: 3px 9px; border-radius: 999px; opacity: 0; transition: opacity 0.12s; pointer-events: none; z-index: 5; }
.is-editing .ezone.is-ez:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--mp-accent) 38%, transparent); }
.is-editing .ezone.is-ez:hover .ezone__pen { opacity: 1; }

/* ---- Headshot uploader ---- */
.hsup { position: relative; flex: 0 0 auto; border-radius: 50%; }
.hsup--rect { border-radius: 0; }
.hsup image-slot { display: block; border-radius: inherit; }
.hsup image-slot::part(frame) { box-shadow: inset 0 0 0 1px var(--mp-border); }
.hsup.is-edit image-slot::part(ring) { border-color: var(--mp-accent); border-width: 2px; }
.hsup.is-edit image-slot::part(frame) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mp-accent) 55%, var(--mp-border)); }
.hsup__badge { position: absolute; right: 1px; bottom: 1px; width: 27px; height: 27px; border-radius: 50%; background: var(--mp-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(10,51,38,0.35), 0 0 0 2px #fff; pointer-events: none; z-index: 3; }
.hsup--rect .hsup__badge { right: 8px; bottom: 8px; }

/* ---- Lead spotlight: PORTRAIT ---- */
.teamlead--portrait { gap: 24px; }
.teamlead--portrait .hsup { width: 132px; height: 132px; }

/* ---- Lead spotlight: COVER ---- */
.teamlead--cover { display: block; padding: 0; overflow: hidden; border-top: none; text-align: center; }
.teamlead__cover { height: 92px; background: var(--mp-brand-deep); position: relative; }
.teamlead__cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mp-accent); }
.teamlead--cover .teamlead__portrait { width: 118px; margin: -59px auto 0; position: relative; z-index: 1; }
.teamlead--cover .hsup { width: 118px; height: 118px; box-shadow: 0 0 0 4px #fff; border-radius: 50%; }
.teamlead--cover .teamlead__body { padding: 12px 28px 26px; }
.teamlead--cover .teamlead__name { justify-content: center; }
.teamlead--cover .teamlead__quote { margin-left: auto; margin-right: auto; }
.teamlead--cover .teamlead__actions { justify-content: center; }

/* ---- Lead spotlight: BLEED ---- */
.teamlead--bleed { grid-template-columns: 208px 1fr; gap: 0; padding: 0; overflow: hidden; align-items: stretch; }
.teamlead__bleed { position: relative; min-height: 232px; background: var(--mp-gray-100); }
.teamlead--bleed .hsup { width: 100%; height: 100%; border-radius: 0; }
.teamlead--bleed .hsup image-slot::part(frame) { box-shadow: none; }
.teamlead--bleed .teamlead__body { padding: 24px 26px; align-self: center; }

/* ---- Team member editing ---- */
.tmember__edit { display: flex; flex-direction: column; gap: 1px; margin-top: 5px; }
.tmember__field { font-size: 11.5px; color: var(--mp-text-muted); font-family: var(--mp-font-mono); }
.tmember__rm { width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); background: #fff; color: var(--mp-gray-500); display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; }
.tmember__rm:hover { color: var(--mp-danger); border-color: color-mix(in srgb, var(--mp-danger) 40%, var(--mp-border)); background: color-mix(in srgb, var(--mp-danger) 6%, #fff); }
.addteam { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border: 1.5px dashed var(--mp-border); border-radius: var(--r-md); background: var(--mp-gray-50); color: var(--mp-primary); font-size: 13px; font-weight: 700; }
.addteam:hover { border-color: var(--mp-primary-light); background: #fff; color: var(--mp-primary-dark); }

/* ---- Publish toast ---- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: var(--r-md); background: var(--mp-primary-dark); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--sh-lg); animation: toastin 0.22s ease; }
.toast svg { color: var(--mp-accent-soft); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 720px) {
  .editbar__status { display: none; }
  .editbar__btn span, .editbar__row { gap: 8px; }
  .teamlead--bleed { grid-template-columns: 1fr; }
  .teamlead--bleed .teamlead__bleed { min-height: 200px; }
}

/* ============================================================
   DEBT — Outstanding Securities (tree grid / credit cards),
   visual⇄detail hero toggle, credit mix + maturity profile.
   ============================================================ */

/* --- Mode bar (visual ⇄ detail) --- */
.debt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--mp-border); }
.debt-head__lead h2 { font-family: var(--mp-font-serif); font-size: 27px; font-weight: 600; color: var(--mp-primary-dark); letter-spacing: -0.012em; line-height: 1.05; }
.debt-head__sub { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-text-muted); font-family: var(--mp-font-mono); }
.debt-mode { display: inline-flex; border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; background: #fff; }
.debt-mode button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: none; background: #fff; color: var(--mp-text-muted); font-size: 12.5px; font-weight: 700; font-family: var(--mp-font-sans); border-right: 1px solid var(--mp-border); transition: background var(--t-fast), color var(--t-fast); }
.debt-mode button:last-child { border-right: none; }
.debt-mode button:hover { color: var(--mp-primary); background: var(--mp-gray-50); }
.debt-mode button.is-on { background: var(--mp-primary); color: #fff; }
.debt-mode button.is-on:hover { background: var(--mp-primary); }

.fact-strip--6 { grid-template-columns: repeat(6, 1fr); }
.fact-strip { margin-bottom: 8px; }

/* --- Tax tag --- */
.taxtag { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: #e6f4ed; color: var(--mp-primary-dark); border: 1px solid color-mix(in srgb, var(--mp-primary) 22%, #fff); }
.taxtag--taxable { background: var(--mp-gray-100); color: var(--mp-gray-700); border-color: var(--mp-border); }
.taxtag--amt { background: color-mix(in srgb, var(--mp-accent) 16%, #fff); color: var(--mp-accent-600); border-color: color-mix(in srgb, var(--mp-accent) 40%, #fff); }

/* --- Securities section header tools --- */
.seclayout { display: inline-flex; align-items: center; gap: 10px; }
.sec-expand { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); background: #fff; color: var(--mp-text-muted); font-size: 12px; font-weight: 700; white-space: nowrap; transition: color var(--t-fast), border-color var(--t-fast); }
.sec-expand:hover { color: var(--mp-primary); border-color: var(--mp-primary-light); }

/* --- Chevron --- */
.chev { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: 0 0 16px; color: var(--mp-gray-400); transition: transform var(--t-fast), color var(--t-fast); }
.chev.is-open { transform: rotate(90deg); color: var(--mp-primary); }

/* ============ TREE GRID ============ */
.tree-wrap { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; }
.tree { width: 100%; font-variant-numeric: tabular-nums; }
.trow { display: grid; grid-template-columns: minmax(0,1fr) 104px 84px 64px 108px 96px; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 16px; border: none; background: none; border-bottom: 1px solid var(--mp-border-soft); }
.trow--head { background: var(--mp-gray-50); border-bottom: 1px solid var(--mp-border); }
.trow--head .tcell { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-text-muted); }
.tcell { font-size: 13px; color: var(--mp-text); min-width: 0; }
.tcell--num { text-align: right; font-family: var(--mp-font-mono); font-size: 12.5px; justify-self: end; }
.tcell--strong { font-weight: 700; color: var(--mp-primary-dark); }
.tcell--mute { color: var(--mp-gray-300); }
.tcell--name { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.tdot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 999px; background: var(--cc, var(--mp-primary)); }
.tname { flex: 1 1 0; min-width: 0; font-weight: 600; color: var(--mp-gray-900); line-height: 1.3; }
.tname .oslink { margin-left: 9px; }
.tsub { flex-basis: 100%; margin-left: 24px; font-size: 11.5px; color: var(--mp-text-muted); line-height: 1.3; }

.trow--credit { cursor: pointer; background: color-mix(in srgb, var(--cc) 5%, #fff); border-bottom: 1px solid var(--mp-border); }
.trow--credit:hover { background: color-mix(in srgb, var(--cc) 9%, #fff); }
.trow--credit .tname { font-family: var(--mp-font-serif); font-size: 15px; font-weight: 600; color: var(--mp-primary-dark); }
.trow--credit .tsub { margin-left: 33px; }

.trow--series { cursor: pointer; }
.trow--series:hover { background: var(--mp-gray-50); }
.tcell--l2 { padding-left: 16px; }
.trow--series .tname { font-size: 13px; }
.tcell--l2 .tsub { margin-left: 40px; }

.oslink { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--mp-accent-600); padding: 1px 6px; border: 1px solid color-mix(in srgb, var(--mp-accent) 40%, #fff); border-radius: 4px; background: color-mix(in srgb, var(--mp-accent) 10%, #fff); }
.oslink:hover { background: color-mix(in srgb, var(--mp-accent) 20%, #fff); }

/* CUSIP leaf rows */
.tcusips { background: color-mix(in srgb, var(--cc) 4%, var(--mp-gray-50)); border-bottom: 1px solid var(--mp-border-soft); padding: 4px 16px 12px 48px; }
.tcusip-head, .tcusip { display: grid; grid-template-columns: minmax(110px,1.4fr) 84px 84px 120px 84px; gap: 10px; align-items: center; padding: 6px 6px; }
.tcusip-head { font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-text-muted); border-bottom: 1px solid var(--mp-border-soft); }
.tcusip-head .tcell--num, .tcusip .tcell--num { text-align: right; font-family: var(--mp-font-mono); font-size: 12px; }
.tcusip { border-bottom: 1px dashed var(--mp-border-soft); }
.tcusip:last-of-type { border-bottom: none; }
.cmono { font-family: var(--mp-font-mono); font-size: 12px; color: var(--mp-gray-700); letter-spacing: 0.02em; }
.callchip { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--mp-accent) 14%, #fff); color: var(--mp-accent-600); }
.tcusip-foot { margin-top: 8px; font-size: 11px; color: var(--mp-text-muted); font-style: italic; }

/* ============ CREDIT CARDS ============ */
.creditcards { display: flex; flex-direction: column; gap: 16px; }
.ccard { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.ccard__head { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 21px; border-bottom: 1px solid var(--mp-border-soft); }
.ccard__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc, var(--mp-primary)); }
.ccard__id { min-width: 0; flex: 1; }
.ccard__name { font-family: var(--mp-font-serif); font-size: 18px; font-weight: 600; color: var(--mp-primary-dark); line-height: 1.15; }
.ccard__pledge { font-size: 12px; color: var(--mp-text-muted); margin-top: 3px; }
.ccard__dot { margin: 0 7px; color: var(--mp-gray-300); }
.ccard__num { text-align: right; flex-shrink: 0; }
.ccard__par { display: block; font-family: var(--mp-font-mono); font-size: 21px; font-weight: 700; color: var(--mp-primary-dark); line-height: 1; }
.ccard__share { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; font-weight: 600; color: var(--mp-text-muted); }
.ccard__sharebar { display: inline-block; width: 70px; height: 5px; border-radius: 999px; background: var(--mp-gray-100); overflow: hidden; }
.ccard__sharebar i { display: block; height: 100%; background: var(--cc, var(--mp-primary)); border-radius: 999px; }
.ccard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 18px; background: var(--mp-gray-50); border-bottom: 1px solid var(--mp-border-soft); }
.ccard__chip { font-size: 11px; font-weight: 700; color: var(--mp-gray-700); font-family: var(--mp-font-mono); padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--mp-border); }
.ccard__list { display: flex; flex-direction: column; }

.srow-wrap { border-bottom: 1px solid var(--mp-border-soft); }
.srow-wrap:last-child { border-bottom: none; }
.srow-wrap.is-open { background: color-mix(in srgb, var(--cc) 4%, #fff); }
.srow { display: grid; grid-template-columns: 16px minmax(0,1fr) auto auto auto; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 13px 18px; border: none; background: none; cursor: pointer; transition: background var(--t-fast); }
.srow:hover { background: var(--mp-gray-50); }
.srow__id { min-width: 0; }
.srow__name { display: block; font-size: 13.5px; font-weight: 600; color: var(--mp-gray-900); line-height: 1.3; }
.srow__purpose { display: block; font-size: 11.5px; color: var(--mp-text-muted); margin-top: 2px; }
.srow__nums { text-align: right; }
.srow__par { display: block; font-family: var(--mp-font-mono); font-size: 14px; font-weight: 700; color: var(--mp-primary-dark); }
.srow__sub { display: block; font-family: var(--mp-font-mono); font-size: 11px; color: var(--mp-text-muted); margin-top: 2px; }
.srow__os { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--mp-border); color: var(--mp-accent-600); background: #fff; }
.srow__os:hover { background: color-mix(in srgb, var(--mp-accent) 12%, #fff); border-color: color-mix(in srgb, var(--mp-accent) 40%, #fff); }
.srow__os--empty { border: none; background: none; }

.cusipbox { padding: 0 18px 16px 47px; }
.cusiptbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--mp-border-soft); border-radius: var(--r-sm); overflow: hidden; font-variant-numeric: tabular-nums; }
.cusiptbl th, .cusiptbl td { padding: 7px 12px; text-align: left; border-bottom: 1px solid var(--mp-border-soft); }
.cusiptbl thead th { font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mp-text-muted); background: var(--mp-gray-50); }
.cusiptbl tbody tr:last-child td { border-bottom: none; }
.cusiptbl .num { text-align: right; font-family: var(--mp-font-mono); font-size: 12px; }
.cusipbox__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--mp-text-muted); }
.cusipbox__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--mp-primary); font-weight: 600; text-decoration: none; }
.cusipbox__foot a:hover { color: var(--mp-primary-dark); }

/* ============ CREDIT ROLLUP (visual landing) ============ */
.creditroll { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); padding: 6px 18px 16px; }
.rollrow { display: grid; grid-template-columns: 14px minmax(0,1.5fr) minmax(90px,1fr) auto auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--mp-border-soft); }
.rollrow__dot { width: 11px; height: 11px; border-radius: 999px; background: var(--cc, var(--mp-primary)); }
.rollrow__id { min-width: 0; }
.rollrow__name { display: block; font-size: 14px; font-weight: 600; color: var(--mp-gray-900); }
.rollrow__sub { display: block; font-size: 11.5px; color: var(--mp-text-muted); margin-top: 1px; }
.rollrow__track { height: 8px; border-radius: 999px; background: var(--mp-gray-100); overflow: hidden; }
.rollrow__track i { display: block; height: 100%; background: var(--cc, var(--mp-primary)); border-radius: 999px; }
.rollrow__cnt { font-family: var(--mp-font-mono); font-size: 11.5px; color: var(--mp-text-muted); white-space: nowrap; }
.rollrow__par { font-family: var(--mp-font-mono); font-size: 15px; font-weight: 700; color: var(--mp-primary-dark); text-align: right; white-space: nowrap; }
.rollcta { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 15px; border: 1px solid var(--mp-primary); border-radius: var(--r-sm); background: #fff; color: var(--mp-primary-dark); font-size: 13px; font-weight: 700; transition: background var(--t-fast), color var(--t-fast); }
.rollcta:hover { background: var(--mp-primary); color: #fff; }

/* --- mix + maturity extras --- */
.mixrow__lab { font-weight: 600; }
.mixrow__pct { margin-left: 8px; font-size: 11px; color: var(--mp-text-muted); font-weight: 600; }
.maturity__amt { font-family: var(--mp-font-mono); font-size: 9px; color: var(--mp-text-muted); opacity: 0; transition: opacity var(--t-fast); white-space: nowrap; }
.maturity__col:hover .maturity__amt { opacity: 1; }
.maturity__cap { font-size: 11.5px; color: var(--mp-text-muted); font-style: italic; }
.maturity__bar { position: relative; }
.maturity__bar-call { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(180deg, var(--mp-accent-soft), var(--mp-accent)); border-radius: 2px 2px 0 0; }
.maturity__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mp-border-soft); }
.maturity__legend { display: flex; gap: 16px; font-size: 11.5px; font-weight: 600; color: var(--mp-text-muted); }
.maturity__legend span { display: inline-flex; align-items: center; gap: 6px; }
.maturity__sw { width: 11px; height: 11px; border-radius: 2px; }
.maturity__sw--base { background: var(--mp-primary); }
.maturity__sw--call { background: var(--mp-accent); }
.mchart__head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.mchart__seg { display: inline-flex; border: 1px solid var(--mp-border); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.mchart__seg button { border: none; background: #fff; color: var(--mp-text-muted); font-size: 12px; font-weight: 700; padding: 6px 13px; border-right: 1px solid var(--mp-border); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.mchart__seg button:last-child { border-right: none; }
.mchart__seg button:hover { color: var(--mp-primary); }
.mchart__seg button.is-on { background: var(--mp-primary); color: #fff; }
.mchart__plot { width: 100%; height: 300px; }

/* --- disclosure note --- */
.debt-note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--mp-text-muted); max-width: 92ch; padding-left: 13px; border-left: 2px solid var(--mp-border); }

/* tax-status rollup */
.taxroll { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 4px; padding: 11px 14px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--r-md); }
.taxroll__lab { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-text-muted); }
.taxroll__bar { flex: 1; min-width: 120px; height: 8px; border-radius: 999px; overflow: hidden; display: flex; background: var(--mp-gray-100); }
.taxroll__seg--exempt { background: var(--mp-primary); }
.taxroll__seg--amt { background: var(--mp-accent); }
.taxroll__seg--taxable { background: var(--mp-gray-400); }
.taxroll__chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mp-gray-700); white-space: nowrap; }
.taxroll__chip b { font-family: var(--mp-font-mono); font-weight: 700; color: var(--mp-primary-dark); }
.taxroll__dot { width: 9px; height: 9px; border-radius: 2px; }
.taxroll__dot--exempt { background: var(--mp-primary); }
.taxroll__dot--amt { background: var(--mp-accent); }
.taxroll__dot--taxable { background: var(--mp-gray-400); }

/* securities toolbar */
.sectools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.secsearch { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; height: 38px; padding: 0 12px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); background: #fff; color: var(--mp-text-muted); }
.secsearch input { flex: 1; border: none; background: none; outline: none; font-size: 13px; color: var(--mp-text); }
.secsearch input::placeholder { color: var(--mp-gray-400); }
.secsearch__clear { display: inline-flex; border: none; background: none; color: var(--mp-gray-400); cursor: pointer; padding: 2px; }
.secsearch__clear:hover { color: var(--mp-primary); }
.secchips { display: flex; gap: 4px; flex-wrap: wrap; }
.secchip { font-size: 12px; font-weight: 700; padding: 7px 12px; border: 1px solid var(--mp-border); border-radius: 999px; background: #fff; color: var(--mp-text-muted); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.secchip:hover { color: var(--mp-primary); border-color: var(--mp-primary-light); }
.secchip.is-on { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }
.secsort { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-text-muted); }
.secsort select { font-family: var(--mp-font-sans); font-size: 12.5px; font-weight: 600; color: var(--mp-text); padding: 7px 10px; border: 1px solid var(--mp-border); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.secempty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; border: 1px dashed var(--mp-border); border-radius: var(--r-md); background: var(--mp-gray-50); color: var(--mp-text-muted); font-size: 13.5px; }
.secempty button { border: none; background: none; color: var(--mp-primary); font-weight: 700; cursor: pointer; padding: 0; }

/* CUSIP id + hover actions */
.cmono { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mp-font-mono); font-size: 12px; color: var(--mp-gray-700); letter-spacing: 0.02em; }
.cusip-actions { display: inline-flex; gap: 3px; opacity: 0; transition: opacity var(--t-fast); }
.tcusip:hover .cusip-actions, .cusiptbl tr:hover .cusip-actions { opacity: 1; }
.cusip-act { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border: 1px solid var(--mp-border); border-radius: 4px; background: #fff; color: var(--mp-gray-500); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast); }
.cusip-act:hover { color: var(--mp-primary); border-color: var(--mp-primary-light); }
.cusip-act.is-copied { color: #fff; background: var(--mp-primary); border-color: var(--mp-primary); }

/* new-issue badge */
.newbadge { display: inline-block; margin-left: 8px; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--mp-accent) 18%, #fff); color: var(--mp-accent-600); vertical-align: middle; }

/* --- highlight the new tweak rows --- */
.tweaks__row--hl { background: color-mix(in srgb, var(--mp-accent) 9%, transparent); margin: 0 -14px; padding: 9px 14px; border-radius: var(--r-sm); }

@media (max-width: 760px) {
  .fact-strip--6 { grid-template-columns: repeat(3, 1fr); }
  .fact-strip--6 > div:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .trow { grid-template-columns: minmax(0,1fr) 92px 96px; }
  .trow .tcell:nth-child(3), .trow .tcell:nth-child(4) { display: none; }
  .tcusip-head, .tcusip { grid-template-columns: minmax(90px,1.3fr) 70px 110px; }
  .tcusip-head span:nth-child(3), .tcusip span:nth-child(3) { display: none; }
  .srow { grid-template-columns: 16px minmax(0,1fr) auto; }
  .srow__tags { display: none; }
  .rollrow { grid-template-columns: 14px minmax(0,1fr) auto; }
  .rollrow__track, .rollrow__cnt { display: none; }
  .debt-head { flex-direction: column; align-items: stretch; }
}

/* ===== cross-surface additions (public side) ===== */
.provrow { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; flex-wrap: wrap; }
.provrow__note { font-size: 12.5px; color: var(--mp-text-muted); }
.provchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--mp-border); color: var(--mp-text-muted); background: #fff; white-space: nowrap; }
.provchip--issuer { color: var(--mp-primary-dark); border-color: color-mix(in srgb, var(--mp-primary) 35%, transparent); background: color-mix(in srgb, var(--mp-primary) 7%, #fff); }
.provchip--agency { color: var(--mp-gray-700); border-color: var(--mp-border); background: var(--mp-gray-50); }
.provchip--derived { color: var(--mp-accent-600); border-color: color-mix(in srgb, var(--mp-accent) 45%, transparent); background: color-mix(in srgb, var(--mp-accent) 12%, #fff); }

/* continuing-disclosure freshness + recently-filed */
.freshline { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; margin-bottom: 12px; background: color-mix(in srgb, var(--mp-primary) 8%, #fff); border: 1px solid color-mix(in srgb, var(--mp-primary) 24%, transparent); border-radius: var(--r-sm, 6px); font-size: 12.5px; line-height: 1.45; color: #224a2f; }
.freshline svg { flex: 0 0 auto; margin-top: 1px; color: var(--mp-primary); }
.freshline strong { color: var(--mp-primary-dark); }
.filedlist { display: flex; flex-direction: column; }
.filedlist__row { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--mp-border-soft); }
.filedlist__row:last-child { border-bottom: none; }
.filedlist__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mp-accent); margin-top: 5px; flex: 0 0 auto; }
.filedlist__t { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.filedlist__d { font-size: 11px; color: var(--mp-text-muted); margin-top: 2px; }

/* item I — "Most read" usage round-trip on documents */
.dfile__badge { position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; background: var(--mp-gray-100); color: var(--mp-gray-700); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.dfile__badge--top { background: var(--mp-accent); color: var(--mp-brand-deep); }
.drow__pop { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--mp-accent-600); background: color-mix(in srgb, var(--mp-accent) 13%, #fff); border: 1px solid color-mix(in srgb, var(--mp-accent) 40%, transparent); padding: 1px 8px; border-radius: 999px; margin-left: 2px; }

/* item J — public follow confirmation (completes the follow → updates loop) */
.follownote { display: flex; gap: 7px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; background: color-mix(in srgb, var(--mp-primary) 8%, #fff); border: 1px solid color-mix(in srgb, var(--mp-primary) 22%, transparent); border-radius: var(--r-sm, 6px); font-size: 12px; line-height: 1.45; color: #224a2f; }
.follownote svg { flex: 0 0 auto; margin-top: 1px; color: var(--mp-primary); }
