/* ==========================================================================
   Loupe — Category Infographics — shared stylesheet
   Enqueue this file in the child theme (see instructions supplied with it).
   Each infographic HTML block references only these classes; anything that
   is specific to one graphic (colors, bar widths/heights, layout ratios,
   the generated SVGs) stays inline inside that block's own HTML.
   ========================================================================== */

/* Basic font/box-sizing reset scoped to the badge row + card so the blocks
   don't depend on global page styles. No dark background here — these
   infographics are meant to sit directly on an already-dark section. */
.loupe-ig-badge-row,
.loupe-ig-card {
  font-family: 'Montserrat', system-ui, sans-serif;
  box-sizing: border-box;
}
.loupe-ig-badge-row *,
.loupe-ig-card * {
  box-sizing: border-box;
}

/* Small orange "1a" style badge + label above each card */
.loupe-ig-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.loupe-ig-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: #F24C1A;
  border-radius: 5px;
  padding: 5px 9px;
}
.loupe-ig-badge-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #9DB0CE;
}

/* The dark rounded card itself */
.loupe-ig-card {
  background: #11294A;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  overflow: hidden;
  color: #FFFFFF;
  max-width: 700px;
}

.loupe-ig-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.loupe-ig-card-header-tag {
  font-size: 11px;
  font-weight: 600;
  color: #F24C1A;
}
.loupe-ig-card-header-caption {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #9DB0CE;
}

.loupe-ig-card-body {
  padding: 22px 20px 20px;
}

.loupe-ig-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}
.loupe-ig-footer-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #9DB0CE;
}
.loupe-ig-footer-value {
  font-size: 24px;
  font-weight: 300;
  color: #F24C1A;
}

/* Small uppercase grey label used above sub-sections inside a card */
.loupe-ig-section-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9DB0CE;
  margin-bottom: 10px;
}
.loupe-ig-panel-header {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9DB0CE;
  margin-bottom: 10px;
}

/* Legend rows (color swatch + label) */
.loupe-ig-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #9DB0CE;
}
.loupe-ig-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.loupe-ig-legend-dot-sq {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.loupe-ig-legend-dot-round {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.loupe-ig-legend-line {
  width: 14px;
  height: 2px;
  display: inline-block;
}

/* Bordered info/note boxes */
.loupe-ig-info-box {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .04);
}
.loupe-ig-info-box-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9DB0CE;
  margin-bottom: 6px;
}
.loupe-ig-info-box-body {
  font-size: 11.5px;
  color: #9DB0CE;
  line-height: 1.5;
}

/* Small translucent pill / chip */
.loupe-ig-tag-chip {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  padding: 6px 9px;
}

/* Stat tiles stacked with 1px hairline gaps (used in 1c) */
.loupe-ig-tile-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  overflow: hidden;
}
.loupe-ig-metric-tile {
  background: #11294A;
  padding: 13px 14px;
}
.loupe-ig-metric-tile-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9DB0CE;
}
.loupe-ig-metric-tile-value {
  font-size: 22px;
  font-weight: 300;
  margin: 2px 0 6px;
}
.loupe-ig-metric-tile-status {
  font-size: 14px;
  font-weight: 600;
  margin-top: 3px;
}
.loupe-ig-metric-tile-note {
  font-size: 11px;
  color: #9DB0CE;
  margin-top: 3px;
}
.loupe-ig-progress-track {
  height: 4px;
  background: #2E4568;
  border-radius: 2px;
}
.loupe-ig-progress-fill {
  height: 4px;
  border-radius: 2px;
}

/* Findings list rows (used in 1g) */
.loupe-ig-finding-row {
  background: #11294A;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 11px;
  align-items: baseline;
}
.loupe-ig-finding-n {
  font-size: 11px;
  font-weight: 600;
  color: #9DB0CE;
}
.loupe-ig-finding-title {
  font-size: 12.5px;
  font-weight: 600;
}
.loupe-ig-finding-body {
  font-size: 11px;
  color: #9DB0CE;
  line-height: 1.45;
}
.loupe-ig-finding-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
  border-radius: 4px;
  padding: 5px 7px;
  white-space: nowrap;
}

/* Generic horizontal bar track/fill (used in 1d reallocation + 1f query rows) */
.loupe-ig-bar-track {
  position: relative;
  height: 8px;
  background: #2E4568;
  border-radius: 4px;
}
.loupe-ig-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 8px;
  border-radius: 4px;
}
.loupe-ig-query-track {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #2E4568;
}
.loupe-ig-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Timeline / trigger rows (used in 1e) */
.loupe-ig-trigger-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding-bottom: 14px;
}
.loupe-ig-trigger-time {
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  padding-top: 1px;
}
.loupe-ig-trigger-content {
  border-left: 1px solid rgba(255, 255, 255, .16);
  padding-left: 14px;
  position: relative;
}
.loupe-ig-trigger-dot {
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.loupe-ig-trigger-title {
  font-size: 12.5px;
  font-weight: 600;
}
.loupe-ig-trigger-body {
  font-size: 11px;
  color: #9DB0CE;
  line-height: 1.45;
}

/* Cell / dot mosaics (used in 1c product feed + 1g audit dots) */
.loupe-ig-cell-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
}
.loupe-ig-cell {
  aspect-ratio: 1;
  border-radius: 2px;
}
.loupe-ig-dot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}
.loupe-ig-dot {
  aspect-ratio: 1;
  border-radius: 50%;
}

/* Labelled list rows: colored dot + bold label on the left, a secondary
   metric + colored badge on the right (used e.g. for audience/segment
   breakdowns). Row accent color is data-specific and stays inline. */
.loupe-ig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.loupe-ig-row:last-child {
  margin-bottom: 0;
}
.loupe-ig-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.loupe-ig-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.loupe-ig-row-label {
  font-size: 15px;
  font-weight: 700;
  color: #F3F5FA;
}
.loupe-ig-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.loupe-ig-row-metric {
  font-size: 14px;
  font-weight: 600;
  color: #9DB0CE;
}
.loupe-ig-row-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
