/* Approved B9, Round B and Round C; keep after styles.css. See DESIGN.md.
   Repeated :root preserves the preview cascade specificity without runtime conditions. */
:root:root {
  --c-canvas: #eef0f3;
  --c-sheet: #ffffff;
  --c-fill: #f4f5f7;
  --c-fill-2: #eaecef;
  --c-line: #e6e8eb;
  --c-line-soft: #f0f1f3;
  --c-ink: #181b20;
  --c-ink-2: #353b45;
  --c-ink-3: #5f6773;
  --c-ink-4: #8d949e;
  --c-teal: #008e80;
  --c-teal-soft: #e4f3ef;
  --c-amber: #9a6a2f;
  --c-amber-soft: #f7efe4;
  --c-price-up: #e5463b;
  --c-price-up-soft: #fdeeec;
  --c-price-down: #2f6fdb;
  --c-price-down-soft: #ebf1fd;
  --c-select: var(--c-ink);
  --c-accent: var(--c-teal);
  --c-num: var(--c-ink-4);
  --c-teal-ink: #00796c;
  --c-neg: #a66d42;
  --c-raise: 0 1px 2px rgba(24, 27, 32, 0.08);
  --c-mark: #fff1b8;
  --c-track-from: #d5e9e4;
  --c-track-to: #7cc2b3;
  --c-logo-bg: #ffffff;
  --c-radius: 20px;
  --c-pad: 30px;
  --c-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;

  & body {
    font-family: var(--c-font);
    color: var(--c-ink-2);
    background: var(--c-canvas);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 1;
  }

  & button, & input, & select, & .call-summary-body { font-family: inherit; }
  & :focus-visible { outline-color: var(--c-accent); }

  & .topbar {
    height: 56px;
    gap: 14px;
    padding: 0 20px;
    background: var(--c-sheet);
    border-bottom: 1px solid var(--c-line);
  }
  & .brand { color: var(--c-ink); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
  & .brand-home { padding: 2px 6px; border: 1px solid var(--c-line); border-radius: 6px; color: var(--c-ink-3); font-size: 11px; font-weight: 600; }
  & .brand:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 2px; }
  & .search {
    height: 38px;
    padding: 0 14px;
    color: var(--c-ink-4);
    background: var(--c-fill);
    border: 0;
    border-radius: 10px;
  }
  & .search input { color: var(--c-ink); font-size: 14px; }
  & .search input::placeholder { color: var(--c-ink-4); }
  & .company-tab,
  & .ghost-button,
  & .file-links a {
    min-height: 34px;
    color: var(--c-ink-3);
    background: var(--c-fill);
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
  }
  & .company-tab.active { color: var(--c-ink); background: var(--c-fill-2); font-weight: 700; }
  & .ghost-button { color: var(--c-ink); }
  & .market-regime-chip { color: var(--c-ink-3); background: var(--c-fill); border: 0; border-radius: 9px; }

  & .workspace { grid-template-columns: 300px minmax(0, 1fr); }
  & .workspace.sidebar-collapsed { grid-template-columns: 38px minmax(0, 1fr); }
  & .sidebar { background: var(--c-sheet); border-right: 1px solid var(--c-line); }
  & .sidebar-toggle { color: var(--c-ink-3); background: var(--c-sheet); border-color: var(--c-line); box-shadow: none; border-radius: 9px; }

  & .company-card { padding: 24px 20px 22px; border-bottom: 1px solid var(--c-line); }
  & .ticker-line h1 { color: var(--c-ink); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

  & .price-line { margin-top: 10px; color: var(--c-ink); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
  & .price-delay { margin-top: 4px; color: var(--c-ink-4); font-size: 12px; font-weight: 500; }
  & .price-changes { gap: 3px; margin-top: 14px; }
  & .change-chip {
    min-height: 26px;
    padding: 0 6px;
    color: var(--c-ink-3);
    background: var(--c-fill);
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  & .change-chip b { font-weight: 500; }
  & .change-chip.up { color: var(--c-price-up); background: var(--c-price-up-soft); }
  & .change-chip.down { color: var(--c-price-down); background: var(--c-price-down-soft); }
  & .mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    padding: 14px 0;
    background: var(--c-fill);
    border-radius: 12px;
  }
  & .mini-metrics div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 14px; }
  & .mini-metrics div + div { border-left: 1px solid var(--c-line); }
  & .mini-metrics dt { color: var(--c-ink-4); font-size: 12px; font-weight: 500; }
  & .mini-metrics dd { color: var(--c-ink); font-size: 15px; font-weight: 700; white-space: nowrap; }

  & .feed { padding: 22px 22px 32px; }
  & .news-panel-head { margin: 0 0 14px; }
  & .news-panel-head h2 { color: var(--c-ink); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
  & .news-panel-head span { color: var(--c-ink-4); font-weight: 500; }
  & .news-filter-tabs { gap: 4px; margin-bottom: 6px; }
  & .news-filter-tabs button {
    min-height: 32px;
    color: var(--c-ink-4);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
  }
  & .news-filter-tabs button.active { color: var(--c-ink); background: var(--c-fill-2); font-weight: 700; }
  & .news-feed-item, & .feed-item { padding: 16px 0; border: 0; border-bottom: 1px solid var(--c-line-soft); border-radius: 0; background: transparent; box-shadow: none; }
  & .news-title { color: var(--c-ink); font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
  & .news-title:hover { color: var(--c-accent); }
  & .news-meta { margin-top: 6px; color: var(--c-ink-4); font-size: 12px; font-weight: 500; }
  & .news-summary-trigger { color: var(--c-ink-3); background: var(--c-fill); border: 0; border-radius: 8px; box-shadow: none; font-size: 12px; font-weight: 600; }
  & .news-summary-trigger:hover, & .news-summary-trigger[aria-expanded=true] { color: var(--c-ink); background: var(--c-fill-2); }
  & .more-news-link { color: var(--c-ink-2); background: var(--c-fill); border: 0; border-radius: 9px; font-weight: 600; text-decoration: none; }

  & .main-panel { background: var(--c-canvas); }
  & .main-tabs {
    height: 54px;
    gap: 26px;
    padding: 0 28px;
    background: var(--c-canvas);
    border-bottom: 1px solid var(--c-line);
  }
  & .main-tabs button {
    min-height: 54px;
    padding: 0 2px;
    color: var(--c-ink-4);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  & .main-tabs button:hover { color: var(--c-ink-2); }
  & .main-tabs button.active { color: var(--c-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--c-select); }

  & .main-tabs { position: sticky; top: 0; z-index: 30; }
  & .claude-section-index {
    position: sticky;
    top: 54px;
    z-index: 29;
    display: flex;
    gap: 2px;
    padding: 8px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    background: color-mix(in srgb, var(--c-canvas) 94%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
  }
  & .claude-section-index::-webkit-scrollbar { display: none; }
  & .claude-section-index button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    color: var(--c-ink-3);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  & .claude-section-index button span { color: var(--c-ink-4); font-weight: 500; }
  & .claude-section-index button:hover { color: var(--c-ink); background: var(--c-fill-2); }
  & .claude-section-index button.is-active { color: var(--c-ink); background: var(--c-sheet); box-shadow: var(--c-raise); }
  & .claude-section-index button.is-active span { color: var(--c-select); }
  & .rmbs-section, & .rmbs-peer-panel, & .call-summary-title { scroll-margin-top: 118px; }

  & .finance-subtabs, & .ir-section-tabs, & .range-tabs, & .side-tabs {
    gap: 2px;
    padding: 3px;
    background: var(--c-fill-2);
    border-radius: 10px;
  }
  & .finance-subtabs button, & .ir-section-tabs button, & .range-tabs button, & .side-tabs button {
    min-height: 32px;
    padding: 0 14px;
    color: var(--c-ink-3);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
  }
  & .finance-subtabs button.active, & .ir-section-tabs button.active, & .range-tabs button.active, & .side-tabs button.active {
    color: var(--c-ink);
    background: var(--c-sheet);
    box-shadow: var(--c-raise);
    font-weight: 700;
  }
  & .toolbar { padding: 18px 28px 0; background: transparent; border: 0; }

  & .content-grid { gap: 14px; padding: 18px 28px 40px; }
  & .identity-banner { background: var(--c-sheet); border-bottom: 1px solid var(--c-line); }
  & .site-footer { color: var(--c-ink-4); }

  & .chart-card,
  & .panel {
    background: var(--c-sheet);
    border: 0;
    border-radius: var(--c-radius);
    box-shadow: none;
  }
  & .chart-card { padding: 22px 24px; }
  & .chart-head { margin-bottom: 14px; }
  & .chart-head h2 { color: var(--c-ink); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
  & .chart-head h3 { color: var(--c-ink); font-size: 16px; font-weight: 700; }
  & .chart-head span { color: var(--c-ink-4); font-size: 13px; font-weight: 500; }
  & .section-title { color: var(--c-ink); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
  & .empty-state { color: var(--c-ink-4); }

  & .content-grid table:not(.peer-table, .analysis-markdown table) th {
    color: var(--c-ink-4);
    font-weight: 500;
    background: transparent;
    border-color: var(--c-line);
  }
  & .content-grid table:not(.peer-table, .analysis-markdown table) td { color: var(--c-ink-2); border-color: var(--c-line-soft); font-variant-numeric: tabular-nums; }

  & .ir-section-tabs { width: fit-content; max-width: 100%; }
  & .ir-event {
    padding: 11px 14px;
    color: var(--c-ink-3);
    background: transparent;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
  }
  & .ir-event strong { color: var(--c-ink-2); font-weight: 600; }
  & .ir-event span { color: var(--c-ink-4); }
  & .ir-event:hover { background: var(--c-fill); }
  & .ir-event.active { background: var(--c-fill-2); box-shadow: none; }
  & .ir-event.active strong { color: var(--c-ink); font-weight: 700; }
  & .ir-panel-head h2, & .ir-document-head h2 { color: var(--c-ink); letter-spacing: -0.02em; }
  & .ir-document-meta { color: var(--c-ink-4); }
  & .ir-doc-tabs { gap: 2px; padding: 3px; width: fit-content; max-width: 100%; background: var(--c-fill-2); border: 0; border-radius: 10px; }
  & .ir-doc-tabs button { min-height: 32px; padding: 0 14px; font-size: 13px; color: var(--c-ink-3); background: transparent; border: 0; border-radius: 8px; box-shadow: none; font-weight: 600; }
  & .ir-summary-doc .call-summary-card .chart-head h2 { margin: 0; padding-top: 0; border-top: 0; }
  & .ir-doc-tabs button.active { color: var(--c-ink); background: var(--c-sheet); box-shadow: var(--c-raise); font-weight: 700; }

  & .overview-company-hero {
    padding: 34px 36px 30px;
    color: var(--c-ink);
    background: var(--c-sheet);
    border-radius: var(--c-radius);
  }
  & .overview-hero-panel { gap: 48px; padding: 0; color: var(--c-ink); background: transparent; border-radius: 0; }
  & .overview-hero-identity { gap: 12px; margin-bottom: 22px; }
  & .overview-hero-logo { flex-basis: 44px; width: 44px; height: 44px; background: var(--c-logo-bg); border: 1px solid var(--c-line); border-radius: 12px; }
  & .overview-hero-name { color: var(--c-ink); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
  & .overview-hero-ticker { color: var(--c-ink-4); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
  & .overview-company-hero h2 {
    color: var(--c-ink);
    font-size: clamp(26px, 2.35vw, 34px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.035em;
  }
  & .overview-company-hero h2 em { color: var(--c-accent); }
  & .overview-hero-definition { margin-top: 18px; max-width: 34em; color: var(--c-ink-3); font-size: 16px; line-height: 1.7; }
  & .overview-hero-investment { align-self: start; padding-top: 4px; }
  & .overview-hero-kicker {
    margin: 0;
    padding-bottom: 12px;
    color: var(--c-ink-4);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--c-line);
  }
  & .overview-hero-theses { gap: 0; }
  & .overview-hero-thesis { padding: 18px 0; border-bottom: 1px solid var(--c-line-soft); }
  & .overview-hero-thesis:last-child { border-bottom: 0; padding-bottom: 0; }
  & .overview-hero-thesis h3 { color: var(--c-ink); font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; }
  & .overview-hero-thesis p { color: var(--c-ink-3); font-size: 15px; line-height: 1.7; }
  & .overview-company-hero-rmbs .overview-hero-thesis { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; }
  & .overview-company-hero-rmbs .overview-hero-product { color: var(--c-teal); font-size: 14px; font-weight: 700; line-height: 1.8; }

  & .overview-hero-kpis {
    margin-top: 30px;
    padding: 6px 0;
    background: var(--c-fill);
    border: 0;
    border-radius: 16px;
  }
  & .overview-hero-kpi { padding: 16px 22px 14px; border-right: 1px solid var(--c-line); }
  & .overview-hero-kpi:last-child { border-right: 0; }
  & .overview-hero-kpi-label { color: var(--c-ink-4); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
  & .overview-hero-kpi-value { margin: 6px 0 10px; color: var(--c-ink); font-size: 30px; font-weight: 700; letter-spacing: -0.035em; }
  & .overview-hero-kpi-value small { margin-left: 3px; color: var(--c-ink-3); font-size: 15px; font-weight: 600; }
  & .overview-hero-kpi-foot { gap: 6px 8px; color: var(--c-ink-3); font-size: 12px; }
  & .overview-hero-change { padding: 2px 7px; color: var(--c-teal-ink); background: var(--c-teal-soft); border-radius: 6px; font-weight: 700; }
  & .overview-hero-caution { color: var(--c-amber); background: var(--c-amber-soft); }
  & .overview-hero-kpi-foot .claude-change { padding: 2px 7px; color: var(--c-teal-ink); background: var(--c-teal-soft); border-radius: 6px; font-weight: 600; }
  & .overview-hero-kpi-foot .claude-change[data-dir="down"] { color: var(--c-amber); background: var(--c-amber-soft); }
  & .claude-kpi-period { margin: 30px 0 0; color: var(--c-ink-3); font-size: 13px; font-weight: 600; }
  & .claude-kpi-period strong { color: var(--c-ink); font-weight: 700; }
  & .claude-kpi-period + .overview-hero-kpis { margin-top: 10px; }

  @container overview-hero (max-width: 900px) {
    & .overview-hero-kpi:nth-child(even) { border-right: 0; }
    & .overview-hero-kpi:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  }

  & .rmbs-overview-body { color: var(--c-ink-2); }
  & .rmbs-section {
    margin: 14px 0 0;
    padding: var(--c-pad) calc(var(--c-pad) + 2px) calc(var(--c-pad) + 2px);
    background: var(--c-sheet);
    border-radius: var(--c-radius);
  }
  & .rmbs-section:first-child { margin-top: 0; }
  & .rmbs-section-head { margin-bottom: 22px; gap: 14px 20px; }
  & .rmbs-section-head h2 { gap: 12px; color: var(--c-ink); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
  & .rmbs-section-head h2 > span {
    display: inline;
    width: auto;
    height: auto;
    color: var(--c-num);
    background: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
  }
  & .rmbs-actions { gap: 14px; }
  & .rmbs-period { color: var(--c-ink-4); font-size: 13px; }
  & .rmbs-period select,
  & .peer-product-head select {
    min-height: 34px;
    padding: 0 30px 0 12px;
    color: var(--c-ink);
    background: var(--c-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235f6773' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    appearance: none;
  }
  & .rmbs-small-action { color: var(--c-ink-3); font-size: 13px; font-weight: 600; }
  & .rmbs-small-action:hover { color: var(--c-accent); }

  & .rmbs-section .rmbs-panel,
  & .rmbs-section .chart-card {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  & .rmbs-positive { color: var(--c-teal); }
  & .rmbs-negative { color: var(--c-neg); }
  & .rmbs-neutral { color: var(--c-ink-3); }

  & .rmbs-business-card { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  & .rmbs-composition { padding: 0 0 24px; background: transparent; border-right: 0; border-bottom: 1px solid var(--c-line); }
  & .rmbs-strip-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
  & .rmbs-composition-content { grid-template-columns: 154px minmax(0, 1fr); gap: 36px; align-items: center; justify-items: stretch; }
  & .rmbs-mix-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: none; }
  & .rmbs-mix-labels button { padding: 4px 24px; border-left: 1px solid var(--c-line); }
  & .rmbs-mix-labels button:first-child { padding-left: 0; border-left: 0; }
  & .rmbs-mix-labels button > span:first-child { grid-template-columns: 8px auto; column-gap: 7px; row-gap: 6px; align-items: center; }
  & .rmbs-mix-labels button > span:first-child > b { grid-column: 1 / -1; font-size: 28px; letter-spacing: -0.035em; line-height: 1.2; }
  & .rmbs-mix-labels button > span:last-child { padding-left: 0; margin-top: 4px; font-weight: 600; }
  & .rmbs-mix-labels i { width: 8px; height: 8px; border-radius: 2px; }
  & .rmbs-strip-head h3 { color: var(--c-ink); font-size: 16px; font-weight: 700; }
  & .rmbs-donut > div { background: var(--c-sheet); }
  & .rmbs-donut span { color: var(--c-ink-4); }
  & .rmbs-donut strong { color: var(--c-ink); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
  & .rmbs-mix-labels { gap: 14px; }
  & .rmbs-mix-labels button { color: var(--c-ink-3); }
  & .rmbs-mix-labels b { color: var(--c-ink); font-size: 17px; font-weight: 700; }
  & .rmbs-business-card > rambus-ecosystem,
  & .rmbs-business-card > alab-ecosystem { padding: 24px 0 0; }

  & .rmbs-overview-body .summary-top { gap: 0; }
  & .rmbs-overview-body .summary-top > .price-trend-card { padding-right: 30px; }
  & .rmbs-overview-body .summary-top > .consensus-card { padding-left: 30px; border-left: 1px solid var(--c-line); }
  & .price-trend-value strong { color: var(--c-ink); font-size: 34px; font-weight: 700; letter-spacing: -0.035em; }
  & .price-trend-value span { font-weight: 600; }
  & .price-trend-value.up span { color: var(--c-price-up); }
  & .price-trend-value.down span { color: var(--c-price-down); }
  & .price-range-tabs { gap: 2px; margin: 10px 0 12px; padding: 3px; width: fit-content; max-width: 100%; background: var(--c-fill-2); border: 0; border-radius: 10px; }
  & .price-range-tabs button {
    min-height: 30px;
    padding: 0 11px;
    color: var(--c-ink-3);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
  }
  & .price-range-tabs button.active { color: var(--c-ink); background: var(--c-sheet); box-shadow: var(--c-raise); font-weight: 700; }
  & .price-stats { gap: 0; margin-top: 14px; padding: 4px 0; background: var(--c-fill); border-radius: 14px; }
  & .price-stats > div { padding: 12px 16px; background: transparent; border: 0; border-radius: 0; }
  & .price-stats > div + div { border-left: 1px solid var(--c-line); }
  & .price-stats dt { color: var(--c-ink-4); font-weight: 500; }
  & .price-stats dd { color: var(--c-ink); font-weight: 700; }

  & .rmbs-overview-body .consensus-card .chart-head h2 { color: var(--c-ink); font-size: 18px; }
  & .rmbs-overview-body .consensus-card .chart-head > span { color: var(--c-ink-3); background: var(--c-fill); border: 0; border-radius: 7px; font-size: 12px; font-weight: 600; }
  & .rmbs-overview-body .consensus-targets-head h3 { color: var(--c-ink-4); font-size: 13px; }
  & .rmbs-target-main > strong { color: var(--c-ink); font-size: 40px; letter-spacing: -0.04em; }
  & .rmbs-target-main > span { color: var(--c-teal); font-size: 19px; font-weight: 700; }
  & .rmbs-target-track { height: 6px; background: linear-gradient(90deg, var(--c-track-from), var(--c-track-to)); }
  & .rmbs-target-range { color: var(--c-ink-4); }
  & .rmbs-overview-body .consensus-row { padding: 14px 0; border-color: var(--c-line-soft); }
  & .rmbs-overview-body .consensus-row > span { color: var(--c-ink-3); }
  & .rmbs-overview-body .consensus-row > strong { color: var(--c-ink); font-weight: 700; }
  & .rmbs-overview-body .consensus-row > em { color: var(--c-teal); font-weight: 600; }
  & rmbs-earnings-date { border-color: var(--c-line); }
  & .rmbs-earnings-label, & .rmbs-pe { color: var(--c-ink-4); }
  & rmbs-earnings-date time, & .rmbs-pe strong { color: var(--c-ink); font-weight: 700; }
  & .rmbs-earnings-badge { border: 0; border-radius: 6px; }

  & .rmbs-financial-tabs { gap: 2px; padding: 3px; background: var(--c-fill-2); border: 0; border-radius: 10px; }
  & .rmbs-financial-tabs button { padding: 6px 14px; color: var(--c-ink-3); border-radius: 8px; font-weight: 600; }
  & .rmbs-financial-tabs button[aria-selected=true] { color: var(--c-ink); background: var(--c-sheet); box-shadow: var(--c-raise); font-weight: 700; }
  & .rmbs-financial-grid { column-gap: 0; }
  & .rmbs-section .rmbs-financial-card { padding: 0 22px; border-left: 1px solid var(--c-line); }
  & .rmbs-financial-card > h3 { color: var(--c-ink-3); font-size: 14px; font-weight: 600; }
  & .rmbs-financial-primary > strong, & .rmbs-financial-balance strong { color: var(--c-ink); font-size: 26px; letter-spacing: -0.035em; }
  & .rmbs-financial-primary > span { font-weight: 600; }
  & .rmbs-financial-comparison, & .rmbs-financial-balance small, & .rmbs-financial-balance > div > span:first-child { color: var(--c-ink-4); }
  @container rmbs-body (min-width: 1000px) {
    & .rmbs-financial-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto 220px; }
    & .rmbs-financial-card:nth-child(n) { grid-row: 1 / span 4; }
    & .rmbs-section .rmbs-financial-card:first-child { padding-left: 0; border-left: 0; }
    & .rmbs-section .rmbs-financial-card:last-child { padding-right: 0; }
  }
  @container rmbs-body (min-width: 621px) and (max-width: 999.98px) {
    & .rmbs-section .rmbs-financial-card:nth-child(odd) { padding-left: 0; border-left: 0; }
    & .rmbs-section .rmbs-financial-card:nth-child(even) { padding-right: 0; }
  }
  @container rmbs-body (max-width: 620px) {
    & .rmbs-financial-grid { gap: 0; }
    & .rmbs-section .rmbs-financial-card { padding: 22px 0; border-left: 0; border-top: 1px solid var(--c-line); }
    & .rmbs-section .rmbs-financial-card:first-child { padding-top: 0; border-top: 0; }
  }

  & .rmbs-method { color: var(--c-ink-4); }
  & .rmbs-method summary { color: var(--c-ink-3); font-weight: 600; }
  & .rmbs-method-grid { background: var(--c-fill); border: 0; border-radius: 14px; padding: 18px 22px; color: var(--c-ink-3); }
  & .rmbs-section > .rmbs-method { margin-top: 20px; }

  & .rmbs-flow-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  & .rmbs-section .rmbs-flow-card { display: block; grid-row: auto; padding: 0 0 8px; }
  & .rmbs-flow-head { margin-bottom: 6px; }
  & .rmbs-sankey-chart { height: 420px; }
  & .rmbs-section .rmbs-geography-card { display: block; grid-row: auto; padding: 22px 0 0; border-top: 1px solid var(--c-line); }
  & .rmbs-geography-head { margin-bottom: 14px; }
  & .rmbs-geography-rows { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; }
  & .rmbs-geo-row { padding: 2px 20px; border: 0; border-left: 1px solid var(--c-line); }
  & .rmbs-geo-row:first-child { padding-left: 0; border-left: 0; }
  & .rmbs-geo-row:last-child { padding-right: 0; border-left: 1px solid var(--c-line); }
  & .rmbs-geo-row > div:first-child { flex-direction: column; align-items: flex-start; gap: 2px; }
  & .rmbs-flow-meta, & .rmbs-geography-head > span { color: var(--c-ink-4); }
  & .rmbs-geography-head h3 { color: var(--c-ink); font-size: 16px; font-weight: 700; }
  & .rmbs-geo-row { border-color: var(--c-line-soft); }
  & .rmbs-geo-row strong { color: var(--c-ink); }
  & .rmbs-geo-track { height: 5px; background: var(--c-fill-2); border-radius: 3px; }
  & .rmbs-geo-track i { height: 5px; border-radius: 3px; }
  @container rmbs-body (max-width: 850px) {
    & .rmbs-sankey-chart { height: 330px; }
    & .rmbs-overview-body .peer-table th, & .rmbs-overview-body .peer-table td { font-size: 18px; padding: 12px 6px; }
    & .rmbs-overview-body .peer-table thead th { font-size: 12px; }
    & .rmbs-geography-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
    & .rmbs-geo-row:nth-child(odd) { padding-left: 0; border-left: 0; }
    & .rmbs-geo-row:nth-child(even) { padding-right: 0; }
  }

  & .rmbs-peer-panel {
    margin-top: 14px;
    padding: var(--c-pad) calc(var(--c-pad) + 2px) 24px;
    background: var(--c-sheet);
    border: 0;
    border-radius: var(--c-radius);
  }
  & .rmbs-overview-body .peer-header h3 { color: var(--c-ink); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
  & .rmbs-overview-body .basis-chip { color: var(--c-ink-3); background: var(--c-fill); border-radius: 7px; font-weight: 600; }
  & .rmbs-overview-body .peer-product-tabs { margin-top: 20px; padding-bottom: 14px; border-color: var(--c-line); gap: 4px; }
  & .rmbs-overview-body .peer-product-tabs button,
  & .rmbs-overview-body .peer-mode-tabs button {
    padding: 7px 13px;
    color: var(--c-ink-3);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
  }
  & .rmbs-overview-body .peer-product-tabs [aria-selected=true] { color: var(--c-ink); background: var(--c-fill-2); border: 0; font-weight: 700; }
  & .rmbs-overview-body .peer-mode-tabs { gap: 2px; padding: 3px; background: var(--c-fill-2); border-radius: 10px; }
  & .rmbs-overview-body .peer-mode-tabs [aria-selected=true] { color: var(--c-ink); background: var(--c-sheet); border: 0; box-shadow: var(--c-raise); font-weight: 700; }
  & .rmbs-overview-body .peer-product-head { color: var(--c-ink); font-size: 14px; }
  & .rmbs-overview-body .peer-scope { color: var(--c-ink-4); }
  & .rmbs-overview-body .peer-table th, & .rmbs-overview-body .peer-table td { color: var(--c-ink); border-color: var(--c-line-soft); font-size: 22px; letter-spacing: -0.02em; }
  & .rmbs-overview-body .peer-table thead th { color: var(--c-ink-4); font-size: 13px; letter-spacing: 0; border-color: var(--c-line); }
  & .rmbs-overview-body .peer-table .subject td { color: var(--c-teal); }
  & .rmbs-overview-body .peer-company { color: var(--c-ink); }
  & .rmbs-overview-body .peer-company small { color: var(--c-ink-4); }
  & .rmbs-overview-body .peer-method { color: var(--c-ink-4); }

  & .rmbs-overview-body .outlook-grid { gap: 0; }
  & .rmbs-overview-body .catalysts,
  & .rmbs-overview-body .risk-card {
    padding: 0;
    color: var(--c-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    --brief-border: var(--c-line-soft);
    --brief-body: var(--c-ink-3);
    --brief-takeaway: var(--c-ink-3);
    --brief-emphasis: var(--c-ink);
  }
  & .rmbs-overview-body .catalysts { padding-right: 30px; --brief-tag: var(--c-teal-ink); --brief-tag-bg: var(--c-teal-soft); }
  & .rmbs-overview-body .risk-card { padding-left: 30px; border-left: 1px solid var(--c-line); --brief-tag: var(--c-amber); --brief-tag-bg: var(--c-amber-soft); }
  & .rmbs-overview-body .outlook-header h3 { color: var(--c-ink); font-size: 18px; font-weight: 700; }
  & .rmbs-overview-body .outlook-brief { margin-top: 16px; padding-top: 16px; }
  & .rmbs-overview-body .brief-headline { color: var(--c-ink); font-size: 15px; }
  & .rmbs-overview-body .brief-headline > strong { font-size: 15px; }
  & .rmbs-overview-body .brief-tag { padding: 2px 7px; color: var(--brief-tag); background: var(--brief-tag-bg); border: 0; border-radius: 6px; font-size: 11px; letter-spacing: 0.02em; }
  & .rmbs-overview-body .brief-bullets { font-size: 14.5px; line-height: 1.75; }
  & .rmbs-overview-body .brief-bullets li::marker { color: var(--c-ink-4); }
  @container rmbs-body (max-width: 850px) {
    & .rmbs-overview-body .catalysts { padding: 0 0 24px; }
    & .rmbs-overview-body .risk-card { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--c-line); }
  }

  & .rmbs-data-basis { margin: 14px 4px 4px; }

  & #content > .call-summary-title {
    margin: 0 0 -14px;
    padding: var(--c-pad) calc(var(--c-pad) + 2px) 6px;
    background: var(--c-sheet);
    border-radius: var(--c-radius) var(--c-radius) 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }
  & .summary-source-link { color: var(--c-ink-3); background: var(--c-fill); border: 0; border-radius: 9px; box-shadow: none; font-weight: 600; }
  & .summary-source-link:hover { color: var(--c-accent); }
  & .call-summary-grid { gap: 0; }
  & #content > .call-summary-grid {
    padding: 18px calc(var(--c-pad) + 2px) calc(var(--c-pad) + 4px);
    background: var(--c-sheet);
    border-radius: 0 0 var(--c-radius) var(--c-radius);
  }
  & .call-summary-card { padding: 0; min-height: 0; overflow: visible; background: transparent; border-radius: 0; }
  & .call-summary-card::before { display: none; }
  & .call-summary-card.key-summary { padding-right: 30px; }
  & .call-summary-card.easy-summary { padding-left: 30px; border-left: 1px solid var(--c-line); }
  & .call-summary-card .chart-head { margin-bottom: 16px; padding-bottom: 14px; border-color: var(--c-line); }
  & .call-summary-card .chart-head h2 { color: var(--c-ink); font-size: 18px; font-weight: 700; }
  & .call-summary-card .chart-head span { color: var(--c-ink-4); font-weight: 600; }
  & .markdown-body.call-summary-body p,
  & .markdown-body.call-summary-body li { color: var(--c-ink-2); font-size: 15.5px; line-height: 1.78; }
  & .markdown-body.call-summary-body h3 { color: var(--c-ink); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
  & .markdown-body.call-summary-body h3::before,
  & .key-summary .markdown-body.call-summary-body h3::before { background: var(--c-ink-4); width: 6px; height: 6px; }
  & .summary-keyword { color: var(--c-ink); font-weight: 700; }
  & .markdown-body mark { padding: 1px 3px; color: var(--c-ink); background: linear-gradient(180deg, transparent 0 8%, var(--c-mark) 8% 100%); border-radius: 3px; }

  @media (max-width: 820px) {
    --c-pad: 20px;
    --c-radius: 16px;

    & .topbar { height: auto; gap: 8px; padding: 10px 14px; }
    & .sidebar { border-right: 0; border-bottom: 1px solid var(--c-line); }
    & .company-card { padding: 12px 14px; }
    & .ticker-line h1 { font-size: 16px; }
    & .price-line { margin-top: 0; font-size: 22px; }

    & .price-changes { grid-column: 1 / -1; flex-wrap: wrap; margin-top: 8px; }
    & .price-changes .change-chip:first-child { margin-left: 0; }

    & .mini-metrics { display: none; }
    & .change-chip { min-height: 24px; padding: 0 7px; font-size: 11px; }
    & .mobile-feed-toggle { color: var(--c-ink-2); background: var(--c-sheet); border-color: var(--c-line); font-size: 14px; font-weight: 700; }
    & .feed { padding: 16px 14px 20px; }
    & .main-tabs { height: 50px; gap: 0; padding: 0 6px; }
    & .main-tabs button { min-height: 50px; padding: 0 4px; font-size: 14px; }
    & .claude-section-index { top: 50px; padding: 6px 8px; }
    & .claude-section-index button { min-height: 30px; padding: 0 10px; font-size: 12px; }
    & .rmbs-section, & .rmbs-peer-panel, & .call-summary-title { scroll-margin-top: 104px; }
    & .toolbar { padding: 12px 10px 0; }
    & .content-grid { gap: 10px; padding: 10px 10px 24px; }
    & .chart-card { padding: 18px; }

    & .overview-company-hero { padding: 22px 20px 20px; }
    & .overview-hero-panel { gap: 20px; }
    & .overview-company-hero h2 { font-size: 24px; }
    & .overview-hero-definition { font-size: 15px; }
    & .overview-hero-kpis { margin-top: 22px; }
    & .overview-hero-kpi { padding: 14px 16px 12px; }
    & .overview-hero-kpi-value { font-size: 26px; }
    & .rmbs-section { margin-top: 10px; }
    & .rmbs-section-head { margin-bottom: 16px; }
    & .rmbs-section-head h2 { font-size: 19px; gap: 9px; }
    & .rmbs-section-head h2 > span { font-size: 14px; }
    & .rmbs-peer-panel { margin-top: 10px; }
    & #content > .call-summary-title { margin-bottom: -10px; font-size: 19px; }
    & .call-summary-grid { grid-template-columns: 1fr; }
    & #content > .call-summary-grid { padding-top: 14px; }
    & .call-summary-card.key-summary { padding: 0 0 26px; }
    & .call-summary-card.easy-summary { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--c-line); }
    & .markdown-body.call-summary-body p,
    & .markdown-body.call-summary-body li { font-size: 15px; }
  }

  @container rmbs-body (max-width: 600px) {
    & .rmbs-composition-content { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
    & .rmbs-mix-labels { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    & .rmbs-mix-labels button { padding: 0; border-left: 0; }
    & .rmbs-mix-labels button > span:first-child { grid-template-columns: 8px minmax(0, 1fr) auto; }
    & .rmbs-mix-labels button > span:first-child > b { grid-column: auto; font-size: 17px; }
    & .rmbs-donut strong { font-size: 15px; }
  }
  @container rmbs-body (max-width: 850px) {
    & .rmbs-overview-body .summary-top > .price-trend-card { padding: 0 0 24px; }
    & .rmbs-overview-body .summary-top > .consensus-card { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--c-line); }
  }
  @container rmbs-body (max-width: 600px) {
    & .price-stats > div:nth-child(3) { border-left: 0; }
    & .price-stats > div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  }
}

:root:root,
:root:root:root :is(.topbar, .sidebar, .overview-company-hero) {
  --bg: var(--c-canvas);
  --panel: var(--c-sheet);
  --panel-soft: var(--c-fill);
  --border: var(--c-line);
  --text: var(--c-ink-2);
  --muted: var(--c-ink-4);
  --heading: var(--c-ink);
  --shadow: none;
}

:root:root:root {
  --c-cat: #1f7a4a;
  --c-cat-bg: #e2f2e8;
  --c-accent: var(--c-em);

  & .eyebrow, & .identity-banner-tagline { color: var(--c-em); }
  & .overview-company-hero h2 em, & .overview-company-hero-rmbs .overview-hero-product { color: var(--c-em-chrome); }
  & .rmbs-overview-body .catalysts { --brief-tag: var(--c-cat); --brief-tag-bg: var(--c-cat-bg); }

  & .rmbs-overview-body .peer-table .subject td, & .rmbs-overview-body .peer-table .subject strong { color: var(--c-em); font-weight: 700; }
  & .sidebar-toggle { color: var(--c-ink-3); background: var(--chrome); border-color: var(--chrome-line); }

  --accent-2: var(--c-em);
  --gateway-teal: var(--c-em);
  & .market-regime-chip.is-risk-on, & .consensus-row em, & .overview-kpi-arrow { color: var(--c-teal); }
  & .thesis-pill-strengthening { border-left-color: var(--c-teal); }
  & .fleet-dot.ok { background: var(--c-teal); }
  & .news-summary-preview strong, & .news-summary-preview em, & .news-page-tabs button.active,
  & .news-page-thumb, & .news-page-thumb-source, & .news-page-badge,
  & .analysis-subsection-head > div::before, & .analysis-markdown h4,
  & .analysis-markdown blockquote.analysis-quote-pull::before, & .analysis-editor blockquote.analysis-quote-pull::before,
  & .analysis-item strong, & .analysis-risk-list strong,
  & .analysis-image-popover button:hover, & .analysis-image-popover button.active,
  & .expert-segment-profitability strong,
  & .overview-gateway-cta, & .overview-gateway-secondary-cta, & .overview-risk-cta { color: var(--c-em); }
  & .news-page-thumb, & .news-page-badge, & .analysis-subsection-head > div::before, & .analysis-menu-option:hover {
    background: var(--c-em-tint);
    border-color: color-mix(in srgb, var(--c-em) 22%, transparent);
  }
  & .news-page-tabs button.active, & .analysis-toc a.active,
  & .analysis-image-popover button:hover, & .analysis-image-popover button.active { background: var(--c-em-tint); }
  & .file-links a.excel-download { border-color: color-mix(in srgb, var(--c-em) 22%, transparent); }
  & .news-page-thumb-mark, & .key-summary::before { background: var(--c-em); }
  & .news-summary-preview.is-pinned { box-shadow: 0 18px 42px color-mix(in srgb, var(--c-em) 20%, transparent); }
}
:root:root:root :is(.topbar, .sidebar, .overview-company-hero) {
  --c-canvas: var(--chrome-deep);
  --c-sheet: var(--chrome);
  --c-fill: var(--chrome-fill);
  --c-fill-2: var(--chrome-fill-2);
  --c-line: var(--chrome-line);
  --c-line-soft: var(--chrome-line-soft);
  --c-ink: #ffffff;
  --c-teal: #8fd8c8;
  --c-teal-ink: #eef8f5;
  --c-teal-soft: rgba(80, 190, 170, 0.26);
  --c-amber: #f0c78d;
  --c-amber-soft: rgba(227, 180, 110, 0.2);
  --c-price-up: #ff6e62;
  --c-price-up-soft: rgba(255, 110, 98, 0.15);
  --c-price-down: #6ea3ff;
  --c-price-down-soft: rgba(110, 163, 255, 0.16);
  --c-select: #ffffff;
  --c-accent: var(--c-em-chrome);
  --accent-2: var(--c-em-chrome);
  --gateway-teal: var(--c-em-chrome);
  color: var(--c-ink-2);
}

:root:root:root {
  --chrome: #111f36; --chrome-deep: #0c1729; --chrome-fill: #1a2a45; --chrome-fill-2: #233654;
  --chrome-line: #253858; --chrome-line-soft: #1c2c48;
  --c-brand: #111f36;
  --c-canvas: #eef0f3; --c-fill: #f4f5f7; --c-fill-2: #eaecef; --c-line: #e6e8eb; --c-line-soft: #f0f1f3;

  --c-ink: #16191f; --c-ink-2: #353b45; --c-ink-3: #5f6773; --c-ink-4: #626a75;
  --c-em: var(--c-ink); --c-em-chrome: #ffffff; --c-em-tint: var(--c-fill-2);
  --c-select: var(--c-brand);
  --c-accent: var(--c-brand);
  --accent: var(--c-brand);
  --accent-2: var(--c-ink-3);
  --gateway-teal: var(--c-brand);

  & .eyebrow { color: var(--c-ink-3); }
  & .analysis-subsection-head > div::before, & .analysis-subsection-head span,
  & .analysis-subsection-head h3 { color: var(--c-ink); }
  & .identity-banner-tagline { color: var(--c-ink-2); }

  & .finance-subtabs button.active, & .ir-section-tabs button.active, & .range-tabs button.active,
  & .side-tabs button.active, & .ir-doc-tabs button.active, & .price-range-tabs button.active,
  & .news-page-tabs button.active, & .claude-section-index button.is-active {
    color: #ffffff;
    background: var(--c-brand);
    border-color: var(--c-brand);
    box-shadow: none;
  }
  & .claude-section-index button.is-active span { color: #aab7ca; }
  & .analysis-toc a.active { color: var(--c-ink); background: var(--c-fill-2); box-shadow: inset 3px 0 0 var(--c-brand); }
  & .analysis-toc a.active span { color: var(--c-ink); }
  & .overview-gateway-cta, & .overview-gateway-secondary-cta, & .overview-risk-cta { color: var(--c-brand); }
  & .toolbar .file-links a.excel-download { color: var(--c-brand); border: 1px solid var(--c-brand); }

  & .sidebar-toggle { color: #aab7ca; }
}
:root:root:root :is(.topbar, .sidebar, .overview-company-hero) {
  --c-ink-2: #dfe6f1; --c-ink-3: #aab7ca; --c-ink-4: #94a2b8;
  --accent: #ffffff;
  --accent-2: var(--c-ink-3);
  --gateway-teal: #ffffff;
}

:root:root:root {

  --t-page: 28px;
  --t-sheet: 22px;
  --t-block: 17px;
  --t-item: 15px;
  --t-sub: 14px;
  --t-body: 15px;
  --t-body-l: 17px;
  --t-cap: 13px;
  --t-meta: 12px;
  --t-mini: 11px;
  --t-fig-l: 34px;
  --t-fig: 26px;
  --t-fig-s: 20px;

  --c-select-fill: var(--c-brand);
  --c-select-ink: #ffffff;
  --c-select-raise: none;
  --c-hover-fill: color-mix(in srgb, var(--c-brand) 8%, transparent);
  --c-hover-ink: var(--c-ink);
  --c-focus: var(--c-brand);

  --ch-grid: #f0f1f3;
  --ch-line: #e6e8eb;
  --ch-axis: #626a75;
  --ch-legend: #5f6773;
  --ch-ink: #353b45;
  --ch-sheet: #ffffff;
  --ch-axis-fs: 11;
  --ch-legend-fs: 12;

  --c-cue-sheet:
    linear-gradient(90deg, #ffffff 30%, rgb(255 255 255 / 0)) left center / 40px 100% no-repeat local,
    linear-gradient(270deg, #ffffff 30%, rgb(255 255 255 / 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(22 25 31 / 0.16), rgb(22 25 31 / 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(22 25 31 / 0.16), rgb(22 25 31 / 0)) right center / 14px 100% no-repeat scroll;

  & .rmbs-section-head h2,
  & .rmbs-overview-body .peer-header h3,
  & #content > .call-summary-title,
  & .section-title { font-size: var(--t-sheet); font-weight: 700; line-height: 1.3; }

  & .chart-head h2,
  & .summary-table-card h2,
  & .rmbs-strip-head h3,
  & .rmbs-geography-head h3,
  & .rmbs-overview-body .outlook-header h3,
  & .rmbs-overview-body .consensus-card .chart-head h2,
  & .call-summary-card .chart-head h2,
  & .overview-hero-thesis h3,
  & .ir-panel-head h2,
  & .ir-document-head h2 { font-size: var(--t-block); font-weight: 700; line-height: 1.35; }

  & .rmbs-financial-card > h3,
  & .rmbs-overview-body .consensus-targets-head h3,
  & .price-trend-header h2 { color: var(--c-ink-3); font-size: var(--t-sub); font-weight: 600; line-height: 1.4; }

  & .rmbs-overview-body .brief-headline,
  & .rmbs-overview-body .brief-headline > strong { font-size: var(--t-item); line-height: 1.5; }
  & .markdown-body.call-summary-body h3 { font-size: var(--t-item); font-weight: 700; line-height: 1.5; }
  & .rmbs-overview-body .brief-bullets,
  & .markdown-body.call-summary-body p,
  & .markdown-body.call-summary-body li,
  & .overview-hero-definition,
  & .rmbs-earnings-unknown { font-size: var(--t-body); }

  & .overview-company-hero h2,
  & .price-trend-value strong,
  & .rmbs-target-main > strong { font-size: var(--t-fig-l); }
  & .overview-hero-name,
  & .overview-hero-kpi-value,
  & .rmbs-mix-labels button > span:first-child > b,
  & .rmbs-financial-primary > strong,
  & .rmbs-financial-balance strong { font-size: var(--t-fig); }
  & .rmbs-donut strong,
  & .rmbs-target-main > span,
  & rmbs-earnings-date time,
  & .rmbs-pe strong { font-size: var(--t-fig-s); }
  & .rmbs-overview-body .consensus-row > strong { font-size: var(--t-block); }
  @container overview-hero (max-width: 900px) {
    & .overview-company-hero h2 { font-size: var(--t-fig); }
  }
  @container rmbs-body (max-width: 600px) {
    & .rmbs-mix-labels button > span:first-child > b { font-size: var(--t-block); }
    & .rmbs-donut strong { font-size: var(--t-body); }
  }

  & .analysis-note-hero h1,
  & .analysis-chapter-head h2 { font-size: var(--t-page); line-height: 1.25; }
  & .analysis-subsection-head span,
  & .analysis-subsection-head h3 { font-size: var(--t-sheet); line-height: 1.35; }
  & .analysis-markdown { font-size: var(--t-body-l); line-height: 1.75; }
  & .analysis-markdown :is(p, ul, ol, h2, h3, h4, blockquote):not(table *) { max-width: 860px; }
  & .analysis-markdown h2 { font-size: var(--t-fig-s); font-weight: 700; }
  & .analysis-markdown h3 { font-size: var(--t-block); font-weight: 700; }
  & .analysis-markdown h4 { color: var(--c-ink-3); font-size: var(--t-item); font-weight: 700; }
  & .analysis-markdown strong { font-weight: 700; }
  & .analysis-markdown blockquote:not(.analysis-quote-verdict) { font-weight: 600; }
  & .analysis-markdown blockquote.analysis-quote-pull { font-size: var(--t-sheet); font-weight: 700; }
  & .analysis-markdown blockquote.analysis-quote-metric { font-size: var(--t-body-l); font-weight: 700; }
  & .analysis-rmbs-poster-detail-list h4 { font-size: var(--t-item); }

  & .analysis-rmbs-poster-source h5 { font-size: var(--t-sub); font-weight: 600; }

  & .rmbs-financial-tabs button[aria-selected=true],
  & .rmbs-overview-body .peer-product-tabs [aria-selected=true],
  & .rmbs-overview-body .peer-mode-tabs [aria-selected=true],
  & .ir-event.active {
    color: #ffffff;
    background: var(--c-brand);
    border-color: var(--c-brand);
    box-shadow: none;
  }
  & .ir-event.active :is(strong, span, small) { color: #ffffff; }
  & :is(.price-range-tabs, .rmbs-financial-tabs, .finance-subtabs, .ir-section-tabs, .ir-doc-tabs, .range-tabs, .side-tabs, .news-page-tabs) button,
  & .rmbs-overview-body :is(.peer-product-tabs, .peer-mode-tabs) button,
  & .rmbs-mix-labels button,
  & .claude-section-index button { transition: background-color 0.12s, color 0.12s; }
  & :is(.price-range-tabs, .rmbs-financial-tabs, .finance-subtabs, .ir-section-tabs, .ir-doc-tabs, .range-tabs, .side-tabs, .news-page-tabs) button:not(.active, [aria-selected=true]):hover,
  & .rmbs-overview-body :is(.peer-product-tabs, .peer-mode-tabs) button:not([aria-selected=true]):hover,
  & .rmbs-mix-labels button:hover { color: var(--c-hover-ink); background: var(--c-hover-fill); }

  & .news-title:hover { text-decoration: underline; text-underline-offset: 3px; }
  & :focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
  & :is(.topbar, .sidebar, .overview-company-hero) :focus-visible { outline-color: #ffffff; }

  & :is(.price-range-tabs, .rmbs-financial-tabs, .finance-subtabs, .ir-section-tabs, .ir-doc-tabs, .range-tabs, .side-tabs) button:focus-visible,
  & .rmbs-overview-body .peer-mode-tabs button:focus-visible { outline-offset: 1px; }

  & .sidebar-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
  & .analysis-markdown a,
  & .markdown-body a:not([class]),
  & .rmbs-method a,
  & .rmbs-overview-body .peer-method a,
  & .rmbs-overview-body .source-links a,
  & .ir-source-links a {
    color: var(--c-brand);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--c-brand) 40%, transparent);
    text-underline-offset: 2px;
  }
  & .source-section summary,
  & .takeaway-more summary { color: var(--c-brand); }

  & .eyebrow { color: var(--c-ink-4); font-size: var(--t-meta); font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; }
  & .price-trend-header > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  & .price-trend-header .eyebrow { margin-bottom: 0; }
  & .overview-hero-kpi-label { font-size: var(--t-cap); font-weight: 500; letter-spacing: 0; font-variant-caps: all-small-caps; }
  & .overview-hero-ticker { font-weight: 500; letter-spacing: 0; }
  & .rmbs-overview-body .brief-tag {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: var(--t-mini);
    font-weight: 600;
    letter-spacing: 0;
  }
  & .ir-snapshot-head span,
  & .source-section summary small { color: var(--c-ink-4); font-weight: 500; letter-spacing: 0; text-transform: none; }
  & .news-page-badge {
    min-height: 0;
    padding: 0;
    color: var(--c-ink-4);
    background: none;
    border: 0;
    border-radius: 0;
    font-size: var(--t-mini);
    font-weight: 500;
  }
  & .news-page-item.has-thumbnail:has(> .news-page-thumb-fallback) { grid-template-columns: 96px minmax(0, 1fr); }
  & .news-page-thumb-fallback { width: 96px; aspect-ratio: auto; gap: 6px; padding: 10px 6px; border: 0; }
  & .news-page-thumb-mark { width: 32px; height: 32px; border-radius: 10px; font-size: var(--t-cap); font-weight: 700; }
  & .news-page-thumb-source { max-width: 100%; color: var(--c-ink-3); font-size: var(--t-mini); }
  & .news-summary-trigger { background: none; text-decoration: underline; text-underline-offset: 3px; }

  & .rmbs-period,
  & .rmbs-flow-meta,
  & .rmbs-overview-body .consensus-card .chart-head > span { color: var(--c-ink-4); font-size: var(--t-meta); font-weight: 500; }
  & .rmbs-overview-body .consensus-card .chart-head > span { padding: 0; background: none; border: 0; border-radius: 0; }
  & .rmbs-geography-head > span,
  & .call-summary-card .chart-head > span { color: var(--c-ink-4); font-size: var(--t-mini); font-weight: 500; }
  & .overview-hero-kpi-foot { display: grid; grid-template-rows: auto auto; align-content: start; justify-items: start; row-gap: 6px; }
  & .overview-hero-kpi-foot > span:not([class]) { color: var(--c-ink-4); font-size: var(--t-meta); }

  & .rmbs-flow-head { justify-content: flex-end; gap: 14px; }
  & .rmbs-flow-meta { margin-left: 0; }

  & .summary-table-card td { font-size: var(--t-cap); font-weight: 500; line-height: 1.3; }
  & .summary-table-card td :is(.up, .down) { display: block; margin-top: 2px; font-size: var(--t-mini); font-weight: 600; }
  & .analysis-markdown table { font-variant-numeric: tabular-nums; }
  & .analysis-markdown th { font-weight: 700; }
  & .analysis-markdown td[data-claude-num] { text-align: right; }
  & .rmbs-overview-body .peer-table th,
  & .rmbs-overview-body .peer-table td { font-size: var(--t-fig-s); }
  & .rmbs-overview-body .peer-table thead th { font-size: var(--t-cap); }
  @container rmbs-body (max-width: 850px) {
    & .rmbs-overview-body .peer-table th,
    & .rmbs-overview-body .peer-table td { font-size: var(--t-block); }
    & .rmbs-overview-body .peer-table thead th { font-size: var(--t-meta); }
  }

  & .ir-notes-grid,
  & .ir-metric-grid { gap: 0; }
  & .ir-snapshot-section {
    padding: 18px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--c-line);
    border-radius: 0;
  }
  & .takeaway-more { border-top-color: var(--c-line-soft); }
  & .rmbs-method-grid { padding: 14px 0 0; background: none; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; }
  & .analysis-chapter-head > span {
    min-width: 0;
    min-height: 0;
    place-items: center start;
    color: var(--c-ink-4);
    background: none;
    font-weight: 600;
    line-height: 1.75;
  }
  & .analysis-markdown blockquote.analysis-quote-metric { background: var(--c-fill); border: 0; border-radius: 12px; }
  & .analysis-subsection-head > div::before { opacity: 0.55; }

  & .claude-section-index,
  & .price-range-tabs,
  & .rmbs-overview-body .peer-product-tabs,
  & .summary-table-wrap {
    background:
      linear-gradient(90deg, var(--cue-bg) 30%, transparent) left center / 40px 100% no-repeat local,
      linear-gradient(270deg, var(--cue-bg) 30%, transparent) right center / 40px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgb(22 25 31 / 0.16), transparent) left center / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgb(22 25 31 / 0.16), transparent) right center / 14px 100% no-repeat scroll;
    background-color: var(--cue-bg);
  }
  & .claude-section-index { --cue-bg: var(--c-canvas); }
  & .price-range-tabs { --cue-bg: var(--c-fill-2); }
  & .rmbs-overview-body .peer-product-tabs,
  & .summary-table-wrap { --cue-bg: var(--c-sheet); }

  & .claude-section-index { gap: 0; padding: 6px 16px; backdrop-filter: none; scroll-snap-type: x proximity; }
  & .claude-section-index.is-idle { position: static; }
  & .claude-section-index button { padding: 0 9px; font-size: var(--t-meta); letter-spacing: -0.01em; scroll-snap-align: start; }
  & .claude-section-index button span { margin-right: 2px; font-size: var(--t-mini); }

  @media (max-width: 820px) {
    --t-page: 24px;
    --t-sheet: 20px;
    --t-fig-l: 28px;
    --t-fig: 24px;

    & .overview-company-hero h2 { font-size: var(--t-page); }
    & .claude-section-index { padding: 6px 8px; }

    & .rmbs-sankey-chart { min-width: 0; height: 520px; }

    & .price-range-tabs,
    & .rmbs-overview-body .peer-product-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }
    & .price-range-tabs::-webkit-scrollbar,
    & .rmbs-overview-body .peer-product-tabs::-webkit-scrollbar { display: none; }
    & .price-range-tabs button { flex: 0 0 auto; padding: 0 10px; scroll-snap-align: start; white-space: nowrap; }
    & .rmbs-overview-body .peer-product-tabs button { flex: 0 0 auto; padding-inline: 10px; scroll-snap-align: start; white-space: nowrap; }

    & .topbar {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "brand brand" "search search" "tabs market";
      align-items: center;
      gap: 6px 8px;
      padding: 8px 14px;
    }
    & .topbar > .brand { grid-area: brand; }
    & .topbar > .search-wrap { grid-area: search; }
    & .topbar > .company-tabs { grid-area: tabs; }
    & .topbar > .market-regime-badge { grid-area: market; justify-self: end; }
    & .sidebar { position: relative; }
    & .mobile-feed-toggle {
      position: absolute;
      top: 10px;
      right: 12px;
      width: auto;
      min-height: 30px;
      gap: 6px;
      padding: 0 10px;
      background: var(--c-fill);
      border: 0;
      border-radius: 9px;
    }
    & .summary-table-card :is(th, td):first-child {
      position: sticky;
      left: 0;
      z-index: 1;
      background: var(--c-sheet);
      box-shadow: 1px 0 0 var(--c-line);
    }
  }
}

:root:root:root .market-regime-badge.is-stale .market-regime-chip.is-neutral {
  color: #94a2b8;
  opacity: 1;
}

:root:root:root {
  --c-id: var(--c-brand); --c-id-chrome: #c3cbd8;

  & .overview-company-hero h2 em, & .overview-company-hero-rmbs .overview-hero-product { color: var(--c-id-chrome); }
  & .rmbs-overview-body .peer-table .subject td, & .rmbs-overview-body .peer-table .subject strong { color: var(--c-id); font-weight: 700; }
  & .identity-banner-tagline { color: var(--c-id); }
  & .news-page-thumb-mark, & .key-summary::before { background: var(--c-id); }
  & .analysis-subsection-head span { color: var(--c-id); }
}

/* Native search dialog uses the top layer above content and sticky tabs. */
:root:root:root {
  & .search-opener { width: 100%; gap: 10px; cursor: pointer; text-align: left; white-space: nowrap; }
  & .search-opener span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
  & .search-opener kbd { font: inherit; font-size: 11px; opacity: .65; }
  & .search-icon { flex: 0 0 auto; }
  & .search-panel {
    --c-sheet: var(--ch-sheet);
    --c-fill: var(--ch-grid);
    --c-fill-2: var(--ch-line);
    --c-line: var(--ch-line);
    --c-ink: var(--c-brand);
    --c-ink-2: var(--ch-ink);
    --c-ink-3: var(--ch-legend);
    --c-ink-4: var(--ch-axis);
    --text: var(--c-ink-2);
    --muted: var(--c-ink-4);
    position: fixed;
    inset: var(--report-search-top, 6dvh) 0 auto;
    width: min(720px, calc(100% - 24px));
    max-width: none;
    max-height: min(var(--report-search-height, 88dvh), calc(100dvh - 24px));
    margin: 0 auto;
    padding: 0;
    color: var(--c-ink-2);
    background: var(--c-sheet);
    border: 1px solid var(--c-line);
    border-radius: 16px;
    box-shadow: 0 24px 80px #07172a40;
    overflow: hidden;
  }
  & .search-panel::backdrop { background: #07172a80; }
  & .search-panel-inner { display: flex; flex-direction: column; max-height: calc(var(--report-search-height, 88dvh) - 2px); box-sizing: border-box; padding: 20px 20px max(12px, env(safe-area-inset-bottom)); }
  & .search-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex: 0 0 auto; }
  & .search-panel-title h2 { margin: 0; color: var(--c-ink); font-size: 19px; }
  & .search-close { min-height: 44px; border: 0; background: transparent; color: var(--c-ink-3); font-size: 13px; padding: 0 4px 0 16px; }
  & .search-close span { margin-left: 8px; font-size: 22px; vertical-align: -1px; }
  & .search-panel-input { height: 48px; gap: 8px; padding: 0 4px 0 14px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-sheet); flex: 0 0 auto; }
  & .search-panel-input:focus-within { outline: 2px solid var(--c-brand); outline-offset: 1px; }
  & .search-panel-input input { height: 44px; min-width: 0; width: 100%; padding: 0; font-size: 16px; color: var(--c-ink); }
  & .search-panel-input input:focus-visible { outline: none; }
  & .search-panel-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
  & .search-clear { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-ink-3); font-size: 24px; }
  & .search-clear[hidden], & .search-availability button[hidden] { display: none; }
  & .search-filters { display: flex; flex: 0 0 auto; gap: 4px; margin-top: 14px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
  & .search-filters button { white-space: nowrap; min-height: 40px; padding: 6px 11px; background: var(--c-sheet); border: 1px solid var(--c-line); border-radius: 20px; color: var(--c-ink-3); font-size: 12px; }
  & .search-filters button[aria-pressed=true] { background: var(--c-brand); color: white; border-color: var(--c-brand); }
  & .search-scope { margin: 4px 0 10px; color: var(--c-ink-3); font-size: 12px; line-height: 1.5; flex: 0 0 auto; }
  & .search-availability { color: var(--c-ink-3); font-size: 12px; line-height: 1.6; flex: 0 0 auto; }
  & .search-availability:has(span:empty) { display: none; }
  & .search-availability button { min-height: 36px; margin-left: 8px; border: 0; background: transparent; text-decoration: underline; color: var(--c-brand); }
  & .search-results-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-top: 1px solid var(--c-line); }
  & .search-results { overflow: visible; }
  & .search-group-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 14px 8px 6px; font-size: 12px; color: var(--c-ink-3); }
  & .search-group-head button { min-height: 32px; border: 0; background: transparent; color: var(--c-brand); font-size: 12px; }
  & .search-option { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px; border: 0; border-radius: 8px; text-align: left; color: var(--c-ink-2); background: var(--c-sheet); }
  & .search-option-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
  & .search-option strong { color: var(--c-ink); font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
  & .search-option .search-option-name { color: var(--c-ink-2); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
  & .search-option .search-option-period { color: var(--c-ink-3); font-size: 11px; overflow-wrap: anywhere; }
  & .search-option .search-option-current { flex: 0 0 auto; color: var(--c-ink-3); font-size: 11px; }
  & .search-option.is-current { background: var(--c-fill); }
  & .search-option:hover, & .search-option.is-active { background: var(--c-fill-2); }
  & .search-option.is-active { box-shadow: inset 0 0 0 2px var(--c-brand); }
  & .search-company-logo { position: relative; display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 44px; border: 1px solid var(--c-line); border-radius: 6px; background: white; color: var(--c-brand); font-size: 12px; font-weight: 700; overflow: hidden; }
  & .search-company-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; background: white; }
  & .search-empty { padding: 24px 8px; color: var(--c-ink-3); font-size: 13px; line-height: 1.7; }
}
@media (max-width: 600px) {
  :root:root:root {
    & .search-panel-inner { padding: 12px 12px max(12px, env(safe-area-inset-bottom)); }
    & .search-panel { width: calc(100% - 16px); border-radius: 12px; }
    & .search-filters { gap: 3px; }
    & .search-filters button { padding-inline: 8px; font-size: 11px; }
    & .search-opener kbd { display: none; }
    & .search-option { gap: 8px; }
  }
}
