/* The SEO price index's public pages (issue #1201), inside the Workbench shell. The Workbench colours (--wb-*) come from the shell; every table is a card
   with a tinted header, subtle striping and sortable columns, as the other Workbench tables are. */
.price-index .pi-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .875rem; color: var(--wb-muted-text); }
.price-index .pi-crumbs li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: 0; }
.price-index .pi-crumbs li + li::before { content: "\203A"; color: var(--wb-muted-text); opacity: .7; }
.price-index .pi-crumbs a { color: var(--wb-deep-sky); text-decoration: none; }
.price-index .pi-crumbs a:hover { text-decoration: underline; }
.price-index .pi-lead { max-width: 52rem; margin-bottom: 1.5rem; }
.price-index .pi-prose { max-width: none; font-size: 1.0625rem; }
.price-index .pi-search { max-width: 24rem; }
.price-index .pi-section { margin-top: 2rem; }
.price-index .pi-section > h2, .price-index .pi-family > h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .75rem; }
.price-index .pi-q { font-size: 1.0625rem; margin-top: 1rem; }

/* Stat cards: a grid, so a long trend badge wraps inside its own card instead of running into the next one */
.price-index .pi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.price-index .pi-stats .pi-stat-main { grid-column: span 2; }
.price-index .pi-stat .badge { white-space: normal; text-align: left; font-size: .875rem; line-height: 1.3; }
.price-index .pi-stat { height: 100%; padding: 1rem 1.1rem; border-radius: .5rem; background: var(--wb-mist); }
.price-index .pi-stat-main { box-shadow: inset 3px 0 0 var(--wb-sky); }
.price-index .pi-stat-label { margin-bottom: .25rem; color: var(--wb-muted-text); font-size: .8125rem; }
.price-index .pi-stat-value { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.price-index .pi-stat-main .pi-stat-value { font-size: 1.75rem; }
.price-index .pi-stat-sub { margin-top: .25rem; color: var(--wb-muted-text); font-size: .8125rem; }
.price-index .pi-picks { margin: .25rem 0 .5rem; padding-left: 1.25rem; }

/* Panels: a card with a background, for the methodology's sections and diagrams */
.price-index .pi-panel { margin-bottom: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--primary-border-color); border-radius: .5rem; background: var(--primary-background-color); }
.price-index .pi-panel h2 { margin-top: 0; font-size: 1.25rem; font-weight: 700; }
.price-index .pi-panel p:last-child { margin-bottom: 0; }

/* Tables: card, tinted header, subtle striping, sortable columns */
.price-index .pi-table { width: 100%; min-width: 40rem; margin: 0; table-layout: fixed; }
.price-index .pi-table th:nth-child(1) { width: 32%; }
.price-index .pi-table th:nth-child(2) { width: 26%; }
.price-index .pi-table th:nth-child(3) { width: 28%; }
.price-index .pi-table th:nth-child(4) { width: 14%; }

/* Methodology diagrams: drawn on the server, coloured from the shell's own variables so they follow the light and dark themes */
.price-index .pi-diagram { display: block; width: 100%; height: auto; margin: 1rem 0 0; }
.price-index .pi-d-box { fill: var(--wb-mist); stroke: var(--wb-sky); stroke-width: 1.5; }
.price-index .pi-d-box-solid { fill: var(--wb-sky); }
.price-index .pi-d-line { stroke: var(--wb-muted-text); stroke-width: 1.5; fill: none; }
.price-index .pi-d-arrow { fill: var(--wb-muted-text); }
.price-index .pi-d-text { fill: var(--wb-navy); font-size: 14px; font-weight: 700; }
.price-index .pi-d-small { fill: var(--wb-muted-text); font-size: 12px; }
.price-index .pi-d-onsolid { fill: #fff; font-size: 13px; font-weight: 700; }
.price-index .pi-d-kept { fill: var(--wb-sky); }
.price-index .pi-d-left { fill: var(--wb-muted-text); opacity: .45; }
.price-index .pi-d-range { fill: var(--wb-sky); opacity: .85; }
.price-index .pi-d-shown { fill: none; stroke: var(--wb-deep-sky); stroke-width: 2; stroke-dasharray: 5 4; }
.price-index .pi-d-dot { fill: var(--wb-deep-sky); }
.price-index .pi-caption { margin: 1.25rem 0 1.25rem; color: var(--wb-muted-text); font-size: .8125rem; text-align: center; }
.price-index .pi-more { margin-left: .25rem; color: var(--wb-muted-text); font-size: .8125rem; border-bottom: 1px dotted currentColor; cursor: help; white-space: nowrap; }

/* On a phone a diagram keeps a readable size and scrolls sideways inside its panel, rather than shrinking its text to a few pixels */
.price-index .pi-diagram-wrap { overflow-x: auto; }
@media (max-width: 767.98px) { .price-index .pi-diagram { min-width: 620px; } }
