/* /indice-precios: editorial data page. No cobre here (CTA colour only). */
.pi h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-top: 2.2em; }
.pi .lede { max-width: 46rem; }
.pi-sub { display: block; color: var(--tinta-45); font-size: .85rem; font-weight: 400; }
.pi-note { background: var(--crema); border-left: 3px solid var(--noche-300); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: 46rem; }
.pi-legal { margin-top: 2.5rem; font-size: .85rem; color: var(--tinta-45); max-width: 46rem; }

.pi-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--tortilla); border: 1px solid var(--tortilla); border-radius: var(--radius); overflow: hidden; margin: 2rem 0; }
@media (min-width: 800px) { .pi-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pi-kpis div { background: var(--lino); padding: 1rem; }
.pi-kpis dt { font: 500 .72rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--tinta-45); }
.pi-kpis dd { margin: .35rem 0 0; font: 500 clamp(1.05rem, 2.6vw, 1.5rem)/1.2 var(--display); font-variant-numeric: tabular-nums; }

.pi-control { background: var(--salvia-100); border-radius: var(--r-card); padding: 1.25rem 1.4rem; margin: 2rem 0; }
.pi-control h2 { margin-top: 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

.pi-feed { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--tortilla); max-width: 46rem; }
.pi-feed li { border-bottom: 1px solid var(--tortilla); padding: .9rem 0; }
.pi-feed p { margin: 0; }
.pi-feed__rule { font: 500 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-45); }

/* Tables scroll inside their box, never the page (390 px). */
.pi-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tortilla); border-radius: var(--radius); margin: 1rem 0; }
.pi-table { border-collapse: collapse; width: 100%; min-width: 880px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pi-table th, .pi-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--arena); vertical-align: top; }
.pi-table thead th { background: var(--crema); font: 600 .75rem/1.3 var(--body); color: var(--tinta-70); position: sticky; top: 0; }
.pi-table tbody th { font-weight: 600; min-width: 11rem; }
.pi-table tbody tr:last-child > * { border-bottom: 0; }

.pi-badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--arena); white-space: nowrap; }
.pi-badge--warn { background: var(--noche); color: #fff; }
.pi-status { font-size: .8rem; color: var(--tinta-70); }
.pi-status--blocked, .pi-status--error, .pi-status--pending, .pi-status--inactive { color: var(--tinta-45); }
.pi-status--manual { font-weight: 600; }

/* Chart: the viewBox gives the box its height before paint (no CLS). */
.pi-fig { margin: 1.5rem 0; max-width: 760px; }
.pi-chart { display: block; width: 100%; height: auto; aspect-ratio: 360 / 230; font-family: var(--body); }
.pi-grid { stroke: var(--arena); stroke-width: .6; }
.pi-ax { fill: var(--tinta-45); font-size: 9.5px; }
.pi-list { fill: none; stroke: var(--tinta-45); stroke-width: 1.4; stroke-dasharray: 4 3; }
.pi-list-dot { fill: var(--lino); stroke: var(--tinta-45); stroke-width: 1.2; }
.pi-sale { fill: none; stroke: var(--noche); stroke-width: 2; }
.pi-sale-dot { fill: var(--noche); }
.pi-simple { fill: none; stroke: var(--salvia); stroke-width: 3.5; stroke-linejoin: round; }
.pi-empty { fill: var(--tinta-45); font-size: 13px; }
.pi-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0 0 .5rem; font-size: .85rem; }
.pi-legend li::before { content: ""; display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: .4rem; }
.pi-l-list::before { border-top: 2px dashed var(--tinta-45); }
.pi-l-sale::before { border-top: 2px solid var(--noche); }
.pi-l-simple::before { border-top: 4px solid var(--salvia); }
