/*
  The weekly jobs roundup's chart panels - owner, 7 November 2026. Namespaced
  c-jc-*.

  A plain file rather than an import, because a component's imported CSS goes
  into the route's stylesheet whether or not the component renders: every
  article on the site carried these rules for the one a week that uses them,
  next/dynamic included (found by tests/e2e/jobs-roundup-article.spec.ts). The
  component links to this, and React brings the link up into the head once.

  Always dark, in both site themes: one surface, so one palette to check, and
  the panels read as the same thing as the Hiring Index's share card. The five
  slice colours and the ordered ramp were run through the data-viz validator
  against --jc-surface: worst neighbouring pair under colour blindness 9.6
  (target 8), wrap-around included. Text never wears them.

  Margins are set by gaps on flex and grid parents. `.a-prose` gives every p,
  ul and figcaption its own, and these are reset below rather than fought one
  class at a time.
*/

.c-jc {
  --jc-surface: #0c0d10;
  --jc-ink: #f0efec;
  --jc-soft: #c9c9d1;
  --jc-muted: #9a9aa3;
  --jc-rule: #252830;
  --jc-track: #1d2027;
  --jc-bar: #c77df5;
  --jc-up: #22c55e;
  --jc-down: #ff6bb4;

  container: c-jc / inline-size;
  counter-increment: c-jc-shot 10;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px 18px;
  background-color: var(--jc-surface);
  background-image: linear-gradient(215deg, rgba(199, 125, 245, 0.2) 0%, rgba(199, 125, 245, 0) 42%);
  border: 1px solid var(--jc-rule);
  color: var(--jc-ink);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  line-height: 1.35;
}

/* Gate corners: the marks a projector's gate leaves on a frame (brief §15). */
.c-jc::before {
  content: '';
  position: absolute;
  inset: 7px;
  pointer-events: none;
  --jc-corner: rgba(240, 239, 236, 0.32);
  background:
    linear-gradient(var(--jc-corner), var(--jc-corner)) left top / 12px 1px no-repeat,
    linear-gradient(var(--jc-corner), var(--jc-corner)) left top / 1px 12px no-repeat,
    linear-gradient(var(--jc-corner), var(--jc-corner)) right top / 12px 1px no-repeat,
    linear-gradient(var(--jc-corner), var(--jc-corner)) right top / 1px 12px no-repeat,
    linear-gradient(var(--jc-corner), var(--jc-corner)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--jc-corner), var(--jc-corner)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--jc-corner), var(--jc-corner)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--jc-corner), var(--jc-corner)) right bottom / 1px 12px no-repeat;
}

/* The prose's own rules for what sits inside it, undone once. */
.c-jc.c-jc p,
.c-jc.c-jc ul,
.c-jc.c-jc ol,
.c-jc.c-jc dl,
.c-jc.c-jc dd,
.c-jc.c-jc li {
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}
.c-jc.c-jc a {
  color: inherit;
  text-decoration: none;
}
/* `.a-prose figcaption` sets its own colour and type, and its muted grey is unreadable on this surface. */
.c-jc.c-jc .c-jc-slate {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  font-size: var(--text-3xs);
  letter-spacing: 0.08em;
  color: var(--jc-soft);
}

.a-prose > .c-jc {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  margin-block: 28px 32px;
}
/*
  In the article and its preview: wider than the words, so the charts have room
  and the page has a rhythm. Not on the admin's page, whose column has a rail of
  controls beside it for them to run over.
*/
@media (min-width: 1000px) {
  main.site-article .a-prose > .c-jc {
    width: min(960px, calc(100vw - 48px));
    margin-inline: calc(50% - min(960px, 100vw - 48px) / 2);
    margin-block: 36px 40px;
  }
  /*
    The panels reach past the share rail's column, so on this article the rail
    is a row above them, as it is on a phone, rather than a strip they would
    pass over. Only here: these rules load with the panels.
  */
  .site-article-layout:has(.c-jc) {
    display: block;
    margin-left: 0;
  }
  .site-article-layout:has(.c-jc) > .c-share-rail {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
  }
  .site-article-layout:has(.c-jc) > .c-share-rail .c-share-label {
    margin-bottom: 0;
  }
}

/* The card, at the foot of the article, once its figures have been read. */
.c-jc-card {
  margin: var(--space-8) 0;
}
.c-jc-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- the slate line ---------------------------------------------------------- */

.c-jc-slate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jc-soft);
}
.c-jc-label {
  flex: 1 1 auto;
  min-width: 0;
}
.c-jc-slate-date {
  color: var(--jc-muted);
}
.c-jc-shot {
  color: var(--jc-muted);
  white-space: nowrap;
}
/* WK45_SH020: shot numbers in tens, the way a VFX shot list runs. Moving or taking out a panel renumbers the rest. */
.c-jc-shot::after {
  content: '_SH0' counter(c-jc-shot);
}

.c-jc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: var(--text-4xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jc-muted);
}
.c-jc-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c-jc-key.is-plain {
  letter-spacing: 0.04em;
}
.c-jc-swatch {
  flex: none;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--jc-c);
}
.c-jc-note {
  font-family: var(--font-mono);
  font-size: var(--text-4xs);
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--jc-muted);
}

/* The colours. A mark takes --jc-c from one of these, as a fill or a stroke. */
.c-jc .is-new { --jc-c: var(--jc-bar); }
.c-jc .is-closed { --jc-c: #7b808c; }
.c-jc .is-open { --jc-c: var(--jc-bar); }
.c-jc .is-fresh { --jc-c: var(--jc-up); }
.c-jc .is-more { --jc-c: var(--jc-up); }
.c-jc .is-less { --jc-c: var(--jc-down); }
.c-jc .is-rest { --jc-c: #6b6f7a; }
.c-jc .is-s1 { --jc-c: #b25bff; }
.c-jc .is-s2 { --jc-c: #07a4a4; }
.c-jc .is-s3 { --jc-c: #be810a; }
.c-jc .is-s4 { --jc-c: #ff309d; }
.c-jc .is-s5 { --jc-c: #03a14a; }
.c-jc .is-o1 { --jc-c: #70509a; }
.c-jc .is-o2 { --jc-c: #8a5bbe; }
.c-jc .is-o3 { --jc-c: #a56ddc; }
.c-jc .is-o4 { --jc-c: #bf88ee; }
.c-jc .is-o5 { --jc-c: #d6acf6; }
.c-jc .is-o6 { --jc-c: #ead2fb; }

/* --- the headline ------------------------------------------------------------- */

.c-jc--headline {
  gap: 20px;
  padding: 24px 20px 20px;
  background-image: linear-gradient(215deg, rgba(199, 125, 245, 0.34) 0%, rgba(199, 125, 245, 0) 56%);
}
.c-jc-head {
  display: grid;
  gap: 20px;
}
.c-jc-head-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-jc-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-dark, #c77df5);
}
.c-jc-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 26cqi, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--jc-ink);
}
.c-jc-lede {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--jc-soft);
}
.c-jc-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--jc-rule);
  border: 1px solid var(--jc-rule);
}
.c-jc-tiles > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--jc-surface);
}
.c-jc-tiles dt {
  font-family: var(--font-mono);
  font-size: var(--text-4xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jc-muted);
}
.c-jc-tiles dd {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.c-jc-tiles b {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--jc-ink);
}
.c-jc-tiles b.is-up {
  color: var(--jc-up);
}
/* A city's name fits its tile on a phone, rather than breaking in the middle ("Vancouv-er"). */
.c-jc-tiles b.is-word {
  font-size: clamp(1.25rem, 6.2cqi, 1.75rem);
  overflow-wrap: break-word;
}
.c-jc-tiles a:hover b {
  color: var(--accent-on-dark, #c77df5);
}
.c-jc-tiles dd > span {
  font-family: var(--font-mono);
  font-size: var(--text-4xs);
  letter-spacing: 0.03em;
  color: var(--jc-muted);
}
.c-jc-tiles dd > span.is-up {
  color: var(--jc-up);
}
.c-jc-tiles dd > span.is-down {
  color: var(--jc-down);
}

/* --- the trend line ------------------------------------------------------------ */

.c-jc-trend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.c-jc-trend-plot {
  position: relative;
}
.c-jc-trend svg {
  display: block;
  width: 100%;
  height: 64px;
}
.c-jc-trend-area {
  fill: rgba(199, 125, 245, 0.14);
}
.c-jc-trend-line {
  fill: none;
  stroke: var(--jc-bar);
  stroke-width: 2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* Beside the drawing, which stretches: inside it this circle would be an oval. */
.c-jc-trend-dot {
  position: absolute;
  right: -4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--jc-bar);
  box-shadow: 0 0 0 2px var(--jc-surface);
}
.c-jc-trend-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--text-4xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jc-muted);
}
.c-jc-trend-ends span:nth-child(2) {
  display: none;
}

/* --- the pulse ------------------------------------------------------------------ */

.c-jc-weeks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}
.c-jc-week {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.c-jc-week-plot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 148px;
  padding-top: 18px;
  border-bottom: 1px solid var(--jc-rule);
}
.c-jc-col {
  position: relative;
  flex: 1 1 0;
  max-width: 24px;
  min-height: 0;
  background: var(--jc-c);
  border-radius: 3px 3px 0 0;
  opacity: 0.62;
}
.c-jc-week.is-current .c-jc-col {
  opacity: 1;
}
.c-jc-col b {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--jc-soft);
}
/* Closed is told by its height and printed only on the week under way, so the numbers stay few enough to read. */
.c-jc-col.is-closed b {
  display: none;
}
.c-jc-week.is-current .c-jc-col.is-closed b {
  display: block;
}
.c-jc-tick {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--jc-muted);
}
.c-jc-week.is-current .c-jc-tick {
  color: var(--jc-ink);
}
.c-jc-week.is-alt .c-jc-tick {
  visibility: hidden;
}
/* --- ranked bars ----------------------------------------------------------------- */

.c-jc-rows {
  display: grid;
  gap: 0;
}
.c-jc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 40px;
  align-items: center;
  gap: 6px 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(37, 40, 48, 0.7);
}
.c-jc-rows.is-plain .c-jc-row {
  grid-template-columns: minmax(0, 1fr) 40px;
}
.c-jc-row .c-jc-name {
  grid-column: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--jc-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
a.c-jc-row:hover .c-jc-name {
  color: var(--accent-on-dark, #c77df5);
}
.c-jc-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--jc-ink);
}
.c-jc-plus {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--jc-up);
}
.c-jc-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 2px;
  height: 8px;
  overflow: hidden;
  background: var(--jc-track);
  border-radius: 0 3px 3px 0;
}
.c-jc-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--jc-c);
}
.c-jc-bar i:last-child {
  border-radius: 0 3px 3px 0;
}

/* A studio's row: its rank and logo, then the same parts. */
.c-jc-rows.is-ranked .c-jc-row {
  grid-template-columns: 18px 32px minmax(0, 1fr) 40px 34px;
}
.c-jc-rows.is-ranked .c-jc-name {
  grid-column: 3;
}
.c-jc-rows.is-ranked .c-jc-bar {
  grid-column: 3 / -1;
}
.c-jc-rank {
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  text-align: right;
  color: var(--jc-muted);
}
/* White under every logo, whatever the page behind: most are drawn for a white page and some would vanish on black. */
.c-jc-logo {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #6e1ba8;
}
.c-jc-logo img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.c-jc-rows.is-ranked .c-jc-rank {
  grid-row: span 2;
}

/* --- what moved -------------------------------------------------------------------- */

.c-jc-groups {
  display: grid;
  gap: 20px;
}
.c-jc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.c-jc-movers {
  display: grid;
}
.c-jc-mover {
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(37, 40, 48, 0.7);
}
.c-jc-mover .c-jc-name {
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
a.c-jc-mover:hover .c-jc-name {
  color: var(--accent-on-dark, #c77df5);
}
.c-jc-diverge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 10px;
}
.c-jc-side {
  display: flex;
  min-width: 0;
  height: 100%;
}
.c-jc-side.is-less {
  justify-content: flex-end;
  border-right: 1px solid var(--jc-muted);
}
.c-jc-side i {
  display: block;
  height: 100%;
  background: var(--jc-c);
}
.c-jc-side.is-more i {
  border-radius: 0 3px 3px 0;
}
.c-jc-side.is-less i {
  border-radius: 3px 0 0 3px;
}
.c-jc-moved {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.c-jc-moved.is-up {
  color: var(--jc-up);
}
.c-jc-moved.is-down {
  color: var(--jc-down);
}

/* --- pies --------------------------------------------------------------------------- */

.c-jc-pies {
  display: grid;
  gap: 22px;
}
.c-jc-pie {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.c-jc-pie-title {
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jc-soft);
}
.c-jc-pie-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.c-jc-ring {
  display: block;
  width: 100%;
  height: auto;
}
.c-jc-ring-track {
  fill: none;
  stroke: var(--jc-track);
  stroke-width: 15;
}
.c-jc-slice {
  fill: none;
  stroke: var(--jc-c);
  stroke-width: 15;
  transition: stroke-width var(--duration-state, 150ms) var(--ease, ease-out);
}
.c-jc-slice:hover {
  stroke-width: 18;
}
@media (prefers-reduced-motion: reduce) {
  .c-jc-slice {
    transition: none;
  }
}
.c-jc-ring-big {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  fill: var(--jc-ink);
}
.c-jc-ring-small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  fill: var(--jc-muted);
}
.c-jc-pie-keys {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.c-jc-pie-keys li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: var(--text-2xs);
}
.c-jc-pie-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--jc-soft);
}
.c-jc-pie-keys b {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--jc-ink);
}

/* --- the map ------------------------------------------------------------------------ */

.c-jc-map {
  position: relative;
}
.c-jc-map img {
  display: block;
  width: 100%;
  height: auto;
}
.c-jc-map-marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.c-jc-city {
  fill: #e7c6fb;
  stroke: var(--jc-surface);
  stroke-width: 1;
}
.c-jc-map-marks a:hover .c-jc-city {
  fill: #fff;
}
.c-jc-city-name {
  display: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--jc-ink);
  paint-order: stroke;
  stroke: var(--jc-surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.c-jc-city-count {
  fill: #e7c6fb;
}
.c-jc-where {
  display: grid;
  gap: 22px;
}
.c-jc-cities {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* --- the newest roles ----------------------------------------------------------------- */

.c-jc-roles {
  display: grid;
}
.c-jc-role {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(37, 40, 48, 0.7);
}
.c-jc-role b {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--jc-ink);
}
a.c-jc-role:hover b {
  color: var(--accent-on-dark, #c77df5);
}
.c-jc-role span {
  font-family: var(--font-mono);
  font-size: var(--text-4xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jc-muted);
}

/* --- for studios ------------------------------------------------------------------------ */

.c-jc-ways {
  display: grid;
  gap: 24px;
}
.c-jc-way {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.c-jc-way-title {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--jc-ink);
}
.c-jc-way-text {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--jc-soft);
}
/* Three classes, or the reset above takes the margin that lines the two rows of buttons up. */
.c-jc.c-jc .c-jc-way-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 4px;
}
/* The prose's own link rules are undone above with two classes, so these need three. */
.c-jc.c-jc a.c-jc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #3a3d48;
  border-radius: var(--radius-control, 2px);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--jc-ink);
}
.c-jc.c-jc a.c-jc-btn:hover {
  border-color: var(--jc-bar);
}
/* The one accent button on the panel (brief §3), on black: dark words on the lighter violet. */
.c-jc.c-jc a.c-jc-btn.is-primary {
  border-color: var(--jc-bar);
  background: var(--jc-bar);
  color: #17161c;
}
.c-jc.c-jc a.c-jc-btn.is-primary:hover {
  border-color: #dcb2f8;
  background: #dcb2f8;
}
.c-jc.c-jc a.c-jc-way-link {
  font-size: var(--text-2xs);
  color: var(--jc-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.c-jc.c-jc a.c-jc-way-link:hover {
  color: var(--jc-ink);
}
.c-jc.c-jc a:focus-visible {
  outline: 2px solid var(--jc-bar);
  outline-offset: 2px;
}

/* --- room to spread out: the panel's own width, so the editor's column gets the narrow layout ---- */

@container c-jc (min-width: 560px) {
  .c-jc-trend-ends span:nth-child(2) {
    display: inline;
  }
  .c-jc-week.is-alt .c-jc-tick {
    visibility: visible;
  }
  .c-jc-tick {
    font-size: 10px;
  }
  .c-jc-col b {
    font-size: 11px;
  }
  .c-jc-week-plot {
    height: 190px;
    gap: 3px;
  }
  .c-jc-city-name {
    display: block;
  }
  .c-jc-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .c-jc-pies.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .c-jc-where {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .c-jc-groups.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .c-jc-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
  /* The bar beside the name rather than under it, once there is width for both. */
  .c-jc-row {
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 40px 36px;
  }
  .c-jc-row .c-jc-name {
    grid-column: 1;
  }
  .c-jc-bar {
    grid-column: 2;
    grid-row: 1;
  }
  .c-jc-rows.is-plain .c-jc-row {
    grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 36px;
  }
  .c-jc-rows.is-ranked .c-jc-row {
    grid-template-columns: 20px 32px minmax(0, 232px) minmax(0, 1fr) 40px 36px;
  }
  .c-jc-rows.is-ranked .c-jc-bar {
    grid-column: 4;
    grid-row: 1;
  }
  .c-jc-rows.is-ranked .c-jc-logo,
  .c-jc-rows.is-ranked .c-jc-rank {
    grid-row: 1;
  }
  .c-jc-rows.is-long {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--c-jc-rows), auto);
    column-gap: 28px;
  }
  .c-jc-rows.is-long .c-jc-row {
    grid-template-columns: minmax(0, 92px) minmax(0, 1fr) 30px 28px;
  }
  .c-jc-rows.is-ranked.is-long {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .c-jc-rows.is-ranked.is-long .c-jc-row {
    grid-template-columns: 20px 32px minmax(0, 232px) minmax(0, 1fr) 40px 36px;
  }
}

@container c-jc (min-width: 720px) {
  .c-jc-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px;
  }
  .c-jc-pies.is-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .c-jc-pies .c-jc-pie-body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .c-jc-pies .c-jc-ring {
    max-width: 168px;
  }
  .c-jc-pies .c-jc-pie-keys {
    width: 100%;
  }
  .c-jc-where .c-jc-pie-body {
    grid-template-columns: 148px minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  .c-jc {
    padding: 26px 28px 24px;
    gap: 22px;
  }
  .c-jc--headline {
    padding: 28px 30px 26px;
  }
}
