/* Compact demonstration carousel inside the original methodology grid. */
.analysis-showcase { margin: 0; min-width: 0; padding: 22px 22px 0; background: var(--white); box-shadow: var(--shadow-soft); color: var(--navy-900); container-type: inline-size; }
.analysis-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.analysis-track::-webkit-scrollbar { display: none; }
.analysis-panel { flex: 0 0 100%; min-width: 0; padding: 18px; background: #f3f6f8; scroll-snap-align: start; font-variant-numeric: tabular-nums; }
.analysis-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 17px; border-bottom: 1px solid #dce3e8; }
.analysis-panel-head > div { display: flex; align-items: center; gap: 16px; }
.analysis-panel-head h3 { margin: 0; font-family: var(--font-display); font-size: 1rem; letter-spacing: -.02em; line-height: 1.4; }
.analysis-panel-head p { color: #536877; margin: 3px 0 0; font-size: .68rem; }
.analysis-period { flex-shrink: 0; font-size: .75rem; text-align: right; font-weight: 700; }
.analysis-period span { display: block; color: #536877; font-size: .65rem; font-weight: 500; margin-top: 3px; }
.analysis-metrics { display: grid; grid-template-columns: repeat(4,1fr); padding: 20px 0; }
.analysis-metric { padding: 0 20px; border-left: 1px solid #dce3e8; }
.analysis-metric:first-child { padding-left: 0; border-left: 0; }
.analysis-metric span,.analysis-metric strong,.analysis-metric small { display: block; }
.analysis-metric span { font-size: .7rem; color: #536877; }
.analysis-metric strong { font-family: var(--font-display); font-size: clamp(1.2rem,2.1vw,1.8rem); font-weight: 700; letter-spacing: -.035em; margin: 3px 0; line-height: 1.4; }
.analysis-metric small { font-size: .64rem; color: #536877; }
.analysis-body { display: grid; grid-template-columns: 1.45fr 1fr; column-gap: 30px; padding: 15px 0 17px; border-top: 1px solid #dce3e8; }
.analysis-chart { min-width: 0; }
.analysis-chart + .analysis-chart { border-left: 1px solid #dce3e8; padding-left: 30px; }
.analysis-chart-title { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 12px; }
.analysis-chart-title h4 { margin: 0; font-size: .75rem; font-weight: 700; }
.analysis-chart-title > span { color: #536877; font-size: .63rem; text-align: right; }
.analysis-svg { display: block; width: 100%; height: 187px; overflow: visible; }
.analysis-svg text { font-family: var(--font-body); font-size: 11px; fill: #536877; }
.analysis-svg .chart-value { fill: var(--navy-900); font-weight: 700; }
.chart-grid { stroke: #e2e8ec; stroke-width: 1; }
.analysis-legend { display: flex; gap: 20px; justify-content: center; margin-top: 2px; color: #536877; font-size: .62rem; }
.analysis-legend span { display: flex; align-items: center; gap: 7px; }
.analysis-legend i { width: 14px; height: 3px; background: var(--series); }
.analysis-table { border-collapse: collapse; width: 100%; font-size: .72rem; }
.analysis-table th, .analysis-table td { border-bottom: 1px solid #e2e8ec; padding: 9px 8px; text-align: right; white-space: nowrap; }
.analysis-table th:first-child { text-align: left; padding-left: 0; font-weight: 500; }
.analysis-table thead th { color: #536877; font-size: .63rem; font-weight: 500; }
.analysis-table tbody tr:last-child { font-weight: 700; }
.analysis-table tbody tr:last-child th { font-weight: 700; }
.analysis-heat tbody td:last-child { background: #edf3f5; font-weight: 700; }
.analysis-heat tbody tr:first-child td:last-child { background: #123c60; color: white; }
.analysis-heat tbody tr:nth-child(2) td:last-child { background: #d7e5eb; }
.analysis-heat tbody tr:last-child, .analysis-heat tbody tr:last-child th { font-weight: 500; }
.analysis-hbars { display: grid; gap: 18px; padding-top: 16px; }
.analysis-hbars > div { display: grid; grid-template-columns: 100px 1fr 42px; align-items: center; gap: 12px; font-size: .68rem; }
.analysis-hbars strong { text-align: right; font-weight: 600; }
.analysis-bar-track { height: 14px; background: #edf2f5; }
.analysis-bar-track i { display: block; height: 100%; background: #2c587a; }

.analysis-panel-head { gap: 12px; padding-bottom: 16px; }
.analysis-panel-head > div { gap: 10px; }
.analysis-panel-head h3 { font-size: .82rem; max-width: 32ch; }
.analysis-period { font-size: .62rem; }
.analysis-period span { font-size: .6rem; }
.analysis-metrics { gap: 14px 0; padding: 18px 0; }
.analysis-metric { padding: 0 10px; }
.analysis-metric span { font-size: .62rem; line-height: 1.5; min-height: 3em; }
.analysis-metric strong { font-size: clamp(.9rem, 2.9cqw, 1.25rem); margin: 5px 0; white-space: nowrap; }
.analysis-metric small { font-size: .6rem; line-height: 1.5; }
.analysis-body { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 16px 0 0; }
.analysis-chart + .analysis-chart { border-left: 0; border-top: 1px solid #dce3e8; padding: 16px 0 0; }
.analysis-chart-title { margin-bottom: 8px; gap: 10px; }
.analysis-chart-title h4 { font-size: .68rem; }
.analysis-chart-title > span { font-size: .6rem; }
.analysis-svg { height: auto; max-height: 170px; }
.analysis-svg text { font-size: 14px; }
.analysis-table { font-size: .68rem; }
.analysis-table th,.analysis-table td { padding: 6px 7px; }
.analysis-table thead th { font-size: .6rem; }
.analysis-hbars { gap: 14px; padding-top: 12px; }
.analysis-hbars > div { grid-template-columns: 95px 1fr 38px; font-size: .67rem; }
.analysis-small-note,.analysis-footnote { grid-column: 1 / -1; margin: 6px 0 0; font-size: .6rem; color: #536877; line-height: 1.6; }
.analysis-gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0; }
.analysis-caption { background: var(--navy-900); color: var(--white); padding: 15px 20px; margin-left: -38px; min-width: 225px; }
.analysis-caption strong,.analysis-caption span { display: block; }
.analysis-caption strong { font-size: .69rem; font-weight: 600; }
.analysis-caption span { color: #c8d8e5; font-size: .6rem; margin-top: 3px; }
.analysis-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.analysis-counter { font-size: .62rem; font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: 5px; }
.analysis-controls button { display: grid; place-items: center; width: 32px; height: 36px; border: 1px solid #dce3e8; color: var(--navy-900); background: transparent; cursor: pointer; }
.analysis-controls button:hover { background: #edf2f5; }
.analysis-controls svg { width: 17px; height: 17px; }
.analysis-prev svg { transform: rotate(180deg); }
.play-glyph,.analysis-toggle.is-paused .pause-glyph { display: none; }
.analysis-toggle.is-paused .play-glyph { display: block; }
.analysis-showcase:not(.is-enhanced) .analysis-toggle { display: none; }
@container (min-width: 550px) {
  .analysis-body { grid-template-columns: 1fr 1fr; gap: 18px; }
  .analysis-chart + .analysis-chart { border-top: 0; border-left: 1px solid #dce3e8; padding: 0 0 0 18px; }
  .analysis-svg { height: 190px; max-height: none; }
  .analysis-svg text { font-size: 19px; }
  .analysis-hbars > div { grid-template-columns: 76px 1fr 30px; gap: 6px; font-size: .6rem; }
  .analysis-chart-title { align-items: start; flex-direction: column; gap: 2px; }
}
@media (max-width: 1040px) {
  .analysis-showcase { width: min(100%,840px); margin-left: auto; margin-top: 32px; }
}
@media (max-width: 620px) {
  .analysis-showcase { padding: 12px 12px 0; margin-top: 18px; }
  .analysis-panel { padding: 14px; }
  .analysis-panel-head { align-items: start; }
  .analysis-panel-head h3 { font-size: .76rem; }
  .analysis-metrics { grid-template-columns: 1fr 1fr; }
  .analysis-metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .analysis-metric span { min-height: 0; font-size: .68rem; }
  .analysis-metric strong { font-size: 1.15rem; }
  .analysis-metric small { font-size: .65rem; }
  .analysis-svg text { font-size: 20px; }
  .analysis-svg .chart-value { font-size: 18px; }
  .analysis-gallery-footer { flex-wrap: wrap; }
  .analysis-caption { margin-left: -12px; min-width: 0; padding: 13px 16px; }
  .analysis-controls { margin-left: auto; }
  .analysis-controls button { width: 40px; height: 40px; }
  .analysis-small-note,.analysis-footnote { font-size: .65rem; }
}
