/* ============================================================
   BLOCK GAP RESET
   ============================================================ */
.wp-block-custom-tj-case-06-data-visualizations.is-layout-flow {
    gap: 0;
}

/* ============================================================
   RESULTS IN DETAIL COMPONENT — tj-results--id2812399
   ============================================================ */

.tj-results--id2812399 {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%);
}

.tj-results--id2812399 .tj-results__container {
  position: relative;
  width: 80rem;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 6rem;
  padding-bottom: 6rem;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

.tj-results--id2812399 .tj-results__inner {
  position: relative;
  width: 100%;
  max-width: 80rem;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4rem 0;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

/* --- Heading --- */
.tj-results--id2812399 .tj-results__heading {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem 0;
}

.tj-results--id2812399 .tj-results__title {
  position: relative;
  width: 100%;
  font-size: 3.43rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 0.87;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: left;
  color: rgba(17,17,17,1);
  display: block;
  white-space: nowrap;
}

.tj-results--id2812399 .tj-results__accent-bar {
  position: relative;
  width: 100%;
  max-width: 8rem;
  height: 0.5rem;
  display: block;
  background: linear-gradient(0deg, rgba(225,6,0,1) 0%, rgba(225,6,0,1) 100%);
}

/* --- Cards Row --- */
.tj-results--id2812399 .tj-results__cards {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 3rem 3%;
}

/* --- Card Base --- */
.tj-results--id2812399 .tj-results__card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex-grow: 1;
  justify-content: flex-start;
  align-items: flex-start;
  border-radius: 6px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(232,233,236,1);
  background: linear-gradient(0deg, rgba(248,248,248,1) 0%, rgba(248,248,248,1) 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Card hover — subtle border emphasis + tiny elevation only, per brief */
.tj-results--id2812399 .tj-results__card:hover {
  border-color: rgba(225,29,29,0.25);
  box-shadow: 0 4px 16px rgba(17,17,17,0.06);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .tj-results--id2812399 .tj-results__card {
    transition: none;
  }
  .tj-results--id2812399 .tj-results__card:hover {
    transform: none;
  }
}

/* --- Left Card: Calls --- */
.tj-results--id2812399 .tj-results__card--calls {
  width: 48.05%;
  gap: 2rem 0;
  padding-top: 2rem;
  padding-right: 2rem;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

/* --- Right Card: Hours --- */
.tj-results--id2812399 .tj-results__card--hours {
  width: 48.05%;
  gap: 1rem 0;
  padding-top: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  padding-left: 2rem;
}

/* --- Card Header --- */
.tj-results--id2812399 .tj-results__card-header {
  position: relative;
  width: 100%;
  max-width: 32.87rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.tj-results--id2812399 .tj-results__card-title {
  position: relative;
  width: 100%;
  font-size: 1.12rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0em;
  text-decoration: none;
  text-transform: none;
  text-align: left;
  color: rgba(17,17,17,1);
  display: block;
}

/* Screen-reader-only utility (scoped to this block) */
.tj-results--id2812399 .tj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   LEFT CARD: BAR CHART (Volume of Calls by Stage)

   Bar segment heights below are the exact same rem values the
   previous static version shipped with (.bar-overlay--mar 4rem /
   .bar-solid--mar 3rem / .bar-overlay--sep 8rem / .bar-solid--sep
   6rem). Inspection confirmed these proportions are NOT derived
   from the 81%/17% stats (both bars use the identical 3:4 overlay:
   solid ratio regardless of period) - they are decorative visual
   geometry, so the redesign preserves them exactly rather than
   inventing a new data-driven ratio. What changes is presentation:
   real stage-based semantics (stage1/stage2 classes instead of
   solid/overlay), entrance animation, and an interactive legend.
   ============================================================ */

.tj-results--id2812399 .tj-results__viz--bars {
  position: relative;
  width: 100%;
  max-width: 32.87rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 3rem 10%;
  padding-right: 2rem;
  padding-left: 2rem;
}

.tj-results--id2812399 .tj-results__bars-group {
  position: relative;
  width: 61.9%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 3rem 16%;
  justify-content: flex-start;
  align-items: flex-end;
}

/* Individual bar column */
.tj-results--id2812399 .tj-results__bar-col {
  position: relative;
  width: 41.6%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex-grow: 1;
  justify-content: flex-start;
  align-items: center;
}

/* Bar stack */
.tj-results--id2812399 .tj-results__bar-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.25rem 0;
}

/* Bar segment base — fully visible, no transform, by default. This
   is the no-JS / JS-disabled fallback: every value is readable with
   zero script. The "grows from baseline" entrance animation is
   opt-in, scoped entirely under .tj-viz-js (added synchronously by
   custom.js before first paint - see below), so nothing ever
   depends on script for comprehension, only presentation. */
.tj-results--id2812399 .tj-results__bar-seg {
  position: relative;
  width: 100%;
  display: block;
  border-radius: 2px 2px 0px 0px;
}

/* Animated via transform (not height) so the layout box - and
   everything anchored to it - never shifts during the entrance
   animation; only the visual fill grows. */
.tj-viz-js .tj-results--id2812399 .tj-results__bar-seg {
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.tj-viz-js .tj-results--id2812399 .tj-results__viz--bars.is-visible .tj-results__bar-seg {
  transform: scaleY(1);
}

/* Stagger: MAR column first, SEP column follows; within each
   column stage1 (bottom) leads stage2 (top) by a beat so the
   stack reads as growing cohesively rather than two unrelated
   pieces snapping in. */
.tj-viz-js .tj-results--id2812399 .tj-results__bar-col:nth-child(1) .tj-results__bar-seg--stage1 { transition-delay: 0s; }
.tj-viz-js .tj-results--id2812399 .tj-results__bar-col:nth-child(1) .tj-results__bar-seg--stage2 { transition-delay: 0.08s; }
.tj-viz-js .tj-results--id2812399 .tj-results__bar-col:nth-child(2) .tj-results__bar-seg--stage1 { transition-delay: 0.12s; }
.tj-viz-js .tj-results--id2812399 .tj-results__bar-col:nth-child(2) .tj-results__bar-seg--stage2 { transition-delay: 0.2s; }

.tj-results--id2812399 .tj-results__bar-seg--stage2 {
  background: linear-gradient(0deg, rgba(225,29,29,0.4) 0%, rgba(225,29,29,0.4) 100%);
}

.tj-results--id2812399 .tj-results__bar-seg--stage1 {
  background: linear-gradient(0deg, rgba(225,29,29,1) 0%, rgba(225,29,29,1) 100%);
}

.tj-results--id2812399 .tj-results__bar-seg--mar.tj-results__bar-seg--stage2 { height: 4rem; }
.tj-results--id2812399 .tj-results__bar-seg--mar.tj-results__bar-seg--stage1 { height: 3rem; }
.tj-results--id2812399 .tj-results__bar-seg--sep.tj-results__bar-seg--stage2 { height: 8rem; }
.tj-results--id2812399 .tj-results__bar-seg--sep.tj-results__bar-seg--stage1 { height: 6rem; }

/* Legend-linked emphasis: hovering/focusing a legend chip highlights
   its stage across BOTH bars; the other stage steps back slightly
   in opacity but stays clearly readable (never fully dims). */
.tj-results--id2812399 .tj-results__viz--bars[data-active-stage="1"] .tj-results__bar-seg--stage2,
.tj-results--id2812399 .tj-results__viz--bars[data-active-stage="2"] .tj-results__bar-seg--stage1 {
  opacity: 0.55;
}

.tj-results--id2812399 .tj-results__viz--bars[data-active-stage="1"] .tj-results__bar-seg--stage1,
.tj-results--id2812399 .tj-results__viz--bars[data-active-stage="2"] .tj-results__bar-seg--stage2 {
  filter: drop-shadow(0 2px 4px rgba(225,29,29,0.35));
}

/* Bar label wrapper */
.tj-results--id2812399 .tj-results__bar-label-wrap {
  position: relative;
  width: 100%;
  max-width: 2.87rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 1rem;
}

.tj-results--id2812399 .tj-results__bar-label {
  position: relative;
  width: 100%;
  height: 0.93rem;
  font-size: 0.62rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: left;
  color: rgba(107,114,128,1);
  display: block;
  white-space: nowrap;
}

/* --- Legend (replaces the old detached .tj-results__stats column) --- */
.tj-results--id2812399 .tj-results__legend {
  position: relative;
  width: 27.7%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem 0;
}

.tj-results--id2812399 .tj-results__legend-chip {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.4rem 0.4rem 0;
  margin: -0.4rem 0 -0.4rem -0.4rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}

.tj-viz-js .tj-results--id2812399 .tj-results__legend-chip {
  opacity: 0;
  transform: translateX(0.5rem);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.15s ease;
}

.tj-viz-js .tj-results--id2812399 .tj-results__viz--bars.is-visible .tj-results__legend-chip {
  opacity: 1;
  transform: translateX(0);
}

.tj-viz-js .tj-results--id2812399 .tj-results__legend-chip:nth-child(1) { transition-delay: 0.3s; }
.tj-viz-js .tj-results--id2812399 .tj-results__legend-chip:nth-child(2) { transition-delay: 0.4s; }

.tj-results--id2812399 .tj-results__legend-chip:hover,
.tj-results--id2812399 .tj-results__legend-chip:focus-visible {
  background: rgba(225,29,29,0.06);
}

.tj-results--id2812399 .tj-results__legend-chip:focus-visible {
  outline: 2px solid rgba(225,29,29,0.7);
  outline-offset: 2px;
}

.tj-results--id2812399 .tj-results__legend-swatch {
  flex-shrink: 0;
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.3rem;
  border-radius: 2px;
}

.tj-results--id2812399 .tj-results__legend-swatch--stage2 {
  background: rgba(225,29,29,0.4);
}

.tj-results--id2812399 .tj-results__legend-swatch--stage1 {
  background: rgba(178,22,22,1);
}

.tj-results--id2812399 .tj-results__legend-body {
  display: flex;
  flex-direction: column;
  gap: 0.03rem 0;
  min-width: 0;
}

.tj-results--id2812399 .tj-results__stat-value {
  position: relative;
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.33;
  letter-spacing: 0em;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tj-results--id2812399 .tj-results__stat-value--primary {
  color: rgba(225,29,29,1);
}

/* Was rgba(225,29,29,0.6) — measured contrast ~2.7:1 against the
   card background, failing WCAG AA. Solid, darker red keeps the
   brand hue and the "secondary" hierarchy (still visibly less
   saturated/bright than the primary stat) while reaching ~6.5:1. */
.tj-results--id2812399 .tj-results__stat-value--secondary {
  color: rgba(178,22,22,1);
}

.tj-results--id2812399 .tj-results__stat-label {
  position: relative;
  font-size: 0.62rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(107,114,128,1);
  display: block;
  white-space: nowrap;
}

/* Tooltip — supplementary only; the same info is already visible in
   the chip itself and in the .tj-sr-only summary, so this never
   gates access to data, only reinforces the date range on demand. */
.tj-results--id2812399 .tj-results__tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 5;
  width: max-content;
  max-width: 14rem;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  background: rgba(17,17,17,0.95);
  color: rgba(255,255,255,1);
  font-size: 0.68rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.tj-results--id2812399 .tj-results__legend-chip:hover .tj-results__tooltip,
.tj-results--id2812399 .tj-results__legend-chip:focus-visible .tj-results__tooltip {
  /* !important needed only to beat the inline opacity/visibility
     defensive fallback now rendered directly on this element (block.php)
     - that fallback exists so the tooltip can never leak into the
     normal text flow if this stylesheet itself fails to load; when it
     does load (the normal case), this rule still governs the reveal. */
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
}

/* ============================================================
   RIGHT CARD: LINE CHART (Weekly Hours Requested by Client)
   ============================================================ */

.tj-results--id2812399 .tj-results__line-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 32.87rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem 0;
}

.tj-results--id2812399 .tj-results__line-chart-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem 0;
  padding-top: 2rem;
  padding-right: 0.99rem;
  padding-left: 1rem;
}

/* Responsive SVG shell — width scales fluidly, height follows via
   aspect-ratio locked to the SVG's own viewBox (400x140) so
   preserveAspectRatio="xMidYMid meet" never letterboxes and the
   absolutely-positioned marker buttons (using the same percentage
   coordinate space as the viewBox) stay pinned to the curve. */
.tj-results--id2812399 .tj-results__viz--line {
  position: relative;
  width: 100%;
  max-width: 28.87rem;
  aspect-ratio: 400 / 140;
  overflow: visible;
}

.tj-results--id2812399 .tj-results__line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.tj-results--id2812399 .tj-results__line-path {
  fill: none;
  stroke: rgba(225,29,29,1);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Undrawn-by-default fallback lives entirely in JS (inline style,
   set only once JS confirms it can animate) — with no JS at all the
   path has no dasharray/dashoffset and simply renders fully drawn,
   so the chart is always complete and correct without animation. */
.tj-results--id2812399 .tj-results__viz--line.is-drawing .tj-results__line-path {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.tj-results--id2812399 .tj-results__line-point {
  position: absolute;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  padding: 0;
  border: 2px solid rgba(255,255,255,1);
  border-radius: 50%;
  background: rgba(225,29,29,1);
  box-shadow: 0 1px 4px rgba(17,17,17,0.25);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tj-viz-js .tj-results--id2812399 .tj-results__line-point {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.15s ease;
}

.tj-viz-js .tj-results--id2812399 .tj-results__viz--line.is-visible .tj-results__line-point {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.85s;
}

.tj-results--id2812399 .tj-results__line-point:hover,
.tj-results--id2812399 .tj-results__line-point:focus-visible {
  box-shadow: 0 2px 8px rgba(225,29,29,0.45);
  transform: scale(1.25);
}

.tj-viz-js .tj-results--id2812399 .tj-results__viz--line.is-visible .tj-results__line-point:hover,
.tj-viz-js .tj-results--id2812399 .tj-results__viz--line.is-visible .tj-results__line-point:focus-visible {
  transition-delay: 0s;
}

.tj-results--id2812399 .tj-results__line-point:focus-visible {
  outline: 2px solid rgba(225,29,29,0.7);
  outline-offset: 3px;
}

.tj-results--id2812399 .tj-results__line-point .tj-results__tooltip {
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translate(-50%, 4px);
  white-space: nowrap;
}

.tj-results--id2812399 .tj-results__line-point--end .tj-results__tooltip {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.tj-results--id2812399 .tj-results__line-point:hover .tj-results__tooltip,
.tj-results--id2812399 .tj-results__line-point:focus-visible .tj-results__tooltip {
  /* Pre-existing gap found during the release-blocking repair: this
     rule only ever set transform, never opacity/visibility, so hovering
     an endpoint never actually revealed its tooltip even when this
     stylesheet loaded correctly. !important also beats the new inline
     defensive fallback on this element (see block.php). */
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0);
}

.tj-results--id2812399 .tj-results__line-point--end:hover .tj-results__tooltip,
.tj-results--id2812399 .tj-results__line-point--end:focus-visible .tj-results__tooltip {
  transform: translateY(0);
}

/* Line chart labels row */
.tj-results--id2812399 .tj-results__line-chart-labels {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 5rem 15%;
  padding-top: 0.5rem;
}

.tj-results--id2812399 .tj-results__line-label {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-wrap: break-word;
}

.tj-results--id2812399 .tj-results__line-label--end {
  align-items: flex-end;
}

.tj-results--id2812399 .tj-results__line-label-date,
.tj-results--id2812399 .tj-results__line-label-value {
  font-size: 0.56rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0em;
  text-decoration: none;
  text-transform: none;
  display: block;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}

.tj-results--id2812399 .tj-results__line-label-date {
  color: rgba(107,114,128,1);
}

.tj-results--id2812399 .tj-results__line-label-value {
  color: rgba(17,17,17,1);
}

.tj-results--id2812399 .tj-results__line-label--end .tj-results__line-label-date,
.tj-results--id2812399 .tj-results__line-label--end .tj-results__line-label-value {
  text-align: right;
}

/* Caption */
.tj-results--id2812399 .tj-results__caption-wrap {
  position: relative;
  width: 100%;
  max-width: 32.87rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  padding-right: 0.43rem;
  padding-left: 0.43rem;
}

.tj-results--id2812399 .tj-results__caption {
  position: relative;
  width: 100%;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-style: italic;
  line-height: 1.33;
  letter-spacing: 0em;
  text-decoration: none;
  text-transform: none;
  text-align: center;
  color: rgba(74,74,74,1);
  display: block;
}

/* ============================================================
   REDUCED MOTION — final state immediately, no animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .tj-results--id2812399 .tj-results__bar-seg,
  .tj-results--id2812399 .tj-results__legend-chip,
  .tj-results--id2812399 .tj-results__line-point {
    transition: none !important;
  }

  .tj-results--id2812399 .tj-results__bar-seg {
    transform: scaleY(1);
  }

  .tj-results--id2812399 .tj-results__legend-chip {
    opacity: 1;
    transform: none;
  }

  .tj-results--id2812399 .tj-results__line-point {
    opacity: 1;
    transform: scale(1);
  }

  .tj-results--id2812399 .tj-results__line-path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ============================================================
   RESPONSIVE — 1099px
   ============================================================ */
@media (max-width: 1099px) {
  .tj-results--id2812399 .tj-results__inner {
    gap: 3.2rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__heading {
    gap: 1.18rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__title {
    width: 100%;
    font-size: 2.93rem;
  }

  .tj-results--id2812399 .tj-results__cards {
    gap: 2.37rem 3%;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--calls {
    gap: 1.58rem 0;
    width: 48.05%;
  }

  .tj-results--id2812399 .tj-results__card--hours {
    gap: 1rem 0;
    width: calc(49.96% - 1.17rem);
  }

  .tj-results--id2812399 .tj-results__viz--bars {
    gap: 2.29rem 5%;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__bars-group {
    gap: 3rem 5%;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__bar-col {
    width: 35.1%;
    max-width: 7.43rem;
  }

  .tj-results--id2812399 .tj-results__legend {
    gap: 1rem 0;
    width: calc(36.86% - 1.94rem);
  }

  .tj-results--id2812399 .tj-results__line-chart-container {
    gap: 0.75rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__line-chart-labels {
    gap: 3.83rem 5%;
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — 1023px
   ============================================================ */
@media (max-width: 1023px) {
  .tj-results--id2812399 .tj-results__inner {
    gap: 2.4rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__heading {
    gap: 1rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__title {
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__cards {
    gap: 1.75rem 3%;
    width: 100%;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--calls {
    gap: 2rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--hours {
    gap: 1rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card-header {
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__viz--bars {
    gap: 3rem 5%;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__bars-group {
    gap: 3rem 5%;
    width: 48.47%;
  }

  .tj-results--id2812399 .tj-results__bar-col {
    width: 41.6%;
    max-width: 7.43rem;
  }

  .tj-results--id2812399 .tj-results__legend {
    gap: 1rem 0;
    width: calc(24.83% - 1.15rem);
  }

  .tj-results--id2812399 .tj-results__line-chart-container {
    gap: 0.75rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__line-chart-labels {
    gap: 5rem 5%;
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — 767px
   ============================================================ */
@media (max-width: 767px) {
  .tj-results--id2812399 .tj-results__inner {
    gap: 2.03rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__heading {
    gap: 1rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__title {
    width: 100%;
    font-size: 2.18rem;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__cards {
    gap: 1.46rem 3%;
    width: 100%;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--calls {
    gap: 2rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--hours {
    gap: 1rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__viz--bars {
    gap: 3rem 5%;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__bars-group {
    gap: 3rem 5%;
    width: 71.81%;
  }

  .tj-results--id2812399 .tj-results__bar-col {
    width: 35.1%;
    max-width: 7.43rem;
  }

  .tj-results--id2812399 .tj-results__stat-value {
    font-size: 1.25rem;
  }

  .tj-results--id2812399 .tj-results__legend {
    gap: 1rem 0;
    width: calc(25.06% - 1.52rem);
  }

  .tj-results--id2812399 .tj-results__viz--line {
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__line-chart-labels {
    gap: 5rem 5%;
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — 649px
   Mobile association: each period's own bar sits directly above
   its own stage legend chip inside ONE self-contained column, so
   the relationship between a bar and its stat is proximity +
   shared visual grouping, not distant reading order. Stronger than
   the previous mobile fix, which had to interleave two separate
   flex containers (.bars-group / .stats) with `order` tricks to
   fake the same association - here there is only one flex flow to
   begin with, so no reordering hack is needed at all.
   ============================================================ */
@media (max-width: 649px) {
  .tj-results--id2812399 .tj-results__container {
    padding-top: 4.18rem;
    padding-bottom: 4.18rem;
  }

  .tj-results--id2812399 .tj-results__inner {
    padding-right: 1.12rem;
    padding-left: 1.12rem;
    gap: 1.4rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__heading {
    gap: 1rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__title {
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__cards {
    gap: 1rem 3%;
    width: 100%;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--calls {
    padding-top: 1.37rem;
    padding-right: 1.31rem;
    padding-bottom: 1.37rem;
    padding-left: 1.31rem;
    gap: 1.39rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--hours {
    padding-top: 1.37rem;
    padding-right: 1.31rem;
    padding-bottom: 1.37rem;
    padding-left: 1.31rem;
    gap: 1rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card-header {
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__card-title {
    width: 100%;
    max-width: 100%;
  }

  /* Bars + legend become one column; each bar column carries its
     own legend chip directly beneath it. */
  .tj-results--id2812399 .tj-results__viz--bars {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0;
    padding-left: 0;
    gap: 1.5rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__bars-group {
    width: 100%;
    gap: 0 1rem;
    align-items: flex-end;
  }

  .tj-results--id2812399 .tj-results__bar-col {
    width: 50%;
    max-width: none;
  }

  .tj-results--id2812399 .tj-results__legend {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem 1rem;
  }

  .tj-results--id2812399 .tj-results__legend-chip {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 8rem;
  }

  .tj-results--id2812399 .tj-results__line-chart-container {
    padding-top: 1.37rem;
    gap: 0.75rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__viz--line {
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__line-chart-labels {
    gap: 3.51rem 5%;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__caption-wrap {
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__caption {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — 449px
   ============================================================ */
@media (max-width: 449px) {
  .tj-results--id2812399 .tj-results__container {
    padding-top: 2.62rem;
    padding-bottom: 2.62rem;
  }

  .tj-results--id2812399 .tj-results__inner {
    padding-right: 1.06rem;
    padding-left: 1.06rem;
    gap: 1rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__heading {
    gap: 1rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__title {
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__cards {
    gap: 1rem 3%;
    width: 100%;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--calls {
    padding-top: 1rem;
    padding-right: 1.18rem;
    padding-bottom: 1rem;
    padding-left: 1.18rem;
    gap: 1rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card--hours {
    padding-top: 1rem;
    padding-right: 1.18rem;
    padding-bottom: 1rem;
    padding-left: 1.18rem;
    gap: 1rem 0;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__card-header {
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__card-title {
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__viz--bars {
    padding-right: 0;
    padding-left: 0;
    gap: 1.25rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__bars-group {
    gap: 0 0.75rem;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__bar-col {
    width: 50%;
    max-width: none;
  }

  .tj-results--id2812399 .tj-results__legend {
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__legend-chip {
    flex: 1 1 100%;
    min-width: 0;
  }

  .tj-results--id2812399 .tj-results__line-chart-container {
    padding-top: 1rem;
    padding-right: 0.93rem;
    gap: 0.75rem 0;
    width: 100%;
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__viz--line {
    max-width: 100%;
  }

  .tj-results--id2812399 .tj-results__line-chart-labels {
    gap: 1.95rem 5%;
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__caption-wrap {
    width: 100%;
  }

  .tj-results--id2812399 .tj-results__caption {
    width: 100%;
    max-width: 100%;
  }
}
