/* Company tiles and dossier components use the Moscow catalogue's style. */
body #app #catalog-content .company-tile.uniform-company-card {
  --company-action-ink: #293447;
  --company-action-line: #aab6c8;
  --company-action-surface: #f7f8fa;
}

body #app #catalog-content .uniform-company-card .company-card-bottom > :is(.tile-more, .tile-link) {
  box-sizing: border-box;
  min-inline-size: 84px;
  min-block-size: 34px;
  justify-content: center;
  gap: 5px;
  padding-inline: 9px;
  border: 1px solid var(--company-action-line);
  border-radius: 7px;
  color: var(--company-action-ink);
  background: var(--company-action-surface);
  font-weight: 700;
  white-space: nowrap;
}

body #app #catalog-content .uniform-company-card .company-card-bottom > :is(.tile-more, .tile-link):is(:hover, :focus-visible) {
  border-color: #917026;
  color: #243043;
  background: #f5ead0;
}

body #app #catalog-content .uniform-company-card .company-card-main h3 {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

body #app #catalog-content .uniform-company-card > .company-card-main:not(:has(> .company-card-copy)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  grid-column: 1 / -1;
  gap: 4px;
  align-content: start;
}

body #app #catalog-content .uniform-company-card > .company-card-main:not(:has(> .company-card-copy)) > :is(h3, p) {
  grid-column: 1;
  grid-row: auto;
  margin: 0;
}

body #app #catalog-content .uniform-company-card > .company-card-main:not(:has(> .company-card-copy)) > p {
  color: #59677c;
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body #app #catalog-content .uniform-company-card .company-card-reviews > :is(.regional-source-empty, .regional-review-unavailable, .import-review-pending) {
  color: #59677c;
  font-size: .85rem;
  line-height: 1.4;
}

@media (min-width: 761px) {
  body #app #catalog-content a.company-tile.uniform-company-card:has(> .company-card-bottom) {
    height: auto;
    max-height: none;
    grid-template-rows: auto minmax(min-content, 1fr) auto;
  }
  body #app #catalog-content .uniform-company-card > .company-card-bottom {
    align-content: end;
  }
}

@media (min-width: 681px) and (max-width: 760px) {
  body.ts-russia-on #app #catalog-content a.company-tile.uniform-company-card {
    height: auto;
    max-height: none;
    grid-template-rows: auto minmax(min-content, 1fr) auto;
  }
  body.ts-russia-on #app #catalog-content .uniform-company-card > .company-card-bottom {
    align-content: end;
    align-self: end;
  }
}

@media (max-width: 680px) {
  body #app #catalog-content .uniform-company-card .company-card-bottom > :is(.tile-more, .tile-link) {
    min-block-size: 44px;
  }
}

body #app > .dossier-page #company-panel {
  --dossier-component-radius: 4px;
  --dossier-component-line: #dce1e9;
  --dossier-component-padding: 18px;
}

body #app > .dossier-page #company-panel :is(.project-grid, [data-marsh-gallery], .marsh-review-grid) {
  gap: var(--dossier-component-padding);
  min-inline-size: 0;
  align-items: start;
}

body #app > .dossier-page #company-panel :is(.project-grid, [data-marsh-gallery]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body #app > .dossier-page #company-panel :is(.project-grid, [data-marsh-gallery]) > :is(.project-card, figure) {
  min-inline-size: 0;
  border: 1px solid var(--dossier-component-line);
  border-radius: var(--dossier-component-radius);
  background: #fff;
  overflow: hidden;
}

body #app > .dossier-page #company-panel :is(.review-archive, .regional-review-profile[data-review-key], [data-marsh-review-card]) {
  min-inline-size: 0;
  padding: 16px var(--dossier-component-padding);
  border: 1px solid var(--dossier-component-line);
  border-radius: var(--dossier-component-radius);
  color: #354054;
  background: #fff;
  overflow-wrap: anywhere;
}

body #app > .dossier-page #company-panel dl:is(.keyvalue, [data-marsh-facts]) > :is(dt, dd) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 950px) {
  body #app > .dossier-page #company-panel :is(.project-grid, [data-marsh-gallery]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body #app > .dossier-page #company-panel {
    --dossier-component-padding: 14px;
  }
  body #app > .dossier-page #company-panel :is(.project-grid, [data-marsh-gallery], .marsh-review-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}
