/* Natural presentation refinements shared by every page. */

/* Section labels read as editorial text instead of numbered UI badges. */
.eyebrow {
  gap: 0;
}

.eyebrow > span,
.card-index,
.configuration-number,
.ac-type-num,
.cb-option-num,
.cs-type-num,
.ele-option-num,
.pfc-option-number,
.rc-type-number {
  display: none !important;
}

.solutions-jump span {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  margin-right: 8px;
}

.technical-label,
.visual-caption,
.solution-number,
.solution-card > div > span:first-child {
  display: none;
}

.card-arrow {
  display: none;
}

.resource-grid > a > span {
  display: none;
}

/* Remove decorative blueprint frames and let photography stand on its own. */
.hero-visual::before,
.hero-visual::after,
.product-image-stage::before,
.sd-photo-frame::after,
.rt-hero-visual::before,
.feature-image::before,
[class*="-hero-media"]::before {
  display: none !important;
}

main img {
  border: 0 !important;
  outline: 0;
}

main figure,
.feature-image {
  border-color: transparent !important;
}

main [class$="-grid"],
main [class*="-grid "] {
  border-color: transparent !important;
}

main [class$="-grid"] > article,
main [class*="-grid "] > article {
  border-color: transparent !important;
}

[class*="gallery-grid"] {
  gap: clamp(10px, 1.2vw, 20px) !important;
  border: 0 !important;
  background: transparent !important;
}

[class*="gallery-grid"] figure {
  border: 0 !important;
}

/* Product and solution cards use whitespace instead of spreadsheet lines. */
.catalog-results,
.solution-cards {
  gap: clamp(20px, 2vw, 30px);
  border: 0;
}

.catalog-card,
.solution-card,
.dark-cards .solution-card {
  border: 0;
}

.catalog-card:hover {
  box-shadow: 0 14px 34px rgba(6, 29, 44, .08);
  transform: translateY(-1px);
}

.hero-facts {
  gap: clamp(24px, 3vw, 46px);
  border-top: 0;
}

.hero-facts div,
.hero-facts div + div {
  padding: 0;
  border-right: 0;
}

.product-visual {
  border-left: 0 !important;
}

/* Keep meaningful sequences, but present them as typography rather than badges. */
.lmw-5s-strip span,
.rt-orbit span,
.rt-rotation-diagram span {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: inherit;
}

.solutions-jump {
  gap: 30px;
  border: 0;
}

.solutions-jump a {
  min-height: 54px;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 620px) {
  .catalog-results,
  .solution-cards {
    gap: 24px;
  }

  .solutions-jump {
    gap: 0;
  }
}

/* Grids that reserved a column for a badge this stylesheet hides.
   Without restating the columns the remaining content shifts one column left
   and collapses into the badge's width. */
.solution-card > div {
  grid-template-columns: 1fr 34px;
  min-height: 0;
}

/* Small phones: two-column content grids squeeze prose into unreadable columns. */
@media (max-width: 480px) {
  .pfc-operations,
  .wa-types-grid,
  .wa-distribution-grid,
  .lp-apps-grid,
  .rt-solution-card ul,
  .rt-image-card,
  .lp-spec-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Action rows must wrap rather than push the page wider. */
.hero-actions,
.configurator-actions,
.solutions-contact,
[class$="-actions"] {
  flex-wrap: wrap;
}

/* Small phones: label/value rows with a fixed label column leave the value
   too narrow to read, and flex tag lists shrink below their own text. */
@media (max-width: 480px) {
  .cs-spec-dl div,
  .ip-key-points div,
  .lp-spec-table div,
  .pfc-factors-grid dl div,
  .rdc-depositing-grid dl div,
  .rt-outcomes div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  /* Full-width rows: these phrases cannot fit a chip at 320px. */
  .wa-tag-list {
    display: block;
    padding: 0;
    list-style: none;
  }

  .wa-tag-list li {
    margin-bottom: 9px;
  }

  .wa-tag-list span {
    display: block;
  }
}

/* Catalogue filters: five columns leave ~52px per button at 320px, which is
   narrower than a single word, so the labels overflow their own buttons. */
@media (max-width: 520px) {
  .filter-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-group button {
    overflow-wrap: break-word;
  }
}

@media (max-width: 380px) {
  .filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Text-only card rows: a grid stretches every cell to the tallest card, which
   leaves dead space under the short ones. Card borders are already transparent
   here, so letting each card size to its own content removes the voids without
   making the row look broken. */
.cb-industries-grid,
.ele-solution-list,
.ele-need-grid,
.ele-why-grid,
.ele-industries-grid,
.ele-planning-grid,
.ele-related-grid {
  align-items: start;
}

/* A colour panel still stretches beside its image; centre its content instead
   of leaving it stranded at the top. */
.it-battery-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Decorative degree markers overlaid on the rotation diagrams. This stylesheet
   already stripped their badge styling, leaving them to inherit a colour that
   can match the surface behind them. They are aria-hidden and the body copy
   already states the rotation range, so they carry no information. */
.rt-orbit span,
.rt-rotation-diagram span {
  display: none;
}

/* "Heading column beside a content column" rows: the short heading cell is
   stretched to the tall content cell, stranding the heading at the top of a
   deep empty box. Aligning to the start removes the void. */
.pfc-factors-grid,
.pfc-operations-grid,
.ip-overview-grid,
.ip-design-grid,
.cs-fundamentals-grid,
.hs-definition-grid {
  align-items: start;
}
