/* Content carried over from the previous site (legacy articles and Official Information): links, images, tables,
   the research article's charts, notes and citation box, and the Official Information body. Site tokens only. */
.lmc-legacy { overflow-wrap: break-word; }
.lmc-legacy :is(section, div) > p:not(:first-child) { margin-top: 20px; }
.lmc-legacy a:not([class]) { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lmc-legacy a:not([class]):hover { color: var(--accent); }
.lmc-legacy strong { font-weight: 700; color: var(--primary); }
.lmc-legacy ol { list-style: decimal; padding-left: 24px; margin: 28px 0 0; }
.lmc-legacy ol > li { padding-left: 8px; margin-top: 16px; }
.lmc-legacy figure { margin: 40px 0 0; }
.lmc-legacy figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.lmc-legacy section > h3:first-child { margin-top: 0; }
.lmc-legacy h3 { color: var(--primary); }

/* Tables (research article and Official Information) */
.lmc-legacy .lm-table-wrap { width: 0; min-width: 100%; max-width: 100%; overflow-x: auto; margin: 32px 0 0; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.lmc-legacy table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; color: var(--foreground); }
.lmc-legacy .lm-table-wide table { min-width: 760px; }
.lmc-legacy .lm-table-medium table { min-width: 600px; }
.lmc-legacy caption { caption-side: top; padding: 16px 20px; text-align: left; font-family: Outfit, sans-serif; font-size: 18px; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--border); }
.lmc-legacy th, .lmc-legacy td { padding: 12px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.lmc-legacy thead th { background: var(--background); color: var(--primary); font-weight: 700; }
.lmc-legacy tbody th { color: var(--primary); font-weight: 600; }
.lmc-legacy tbody tr:last-child > * { border-bottom: 0; }
.lmc-legacy .lm-table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Research article: byline strip, lede, contents, notes */
.lmc-legacy .lm-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted-foreground); }
.lmc-legacy .lm-strip span:first-child { color: var(--accent); }
.lmc-legacy .lm-strip a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.lmc-legacy p.lede { font-size: 20px; line-height: 1.7; }
.lmc-legacy .lm-toc { margin: 40px 0 0; padding: 24px 28px; border: 1px solid var(--color-e8ede4); border-radius: 16px; background: var(--color-f4f5ef); }
.lmc-legacy .lm-toc p { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-436f2a); }
.lmc-legacy .lm-toc div { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.lmc-legacy .lm-toc a { color: var(--primary); font-weight: 600; text-decoration: none; }
.lmc-legacy .lm-toc a:hover { color: var(--accent); text-decoration: underline; }
.lmc-legacy .lm-publisher-note, .lmc-legacy .lm-metric-note { margin-top: 28px; padding: 20px 24px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--color-f4f5ef); font-size: 16px; }

/* Research article: bar charts */
.lmc-legacy .lm-chart { margin: 40px 0 0; padding: 28px 32px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.lmc-legacy .lm-chart.lm-chart h3 { margin: 0 0 4px; font-size: 24px; }
.lmc-legacy .lm-chart .chart-sub { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.lmc-legacy .lm-chart .legend { display: flex; gap: 24px; margin-bottom: 12px; font-size: 14px; color: var(--muted-foreground); }
.lmc-legacy .lm-chart .legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; background: var(--primary); vertical-align: -1px; }
.lmc-legacy .lm-chart .legend span:nth-child(2)::before { background: var(--accent); }
.lmc-legacy .lm-chart .chart-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; margin: 14px 0; font-size: 14px; line-height: 1.4; }
.lmc-legacy .lm-chart .label { font-weight: 600; color: var(--primary); }
.lmc-legacy .lm-chart .track { position: relative; height: 28px; margin: 6px 0; background: linear-gradient(to right, var(--muted) 1px, transparent 1px) 0 0 / 25% 100%; border-right: 1px solid var(--muted); }
.lmc-legacy .lm-chart .bar { height: 100%; min-width: 1px; border-radius: 0 4px 4px 0; background: var(--primary); }
.lmc-legacy .lm-chart .bar.green { background: var(--accent); }
.lmc-legacy .lm-chart .bar-value { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 0 6px; border-radius: 4px; background: #fff; font-size: 14px; font-weight: 700; color: var(--primary); }
.lmc-legacy .lm-chart .chart-axis { display: flex; justify-content: space-between; margin-left: 198px; font-size: 14px; color: var(--muted-foreground); }
.lmc-legacy .lm-chart figcaption { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.lmc-legacy .lm-chart figcaption a { color: var(--primary); }
.lmc-legacy .lm-chart .credit { display: block; margin-top: 6px; color: var(--color-436f2a); font-weight: 600; }

/* Research article: term-sheet panel (one primary action), sources and citation box */
.lmc-legacy .lm-loan-cta { margin-top: 40px; padding: 28px 32px; border: 1px solid var(--color-e8ede4); border-radius: 16px; background: var(--color-f4f5ef); }
.lmc-legacy .lm-loan-cta p:last-child { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.lmc-legacy a.lm-apply-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 32px; border-radius: 9999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: filter .15s; }
.lmc-legacy a.lm-apply-button:hover { filter: brightness(1.1); color: #fff; }
.lmc-legacy .sources ol { font-size: 16px; }
.lmc-legacy .sources li { margin-top: 12px; }
.lmc-legacy .lm-cite-research { padding: 32px; border-radius: 16px; background: var(--background); border: 1px solid var(--border); }
.lmc-legacy .lm-citation-text { padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.lmc-legacy .lm-citation-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.lmc-legacy .lm-citation-actions button { min-height: 44px; padding: 10px 24px; border: 1px solid var(--primary); border-radius: 9999px; background: transparent; color: var(--primary); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.lmc-legacy .lm-citation-actions button:hover { background: var(--primary); color: #fff; }
.lmc-legacy .lm-citation-status:empty { display: none; }
.lmc-legacy .lm-citation-fallback:not([hidden]) { display: block; width: 100%; margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 16px; }

/* Official Information body (WYSIWYG text blocks under each section heading) */
.lmc-legacy-page { margin-top: 24px; font-size: 16px; line-height: 1.5; color: var(--foreground); }
.lmc-legacy-page p { margin: 0; }
.lmc-legacy-page > * + *, .lmc-legacy-page .elementor-widget-container > * + * { margin-top: 24px; }
.lmc-legacy-page h3 { margin-top: 40px; font-family: Outfit, sans-serif; font-size: 24px; line-height: 1.25; font-weight: 600; }
.lmc-legacy-page ul { list-style: disc; padding-left: 24px; }
.lmc-legacy-page :is(ul, ol) > li { margin-top: 8px; padding-left: 4px; }
.lmc-legacy-page table { display: block; width: 0; min-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.lmc-legacy-page table th, .lmc-legacy-page table td { min-width: 140px; }

@media (max-width: 639px) {
  .lmc-legacy p.lede { font-size: 18px; }
  .lmc-legacy .lm-chart, .lmc-legacy .lm-loan-cta, .lmc-legacy .lm-cite-research { padding: 24px 20px; }
  .lmc-legacy .lm-chart .chart-row { grid-template-columns: 1fr; gap: 4px; }
  .lmc-legacy .lm-chart .chart-axis { margin-left: 0; }
  .lmc-legacy th, .lmc-legacy td { padding: 12px 16px; }
  .lmc-legacy-page h3 { font-size: 22px; }
}
