/* Match the investor homepage's 16px panel-to-panel gaps.
   Preserve the first panel's lead-in and panel interior spacing. */
.page-companies .chart-shopify.quote-shopify {
  padding-bottom: 8px;
}
.page-companies .ways-shopify.quote-shopify,
.page-companies .process-shopify.quote-shopify,
.page-companies .sector-details.sector-hybrid,
.page-companies .ready-shopify.quote-shopify {
  padding-block: 8px;
}

.positioning-chart.is-desktop-fit { display: none; }

/* Desktop: title and chart stay inside the screen. Phone chart is unchanged. */
@media (min-width: 900px) {
  .page-companies .positioning-chart.is-current { display: none; }
  .page-companies .positioning-chart.is-desktop-fit { display: block; }
  .page-companies .chart-shopify .chart-stage {
    height: calc(100svh - var(--header-height) - (3 * var(--ov-h2-line)) - 1rem);
    min-height: 0;
  }
  .page-companies .chart-shopify .chart-stage .chart-width {
    width: auto;
    height: 100%;
    max-width: calc(100% - 26rem);
  }
  .page-companies .chart-shopify .chart-stage .positioning-chart {
    width: auto;
    height: 100%;
    margin: 0;
  }
  .page-companies .chart-shopify .chart-stage .positioning-chart svg {
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 880 / 860;
  }
}

@media (min-width: 900px) {
  .page-companies .chart-shopify .chart-statement {
    max-width: 52rem;
  }
}

/* Company process funnel: end node at the tip, with a Tactical funding flag. */
.page-companies .process-shopify .process-goal-frame {
  display: none;
}

.page-companies .process-shopify .process-goal-badge {
  gap: 6px;
  background: #00dcca;
  box-shadow: none;
  color: #110d25;
  border-radius: 4px;
}

.page-companies .process-shopify .process-goal-badge::before {
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1.5px solid #110d25;
  border-radius: 50%;
  transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23110d25' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2 4.8 8.7 9.8 3.3'/%3E%3C/svg%3E") center / 9px no-repeat;
}

@media (min-width: 1024px) {
  .page-companies .process-shopify .process-goal {
    min-width: 148px;
    justify-items: end;
  }

  .page-companies .process-shopify .process-goal-badge,
  .page-companies .process-shopify .process-goal-frame {
    width: 148px;
    justify-self: end;
    box-sizing: border-box;
  }

  .page-companies .process-shopify .process-goal-frame {
    display: block;
    grid-row: 2;
    align-self: stretch;
    height: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
  }

  .page-companies .process-shopify .process-goal .process-stem {
    display: none;
  }

  .page-companies .process-shopify .process-goal .process-node {
    justify-self: end;
    margin: 0 -8px 0 0;
  }
}

@media (max-width: 1023px) {
  .page-companies .process-shopify .process-goal {
    display: grid;
    grid-template-columns: var(--process-track, 12px) minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    padding-top: 0;
  }

  .page-companies .process-shopify .process-goal .process-node {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    margin: 0;
  }

  .page-companies .process-shopify .process-goal-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: auto;
  }

  .page-companies .process-shopify .process-rail {
    bottom: 0.55rem;
  }
}

/* Card-to-card space matches the investor homepage: 64px on phones, 96px from tablet up.
   Does not change the space above the first card, card interiors, or the desktop side-by-side financing pair. */
.page-companies.page-home[data-spacing]:not([data-spacing="current"]) :is(.chart-shopify, .ways-shopify, .process-shopify, .sector-hybrid) {
  padding-bottom: 32px;
}
.page-companies.page-home[data-spacing]:not([data-spacing="current"]) :is(.ways-shopify, .process-shopify, .sector-hybrid, .ready-shopify) {
  padding-top: 32px;
}
.page-companies.page-home[data-spacing="roomier"] .ways-shopify > .quote-band,
.page-companies.page-home[data-spacing="roomier"] .ways-shopify > .hunt-shopify-plate {
  margin-top: 64px;
}
/* Crop the unused canvas above and below the centered animation. The scene
   stays 1332 by 1080 and is still scaled to the column width, so the artwork
   does not shrink. app.js must keep the company scale on width alone. */
.page-companies .ways-shopify .financing-way-media {
  aspect-ratio: 1332 / 760;
}
/* Desktop titles stay one line. 56px fits from about 1240px; below that the
   pair column is narrower than "The Standard Toolkit", so the size eases down
   to 42px at 1024px. Both titles share the size. Phones and tablets are unchanged. */
@media (min-width: 1024px) {
  body.page-companies.page-home .ways-shopify .ways-pair .financing-way-swatch {
    white-space: nowrap;
    font-size: clamp(42px, calc(42px + (100vw - 1024px) * 0.065), 56px);
    line-height: 1.08;
  }
}
@media (min-width: 720px) {
  .page-companies .ways-shopify .ways-pair {
    grid-template-rows: auto auto;
  }
  .page-companies .ways-shopify .ways-pair > .quote-shopify-plate,
  .page-companies .ways-shopify .ways-pair .financing-way {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }
}
@media (max-width: 767px) {
  .page-companies .ways-shopify .ways-pair {
    gap: 64px;
  }
}
@media (min-width: 768px) {
  .page-companies.page-home[data-spacing]:not([data-spacing="current"]) :is(.chart-shopify, .ways-shopify, .process-shopify, .sector-hybrid) {
    padding-bottom: 48px;
  }
  .page-companies.page-home[data-spacing]:not([data-spacing="current"]) :is(.ways-shopify, .process-shopify, .sector-hybrid, .ready-shopify) {
    padding-top: 48px;
  }
  .page-companies.page-home[data-spacing="roomier"] .ways-shopify > .quote-band,
  .page-companies.page-home[data-spacing="roomier"] .ways-shopify > .hunt-shopify-plate {
    margin-top: 96px;
  }
}

.page-companies.page-home .hero-sub {
  max-width: none;
}
.page-companies .hero-sub-row {
  display: inline;
}
@media (min-width: 768px) {
  .page-companies .hero-sub-row {
    display: block;
    white-space: nowrap;
  }
}
.quote-band.is-inverted .press-meta a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quote-band.is-inverted .press-meta a:hover,
.quote-band.is-inverted .press-meta a:focus {
  color: #cdc4f3;
}
