.cpi-chart [hidden] { display: none; }
.detail-body .cpi-chart #cpi-period { margin: .55rem 0 0; color: var(--navy); }
.cpi-chart .cpi-readings { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: .14rem; margin-bottom: 1rem; }
.cpi-readings dt { display: flex; align-items: center; gap: .35rem; font: .8rem/1.4 var(--sans); }
.cpi-readings dt::before { content: ''; flex: 0 0 .85rem; border-top: 2px solid var(--series-color); }
.cpi-readings .core dt::before { border-top-style: dashed; }
.cpi-value { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.cpi-chart .headline { --series-color: var(--navy); }
.cpi-chart .core { --series-color: #89652e; }
.cpi-chart-grid { display: grid; grid-template-columns: 2.45rem minmax(0, 1fr); }
.cpi-axis-y, .cpi-axis-x { position: relative; color: var(--muted); font: .8rem/1.25 var(--sans); }
.cpi-axis-y { margin-right: .4rem; text-align: right; }
.cpi-axis-y span { position: absolute; top: var(--y); right: 0; transform: translateY(-50%); }
.cpi-axis-x { grid-column: 2; height: 1.8rem; }
.cpi-tick { position: absolute; left: var(--x); top: .12rem; transform: translateX(-50%); color: var(--muted); border: 0; background: transparent; padding: .32rem .1rem; font: inherit; white-space: nowrap; cursor: pointer; }
.cpi-tick[aria-pressed=true] { color: var(--navy); font-weight: 700; }
.cpi-tick:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.cpi-plot { position: relative; height: clamp(124px, 25vw, 192px); cursor: crosshair; touch-action: pan-y; }
.cpi-gridline { position: absolute; inset-inline: 0; top: var(--y); border-top: 1px solid var(--line); pointer-events: none; }
.cpi-gridline.is-baseline { border-top-color: var(--muted); }
.cpi-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cpi-path polyline { fill: none; stroke: var(--series-color); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.cpi-path .core { stroke-dasharray: 6 4; }
.cpi-probe, .cpi-point { position: absolute; left: var(--x); pointer-events: none; }
.cpi-probe { top: 0; bottom: 0; border-left: 1px dashed var(--muted); }
.cpi-point { top: var(--y); width: .55rem; height: .55rem; border: 1px solid var(--ivory); border-radius: 50%; background: var(--series-color); transform: translate(-50%,-50%); }
.cpi-data { margin-top: .5rem; color: var(--navy); font: .85rem/1.65 var(--sans); }
.cpi-data summary { cursor: pointer; }
.cpi-data table { margin-top: .4rem; }
.cpi-monthly th:first-child { width: 42%; }
.cpi-contributions col:nth-child(1) { width: 16%; }
.cpi-contributions col:nth-child(2) { width: 29%; }
.cpi-contributions col:nth-child(3) { width: 22%; }
.cpi-contributions col:nth-child(4) { width: 33%; }
.cpi-contributions tbody td:nth-child(3), .cpi-contribution-unit { white-space: nowrap; }
html[lang=en] .cpi-contributions col:nth-child(1) { width: 21%; }
html[lang=en] .cpi-contributions col:nth-child(2) { width: 23%; }
html[lang=en] .cpi-contributions col:nth-child(3) { width: 22%; }
html[lang=en] .cpi-contributions col:nth-child(4) { width: 34%; }
@media (max-width: 700px) {
  .cpi-guide-header .mobile-menu { margin-inline-start: 0; }
}
@media (max-width: 550px) {
  .cpi-chart-grid { grid-template-columns: 2.1rem minmax(0,1fr); }
  .cpi-axis-x { font-size: .68rem; }
  .cpi-axis-y { font-size: .72rem; }
}
@media (max-width: 350px) {
  html[lang=en] .cpi-contributions th,
  html[lang=en] .cpi-contributions td { padding-inline: .25rem; font-size: .8rem; }
}
