/* Culture G Influence: long case pages (case-long.php) and Creators (page-creators.php), 28 October 2026.
   From the owner's approved canvas (claude.ai artifact FgVXKcYJ3L2dgyM4VeLtvV), on influence.css variables, buttons and dark chapter. */
.cgp {
  color: var(--cgi-text);
  font-size: 16.5px;
  line-height: 1.6;
}

.cgp :where(h1, h2, h3, p, dl, dd, figure, ul, ol) {
  margin: 0;
}

.cgp :where(ul, ol) {
  padding: 0;
  list-style: none;
}

/* The Creators menu item marks its page; this file never loads on the homepage, whose section links all count as current. */
.cg-influence .cg-menu .current-menu-item > a {
  color: var(--cgi-indigo);
  box-shadow: inset 0 -2px 0 var(--cgi-pink);
}

.cgp-label {
  color: var(--cgi-violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cg-influence .cgp-title {
  max-width: 900px;
  margin-top: 14px;
  color: var(--cgi-indigo);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.cgp-tag {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--cgi-yellow);
  color: var(--cgi-text);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cgp-sec {
  position: relative;
  padding-block: 96px;
  overflow: hidden;
}

/* Hero: light paper with soft magenta and violet glows, as on the homepage. */
.cgp-hero {
  position: relative;
  padding-block: 28px 104px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 85% at 97% 10%, rgb(206 82 230 / 20%), transparent 75%),
    radial-gradient(ellipse 40% 65% at -10% 100%, rgb(144 46 224 / 10%), transparent 70%),
    #f8f6f4;
}

.cgp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--cgi-muted-d);
  font-size: 13.5px;
  font-weight: 600;
}

.cgp-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.cgp-crumbs .cg-arrow {
  transform: scaleX(-1);
}

.cgp-crumbs [aria-current] {
  color: var(--cgi-text);
}

.cgp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.cgp-client {
  margin-bottom: 20px;
  color: var(--cgi-text);
  font-size: 14.5px;
  font-weight: 600;
}

.cg-influence .cgp-hero h1 {
  margin-top: 14px;
  color: var(--cgi-text);
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.cgp-lede {
  max-width: 36em;
  margin-top: 22px;
  color: var(--cgi-muted-d);
  font-size: 18px;
  line-height: 1.6;
}

.cgp-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--cgi-line-d);
}

.cgp-meta dt {
  color: var(--cgi-muted-d);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cgp-meta dd {
  margin: 4px 0 0;
  color: var(--cgi-indigo);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.cgp-visual-wrap {
  position: relative;
}

.cgp-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #5530b8;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--cgi-indigo), var(--cgi-violet) 73%, var(--cgi-pink));
  box-shadow: 18px 18px 0 rgb(206 82 230 / 17%);
}

.cgp-visual .wp-post-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cgp-visual::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 9px;
  pointer-events: none;
  content: "";
}

/* The brand cartouche of the case pages (!203), bottom left of the key art. */
.cgp-visual .cg-brand-logo {
  bottom: 12px;
  left: 12px;
}

.cgp-badge {
  position: absolute;
  right: 20px;
  bottom: 30px;
  z-index: 3;
  padding: 16px 20px;
  border: 1px solid #e7ddec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(31 14 139 / 22%);
}

.cgp-badge b {
  display: block;
  color: var(--cgi-indigo);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cgp-badge span {
  display: block;
  margin-top: 6px;
  color: var(--cgi-muted-d);
  font-size: 13px;
  font-weight: 600;
}

/* The challenge */
.cgp-challenge {
  background: var(--cgi-cream);
}

.cgp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 72px;
}

.cgp-body {
  padding-top: 34px;
  font-size: 19px;
  line-height: 1.75;
}

/* What we did: three or four numbered blocks with coloured top rules. */
.cgp-did {
  border-block: 1px solid #e8dcec;
  background: #fff;
}

.cgp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cgp-steps.cgp-n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cgp-step {
  padding: 30px 28px 32px;
  border: 1px solid #e3d7ea;
  border-top: 4px solid var(--cgi-pink);
  border-radius: 14px;
  background: #fcfafd;
  transition:
    transform 0.25s var(--cgi-ease),
    box-shadow 0.25s var(--cgi-ease);
}

.cgp-step:nth-child(2) {
  border-top-color: var(--cgi-violet);
}

.cgp-step:nth-child(3) {
  border-top-color: var(--cgi-indigo);
}

.cgp-step:nth-child(4) {
  border-top-color: var(--cgi-yellow);
}

.cgp-num {
  display: block;
  color: var(--cgi-violet);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cg-influence .cgp-step h3 {
  margin-top: 14px;
  color: var(--cgi-indigo);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.cgp-step p {
  margin-top: 12px;
  color: var(--cgi-muted-d);
  font-size: 16px;
  line-height: 1.65;
}

/* The results: the theme's dark chapter; a result without a figure leads with its label. */
.cgp-results .cgp-label {
  color: #e7a6f2;
}

.cg-influence .cgp-results .cgp-title {
  color: #fff;
}

.cgp-intro {
  max-width: 46em;
  margin-top: 16px;
  color: #e0d7ed;
  font-size: 18px;
  line-height: 1.6;
}

.cgp-res-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.cgp-res-grid.cgp-n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cgp-res {
  padding: 28px 24px 30px;
  border: 1px solid rgb(211 176 248 / 33%);
  border-top: 4px solid var(--cgi-pink);
  border-radius: 14px;
  background: rgb(255 255 255 / 7.5%);
  transition:
    transform 0.25s var(--cgi-ease),
    background-color 0.25s ease;
}

.cgp-res:nth-child(2) {
  border-top-color: var(--cgi-yellow);
}

.cgp-res:nth-child(3) {
  border-top-color: #a76af0;
}

.cgp-figure {
  color: var(--cgi-yellow);
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cg-influence .cgp-res h3 {
  margin-top: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.cg-influence .cgp-res--text h3 {
  margin-top: 0;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cgp-res p:not(.cgp-figure) {
  margin-top: 10px;
  color: #e0d7ed;
  font-size: 14.5px;
  line-height: 1.6;
}

/* More cases */
.cgp-more {
  background: #f7f4f7;
}

.cgp-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cgp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--cgi-indigo);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.cgp-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.cgp-case {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d7cbdf;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 0 rgb(31 14 139 / 4.5%);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.22s var(--cgi-ease),
    box-shadow 0.22s var(--cgi-ease);
}

.cgp-case-img {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 16px;
  aspect-ratio: 16 / 10;
  padding: 18px 22px 22px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--cgi-indigo), var(--cgi-violet) 73%, var(--cgi-pink));
  color: #fff;
  isolation: isolate;
}

.cgp-case-img img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keeps the white title readable over any key art. */
.cgp-case-img::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(17 19 34 / 10%) 30%, rgb(17 19 34 / 82%));
  content: "";
}

.cg-influence .cgp-case-img h3 {
  max-width: 15em;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.cgp-case-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
  color: var(--cgi-muted-d);
  font-size: 14.5px;
  line-height: 1.55;
}

.cgp-case-client {
  color: var(--cgi-violet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Closing call to action, in the dark chapter. */
.cgp-cta {
  padding-block: 88px;
}

.cgp-cta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cg-influence .cgp-cta h2 {
  max-width: 16em;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.cgp-cta h2 em {
  color: #e7a6f2;
  font-style: normal;
}

.cgp-cta p {
  margin-top: 12px;
  color: #e1d4f0;
  font-size: 18px;
}

.cg-influence .cgp-btn-light {
  min-height: 56px;
  padding: 0 28px;
  border-color: #fff;
  background: #fff;
  color: var(--cgi-indigo);
  font-size: 16px;
  box-shadow: 0 6px 0 rgb(0 0 0 / 18%);
}

.cg-influence .cgp-btn-ghost {
  min-height: 56px;
  padding: 0 28px;
  background: transparent;
  color: var(--cgi-indigo);
  font-size: 16px;
  box-shadow: none;
}

/* Creators hero: the figures and a mosaic of six creators. */
.cgp-roster-hero {
  padding-block: 72px 80px;
  border-bottom: 1px solid #e8dcec;
}

.cgp-roster-hero .cgp-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.cg-influence .cgp-roster-hero h1 {
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.cgp-roster-hero h1 em {
  background: var(--cgi-g2);
  background-clip: text;
  color: var(--cgi-violet);
  font-style: normal;
  -webkit-text-fill-color: transparent;
}

.cgp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 32px;
}

.cgp-facts div {
  display: flex;
  flex-direction: column-reverse;
  min-width: 120px;
  padding-top: 10px;
  border-top: 3px solid var(--cgi-pink);
}

.cgp-facts div:nth-child(2) {
  border-color: var(--cgi-violet);
}

.cgp-facts div:nth-child(3) {
  border-color: var(--cgi-indigo);
}

.cgp-facts dd {
  color: var(--cgi-indigo);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.cgp-facts dt {
  margin-top: 4px;
  color: var(--cgi-muted-d);
  font-size: 14px;
}

.cgp-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-2deg);
}

.cgp-mtile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  padding: 12px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgb(31 14 139 / 18%);
  color: #fff;
  isolation: isolate;
}

.cgp-mtile:nth-child(3n + 2) {
  transform: translateY(28px);
}

.cgp-mtile img,
.cgp-tphoto img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cgp-mtile::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 50%, rgb(17 19 34 / 75%));
  content: "";
}

.cgp-mtile span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* Roster: filter chips, a four-column grid, "show all". */
.cgp-roster {
  padding-block: 56px 96px;
  background: var(--cgi-cream);
}

.cgp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.cgp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid #cfc3da;
  border-radius: 999px;
  background: #fff;
  color: var(--cgi-text);
  font: 700 14px/1 var(--cg-body);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cgp-chip span {
  color: var(--cgi-muted-d);
  font-size: 12px;
}

.cgp-chip[aria-pressed="true"] {
  border-color: var(--cgi-indigo);
  background: var(--cgi-indigo);
  color: #fff;
}

.cgp-chip[aria-pressed="true"] span {
  color: #d6cae7;
}

.cgp-count {
  margin-bottom: 18px;
  color: var(--cgi-muted-d);
  font-size: 14px;
  font-weight: 600;
}

.cgp-tgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cgp-tcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d7cbdf;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 0 rgb(31 14 139 / 4.5%);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.22s var(--cgi-ease),
    box-shadow 0.22s var(--cgi-ease);
}

.cgp-tphoto {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--cgi-indigo) 15%, var(--cgi-violet) 75%, var(--cgi-pink));
  isolation: isolate;
}

.cgp-tphoto .cgp-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  font-size: 10.5px;
}

.cgp-tbody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}

.cgp-tname {
  color: var(--cgi-indigo);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cgp-tstats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

.cgp-tstats > span {
  display: flex;
  flex-direction: column;
}

.cgp-tstats > span > span {
  color: var(--cgi-muted-d);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cgp-tstats b {
  font-size: 16px;
  font-weight: 800;
}

.cgp-tmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--cgi-indigo);
  font-size: 13.5px;
  font-weight: 700;
}

.cgp-tmore .cg-arrow {
  width: 14px;
  height: 14px;
}

.cgp-showall {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.cgp-filters[hidden],
.cgp-showall[hidden] {
  display: none;
}

/* Profile: a panel on the right (full screen on phones). Without JavaScript it shows as the #creator-<slug> target. */
.cgp-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(17 19 34 / 36%);
}

.cgp-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: none;
  flex-direction: column;
  gap: 18px;
  width: min(480px, 100%);
  padding: 22px 32px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: -24px 0 60px rgb(17 19 34 / 25%);
  animation: cgp-slide 0.35s var(--cgi-ease) both;
}

.cgp:not([data-enhanced]) .cgp-sheet:target,
.cgp-sheet.is-open {
  display: flex;
}

.cgp:not([data-enhanced]):has(.cgp-sheet:target) .cgp-scrim {
  display: block;
}

html.cgp-locked {
  overflow: hidden;
}

@keyframes cgp-slide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.cgp-sheet:focus {
  outline: none;
}

.cgp-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cgp-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e3dce6;
  border-radius: 12px;
  color: var(--cgi-text);
}

.cgp-sphoto {
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 30%;
}

.cgp-shead {
  display: grid;
  gap: 6px;
}

.cgp-shead .cgp-tag {
  font-size: 11px;
}

.cg-influence .cgp-sheet h2 {
  color: var(--cgi-indigo);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cgp-scats {
  color: var(--cgi-violet);
  font-size: 14px;
  font-weight: 700;
}

.cgp-bio {
  color: var(--cgi-muted-d);
  font-size: 15.5px;
  line-height: 1.65;
}

.cg-influence .cgp-sheet h3 {
  margin-top: 4px;
  color: var(--cgi-muted-d);
  font-family: var(--cg-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cgp-plats {
  border-top: 1px solid #eee7f1;
}

.cgp-plats li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eee7f1;
}

.cgp-pn {
  font-weight: 700;
}

.cgp-pv {
  text-align: right;
}

.cgp-pv b {
  display: block;
  color: var(--cgi-indigo);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cgp-pv span {
  display: block;
  color: var(--cgi-muted-d);
  font-size: 12px;
}

.cgp-plats a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid #cfc3da;
  border-radius: 999px;
  color: var(--cgi-indigo);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cg-influence .cgp-work {
  flex: none;
  min-height: 56px;
  font-size: 16px;
  white-space: normal;
  text-align: center;
}

@media (hover: hover) {
  .cgp-crumbs a:hover,
  .cgp-link:hover,
  .cgp-tcard:hover .cgp-tmore,
  .cgp-close:hover,
  .cgp-plats a:hover {
    border-color: var(--cgi-violet);
    color: var(--cgi-violet);
  }

  .cgp-step:hover {
    box-shadow: 0 14px 28px rgb(31 14 139 / 12%);
    transform: translateY(-4px);
  }

  .cgp-res:hover {
    background: rgb(255 255 255 / 11%);
    transform: translateY(-4px);
  }

  .cgp-case:hover,
  .cgp-tcard:hover {
    box-shadow: 0 13px 26px rgb(31 14 139 / 13%);
    transform: translateY(-5px);
  }

  .cgp-chip:hover {
    border-color: var(--cgi-violet);
  }

  .cg-influence .cgp-btn-light:hover {
    border-color: var(--cgi-pink);
    background: var(--cgi-pink);
    color: var(--cgi-night);
  }

  .cg-influence .cgp-btn-ghost:hover {
    border-color: var(--cgi-indigo);
    background: var(--cgi-indigo);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cgp-step:hover,
  .cgp-res:hover,
  .cgp-case:hover,
  .cgp-tcard:hover {
    transform: none;
  }
}

@media (max-width: 1000px) {
  .cgp-hero-grid,
  .cgp-roster-hero .cgp-hero-grid,
  .cgp-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cgp-body {
    padding-top: 0;
  }

  .cgp-steps,
  .cgp-res-grid,
  .cgp-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cgp-steps.cgp-n3 {
    grid-template-columns: 1fr;
  }

  .cgp-res-grid.cgp-n3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cgp-mosaic {
    max-width: 520px;
  }

  .cgp-tgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cgp-sec {
    padding-block: 72px;
  }

  .cgp-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cgp-res-grid.cgp-n3 {
    grid-template-columns: 1fr;
  }

  .cgp-tgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cgp-hero {
    padding-block: 12px 72px;
  }

  .cgp-crumbs {
    margin-bottom: 20px;
  }

  .cgp-lede {
    font-size: 17px;
  }

  .cgp-visual {
    box-shadow: 7px 7px 0 rgb(206 82 230 / 17%);
  }

  .cgp-badge {
    right: 12px;
    bottom: -26px;
    padding: 12px 16px;
  }

  .cgp-badge b {
    font-size: 26px;
  }

  .cgp-body {
    font-size: 17px;
    line-height: 1.7;
  }

  .cgp-steps,
  .cgp-res-grid,
  .cgp-cases {
    grid-template-columns: 1fr;
  }

  .cgp-step {
    padding: 24px 22px 26px;
  }

  .cgp-cta {
    padding-block: 72px;
  }

  .cgp-cta .cg-btn {
    width: 100%;
  }

  .cgp-roster-hero {
    padding-block: 44px 56px;
  }

  .cgp-facts {
    gap: 14px 22px;
  }

  .cgp-facts div {
    min-width: 0;
  }

  .cgp-facts dd {
    font-size: 28px;
  }

  .cgp-mosaic {
    gap: 10px;
    transform: none;
  }

  .cgp-mtile:nth-child(3n + 2) {
    transform: translateY(16px);
  }

  .cgp-mtile span {
    font-size: 11px;
  }

  .cgp-roster {
    padding-block: 36px 72px;
  }

  /* One swipeable row of chips; the grid becomes one column of horizontal cards. */
  .cgp-filters {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--cg-gutter));
    padding: 2px var(--cg-gutter) 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cgp-chip {
    flex: none;
  }

  .cgp-tgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cgp-tcard {
    flex-direction: row;
  }

  .cgp-tphoto {
    flex: none;
    width: 112px;
    min-height: 140px;
    aspect-ratio: auto;
  }

  .cgp-tphoto .cgp-tag {
    top: 8px;
    left: 8px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .cgp-tbody {
    justify-content: center;
    min-width: 0;
    padding: 14px 16px;
  }

  .cgp-tname {
    font-size: 18px;
  }

  .cgp-tmore {
    margin-top: 8px;
  }

  .cgp-sheet {
    padding: 14px 16px 32px;
  }

  .cg-influence .cgp-sheet h2 {
    font-size: 30px;
  }
}
